/* Neon Tech Mart — Main Styles */
:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-400: #86868b;
    --gray-600: #6e6e73;
    --gray-800: #1d1d1f;
    --success: #34c759;
    --danger: #ff3b30;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --font: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html { scroll-behavior: smooth; height: 100%; }

body {
    font-family: var(--font);
    color: var(--primary);
    background: var(--secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-home {
    background: #000;
    color: #fff;
}

/* Light sections reset inherited white text on homepage */
.section--light,
.page-home .section--light {
    color: var(--primary);
}

.section--light .section-header h2,
.page-home .section--light .section-header h2,
.page-home .section--light .features-head h2,
.page-home .why-section .section-header h2,
.page-home .testimonials-section .section-header h2,
.page-home .contact-section .section-header h2 {
    color: #000;
}

.section--light .section-header p {
    color: var(--gray-600);
}

.section--light h3,
.page-home .section--light h3 {
    color: #000;
}

.section-badge {
    display: inline-block;
    border: 1px solid var(--gray-200);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 12px;
}

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

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

.logo-neon { color: var(--accent); font-weight: 700; }

/* ── Header: default (inner pages) ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.site-header .hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header:not(.site-header--hero) .nav-pill-brand span {
    color: var(--primary);
    text-transform: none;
    font-weight: 600;
}

.nav-pill-brand .brand-short {
    display: none;
}

.site-header:not(.site-header--hero) .nav-pill-brand .nav-logo path {
    fill: var(--accent);
}

.site-header:not(.site-header--hero) .nav-pill-links a {
    color: var(--gray-600);
}

.site-header:not(.site-header--hero) .nav-pill-links a:hover {
    color: var(--primary);
}

.site-header:not(.site-header--hero) .nav-pill-cta {
    background: var(--accent);
    color: #fff;
}

.site-header:not(.site-header--hero) .nav-pill-cta:hover {
    background: var(--accent-hover);
}

.site-header:not(.site-header--hero) .nav-pill {
    background: var(--gray-100);
}

.site-header:not(.site-header--hero) .nav-pill-links {
    background: var(--gray-100);
}

/* ── Header: hero overlay (homepage) ── */
.site-header--hero {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header--hero .hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
    max-width: none;
}

@media (min-width: 768px) {
    .site-header--hero .hero-nav {
        padding: 24px 40px 0;
    }
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 23, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-pill-brand {
    padding: 12px 24px 12px 16px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.nav-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-pill-links {
    display: none;
    padding: 8px 12px;
    gap: 4px;
}

.nav-pill-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    padding: 8px 20px;
    border-radius: 999px;
    text-transform: lowercase;
    transition: color 0.2s;
}

.nav-pill-links a:hover {
    color: #fff;
}

.nav-pill-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-pill-cta {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: lowercase;
}

.nav-pill-cta:hover {
    background: #e5e5e5;
}

.nav-pill-cart {
    position: relative;
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
}

.nav-pill-menu {
    padding: 12px 14px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    display: none;
    width: 44px;
    height: 44px;
    border: none;
}

.menu-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.is-active .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-active .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header:not(.site-header--hero) .nav-pill-menu .menu-bar {
    background: var(--primary);
}

/* Mobile nav drawer */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100%;
    height: 100dvh;
    background: rgba(12, 12, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

.mobile-nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mobile-nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: lowercase;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mobile-nav-cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    margin-top: 16px;
    background: #fff;
    color: #000;
    border-radius: 999px;
    font-size: 0.95rem;
    text-transform: lowercase;
    font-weight: 500;
}

.mobile-nav-cta:hover {
    background: #e8e8e8;
}

/* Inner pages: light mobile drawer */
.site-header:not(.site-header--hero) .mobile-nav-drawer {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: var(--gray-200);
}

.site-header:not(.site-header--hero) .mobile-nav-drawer-head {
    border-bottom-color: var(--gray-200);
}

.site-header:not(.site-header--hero) .mobile-nav-title {
    color: var(--gray-600);
}

.site-header:not(.site-header--hero) .mobile-nav-close {
    color: var(--primary);
    background: var(--gray-100);
}

.site-header:not(.site-header--hero) .mobile-nav-links a {
    color: var(--gray-600);
}

.site-header:not(.site-header--hero) .mobile-nav-links a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.site-header:not(.site-header--hero) .mobile-nav-cta {
    background: var(--accent);
    color: #fff;
}

.site-header:not(.site-header--hero) .mobile-nav-cta:hover {
    background: var(--accent-hover);
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .nav-pill-links {
        display: flex;
    }
    .nav-pill-menu {
        display: none !important;
    }
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .nav-pill-menu {
        display: flex;
    }

    .nav-pill-cta--header {
        display: none;
    }

    .nav-pill-brand .brand-full {
        display: none;
    }

    .nav-pill-brand .brand-short {
        display: inline;
    }

    .site-header .hero-nav {
        padding: 12px 16px;
        gap: 8px;
    }

    .site-header--hero .hero-nav {
        padding: 16px 16px 0;
    }

    .nav-pill-brand {
        padding: 10px 16px 10px 12px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .nav-pill-cart {
        padding: 10px 12px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .nav-pill-actions {
        gap: 6px;
        flex-shrink: 0;
    }
}

/* Legacy header helpers (product pages) */
.header-inner,
.logo,
.main-nav,
.header-actions,
.cart-toggle,
.mobile-menu-btn {
    /* kept for compatibility if referenced elsewhere */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    transition: var(--transition);
}

.btn-add-cart:hover { background: var(--gray-800); }
.btn-add-cart:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-lg { padding: 16px 40px; font-size: 1rem; }

.btn-whatsapp {
    width: 100%;
    background: #25d366;
    color: white;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
}

.btn-whatsapp:hover { background: #1da851; }

/* ── Hero (fullscreen video + staggered type) ── */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-foreground {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-word {
    position: absolute;
    color: #fff;
    font-weight: 500;
    font-size: clamp(3rem, 14vw, 11rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: lowercase;
    margin: 0;
    white-space: nowrap;
    max-width: none;
}

.hero-word-1 { left: 16px; top: 18%; }
.hero-word-2 { right: 16px; top: 38%; left: auto; text-align: right; }
.hero-word-3 { left: 18%; top: 58%; }

@media (min-width: 768px) {
    .hero-word {
        font-size: clamp(3.5rem, 13vw, 12rem);
    }
    .hero-word-1 { left: 40px; }
    .hero-word-2 { right: 40px; }
    .hero-word-3 { left: 28%; }
}

.hero-desc {
    position: absolute;
    left: 24px;
    top: 46%;
    max-width: 240px;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255,255,255,0.9);
    text-transform: lowercase;
}

@media (min-width: 768px) {
    .hero-desc { left: 40px; }
}

.hero-stat {
    position: absolute;
    color: #fff;
}

.hero-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-value {
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-stat-value { font-size: 3rem; }
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    text-transform: lowercase;
}

@media (min-width: 768px) {
    .hero-stat-label { font-size: 0.875rem; }
}

.hero-stat-divider {
    display: none;
    width: 96px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

@media (min-width: 768px) {
    .hero-stat-divider { display: block; }
}

.hero-stat-divider-tr { transform: rotate(20deg); }
.hero-stat-divider-bl { transform: rotate(-20deg); }
.hero-stat-divider-br { transform: rotate(-20deg); }

.hero-stat-tr {
    right: 24px;
    top: 14%;
    text-align: right;
}

.hero-stat-tr .hero-stat-row {
    justify-content: flex-end;
}

.hero-stat-bl {
    left: 24px;
    bottom: 80px;
}

.hero-stat-br {
    right: 24px;
    bottom: 64px;
    text-align: right;
}

.hero-stat-br .hero-stat-row {
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .hero-stat-tr { right: 96px; }
    .hero-stat-bl { left: 80px; bottom: 96px; }
    .hero-stat-br { right: 80px; bottom: 80px; }
}

.hero-gradient {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 192px;
    background: linear-gradient(to bottom, transparent, #000);
    z-index: 3;
}

/* Sections below hero on homepage */
.page-home .categories-section {
    background: #fff;
    color: var(--primary);
}

/* ── Text Marquees ── */
.marquee {
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    user-select: none;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.marquee--reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 0;
    white-space: nowrap;
}

.marquee-item {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.marquee-dot {
    font-size: 0.55rem;
    opacity: 0.45;
}

.marquee--dark {
    background: #000;
    color: #fff;
}

.marquee--accent {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.marquee--light {
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--gray-200);
}

.marquee--light .marquee-dot {
    color: var(--accent);
    opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.page-home .site-footer {
    margin-top: 0;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* Categories */
.features-head {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.features-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    margin-bottom: 10px;
}

.features-head p {
    color: var(--gray-600);
    font-size: 1.02rem;
}

.features-grid {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.feature-card {
    padding: 28px;
    background: #fff;
    transition: background 0.2s, transform 0.2s;
    border-bottom: 1px solid var(--gray-200);
}

.feature-card:last-child {
    border-bottom: none;
}

.feature-card:hover {
    background: var(--gray-100);
}

.feature-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--primary);
}

.feature-icon .category-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: lowercase;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.45;
    max-width: 38ch;
}

/* Responsive divided grid — 3x3 on tablet+ */
@media (min-width: 640px) {
    .features-grid--3x3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid--3x3 .feature-card {
        border-bottom: 1px solid var(--gray-200);
        border-right: 1px solid var(--gray-200);
    }

    .features-grid--3x3 .feature-card:nth-child(3n) {
        border-right: none;
    }

    .features-grid--3x3 .feature-card:nth-last-child(-n + 3) {
        border-bottom: none;
    }
}

/* Legacy generic features grid fallback */
@media (min-width: 640px) {
    .features-grid:not(.features-grid--3x3) {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid:not(.features-grid--3x3) .feature-card:nth-child(odd) {
        border-right: 1px solid var(--gray-200);
    }
    .features-grid:not(.features-grid--3x3) .feature-card:nth-last-child(-n + 2) {
        border-bottom: none;
    }
}

@media (min-width: 1024px) {
    .features-grid:not(.features-grid--3x3) {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .features-grid:not(.features-grid--3x3) .feature-card:nth-child(3n) {
        border-right: none;
    }
    .features-grid:not(.features-grid--3x3) .feature-card:nth-last-child(-n + 3) {
        border-bottom: none;
    }
}

/* Countdown (legacy) */
.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.countdown-item {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    min-width: 64px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.countdown-item small {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* ── Flash Sale Section ── */
.flash-sale-section {
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
    padding: 80px 0 64px;
}

.flash-sale-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.flash-sale-inner {
    position: relative;
    z-index: 2;
}

.flash-sale-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.82) 50%,
        rgba(0, 0, 0, 0.88) 100%
    );
    z-index: -1;
    pointer-events: none;
}

.flash-sale-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 20px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 102, 255, 0.5);
    color: #fff;
    font-size: 0.8rem;
    text-transform: lowercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.flash-sale-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    margin-bottom: 8px;
    color: #fff;
}

.flash-sale-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 32px;
}

.flash-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.flash-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(20, 20, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-countdown-unit--accent {
    background: rgba(0, 60, 140, 0.85);
    border-color: rgba(0, 102, 255, 0.6);
    box-shadow: 0 0 24px rgba(0, 102, 255, 0.25);
}

.flash-countdown-value {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.flash-countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

.flash-countdown-sep {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
}

/* Flash carousel */
.flash-carousel-wrap {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.flash-carousel-track {
    display: flex;
    width: max-content;
    animation: flash-carousel-scroll 40s linear infinite;
}

.flash-carousel-track:hover {
    animation-play-state: paused;
}

.flash-carousel-group {
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

.flash-carousel-item {
    width: 280px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .flash-carousel-item { width: 300px; }
}

@keyframes flash-carousel-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Dark flash product cards */
.product-card--flash {
    background: #16181f;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.product-card--flash:hover {
    background: #1c1f28;
    border-color: rgba(0, 102, 255, 0.55);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
}

.product-card--flash .product-image {
    background: #0e1014;
}

.product-card--flash .product-info {
    background: #16181f;
    padding: 16px;
}

.product-card--flash .product-name,
.product-card--flash .product-name a {
    color: #fff;
}

.product-card--flash .price-current {
    color: #fff;
    font-weight: 700;
}

.product-card--flash .product-desc {
    color: rgba(255, 255, 255, 0.78);
}

.product-card--flash .price-old {
    color: rgba(255, 255, 255, 0.45);
}

.product-card--flash .btn-add-cart {
    background: var(--accent);
    color: #fff;
}

.product-card--flash .btn-add-cart:hover {
    background: var(--accent-hover);
}

.product-card--flash .stock-badge.in-stock {
    background: rgba(52, 199, 89, 0.2);
    color: #4ade80;
}

.product-card--flash .stock-badge.out-stock {
    background: rgba(255, 59, 48, 0.2);
    color: #ff8a80;
}

.product-card--flash .badge-sale {
    background: var(--accent);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .flash-carousel-track {
        animation: none;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-info { padding: 16px; }

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 6px;
}

/* Flash cards — must come after base .product-card to win specificity */
.flash-sale-section .product-card.product-card--flash {
    background: #16181f;
    border-color: rgba(255, 255, 255, 0.14);
}

.flash-sale-section .product-card.product-card--flash:hover {
    background: #1c1f28;
    transform: translateY(-4px);
}

.flash-sale-section .product-card--flash .product-image {
    background: #0e1014;
}

.flash-sale-section .product-card--flash .product-info {
    background: #16181f;
}

.flash-sale-section .product-card--flash .product-name,
.flash-sale-section .product-card--flash .product-name a {
    color: #fff;
}

.flash-sale-section .product-card--flash .product-desc {
    color: rgba(255, 255, 255, 0.78);
}

.flash-sale-section .product-card--flash .price-current {
    color: #fff;
}

.flash-sale-section .product-card--flash .price-old {
    color: rgba(255, 255, 255, 0.45);
}

.stock-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.stock-badge.in-stock { background: #e8f9ed; color: var(--success); }
.stock-badge.out-stock { background: #ffe8e6; color: var(--danger); }
.stock-badge.large { font-size: 0.85rem; padding: 6px 14px; margin: 16px 0; display: inline-block; }

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
}

/* Featured toolbar + search */
.featured-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.product-search-wrap {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
}

.product-search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.search-no-results {
    text-align: center;
    color: var(--gray-600);
    padding: 32px;
    grid-column: 1 / -1;
}

.container--narrow {
    max-width: 880px;
}

.section-header--compact {
    margin-bottom: 28px;
}

.section-header--compact h2 {
    font-size: 1.5rem;
}

.section-svg-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Why Choose Us */
.why-section { background: var(--gray-100); }

#new-arrivals,
.featured-section {
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.why-grid--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.why-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.why-card--compact {
    padding: 20px 16px;
    border: 1px solid var(--gray-200);
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.why-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.why-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-card--compact p {
    color: var(--gray-600);
    font-size: 0.8rem;
    line-height: 1.4;
}

.why-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Testimonials — scrolling columns */
.testimonials-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.testimonials-columns {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-height: 740px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.testimonials-col {
    flex: 0 0 auto;
    max-width: 320px;
    width: 100%;
    overflow: hidden;
}

.testimonials-col-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    animation: testimonials-scroll var(--duration, 15s) linear infinite;
}

@keyframes testimonials-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.testimonial-col-card {
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.08);
    max-width: 320px;
    width: 100%;
}

.testimonial-col-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--gray-600);
}

.testimonial-col-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-col-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-col-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.testimonial-col-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-600);
    opacity: 0.75;
    line-height: 1.3;
}

.testimonials-col--2 {
    display: none;
}

.testimonials-col--3 {
    display: none;
}

@media (min-width: 768px) {
    .testimonials-col--2 {
        display: block;
    }
}

@media (min-width: 1024px) {
    .testimonials-col--3 {
        display: block;
    }
}

@media (max-width: 767px) {
    .testimonials-columns {
        max-height: 520px;
        gap: 0;
    }

    .testimonial-col-card {
        padding: 20px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-col-track {
        animation: none;
    }
}

/* Contact split */
.contact-section {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.contact-dotted-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contact-dotted-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.contact-dotted-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 120%;
    height: 100%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.04), transparent 55%);
    filter: blur(30px);
    pointer-events: none;
}

.contact-section-inner {
    position: relative;
    z-index: 1;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.contact-details {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px;
}

.contact-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    margin-bottom: 24px;
}

.contact-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 10px;
    color: var(--accent);
}

.contact-list strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.contact-list a {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-list p {
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-wa-btn {
    width: 100%;
    text-align: center;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    min-height: 320px;
    background: var(--gray-200);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

/* Legacy testimonials (unused) */
.testimonials-slider { display: none; }

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--gray-400);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-logo { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.footer-col p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-links a:hover { background: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-credit a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: var(--accent);
}

body.cart-open {
    overflow: hidden;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: #fafafa;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
}

.cart-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-subtitle {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gray-600);
    background: var(--gray-100);
    transition: background 0.2s;
}

.cart-close:hover {
    background: var(--gray-200);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    scroll-behavior: smooth;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--gray-400);
    text-align: center;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    align-items: flex-start;
    animation: cartItemIn 0.3s ease;
}

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

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--gray-100);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--gray-100);
    border-radius: 999px;
    padding: 2px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.qty-btn:hover {
    background: var(--gray-200);
}

.qty-controls span {
    min-width: 28px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-remove {
    font-size: 1.25rem;
    color: var(--gray-400);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: color 0.2s, background 0.2s;
}

.cart-remove:hover {
    color: var(--danger);
    background: rgba(255, 59, 48, 0.1);
}

.cart-footer {
    padding: 20px 24px 28px;
    border-top: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-total strong {
    font-size: 1.35rem;
    color: var(--primary);
}

.checkout-form .form-group { margin-bottom: 12px; }
.checkout-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: #fff;
}

.btn-whatsapp {
    margin-top: 4px;
    border-radius: 12px;
    transition: transform 0.2s, background 0.2s;
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
}

/* Product Detail */
.product-detail-section { padding-top: 100px; }

.breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 32px;
}

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

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.gallery-main {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent);
    opacity: 1;
}

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

.product-category {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-detail-info h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}

.product-detail-price { margin-bottom: 8px; }
.product-detail-price .price-current { font-size: 1.75rem; }

.product-detail-desc {
    color: var(--gray-600);
    margin: 24px 0;
    line-height: 1.7;
}

.product-specs { margin-bottom: 64px; }
.product-specs h2 { font-size: 1.5rem; margin-bottom: 20px; }

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.specs-table th {
    width: 35%;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
}

.related-products h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.empty-state {
    text-align: center;
    color: var(--gray-400);
    padding: 40px;
}

/* Responsive */
@media (min-width: 640px) {
    .featured-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-search-wrap {
        margin: 0;
        flex: 1;
        max-width: 320px;
    }

    .filter-tabs {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid--compact { grid-template-columns: repeat(4, 1fr); }
    .contact-split { grid-template-columns: 1fr 1.2fr; }
    .contact-map { min-height: 100%; }
    .contact-map iframe { min-height: 400px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
    .product-detail { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── Page skeleton loader ── */
.page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-skeleton--minimal {
    padding: 24px;
    gap: 16px;
}

body.is-loaded .page-skeleton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-nav {
    height: 48px;
    max-width: 200px;
    border-radius: 999px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-hero {
    flex: 1;
    min-height: 40vh;
    border-radius: 16px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; margin: 0 auto; }
.skeleton-line.w-80 { width: 80%; }

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skeleton-card {
    aspect-ratio: 3/4;
    border-radius: 12px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .page-skeleton {
        transition: none;
    }
}

/* ── Mobile responsive polish ── */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Categories */
    .features-head h2 {
        font-size: 1.5rem;
    }

    .features-grid--3x3 {
        gap: 0;
    }

    .feature-card {
        padding: 16px 14px;
    }

    .feature-title {
        font-size: 0.95rem;
    }

    /* Flash sale */
    .flash-sale-section {
        padding: 48px 0;
    }

    .flash-countdown {
        gap: 6px;
        padding: 12px 14px;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .flash-countdown-unit {
        min-width: 48px;
        padding: 6px 8px;
    }

    .flash-countdown-value {
        font-size: 1.25rem;
    }

    .flash-countdown-label {
        font-size: 0.6rem;
    }

    .flash-countdown-sep {
        font-size: 1rem;
    }

    .flash-carousel-item {
        width: 240px;
    }

    /* Products */
    .products-grid {
        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        justify-content: flex-start;
        width: 100%;
    }

    .filter-tab {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .featured-toolbar {
        margin-bottom: 20px;
    }

    /* Why us */
    .why-grid--compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-card--compact {
        padding: 16px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 56px 0;
    }

    /* Contact */
    .contact-details {
        padding: 20px;
    }

    .contact-map {
        min-height: 260px;
    }

    .contact-map iframe {
        min-height: 260px;
    }

    /* Product detail */
    .product-detail {
        gap: 24px;
    }

    .specs-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .specs-table th {
        min-width: 110px;
    }

    /* Cart drawer */
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }

    .cart-item {
        gap: 10px;
    }

    .cart-item img {
        width: 56px;
        height: 56px;
    }

    /* Footer */
    .site-footer {
        padding-top: 48px;
    }

    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .flash-countdown-unit {
        min-width: 42px;
    }
}
