/* ============================================================
   VOLTEX — Electronics theme stylesheet
   Tokens: --vx-*
   Modes:  light (default) + [data-vx-mode="dark"]
   Dir:    LTR + RTL (uses logical properties: *-inline-*, *-block-*)
   ============================================================ */

/* ── Reset + base tokens ─────────────────────────────────────── */
:root {
    --vx-bg:               #f7f8fb;
    --vx-surface:          #ffffff;
    --vx-surface-2:        #f2f4f8;
    --vx-surface-3:        #e6ebf3;
    --vx-text:             #0b1220;
    --vx-text-2:           #3d4a63;
    --vx-text-3:           #6b7691;
    --vx-border:           #e2e7f0;
    --vx-border-strong:    #cfd6e2;
    --vx-accent:           #3b82f6;
    --vx-accent-strong:    #2563eb;
    --vx-accent-soft:      rgba(59,130,246,.10);
    --vx-accent-glow:      rgba(59,130,246,.35);
    --vx-danger:           #ef4444;
    --vx-danger-soft:      rgba(239,68,68,.10);
    --vx-success:          #16a34a;
    --vx-warn:             #f59e0b;
    --vx-deal:             #f97316;
    --vx-deal-soft:        rgba(249,115,22,.12);
    --vx-primary:          #0b1220;
    --vx-secondary:        var(--vx-accent);

    /* Radii — precise, no pills */
    --vx-r-xs:  4px;
    --vx-r-sm:  8px;
    --vx-r-md:  12px;
    --vx-r-lg:  16px;
    --vx-r-xl:  22px;

    /* Shadows — layered hairline + accent glow */
    --vx-shadow-1: 0 1px 2px rgba(15,23,42,.05), 0 0 0 1px rgba(15,23,42,.05);
    --vx-shadow-2: 0 4px 14px -4px rgba(15,23,42,.12), 0 0 0 1px rgba(15,23,42,.05);
    --vx-shadow-3: 0 16px 44px -18px rgba(15,23,42,.22), 0 0 0 1px rgba(15,23,42,.04);
    --vx-shadow-glow: 0 8px 32px -12px var(--vx-accent-glow);

    /* Spacing (4/8/12/16/24/32) */
    --vx-sp-1:  4px;
    --vx-sp-2:  8px;
    --vx-sp-3:  12px;
    --vx-sp-4:  16px;
    --vx-sp-5:  20px;
    --vx-sp-6:  24px;
    --vx-sp-7:  32px;
    --vx-sp-8:  48px;
    --vx-sp-9:  64px;

    /* Typography — Zain leads (matches Velora/Bazaaria/Classic default so
       every ElMatajer theme shares the same Arabic/Latin type personality).
       Cairo/Inter/Manrope follow as safe cross-platform fallbacks. */
    --vx-font:         'Zain','Cairo','Inter','Manrope','IBM Plex Sans Arabic',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    --vx-font-mono:    'JetBrains Mono','SF Mono',ui-monospace,'Cascadia Code','Fira Code',Menlo,monospace;
    --vx-font-heading: var(--vx-font);

    --vx-container:    1240px;
    --vx-header-h:     72px;
    --vx-nav-h:        48px;

    --vx-anim:         180ms cubic-bezier(.32,.72,0,1);
}

html[data-vx-mode="dark"] {
    --vx-bg:               #0a0f1a;
    --vx-surface:          #131a2c;
    --vx-surface-2:        #182035;
    --vx-surface-3:        #1e2740;
    --vx-text:             #e7ecf5;
    --vx-text-2:           #b3bcd0;
    --vx-text-3:           #8791a6;
    --vx-border:           #262f47;
    --vx-border-strong:    #35405e;
    --vx-accent-soft:      rgba(59,130,246,.16);
    --vx-accent-glow:      rgba(59,130,246,.50);
    --vx-shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05);
    --vx-shadow-2: 0 4px 14px -4px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
    --vx-shadow-3: 0 16px 44px -18px rgba(0,0,0,.80), 0 0 0 1px rgba(255,255,255,.04);
}

/* Keyboard focus ring — 2026-09-22 (theme audit F-06): this rule used to be
   scoped to `html[data-vx-mode="dark"]`, so in LIGHT mode Voltex shipped with
   no visible focus indicator at all (WCAG 2.4.7). It is now the base rule for
   both modes; the dark-mode block below only keeps the historical comment's
   intent (the default UA outline is invisible on the dark surfaces). */
