/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6B1D2F;     /* Luxury Brand Burgundy */
    --primary-light: #8B2C42;     /* Lighter Burgundy for hover/accent */
    --secondary-color: #bca374;   /* Warm Champagne Gold */
    --secondary-light: #d8c49f;   /* Light Champagne Gold */
    --accent-color: #D4AF37;      /* Metallic Accent Gold */
    --text-dark: #2A1A1C;         /* Deep Warm Obsidian/Brown-Black */
    --text-light: #706062;        /* Warm Taupe/Muted Brown-Gray */
    --border-color: #ebdcd7;      /* Soft Rose-tinted Beige Border */
    --pearl: #FAF6F2;             /* Premium warm cream background */
    --pearl-rgb: 250, 246, 242;
    --bg-light: var(--pearl);
    --white: #ffffff;
    --success: #438a5e;           /* Sage green success tone */
    --danger: #a63a50;            /* Soft rose-crimson danger tone */
    --warning: #d97736;
    --shadow-soft: 0 4px 20px rgba(42, 26, 28, 0.05);
    --shadow-medium: 0 12px 35px rgba(42, 26, 28, 0.08);
    --shadow-hover: 0 20px 40px rgba(107, 29, 47, 0.12);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.2s ease;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--pearl);
}

h1, h2, h3, h4, h5, h6, .hero-title, .logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Promo Ticker */
.promo-ticker {
    overflow: hidden;
    background: var(--primary-color);
    color: var(--white);
    white-space: nowrap;
}

.promo-ticker-content {
    display: inline-flex;
    min-width: max-content;
    gap: 80px;
    padding: 8px 40px;
    animation: promoTickerScroll 24s linear infinite;
}

.promo-ticker:hover .promo-ticker-content {
    animation-play-state: paused;
}

@keyframes promoTickerScroll {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Header Styles */
.top-bar {
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a,
.social-links a {
    color: var(--white);
    margin-right: 20px;
    transition: all 0.3s ease;
}

.contact-info a i {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-right: 5px;
}

.contact-info a:hover,
.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-info a:hover i {
    transform: scale(1.2);
}

.social-links a {
    margin-right: 15px;
    font-size: 16px;
    display: inline-block;
}

.social-links a i {
    transition: all 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Header Container & Navbar */
.header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: var(--transition-smooth);
}

.navbar {
    background: var(--pearl);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    transition: var(--transition-quick);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover i {
    transform: rotate(90deg);
}

.logo-img {
    height: 60px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.04);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.nav-menu a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.02em;
    transition: var(--transition-quick);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    left: 0;
}

/* Sticky Header Scrolled State */
.header {
    transition: var(--transition-smooth);
}

.header-scrolled .top-bar {
    margin-top: -38px;
    opacity: 0;
    pointer-events: none;
}

.header-scrolled .navbar {
    background: rgba(250, 246, 242, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(42, 26, 28, 0.03);
    border-bottom: 1px solid rgba(107, 29, 47, 0.05);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-medium);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    gap: 40px;
    min-width: 520px;
    z-index: 100;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-column {
    flex: 1;
}

.dropdown-column h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
}

.dropdown-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Nav Icons */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link,
.search-toggle {
    position: relative;
    font-size: 20px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: inline-block;
}

.icon-link:hover,
.search-toggle:hover {
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.1);
}

.icon-link i,
.search-toggle i {
    transition: all 0.3s ease;
}

/* User Display */
.user-display {
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.user-account-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-link:active,
.search-toggle:active {
    transform: scale(0.95);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.icon-link:hover .badge {
    transform: scale(1.2);
    animation: none;
}

/* Search Bar */
.search-bar {
    background: var(--bg-light);
    padding: 20px 0;
    display: none;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px 0 0 30px;
    font-size: 15px;
    outline: none;
}

.search-form input:focus {
    border-color: var(--primary-color);
}

.search-form button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0 30px 30px 0;
    font-size: 16px;
}

.quick-search {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.quick-search a {
    color: var(--primary-color);
    margin: 0 5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(42, 26, 28, 0.08);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 26, 28, 0.25) 0%, rgba(42, 26, 28, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition-quick);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-quick);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 29, 47, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 29, 47, 0.12);
}

