
:root {
    /* Color Palette — Comfort Shoes Center: navy / gold / warm gray / cream */
    --brand-primary: oklch(58% 0.13 75);
    --brand-secondary: oklch(46% 0.12 70);
    --accent-glow: oklch(75% 0.14 80 / 45%);

    /* Navy — structural / dark surfaces (header topbar, footer, banners) */
    --navy: oklch(22% 0.045 260);
    --navy-deep: oklch(14% 0.045 260);
    --cream: oklch(96% 0.015 88);

    /* Light Theme */
    --bg-light: oklch(97% 0.014 88);
    --text-light: oklch(25% 0.045 260);
    --card-bg-light: oklch(100% 0 0);
    --border-light: oklch(89% 0.015 85);

    /* Dark Theme */
    --bg-dark: oklch(20% 0.05 260);
    --text-dark: oklch(95% 0.02 260);
    --card-bg-dark: oklch(25% 0.05 260);
    --border-dark: oklch(35% 0.05 260);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --fs-base: 16px;
    --lh-base: 1.6;

    /* Effects */
    --shadow-sm: 0 2px 4px oklch(0% 0 0 / 5%);
    --shadow-md: 0 4px 12px oklch(0% 0 0 / 10%);
    --shadow-lg: 0 10px 30px oklch(0% 0 0 / 15%);
    --shadow-inset: inset 0 2px 4px oklch(0% 0 0 / 5%);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    position: relative;
    overflow-x: hidden;
    animation: page-fade-in 0.4s ease;
}
@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-reveal: elements fade + slide up into place as they enter the viewport. */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alerts (session success/error banners) slide in instead of popping in instantly. */
.alert {
    animation: alert-slide-in 0.35s ease;
}
@keyframes alert-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    body {
        animation: none;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .alert {
        animation: none;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Dark Mode */
body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Bootstrap's text/bg utilities are hardcoded for a permanent light theme — they don't
   know about our custom dark-mode toggle (we don't use Bootstrap's own data-bs-theme).
   Without these overrides, text like .text-muted / .text-dark goes near-invisible
   (dark gray on dark navy) whenever dark mode is on. */
body.dark-mode .text-muted {
    color: oklch(85% 0.02 260 / 65%) !important;
}
body.dark-mode .text-dark {
    color: var(--text-dark) !important;
}
body.dark-mode .text-secondary {
    color: oklch(85% 0.02 260 / 75%) !important;
}
body.dark-mode .text-black {
    color: var(--text-dark) !important;
}
body.dark-mode .btn-outline-dark {
    color: var(--text-dark) !important;
    border-color: oklch(100% 0 0 / 35%) !important;
}
body.dark-mode .btn-outline-dark:hover {
    background-color: oklch(100% 0 0 / 10%) !important;
    color: var(--text-dark) !important;
}
body.dark-mode .bg-white {
    background-color: var(--card-bg-dark) !important;
}
body.dark-mode .bg-light {
    background-color: var(--bg-dark) !important;
}

body.dark-mode::before {
    opacity: 0.05;
}

/* Layout */
.container {
    max-width: 1280px;
}
/* Bootstrap's default 0.75rem gutter reads as cramped on phones, especially
   against large hero type — give small screens more breathing room. */
@media (max-width: 767.98px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
@media (max-width: 400px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Top utility bar */
.site-topbar {
    background-color: var(--navy);
    color: oklch(92% 0.015 88 / 82%);
    font-size: 0.8rem;
    padding: 0.5rem 0;
}
.site-topbar a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.site-topbar a:hover {
    color: oklch(80% 0.13 80);
}
.site-topbar .bi {
    color: var(--brand-primary);
    margin-right: 0.3rem;
}
.site-topbar-social a {
    margin-left: 1rem;
    font-size: 0.9rem;
}
.site-topbar-tagline {
    opacity: 0.9;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    /* Solid, not translucent+blurred: backdrop-filter on a sticky element is a
       known Chromium source of stale/ghosted paint during scroll (content from
       elsewhere on the page briefly showing through). A solid background avoids
       that whole bug class. */
    background-color: var(--cream);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}
body.dark-mode .navbar {
    background-color: var(--navy);
    border-bottom-color: oklch(100% 0 0 / 10%);
}
.navbar.is-scrolled {
    padding: 0.65rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
}

/* Nav mega-menu (subcategory dropdown) */
.nav-caret {
    font-size: 0.6rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    transition: transform var(--transition-fast);
}
.nav-item-has-children:hover .nav-caret,
.nav-item-has-children:focus-within .nav-caret {
    transform: rotate(-180deg);
}
.nav-item-has-children {
    position: relative;
}
.nav-mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1050;
}
body.dark-mode .nav-mega-panel {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.nav-item-has-children:hover .nav-mega-panel,
.nav-item-has-children:focus-within .nav-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-mega-link {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.85;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
body.dark-mode .nav-mega-link {
    color: var(--text-dark);
}
.nav-mega-link:hover,
.nav-mega-link.is-active {
    background-color: var(--accent-glow);
    color: var(--brand-secondary);
    opacity: 1;
}
body.dark-mode .nav-mega-link:hover,
body.dark-mode .nav-mega-link.is-active {
    color: var(--brand-primary);
}
@media (max-width: 991.98px) {
    .nav-mega-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0.15rem 0 0.4rem 1.25rem;
        margin-top: 0;
    }
    .nav-mega-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }
    .nav-caret {
        display: none;
    }
}

/* Cart badge */
.cart-badge {
    font-size: 0.6rem;
    background-color: var(--brand-primary);
    color: oklch(100% 0 0);
}
.cart-badge-pulse {
    animation: cart-badge-pulse 2s ease-in-out infinite;
}
@keyframes cart-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

.nav-link {
    color: var(--text-light) !important;
    opacity: 0.7;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}
body.dark-mode .nav-link {
    color: var(--text-dark) !important;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-icons .bi {
    font-size: 1.25rem;
    color: var(--text-light);
    transition: color var(--transition-fast);
}
body.dark-mode .nav-icons .bi {
    color: var(--text-dark);
}

.nav-icons .bi:hover {
    color: var(--brand-primary);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
body.dark-mode .theme-toggle-btn {
    border-color: oklch(100% 0 0 / 20%);
    color: var(--text-dark);
}

.theme-toggle-btn:hover {
    background: var(--accent-glow);
    border-color: var(--brand-primary);
    transform: rotate(15deg);
}

/* Brand logomark (CS monogram) */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    line-height: 1;
}
.brand-mark-c,
.brand-mark-s {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 26px;
}
.brand-mark-s {
    fill: var(--brand-primary);
}
.brand-mark-swoosh {
    stroke: var(--brand-primary);
    fill: none;
}
.brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-logo-title {
    font-weight: 800;
    font-size: 1.15rem;
}
.brand-logo-sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.brand-logo--light .brand-mark-c {
    fill: var(--text-light);
}
.brand-logo--light .brand-logo-title {
    color: var(--text-light);
}
body.dark-mode .brand-logo--light .brand-mark-c {
    fill: var(--text-dark);
}
body.dark-mode .brand-logo--light .brand-logo-title {
    color: var(--text-dark);
}

.brand-logo--dark .brand-mark-c {
    fill: var(--cream);
}
.brand-logo--dark .brand-logo-title {
    color: var(--cream);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: url('https://images.unsplash.com/photo-1553062407-98eeb64c6a62?q=80&w=2071&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, oklch(15% 0.05 260 / 85%) 0%, oklch(15% 0.05 260 / 15%) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: oklch(100% 0 0);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px oklch(0% 0 0 / 30%);
}

.hero-content .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: oklch(100% 0 0 / 70%);
    max-width: 550px;
}

.btn-custom {
    background-color: oklch(100% 0 0);
    color: oklch(0% 0 0);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.btn-nav-primary {
    background-color: var(--navy);
    color: oklch(100% 0 0);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.btn-nav-primary:hover {
    background-color: var(--brand-primary);
    color: oklch(100% 0 0);
    transform: translateY(-2px);
}
body.dark-mode .btn-nav-primary {
    background-color: var(--brand-primary);
    color: var(--navy-deep);
}
body.dark-mode .btn-nav-primary:hover {
    background-color: var(--brand-secondary);
    color: oklch(100% 0 0);
}

.btn-custom:active,
.btn-nav-primary:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

.btn-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px oklch(100% 0 0 / 20%);
    background-color: var(--brand-secondary);
    color: oklch(0% 0 0);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Feature Section */
.features-section {
    background-color: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 4rem 0;
}
body.dark-mode .features-section {
    border-bottom: 1px solid var(--border-dark);
}
.feature-box {
    text-align: center;
    padding: 2rem 1rem;
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform var(--transition-slow);
}
.feature-box:hover .feature-icon {
    transform: translateY(-5px) scale(1.1);
}
.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.feature-text {
    font-size: 0.9rem;
    color: var(--text-light);
}
body.dark-mode .feature-text {
    color: var(--text-dark);
}

/* Product Cards */
.product-card, .card-category {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}
body.dark-mode .product-card, body.dark-mode .card-category {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.product-card:hover, .card-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}
.product-img-wrapper {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 100%;
}
.product-img-wrapper img, .card-category img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-img-wrapper img, .card-category:hover img {
    transform: scale(1.08);
}
.product-title, .category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.product-price, .category-price {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
body.dark-mode .product-price, body.dark-mode .category-price {
    color: var(--text-dark);
}
.badge-sold-out {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: oklch(100% 0 0 / 80%);
    color: oklch(0% 0 0);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
.color-swatches span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    transition: transform var(--transition-fast);
}
body.dark-mode .color-swatches span {
    border-color: var(--border-dark);
}
.color-swatches span:hover {
    transform: scale(1.2);
}

/* About Section */
.about-section {
    background-color: var(--card-bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
body.dark-mode .about-section {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.about-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Category Page */
.category-banner {
    position: relative;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: oklch(100% 0 0);
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
}
.category-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, oklch(20% 0.05 260 / 88%), oklch(20% 0.05 260 / 65%));
}
.category-banner-content {
    position: relative;
    z-index: 2;
}
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--border-light);
    font-size: 0.85rem;
}
.breadcrumb-item a {
    color: var(--text-light);
    opacity: 0.55;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item a:hover {
    color: var(--brand-primary);
    opacity: 1;
}
.breadcrumb-item.active {
    color: var(--text-light);
    opacity: 0.85;
}
body.dark-mode .breadcrumb-item a,
body.dark-mode .breadcrumb-item.active {
    color: var(--text-dark);
}

.category-banner-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}
.category-banner-breadcrumb .breadcrumb-item,
.category-banner-breadcrumb .breadcrumb-item a {
    color: oklch(100% 0 0 / 70%);
}
.category-banner-breadcrumb .breadcrumb-item.active {
    color: oklch(100% 0 0);
}
.category-banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: oklch(100% 0 0 / 40%);
}
.category-banner-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.category-banner-desc {
    color: oklch(100% 0 0 / 82%);
    max-width: 640px;
    margin-bottom: 1rem;
}
.category-banner-count {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: oklch(100% 0 0 / 15%);
    font-size: 0.85rem;
    font-weight: 600;
}

.category-sidebar {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    position: sticky;
    top: 90px;
}
body.dark-mode .category-sidebar {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.category-sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    opacity: 0.55;
    margin-bottom: 0.6rem;
}
body.dark-mode .category-sidebar-heading {
    color: var(--text-dark);
}
.category-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.category-sidebar-link {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
body.dark-mode .category-sidebar-link {
    color: var(--text-dark);
}
.category-sidebar-link:hover {
    background-color: var(--accent-glow);
}
.category-sidebar-link.active {
    background-color: var(--brand-primary);
    color: oklch(100% 0 0);
}

.category-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}
body.dark-mode .category-empty-state {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.category-empty-state i {
    font-size: 3rem;
    color: var(--brand-primary);
}

/* Insta-Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.insta-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.insta-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.insta-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.insta-item:hover img {
    transform: scale(1.1);
}
.insta-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px oklch(0% 0 0 / 50%);
    z-index: 2;
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    background-color: var(--navy-deep);
    color: oklch(95% 0.02 260);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--brand-primary);
}
.footer-brand-link {
    text-decoration: none;
}
.footer-tagline {
    color: oklch(95% 0.02 260 / 65%);
    font-size: 0.9rem;
    max-width: 320px;
    margin: 1rem 0 1.5rem;
}
.footer-heading {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: oklch(95% 0.02 260 / 65%);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--brand-primary);
}
.social-icons a {
    color: oklch(95% 0.02 260);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid oklch(100% 0 0 / 15%);
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.social-icons a:hover {
    color: var(--navy-deep);
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.footer-newsletter-text {
    color: oklch(95% 0.02 260 / 65%);
    font-size: 0.9rem;
}
.footer-newsletter-form .form-control {
    background-color: oklch(25% 0.05 260);
    border-color: oklch(35% 0.05 260);
    color: white;
}
.footer-newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
    border-color: var(--brand-primary);
}
.footer-newsletter-form .btn-newsletter {
    background-color: var(--brand-primary);
    color: var(--navy-deep);
    border: none;
    font-weight: 700;
}
.footer-newsletter-form .btn-newsletter:hover {
    background-color: var(--brand-secondary);
    color: white;
}
.footer-bottom {
    border-top: 1px solid oklch(100% 0 0 / 10%);
    padding-top: 1.5rem;
}
.footer-bottom a {
    color: var(--brand-primary);
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-filter {
    border: 1px solid var(--border-light);
    color: var(--text-light);
    background: transparent;
}
body.dark-mode .btn-filter {
    border-color: var(--border-dark);
    color: var(--text-dark);
}
.btn-filter:hover {
    background-color: var(--card-bg-light);
    border-color: var(--brand-primary);
}
body.dark-mode .btn-filter:hover {
    background-color: var(--card-bg-dark);
}
.btn-filter.active {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--brand-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.chat-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px oklch(0% 0 0 / 20%), 0 0 30px var(--accent-glow);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero { min-height: 70vh; }
    .about-content { padding-left: 0 !important; margin-top: 3rem; text-align: center; }
}

@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1.5rem;
        border-top: 1px solid var(--border-light);
        padding-top: 1rem;
    }
    body.dark-mode .navbar-nav {
        border-top-color: oklch(100% 0 0 / 10%);
    }
    .insta-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Product Detail Page */
.product-gallery-main {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-bottom: 100%;
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}
body.dark-mode .product-gallery-main {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.product-gallery-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn {
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}
body.dark-mode .thumb-btn {
    border-color: var(--border-dark);
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-btn:hover {
    opacity: 1;
}
.thumb-btn.active {
    opacity: 1;
    border-color: var(--brand-primary);
}

.product-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-primary);
}

.product-description-rich {
    font-size: 0.95rem;
    line-height: 1.65;
}
.product-description-rich p {
    margin-bottom: 0.75rem;
}
.product-description-rich p:last-child {
    margin-bottom: 0;
}
.product-description-rich ul,
.product-description-rich ol {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}
.product-description-rich li {
    margin-bottom: 0.25rem;
}
.product-description-rich strong {
    color: var(--text-light);
    font-weight: 700;
}
body.dark-mode .product-description-rich strong {
    color: var(--text-dark);
}
.product-description-rich a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.product-detail-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-wrap: balance;
    line-height: 1.15;
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
}

.product-detail-price-old {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.5;
    text-decoration: line-through;
}
body.dark-mode .product-detail-price-old {
    color: var(--text-dark);
}

.badge-discount {
    background-color: var(--brand-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 30px;
}

.option-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    opacity: 0.6;
}
body.dark-mode .option-label {
    color: var(--text-dark);
}

.swatch-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
body.dark-mode .swatch-btn {
    border-color: var(--border-dark);
}
.swatch-btn:hover {
    transform: scale(1.1);
}
.swatch-btn.active {
    box-shadow: 0 0 0 2px var(--card-bg-light), 0 0 0 4px var(--brand-primary);
}
body.dark-mode .swatch-btn.active {
    box-shadow: 0 0 0 2px var(--card-bg-dark), 0 0 0 4px var(--brand-primary);
}

.size-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background-color: var(--card-bg-light);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
body.dark-mode .size-btn {
    border-color: var(--border-dark);
    background-color: var(--card-bg-dark);
    color: var(--text-dark);
}
.size-btn:hover:not(:disabled) {
    border-color: var(--brand-primary);
}
.size-btn:active:not(:disabled) {
    transform: scale(0.92);
}
.size-btn.active {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: oklch(100% 0 0);
    animation: size-btn-pop 0.25s ease;
}
@keyframes size-btn-pop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.size-btn:disabled,
.size-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
}
body.dark-mode .qty-stepper {
    border-color: var(--border-dark);
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
body.dark-mode .qty-btn {
    color: var(--text-dark);
}
.qty-btn:hover {
    background-color: var(--border-light);
}
body.dark-mode .qty-btn:hover {
    background-color: var(--border-dark);
}
.qty-stepper input {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    text-align: center;
    font-weight: 600;
    background: transparent;
    color: var(--text-light);
    -moz-appearance: textfield;
}
body.dark-mode .qty-stepper input {
    border-color: var(--border-dark);
    color: var(--text-dark);
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.btn-add-to-cart:hover {
    background-color: var(--brand-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.btn-add-to-cart:active {
    transform: translateY(-1px) scale(0.97);
    transition-duration: 0.1s;
}

.btn-account-action {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-account-action:hover {
    background-color: var(--brand-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-account-action:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

.reviewable-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}
body.dark-mode .reviewable-item {
    border-color: var(--border-dark);
}
.reviewable-item:last-child {
    border-bottom: none;
}
.reviewable-item:hover {
    opacity: 0.8;
    color: inherit;
}
.reviewable-item-thumb {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--border-light);
}
.reviewable-item-thumb img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reviewable-item-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reviewable-item-action {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--brand-primary);
}

.trust-badges {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    color: var(--text-light);
    opacity: 0.8;
}
body.dark-mode .trust-badges {
    border-color: var(--border-dark);
    color: var(--text-dark);
}
.trust-badges i {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Cart & Checkout */
.cart-item-img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}
body.dark-mode .cart-item-img {
    border-color: var(--border-dark);
}

@media (max-width: 575.98px) {
    .cart-row {
        flex-wrap: wrap;
    }
    .cart-row .cart-item-img {
        width: 64px;
        height: 64px;
    }
    .cart-row > .text-end {
        text-align: left !important;
        width: 100%;
        padding-left: calc(64px + 1rem);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.checkout-summary-item .item-qty {
    color: var(--text-light);
    opacity: 0.6;
}
body.dark-mode .checkout-summary-item .item-qty {
    color: var(--text-dark);
}

/* Account Dashboard */
.account-sidebar {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}
body.dark-mode .account-sidebar {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.account-sidebar-header {
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}
body.dark-mode .account-sidebar-header {
    border-color: var(--border-dark);
}
.account-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: oklch(100% 0 0);
    background-color: var(--brand-primary);
}
.account-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.account-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    text-align: left;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
body.dark-mode .account-sidebar-link {
    color: var(--text-dark);
}
.account-sidebar-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    opacity: 0.7;
}
.account-sidebar-link:hover {
    background-color: var(--accent-glow);
}
.account-sidebar-link.active {
    background-color: var(--brand-primary);
    color: oklch(100% 0 0);
}
.account-sidebar-link.active i {
    opacity: 1;
}
.account-sidebar-link--danger:hover {
    background-color: oklch(60% 0.2 25 / 15%);
    color: oklch(55% 0.2 25);
}

.stat-tile {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
body.dark-mode .stat-tile {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.stat-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: oklch(100% 0 0);
    background-color: var(--brand-primary);
    margin-bottom: 0.75rem;
}
.stat-tile-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-tile-label {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
}
body.dark-mode .stat-tile-label {
    color: var(--text-dark);
}

/* Recent Orders (React island on the customer dashboard) */
.order-row {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
body.dark-mode .order-row {
    border-color: var(--border-dark);
}
.order-copy-btn {
    background: transparent;
    border: none;
    padding: 0.15rem;
    color: var(--text-light);
    opacity: 0.5;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}
body.dark-mode .order-copy-btn {
    color: var(--text-dark);
}
.order-copy-btn:hover {
    opacity: 1;
}
.order-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.order-step {
    flex: 1;
    position: relative;
    text-align: center;
}
.order-step-dot {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: var(--border-light);
    margin-bottom: 0.4rem;
}
body.dark-mode .order-step-dot {
    background-color: var(--border-dark);
}
.order-step.is-complete .order-step-dot {
    background-color: var(--brand-primary);
}
.order-step-label {
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.55;
}
body.dark-mode .order-step-label {
    color: var(--text-dark);
}
.order-step.is-current .order-step-label,
.order-step.is-complete .order-step-label {
    opacity: 1;
    font-weight: 600;
}
.order-stepper--cancelled {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: oklch(55% 0.2 25);
}

/* Support ticket thread */
.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ticket-message {
    max-width: 75%;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
}
body.dark-mode .ticket-message {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.ticket-message--mine {
    align-self: flex-end;
    background-color: var(--accent-glow);
    border-color: transparent;
    border-bottom-right-radius: 4px;
}
.ticket-message--other {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.ticket-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}
.ticket-message-body {
    font-size: 0.92rem;
    white-space: pre-line;
}
@media (max-width: 576px) {
    .ticket-message {
        max-width: 92%;
    }
}

/* Reviews */
.star-rating-display {
    display: inline-flex;
    gap: 0.15rem;
    color: var(--brand-primary);
    font-size: 0.9rem;
}
.star-rating-display.lg {
    font-size: 1.4rem;
}
.star-rating-input {
    display: inline-flex;
    gap: 0.3rem;
}
.star-rating-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brand-primary);
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.star-rating-btn:hover {
    transform: scale(1.15);
}
.review-card {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.25rem;
}
body.dark-mode .review-card {
    border-color: var(--border-dark);
}
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.review-card-author {
    font-weight: 600;
}
.review-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.6;
}
body.dark-mode .review-card-date {
    color: var(--text-dark);
}
.review-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.review-summary-score {
    font-size: 2rem;
    font-weight: 800;
}

/* Account Dashboard Shell — dedicated app-like layout, mirrors the admin panel structure */
[x-cloak] { display: none !important; }

.account-shell {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}
body.dark-mode .account-shell {
    background-color: var(--bg-dark);
}

.account-shell-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background-color: oklch(20% 0.05 260);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform var(--transition-fast);
}
.account-shell-sidebar.is-open {
    transform: translateX(0);
}
@media (min-width: 992px) {
    .account-shell-sidebar {
        position: sticky;
        height: 100vh;
        transform: none;
    }
}

.account-shell-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: oklch(100% 0 0);
    text-decoration: none;
    border-bottom: 1px solid oklch(100% 0 0 / 10%);
}

.account-shell-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid oklch(100% 0 0 / 10%);
}
.account-shell-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: oklch(100% 0 0);
}
.account-shell-user-email {
    font-size: 0.75rem;
    color: oklch(100% 0 0 / 60%);
}

.account-shell-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.account-shell-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: oklch(95% 0.02 260 / 75%);
    text-decoration: none;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.account-shell-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}
.account-shell-link:hover {
    background-color: oklch(100% 0 0 / 8%);
    color: oklch(100% 0 0);
}
.account-shell-link.active {
    background-color: var(--brand-primary);
    color: oklch(100% 0 0);
}

.account-shell-footer-link {
    margin: 0.5rem 0.75rem 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid oklch(100% 0 0 / 10%);
}

.account-shell-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0% 0 0 / 50%);
    z-index: 1035;
}
@media (min-width: 992px) {
    .account-shell-overlay {
        display: none !important;
    }
}

.account-shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.account-shell-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background-color: var(--card-bg-light);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}
body.dark-mode .account-shell-topbar {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.account-shell-topbar-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.account-shell-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-light);
}
body.dark-mode .account-shell-toggle {
    border-color: var(--border-dark);
    color: var(--text-dark);
}
@media (min-width: 992px) {
    .account-shell-toggle {
        display: none;
    }
}

.account-shell-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-light);
    transition: background-color var(--transition-fast);
}
.account-shell-icon-btn:hover {
    background-color: var(--accent-glow);
}
body.dark-mode .account-shell-icon-btn {
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
}
.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 24rem;
    overflow-y: auto;
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
}
body.dark-mode .notification-panel {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-light);
}
body.dark-mode .notification-panel-header {
    border-color: var(--border-dark);
}
.notification-mark-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
    color: var(--brand-primary);
}
.notification-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: background-color var(--transition-fast);
}
body.dark-mode .notification-item {
    border-color: var(--border-dark);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background-color: var(--accent-glow);
}
.notification-item.is-unread {
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--accent-glow);
}
body.dark-mode .notification-item.is-unread {
    color: var(--text-dark);
}
.notification-item-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.75;
}
.notification-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.75;
}

