:root {
    --primary: #111827;
    --primary-hover: #374151;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-radius: 4px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-main); line-height: 1.5; }
a { color: var(--text-main); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Top Banner */
.top-banner { 
    background: linear-gradient(90deg, #d4af37, #ff8e53, #ec4899, #8b5cf6, #d4af37); 
    background-size: 400% 100%; 
    animation: excitedBG 15s ease infinite; 
    color: white; 
    padding: 0.6rem 0; 
    overflow: hidden; 
    white-space: nowrap; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: flex;
}
@keyframes excitedBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.marquee-content { 
    display: flex; 
    flex-shrink: 0;
    width: max-content; 
    gap: 4rem; 
    padding-right: 4rem;
    animation: marquee 12s linear infinite; 
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Main Header */
.header { background: var(--card-bg); }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; }
.logo-text { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-main); }
.logo-text .dot { color: #7B855D; }
.search-container { flex-grow: 1; max-width: 500px; margin: 0 3rem; position: relative; }
.search-input { width: 100%; padding: 0.75rem 1.5rem; padding-right: 3rem; border: 1px solid var(--border-color); border-radius: 50px; outline: none; transition: border-color 0.2s; font-size: 0.95rem; }
.search-input:focus { border-color: #7B855D; }
.search-btn { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; }
.search-btn:hover { color: var(--text-main); }
.search-results-dropdown { position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.5rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); z-index: 50; max-height: 400px; overflow-y: auto; }
.search-result-item { display: block; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-color); }
.search-result-name { font-weight: 500; color: var(--text-main); font-size: 0.95rem; }
.search-result-empty { padding: 1rem 1.5rem; color: var(--text-muted); text-align: center; font-size: 0.95rem; }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.action-link { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; }
.action-link:hover { color: var(--text-main); text-decoration-color: currentColor; }
.icon-link { color: var(--text-muted); transition: color 0.2s; display: flex; }
.icon-link:hover { color: var(--text-main); }
.cart-link { background-color: #8C7861; color: white; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; transition: background-color 0.2s; }
.cart-link:hover { background-color: #726250; }
.cart-badge { position: absolute; top: -4px; right: -4px; background-color: #111827; color: white; font-size: 0.7rem; font-weight: 600; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Bottom Nav */
.bottom-nav { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.nav-menu { display: flex; justify-content: center; gap: 3.5rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; padding: 1rem 0; }
.nav-link { color: #6B7280; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.nav-item:hover .nav-link { color: var(--text-main); }
.submenu { display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid var(--border-color); box-shadow: var(--shadow); border-radius: var(--border-radius); min-width: 220px; z-index: 50; padding: 0.5rem 0; }
.nav-item:hover .submenu { display: block; animation: fadeIn 0.2s ease-in-out; }
.submenu li a { display: block; padding: 0.75rem 1.5rem; color: var(--text-main); font-size: 0.9rem; transition: background 0.2s; }
.submenu li a:hover { background: var(--bg-color); color: #7B855D; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Header Utilities */
.mobile-menu-left { display: none; }
.icon-btn { background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--text-main); display: flex; align-items: center; justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; font-weight: 500; border-radius: var(--border-radius); cursor: pointer; transition: all 0.2s; border: none; font-size: 0.875rem; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-accent { background-color: var(--accent); color: white; }
.btn-accent:hover { background-color: var(--accent-hover); }
.btn-outline { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-muted); }

/* Typography */
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.025em; }
h2 { font-size: 1.875rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card { background: var(--card-bg); border-radius: var(--border-radius); border: 1px solid var(--border-color); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; }

/* Product Grid */
.product-image { aspect-ratio: 1; object-fit: cover; width: 100%; border-bottom: 1px solid var(--border-color); }
.product-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.product-price { font-weight: 600; color: var(--primary); }
.product-compare-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.875rem; margin-left: 0.5rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-header { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: flex-end; }

/* Hero — full-width background slider (fade) */
.hero-slider {
    position: relative;
    min-height: clamp(28rem, 78vh, 54rem);
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.hero-slider__slides {
    position: absolute;
    inset: 0;
    background: #44403c;
    pointer-events: none;
}
.hero-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
    will-change: opacity;
}
.hero-slider__slide.is-active {
    opacity: 1;
}
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.12) 0%,
        rgba(15, 15, 15, 0.16) 50%,
        rgba(15, 15, 15, 0.26) 100%
    );
}
.hero-slider__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding: 4.5rem 0 5.5rem;
}
.hero-slider__content {
    max-width: 44rem;
    margin-inline: auto;
}
.hero-slider__content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    line-height: 1.1;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 20px rgba(0, 0, 0, 0.35);
}
.hero-slider__content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 2rem;
    max-width: 36rem;
    margin-inline: auto;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero-slider__cta {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
@media (max-width: 768px) {
    .hero-slider {
        min-height: clamp(24rem, 70vh, 42rem);
    }
    .hero-slider__inner {
        padding: 3.5rem 0 4.5rem;
    }
}

/* Footer */
.footer { background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 4rem 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-title { font-weight: 600; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* Product Detail */
.product-gallery img { border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.product-info { padding: 2rem 0; }
.variant-selector { margin-bottom: 2rem; }
.variant-label { font-weight: 500; margin-bottom: 0.5rem; display: block; }
.variant-options { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.variant-option { border: 1px solid var(--border-color); padding: 0.5rem 1rem; border-radius: var(--border-radius); cursor: pointer; transition: all 0.2s; }
.variant-option:hover { border-color: var(--primary); }
.variant-option.active { border-color: var(--primary); background: var(--primary); color: white; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-weight: 500; }
.cart-table td { padding: 1.5rem 1rem; border-bottom: 1px solid var(--border-color); }
.cart-summary { background: var(--card-bg); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.summary-total { font-size: 1.25rem; font-weight: 600; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .desktop-only { display: none !important; }
    .desktop-search { display: none; }
    
    /* Header layout */
    .mobile-menu-left { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
    .header-main { position: relative; display: flex; align-items: center; }
    .logo-text { flex: 1; text-align: center; font-size: 1.4rem; letter-spacing: 0.15em; }
    .header-actions { flex: 1; justify-content: flex-end; gap: 0.75rem; }
    
    /* Cart link adjusted size */
    .cart-link { width: 38px; height: 38px; }

    /* Mobile Search Active State */
    .desktop-search.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        z-index: 45;
        margin: 0;
        max-width: 100%;
    }

    /* Mobile Drawer / Bottom Nav */
    .bottom-nav {
        display: none;
        position: fixed;
        top: 110px; /* Approximate header height to show beneath it */
        left: 0; right: 0; bottom: 0;
        background: white;
        z-index: 40;
        overflow-y: auto;
        border: none;
    }
    .bottom-nav.active {
        display: block;
        border-top: 1px solid var(--border-color);
    }
    
    /* Mobile nav menu layout */
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }
    .nav-item {
        border-bottom: 1px solid var(--border-color);
        padding: 0;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .nav-link {
        padding: 1.5rem 0;
        justify-content: space-between;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-main);
    }
    
    .nav-link svg.chevron-down {
        transform: rotate(-90deg);
    }
    
    /* Reset submenu styles for mobile */
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 1rem 1rem;
        min-width: auto;
    }
    
    /* Mobile footer adjustments */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
