/* ========================================= */
/* LUXURY SHOP TYPOGRAPHY & BASE             */
/* ========================================= */


/* ========================================= */
/* FIXED NAV OVERLAP FIX (Shop & Product)    */
/* ========================================= */

/* Push main content down to clear the fixed solid glass header */
body.shop-body main {
    padding-top: 110px; 
}

/* Reset any previously added responsive padding on the hero sections 
   so they don't double up with the main padding */
.shop-hero,
.p-detail-hero {
    padding-top: 0 !important; 
}

/* Adjust mobile padding to match smaller header height */
@media (max-width: 768px) {
    body.shop-body main {
        padding-top: 40px;
    }
}


.shop-body {
    font-family: 'Inter', sans-serif;
    background: #F7F4F0;
    color: #1F1F1B;
    overflow-x: hidden;
    /* padding-top is handled by the main element below */
}

h1, h2, h3, h4, .hero-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.overline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #A87852;
    margin-bottom: 1rem;
    display: block;
}

/* Glassmorphism Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Notice Bar */
.notice-bar {
    background: #1F1F1B;
    color: #F7F4F0;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease;
    border-radius: 12px; /* Added: Makes it look like a premium stamp */
}
.notice-bar span { margin: 0 1rem; }
.notice-bar .dot { color: #A87852; }

/* Header Fix: Solid Glass from start */
.site-header {
    background: rgba(247, 244, 240, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}
.nav-link { color: #1F1F1B !important; }
.nav-link.active { color: #2C4A2F !important; }
.logo-title, .logo-subtitle { color: #1F1F1B !important; }


/* Cart Icon Enlargement */
.cart-toggle {
    font-size: 1.8rem;
    color: #1F1F1B;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}
.cart-toggle .cart-badge {
    position: absolute; top: -5px; right: -8px;
    background: #A87852; color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    display: none;
}

/* ========================================= */
/* SPATIAL 3D CINEMATIC HERO                 */
/* ========================================= */
.shop-hero {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 90vh;
    align-items: center;
    padding: 0 5%;
    gap: 4rem;
    perspective: 2000px;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
    color: #1F1F1B;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 3rem;
    color: #4A3B2A;
}

.hero-ctas { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.btn-lux-primary {
    background: #1F1F1B; color: #F7F4F0;
    padding: 1rem 2.5rem; border-radius: 4px;
    font-weight: 500; transition: all 0.3s ease;
    border: 1px solid #1F1F1B; text-decoration: none; display: inline-block;
}
.btn-lux-primary:hover { background: #2C4A2F; border-color: #2C4A2F; transform: translateY(-2px); }

.btn-lux-ghost {
    background: transparent; color: #1F1F1B;
    padding: 1rem 2.5rem; border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px; font-weight: 500; transition: all 0.3s ease;
    text-decoration: none; display: inline-block;
}
.btn-lux-ghost:hover { background: rgba(0,0,0,0.05); border-color: #1F1F1B; }

/* 3D Hero Visual */
.hero-visual {
    position: relative;
    height: 80vh;
    transform-style: preserve-3d;
}

.hero-img-wrap {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Floating Glass Info Card in Hero */
.floating-info-card {
    position: absolute;
    bottom: 40px; left: -40px;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateZ(80px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-info-card .info-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #A87852; }
.floating-info-card h4 { font-size: 1.5rem; margin: 0.25rem 0; font-family: 'Cormorant Garamond', serif; }
.floating-info-card p { font-weight: 600; color: #2C4A2F; }

/* Ambient Glowing Orb behind Hero Image */
.hero-orb {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.4), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    top: -50px; right: -50px;
    transform: translateZ(-150px);
    pointer-events: none;
}

/* ========================================= */
/* FEATURE BAR & SHIPPING STRIP              */
/* ========================================= */
.feature-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 2.5rem 5%;
    background: #F7F4F0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.85rem; letter-spacing: 0.05em; color: #4A3B2A; }
.feature-item i { font-size: 32px; color: #2C4A2F; transition: transform 0.3s ease; }
.feature-item:hover i { transform: translateY(-5px); }

.shipping-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem 5%;
    background: #1F1F1B;
    color: #F7F4F0;
    text-align: center;
}
.shipping-item { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 0.9rem; }
.shipping-item i { color: #E8B84B; transition: transform 0.3s ease; }
.shipping-item:hover i { transform: rotate(10deg); }

/* ========================================= */
/* ASYMMETRICAL CATEGORY GRID                */
/* ========================================= */
.section-lux { padding: 6rem 5%; }
.section-header-lux { text-align: center; margin-bottom: 4rem; }
.section-header-lux h2 { font-size: clamp(2.5rem, 5vw, 4rem); }

.cat-magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 400px 400px;
    gap: 1.5rem;
}

.cat-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.cat-card.large { grid-column: span 2; grid-row: span 2; }
.cat-card.wide { grid-column: span 2; }

.cat-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cat-card:hover img { transform: scale(1.08); }

.cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; color: white;
}
.cat-overlay h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.cat-overlay span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }

/* ========================================= */
/* LOYALTY & PRODUCT GRID                    */
/* ========================================= */
.loyalty-grid {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 1.5rem;
    height: 400px;
}
.loyalty-main {
    padding: 3rem;
    display: flex; flex-direction: column; justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #2C4A2F, #1F1F1B);
    color: #F7F4F0;
}
.loyalty-main h3 { font-size: 2.5rem; margin-bottom: 1rem; }
.loyalty-main p { margin-bottom: 2rem; opacity: 0.9; }

.loyalty-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.5rem; }
.benefit-card {
    padding: 2rem;
    border-radius: 24px;
    display: flex; flex-direction: column; justify-content: center;
}
.benefit-card i { font-size: 2rem; color: #2C4A2F; margin-bottom: 1rem; }
.benefit-card h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Product Grid */
.shop-controls { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.search-input {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    min-width: 250px;
}
.filter-pills { display: flex; gap: 1rem; flex-wrap: wrap; }
.pill {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.pill.active, .pill:hover { background: #1F1F1B; color: #F7F4F0; border-color: #1F1F1B; }

/* ========================================= */
/* SPATIAL 3D PRODUCT GRID                   */
/* ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    perspective: 1500px;
}

.product-card {
    background: transparent;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    position: relative;
}

/* The Frame around the Image */
.p-img-wrap {
    height: 400px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

/* Earthy Neon Glow on Hover */
.product-card:hover .p-img-wrap {
    box-shadow: 
        0 0 25px rgba(107, 143, 113, 0.4), 
        0 0 50px rgba(232, 184, 75, 0.15), 
        0 25px 50px rgba(0,0,0,0.1);
}

.p-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 14px; 
    transition: transform 0.8s var(--ease-premium);
}
.product-card:hover .p-img-wrap img { transform: scale(1.05); }

/* Adjust overlays to sit inside the new 15px frame */
.p-glare {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-radius: 14px;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.4), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}
.product-card:hover .p-glare { opacity: 1; }

.p-badge {
    position: absolute; top: 25px; left: 25px; 
    z-index: 5;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem; font-weight: 600;
    transform: translateZ(40px);
}

/* View Details Overlay (Adjusted to frame) */
.view-details-overlay {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-radius: 14px;
    background: rgba(31, 31, 27, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
    text-decoration: none;
}
.product-card:hover .view-details-overlay { opacity: 1; }

.view-details-overlay span {
    background: #F7F4F0;
    color: #1F1F1B;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .view-details-overlay span { transform: translateY(0); }

/* Add Item Button (Moves to info section) */
.add-item-btn {
    display: block;
    text-align: center;
    width: 100%;
    background: transparent;
    color: #1F1F1B;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 0.85rem;
    border-radius: 4px;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.add-item-btn:hover {
    background: #1F1F1B;
    color: #F7F4F0;
    border-color: #1F1F1B;
}

.p-info { text-align: left; transform: translateZ(30px); }
.p-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #A87852; }
.p-name { font-size: 1.5rem; margin: 0.5rem 0; }
.p-name a { color: inherit; text-decoration: none; }
.p-price { font-size: 1.1rem; font-weight: 600; color: #1F1F1B; }

/* ========================================= */
/* FLOATING CART & GLASS DRAWER              */
/* ========================================= */
.floating-cart {
    position: fixed; bottom: 24px; right: 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex; align-items: center; gap: 1rem;
    font-weight: 600; color: #1F1F1B; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-premium);
}
.floating-cart.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-cart i { font-size: 1.5rem; }
.floating-cart .cart-badge {
    background: #A87852; color: #fff;
    padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem;
}

.cart-overlay, .checkout-overlay, .loyalty-overlay, .promo-overlay {
    position: fixed; inset: 0;
    background: rgba(31,31,27,0.3);
    backdrop-filter: blur(12px);
    z-index: 2000; /* Increased to sit above header */
    visibility: hidden; opacity: 0;
    transition: all 0.4s ease;
}
.cart-overlay.active, .checkout-overlay.active, .loyalty-overlay.active, .promo-overlay.active { visibility: visible; opacity: 1; }

.cart-drawer {
    position: absolute; top: 0; right: 0;
    height: 100%; width: 450px;
    background: rgba(247,244,240,0.9);
    backdrop-filter: blur(40px) saturate(180%);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-premium);
}
.cart-overlay.active .cart-drawer { transform: translateX(0); }

.cart-header { padding: 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cart-header h3 { font-size: 1.5rem; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 2rem; }
.cart-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.cart-item img { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; }
.cart-footer { padding: 2rem; border-top: 1px solid rgba(0,0,0,0.05); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }

/* Generic Glass Modal (Checkout, Loyalty, Promo) */
.glass-modal {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(40px) saturate(180%);
    padding: 3rem; border-radius: 24px;
    transition: transform 0.4s var(--ease-premium);
}
.checkout-overlay.active .glass-modal, 
.loyalty-overlay.active .glass-modal, 
.promo-overlay.active .glass-modal { transform: translate(-50%, -50%) scale(1); }

/* FIX: HIDE UGLY SCROLLBARS GLOBALLY */
.cart-items, .glass-modal, .cart-drawer, .checkout-overlay, .loyalty-overlay, .promo-overlay {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.cart-items::-webkit-scrollbar, 
.glass-modal::-webkit-scrollbar,
.cart-drawer::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Forms */
.premium-form { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #4A3B2A; }
.form-group input, .form-group textarea {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1rem; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 1rem;
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal-up { opacity: 0; }
.reveal-up.visible { animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }





/* ========================================= */
/* TABLET FIX (1024px and smaller)           */
/* ========================================= */
@media (max-width: 1024px) {
    /* 1. Fix Loyalty Section: Stack vertically and center */
    .loyalty-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 1.5rem !important;
    }
    
    .loyalty-main {
        padding: 2.5rem !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .loyalty-main .btn-lux-primary {
        align-self: center !important;
    }

    .loyalty-side {
        grid-template-rows: auto !important;
        gap: 1.5rem !important;
    }
    
    .benefit-card {
        padding: 1.5rem !important;
        text-align: left !important;
    }

    /* 2. Fix Shop Controls: Stack search and filters nicely */
    .shop-controls {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .search-input {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .filter-pills {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* 3. Fix Product Grid: 2 columns for premium tablet spacing */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    /* 4. Fix Hero Section: Stack vertically on tablet */
    .shop-hero {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding-top: 120px !important; /* Clear fixed nav */
        padding-bottom: 4rem !important;
        gap: 2rem !important;
    }
    
    .hero-ctas {
        justify-content: center !important;
    }
    
    .hero-desc {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-visual {
        height: 50vh !important;
        margin-top: 2rem !important;
    }
}



/* ========================================= */
/* PREMIUM PROMO AD (Apple-Inspired Glass)   */
/* ========================================= */
.promo-card {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transition: transform 0.4s var(--ease-premium);
    display: flex;
    flex-direction: column;
}

.promo-overlay.active .promo-card {
    transform: translate(-50%, -50%) scale(1);
}

.promo-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.promo-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}
.promo-close:hover { background: rgba(255,255,255,0.4); }

/* The Dark Glass Content Area */
.promo-content {
    background: rgba(31, 31, 27, 0.7); /* Dark Charcoal Glass */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 2.5rem;
    color: #F7F4F0;
    margin-top: -40px; /* Overlaps the image slightly */
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem 0;
}

.promo-desc {
    font-size: 1rem;
    color: rgba(247, 244, 240, 0.8);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.promo-btn {
    background: #F7F4F0;
    color: #1F1F1B;
    border: none;
    align-self: center;
    padding: 1rem 2.5rem;
}
.promo-btn:hover { background: #E8B84B; color: #1F1F1B; }