/*
 * Voltage storefront design system.
 *
 * A high-contrast consumer-electronics register: Inter throughout, pure black
 * on white, a saturated blue and an acid yellow reserved for product labels,
 * and explicit green/red stock states. Headings stay sentence case.
 */

:root {
    --vo-page: 1440px;
    --vo-reading: 720px;
    --vo-gutter: 1rem;
    --vo-section: 1.75rem;

    --vo-text: #000000;
    --vo-heading: #282828;
    --vo-bg: #ffffff;
    --vo-bg-2: #f5f5f5;
    --vo-line: #d9d9d9;
    --vo-line-strong: #999999;
    --vo-muted: #6b6b6b;

    --vo-btn: #000000;
    --vo-btn-text: #ffffff;

    --vo-label: #405de6;
    --vo-label-text: #ffffff;
    --vo-label-2: #f3ff34;
    --vo-label-2-text: #000000;

    --vo-in-stock: #2e9e7b;
    --vo-low-stock: #de2a2a;
    --vo-error: #de2a2a;
    --vo-error-bg: #fdf0f0;
    --vo-success: #2e9e7b;
    --vo-success-bg: #d5ece5;

    --vo-radius: 6px;
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--vo-text);
    background: var(--vo-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .vo-heading {
    color: var(--vo-heading);
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.01em;
}

.vo-h1 { font-size: 26px; }
.vo-h2 { font-size: 20px; }
.vo-h3 { font-size: 16px; }
.vo-eyebrow { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--vo-muted); }

@media (min-width: 768px) {
    .vo-h1 { font-size: 32px; }
    .vo-h2 { font-size: 26px; }

    /* Section rhythm scales with the page: 3rem of padding above and below
       every band reads as air on a wide screen and as a void between two
       stacked rails on a phone. */
    :root { --vo-section: 3rem; }
}

.vo-shell {
    max-width: var(--vo-page);
    margin-inline: auto;
    padding-inline: var(--vo-gutter);
}

.vo-reading { max-width: var(--vo-reading); margin-inline: auto; }
.vo-section { padding-block: var(--vo-section); }
.vo-tint { background: var(--vo-bg-2); }

.vo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.75rem 1.75rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--vo-radius);
    border: 1px solid var(--vo-btn);
    background: var(--vo-btn);
    color: var(--vo-btn-text);
    transition: opacity 0.2s ease;
}

.vo-btn:hover:not(:disabled) { opacity: 0.85; }
.vo-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.vo-btn--alt { background: #fff; color: var(--vo-heading); border-color: var(--vo-heading); }
.vo-btn--alt:hover:not(:disabled) { background: var(--vo-heading); color: #fff; opacity: 1; }

.vo-btn--ter { background: var(--vo-bg-2); color: var(--vo-heading); border-color: var(--vo-bg-2); }

.vo-field {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.9rem;
    font-size: 16px;
    color: var(--vo-text);
    background: #fff;
    border: 1px solid var(--vo-line);
    border-radius: var(--vo-radius);
}

.vo-field:focus { outline: none; border-color: var(--vo-line-strong); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--vo-label);
    outline-offset: 2px;
}

.vo-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 90;
    background: var(--vo-btn);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--vo-radius);
    transition: top 0.2s ease;
}

.vo-skip:focus { top: 1rem; }

.vo-media { position: relative; overflow: hidden; background: var(--vo-bg-2); border-radius: var(--vo-radius); }
.vo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product shots are cut out on a pale ground, so a card that opts in sits the
   art inside its box rather than being cropped by it. Banner and editorial
   surfaces keep the crop above. */
.vo-media--fit img { object-fit: contain; }

.vo-media__hover { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }

@media (hover: hover) {
    .vo-card:hover .vo-media__hover,
    .vo-card:focus-within .vo-media__hover { opacity: 1; }
}

.aspect-portrait { aspect-ratio: 1 / 1; }
.aspect-wide { aspect-ratio: 16 / 9; }

.vo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0 10px, transparent 10px 20px),
        var(--vo-bg-2);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vo-muted);
}