:focus-visible {
    outline: 2px solid var(--vx-accent, #3b82f6);
    outline-offset: 2px;
    border-radius: 2px;
}
html[data-vx-mode="dark"] :focus-visible {
    outline: 2px solid var(--vx-accent, #3b82f6);
    outline-offset: 2px;
}
/* Interactive controls that paint their own background still need the ring to
   clear their edge. */
.vx-icon-btn:focus-visible,
.vx-btn:focus-visible,
.vx-nav a:focus-visible,
.vx-prod a:focus-visible,
.vx-cat-card:focus-visible { outline-offset: 3px; }

/* Heading that exists for assistive tech / search engines when the design has
   no visible title slot (home page with the hero switched off). A real <h1>
   in the DOM — not a CSS trick to hide a wrong heading. */
.vx-page-title-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--vx-font);
    background: var(--vx-bg);
    color: var(--vx-text);
    line-height: 1.55;
    font-size: 14.5px;
    min-height: 100vh;
    transition: background var(--vx-anim), color var(--vx-anim);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5 { font-family: var(--vx-font-heading); margin: 0; line-height: 1.25; font-weight: 800; }

/* ── Utilities ──────────────────────────────────────────────── */
.vx-container {
    max-width: var(--vx-container);
    margin: 0 auto;
    padding-inline: var(--vx-sp-4);
}
.vx-hide { display: none !important; }

/* ── Utility bar ────────────────────────────────────────────── */
.vx-utility {
    background: var(--vx-primary);
    color: #dbe4f5;
    font-size: 12.5px;
}
.vx-utility-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--vx-sp-4);
    min-height: 34px;
    padding-block: 4px;
}
.vx-utility-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    transition: background var(--vx-anim), color var(--vx-anim);
    color: #dbe4f5;
}
.vx-utility-social a:hover { background: rgba(255,255,255,.08); color: #fff; }
.vx-utility-msg { text-align: center; opacity: .95; }
.vx-utility-right { display: flex; justify-content: end; align-items: center; gap: var(--vx-sp-3); }
.vx-utility-phone { display: inline-flex; align-items: center; gap: 6px; color: #dbe4f5; }
.vx-utility-phone:hover { color: #fff; }

/* ── Header ─────────────────────────────────────────────────── */
.vx-header {
    background: var(--vx-surface);
    border-block-end: 1px solid var(--vx-border);
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: saturate(140%) blur(8px);
}
.vx-header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--vx-sp-6);
    min-height: var(--vx-header-h);
}
.vx-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
    color: var(--vx-text);
    letter-spacing: -0.02em;
}
.vx-logo img { max-height: 44px; width: auto; }
.vx-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--vx-accent), var(--vx-accent-strong));
    color: #fff;
    font-size: 16px;
    box-shadow: 0 6px 18px -6px var(--vx-accent-glow);
}
.vx-search {
    display: flex; align-items: center;
    background: var(--vx-surface-2);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-md);
    padding-inline-start: var(--vx-sp-3);
    transition: border-color var(--vx-anim), box-shadow var(--vx-anim);
}
.vx-search:focus-within {
    border-color: var(--vx-accent);
    box-shadow: 0 0 0 3px var(--vx-accent-soft);
}
.vx-search > i { color: var(--vx-text-3); font-size: 14px; }
.vx-search input {
    flex: 1;
    padding: 11px 12px;
    background: transparent;
    border: 0; outline: 0;
    font-size: 14px;
    color: var(--vx-text);
}
.vx-search input::placeholder { color: var(--vx-text-3); }
.vx-search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding-inline: 20px;
    background: var(--vx-accent);
    color: #fff;
    font-weight: 700;
    border-radius: var(--vx-r-sm);
    margin: 4px;
    transition: background var(--vx-anim), transform var(--vx-anim);
}
.vx-search-btn:hover { background: var(--vx-accent-strong); }
.vx-header-tools {
    display: flex; align-items: center; gap: var(--vx-sp-2);
}
.vx-icon-btn {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 12px;
    border-radius: var(--vx-r-sm);
    color: var(--vx-text-2);
    position: relative;
    transition: background var(--vx-anim), color var(--vx-anim);
    font-size: 11px;
}
.vx-icon-btn i { font-size: 17px; }
.vx-icon-btn:hover { background: var(--vx-surface-2); color: var(--vx-text); }
.vx-icon-lbl { font-size: 11px; font-weight: 600; }
.vx-icon-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--vx-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px -2px var(--vx-accent-glow);
}
.vx-cart-btn { background: linear-gradient(135deg, var(--vx-accent-soft), transparent); }

.vx-mode-toggle .vx-mode-icon-light { display: none; }
html[data-vx-mode="dark"] .vx-mode-toggle .vx-mode-icon-dark { display: none; }
html[data-vx-mode="dark"] .vx-mode-toggle .vx-mode-icon-light { display: inline-block; }

.vx-lang-dd { position: relative; }
.vx-lang-menu {
    position: absolute;
    top: 100%; inset-inline-end: 0;
    margin-block-start: 6px;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-md);
    box-shadow: var(--vx-shadow-2);
    padding: 6px;
    min-width: 140px;
    display: none;
    z-index: 60;
}
.vx-lang-dd[data-open="1"] .vx-lang-menu { display: block; }
.vx-lang-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 8px 10px;
    border-radius: var(--vx-r-sm);
    text-align: start;
    font-size: 13px;
    color: var(--vx-text);
}
.vx-lang-item:hover { background: var(--vx-surface-2); }
.vx-lang-item.is-on { color: var(--vx-accent); font-weight: 700; }