.account-shell-content {
    flex: 1;
    padding: 2rem;
}
/* .card-category normally stretches to 100% height for equal-height product grids;
   inside the account shell's stretched flex column that balloons into a huge blank card. */
.account-shell-content .card-category {
    height: auto;
}
@media (max-width: 767px) {
    .account-shell-content {
        padding: 1.25rem;
    }
}

/* Profile page */
.profile-summary-card {
    text-align: center;
}
.profile-avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
}
.profile-avatar-wrapper img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-bg-light);
    box-shadow: var(--shadow-sm);
}
body.dark-mode .profile-avatar-wrapper img {
    border-color: var(--card-bg-dark);
}
.profile-avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-primary);
    color: oklch(100% 0 0);
    border: 3px solid var(--card-bg-light);
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}
.profile-avatar-edit-btn:hover {
    transform: scale(1.08);
}
body.dark-mode .profile-avatar-edit-btn {
    border-color: var(--card-bg-dark);
}
.profile-summary-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}
.profile-summary-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
}
body.dark-mode .profile-summary-meta {
    color: var(--text-dark);
}

.form-control-soft {
    border-radius: 14px !important;
    padding: 0.65rem 1rem !important;
    background-color: var(--bg-light);
    border-color: var(--border-light);
    color: var(--text-light);
}
.form-control-soft:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
    border-color: var(--brand-primary);
}
body.dark-mode .form-control-soft {
    background-color: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}