.btn-light {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background: var(--pearl);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-large {
    padding: 18px 45px;
    font-size: 15px;
}

/* Sections */
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: var(--pearl);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.category-image {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 20px;
    padding: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.category-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 8px;
    transition: var(--transition-quick);
}

/* Hover & active tap effects */
.category-card:hover,
.category-card:active,
.category-card.touched {
    transform: translateY(-8px);
}

.category-card:hover .category-image,
.category-card:active .category-image,
.category-card.touched .category-image {
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.category-card:hover .category-image img,
.category-card:active .category-image img,
.category-card.touched .category-image img {
    transform: scale(1.08);
}

.category-card:hover h3,
.category-card:active h3,
.category-card.touched h3 {
    color: var(--primary-color);
}

/* Mobile Category Optimization */
@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
        margin-bottom: 12px;
    }
    
    .category-card h3 {
        font-size: 17px;
    }
}

/* Products Grid */
.featured-products {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    transition: opacity 0.2s ease;
}

.products-loader {
    position: absolute;
    inset: 88px 0 0;
    min-height: 220px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    background: rgba(var(--pearl-rgb), 0.38);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    backdrop-filter: blur(2px);
}

.products-loader.active {
    opacity: 1;
    visibility: visible;
}

.products-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 132px;
    min-height: 112px;
    padding: 20px 24px;
    color: var(--text-dark);
    font-weight: 600;
    background: rgba(var(--pearl-rgb), 0.78);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(45, 55, 72, 0.12);
    backdrop-filter: blur(8px);
}

.products-loader-text {
    font-size: 13px;
    color: var(--text-light);
}

.spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.18);
    border-top-color: var(--primary-color);
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 1.8s;
    }
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(107, 29, 47, 0.03);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: #fbf9f6;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.05em;
    z-index: 2;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--pearl-rgb), 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.out-of-stock-badge {
    background: rgba(239, 68, 68, 0.95);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-card.out-of-stock .product-image img {
    opacity: 0.5;
    filter: grayscale(100%);
}

.product-card.out-of-stock .add-to-cart-btn {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-light);
}

.product-card.out-of-stock .add-to-cart-btn:hover {
    background: var(--text-light);
    transform: none;
}

.product-card .product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    z-index: 5;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: var(--transition-quick);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(107, 29, 47, 0.25);
}

.action-btn i {
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn:active {
    transform: scale(0.95);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: var(--transition-quick);
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    color: var(--accent-color);
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-light);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: auto;
}

.current-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(107, 29, 47, 0.08);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-quick);
}

.add-to-cart-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(107, 29, 47, 0.15);
}

/* Collections Banner */
.collections-banner {
    background: var(--pearl);
    padding: 80px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.banner-card {
    background: var(--white);
    border-radius: 20px;
    padding: 55px 40px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 29, 47, 0.02) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.banner-card:hover::before {
    opacity: 1;
}

.banner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.banner-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.banner-card p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.banner-card .btn {
    position: relative;
    z-index: 2;
}

/* Newsletter */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, #4A1220 0%, #2A1A1C 100%); /* Deep burgundy charcoal gradient */
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.newsletter::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 29, 47, 0.2) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

.newsletter-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.newsletter h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--white);
    margin-bottom: 15px;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.newsletter p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-size: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition-quick);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    outline: none;
}

.newsletter-form button {
    padding: 16px 35px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    transition: var(--transition-quick);
}

.newsletter-form button:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

/* Footer */
.footer {
    background: #1c1012; /* Very dark warm brown-black */
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(107, 29, 47, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 25px;
    color: var(--accent-color); /* Gold heading */
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-quick);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 32px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--text-light);
}

