:root {
    --bg: #121212;
    --card: #181818;
    --txt: #ffffff;
    --txt-muted: #b3b3b3;
    --acc: #E2725B; /* Terracotta */
    --acc-alt: #8DA399; /* Sage */
    --bord: #282828;
    --font: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg: #f4f4f4;
    --card: #ffffff;
    --txt: #121212;
    --txt-muted: #555;
    --bord: #ddd;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { background: var(--bg); color: var(--txt); font-family: var(--font); transition: 0.3s; padding-bottom: 80px; }

.nav-glass {
    position: sticky; top: 0; z-index: 100;
    background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bord);
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%;
}
[data-theme="light"] .nav-glass { background: rgba(255,255,255,0.85); }

.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.dot { color: var(--acc); }

.nav-actions { display: flex; gap: 1rem; align-items: center; }
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--txt); }

.primary-btn {
    background: var(--txt); color: var(--bg); border: none;
    padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 600; cursor: pointer;
    transition: transform 0.1s;
}
.primary-btn:active { transform: scale(0.96); }
.primary-btn.sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.accent { color: var(--acc); }

.chips-scroll { 
    display: flex; gap: 0.5rem; padding: 0 5%; margin-bottom: 2rem; 
    overflow-x: auto; scrollbar-width: none; 
}
.chip {
    background: var(--card); border: 1px solid var(--bord); color: var(--txt);
    padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--acc); color: white; border-color: var(--acc); }

.grid-layout {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem; padding: 0 5%;
}