body.dark-mode .form-control-soft:disabled {
    opacity: 0.6;
}

/* ============ Homepage: Hero Slider (React island) ============ */
.hero-slider {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.hero-slide-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, oklch(15% 0.05 260 / 85%) 0%, oklch(15% 0.05 260 / 15%) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    color: oklch(100% 0 0);
    padding: 8rem 0;
}
.hero-slide-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px oklch(0% 0 0 / 30%);
}
.hero-slide-content .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: oklch(100% 0 0 / 70%);
    max-width: 550px;
    margin-bottom: 2rem;
}
.hero-slide-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 1.1rem;
    border: 1px solid oklch(78% 0.13 82 / 60%);
    border-radius: 50px;
    color: oklch(80% 0.13 82);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: oklch(100% 0 0 / 12%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid oklch(100% 0 0 / 25%);
    color: oklch(100% 0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.hero-slider-nav:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.hero-slider-nav--prev { left: 2rem; }
.hero-slider-nav--next { right: 2rem; }
@media (max-width: 768px) {
    .hero-slider-nav { display: none; }
}
.hero-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
.hero-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: oklch(100% 0 0 / 40%);
    transition: all var(--transition-fast);
}
.hero-slider-dot.is-active {
    background: var(--brand-primary);
    width: 28px;
    border-radius: 6px;
}

/* ============ Homepage: Category showcase grid ============ */
.category-showcase-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    /* clip-path instead of overflow:hidden: a Chromium compositor bug can desync
       overflow-clipped, absolutely-positioned stacked content from its clip box
       during scroll, briefly showing stale pixels from elsewhere on the page.
       clip-path uses a different rendering path and avoids it. */
    clip-path: inset(0 round 20px);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    transform: translateZ(0);
    will-change: transform;
}
.category-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.category-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.category-showcase-card:hover img {
    transform: scale(1.08);
}
.category-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, oklch(15% 0.05 260 / 92%) 0%, oklch(15% 0.05 260 / 5%) 65%);
}
.category-showcase-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    color: oklch(100% 0 0);
}
.category-showcase-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}
.category-showcase-count {
    font-size: 0.8rem;
    color: oklch(100% 0 0 / 70%);
    margin-bottom: 0.75rem;
}
.category-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* ============ Homepage: Promo marquee banner ============ */
.promo-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: oklch(100% 0 0);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}
.promo-marquee {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: promo-marquee-scroll 24s linear infinite;
}
.promo-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.promo-marquee span strong {
    color: var(--brand-primary);
}
@keyframes promo-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============ Homepage: Tabbed collection showcase (React island) ============ */
.collection-showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.collection-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
body.dark-mode .collection-tab {
    border-color: var(--border-dark);
    color: var(--text-dark);
}
.collection-tab:hover:not(.is-active) {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.collection-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: oklch(100% 0 0);
}
.badge-discount-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: var(--brand-primary);
    color: oklch(100% 0 0);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
}

/* ============ Homepage: Stats counter band (React island) ============ */
.stats-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    padding: 5rem 0;
}
.stats-counter-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}
.stats-counter-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: oklch(100% 0 0 / 70%);
}