/* ── Nav row ─────────────────────────────────────────────────── */
.vx-nav {
    border-block-start: 1px solid var(--vx-border);
}
.vx-nav-list {
    display: flex; align-items: center; gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.vx-nav-list::-webkit-scrollbar { display: none; }
.vx-nav-list li a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    color: var(--vx-text-2);
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    border-block-end: 2px solid transparent;
    transition: color var(--vx-anim), border-color var(--vx-anim);
}
.vx-nav-list li a i { font-size: 12px; }
.vx-nav-list li a:hover { color: var(--vx-accent); }
.vx-nav-list li a.is-active {
    color: var(--vx-accent);
    border-block-end-color: var(--vx-accent);
}
.vx-nav-hot { color: var(--vx-deal) !important; }
.vx-nav-hot i { color: var(--vx-deal); }

/* ── Hero ───────────────────────────────────────────────────── */
.vx-hero {
    padding-block: var(--vx-sp-7) var(--vx-sp-8);
    background: radial-gradient(ellipse at top left, var(--vx-accent-soft), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(139,92,246,.06), transparent 50%),
                var(--vx-bg);
}
.vx-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--vx-sp-8);
    align-items: center;
}
.vx-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: var(--vx-accent-soft);
    color: var(--vx-accent);
    border-radius: 999px;
    font-size: 12.5px; font-weight: 700;
    letter-spacing: 0.02em;
}
.vx-hero-eyebrow i { font-size: 10px; }
.vx-hero-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-block: var(--vx-sp-4);
    font-weight: 900;
}
.vx-hero-title .vx-hero-accent {
    background: linear-gradient(135deg, var(--vx-accent), #8b5cf6 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.vx-hero-sub {
    color: var(--vx-text-2);
    font-size: 16px;
    max-width: 520px;
    margin-block-end: var(--vx-sp-6);
}
.vx-hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--vx-sp-3); }
.vx-hero-highlights {
    display: flex; flex-wrap: wrap; gap: var(--vx-sp-4);
    margin-block-start: var(--vx-sp-6);
}
.vx-hero-highlight {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--vx-text-2);
    font-size: 13.5px;
}
.vx-hero-highlight i { color: var(--vx-accent); font-size: 12px; }
.vx-hero-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--vx-r-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--vx-surface-2), var(--vx-surface-3));
    box-shadow: var(--vx-shadow-3), var(--vx-shadow-glow);
}
.vx-hero-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.vx-hero-priceflag {
    position: absolute;
    top: var(--vx-sp-4);
    inset-inline-end: var(--vx-sp-4);
    background: var(--vx-surface);
    border-radius: var(--vx-r-md);
    padding: 10px 14px;
    box-shadow: var(--vx-shadow-2);
    font-weight: 800;
    color: var(--vx-text);
}
.vx-hero-priceflag small { display: block; font-size: 11px; color: var(--vx-text-3); font-weight: 500; }
.vx-hero-priceflag strong { font-size: 20px; color: var(--vx-accent); font-family: var(--vx-font-mono); }

/* ── Button system ──────────────────────────────────────────── */
.vx-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--vx-r-sm);
    font-weight: 700; font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--vx-anim), background var(--vx-anim), box-shadow var(--vx-anim), color var(--vx-anim);
    white-space: nowrap;
}
.vx-btn--primary {
    background: var(--vx-accent);
    color: #fff;
    box-shadow: 0 6px 18px -6px var(--vx-accent-glow);
}
.vx-btn--primary:hover { background: var(--vx-accent-strong); transform: translateY(-1px); box-shadow: 0 10px 24px -8px var(--vx-accent-glow); }
.vx-btn--ghost {
    background: transparent;
    color: var(--vx-text);
    border: 1px solid var(--vx-border-strong);
}
.vx-btn--ghost:hover { background: var(--vx-surface-2); border-color: var(--vx-accent); color: var(--vx-accent); }
.vx-btn--outline {
    background: var(--vx-surface);
    color: var(--vx-accent);
    border: 1px solid var(--vx-accent);
}
.vx-btn--outline:hover { background: var(--vx-accent); color: #fff; }
.vx-btn--block { width: 100%; }
.vx-btn--lg { padding: 16px 28px; font-size: 15px; }
.vx-btn--sm { padding: 8px 14px; font-size: 12.5px; }

/* ── Section shell ─────────────────────────────────────────── */
.vx-section { padding-block: var(--vx-sp-7); }
.vx-section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: var(--vx-sp-4); margin-block-end: var(--vx-sp-6);
    flex-wrap: wrap;
}
.vx-section-title {
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: -0.02em;
    margin: 0;
}
.vx-section-title .vx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--vx-accent); margin-inline-end: 8px; vertical-align: middle; }
.vx-section-sub { color: var(--vx-text-3); font-size: 13.5px; margin-block-start: 6px; }
.vx-section-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--vx-accent);
    font-weight: 700;
    font-size: 13.5px;
}
.vx-section-link i { font-size: 11px; transition: transform var(--vx-anim); }
.vx-section-link:hover i { transform: translateX(3px); }
[dir="rtl"] .vx-section-link:hover i { transform: translateX(-3px); }

