/* =============================================
   FLAVOR E-Commerce — Core Stylesheet
   Premium, Admin-Configurable Design System
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0A0A0A;
    --accent: #D4382C;
    --secondary: #F5F0EB;
    --text: #1A1A1A;
    --text-light: #6B6B6B;
    --text-muted: #999;
    --border: #E5E5E5;
    --border-light: #F0F0F0;
    --bg: #FFFFFF;
    --bg-alt: #FAFAFA;
    --success: #16A34A;
    --warning: #EAB308;
    --danger: #DC2626;
    --radius: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --container: 1280px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

input, select, textarea {
    font-family: inherit; font-size: inherit;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.75rem 1rem; width: 100%;
    transition: var(--transition); outline: none; background: var(--bg);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-display); font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }
.section-header .accent-line { width: 50px; height: 2px; background: var(--accent); margin: 1rem auto 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 2rem; font-weight: 500; font-size: 0.9rem;
    letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: var(--radius); transition: var(--transition);
    white-space: nowrap; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1.1rem 2.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Announcement Bar */
.announcement-bar {
    background: var(--primary); color: #fff; text-align: center;
    padding: 0.5rem 0; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.announcement-bar p { opacity: 0.9; }

/* Header */
.site-header {
    background: var(--header-bg, var(--bg)); position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 2rem; }
.site-logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-text { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--primary); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 0; }
.nav-link {
    display: block; padding: 0.5rem 1.1rem; font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--menu-color, var(--text)); position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--menu-underline, var(--accent)); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover, .nav-link.active { color: var(--menu-hover, var(--accent)); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.header-action-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; color: var(--text); transition: var(--transition);
}
.header-action-btn:hover { background: var(--secondary); color: var(--menu-hover, var(--accent)); }
.header-action-btn svg { width: 20px; height: 20px; }
.action-badge {
    position: absolute; top: 4px; right: 4px; width: 18px; height: 18px;
    background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 600;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ===== HEADER STYLE: CENTERED ===== */
.header-centered .header-inner {
    flex-wrap: wrap; justify-content: center; height: auto; padding: 0.75rem 0 0;
}
.header-centered .site-logo { width: 100%; justify-content: center; margin-bottom: 0.25rem; }
.header-centered .main-nav { width: 100%; justify-content: center; order: 3; border-top: 1px solid var(--border-light); padding-top: 0.4rem; }
.header-centered .header-actions { position: absolute; right: 1rem; top: 0.85rem; }
.header-centered .mobile-menu-toggle { position: absolute; left: 1rem; top: 0.85rem; }
.header-centered .logo-text { font-size: 2rem; }
.header-centered .site-logo img { height: 42px; }
.header-centered .nav-link { font-size: 0.8rem; padding: 0.6rem 1rem; }

/* ===== HEADER STYLE: MINIMAL ===== */
.header-minimal { border-bottom: none; }
.header-minimal .header-inner { height: 52px; gap: 1.5rem; }
.header-minimal .logo-text { font-size: 1.3rem; letter-spacing: 0.12em; }
.header-minimal .site-logo img { height: 28px; }
.header-minimal .nav-link { font-size: 0.75rem; padding: 0.4rem 0.75rem; letter-spacing: 0.06em; }
.header-minimal .nav-link::after { height: 1px; }
.header-minimal .header-action-btn { width: 36px; height: 36px; }
.header-minimal .header-action-btn svg { width: 17px; height: 17px; }
.header-minimal .action-badge { width: 15px; height: 15px; font-size: 0.58rem; top: 2px; right: 2px; }
.header-minimal.scrolled { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

/* ===== HEADER STYLE: DARK ===== */
.header-dark { background: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-dark .logo-text { color: #fff; }
.header-dark .nav-link { color: rgba(255,255,255,0.75); }
.header-dark .nav-link:hover, .header-dark .nav-link.active { color: #fff; }
.header-dark .nav-link::after { background: #fff; }
.header-dark .header-action-btn { color: rgba(255,255,255,0.8); }
.header-dark .header-action-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.header-dark .action-badge { background: var(--accent); }
.header-dark .hamburger span { background: #fff; }
.header-dark.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* ===== HEADER STYLE: TRANSPARENT / GLASS ===== */
.header-transparent { background: transparent; border-bottom: 1px solid transparent; }
.header-transparent .logo-text { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.header-transparent .nav-link { color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.header-transparent .nav-link:hover, .header-transparent .nav-link.active { color: #fff; }
.header-transparent .nav-link::after { background: #fff; }
.header-transparent .header-action-btn { color: rgba(255,255,255,0.85); }
.header-transparent .header-action-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.header-transparent .hamburger span { background: #fff; }
.header-transparent.scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light); box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-transparent.scrolled .logo-text { color: var(--primary); text-shadow: none; }
.header-transparent.scrolled .nav-link { color: var(--menu-color, var(--text)); text-shadow: none; }
.header-transparent.scrolled .nav-link:hover, .header-transparent.scrolled .nav-link.active { color: var(--menu-hover, var(--accent)); }
.header-transparent.scrolled .nav-link::after { background: var(--menu-underline, var(--accent)); }
.header-transparent.scrolled .header-action-btn { color: var(--menu-color, var(--text)); }
.header-transparent.scrolled .header-action-btn:hover { background: var(--secondary); color: var(--menu-hover, var(--accent)); }
.header-transparent.scrolled .hamburger span { background: var(--menu-color, var(--text)); }
/* Glass header: hero overlaps on homepage */
body.page-index .header-transparent ~ .hero,
body.page-index .header-transparent ~ .hero-placeholder { margin-top: -70px; }
body.page-index .header-transparent ~ .hero .hero-slide .container,
body.page-index .header-transparent ~ .hero-placeholder .container { padding-top: 70px; }

.mobile-menu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.hamburger { width: 22px; height: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* Search Overlay */
.search-overlay {
    position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 1.25rem 0;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 100;
}
.search-overlay.active { transform: translateY(0); opacity: 1; visibility: visible; }
.search-form { display: flex; align-items: center; gap: 1rem; max-width: 600px; margin: 0 auto; }
.search-input { flex: 1; border: none; border-bottom: 2px solid var(--primary); border-radius: 0; padding: 0.75rem 0; font-size: 1.1rem; background: transparent; }
.search-input:focus { box-shadow: none; }
.search-submit, .search-close { display: flex; align-items: center; justify-content: center; color: var(--text); padding: 0.5rem; }
.search-close:hover { color: var(--accent); }

/* Mobile Nav */
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav {
    position: fixed; top: 0; left: 0; width: 300px; max-width: 85vw; height: 100vh;
    background: var(--bg); z-index: 1200; transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); }
.mobile-nav-header .logo-text { font-size: 1.3rem; }
.mobile-nav-close { display: flex; align-items: center; color: var(--text); }
.mobile-nav-list { padding: 1rem 0; flex: 1; }
.mobile-nav-list li a {
    display: block; padding: 0.85rem 1.5rem; font-size: 1rem; font-weight: 500;
    color: var(--text); border-bottom: 1px solid var(--border-light); transition: var(--transition);
}
.mobile-nav-list li a:hover { background: var(--secondary); color: var(--accent); padding-left: 2rem; }
.mobile-nav-footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.mobile-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; font-size: 0.9rem; color: var(--text); }
.mobile-nav-link svg { width: 18px; height: 18px; }
.mobile-nav-contact { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.mobile-nav-contact p { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.mobile-nav-contact svg { width: 16px; height: 16px; }

/* Flash Messages */
.flash-message { padding: 0.85rem 0; font-size: 0.9rem; font-weight: 500; }
.flash-message .container { display: flex; align-items: center; justify-content: space-between; }
.flash-success { background: #ECFDF5; color: var(--success); }
.flash-error { background: #FEF2F2; color: var(--danger); }
.flash-warning { background: #FEFCE8; color: #A16207; }
.flash-close { color: inherit; opacity: 0.7; }
.flash-close:hover { opacity: 1; }

/* ============ HOME PAGE ============ */

/* Hero */
.hero { position: relative; height: 80vh; max-height: 700px; display: flex; align-items: center; background: var(--primary); overflow: hidden; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; z-index: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slide-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: brightness(0.82); z-index: 0;
    transition: transform 6s ease-out;
    display: block; /* FIX: ensure image renders */
}
.hero-slide.active .hero-slide-img { transform: scale(1.05); }
.hero-slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82); z-index: 0; display: block; }
.hero-slide .container { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 600px; padding: 2rem 0; }
.hero-content .subtitle {
    display: inline-block; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
    margin-bottom: 1rem; opacity: 0; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 0.5rem;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.hero-slide.active .hero-content .subtitle { opacity: 0.8; transform: translateY(0); }
.hero-content h1 {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
    color: #fff; line-height: 1.05; margin-bottom: 1.25rem; letter-spacing: -0.02em;
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}
.hero-slide.active .hero-content h1 { opacity: 1; transform: translateY(0); }
.hero-content p {
    font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; max-width: 450px;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}
.hero-slide.active .hero-content p { opacity: 0.85; transform: translateY(0); }
.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}
.hero-slide.active .hero-actions { opacity: 1; transform: translateY(0); }

/* Hero button hover */
.hero-actions .btn { transition: all 0.3s ease; }
.hero-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Hero navigation dots */
.hero-dots {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 0.5rem;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6);
    background: transparent; cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.hero-dot.active { background: #fff; border-color: #fff; transform: scale(1.2); }
.hero-dot:hover { border-color: #fff; background: rgba(255,255,255,0.5); }

/* Hero progress bar */
.hero-progress {
    position: absolute; bottom: 0; left: 0; height: 3px; z-index: 10;
    background: rgba(255,255,255,0.8);
    animation: heroProgress 4s linear;
}
@keyframes heroProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-dots { bottom: 1rem; }
    .hero-dot { width: 8px; height: 8px; }
    /* Centered header: revert to standard mobile layout */
    .header-centered .header-inner { flex-wrap: nowrap; padding: 0; }
    .header-centered .site-logo { width: auto; }
    .header-centered .main-nav { width: auto; border-top: none; padding-top: 0; }
    .header-centered .header-actions { position: static; }
    .header-centered .mobile-menu-toggle { position: static; }
    /* Dark header: keep dark on mobile */
    .header-dark .mobile-menu-toggle .hamburger span { background: #fff; }
    /* Transparent on mobile: always solid */
    .header-transparent { background: var(--bg); border-bottom: 1px solid var(--border-light); }
    .header-transparent .logo-text { color: var(--primary); text-shadow: none; }
    .header-transparent .nav-link { color: var(--text); text-shadow: none; }
    .header-transparent .header-action-btn { color: var(--text); }
    .header-transparent .hamburger span { background: var(--text); }
    body.page-index .header-transparent ~ .hero,
    body.page-index .header-transparent ~ .hero-placeholder { margin-top: 0; }
    body.page-index .header-transparent ~ .hero .hero-slide .container,
    body.page-index .header-transparent ~ .hero-placeholder .container { padding-top: 1.5rem; }
}

.hero-placeholder {
    min-height: 85vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2D2D2D 100%);
    position: relative; overflow: hidden;
}
.hero-placeholder::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%;
    background: radial-gradient(ellipse, rgba(212,56,44,0.15) 0%, transparent 70%);
}
.hero-placeholder .hero-content { padding: 4rem 0; }

/* Categories */
.categories-section { padding: 5rem 0; background: var(--bg); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.category-card { position: relative; height: 400px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.category-card-bg {
    position: absolute; inset: 0; background: var(--secondary);
    background-size: cover; background-position: center;
    -webkit-background-size: cover; /* Safari fix */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover .category-card-bg { transform: scale(1.05); }
.category-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; transition: var(--transition);
}
.category-card-overlay h3 { color: #fff; font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem; }
.category-card-overlay .cat-link {
    color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0; transform: translateY(10px); transition: var(--transition);
    display: flex; align-items: center; gap: 0.5rem;
}
.category-card:hover .cat-link { opacity: 1; transform: translateY(0); }
.category-card-overlay .cat-link svg { width: 16px; height: 16px; }

/* Product Grid */
.products-section { padding: 5rem 0; }
.products-section.alt-bg { background: var(--bg-alt); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.product-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-image { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--secondary); }
/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 3/4) {
    .product-card-image { padding-bottom: 133.33%; height: 0; }
    .product-card-image a { position: absolute; inset: 0; }
}
.product-card-image a { display: block; width: 100%; height: 100%; }
.product-card-image img.product-img-main { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.5s ease; }
.product-card-image img.product-img-hover { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; }
.product-card:hover .product-card-image.has-hover-img img.product-img-main { opacity: 0; }
.product-card:hover .product-card-image.has-hover-img img.product-img-hover { opacity: 1; transform: scale(1.04); }
.product-card:hover .product-card-image:not(.has-hover-img) img { transform: scale(1.06); }

.product-badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; z-index: 2; }
.badge { display: inline-block; padding: 0.25rem 0.65rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 2px; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--primary); color: #fff; }

.product-actions {
    position: absolute; right: 0.75rem; top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem;
    opacity: 0; transform: translateX(10px); transition: var(--transition); z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 50%; box-shadow: var(--shadow); color: var(--text); transition: var(--transition);
    border: none; cursor: pointer; padding: 0; outline: none; -webkit-appearance: none; appearance: none;
}
.product-action-btn:hover { background: var(--primary); color: #fff; }
.product-action-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.wishlist-btn.active { background: var(--accent); color: #fff; }
.wishlist-btn.active svg { fill: #fff; }
.wishlist-btn.active:hover { background: #333; }

.quick-add { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; transform: translateY(100%); transition: transform 0.35s ease; z-index: 2; }
.product-card:hover .quick-add { transform: translateY(0); }
.quick-add .btn { width: 100%; padding: 0.7rem; font-size: 0.8rem; border-radius: var(--radius); backdrop-filter: blur(8px); background: rgba(10,10,10,0.9); color: #fff; border: none; }
.quick-add .btn:hover { background: var(--accent); }

.product-card-info { padding: 1rem 1rem 1.25rem; }
.product-card-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.25rem; }

/* Product Card Ratings */
.product-card-rating { display: flex; align-items: center; gap: 2px; margin: 0.2rem 0; }
.star-icon-sm { width: 13px; height: 13px; }
.star-icon-sm.star-filled { color: #f59e0b; fill: #f59e0b; }
.star-icon-sm.star-empty { color: #d1d5db; }
.rating-num { font-size: 0.78rem; color: var(--text-muted); margin-left: 3px; }
.product-card-name { font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-name a:hover { color: var(--accent); }
.product-card-price { display: flex; align-items: center; gap: 0.5rem; }
.price-current { font-size: 1.05rem; font-weight: 600; color: var(--primary); }
.price-compare { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }

.view-all-wrap { text-align: center; margin-top: 2.5rem; }

/* Offer Banner */
.offer-banner { padding: 5rem 0; background: var(--primary); position: relative; overflow: hidden; }
.offer-banner .container { position: relative; }
.offer-banner::before {
    content: ''; position: absolute; right: -10%; top: -50%; width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(212,56,44,0.2) 0%, transparent 70%); pointer-events: none;
}
.offer-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; position: relative; z-index: 1; }

/* Offer slider */
.offer-slide { display: none; opacity: 0; transition: opacity 0.8s ease; }
.offer-slide.active { display: flex; opacity: 1; }

/* Offer dots */
.offer-dots {
    display: flex; justify-content: center; gap: 0.5rem;
    margin-top: 1.5rem; position: relative; z-index: 2;
}
.offer-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
    background: transparent; cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.offer-dot.active { background: #fff; border-color: #fff; transform: scale(1.2); }
.offer-dot:hover { border-color: #fff; background: rgba(255,255,255,0.4); }
.offer-banner-image {
    flex-shrink: 0; width: 400px; height: 400px; border-radius: var(--radius-xl);
    overflow: hidden; background: rgba(255,255,255,0.1);
    position: relative; transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.offer-banner-image img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}
/* Shine sweep overlay */
.offer-banner-image::after {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform 0.7s ease;
}
.offer-banner-image:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.offer-banner-image:hover img { transform: scale(1.1); filter: brightness(1.05); }
.offer-banner-image:hover::after { transform: translateX(100%); }

/* Text hover */
.offer-banner-text { max-width: 550px; transition: transform 0.4s ease; }
.offer-banner:hover .offer-banner-text { transform: translateX(8px); }
.offer-banner-text .offer-tag {
    display: inline-block; background: var(--accent); color: #fff; padding: 0.3rem 1rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 2px; margin-bottom: 1.25rem; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-banner:hover .offer-tag { transform: scale(1.05); box-shadow: 0 4px 12px rgba(212,56,44,0.4); }
.offer-banner-text h2 { font-family: var(--font-display); color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; line-height: 1.1; transition: text-shadow 0.4s ease; }
.offer-banner:hover .offer-banner-text h2 { text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.offer-banner-text p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 2rem; }

/* Button hover */
.offer-banner-text .btn {
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.offer-banner-text .btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%); transition: transform 0.5s ease;
}
.offer-banner-text .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.offer-banner-text .btn:hover::after { transform: translateX(100%); }

/* Features */
.features-section { padding: 4.5rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-lg); transition: var(--transition); }
.feature-card:hover { background: var(--secondary); }
.feature-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; background: var(--primary); color: #fff; border-radius: 50%; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-light); font-size: 0.875rem; line-height: 1.6; }

/* Newsletter */
.footer-newsletter { background: var(--secondary); padding: 4rem 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.newsletter-text h3 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.35rem; }
.newsletter-text p { color: var(--text-light); font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; width: 100%; }
.newsletter-form input { flex: 1; border-radius: var(--radius) 0 0 var(--radius); border-right: none; padding: 1rem 1.25rem; }
.newsletter-form button { background: var(--primary); color: #fff; padding: 1rem 2rem; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 0 var(--radius) var(--radius) 0; white-space: nowrap; transition: var(--transition); }
.newsletter-form button:hover { background: var(--accent); }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.8); }
.footer-main { padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo .logo-text { color: #fff; font-size: 1.5rem; }
.footer-about { font-size: 0.9rem; line-height: 1.7; opacity: 0.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { font-size: 0.9rem; opacity: 0.7; transition: var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: var(--accent); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; opacity: 0.7; }
.footer-contact-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.85rem; opacity: 0.5; }
.powered-by { font-size: 0.78rem !important; opacity: 0.4 !important; }
.powered-by a { color: #fff; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.powered-by a:hover { opacity: 1; text-decoration: underline; }
.payment-icons img { height: 24px; opacity: 0.5; }

/* Scroll to Top */
.scroll-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
    background: var(--primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); z-index: 900;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent); }

/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .separator { margin: 0 0.5rem; opacity: 0.5; }

/* Placeholder */
.placeholder-img { background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-banner-image { width: 300px; height: 300px; }
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .main-nav { display: none; }
    .hide-mobile { display: none; }
    .header-inner { height: 60px; }
    .logo-text { font-size: 1.4rem; }
    .hero, .hero-placeholder { height: 60vh; max-height: 500px; min-height: 350px; }
    .hero-content h1 { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .category-card { height: 280px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-card-info { padding: 0.75rem; }
    .product-card-name { font-size: 0.85rem; }
    .price-current { font-size: 0.95rem; }
    .product-actions { opacity: 1; transform: translateX(0); }
    .quick-add { transform: translateY(0); }

    /* FIX: Disable hover image swap on mobile — prevents "sticky hover" making images disappear */
    .product-card:hover .product-card-image.has-hover-img img.product-img-main { opacity: 1; }
    .product-card:hover .product-card-image.has-hover-img img.product-img-hover { opacity: 0; }
    .product-card:hover .product-card-image:not(.has-hover-img) img { transform: none; }
    .product-card:hover { transform: none; box-shadow: none; }

    /* FIX: Ensure hero slide images are visible */
    .hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .hero-slide.active .hero-slide-img { transform: none; } /* Disable Ken Burns on mobile for perf */

    .offer-banner-inner { flex-direction: column; text-align: center; }
    .offer-slide.active { flex-direction: column; text-align: center; }
    .offer-banner-image { width: 100%; max-width: 350px; height: 300px; margin: 0 auto; }
    .offer-banner-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .feature-card { padding: 1.25rem 1rem; }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-contact-list li { justify-content: center; }
    .footer-bottom-inner { flex-direction: column; gap: 1rem; }
    .section-header { margin-bottom: 2rem; }

    /* FIX: Category hero on mobile */
    .category-hero { min-height: 280px !important; }
    .category-hero .container { min-height: 280px !important; }
    .category-hero-content h1 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .category-card { height: 220px; }
    .features-grid { grid-template-columns: 1fr; }
    .announcement-bar { font-size: 0.7rem; }
    .hero, .hero-placeholder { height: 50vh; min-height: 300px; }
    .hero-content h1 { font-size: 1.75rem; }
    .hero-content p { font-size: 0.9rem; }
    .offer-banner-image { max-width: 280px; height: 250px; }
    .category-hero { min-height: 240px !important; }
    .category-hero .container { min-height: 240px !important; }
    .category-hero-content h1 { font-size: 1.5rem; }
}

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-section { padding: 5rem 0; }
.hidden { display: none !important; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   PHASE 2: Shop, Category, Product, Search
   ============================================ */

/* --- CATEGORY HERO --- */
.category-hero {
    background: var(--primary); color: #fff; position: relative;
    background-size: cover; background-position: center; overflow: hidden;
    min-height: 450px; display: flex;
    -webkit-background-size: cover; /* Safari fix */
}
.category-hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.category-hero .container { position: relative; z-index: 2; display: flex; width: 100%; padding-top: 2rem; padding-bottom: 2rem; }
.category-hero-content { max-width: 600px; }
.category-hero-content h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0.5rem 0 0.5rem; line-height: 1.1; }
.category-hero-content p { opacity: 0.85; max-width: 500px; margin-bottom: 0.5rem; font-size: 1.05rem; }
.category-hero-subtitle {
    display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; opacity: 0.7; margin-bottom: 0.25rem;
}
.category-count { font-size: 0.85rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-top: 0.25rem; }

/* --- SHOP LAYOUT --- */
.shop-section { padding: 2.5rem 0 5rem; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; }

/* --- SIDEBAR --- */
.shop-sidebar {
    position: sticky; top: 90px; align-self: start;
    max-height: calc(100vh - 100px); overflow-y: auto;
    padding-right: 0.5rem;
}
.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sidebar-header h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; }
.sidebar-header svg { width: 20px; height: 20px; }
.sidebar-close { display: none; color: var(--text); }

.filter-group { border-bottom: 1px solid var(--border-light); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.filter-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; cursor: pointer; padding: 0.25rem 0;
    color: var(--text);
}
.filter-title svg { width: 16px; height: 16px; transition: var(--transition); }
.filter-title.collapsed svg { transform: rotate(-90deg); }
.filter-body { padding-top: 0.75rem; }
.filter-title.collapsed + .filter-body { display: none; }

.filter-list li { margin-bottom: 0.25rem; }
.filter-cat-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.45rem 0.75rem; font-size: 0.9rem; color: var(--text-light);
    border-radius: var(--radius); transition: var(--transition);
}
.filter-cat-link:hover, .filter-cat-link.active { background: var(--secondary); color: var(--accent); font-weight: 500; }
.filter-count { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-alt); padding: 0.1rem 0.5rem; border-radius: 10px; }

/* Price Inputs */
.price-range-inputs { display: flex; align-items: center; gap: 0.5rem; }
.price-input-wrap {
    flex: 1; display: flex; align-items: center; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.price-input-wrap span { padding: 0.5rem 0 0.5rem 0.75rem; color: var(--text-muted); font-size: 0.85rem; }
.price-input-wrap input { border: none; padding: 0.5rem 0.5rem 0.5rem 0.25rem; width: 100%; font-size: 0.85rem; }
.price-input-wrap input:focus { box-shadow: none; }
.price-dash { color: var(--text-muted); }
.price-range-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Size Filter */
.filter-sizes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.size-checkbox {
    cursor: pointer;
}
.size-checkbox input { display: none; }
.size-checkbox span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 36px; padding: 0 0.5rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.8rem; font-weight: 500; transition: var(--transition);
}
.size-checkbox.active span, .size-checkbox input:checked + span {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.size-checkbox:hover span { border-color: var(--primary); }

/* Color Filter */
.filter-colors { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-checkbox { cursor: pointer; display: flex; align-items: center; gap: 0.35rem; }
.color-checkbox input { display: none; }
.color-swatch {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent;
    outline: 2px solid var(--border); outline-offset: 1px; transition: var(--transition);
}
.color-checkbox.active .color-swatch, .color-checkbox input:checked + .color-swatch {
    outline-color: var(--primary); outline-width: 2px;
}
.color-name { font-size: 0.8rem; color: var(--text-light); }

.filter-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }

/* Active Filter Tags */
.active-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filter-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.6rem; background: var(--secondary); border-radius: 20px;
    font-size: 0.75rem; font-weight: 500; color: var(--text);
}
.filter-tag a { display: flex; color: var(--text-muted); }
.filter-tag a:hover { color: var(--accent); }
.filter-tag svg { width: 12px; height: 12px; }

/* --- SHOP TOPBAR --- */
.shop-topbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); margin-bottom: 1.5rem;
}
.shop-topbar-left { display: flex; align-items: center; gap: 1rem; }
.shop-topbar-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.filter-toggle-btn {
    display: none; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 500; color: var(--text); transition: var(--transition);
}
.filter-toggle-btn:hover { border-color: var(--primary); }
.filter-toggle-btn svg { width: 16px; height: 16px; }

.shop-result-count { font-size: 0.9rem; color: var(--text-light); }
.shop-result-count strong { color: var(--text); }

.sort-select-wrap { position: relative; }
.sort-select {
    appearance: none; padding: 0.5rem 2rem 0.5rem 0.85rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.85rem; background: var(--bg); cursor: pointer; min-width: 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center;
}

.view-toggle { display: flex; gap: 0.25rem; }
.view-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); transition: var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.view-btn svg { width: 16px; height: 16px; }

/* Grid Variants */
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.list { grid-template-columns: 1fr; }
.product-grid.list .product-card { display: grid; grid-template-columns: 200px 1fr; }
.product-grid.list .product-card-image { aspect-ratio: 1/1; }
.product-grid.list .product-card-info { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; }

/* Shop Empty */
.shop-empty { text-align: center; padding: 4rem 2rem; }
.shop-empty-icon { margin-bottom: 1.5rem; color: var(--text-muted); }
.shop-empty-icon svg { width: 64px; height: 64px; }
.shop-empty h3 { margin-bottom: 0.5rem; }
.shop-empty p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1050;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* --- PAGINATION --- */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination-list { display: flex; align-items: center; gap: 0.35rem; }
.pagination-link {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 0.5rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 500; color: var(--text); transition: var(--transition);
}
.pagination-link:hover { border-color: var(--primary); background: var(--secondary); }
.pagination-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-link svg { width: 16px; height: 16px; }
.pagination-dots { padding: 0 0.5rem; color: var(--text-muted); }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail { padding: 2rem 0 4rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }

/* Gallery */
.product-gallery { position: sticky; top: 90px; align-self: start; }
.gallery-main {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--secondary); cursor: zoom-in; margin-bottom: 0.75rem;
}
.gallery-main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.3s ease; }
.gallery-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.gallery-zoom {
    position: absolute; bottom: 1rem; right: 1rem; width: 40px; height: 40px;
    background: rgba(255,255,255,0.9); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: var(--text);
    opacity: 0; transition: var(--transition);
}
.gallery-main:hover .gallery-zoom { opacity: 1; }
.gallery-zoom svg { width: 18px; height: 18px; }

.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.gallery-thumb {
    flex-shrink: 0; width: 70px; height: 70px; border-radius: var(--radius);
    overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: var(--transition); cursor: pointer;
}
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-info-category {
    display: inline-block; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem;
}
.product-info-category:hover { color: var(--accent); }
.product-info-name { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.15; margin-bottom: 0.75rem; }

.product-info-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.stars-rating { display: flex; gap: 2px; }
.star-filled { fill: #F59E0B; color: #F59E0B; }
.star-empty { color: var(--border); }
.rating-text { font-size: 0.85rem; color: var(--text-light); }

.product-info-price { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price-current-lg { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.price-compare-lg { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(212,56,44,0.1); padding: 0.2rem 0.6rem; border-radius: 20px; }

.product-info-desc { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.product-divider { border: none; border-top: 1px solid var(--border-light); margin: 1.25rem 0; }

/* Options */
.product-options { display: flex; flex-direction: column; gap: 1.25rem; }
.option-group {}
.option-label {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6rem;
}
.option-label span { font-weight: 400; text-transform: none; color: var(--text-light); letter-spacing: 0; }
.size-guide-link {
    margin-left: auto; font-size: 0.8rem; font-weight: 400; text-transform: none; letter-spacing: 0;
    color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem;
    background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.size-guide-link:hover { color: var(--accent); }
.size-guide-link svg { width: 14px; height: 14px; }

/* ═══ SIZE GUIDE POPUP ═══ */
.sg-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.sg-overlay.active { opacity: 1; visibility: visible; }

.sg-popup {
    position: relative;
    width: 680px; max-width: 100%; max-height: 88vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sg-overlay.active .sg-popup {
    transform: scale(1) translateY(0);
}

/* Close button */
.sg-x {
    position: absolute; top: 1rem; right: 1rem; z-index: 10;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    color: #555; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.sg-x:hover { background: #fff; color: var(--accent); transform: rotate(90deg); }
.sg-x svg { width: 18px; height: 18px; }

/* Hero header */
.sg-hero {
    text-align: center;
    padding: 2rem 2rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sg-hero::before {
    content: ''; position: absolute; top: -40%; right: -20%; width: 60%; height: 180%;
    background: radial-gradient(ellipse, rgba(212,56,44,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.sg-hero-icon {
    width: 48px; height: 48px; margin: 0 auto 0.75rem;
    background: rgba(255,255,255,0.15); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.sg-hero-icon svg { width: 24px; height: 24px; color: #fff; }
.sg-hero h3 {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
    margin: 0 0 0.25rem; letter-spacing: 0.01em;
}
.sg-hero p { font-size: 0.82rem; opacity: 0.7; margin: 0; }

/* Tabs */
.sg-tabs {
    display: flex; gap: 0;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 0 0.5rem;
}
.sg-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: #888; background: none; border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer; transition: all 0.25s;
    white-space: nowrap;
}
.sg-tab:hover { color: #555; }
.sg-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

/* Content area */
.sg-content {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.sg-panel { display: none; padding: 1.5rem; animation: sgFadeIn 0.3s ease; }
.sg-panel.active { display: block; }
@keyframes sgFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Unit Toggle (pill style) ── */
.sg-unit-bar {
    display: flex; justify-content: flex-end; margin-bottom: 1rem;
}
.sg-toggle {
    display: flex; position: relative;
    background: #f0f0f0; border-radius: 8px; padding: 3px;
    overflow: hidden;
}
.sg-toggle-btn {
    position: relative; z-index: 2;
    padding: 0.35rem 1.15rem; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.06em;
    background: transparent; border: none; color: #888;
    cursor: pointer; transition: color 0.25s;
    border-radius: 6px;
}
.sg-toggle-btn.active { color: #fff; }
.sg-toggle-slider {
    position: absolute; top: 3px; left: 3px;
    width: calc(50% - 3px); height: calc(100% - 6px);
    background: var(--primary); border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.sg-toggle-btn[data-unit="in"].active ~ .sg-toggle-slider {
    transform: translateX(100%);
}

/* ── Size Table ── */
.sg-table-wrap {
    overflow-x: auto; border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 0.85rem;
}
.sg-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.sg-table th {
    padding: 0.75rem 0.8rem;
    background: linear-gradient(180deg, #fafafa, #f3f3f3);
    font-weight: 700; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #777; text-align: center;
    border-bottom: 2px solid #eee; white-space: nowrap;
}
.sg-table th:first-child { text-align: center; border-radius: 11px 0 0 0; }
.sg-table th:last-child { border-radius: 0 11px 0 0; }
.sg-table td {
    padding: 0.7rem 0.8rem;
    text-align: center; color: #444;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s, color 0.15s;
    font-variant-numeric: tabular-nums;
}
.sg-table tr:last-child td { border-bottom: none; }
.sg-table tbody tr:hover td { background: #fef8f7; color: var(--text); }
.sg-size-cell {
    font-weight: 800; color: var(--primary);
    background: #f9f9f9; text-align: center;
    font-size: 0.88rem; letter-spacing: 0.02em;
}

.sg-chart-footer {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; color: #aaa; margin-bottom: 1.25rem;
}

/* Quick tips */
.sg-quick-tips {
    display: flex; flex-direction: column; gap: 0.5rem;
    background: #fafafa; border-radius: 10px; padding: 1rem 1.15rem;
}
.sg-qtip {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; color: #666; line-height: 1.4;
}
.sg-qtip-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.sg-qtip a { color: var(--accent); font-weight: 600; }
.sg-qtip a:hover { text-decoration: underline; }

/* ── How to Measure Tab ── */
.sg-measure-intro {
    font-size: 0.86rem; color: #777; line-height: 1.6;
    margin-bottom: 1.25rem; text-align: center;
}
.sg-measure-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.sg-mcard {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: #fafafa; border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s, transform 0.2s;
}
.sg-mcard:hover { border-color: #ddd; transform: translateX(3px); }
.sg-mcard-num {
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--primary); color: #fff;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 800;
}
.sg-mcard-body strong {
    display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 2px;
}
.sg-mcard-body span {
    font-size: 0.82rem; color: #888; line-height: 1.45;
}

/* ── Product-specific tab ── */
.sg-custom-content { font-size: 0.88rem; color: #555; line-height: 1.7; }
.sg-custom-content p { margin-bottom: 0.5rem; }
.sg-custom-content table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.sg-custom-content table th,
.sg-custom-content table td { padding: 0.5rem 0.7rem; border: 1px solid #e0e0e0; font-size: 0.82rem; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .sg-overlay { padding: 0.75rem; }
    .sg-popup { max-height: 92vh; border-radius: 16px; }
    .sg-hero { padding: 1.5rem 1.25rem 1rem; }
    .sg-hero h3 { font-size: 1.15rem; }
    .sg-panel { padding: 1.15rem; }
    .sg-tab { font-size: 0.7rem; padding: 0.75rem 0.35rem; gap: 0.25rem; }
    .sg-tab svg { display: none; }
    .sg-table { font-size: 0.76rem; }
    .sg-table th, .sg-table td { padding: 0.55rem 0.5rem; }
}

/* Color Options */
.color-options { display: flex; gap: 0.6rem; }
.color-option {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent;
    outline: 2px solid var(--border); outline-offset: 2px;
    transition: var(--transition); position: relative; cursor: pointer;
}
.color-option.active { outline-color: var(--primary); }
.color-option:hover { outline-color: var(--text); }
.color-option svg { width: 14px; height: 14px; color: #fff; opacity: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.color-option.active svg { opacity: 1; }

/* Size Options */
.size-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.size-option {
    min-width: 48px; height: 44px; padding: 0 0.85rem; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.85rem;
    font-weight: 500; cursor: pointer; transition: var(--transition);
}
.size-option.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.size-option:hover:not(.active) { border-color: var(--primary); }
.size-option.out-of-stock { opacity: 0.4; cursor: not-allowed; position: relative; }
.size-option.out-of-stock::after {
    content: ''; position: absolute; top: 50%; left: 15%; right: 15%;
    height: 1.5px; background: var(--danger); transform: rotate(-12deg);
}

/* Quantity */
.quantity-selector {
    display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius);
}
.qty-btn {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: var(--transition);
}
.qty-btn:hover { background: var(--secondary); }
.qty-btn svg { width: 16px; height: 16px; }
.qty-input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-weight: 600; padding: 0.5rem; }
.qty-input:focus { box-shadow: none; }

/* Stock Status */
.stock-status-wrap { margin-bottom: 0.25rem; }
.stock-status-wrap .stock-in, .stock-status-wrap .stock-out, .stock-status-wrap .stock-low { font-size: 0.85rem; display: flex; align-items: center; gap: 0.35rem; }
.stock-status-wrap svg { width: 16px; height: 16px; }
.stock-in { color: var(--success); }
.stock-low { color: #B45309; }
.stock-out { color: var(--danger); font-weight: 600; }

/* Stock Urgency Bar */
.stock-urgency { margin-bottom: 0.25rem; }
.stock-urgency .stock-low { margin-bottom: 0.45rem; }
.stock-bar {
    width: 100%; max-width: 220px; height: 5px;
    background: #f0f0f0; border-radius: 10px; overflow: hidden;
}
.stock-bar-fill { height: 100%; border-radius: 10px; transition: width 0.4s ease; }
.stock-bar-low { background: linear-gradient(90deg, #EF4444, #F59E0B); }
.stock-bar-in { background: var(--success); }

/* Sold Out - Product Card */
.product-card.sold-out .product-card-image { position: relative; }
.product-card.sold-out .product-img-main,
.product-card.sold-out .product-img-hover { opacity: 0.55; filter: grayscale(30%); }
.sold-out-overlay {
    position: absolute; inset: 0; z-index: 4;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.sold-out-tag {
    background: rgba(0,0,0,0.75); color: #fff;
    padding: 0.5rem 1.25rem; border-radius: 6px;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    backdrop-filter: blur(3px);
}
.btn-sold-out {
    background: #888 !important; color: #fff !important; cursor: pointer;
    font-size: 0.82rem; padding: 0.55rem 1rem;
}
.btn-sold-out:hover { background: #666 !important; }

/* Out of Stock block on PDP */
.stock-out-block { margin-bottom: 0.25rem; }

/* Notify Me Form */
.notify-me-form {
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border: 1px solid #FDE68A; border-radius: 12px;
    padding: 1.15rem; margin-bottom: 0.5rem;
}
.notify-me-inner { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; }
.notify-me-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: #F59E0B; color: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.notify-me-icon svg { width: 18px; height: 18px; }
.notify-me-text strong { display: block; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; }
.notify-me-text span { font-size: 0.8rem; color: #92400E; line-height: 1.4; }
.notify-me-input-row { display: flex; gap: 0.5rem; }
.notify-me-email {
    flex: 1; padding: 0.6rem 0.85rem; border: 1.5px solid #E5E7EB;
    border-radius: 8px; font-size: 0.88rem; background: #fff;
}
.notify-me-email:focus { border-color: #F59E0B; outline: none; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.notify-me-btn {
    white-space: nowrap; padding: 0.6rem 1rem !important;
    font-size: 0.82rem !important; border-radius: 8px !important;
    display: flex; align-items: center; gap: 0.35rem;
}
.notify-me-btn svg { width: 15px; height: 15px; }
.notify-me-msg { font-size: 0.8rem; margin-top: 0.5rem; color: var(--success); font-weight: 500; min-height: 1.2em; }
.notify-me-msg.error { color: var(--danger); }

@media (max-width: 480px) {
    .notify-me-input-row { flex-direction: column; }
    .notify-me-btn { width: 100%; justify-content: center; }
}

/* Action Buttons */
.product-action-buttons { display: flex; gap: 0.75rem; }
.product-action-buttons .btn { flex: 1; }

.product-secondary-actions { display: flex; gap: 1.5rem; }
.wishlist-link, .share-link {
    display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem;
    color: var(--text-light); padding: 0.25rem 0; transition: var(--transition);
}
.wishlist-link:hover { color: var(--accent); }
.share-link:hover { color: var(--primary); }
.wishlist-link svg, .share-link svg { width: 16px; height: 16px; }
.wishlist-link.active { color: var(--accent); }
.wishlist-link.active svg { fill: var(--accent); }

/* Share Dropdown */
.share-wrap { position: relative; }
.share-dropdown {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(0.95);
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.5rem; min-width: 180px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}
.share-dropdown::after {
    content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px; background: #fff; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
}
.share-dropdown.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) scale(1);
}
.share-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.75rem; border-radius: 8px;
    font-size: 0.82rem; color: var(--text); font-weight: 500;
    transition: background 0.15s; width: 100%;
    text-decoration: none; border: none; background: none; cursor: pointer; text-align: left;
}
.share-item:hover { background: #f5f5f5; }
.share-whatsapp:hover { color: #25D366; }
.share-facebook:hover { color: #1877F2; }
.share-twitter:hover { color: #000; }
.share-copy:hover { color: var(--primary); }

/* Trust Badges */
.product-trust {
    display: flex; flex-direction: column; gap: 0.75rem;
    padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius-lg);
    margin-top: 0.5rem;
}
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.trust-item strong { font-size: 0.85rem; display: block; }
.trust-item span { font-size: 0.78rem; color: var(--text-muted); }

/* Product Meta */
.product-meta-info { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.product-meta-info p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.25rem; }
.product-meta-info strong { color: var(--text); }
.product-meta-info a { color: var(--text); }
.product-meta-info a:hover { color: var(--accent); }

/* --- PRODUCT TABS --- */
.product-tabs { margin-bottom: 4rem; }
.tabs-nav {
    display: flex; border-bottom: 2px solid var(--border-light); gap: 0; overflow-x: auto;
}
.tab-btn {
    padding: 1rem 1.75rem; font-size: 0.9rem; font-weight: 500; color: var(--text-light);
    border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); }

.tab-panel { display: none; padding: 2rem 0; }
.tab-panel.active { display: block; }
.tab-panel-content { max-width: 800px; }
.tab-panel-content h4 { margin-bottom: 0.75rem; }
.tab-panel-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 0.75rem; }
.tab-panel-content ul, .tab-panel-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.tab-panel-content li { margin-bottom: 0.4rem; color: var(--text-light); list-style: disc; }

.product-description img { max-width: 100%; border-radius: var(--radius-lg); margin: 1rem 0; }

/* Reviews */
.reviews-summary { margin-bottom: 2rem; }
.reviews-average { display: flex; align-items: center; gap: 0.75rem; }
.avg-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.avg-count { font-size: 0.85rem; color: var(--text-muted); }

.reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.review-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1rem; color: var(--primary);
}
.review-author strong { font-size: 0.9rem; display: block; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-text { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* Related Products */
.related-products { padding-top: 2rem; border-top: 1px solid var(--border-light); }

/* ═══ RECENTLY VIEWED ═══ */
.recently-viewed-section { padding-top: 2.5rem; margin-top: 1rem; }
.rv-scroll-wrap {
    position: relative;
}
.rv-track {
    display: flex; gap: 1rem;
    overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rv-track::-webkit-scrollbar { display: none; }

.rv-arrow {
    position: absolute; top: 50%; transform: translateY(-60%); z-index: 5;
    width: 38px; height: 38px;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #555; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.rv-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.rv-arrow svg { width: 18px; height: 18px; }
.rv-arrow-left { left: -12px; }
.rv-arrow-right { right: -12px; }

.rv-card {
    flex: 0 0 200px; min-width: 200px;
    background: #fff; border-radius: 12px;
    overflow: hidden; position: relative;
    border: 1px solid #f0f0f0;
    transition: transform 0.25s, box-shadow 0.25s;
}
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.rv-card a { text-decoration: none; color: inherit; display: block; }
.rv-card-img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    background: #f5f5f5; display: block;
}
.rv-card-body { padding: 0.65rem 0.75rem 0.75rem; }
.rv-card-name {
    font-size: 0.8rem; font-weight: 600; color: var(--text);
    line-height: 1.3; margin-bottom: 0.25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.rv-card-price {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem;
}
.rv-card-price .current { font-weight: 700; color: var(--text); }
.rv-card-price .compare {
    font-size: 0.72rem; color: var(--text-muted);
    text-decoration: line-through;
}
.rv-card-price .off {
    font-size: 0.68rem; color: var(--accent); font-weight: 700;
}
.rv-card-badge {
    position: absolute; top: 0.5rem; left: 0.5rem;
    background: var(--accent); color: #fff;
    padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.65rem; font-weight: 700;
}
.rv-card-sold {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.rv-card-sold span {
    background: rgba(0,0,0,0.7); color: #fff;
    padding: 0.3rem 0.8rem; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    .rv-card { flex: 0 0 160px; min-width: 160px; }
    .rv-arrow { display: none !important; }
    .rv-card-body { padding: 0.5rem 0.6rem 0.6rem; }
    .rv-card-name { font-size: 0.75rem; }
    .rv-card-price { font-size: 0.78rem; }
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000;
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; color: #fff; z-index: 10;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: var(--transition);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.15); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }

/* --- SEARCH DROPDOWN --- */
.search-results-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; z-index: 200;
    display: none;
}
.search-results-dropdown.active { display: block; }

.search-result-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; transition: var(--transition); cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}
.search-result-item:hover { background: var(--secondary); }
.search-result-item:last-child { border-bottom: none; }

.search-result-img { width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--secondary); }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }

.search-result-info { flex: 1; }
.search-result-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.search-result-meta { font-size: 0.78rem; color: var(--text-muted); }

.search-result-category { padding: 0.6rem 1rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.search-result-category:hover { color: var(--accent); background: var(--secondary); }

.search-view-all { display: block; text-align: center; padding: 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); border-top: 1px solid var(--border-light); }
.search-view-all:hover { background: var(--secondary); }

/* ============ PHASE 2 RESPONSIVE ============ */
@media (max-width: 1024px) {
    .product-detail-grid { gap: 2rem; }
    .product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* Shop sidebar becomes drawer */
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar {
        position: fixed; top: 0; left: 0; width: 300px; max-width: 85vw; height: 100vh;
        background: var(--bg); z-index: 1100; transform: translateX(-100%);
        transition: transform 0.35s ease; padding: 0; max-height: 100vh;
        overflow-y: auto;
    }
    .shop-sidebar.active { transform: translateX(0); }
    .sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); }
    .sidebar-close { display: flex; }
    .filter-form { padding: 1rem 1.5rem; }
    .filter-toggle-btn { display: flex; }

    /* Product detail */
    .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-gallery { position: static; }
    .product-info-name { font-size: 1.5rem; }
    .product-action-buttons { flex-direction: column; }
    .tabs-nav { gap: 0; }
    .tab-btn { padding: 0.75rem 1rem; font-size: 0.85rem; }

    /* Product grid */
    .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
    .product-grid.list { grid-template-columns: 1fr; }
    .product-grid.list .product-card { grid-template-columns: 120px 1fr; }
}

@media (max-width: 480px) {
    .shop-topbar { flex-direction: column; align-items: flex-start; }
    .shop-topbar-right { width: 100%; justify-content: space-between; }
    .gallery-thumbs { gap: 0.35rem; }
    .gallery-thumb { width: 56px; height: 56px; }
    .color-options { gap: 0.4rem; }
    .color-option { width: 30px; height: 30px; }
    .size-option { min-width: 42px; height: 40px; font-size: 0.8rem; padding: 0 0.65rem; }
}

/* ============================================
   PHASE 3: Cart, Checkout, Auth, Account
   ============================================ */

/* --- SHARED --- */
.page-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 2rem; }
.py-section { padding: 2.5rem 0 5rem; }
.mt-2 { margin-top: 1rem; }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.form-success { background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius); padding: 0.85rem 1.25rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #065F46; }
.form-success svg { width: 16px; height: 16px; flex-shrink: 0; }
.empty-text { color: var(--text-light); padding: 1rem 0; font-size: 0.95rem; }
.empty-text a { color: var(--accent); text-decoration: underline; }

/* --- CART --- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.cart-header-row {
    display: grid; grid-template-columns: 3fr 1fr 140px 1fr 40px; gap: 1rem;
    padding: 0 0 0.75rem; border-bottom: 2px solid var(--border-light);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--text-muted);
}
.cart-item {
    display: grid; grid-template-columns: 3fr 1fr 140px 1fr 40px; gap: 1rem; align-items: center;
    padding: 1.25rem 0; border-bottom: 1px solid var(--border-light);
}
.cart-col-product { display: flex; align-items: center; gap: 1rem; }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--secondary); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; display: block; margin-bottom: 0.2rem; color: var(--text); }
.cart-item-name:hover { color: var(--accent); }
.cart-item-variant { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.variant-color-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid var(--border); }
.cart-price { font-weight: 600; font-size: 0.95rem; }
.cart-price-old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; display: block; }
.cart-item-total { font-weight: 700; font-size: 1rem; }
.cart-remove-btn { color: var(--text-muted); transition: var(--transition); }
.cart-remove-btn:hover { color: var(--danger); }
.cart-remove-btn svg { width: 18px; height: 18px; }
.qty-small .qty-btn { width: 34px; height: 34px; }
.qty-small .qty-input { width: 38px; padding: 0.3rem; font-size: 0.85rem; height: 34px; }
.cart-actions-row { display: flex; justify-content: space-between; padding-top: 1.25rem; }

/* Cart Empty */
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-empty-icon { color: var(--text-muted); margin-bottom: 1rem; }
.cart-empty-icon svg { width: 56px; height: 56px; }
.cart-empty h3 { margin-bottom: 0.5rem; }
.cart-empty p { color: var(--text-light); margin-bottom: 1rem; }

/* Cart Summary */
.cart-summary {
    background: var(--bg-alt); border-radius: var(--radius-lg); padding: 1.75rem;
    position: sticky; top: 90px;
}
.cart-summary-title { font-size: 1.15rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light); }

/* Coupon */
.coupon-form { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.coupon-form input { flex: 1; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; }
.coupon-msg { font-size: 0.8rem; display: flex; align-items: center; gap: 0.35rem; margin-bottom: 1rem; }
.coupon-msg svg { width: 14px; height: 14px; flex-shrink: 0; }
.coupon-success { color: var(--success); }
.coupon-error { color: var(--danger); }
.coupon-remove { margin-left: 0.35rem; font-size: 1rem; color: var(--text-muted); }

/* Summary Rows */
.summary-rows { padding: 0.75rem 0; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; }
.summary-row span:first-child { color: var(--text-light); }
.summary-discount span:last-child { color: var(--success); font-weight: 500; }
.summary-total { border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; font-size: 1.1rem; font-weight: 700; }
.summary-total span { color: var(--text); }
.shipping-note { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0 0.5rem; }
.shipping-note svg { width: 12px; height: 12px; }

.cart-trust-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.cart-trust-badges span { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); }
.cart-trust-badges svg { width: 14px; height: 14px; }

/* --- CHECKOUT --- */
.checkout-login-prompt {
    background: var(--secondary); padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.9rem;
}
.checkout-login-prompt a { color: var(--accent); font-weight: 500; text-decoration: underline; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 2.5rem; align-items: start; }
.checkout-card {
    background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 1.75rem; margin-bottom: 1.5rem;
}
.checkout-card-title { font-size: 1.05rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.step-num {
    width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.checkout-summary-card { position: sticky; top: 90px; }

/* Checkout Items */
.checkout-items { max-height: 300px; overflow-y: auto; margin-bottom: 1rem; padding-right: 0.25rem; }
.checkout-items::-webkit-scrollbar { width: 3px; }
.checkout-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.checkout-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border-light); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img { width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; position: relative; background: var(--secondary); }
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-qty {
    position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--text);
    color: #fff; border-radius: 50%; font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 0.85rem; font-weight: 500; display: block; }
.checkout-item-variant { font-size: 0.75rem; color: var(--text-muted); }
.checkout-item-price { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

/* Payment */
.payment-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.payment-option { cursor: pointer; }
.payment-option input { display: none; }
.payment-option-inner {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
    border: 1.5px solid var(--border); border-radius: var(--radius); transition: var(--transition);
}
.payment-option.active .payment-option-inner { border-color: var(--primary); background: rgba(0,0,0,0.02); }
.payment-option-inner svg { width: 22px; height: 22px; color: var(--text-muted); }
.payment-option.active .payment-option-inner svg { color: var(--primary); }
.payment-option-inner strong { display: block; font-size: 0.9rem; }
.payment-option-inner span { font-size: 0.78rem; color: var(--text-muted); }

.card-details { margin-top: 0.5rem; }
.card-note { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; }
.card-note svg { width: 14px; height: 14px; }

.checkout-terms { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.checkout-terms a { color: var(--text); text-decoration: underline; }

/* Forms shared */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; font-family: var(--font-body); transition: var(--transition); background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-group input:disabled { background: var(--bg-alt); color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-light); cursor: pointer; margin-bottom: 0.75rem; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.checkbox-label a { color: var(--accent); }
.form-link-right { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.form-link-right:hover { color: var(--accent); }

/* --- AUTH --- */
.auth-section { min-height: 65vh; display: flex; align-items: center; }
.auth-box {
    max-width: 440px; width: 100%; margin: 0 auto; padding: 2.5rem;
    background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.auth-box-wide { max-width: 560px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.35rem; }
.auth-header p { color: var(--text-light); font-size: 0.9rem; }
.auth-form { margin-bottom: 1rem; }
.auth-footer-text { text-align: center; font-size: 0.9rem; color: var(--text-light); }
.auth-footer-text a { color: var(--accent); font-weight: 500; }

.input-icon-wrap { position: relative; }
.input-icon-wrap > svg, .input-icon-wrap > i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.input-icon-wrap input { padding-left: 2.75rem; }
.toggle-pw { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.toggle-pw:hover { color: var(--text); }
.toggle-pw svg { width: 18px; height: 18px; }

/* --- ACCOUNT --- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; }
.account-sidebar { position: sticky; top: 90px; align-self: start; }
.account-user {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius-lg); margin-bottom: 1rem;
}
.account-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #444 100%); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.account-user strong { font-size: 0.95rem; display: block; }
.account-user span { font-size: 0.78rem; color: var(--text-muted); display: block; }
.account-member-since { font-size: 0.7rem !important; color: var(--text-muted); opacity: 0.7; margin-top: 2px; }

.account-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.account-nav-label {
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); padding: 0.75rem 1rem 0.35rem; opacity: 0.6;
}
.account-nav-label:first-child { padding-top: 0; }
.account-nav-link {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 1rem;
    font-size: 0.88rem; color: var(--text-light); border-radius: var(--radius); transition: all 0.2s ease;
}
.account-nav-link:hover { background: var(--secondary); color: var(--text); transform: translateX(3px); }
.account-nav-link.active { background: var(--primary); color: #fff; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.account-nav-link.active svg { color: #fff; }
.account-nav-link svg { width: 17px; height: 17px; }
.account-nav-logout { margin-top: 0.5rem; color: var(--text-muted); border-top: 1px solid var(--border-light); padding-top: 0.85rem; }
.account-nav-logout:hover { color: var(--danger); background: #fef2f2; transform: translateX(3px); }

/* ── Dashboard Welcome Banner ── */
.dash-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, #333 60%, var(--accent) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 2rem 2.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.dash-welcome::before {
    content: ''; position: absolute; top: -40%; right: -10%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.dash-welcome .dash-greeting { font-size: 0.85rem; opacity: 0.7; letter-spacing: 0.05em; }
.dash-welcome h2 { font-family: var(--font-display); font-size: 1.75rem; margin-top: 0.15rem; line-height: 1.2; }
.dash-welcome p { font-size: 0.88rem; opacity: 0.7; margin-top: 0.35rem; }
.dash-welcome .btn { flex-shrink: 0; position: relative; z-index: 1; }

/* ── Stats Grid ── */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat-card {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); transition: all 0.25s ease; cursor: pointer;
}
.dash-stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-color: transparent; }
.dash-stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-stat-icon svg { width: 22px; height: 22px; }
.dash-stat-info { display: flex; flex-direction: column; }
.dash-stat-num { font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--text); }
.dash-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }

/* ── Quick Actions ── */
.dash-quick-actions {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; margin-bottom: 1.75rem;
}
.dash-action {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1rem 0.5rem; background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); transition: all 0.25s ease; cursor: pointer; text-align: center;
}
.dash-action:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); border-color: var(--primary); }
.dash-action svg { width: 22px; height: 22px; color: var(--text-muted); transition: color 0.2s; }
.dash-action:hover svg { color: #fff; }
.dash-action span { font-size: 0.75rem; font-weight: 500; color: var(--text-light); transition: color 0.2s; }
.dash-action:hover span { color: #fff; }

/* ── Dashboard Orders ── */
.dash-orders { display: flex; flex-direction: column; }
.dash-order-row {
    display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border-light); transition: all 0.2s ease;
    border-radius: var(--radius); cursor: pointer;
}
.dash-order-row:last-child { border-bottom: none; }
.dash-order-row:hover { background: var(--secondary); padding-left: 1rem; }
.dash-order-status { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-order-status svg { width: 18px; height: 18px; }
.dash-order-info { flex: 1; }
.dash-order-info strong { font-size: 0.9rem; display: block; }
.dash-order-info span { font-size: 0.78rem; color: var(--text-muted); }
.dash-order-meta { text-align: right; }
.dash-order-badge { font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 20px; display: inline-block; }
.dash-order-meta strong { font-size: 0.9rem; display: block; margin-top: 2px; }
.dash-order-arrow { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; opacity: 0; transition: opacity 0.2s; }
.dash-order-row:hover .dash-order-arrow { opacity: 1; }

/* Dashboard empty state */
.dash-empty { text-align: center; padding: 2.5rem 1rem; }
.dash-empty p { color: var(--text-muted); margin: 0.75rem 0 1.25rem; font-size: 0.95rem; }

.account-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Account Card */
.account-card {
    background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 1.5rem; margin-bottom: 1.5rem;
}
.account-card-header {
    font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between;
}
.account-card-header h3 { display: flex; align-items: center; }
.card-link { font-size: 0.85rem; color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: 0.25rem; }
.card-link:hover { text-decoration: underline; }

/* Orders Table */
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--border-light); }
.orders-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.orders-table tr:last-child td { border-bottom: none; }
.table-link { color: var(--accent); font-weight: 500; font-size: 0.85rem; }
.table-link:hover { text-decoration: underline; }

/* Order Detail */
.order-detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.order-items-list { display: flex; flex-direction: column; gap: 0; }
.order-detail-item { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border-light); }
.order-detail-item:last-child { border-bottom: none; }
.order-detail-img { width: 60px; height: 60px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--secondary); }
.order-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.order-detail-info { flex: 1; }
.order-detail-info strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.order-detail-info span { display: block; font-size: 0.78rem; color: var(--text-muted); }
.order-detail-variant { color: var(--text-light); }
.order-detail-price { font-weight: 600; font-size: 0.95rem; }

/* Addresses */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.address-card {
    border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.25rem;
    position: relative; transition: var(--transition);
}
.address-card:hover { border-color: var(--border); }
.address-default { border-color: var(--primary); }
.address-badge {
    position: absolute; top: 0.75rem; right: 0.75rem; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; background: var(--primary); color: #fff;
    padding: 0.15rem 0.5rem; border-radius: 4px;
}
.address-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 0.5rem; }
.address-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.15rem; }
.address-card p strong { color: var(--text); }
.address-actions { display: flex; gap: 1rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light); }
.address-actions a { font-size: 0.82rem; font-weight: 500; color: var(--text-light); }
.address-actions a:hover { color: var(--accent); }
.address-actions .text-danger:hover { color: var(--danger); }

/* ============ PHASE 3 RESPONSIVE ============ */
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary-card { position: static; }
    .account-stats { grid-template-columns: repeat(3, 1fr); }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-quick-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .account-nav { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
    .account-nav-link { flex: 0 0 auto; font-size: 0.82rem; padding: 0.5rem 0.75rem; }
    .account-nav-label { display: none; }
    .account-nav-logout { margin-top: 0; border-top: none; padding-top: 0.5rem; }

    .dash-welcome { flex-direction: column; text-align: center; padding: 1.5rem; }
    .dash-welcome .btn { width: 100%; justify-content: center; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-quick-actions { grid-template-columns: repeat(3, 1fr); }
    .dash-order-row { gap: 0.65rem; }
    .dash-order-meta { display: none; }
    .dash-order-info strong { font-size: 0.85rem; }

    .cart-header-row { display: none; }
    .cart-item { grid-template-columns: 1fr; gap: 0.75rem; position: relative; padding: 1.25rem 0; }
    .cart-col-product { gap: 0.75rem; }
    .cart-col-price { font-size: 0.9rem; }
    .cart-col-remove { position: absolute; top: 1.25rem; right: 0; }
    .cart-col-total { font-size: 1rem; }

    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .account-stats { grid-template-columns: 1fr; }
    .dash-stats { grid-template-columns: 1fr; }
    .dash-quick-actions { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .dash-action { padding: 0.75rem 0.25rem; }
    .dash-action span { font-size: 0.68rem; }

    .auth-box { padding: 1.75rem; border: none; box-shadow: none; }
}

/* Wishlist Toast Animation */
/* ═══ COOKIE CONSENT BANNER ═══ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
    animation: cookieSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 1.5rem;
}
.cookie-text {
    flex: 1; display: flex; align-items: flex-start; gap: 0.85rem;
}
.cookie-icon { width: 28px; height: 28px; color: #D97706; flex-shrink: 0; margin-top: 2px; }
.cookie-text strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; color: var(--text); }
.cookie-text p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin: 0; }
.cookie-text a { color: var(--primary); text-decoration: underline; font-weight: 500; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.6rem 1.25rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.2s;
}
.cookie-btn-accept {
    background: var(--primary); color: #fff;
}
.cookie-btn-accept:hover { opacity: 0.9; }
.cookie-btn-reject {
    background: transparent; color: var(--text-light);
    border: 1.5px solid #e0e0e0;
}
.cookie-btn-reject:hover { border-color: #bbb; color: var(--text); }

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes cookieSlideDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@media (max-width: 768px) {
    .cookie-banner-inner { flex-direction: column; padding: 1rem; gap: 1rem; }
    .cookie-text { gap: 0.6rem; }
    .cookie-icon { width: 22px; height: 22px; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}

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