*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #111111;
    --color-secondary: #ffffff;
    --color-accent: #c5a880;
    --color-accent-dark: #b89742;
    --color-text-dark: #222222;
    --color-text-light: #666666;
    --color-bg-light: #faf8f5;
    --color-border: #e8e3db;
    --color-error: #b22222;
    --color-success: #2e8b57;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Fluid Layout & Spacing */
    --container-padding: clamp(16px, 4vw, 80px);
    --section-padding: clamp(40px, 8vh, 100px);
    --font-base: clamp(13px, 1.5vw, 16px);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
h1 { font-size: clamp(28px, 4.5vw, 56px); font-family: var(--font-heading); font-weight: 500; line-height: 1.2; }
h2 { font-size: clamp(24px, 3.5vw, 42px); font-family: var(--font-heading); font-weight: 500; line-height: 1.2; }
h3 { font-size: clamp(18px, 2.5vw, 28px); font-family: var(--font-heading); font-weight: 500; line-height: 1.2; }
h4 { font-size: clamp(14px, 2vw, 20px); font-family: var(--font-heading); font-weight: 500; line-height: 1.2; }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

.section { padding: clamp(2.5rem, 6vw, 6rem) 0; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid { gap: 30px; } }

.grid-responsive-4-2-1 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .grid-responsive-4-2-1 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid-responsive-4-2-1 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-responsive-4-2-1 { grid-template-columns: 1fr; } }

.grid-responsive-3-2-1 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid-responsive-3-2-1 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-responsive-3-2-1 { grid-template-columns: 1fr; } }

.grid-responsive-2-1 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .grid-responsive-2-1 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.hide-sm { @media (max-width: 768px) { display: none !important; } }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.announcement-bar {
    background: #d4af37;
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    z-index: 1100;
}

.header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

.nav-container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 45px; width: auto; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.nav-links a.active { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.action-btn { position: relative; padding: 8px; font-size: 1.2rem; }
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff007f;
    color: #fff;
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-menu-toggle { display: none; font-size: 1.5rem; }

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: min(85vw, 320px);
    height: 100%;
    background: #fff;
    z-index: 10000 !important; /* Extremely high z-index to be on top */
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 80px 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    visibility: hidden;
}
.mobile-nav-drawer.open { 
    right: 0; 
    visibility: visible;
}
.mobile-nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.mobile-nav-drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 25px; }
.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-dark);
    letter-spacing: 1px;
}

.drawer-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    color: var(--color-text-dark);
    z-index: 10001;
}

/* Old Hero Styles Removed - Consolidated at the end of the file */

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */
.product-card { transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f8f6f0;
}
.product-image { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.product-card:hover .product-image { transform: scale(1.08); }

.product-quick-add {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 12px;
    font-weight: 600;
    transform: translateY(100%);
    transition: 0.3s;
}
.product-card:hover .product-quick-add { transform: translateY(0); }

.product-info { padding: 15px 0; }
.product-cat { font-size: 0.7rem; text-transform: uppercase; color: var(--color-text-light); letter-spacing: 1px; display: block; margin-bottom: 5px; }
.product-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
.product-price { font-weight: 700; color: var(--color-primary); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    min-height: 44px;
    min-width: auto;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: 0.3s;
    box-sizing: border-box;
}
.btn-primary { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-secondary { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--color-primary); color: #fff; padding: 80px 0 30px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #aaa; font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-accent); }
.social-icon { font-size: 1.2rem; color: #fff; transition: 0.3s; }
.social-icon:hover { color: var(--color-accent); transform: translateY(-3px); }

/* ==========================================================================
   SHOP PAGE SPECIFIC
   ========================================================================== */
.filter-sidebar { background: #fff; }
@media (max-width: 1024px) {
    .filter-sidebar {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 2005;
        padding: 30px;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
        border-radius: 20px 20px 0 0;
        transition: 0.4s;
    }
    .filter-sidebar.open { bottom: 0; }
}
.mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    font-weight: 600;
}
@media (max-width: 1024px) { .mobile-filter-trigger { display: flex; } }

.hero-slider {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -1px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hero-slide.active {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.75) 40%,
        rgba(0,0,0,0.2) 70%,
        rgba(0,0,0,0.0) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: min(100%, 540px);
    padding: 100px 0;
}
.hero-subtitle {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c9a84c;
    font-weight: 500;
    margin-bottom: 18px;
    display: block;
}
.hero-title {
    font-size: clamp(36px, 4.5vw, 60px) !important;
    line-height: 1.12;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
    max-width: min(100%, 400px);
}
.hero-btn-wrap .btn-primary {
    background: #c9a84c;
    color: #000 !important;
    border: none;
    padding: 13px 32px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}
.hero-btn-wrap .btn-secondary {
    padding: 13px 32px;
    font-size: 11px;
    letter-spacing: 2px;
}
@media (max-width: 768px) {
    .hero-slider {
        min-height: 100svh;
        border-radius: 0 0 16px 16px;
        margin-top: -1px;
    }
    .hero-slide.active {
        border-radius: 0 0 16px 16px;
    }
    .hero-bg-img {
        background-position: 75% center;
    }
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.3) 0%,
            rgba(0,0,0,0.7) 50%,
            rgba(0,0,0,0.95) 100%
        );
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 40px 20px 60px;
    }
    .hero-description {
        max-width: 100%;
    }
    .hero-btn-wrap {
        justify-content: center;
    }
}

/* ==========================================================================
   SIZE SELECTOR BUTTONS
   ========================================================================== */
.size-btn {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.size-btn:hover {
    border-color: var(--color-primary);
}
.size-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.size-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9f9f9;
}