/* Product labels: the saturated pair this storefront reserves for badges. */
.vo-label {
    background: var(--vo-label);
    color: var(--vo-label-text);
    font-size: 11px;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.vo-label--alt { background: var(--vo-label-2); color: var(--vo-label-2-text); }
.vo-label--sold { background: var(--vo-bg-2); color: var(--vo-muted); }

.vo-in-stock { color: var(--vo-in-stock); }
.vo-low-stock { color: var(--vo-low-stock); }

.vo-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 42px;
    padding: 0 0.9rem;
    border: 1px solid var(--vo-line);
    border-radius: var(--vo-radius);
    font-size: 14px;
    color: var(--vo-heading);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.vo-swatch:hover { border-color: var(--vo-heading); }
input:checked + .vo-swatch { border-color: var(--vo-heading); box-shadow: inset 0 0 0 1px var(--vo-heading); }
input:focus-visible + .vo-swatch { outline: 2px solid var(--vo-label); outline-offset: 2px; }

input:disabled + .vo-swatch {
    color: #bfbfbf;
    cursor: not-allowed;
    background: linear-gradient(to top left, transparent calc(50% - 1px), var(--vo-line) 50%, transparent calc(50% + 1px));
}

/* The bar is dark and the type inverts on it, as on the reference storefront.
   Colour is set here rather than with utilities on every link so the whole
   header — links, icons, the cart count — cannot drift apart. */
.vo-header {
    background: var(--vo-text);
    color: #fff;
    border-bottom: 1px solid var(--vo-text);
}

/* The desktop row and the menu button are one decision, so it is made here
   rather than left to two utilities: if the utility stylesheet is late or
   missing, both evaluate to nothing and the bar becomes a menu button with
   no row behind it. */
.vo-header [data-nav] { display: none; }
.vo-header [data-nav-toggle] { display: inline-flex; }

@media (min-width: 1024px) {
    .vo-header [data-nav] { display: flex; }
    .vo-header [data-nav-toggle] { display: none; }
}

/* Headings set their own colour, so the wordmark would stay near-black on the
   dark bar unless it is handed back to the header. */
.vo-header a,
.vo-header button,
.vo-header .vo-heading,
.vo-header h1, .vo-header h2, .vo-header h3 { color: inherit; }

.vo-header a:hover,
.vo-header button:hover { opacity: 0.7; }

/* On the dark bar the count reverses: white pill, dark figure. */
.vo-header .vo-count { background: #fff; color: var(--vo-text); }

/* The saving, given its own green band under the price. */
.vo-saving {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    background: var(--vo-in-stock);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* The card's call to action: a small deep-red pill, the one saturated thing
   in an otherwise black-and-white card. */
.vo-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 1rem;
    border-radius: 999px;
    background: #a3121a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.vo-buy:hover { opacity: 0.88; }

/* Round category shortcut. Product shots are cut out on a pale ground, so the
   circle carries a tint and the art sits inside it rather than being cropped
   by it. */
.vo-shortcut {
    width: 72px;
    height: 72px;
    margin-inline: auto;
    border-radius: 999px;
    background: var(--vo-bg-2);
    overflow: hidden;
    position: relative;
}

.vo-shortcut img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

/* Dropdown panels are white sheets hanging off a dark bar, so they opt back
   out of the inversion rather than rendering white type on white. */
.vo-header [data-menu-panel] { color: var(--vo-text); }
.vo-header [data-menu-panel] a { color: var(--vo-text); }
.vo-header [data-menu-panel] a:hover { opacity: 0.6; }

.vo-drawer { transition: transform 0.3s ease; }
.vo-scrim { transition: opacity 0.3s ease; opacity: 1; }

[data-overlay][data-state="closed"] .vo-scrim { opacity: 0; }
[data-overlay][data-state="closed"] .vo-drawer--left { transform: translateX(-100%); }
[data-overlay][data-state="closed"] .vo-drawer--right { transform: translateX(100%); }
[data-overlay][data-state="closed"] .vo-drawer--top { transform: translateY(-100%); }

.vo-prose { line-height: 1.75; }
.vo-prose > * + * { margin-top: 1rem; }
.vo-prose ul { list-style: disc; padding-left: 1.25rem; }
.vo-prose ol { list-style: decimal; padding-left: 1.25rem; }
.vo-prose a { text-decoration: underline; text-underline-offset: 3px; }
.vo-prose h2, .vo-prose h3 { margin-top: 2rem; color: var(--vo-heading); }

.vo-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vo-hero-track::-webkit-scrollbar { display: none; }

.vo-hero-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }

.vo-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: var(--vo-text);
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease;
}

.vo-hero-nav:hover { background: #fff; }

@media (min-width: 640px) {
    .vo-hero-nav { width: 2.5rem; height: 2.5rem; }
}

.vo-hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, width 0.2s ease;
}

.vo-hero-dot[aria-current="true"] { width: 1.25rem; background: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    /* Durations do not reach smooth scrolling: any scroll the scripts do
       not drive — an anchor jump, scrollIntoView, the browser restoring a
       position — keeps animating unless the behaviour itself is reset. */
    * { scroll-behavior: auto !important; }
}