.card {
    background: var(--card); border-radius: 20px; padding: 1rem;
    transition: background 0.2s; position: relative;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.card:hover { background: #222; }
[data-theme="light"] .card:hover { background: #eee; }

.card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: #333; }
.card h3 { font-size: 1rem; font-weight: 600; margin-top: 0.5rem; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { color: var(--acc-alt); font-weight: 600; }
.add-btn {
    background: var(--acc); color: white; border: none; width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.skel-card { height: 300px; background: var(--card); border-radius: 20px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% {opacity: 0.5;} 50% {opacity: 0.8;} 100% {opacity: 0.5;} }

#modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: var(--bg); padding: 2rem; border-radius: 20px;
    width: 90%; max-width: 600px; position: relative; border: 1px solid var(--bord);
}
.modal-content.sm { max-width: 400px; text-align: center; }
.hidden { display: none !important; }
.hidden-tmpl { display: none; }

form input {
    width: 100%; padding: 0.8rem; margin-bottom: 0.8rem;
    background: var(--card); border: 1px solid var(--bord); color: var(--txt); border-radius: 20px;
}
.google-btn { width: 100%; padding: 0.8rem; background: white; color: black; border: none; border-radius: 20px; font-weight: 600; cursor: pointer; margin-bottom: 1rem; }
.divider { color: var(--txt-muted); margin: 1rem 0; font-size: 0.8rem; }
.tiny-link { font-size: 0.8rem; color: var(--txt-muted); margin-top: 1rem; cursor: pointer; text-decoration: underline; }

.ftr { text-align: center; margin-top: 4rem; padding: 2rem; border-top: 1px solid var(--bord); color: var(--txt-muted); }
.ftr-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.ftr-links button { background: none; border: none; color: var(--txt-muted); cursor: pointer; }
:root {
    /* Spotify-esque Palette */
    --bg: #121212;
    --card: #181818;
    --card-hover: #282828;
    --txt: #ffffff;
    --txt-muted: #b3b3b3;
    
    /* Brand Accents */
    --acc: #E2725B; /* Terracotta */
    --acc-hover: #c9624d;
    --acc-alt: #8DA399; /* Sage */
    
    /* Structural */
    --bord: #282828; /* Subtle borders */
    --font: 'Inter', sans-serif;
    --nav-height: 70px;
    --shadow: 0 8px 24px rgba(0,0,0,0.5);
}

[data-theme="light"] {
    --bg: #f9f9f9;
    --card: #ffffff;
    --card-hover: #f0f0f0;
    --txt: #121212;
    --txt-muted: #5e5e5e;
    --bord: #e0e0e0;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-font-smoothing: antialiased; }
body { 
    background: var(--bg); 
    color: var(--txt); 
    font-family: var(--font); 
    transition: background 0.3s ease, color 0.3s ease; 
    padding-top: var(--nav-height); /* Prevent nav overlap */
}

/* 1. Glass Navigation (Refined) */
.nav-glass {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 1000;
    background: rgba(18, 18, 18, 0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
}
[data-theme="light"] .nav-glass { background: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(0,0,0,0.05); }

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1.5px; }
.search-wrap input {
    background: #333; border: none; padding: 0.6rem 1.5rem; border-radius: 50px; color: white; width: 250px; transition: 0.2s;
}
.search-wrap input:focus { background: #444; width: 300px; box-shadow: 0 0 0 2px var(--acc); }
[data-theme="light"] .search-wrap input { background: #eee; color: black; }

/* 2. Hero Section (Gradient & Impact) */
.hero { 
    text-align: left; 
    padding: 6rem 5% 4rem; 
    background: linear-gradient(180deg, rgba(226,114,91,0.15) 0%, rgba(18,18,18,0) 100%);
}
.hero h1 { 
    font-size: 4rem; line-height: 1; letter-spacing: -2px; margin-bottom: 1rem; max-width: 800px;
}
.hero p { font-size: 1.2rem; color: var(--txt-muted); max-width: 500px; }

/* 3. Product Grid & Cards (The Spotify Tile Look) */
.grid-layout {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem; padding: 0 5%;
}

.card {
    background: var(--card); padding: 1rem; border-radius: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer; display: flex; flex-direction: column; gap: 1rem;
}
/* Hover Effect: Lift & Lighten Background */
.card:hover { background: var(--card-hover); transform: translateY(-6px); box-shadow: var(--shadow); }

.card img { 
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.card .info h3 { 
    font-size: 1rem; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 
}
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card .price { color: var(--txt-muted); font-size: 0.9rem; }

/* The "Play" Button equivalent */
.add-btn {
    background: var(--acc); color: white; border: none; 
    width: 40px; height: 40px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; opacity: 0; transform: translateY(10px); 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(226, 114, 91, 0.4);
}
/* Show button only on hover */
.card:hover .add-btn { opacity: 1; transform: translateY(0); }
/* Mobile always shows button */
@media(max-width: 768px) { .add-btn { opacity: 1; transform: translateY(0); width: 32px; height: 32px; } }

/* 4. Filter Chips */
.chips-scroll { gap: 1rem; margin-bottom: 3rem; padding-bottom: 10px; }
.chip {
    background: rgba(255,255,255,0.1); border: none; padding: 0.6rem 1.2rem;
    font-size: 0.9rem; font-weight: 500; transition: 0.2s;
}
.chip:hover { background: rgba(255,255,255,0.2); }
.chip.active { background: var(--txt); color: var(--bg); }
[data-theme="light"] .chip { background: rgba(0,0,0,0.05); }

/* 5. Toast Notification (Replaces Alerts) */
#toast-box {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2000; pointer-events: none;
}
.toast {
    background: var(--acc); color: white; padding: 0.8rem 2rem; border-radius: 50px;
    margin-top: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-weight: 600;
    opacity: 0; transform: translateY(20px); animation: slideUp 0.3s forwards;
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* 6. Animations */
.fade-in-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Mobile Tweaks */
@media(max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .search-wrap { display: none; } /* Hide search on mobile header for cleanliness */
    .grid-layout { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
/* --- Modal Overlay & Animation --- */
.modal-overlay {
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    z-index: 2000; 
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }

.modal-content.sm {
    width: 90%; max-width: 420px; 
    background: #181818; border: 1px solid #333;
    border-radius: 20px; padding: 2.5rem 2rem;
    position: relative; text-align: center;
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.modal-overlay:not(.hidden) .modal-content { transform: translateY(0); }
[data-theme="light"] .modal-content.sm { background: #fff; border-color: #eee; }

.close-modal {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 1.5rem; 
    color: var(--txt-muted); cursor: pointer; transition: 0.2s;
}
.close-modal:hover { color: var(--txt); }

/* --- Auth Form Styles --- */
.sub-text { font-size: 0.9rem; color: var(--txt-muted); margin-bottom: 1.5rem; margin-top: -0.5rem; line-height: 1.5; }

.input-group { margin-bottom: 1rem; text-align: left; }
.input-group input, .row-inputs input {
    width: 100%; padding: 0.8rem 1rem;
    background: #222; border: 1px solid #333; border-radius: 20px;
    color: white; font-size: 0.95rem; transition: 0.2s;
}
.input-group input:focus { border-color: var(--acc); background: #2a2a2a; }
[data-theme="light"] .input-group input { background: #f5f5f5; border-color: #ddd; color: black; }

/* Signup Fields Animation */
.hidden-height {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
.show-signup .hidden-height { max-height: 250px; opacity: 1; margin-bottom: 1rem; }

.row-inputs { display: flex; gap: 10px; margin-top: 10px; }

.primary-btn.full { width: 100%; border-radius: 20px; padding: 0.8rem; font-size: 1rem; margin-top: 0.5rem; }

/* --- Google Button --- */
.google-btn {
    width: 100%; background: white; color: #333;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0.8rem; border-radius: 20px; border: none;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: transform 0.1s;
}
.google-btn:active { transform: scale(0.98); }
.google-btn svg { width: 20px; height: 20px; }

/* --- Footer Links --- */
.divider { display: flex; align-items: center; margin: 1.5rem 0; color: var(--txt-muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #333; }
.divider span { padding: 0 10px; }

.auth-footer { margin-top: 1.5rem; font-size: 0.9rem; color: var(--txt-muted); }
.auth-footer span { color: var(--acc); cursor: pointer; font-weight: 600; }
.forgot-link { margin-top: 0.5rem; font-size: 0.85rem; cursor: pointer; text-decoration: underline; }

.text-btn { background: none; border: none; color: var(--acc); margin-top: 1.5rem; cursor: pointer; font-weight: 500; }
/* Update Nav Height & Spacing */
.nav-glass {
    height: 80px; /* Taller, more premium feel */
    padding: 0 4%;
}

/* Premium Cart Badge */
.icon-btn { position: relative; display: flex; align-items: center; justify-content: center; }
.badge {
    position: absolute; top: -5px; right: -8px;
    background: var(--acc); color: white;
    font-size: 0.7rem; font-weight: 700;
    height: 18px; min-width: 18px; padding: 0 4px;
    border-radius: 9px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg); /* Cutout effect */
}

/* Floating Language Picker (Bottom Left) */
.float-act {
    position: fixed; bottom: 20px; left: 20px; z-index: 900;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem; border-radius: 30px;
    display: flex; align-items: center; gap: 8px;
    color: var(--txt-muted); font-size: 0.85rem; font-weight: 500;
    transition: 0.2s; cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.float-act:hover { background: rgba(255,255,255,0.15); color: var(--txt); transform: translateY(-2px); }

.float-act img { border-radius: 2px; opacity: 0.8; }
.float-act select {
    background: none; border: none; color: inherit; 
    font-family: inherit; font-size: inherit; cursor: pointer;
    appearance: none; /* Hide default arrow */
    padding-right: 5px; outline: none;
}
.float-act svg { opacity: 0.5; }

/* Hide Old Toggle if referenced elsewhere */
#theme-tog { display: none !important; }
/* Nav Layout */
.nav-glass {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 4%; height: 80px;
}

.nav-left { display: flex; align-items: center; gap: 1rem; }

/* Mobile Only Utility */
.mobile-only { display: none; }
@media(max-width: 768px) {
    .mobile-only { display: flex; }
    .search-wrap { display: none; } /* Hide search on mobile header to save space */
}

/* User Dropdown */
#user-menu { position: relative; }

.dropdown-menu {
    position: absolute; top: 100%; right: 0; margin-top: 0.5rem;
    background: var(--card); border: 1px solid var(--bord);
    border-radius: 8px; width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; z-index: 1000;
    flex-direction: column; display: flex;
}
.dropdown-menu.hidden { display: none; }

.dd-item {
    padding: 0.8rem 1rem; color: var(--txt); text-decoration: none;
    font-size: 0.9rem; background: none; border: none; text-align: left;
    cursor: pointer; width: 100%; display: block;
}
.dd-item:hover { background: rgba(255,255,255,0.05); }

.text-danger { color: #ff4d4d; }

/* Drawer for Mobile Menu */
.drawer {
    position: fixed; top: 80px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--bord); padding: 1rem;
    display: flex; flex-direction: column; gap: 1rem; z-index: 900;
}
.drawer.hidden { display: none; }
/* --- Overlay --- */
.drawer-overlay {
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 1900; 
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* --- Side Drawer --- */
.side-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 75%; max-width: 320px;
    background: #181818; 
    border-left: 1px solid #333;
    z-index: 2000;
    transform: translateX(100%); /* Start hidden to the right */
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); /* Smooth "Apple" ease */
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.side-drawer.open { transform: translateX(0); }

[data-theme="light"] .side-drawer { background: #fff; border-left: 1px solid #eee; }

/* Drawer Content */
.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.drawer-title { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }

.drawer-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.drawer-link {
    font-size: 1.1rem; font-weight: 500; color: var(--txt-muted);
    text-decoration: none; padding: 0.5rem 0; transition: 0.2s;
}
.drawer-link:hover, .drawer-link.active { color: var(--txt); transform: translateX(5px); }

.drawer-divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 1rem 0; }

.drawer-meta p { color: var(--txt-muted); font-size: 0.8rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.chip-row { display: flex; gap: 10px; }
.chip-sm {
    background: rgba(255,255,255,0.1); border: none; color: var(--txt);
    padding: 4px 12px; border-radius: 4px; font-size: 0.8rem;
}
.chip-sm.active { background: var(--acc); color: white; }
/* --- Split Screen Modal Layout --- */
.modal-content.split-layout {
    width: 95%;
    max-width: 900px; /* Wider for desktop */
    padding: 0; /* Remove default padding to let image bleed */
    display: grid;
    grid-template-columns: 1fr; /* Default: Single column (Mobile) */
    overflow: hidden;
    position: relative;
}

/* Form Side */
.auth-form-side {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Image Side (Hidden by default on mobile) */
.auth-image-side {
    display: none; 
    background-image: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?q=80&w=1000&auto=format&fit=crop'); /* Minimalist Fashion Image */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay Text on Image */
.auth-overlay-text {
    position: absolute; bottom: 30px; left: 30px;
    color: white; text-align: left;
}
.auth-overlay-text h3 {
    font-size: 2.5rem; line-height: 1.1; font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Small Logo inside Modal */
.logo-small {
    font-weight: 800; font-size: 1.2rem; margin-bottom: 1.5rem; display: inline-block;
}

/* --- Desktop / Tablet Split Logic --- */
@media (min-width: 900px) {
    .modal-content.split-layout {
        grid-template-columns: 1fr 1fr; /* 50/50 Split */
        height: 600px; /* Fixed height for consistent look */
    }
    
    .auth-image-side {
        display: block; /* Show Image */
    }
    
    .auth-form-side {
        display: flex; flex-direction: column; justify-content: center;
        padding: 3rem;
    }
}

/* Update Close Button Position */
.close-modal {
    z-index: 10;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.1); /* Subtle backing */
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.close-modal:hover { background: rgba(0,0,0,0.2); }
/* Animation State Class */
.hidden-height {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.hidden-height.expanded {
    max-height: 500px; /* Large enough to fit form */
    opacity: 1;
    margin-bottom: 1rem;
}

/* Ensure Google Button area disappears cleanly */
#step-1-google {
    transition: opacity 0.2s;
}
/* Eye Toggle Button */
.eye-btn-modal {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--txt-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 5;
    transition: color 0.2s;
}
.eye-btn-modal:hover { color: var(--acc); }

/* Ensure the input group acts as a positioning container */
.input-group {
    position: relative;
}
/* --- Side Drawer (Left Side) --- */
.side-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; /* CHANGED: Left instead of Right */
    width: 75%; max-width: 320px;
    background: #181818; 
    border-right: 1px solid #333; /* CHANGED: Border on right */
    z-index: 2000;
    transform: translateX(-100%); /* CHANGED: Start hidden to the left */
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex; flex-direction: column;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5); /* CHANGED: Shadow direction */
}

.side-drawer.open { transform: translateX(0); }

[data-theme="light"] .side-drawer { background: #fff; border-right: 1px solid #eee; }

/* Drawer User Info (New) */
.drawer-user-head {
    padding: 0 0 1rem 0; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--txt); font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.user-avatar-sm {
    width: 32px; height: 32px; background: var(--acc); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700;
}
/* Enhanced Dropdown */
.dropdown-menu {
    width: 240px; /* Wider to fit email */
    padding: 0;   /* Reset padding */
}

/* User Header inside Dropdown */
.dd-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bord);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.02);
}

.dd-avatar {
    width: 38px; height: 38px;
    background: var(--acc); color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}

.dd-info {
    display: flex; flex-direction: column;
    overflow: hidden;
}

.dd-name {
    font-weight: 600; font-size: 0.95rem; color: var(--txt);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dd-email {
    font-size: 0.75rem; color: var(--txt-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Links Section */
.dd-links { padding: 0.5rem 0; }

.dd-item {
    padding: 0.8rem 1rem;
    display: flex; align-items: center;
}
.dd-item:hover { background: rgba(255,255,255,0.05); }
/* --- Shopping Cart Drawer --- */
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 400px; /* Slightly wider for items */
    background: #121212;
    border-left: 1px solid #333;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
}
.cart-drawer.open { transform: translateX(0); }
[data-theme="light"] .cart-drawer { background: #fff; border-left: 1px solid #eee; }

/* Header */
.cart-header {
    padding: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }

/* Body (Scrollable) */
.cart-body {
    flex: 1; overflow-y: auto; padding: 1.5rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}

/* Empty State */
.empty-cart {
    text-align: center; margin-top: 3rem; color: var(--txt-muted);
}

/* Cart Item Card */
.cart-item {
    display: flex; gap: 1rem;
    animation: fadeIn 0.3s ease;
}
.cart-img {
    width: 70px; height: 70px; border-radius: 6px;
    background: #222; object-fit: cover;
}
.cart-details {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.cart-name { font-weight: 600; font-size: 0.95rem; color: var(--txt); }
.cart-price { font-size: 0.9rem; color: var(--txt-muted); }

/* Quantity Controls */
.qty-controls {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px; padding: 2px; width: fit-content;
    margin-top: 5px;
}
.qty-btn {
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--txt); cursor: pointer;
    font-size: 1rem;
}
.qty-btn:hover { color: var(--acc); }
.qty-val { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }

/* Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #121212;
}
[data-theme="light"] .cart-footer { background: #fff; }

.cart-total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.ship-note {
    font-size: 0.8rem; color: var(--txt-muted); margin-bottom: 1.2rem;
}