/* ── Brand strip ────────────────────────────────────────────── */
.vx-brands {
    background: var(--vx-surface);
    border-block: 1px solid var(--vx-border);
    padding-block: var(--vx-sp-5);
}
.vx-brands-row {
    display: flex; align-items: center; justify-content: space-around;
    flex-wrap: wrap; gap: var(--vx-sp-6);
}
.vx-brand {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding-inline: 6px;
    filter: grayscale(1);
    opacity: .55;
    transition: filter var(--vx-anim), opacity var(--vx-anim), transform var(--vx-anim);
    color: var(--vx-text-2);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.vx-brand img { max-height: 100%; width: auto; }
.vx-brand:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); color: var(--vx-text); }

/* ── Category tile grid ─────────────────────────────────────── */
.vx-cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--vx-sp-4);
}
.vx-cat {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 1/1.15;
    padding: var(--vx-sp-4);
    background: var(--vx-surface-2);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-lg);
    overflow: hidden;
    transition: transform var(--vx-anim), border-color var(--vx-anim), box-shadow var(--vx-anim);
    color: #fff;
    isolation: isolate;
}
.vx-cat-img {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(.32,.72,0,1), filter var(--vx-anim);
}
.vx-cat::after {
    /* Bottom→top dark scrim so the text stays legible over any photo. */
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(11,18,32,0) 0%,
        rgba(11,18,32,.15) 45%,
        rgba(11,18,32,.78) 100%);
    transition: background var(--vx-anim);
}
.vx-cat-meta {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 4px;
}
.vx-cat-badge {
    position: absolute; top: 12px; inset-inline-start: 12px;
    z-index: 3;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
}
.vx-cat:hover {
    transform: translateY(-4px);
    border-color: var(--vx-accent);
    box-shadow: var(--vx-shadow-3);
}
.vx-cat:hover .vx-cat-img { transform: scale(1.06); }
.vx-cat:hover::after {
    background: linear-gradient(180deg,
        rgba(11,18,32,0) 0%,
        rgba(11,18,32,.20) 40%,
        rgba(59,130,246,.72) 100%);
}
.vx-cat-name {
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    letter-spacing: -.01em;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.vx-cat-count {
    font-size: 11.5px;
    color: rgba(255,255,255,.85);
    font-family: var(--vx-font-mono);
    font-weight: 600;
}
/* Icon-only fallback tile — used only when the merchant hasn't
   uploaded a category photo yet. Renders a centered, tinted icon on
   a subtle gradient placeholder so the row still has visual weight. */
.vx-cat:not(:has(.vx-cat-img)) {
    background: linear-gradient(160deg, var(--vx-accent-soft), var(--vx-surface-2));
    color: var(--vx-text);
}
.vx-cat:not(:has(.vx-cat-img))::after {
    display: none;
}
.vx-cat:not(:has(.vx-cat-img)) .vx-cat-ico {
    position: static;
    inset: auto;
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--vx-surface);
    color: var(--vx-accent);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    font-size: 26px;
    align-self: center;
    margin-block: auto var(--vx-sp-3);
    box-shadow: 0 6px 18px -6px var(--vx-accent-glow);
}
.vx-cat:not(:has(.vx-cat-img)) .vx-cat-meta {
    text-align: center;
    align-items: center;
}
.vx-cat:not(:has(.vx-cat-img)) .vx-cat-name { color: var(--vx-text); text-shadow: none; }
.vx-cat:not(:has(.vx-cat-img)) .vx-cat-count { color: var(--vx-text-3); }

/* ── Product card ───────────────────────────────────────────── */
.vx-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vx-sp-4);
}
.vx-prod {
    display: flex; flex-direction: column;
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-lg);
    overflow: hidden;
    transition: transform var(--vx-anim), border-color var(--vx-anim), box-shadow var(--vx-anim);
    position: relative;
}
.vx-prod:hover {
    transform: translateY(-4px);
    border-color: var(--vx-accent);
    box-shadow: var(--vx-shadow-3);
}
.vx-prod-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 1/1;
    background-color: var(--vx-surface-2);
    background-size: cover;             /* full-bleed lifestyle shots */
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;                         /* no whitespace ring around the photo */
    overflow: hidden;
    transition: background-color var(--vx-anim), transform var(--vx-anim);
}
.vx-prod:hover .vx-prod-img-wrap { transform: scale(1.02); }
/* Inner &lt;img&gt; variant — used when the card renders a real &lt;img&gt; instead
   of a background-image (accessibility + SEO). Same cover contract. */
