/* ═══════════════════════════════════════ */
/* SHOPPING CART UI STYLES */
/* ═══════════════════════════════════════ */

/* ── Cart FAB ── */
.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.cart-fab:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.45em;
    font-weight: bold;
    font-family: Arial, sans-serif;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e1e1e;
    padding: 0 4px;
}

.cart-toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: rgba(13, 148, 136, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Size Picker Modal ── */
.size-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.size-modal-overlay.show {
    display: block;
    opacity: 1;
}

.size-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -45%);
    width: 90%; max-width: 420px;
    background: #20222a;
    border: 1px solid #333;
    border-radius: 16px;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: none;
    opacity: 0;
    transition: all 0.3s;
    overflow: hidden;
}

.size-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.size-modal-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.size-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ccc;
    font-size: 1.2em;
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.size-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: rotate(90deg);
}

.size-modal-body {
    padding: 24px;
}

.size-modal-product {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 12px;
}

.size-modal-img {
    width: 80px; height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.size-modal-info {
    flex: 1;
}

.size-modal-name {
    color: #fff; font-weight: 600; font-size: 0.95em; line-height: 1.4;
    margin-bottom: 6px;
}

.size-modal-sku {
    color: #888; font-size: 0.8em; font-family: monospace;
    background: rgba(255,255,255,0.05);
    display: inline-block; padding: 2px 6px; border-radius: 4px;
    margin-bottom: 8px;
}

.size-modal-price {
    font-size: 1.1em;
}

.size-modal-section { margin-bottom: 20px; }
.size-modal-label { color: #fff; font-weight: 600; margin-bottom: 10px; font-size: 0.9em; }

.size-modal-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.size-modal-color-dot {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid transparent; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); transition: all 0.2s;
}
.size-modal-color-dot.active { border-color: #be1e2d; transform: scale(1.1); box-shadow: 0 0 10px rgba(190,30,45,0.4); }

.size-modal-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.size-modal-size-btn {
    background: #1a1b22; border: 1px solid #333;
    border-radius: 12px; padding: 10px 16px; color: #eee;
    cursor: pointer; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 65px; transition: all 0.2s; position: relative; overflow: hidden;
}
.size-modal-size-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.size-modal-size-btn.selected { background: rgba(190, 30, 45, 0.15); border-color: #be1e2d; color: #ff7675; }
.size-modal-size-btn:disabled { opacity: 0.4; cursor: not-allowed; background: #2a2c38; border-color: transparent; }
.size-modal-size-btn .size-label { font-size: 1.1em; }
.size-modal-size-btn .size-qty { font-size: 0.75em; font-weight: 500; }
.size-modal-size-btn .size-qty.in-stock { color: #00d26a; }
.size-modal-size-btn .size-qty.no-stock { color: #ff4757; }

.size-modal-add-btn {
    width: 100%; padding: 16px; background: linear-gradient(135deg, #be1e2d, #f03e3e); color: white;
    border: none; border-radius: 12px; font-weight: 800; font-size: 1.1em;
    cursor: pointer; margin-top: 12px; box-shadow: 0 8px 20px rgba(190, 30, 45, 0.4);
}
.size-modal-add-btn:hover:not(:disabled) { background: linear-gradient(135deg, #d32f2f, #fc5c65); }
.size-modal-add-btn:disabled { background: #3d3d3d; color: #888; box-shadow: none; cursor: not-allowed; }

/* ── Cart Drawer ── */
.cart-drawer {
    position: fixed; top: 0; right: -380px; width: 370px; height: 100vh;
    background: #1a1a1e; border-left: 1px solid #333; z-index: 1001;
    transition: right 0.3s ease; display: flex; flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
    padding: 16px 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center;
    font-size: 1.1em; font-weight: 700; color: #fbbf24;
}
.cart-drawer-header button { background: none; border: none; color: #aaa; font-size: 1.3em; cursor: pointer; }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-item {
    display: flex; gap: 12px; padding: 12px; background: #2d2d2d;
    border-radius: 10px; margin-bottom: 10px; position: relative;
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-name { color: #eee; font-size: 0.85em; margin-bottom: 4px; }
.cart-item-price { color: #00d26a; font-weight: 700; font-size: 0.9em; }
.cart-item-remove { position: absolute; top: 8px; right: 8px; background: none; border: none; color: #888; cursor: pointer; font-size: 1em; }
.cart-item-remove:hover { color: #ff4757; }

.cart-drawer-footer { padding: 16px 20px; border-top: 1px solid #333; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; color: #eee; font-size: 1em; }
.cart-total-price { color: #00d26a; font-weight: 700; font-size: 1.1em; }

.cart-send-btn {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #00d26a, #0d9488); color: #fff;
    font-weight: 700; font-size: 0.95em; cursor: pointer;
}
.cart-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-empty { color: #666; text-align: center; padding: 40px 0; font-size: 0.9em; }
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; display: none;
}
.cart-overlay.show { display: block; }