/* Products Page */
.products-page {
    padding: 40px 0 80px;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Custom scrollbar for filter sidebar */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.close-filters {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    line-height: 1;
}

.close-filters:hover {
    color: var(--primary-color);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter-header h3 {
    font-size: 22px;
}

.clear-filters {
    color: var(--primary-color);
    font-size: 14px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Products Content */
.products-content {
    min-height: 600px;
    position: relative;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-header h1 {
    font-size: 32px;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.mobile-filter-toggle {
    display: none;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
}

.filter-tag button {
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* Product Detail Page */
.product-detail {
    padding: 40px 0 80px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-images {
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-light);
}

.main-image img {
    width: 100%;
    height: auto;
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--pearl);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--danger);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wishlist-btn.active i::before {
    content: '\f004';
    font-weight: 900;
}

.share-fab {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--pearl);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10020;
}

.share-fab:hover {
    transform: translateY(-1px);
}

.zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--pearl);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--pearl);
    padding: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.product-description {
    margin: 20px 0;
    color: var(--text-light);
    line-height: 1.8;
}

.product-options {
    margin: 30px 0;
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--pearl);
    color: var(--text-dark);
    font-weight: 500;
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    position: relative;
}

.color-btn.active {
    border-color: var(--text-dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

#quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

.product-actions {
    position: static;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    opacity: 1;
    flex-wrap: wrap;
}

/* Ensure 2-3 action buttons (Add to Cart / Buy Now / Share) fit without overflowing */
.product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 160px;
    min-width: 128px;
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.2;
}

.product-actions #shareBtn {
    flex-basis: 112px;
    min-width: 104px;
}

.product-features {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature strong {
    display: block;
    margin-bottom: 5px;
}

.feature p {
    font-size: 14px;
    color: var(--text-light);
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 60px;
}

.tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    margin-bottom: 20px;
}

.tab-panel ul {
    margin-left: 20px;
}

.tab-panel li {
    margin-bottom: 10px;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 15px 0;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 200px;
}

.reviews-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.rating-overview {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.rating-stars {
    font-size: 24px;
    color: #fbbf24;
    margin: 10px 0;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-info strong {
    display: block;
    margin-bottom: 5px;
}

.review-stars {
    font-size: 14px;
    color: #fbbf24;
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Write Review Form */
.write-review-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.write-review-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.review-form {
    max-width: 600px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.review-form .required {
    color: #ef4444;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.star-rating-input {
    display: flex;
    gap: 5px;
    font-size: 32px;
    margin-bottom: 5px;
}

.star-rating-input i {
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.char-count {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.submit-review-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review-btn:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.submit-review-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.related-products h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-zoom-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-zoom-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-modal #zoomedImage {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-zoom-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--pearl);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.image-zoom-modal .close-modal:hover {
    background: var(--danger);
    color: var(--white);
    transform: rotate(90deg);
}

/* Share Modal (Product Detail) */
.share-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10050;
    padding: 20px;
}

.share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    width: 100%;
    max-width: 520px;
    background: var(--pearl);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 16px 16px 18px;
    position: relative;
}

.share-modal-content h3 {
    margin: 4px 0 6px;
    font-size: 18px;
}

.share-subtitle {
    margin: 0 0 14px;
    color: var(--text-light);
    font-size: 14px;
}

.share-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--pearl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.share-action {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 12px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
}

.share-action i {
    font-size: 18px;
}

.share-action:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

@media (max-width: 480px) {
    .share-actions {
        grid-template-columns: 1fr;
    }
}

/* Virtual Try-On */
.tryon-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    z-index: 10060;
    padding: 24px;
    overflow-y: auto;
}

.tryon-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tryon-content {
    width: min(1060px, 100%);
    background: var(--pearl);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    overflow: hidden;
}

.tryon-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
}

.tryon-header h3 {
    margin: 0 0 4px;
    font-size: 22px;
}

.tryon-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.tryon-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-dark);
}

.tryon-close:hover {
    background: var(--bg-light);
}

.tryon-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding: 24px;
}

.tryon-stage {
    position: relative;
    min-height: 520px;
    aspect-ratio: 4 / 5;
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
    touch-action: none;
}

.tryon-stage video,
.tryon-stage > img#tryOnSelfie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.tryon-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.78);
    text-align: center;
    padding: 24px;
}

.tryon-placeholder i {
    font-size: 42px;
}

.tryon-product-overlay {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 34%;
    max-width: 260px;
    min-width: 80px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transform-origin: center;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.2));
}

.tryon-product-overlay:active {
    cursor: grabbing;
}

.tryon-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tryon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tryon-actions .btn,
.tryon-upload-btn {
    justify-content: center;
    text-align: center;
}

.tryon-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#tryOnUploadInput {
    display: none;
}

.tryon-control label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.tryon-control input[type="range"] {
    width: 100%;
}

@media (max-width: 860px) {
    .tryon-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .tryon-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .tryon-stage {
        min-height: 420px;
    }
}

/* Cart Page */
.cart-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.cart-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--pearl);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.cart-item-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.remove-btn {
    color: var(--danger);
    font-size: 14px;
}