.vx-prod-img-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 400ms cubic-bezier(.32,.72,0,1);
}
.vx-prod:hover .vx-prod-img-wrap img { transform: scale(1.05); }
.vx-prod-badges {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: flex; flex-direction: column; gap: 6px;
}
.vx-badge {
    display: inline-flex; align-items: center;
    padding: 4px 8px;
    background: var(--vx-text);
    color: var(--vx-surface);
    border-radius: 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em;
}
.vx-badge.is-new { background: var(--vx-accent); color: #fff; }
.vx-badge.is-deal { background: var(--vx-deal); color: #fff; }
.vx-prod-fav {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--vx-surface);
    color: var(--vx-text-2);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--vx-shadow-1);
    transition: transform var(--vx-anim), color var(--vx-anim);
}
.vx-prod-fav:hover { transform: scale(1.08); color: var(--vx-danger); }
.vx-prod-fav.is-fav, .vx-prod-fav.is-active { color: var(--vx-danger); }
.vx-prod-fav.is-fav i, .vx-prod-fav.is-active i { font-weight: 900; }
.vx-prod-meta {
    padding: var(--vx-sp-4);
    display: flex; flex-direction: column; gap: var(--vx-sp-3);
}
.vx-prod-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--vx-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    line-height: 1.4;
}
.vx-prod-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.vx-prod-spec {
    display: inline-flex; align-items: center;
    padding: 3px 7px;
    background: var(--vx-surface-2);
    color: var(--vx-text-2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--vx-font-mono);
}
.vx-prod-price-row { display: flex; align-items: baseline; gap: var(--vx-sp-3); }
.vx-prod-price {
    font-family: var(--vx-font-mono);
    font-weight: 800;
    color: var(--vx-text);
    font-size: 18px;
}
.vx-prod-price small { font-size: 11px; color: var(--vx-text-3); margin-inline-start: 4px; font-weight: 600; }
.vx-prod-price-old {
    color: var(--vx-text-3);
    text-decoration: line-through;
    font-size: 13px;
    font-family: var(--vx-font-mono);
}
.vx-prod-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vx-text-3); }
.vx-prod-rating .stars { color: var(--vx-warn); }
.vx-prod-cart {
    padding: 10px 12px;
    background: var(--vx-text);
    color: var(--vx-surface);
    border-radius: var(--vx-r-sm);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background var(--vx-anim);
}
.vx-prod-cart:hover { background: var(--vx-accent); color: #fff; }

/* ── Deals countdown ────────────────────────────────────────── */
.vx-deals {
    background: linear-gradient(135deg, #0b1220 0%, #142140 100%);
    color: #fff;
    border-radius: var(--vx-r-xl);
    padding: var(--vx-sp-7);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--vx-sp-6);
    position: relative;
    overflow: hidden;
}
.vx-deals::before {
    content: "";
    position: absolute;
    top: -80px; inset-inline-end: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, var(--vx-accent-glow) 0%, transparent 70%);
}
.vx-deals-head { position: relative; z-index: 2; }
.vx-deals-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,.10);
    color: #fff;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.vx-deals-eyebrow i { color: var(--vx-deal); }
.vx-deals-title {
    font-size: clamp(24px, 3.5vw, 34px);
    margin-block: var(--vx-sp-3) var(--vx-sp-2);
    font-weight: 900; letter-spacing: -0.02em;
}
.vx-deals-sub { color: rgba(255,255,255,.75); font-size: 14px; }
.vx-countdown {
    display: flex; gap: var(--vx-sp-2);
    margin-block-start: var(--vx-sp-5);
    position: relative; z-index: 2;
}
.vx-cd-cell {
    background: rgba(255,255,255,.08);
    border-radius: var(--vx-r-md);
    padding: 10px 14px;
    text-align: center;
    min-width: 60px;
}
.vx-cd-cell strong {
    font-family: var(--vx-font-mono);
    font-size: 22px;
    color: #fff;
    display: block;
    line-height: 1;
}
.vx-cd-cell small { font-size: 10px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }

/* ── Trust / feature bar (footer top) ───────────────────────── */
.vx-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vx-sp-4);
    padding-block: var(--vx-sp-7);
    border-block-start: 1px solid var(--vx-border);
    margin-block-start: var(--vx-sp-8);
}
.vx-feature { display: flex; align-items: center; gap: var(--vx-sp-3); }
.vx-feature-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--vx-accent-soft);
    color: var(--vx-accent);
    font-size: 18px;
    flex-shrink: 0;
}
.vx-feature-meta { display: flex; flex-direction: column; gap: 2px; }
.vx-feature-meta strong { font-size: 13.5px; color: var(--vx-text); font-weight: 700; }
.vx-feature-meta small { font-size: 11.5px; color: var(--vx-text-3); }

