:root {
    /* Modern Luxury Palette (Dark Default) - Visible Borders */
    --bg-color: #050505;
    --surface-color: #121212;
    --primary-color: #D4AF37;
    --primary-hover: #F4C430;
    --text-color: #FFFFFF;
    --text-muted: #A1A1AA;
    /* Zinc-400 */
    --border-color: rgba(212, 175, 55, 0.2);
    /* Gold-tinted border - VISIBLE */
    --glass-bg: rgba(18, 18, 18, 0.85);
    --glass-border: 1px solid rgba(212, 175, 55, 0.25);
    /* Gold border visible */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    --neon-glow: 0 0 15px rgba(212, 175, 55, 0.2);
    --card-hover-transform: -8px;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --container-width: 1200px;
    --header-height: 80px;
    --bottom-nav-height: 80px;

    /* New Fancy Accents - Royal Indigo */
    --secondary-color: #4F46E5;
    /* Indigo 600 */
    --secondary-hover: #4338CA;
    /* Indigo 700 */
    --secondary-glow: 0 0 15px rgba(79, 70, 229, 0.3);
}

[data-theme="light"] {
    /* Clean White Theme with Warm Accents */
    --bg-color: #FFFFFF;
    /* Pure white background */
    --surface-color: #FEFEFE;
    /* Slightly off-white surfaces */
    --primary-color: #C9A227;
    /* Elegant gold */
    --primary-hover: #A8871E;
    /* Rich gold hover */
    --text-color: #2D2D2D;
    /* Dark charcoal */
    --text-muted: #7A7A7A;
    /* Medium warm gray */
    --border-color: rgba(180, 160, 130, 0.35);
    /* Warm beige border */
    --glass-bg: #FAFAFA;
    /* Very light gray */
    --glass-border: 1px solid rgba(160, 140, 110, 0.3);
    /* Visible beige-brown border */
    --shadow-sm: 0 2px 8px rgba(120, 100, 70, 0.1);
    /* Warm shadow */
    --shadow-lg: 0 8px 32px rgba(120, 100, 70, 0.12);
    /* Elegant warm shadow */
    --neon-glow: 0 0 15px rgba(201, 162, 39, 0.25);
    /* Gold glow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   CUSTOM SCROLLBAR STYLES
   ============================================ */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-hover));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--primary-color));
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Light mode scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(180, 155, 115, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9a227, #a8871e);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a8871e, #c9a227);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}

[data-theme="light"] * {
    scrollbar-color: #c9a227 rgba(180, 155, 115, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    padding-bottom: 0;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Light Mode Body - Pure white */
[data-theme="light"] body {
    background: #FFFFFF;
    background-image: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    /* Ensure fluid width */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin: 4rem 0;
    background: linear-gradient(to right, var(--text-color), #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Glassmorphism & Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: 2rem;
}

/* Light mode glass - White with elegant beige-brown border */
[data-theme="light"] .glass {
    background: #FAFAFA;
    border: 1px solid rgba(180, 155, 115, 0.35);
    box-shadow: 0 4px 16px rgba(150, 130, 100, 0.1);
}

.hero-glass {
    padding: 3rem;
    width: 100%;
    max-width: 1200px;
    /* Maximum width */
    display: block;
    margin: 0 auto;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2 columns as requested */
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.badge-pill {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 1.2rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Light mode badge-pill - White cards with beige border */
[data-theme="light"] .badge-pill {
    background: #FAFAFA;
    border: 1px solid rgba(180, 155, 115, 0.4);
    box-shadow: 0 2px 10px rgba(150, 130, 100, 0.08);
}

/* Badge Animations */
@keyframes driveIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseShield {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px var(--primary-color));
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideUpFade {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes popCheck {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.badge-pill:nth-child(1) i {
    animation: driveIn 1s ease-out forwards;
}

/* Delivery - Use Secondary Color */
.badge-pill:nth-child(2) {
    border-color: rgba(79, 70, 229, 0.3);
}

.badge-pill:nth-child(2) i {
    color: var(--secondary-color);
    animation: pulseShield 2s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.4));
}

/* Warranty */
.badge-pill:nth-child(3) i {
    animation: slideUpFade 1s ease-out forwards;
}

/* Payment - Use Secondary Color */
.badge-pill:nth-child(4) {
    border-color: rgba(79, 70, 229, 0.3);
}

.badge-pill:nth-child(4) i {
    color: var(--secondary-color);
    animation: popCheck 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.4));
}

/* Quality */

.badge-pill:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-pill i {
    color: var(--primary-color);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    margin-bottom: 0.2rem;
}

.badge-pill span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.2;
}

/* Light mode text visibility */
[data-theme="light"] .badge-pill span {
    color: #333;
}

.card-3d {
    background: var(--surface-color);
    border-radius: 1.5rem;
    overflow: hidden;
    border: var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    height: 400px;
    /* Fixed height */
}

.card-3d:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(79, 70, 229, 0.2);
    /* Secondary glow */
    border-color: var(--secondary-color);
}

/* Header (Minimal) */
.navbar {
    padding: 2rem 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn-primary,
.btn-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-primary:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.btn-block {
    width: 100%;
    display: flex;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Space between logo and text */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 40px;
}

.navbar.scrolled .logo span {
    font-size: 1.4rem;
}

.nav-links {
    display: none;
    /* Hidden in favor of bottom nav */
}

/* Bottom Navigation (iOS Dock Style) */
.bottom-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    width: auto;
    max-width: 90%;
    justify-content: center;
}

.nav-item {
    color: var(--text-muted);
    font-size: 1.4rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item:hover {
    color: #fff;
    transform: translateY(-3px);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

/* Light Mode Bottom Nav - White with beige-taupe border */
[data-theme="light"] .bottom-nav {
    background: #FFFFFF;
    border: 1px solid rgba(180, 155, 115, 0.4);
    box-shadow: 0 4px 20px rgba(150, 130, 100, 0.12);
}

[data-theme="light"] .nav-item {
    color: #6B6B6B;
}

[data-theme="light"] .nav-item:hover {
    color: #2C2C2C;
}

[data-theme="light"] .nav-item.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.btn-secondary.text-btn {
    width: auto;
    height: auto;
    border-radius: 2rem;
    padding: 0.8rem 1.5rem;
    aspect-ratio: auto;
    font-weight: 500;
    white-space: nowrap;
}

.btn-secondary.text-btn-sm {
    width: auto;
    height: auto;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    aspect-ratio: auto;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.product-image {
    height: 100%;
    /* Fill the card */
    width: 100%;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.card-3d:hover .product-image img {
    transform: scale(1.08);
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.product-text {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Forms (Floating Label Style) */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    padding: 1rem 0;
    color: #fff;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

/* Remove Autocomplete Background (Chrome/Safari) */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Auth & Checkout Containers */
.auth-container,
.checkout-container {
    max-width: 500px;
    margin: 6rem auto;
    padding: 3rem;
    border-radius: 2rem;
}

/* Cart Page Styles Removed (Now using Cart Sheet) */

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Bottom Sheet Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 85vh;
    background: var(--surface-color);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    transition: bottom 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-sheet.active {
    bottom: 0;
}

.sheet-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.close-sheet {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Product Detail in Sheet */
.sheet-product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.sheet-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--surface-color);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* Cart in Sheet */
.cart-item-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 1rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Footer Alignment & Spacing */
    footer .container>div:first-child {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 2.5rem;
        text-align: left;
        /* Ensure left align */
    }

    footer h4 {
        margin-bottom: 1rem;
    }

    footer ul {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    footer p {
        font-size: 0.95rem;
    }

    /* Mobile adjustments */
    .logo {
        gap: 8px;
        /* Reduce gap */
    }

    .logo img {
        height: 35px;
        /* Smaller logo */
    }

    .logo span {
        font-size: 1.1rem;
        /* Smaller text */
        letter-spacing: 0.05em;
        /* Slightly tighter tracking */
    }

    .header-brand-container {
        padding: 0 3rem;
        /* Reduce side padding slightly */
    }

    .bottom-nav {
        width: 90%;
        max-width: 400px;
        padding: 0.8rem 1.5rem;
        gap: 0;
        justify-content: space-between;
        bottom: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .card-3d {
        height: 280px !important;
        min-height: 0 !important;
        display: block;
    }

    .product-image {
        height: 100%;
        width: 100%;
        flex-shrink: 0;
    }

    .product-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        flex: 1;
    }

    .product-info h3 {
        font-size: 0.85rem;
        white-space: normal;
        margin-bottom: 0.2rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.6em;
    }

    .product-info .price {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .product-info .btn-secondary {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        position: absolute;
        bottom: 0.8rem;
        right: 0.8rem;
        background: var(--primary-color);
        /* Orange/Gold */
        color: #000;
        border: none;
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .badge-pill {
        padding: 0.8rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .badge-pill i {
        font-size: 1.4rem;
    }

    .badge-pill span {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .bottom-sheet {
        width: 500px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -100%;
        border-radius: 2rem 2rem 0 0;
    }

    .bottom-sheet.active {
        bottom: 0;
        transform: translateX(-50%);
    }

    /* Filter Bar Styles */
    .filter-select {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-color);
        padding: 0.8rem 1.5rem;
        border-radius: 2rem;
        font-size: 0.9rem;
        cursor: pointer;
        outline: none;
        transition: all 0.3s ease;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 0.8rem;
        padding-right: 2.5rem;
        min-width: 200px;
    }

    .filter-select:hover,
    .filter-select:focus {
        border-color: var(--primary-color);
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    }

    .filter-select option {
        background-color: var(--surface-color);
        color: var(--text-color);
        padding: 10px;
    }

    @media (max-width: 768px) {
        .filter-bar {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
            padding: 1.5rem !important;
        }

        .filter-select {
            width: 100%;
        }
    }
}

/* =========================================
   Profile Page Styles
   ========================================= */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: 350px 1fr;
        align-items: start;
    }
}

.profile-card {
    padding: 2rem;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.order-status {
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* =========================================
   Admin Dashboard Styles
   ========================================= */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface-color);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar-link {
    display: block;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .badge-pill {
        padding: 0.8rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .badge-pill i {
        font-size: 1.4rem;
    }

    .badge-pill span {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .bottom-sheet {
        width: 500px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -100%;
        border-radius: 2rem 2rem 0 0;
    }

    .bottom-sheet.active {
        bottom: 0;
        transform: translateX(-50%);
    }
}

/* Filter Styles - Global (Mobile First) */
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8rem;
    padding-right: 2.5rem;
    min-width: 200px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.filter-select option {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 10px;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 1rem !important;
    }

    .filter-group {
        width: 100%;
        display: block !important;
    }

    .filter-select {
        width: 100%;
        min-width: 0;
        /* Override the min-width from global styles */
    }
}

/* =========================================
   Profile Page Styles
   ========================================= */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: 350px 1fr;
        align-items: start;
    }
}

.profile-card {
    padding: 2rem;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.order-status {
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* =========================================
   Admin Dashboard Styles
   ========================================= */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface-color);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar-link {
    display: block;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.main-content {
    padding: 2rem;
    overflow-x: hidden;
}

/* Admin Mobile Optimization */
@media (max-width: 992px) {
    .admin-layout {
        display: block !important;
        grid-template-columns: none !important;
    }

    .sidebar {
        height: auto !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem !important;
        width: 100% !important;
        overflow-x: auto;
    }

    .sidebar nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .sidebar-link {
        margin-bottom: 0;
        padding: 0.6rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .sidebar .logo {
        margin-bottom: 1rem !important;
        text-align: center;
        display: block;
    }

    .main-content {
        padding: 1rem !important;
        width: 100% !important;
        overflow-x: hidden;
    }
}

/* Delivery Zone Styles */
.zone-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.zone-header {
    font-weight: bold;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.form-input-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .zone-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        background: rgba(255, 255, 255, 0.02);
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .zone-header {
        display: none;
        /* Hide header on mobile as labels are needed or context implies it */
    }
}

/* Cart Sheet Item Styles */
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    margin-right: auto;
    padding-right: 0.5rem;
}

.cart-item-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.qty-btn {
    background: none;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-display {
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.6rem;
    margin-left: 0.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 480px) {

    /* Advanced Mobile Cart Layout */
    .cart-item-row {
        display: grid;
        grid-template-columns: 70px 1fr auto;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "img title title"
            "img qty delete"
            "img price price";
        gap: 0.5rem 0.8rem;
        align-items: center;
        padding-bottom: 1rem;
    }

    /* Flatten the details container so children participate in the grid */
    .cart-item-details {
        display: contents;
    }

    .cart-item-img {
        grid-area: img;
        width: 70px;
        height: 70px;
        object-fit: cover;
    }

    .cart-item-title {
        grid-area: title;
        font-size: 0.95rem;
        white-space: normal;
        margin: 0;
        align-self: end;
    }

    .cart-item-price {
        grid-area: price;
        font-size: 0.9rem;
        margin: 0;
        align-self: start;
    }

    .quantity-controls {
        grid-area: qty;
        transform: none;
        padding: 0.1rem;
        justify-self: start;
        /* Align left (next to image) */
    }

    .cart-delete-btn {
        grid-area: delete;
        padding: 0.2rem;
        margin: 0;
        color: #ef4444;
    }

    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Forms */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 1.5rem;
        text-align: center;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
        overflow-x: hidden;
        /* Contain inner overflow */
    }

    /* Center Buttons */
    .profile-card form>div[style*="flex"] {
        justify-content: center;
    }

    /* Center Titles */
    .profile-card h3 {
        text-align: center;
    }

    /* Center Form Inputs and Labels */
    .form-group input,
    .form-group textarea {
        text-align: center;
    }

    .form-group label {
        left: 0;
        top: 1rem;
        transform: none;
        width: 100%;
        text-align: center;
    }

    /* Adjust floating label active state for centered text */
    .form-group input:focus~label,
    .form-group input:valid~label,
    .form-group textarea:focus~label,
    .form-group textarea:valid~label {
        top: -10px;
        left: 0;
        /* Keep centered */
        transform: none;
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
    }

    /* Force Header Alignment on Mobile */
    .logo {
        text-align: center !important;
        width: 100% !important;
        padding: 0;
    }

    .page-title {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Desktop Navigation Visibility */
@media (min-width: 768px) {
    .nav-links {
        display: flex !important;
        gap: 2rem;
        list-style: none;
        align-items: center;
    }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-color);
}

.sidebar {
    width: 260px;
    background: var(--surface-color);
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: left;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.sidebar-link.active i {
    color: #000;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem 3rem;
    min-height: 100vh;
    overflow-y: auto;
}

.main-content .page-title {
    text-align: left;
    margin: 0 0 2rem 0;
    font-size: 2rem;
}

/* Admin Table Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Base state: Hide mobile toggles on Desktop */
.close-sidebar-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* Admin Mobile Responsive - OFF CANVAS MENU */
.admin-mobile-header {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {

    /* Tablet adjustments */
    .sidebar {
        width: 220px;
        padding: 1.5rem 1rem;
    }

    .main-content {
        margin-left: 220px;
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
        height: auto !important;
        /* Allow scrolling */
        overflow: visible !important;
    }

    body {
        overflow: auto !important;
        /* Enable body scroll on mobile */
    }

    /* Mobile Header */
    .admin-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: var(--surface-color);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 900;
    }

    .mobile-logo {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .menu-toggle-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Sidebar - Off Canvas Drawer */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        /* Anchor to bottom */
        width: 280px;
        background: var(--surface-color);
        border-right: 1px solid var(--primary-color);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        display: block;
        padding: 2rem 1.5rem 10rem 1.5rem;
        /* Massive padding to be safe */
        overflow-y: scroll;
        /* Force scroll behavior */
        -webkit-overflow-scrolling: touch;
    }

    /* Override the push-to-bottom behavior on mobile to ensure flow */
    .sidebar .sidebar-link:last-of-type {
        margin-top: 2rem !important;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Header inside sidebar */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .sidebar .logo {
        margin-bottom: 0;
        font-size: 1.6rem;
    }

    .close-sidebar-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        /* Show on mobile */
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        /* Override display: none from desktop */
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Content Area */
    .main-content {
        margin-left: 0;
        padding: 1rem;
        /* Compact padding */
        padding-top: 0.5rem;
        /* Minimal gap after header */
        overflow: visible !important;
        min-height: calc(100vh - 70px);
        width: 100%;
        max-width: 100vw;
    }

    .main-content .page-title {
        font-size: 1.5rem;
        text-align: center;
        margin-top: 0;
        /* Remove top margin */
        margin-bottom: 1.5rem;
    }
}

/* Mobile Hero Optimization */
@media (max-width: 768px) {
    .hero {
        padding-top: 6rem !important;
        padding-bottom: 0 !important;
    }

    .hero-glass {
        padding: 1.25rem 0.75rem !important;
        /* Reduce padding significantly */
        margin-top: 0 !important;
        width: 100% !important;
        border-radius: 1.5rem !important;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        /* Tighter gap */
        margin-bottom: 1.25rem !important;
    }

    .badge-pill {
        padding: 0.75rem 0.5rem !important;
        /* Minimal padding inside badges */
        height: auto !important;
        border-radius: 1rem !important;
    }

    .badge-pill i {
        font-size: 1.4rem !important;
        margin-bottom: 0.25rem !important;
    }

    .badge-pill span {
        font-size: 0.75rem !important;
        line-height: 1.1;
    }

    .form-group {
        margin-bottom: 0.5rem !important;
    }

    .form-group input {
        padding: 0.75rem 0 !important;
        font-size: 1rem !important;
    }

    .btn-cta {
        padding: 0.8rem 1.5rem !important;
    }
}

/* Mobile Hero ULTRA COMPACT Fix */
@media (max-width: 768px) {
    .hero {
        padding-top: 3.5rem !important;
        /* Pull up right under header */
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .hero-glass {
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 1.5rem !important;
        padding: 1.5rem 0.5rem !important;
        /* Minimal side padding inside glass */
    }

    /* Remove any top margin from first element in glass */
    .hero-glass>*:first-child {
        margin-top: 0 !important;
    }

    .header-brand-container {
        padding-bottom: 0.5rem !important;
        /* Reduce header height spacing */
    }

    /* Ensure trust badges take full width */
    .trust-badges {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Mobile Hero Final Refinement */
@media (max-width: 768px) {
    .hero {
        padding-top: 2.5rem !important;
        /* Even higher */
        padding-left: 1.25rem !important;
        /* Add breathing room on sides */
        padding-right: 1.25rem !important;
    }

    .hero-glass {
        padding: 1.5rem 1rem !important;
        /* More internal padding */
        width: 100% !important;
    }

    .trust-badges {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 0.8rem !important;
        /* Restore some gap */
    }
}

/* Mobile 95% Width & High Position */
@media (max-width: 768px) {
    .hero {
        padding-top: 1.5rem !important;
        /* Move up significantly */
        padding-left: 0.6rem !important;
        /* Small padding for ~95% width */
        padding-right: 0.6rem !important;
    }

    .hero-glass {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
    }

    .trust-badges {
        gap: 0.8rem !important;
    }
}

/* Mobile Hero AGGRESSIVE Fix */
@media (max-width: 768px) {
    .hero .container {
        padding-left: 0.5rem !important;
        /* 8px padding */
        padding-right: 0.5rem !important;
        max-width: 100% !important;
    }

    .hero {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: -0.5rem !important;
        /* Pull up */
    }

    .hero-glass {
        padding: 1.25rem 0.5rem !important;
        width: 100% !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
        /* Stronger shadow to pop */
    }
}

/* Mobile Hero Restore Margin */
@media (max-width: 768px) {
    .hero {
        padding-top: 2.5rem !important;
        /* Restore spacing */
        margin-top: 0 !important;
    }
}

/* Mobile Filter Spacing Fix */
@media (max-width: 768px) {
    .filter-bar {
        padding: 1rem !important;
        flex-direction: column;
        align-items: stretch !important;
    }

    .filter-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem !important;
        /* Space between inputs */
        margin-bottom: 1rem;
    }

    .filter-select {
        width: 100% !important;
        margin-bottom: 0 !important;
        /* Gap handles it */
    }
}

/* Mobile Filter Force Margin Gap */
@media (max-width: 768px) {

    .filter-group select,
    .filter-select {
        margin-bottom: 15px !important;
        width: 100% !important;
        /* Removed display: block !important to allow JS toggling */
    }

    /* Ensure the container allows flow */
    .filter-group {
        display: block !important;
        /* Break flex to rely on flow/margins */
        height: auto !important;
        padding-bottom: 5px;
    }
}

/* Mobile Filter TIGHT Spacing Override */
@media (max-width: 768px) {
    .filter-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        /* Tiny gap (~2-3mm) */
        padding-bottom: 0 !important;
    }

    .filter-group select,
    .filter-select {
        margin-bottom: 0 !important;
        /* Remove margins, rely on gap */
        width: 100% !important;
    }
}

/* Mobile Filter ULTRA COMPACT (2px gap) */
@media (max-width: 768px) {
    .filter-group {
        gap: 3px !important;
        /* Extremely tight */
    }

    .filter-select {
        padding: 0.6rem 1rem !important;
        /* Smaller padding */
        font-size: 0.9rem !important;
        height: auto !important;
        margin-bottom: 0 !important;
        border-radius: 0.8rem !important;
        /* Tighter curves */
    }
}

/* Mobile Filter Redesign: Horizontal Scroll (Story Style) */
@media (max-width: 768px) {
    .filter-bar {
        padding: 0.8rem 0.5rem !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        overflow: hidden;
    }

    .filter-group {
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal alignment */
        flex-wrap: nowrap !important;
        /* No wrapping */
        gap: 0.5rem !important;
        overflow-x: auto !important;
        /* Horizontal scroll */
        padding-bottom: 0.5rem !important;
        /* Space for scrollbar (hidden) */
        width: 100% !important;
        margin-bottom: 0 !important;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .filter-group::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    /* Pill Style Selects */
    .filter-select {
        flex: 0 0 auto !important;
        /* Don't shrink */
        width: auto !important;
        /* Width based on content + padding */
        min-width: 120px !important;
        max-width: 160px;
        margin-bottom: 0 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        background: var(--surface-color) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 2rem !important;
        /* Pill shape */
        appearance: none;
        /* Remove default arrow to custom style? */
        /* Note: we keep arrow for usability but maybe style it simpler */
        background-image: none !important;
        /* Remove generic arrow if possible or keep for clarity */
        text-align: center;
    }

    /* Active State Style (Optional) */
    .filter-select:focus {
        border-color: var(--primary-color) !important;
        background: rgba(212, 175, 55, 0.1) !important;
    }
}

/* Mobile Filter TRUE Horizontal Scroll Fix */
@media (max-width: 768px) {
    .filter-bar {
        display: flex !important;
        flex-direction: row !important;
        /* Force row */
        flex-wrap: nowrap !important;
        /* No wrap */
        overflow-x: auto !important;
        /* Scrollable */
        gap: 0.5rem !important;
        padding: 0.5rem 0 !important;
        /* Minimal vertical padding */
        margin-bottom: 0.5rem !important;
        background: transparent !important;
        border: none !important;
        -webkit-overflow-scrolling: touch;
        align-items: center !important;
    }

    /* Remove the wrapper divs from layout flow so children are direct flex items of bar */
    .filter-group {
        display: contents !important;
    }

    .filter-select {
        flex: 0 0 auto !important;
        /* Fixed width, don't shrink */
        width: auto !important;
        min-width: 110px !important;
        height: 36px !important;
        /* Fixed compact height */
        padding: 0 1rem !important;
        font-size: 0.8rem !important;
        margin: 0 !important;
        border-radius: 18px !important;
        /* Full pill */
    }

    /* Hide scrollbar */
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile Filter Icon & Two-Row Layout */

/* Default Desktop: Hide icons, show Selects normal */
.mobile-icon {
    display: none;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .filter-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        /* Center the icons */
        gap: 20px !important;
        padding: 1rem !important;
        overflow: visible !important;
    }

    .mobile-icon {
        display: block !important;
    }

    /* Main & Sort: Circular Icon Buttons */
    #wrapper-main,
    #wrapper-sort {
        width: 60px !important;
        /* Nice touch size */
        height: 60px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s;
        order: 1;
        /* Top Row */
    }

    #wrapper-main:active,
    #wrapper-sort:active {
        transform: scale(0.95);
        background: rgba(212, 175, 55, 0.1) !important;
    }

    #wrapper-main i,
    #wrapper-sort i {
        font-size: 1.5rem !important;
        color: var(--primary-color);
        pointer-events: none;
    }

    /* Invisible Select Overlay */
    #wrapper-main select,
    #wrapper-sort select {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10;
    }

    /* Sub Categories: Full Width Bar Below */
    .sub-wrapper {
        width: 100% !important;
        order: 3 !important;
        /* Second Row */
        margin-top: 10px;
        animation: slideDown 0.3s ease-out;
    }

    .sub-wrapper select {
        width: 100% !important;
        padding: 0.8rem 1.5rem !important;
        height: auto !important;
        border-radius: 2rem !important;
        font-size: 0.95rem !important;
        background: var(--surface-color) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-color) !important;
        opacity: 1 !important;
        appearance: none;
        text-align: center;
        text-align-last: center;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Mobile Filter ICON FINAL CLEANUP */
@media (max-width: 768px) {

    /* Reset Select Styles inside Wrappers to be pure overlays */
    #wrapper-main select,
    #wrapper-sort select {
        opacity: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        /* Override previous 110px */
        border: none !important;
        background: transparent !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        color: transparent !important;
        /* Hide text if any leaks */
    }

    /* Ensure Wrappers are perfect circles and aligned */
    #wrapper-main,
    #wrapper-sort {
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        /* Clip content */
        margin: 0 !important;
        flex: 0 0 55px !important;
        /* Rigid flex size */
    }

    .filter-bar {
        justify-content: center !important;
        padding-top: 1rem !important;
        gap: 25px !important;
    }

    /* Ensure Sub-cat row clears nicely */
    .sub-wrapper {
        flex-basis: 100% !important;
        margin-top: 15px !important;
    }
}

/* Mobile Filter ICON FINAL CLEANUP V2 */
@media (max-width: 768px) {

    /* Target the Sort Wrapper specifically */
    #wrapper-sort {
        border-radius: 50% !important;
        width: 60px !important;
        height: 60px !important;
        overflow: hidden !important;
        /* Ensure it's effectively a circle */
        min-width: 60px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    #wrapper-sort select {
        /* Force text hidden */
        color: transparent !important;
        text-indent: -9999px !important;
        /* Move text away */
        opacity: 0 !important;
    }

    /* Ensure the container is aligned */
    .filter-bar {
        justify-content: center !important;
        gap: 2rem !important;
    }
}

/* Mobile Filter ICON FINAL CLEANUP V3 - FORCE */
@media (max-width: 768px) {

    /* 1. Force Wrappers to be flexible rows */
    .filter-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        padding-top: 10px !important;
    }

    /* 2. Target Wrappers Specifically */
    div#wrapper-main,
    div#wrapper-sort {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        order: 1 !important;
    }

    /* 3. Force Selects Invisible */
    div#wrapper-main select,
    div#wrapper-sort select {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        visibility: visible !important;
        /* Must be visible to click */
        font-size: 0 !important;
        /* Kill text size */
        color: transparent !important;
        background: transparent !important;
        border: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    /* 4. Ensure Icons are visible and centered */
    div#wrapper-main i,
    div#wrapper-sort i {
        font-size: 1.5rem !important;
        color: var(--primary-color) !important;
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        pointer-events: none !important;
        display: block !important;
        z-index: 1 !important;
    }

    /* 5. Sub Category stays below */
    .sub-wrapper {
        flex-basis: 100% !important;
        order: 3 !important;
        margin-top: 15px !important;
    }
}

/* =========================================
   Mobile UI Fixes for Bottom Sheets (FINAL V3)
   ========================================= */
@media (max-width: 768px) {

    /* Optimize Sheet Height & Layout */
    .bottom-sheet {
        height: auto !important;
        /* Let content dictate height */
        max-height: 85vh !important;
        min-height: 40vh;
        /* Ensure some presence */
        display: flex !important;
        flex-direction: column !important;
    }

    .sheet-content {
        padding: 1rem 1.25rem !important;
        min-height: 300px !important;
        /* Force minimum height for content area */
        overflow-y: auto !important;
        color: white !important;
        /* Ensure text visible */
        display: block !important;
        /* Prevent flex overlap issues */
    }

    /* Force text colors inside sheet */
    .sheet-content * {
        color: white !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sheet-content h1,
    .sheet-content h2,
    .sheet-content h3,
    .sheet-content p,
    .sheet-content span,
    .sheet-content div {
        color: white !important;
    }

    /* Exceptions */
    .sheet-content .sheet-price-display {
        color: var(--primary-color) !important;
    }

    .sheet-content .sheet-price-display span {
        color: #888 !important;
        /* Strikethrough price */
    }

    /* Fix Product Modal Content */
    .sheet-product-img {
        display: block !important;
        height: auto !important;
        max-height: 250px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 1rem auto !important;
        object-fit: contain !important;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 1rem !important;
    }

    /* CART SHEET: Fix Grid vs Flex Conflict */
    /* Override grid settings from lines 1560+ */
    .cart-item-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }

    /* Reset children */
    .cart-item-img {
        width: 70px !important;
        height: 70px !important;
        flex-shrink: 0 !important;
        border-radius: 0.5rem !important;
        margin: 0 !important;
        /* Remove margin-right since we use gap */
        grid-area: auto !important;
    }

    .cart-item-details {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.2rem !important;
    }

    .cart-item-title {
        font-size: 0.95rem !important;
        margin: 0 !important;
        color: #fff !important;
    }

    .cart-item-price {
        font-size: 0.9rem !important;
        color: var(--primary-color) !important;
        margin: 0 !important;
    }

    .quantity-controls {
        transform: none !important;
        grid-area: auto !important;
        margin-top: 0.5rem !important;
        align-self: flex-start !important;
    }

    .cart-delete-btn {
        grid-area: auto !important;
        margin-left: 0.5rem !important;
    }

    .cart-item-row:last-child {
        border-bottom: none;
    }
}