.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--pearl);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.cart-summary h2 {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid var(--border-color);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.promo-code {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.promo-code input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
}

.promo-code input:focus {
    border-color: var(--primary-color);
}

.discount-row {
    color: var(--success);
}

.cart-summary #checkoutBtn {
    display: block;
    width: fit-content;
    margin: 25px auto 0;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin: 20px 0;
    color: var(--primary-color);
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Tooltip Styling */
[title] {
    position: relative;
    cursor: pointer;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--text-dark);
    z-index: 1001;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Nav Icons Tooltip Positioning */
.nav-icons [title]:hover::after {
    bottom: -40px;
}

.nav-icons [title]:hover::before {
    bottom: -13px;
}
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--pearl);
        z-index: 2000;
        padding: 20px;
        overflow-y: auto;
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .mobile-filter-toggle {
        display: block;
    }
    
    .close-filters {
        display: block;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--pearl);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 10px 20px;
        display: none;
        min-width: auto;
        flex-direction: column;
        gap: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        transition: none;
    }

    /* On touch/mobile, don't use hover to open dropdowns (it can "stick" after tap). */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .product-actions {
        flex-direction: row;
        gap: 10px;
    }

    .product-actions .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        min-height: 40px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .product-actions #shareBtn {
        flex: 0 1 110px;
    }
    
    .top-bar {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .contact-info a {
        margin-right: 15px;
    }
    
    .contact-info a i,
    .social-links a {
        margin-right: 5px;
    }
    
    .nav-icons {
        gap: 15px;
    }
    
    .nav-icons .icon-link {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .products-header h1 {
        font-size: 24px;
    }
    
    .filter-sidebar {
        max-height: calc(100vh - 80px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .contact-info,
    .social-links {
        justify-content: center;
    }
    
    .contact-info a {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .social-links a {
        font-size: 14px;
        margin-right: 10px;
    }
    
    .logo-img {
        height: 64px;
        max-width: 120px;
    }
    
    .nav-icons {
        gap: 10px;
    }
    
    .nav-icons .icon-link {
        font-size: 18px;
    }
    
    .badge {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }

    .product-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-actions .btn,
    .product-actions #shareBtn {
        width: 100%;
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn i {
        font-size: 12px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-controls {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .sort-select {
        flex: 1;
        min-width: 150px;
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 12px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        font-size: 13px;
    }
    
    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-bar {
        padding: 15px 0;
    }
    
    .search-form input {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Floating Call and WhatsApp Buttons */
.call-button,
.whatsapp-button {
    align-items: center;
    border-radius: 999px;
    color: var(--white);
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    position: fixed;
    right: 30px;
    z-index: 999;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.call-button {
    bottom: 30px;
    background: var(--primary-color);
    animation: buttonPulse 3s infinite;
}

.call-button:hover {
    background: var(--primary-light);
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.whatsapp-button {
    bottom: 94px;
    background: #25D366;
    animation: whatsappPulse 3s infinite;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
}

.whatsapp-button:hover {
    background: #20ba5a;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(32, 186, 90, 0.35);
    color: var(--white);
}

.whatsapp-button i,
.call-button i {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-button-mobile {
    display: none;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 8px 25px rgba(107, 29, 47, 0.2), 0 0 0 0 rgba(107, 29, 47, 0.45);
    }
    70% {
        box-shadow: 0 8px 25px rgba(107, 29, 47, 0.2), 0 0 0 12px rgba(107, 29, 47, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(107, 29, 47, 0.2), 0 0 0 0 rgba(107, 29, 47, 0);
    }
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    70% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2), 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 900px) {
    .call-button-desktop {
        display: none !important;
    }
    .call-button-mobile {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .call-button,
    .whatsapp-button {
        right: 20px;
    }
    .call-button {
        bottom: 20px;
    }
    .whatsapp-button {
        bottom: 80px;
    }
}

@media (max-width: 620px) {
    .whatsapp-button span,
    .call-button span {
        display: none;
    }
    .whatsapp-button,
    .call-button {
        padding: 0;
        width: 48px;
        min-height: 48px;
        justify-content: center;
        border-radius: 50%;
    }
    .whatsapp-button i,
    .call-button i {
        margin: 0;
        font-size: 20px;
    }
    .whatsapp-button {
        bottom: calc(84px + env(safe-area-inset-bottom));
        right: 16px;
    }
    .call-button {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: 16px;
    }
}