/* ── Newsletter ─────────────────────────────────────────────── */
.vx-newsletter {
    background: var(--vx-surface);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-xl);
    padding: var(--vx-sp-7);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--vx-sp-6);
    align-items: center;
}
.vx-newsletter h3 { font-size: 24px; margin: 0 0 8px; }
.vx-newsletter p { color: var(--vx-text-2); font-size: 14px; margin: 0; }
.vx-newsletter form { display: flex; gap: var(--vx-sp-2); flex-wrap: wrap; }
.vx-newsletter input {
    flex: 1;
    padding: 12px 16px;
    background: var(--vx-surface-2);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-sm);
    color: var(--vx-text);
    min-width: 200px;
}
.vx-newsletter input:focus { outline: 0; border-color: var(--vx-accent); box-shadow: 0 0 0 3px var(--vx-accent-soft); }

/* ── Footer ─────────────────────────────────────────────────── */
.vx-footer {
    background: var(--vx-surface);
    border-block-start: 1px solid var(--vx-border);
    padding-block: var(--vx-sp-7);
    margin-block-start: var(--vx-sp-8);
}
.vx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--vx-sp-6);
    padding-block-end: var(--vx-sp-6);
    border-block-end: 1px solid var(--vx-border);
}
.vx-footer-col h4 { font-size: 15px; margin: 0 0 var(--vx-sp-3); color: var(--vx-text); }
.vx-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vx-footer-col li a { color: var(--vx-text-2); font-size: 13.5px; transition: color var(--vx-anim); }
.vx-footer-col li a:hover { color: var(--vx-accent); }
.vx-footer-about p { color: var(--vx-text-2); font-size: 13.5px; max-width: 40ch; }
.vx-footer-social { display: flex; gap: var(--vx-sp-2); margin-block-start: var(--vx-sp-3); }
.vx-footer-social a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--vx-surface-2);
    color: var(--vx-text-2);
    border-radius: var(--vx-r-sm);
    transition: background var(--vx-anim), color var(--vx-anim);
}
.vx-footer-social a:hover { background: var(--vx-accent); color: #fff; }
.vx-footer-contact-list li {
    display: flex; align-items: start; gap: 8px;
    color: var(--vx-text-2); font-size: 13.5px;
}
.vx-footer-contact-list i { color: var(--vx-accent); margin-block-start: 3px; }
.vx-payment-strip {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: var(--vx-sp-4);
    border-block-end: 1px solid var(--vx-border);
    gap: var(--vx-sp-4);
    flex-wrap: wrap;
}
.vx-payment-lbl { color: var(--vx-text-3); font-size: 12.5px; }
.vx-payment-icons { display: flex; gap: var(--vx-sp-3); font-size: 22px; color: var(--vx-text-2); }
.vx-footer-bottom { padding-block: var(--vx-sp-4) 0; text-align: center; }
.vx-footer-copy { color: var(--vx-text-3); font-size: 12.5px; }
.vx-footer-brand { color: var(--vx-accent); font-weight: 700; }
.vx-footer-sep { margin-inline: 6px; color: var(--vx-border-strong); }

/* ── Bottom mobile nav ──────────────────────────────────────── */
.vx-btm {
    position: fixed;
    inset-block-end: 0; inset-inline: 0;
    z-index: 60;
    background: var(--vx-surface);
    border-block-start: 1px solid var(--vx-border);
    display: none;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px -12px rgba(15,23,42,.18);
}
.vx-btm-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    color: var(--vx-text-3);
    font-size: 10.5px; font-weight: 600;
    position: relative;
    transition: color var(--vx-anim);
}
.vx-btm-item i { font-size: 18px; }
.vx-btm-item.is-active { color: var(--vx-accent); }
.vx-btm-search-cta {
    background: var(--vx-accent);
    color: #fff !important;
    margin: -14px 4px 0;
    height: 56px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -8px var(--vx-accent-glow);
}
.vx-btm-search-cta i { font-size: 20px; }
.vx-btm-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 18%;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--vx-accent);
    color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ── Auth modal ─────────────────────────────────────────────── */
.vx-auth {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.vx-auth[hidden] { display: none; }
.vx-auth__overlay {
    position: absolute; inset: 0;
    background: rgba(11,18,32,.62);
    backdrop-filter: blur(4px);
}
.vx-auth__panel {
    position: relative;
    background: var(--vx-surface);
    border-radius: var(--vx-r-xl);
    padding: var(--vx-sp-7);
    max-width: 440px;
    width: 100%;
    box-shadow: var(--vx-shadow-3);
    max-height: 92vh;
    overflow-y: auto;
}
.vx-auth__close {
    position: absolute;
    top: 12px; inset-inline-end: 12px;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: var(--vx-text-2);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--vx-anim);
}
.vx-auth__close:hover { background: var(--vx-surface-2); color: var(--vx-text); }
.vx-auth__head { text-align: center; margin-block-end: var(--vx-sp-5); }
.vx-auth__brand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--vx-accent), var(--vx-accent-strong));
    color: #fff;
    font-size: 24px;
    margin-block-end: var(--vx-sp-3);
    box-shadow: var(--vx-shadow-glow);
}
.vx-auth__head h2 { font-size: 22px; margin: 0 0 6px; }
.vx-auth__head p { color: var(--vx-text-3); font-size: 13.5px; margin: 0; }
.vx-auth__tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: var(--vx-surface-2);
    padding: 4px; border-radius: var(--vx-r-md);
    margin-block-end: var(--vx-sp-5);
}
.vx-auth__tab {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--vx-text-2);
    font-weight: 700; font-size: 13.5px;
}
.vx-auth__tab.is-active { background: var(--vx-surface); color: var(--vx-text); box-shadow: var(--vx-shadow-1); }
.vx-auth__form { display: flex; flex-direction: column; gap: var(--vx-sp-3); }
.vx-auth__field { display: flex; flex-direction: column; gap: 4px; }
.vx-auth__field label { font-size: 12.5px; color: var(--vx-text-2); font-weight: 600; }
.vx-auth__field input {
    padding: 11px 14px;
    background: var(--vx-surface-2);
    border: 1px solid var(--vx-border);
    border-radius: var(--vx-r-sm);
    color: var(--vx-text);
    font-size: 14px;
}
.vx-auth__field input:focus { outline: 0; border-color: var(--vx-accent); box-shadow: 0 0 0 3px var(--vx-accent-soft); }
.vx-auth__actions { display: flex; flex-direction: column; gap: var(--vx-sp-3); margin-block-start: var(--vx-sp-2); }
.vx-auth__forgot { color: var(--vx-accent); font-size: 12.5px; font-weight: 600; align-self: end; }

/* ── Cart / wishlist / detail bridges (uses --ms-* canonical) ── */
.ms-card {
    --ms-card-bg:   var(--vx-surface);
    --ms-card-bd:   var(--vx-border);
    --ms-card-fg:   var(--vx-text);
    --ms-card-fg2:  var(--vx-text-2);
    --ms-accent:    var(--vx-accent);
}

/* ── Responsive breakpoints ─────────────────────────────────── */
@media (max-width: 1080px) {
    .vx-cats-grid { grid-template-columns: repeat(4, 1fr); }
    .vx-prod-grid { grid-template-columns: repeat(3, 1fr); }
    .vx-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .vx-footer-grid .vx-footer-col:nth-child(4) { grid-column: span 3; }
}
@media (max-width: 860px) {
    .vx-hero-grid { grid-template-columns: 1fr; }
    .vx-hero-visual { aspect-ratio: 16/10; }
    .vx-newsletter { grid-template-columns: 1fr; }
    .vx-deals { grid-template-columns: 1fr; }
    .vx-features { grid-template-columns: repeat(2, 1fr); }
    .vx-search-btn { display: none; }
    .vx-icon-lbl { display: none; }
    /* Utility row on mobile: KEEP the right column (mode + lang + currency pills)
       visible — that's how the customer toggles dark/light on the demo. Only the
       shipping-message strip is hidden to save vertical space. */
    .vx-utility-row { grid-template-columns: auto auto; }
    .vx-utility-msg { display: none; }
    .vx-utility-social { display: none; }
    .vx-utility-right {
        grid-column: 2;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
    }
    .vx-utility-pill { padding: 4px 8px; font-size: 11px; }
}
@media (max-width: 640px) {
    .vx-container { padding-inline: 12px; }
    .vx-cats-grid { grid-template-columns: repeat(3, 1fr); }
    .vx-prod-grid { grid-template-columns: repeat(2, 1fr); }
    .vx-footer-grid { grid-template-columns: 1fr 1fr; }
    .vx-footer-grid .vx-footer-col:first-child { grid-column: span 2; }
    .vx-btm { display: grid; }
    body { padding-block-end: 80px; }
    .vx-nav-list li a { padding: 10px 12px; font-size: 12.5px; }
    .vx-nav-list li a i { display: none; }
    .vx-header-row { grid-template-columns: auto 1fr auto; gap: var(--vx-sp-3); }
    .vx-icon-btn { padding: 6px 8px; }
    .vx-features { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
    .vx-feature { flex-direction: column; text-align: center; gap: 7px; }
    .vx-feature-meta { align-items: center; }
}

/* ════════════════════════════════════════════════════════════════════
   VOLTEX · RESPONSIVE HARDENING LAYER (2026-07-12)

   Ports the 7-breakpoint discipline that landed on Classic:
     • Global safety (img fluidity, focus rings, overflow guard)
     • ≤374 narrow-phone refinement
     • ≥1440 large desktop breathing
     • ≥1920 ultrawide gutter
   Everything above is untouched. Cascade order carries the wins;
   no !important needed.
   ════════════════════════════════════════════════════════════════════ */

html, body { overflow-x: clip; }

/* ── 2026-09-23 · REAL fix for the header overflow the clip above was masking ──
   .vx-header-row is `grid-template-columns: auto 1fr auto` (logo | search |
   tools). A 1fr track never shrinks below its content's min-content width, and
   an <input> carries an intrinsic minimum (~size=20 chars). So on phones the
   search column stayed wide and pushed .vx-header-tools past the viewport —
   measured +135px @320, +82px @375, +67px @390, +43px @414, with the cart and
   account buttons genuinely cut off (overflow-x:clip hid the scrollbar, not the
   problem). Letting the track shrink fixes it structurally: nothing hidden,
   nothing scaled down. Verified in Chromium — body overflow 135/82/67/43 → 0. */
.vx-search { min-width: 0; }
.vx-search input { min-width: 0; }
.vx-container img, section img, article img { max-width: 100%; height: auto; }
.vx-hero :focus-visible,
.vx-prod-grid :focus-visible,
.vx-cats-grid :focus-visible,
.vx-btm :focus-visible,
.vx-nav-list :focus-visible {
    outline: 2px solid var(--vx-accent, #3b82f6);
    outline-offset: 2px;
    border-radius: 4px;
}
.vx-prod-cart:active { transform: scale(.98); }

/* ── 320-374 · narrow phones ──────────────────────────────────── */
@media (max-width: 374px) {
    .vx-container { padding-inline: 10px; }
    .vx-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vx-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vx-prod-meta { padding: 10px; gap: 6px; }
    .vx-prod-name { font-size: 12.5px; }
    .vx-prod-price { font-size: 15px; }
    .vx-prod-cart { padding: 8px 6px; font-size: 11.5px; gap: 4px; }
    .vx-section-title { font-size: clamp(18px, 5.2vw, 22px); }
    .vx-section-sub { font-size: 11.5px; }
    .vx-btm { padding: 6px 0; }
    .vx-btm a { padding: 6px 4px; }
    .vx-btm-label { font-size: 10px; }
    .vx-utility { padding: 6px 10px; }
}

/* ── ≥1440 · large desktops ──────────────────────────────────── */
@media (min-width: 1440px) {
    :root { --vx-container: 1360px; }
    .vx-prod-grid { gap: 22px; }
    .vx-cats-grid { gap: 18px; }
}

/* ── ≥1920 · ultrawide ───────────────────────────────────────── */
@media (min-width: 1920px) {
    :root { --vx-container: 1480px; }
    .vx-container { padding-inline: 32px; }
}

/* ══════════════════════════════════════════════════════════════════
   VOLTEX · PRODUCT DETAIL WRAPPER STYLES (2026-07-12)

   Missing gap: the Voltex detail page emits .vx-detail-wrap +
   .vx-crumbs + .vx-crumbs-sep + .vx-related classes but style.css
   never defined them. The breadcrumb rendered as unstyled inline
   links — flags itself immediately against the theme's polished
   dark surface. These are additive rules that fill the gap without
   touching the shared product-detail styles.
   ══════════════════════════════════════════════════════════════════ */
.vx-detail-wrap { padding-block: 24px 48px; }

.vx-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--vx-text-3, #94a3b8);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.vx-crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vx-text-2, #cbd5e1);
    text-decoration: none;
    font-weight: 500;
    transition: color .18s ease;
}
.vx-crumbs a:hover { color: var(--vx-accent, #3b82f6); }
.vx-crumbs a i { font-size: 11px; }
.vx-crumbs-sep {
    font-size: 9px;
    color: var(--vx-text-3, #94a3b8);
    opacity: .6;
}
.vx-crumbs .is-current {
    color: var(--vx-text, #f8fafc);
    font-weight: 600;
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vx-related { margin-block-start: 48px; }

/* ── Detail wrapper responsive scaling ──────────────────────────── */
@media (max-width: 640px) {
    .vx-detail-wrap { padding-block: 16px 32px; }
    .vx-related { margin-block-start: 32px; }
    .vx-crumbs { font-size: 12px; margin-bottom: 14px; gap: 6px; }
    .vx-crumbs .is-current { max-width: 16ch; }
}
@media (max-width: 374px) {
    .vx-crumbs { font-size: 11.5px; }
    .vx-crumbs .is-current { max-width: 12ch; }
    .vx-crumbs a span { display: none; } /* Icons only on ultra-narrow */
    .vx-crumbs .is-current { display: inline; }
}
