/*
 * 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;
}

/* Selected custom fields on the product detail page. */
.vo-specifications { margin-block: .75rem; font-size: .875rem; }
.vo-specification { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding-block: .5rem; }
.vo-specification dt { font-weight: 600; }
.vo-specification dd { margin: 0; overflow-wrap: anywhere; }

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-offers { margin-top: 0.75rem; }
.vo-offer-badge {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: var(--vo-low-stock);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.vo-offer-terms { margin-top: 0.3rem; color: var(--vo-muted); font-size: 12px; overflow-wrap: anywhere; }
.vo-offer-details { margin-top: 0.5rem; font-size: 12px; }
.vo-offer-details > summary { cursor: pointer; text-decoration: underline; }
.vo-offer-entry { margin-top: 0.6rem; }

.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-brand] { max-width: 180px; overflow: hidden; }
.vo-header [data-brand] .vo-heading { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-header [data-brand] img { max-width: 100%; object-fit: contain; }
@media (max-width: 1023px) {
    .vo-header [data-brand] { max-width: min(140px, calc(100vw - 244px)); }
}
.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;
}

/* Brand logos use a consistent neutral disc while preserving the full mark.
   `safe center` centres short rows and falls back to the scroll start when a
   row is wider than its viewport, so the first brand is always reachable. */
.vo-brand-track { justify-content: safe center; }

.vo-brand-logo {
    width: 88px;
    height: 88px;
    margin-inline: auto;
    border-radius: 999px;
    background: var(--vo-bg-2);
    overflow: hidden;
    position: relative;
}

.vo-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 11px;
    display: block;
}

.vo-brand-logo__fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* 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-prose .sg-product-spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95em; }
.vo-prose .sg-product-spec-table th,
.vo-prose .sg-product-spec-table td { border: 1px solid var(--vo-line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; line-height: 1.5; }
.vo-prose .sg-product-spec-table th { background: var(--vo-bg-2); font-weight: 600; }
.vo-prose .sg-product-spec-table td strong,
.vo-prose .sg-product-spec-table th strong { font-weight: inherit; }

@media (max-width: 640px) {
    .vo-prose .sg-product-spec-table { display: block; overflow-x: auto; }
}

.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; }

.vo-listing-toolbar { top: var(--vo-header-height, 64px); }
#listing-product-grid { scroll-margin-top: calc(var(--vo-header-height, 64px) + 72px); }
.vo-filter-sidebar { display: none; }

.vo-filter-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem .5rem; }
.vo-filter-header h2 { font-size: 17px; font-weight: 650; color: var(--vo-heading); }
.vo-filter-header p, .vo-filter-header a { font-size: 12px; color: var(--vo-muted); }
.vo-filter-header a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.vo-filter-heading { display: block; margin-bottom: .65rem; font-size: 12px; font-weight: 650; color: var(--vo-heading); }
.vo-filter-status { min-height: 0; margin: 0; color: var(--vo-muted); font-size: 12px; }
.vo-filter-status:not(:empty) { padding: .5rem 0; }
.vo-filter-search { padding: .75rem 0 1.25rem; }
.vo-filter-search .vo-field { font-size: 14px; min-height: 44px; }
.vo-facet { border-top: 1px solid var(--vo-line); }
.vo-facet-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .75rem .15rem; cursor: pointer; list-style: none; font-size: 12px; font-weight: 650; letter-spacing: .035em; text-transform: uppercase; color: var(--vo-heading); }
.vo-facet-summary::-webkit-details-marker { display: none; }
.vo-facet-summary-end { display: inline-flex; align-items: center; gap: .5rem; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--vo-muted); }
.vo-facet-chevron { width: 8px; height: 8px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.vo-facet[open] .vo-facet-chevron { transform: rotate(225deg); }
.vo-facet-search { min-height: 38px; margin: .1rem 0 .55rem; font-size: 13px; }
.vo-facet-values { max-height: none; overflow: visible; padding: 0 .2rem .75rem 0; }
.vo-facet-option { display: flex; align-items: flex-start; gap: .7rem; min-height: 38px; padding: .42rem .2rem; border-radius: 4px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.vo-facet-option[hidden] { display: none !important; }
.vo-facet-option:hover { background: var(--vo-bg-2); }
.vo-facet-option--disabled { opacity: .42; cursor: default; }
.vo-facet-option input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--vo-heading); }
.vo-facet-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vo-facet-count { margin-left: auto; color: var(--vo-muted); font-variant-numeric: tabular-nums; }
.vo-facet-empty { padding: .75rem 0; color: var(--vo-muted); font-size: 13px; }
.vo-child-nav { padding: 1.25rem; border-bottom: 1px solid var(--vo-line); background: #f8f8f8; }
.vo-child-nav ul { display: grid; gap: .1rem; max-height: none; overflow: visible; }
.vo-child-nav a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 38px; padding: .35rem .45rem; border-radius: 4px; font-size: 13px; line-height: 1.35; }
.vo-child-nav a:hover, .vo-child-nav a:focus-visible { background: #fff; text-decoration: underline; text-underline-offset: 3px; }
.vo-child-nav a span { color: var(--vo-muted); }
[data-listing-page][aria-busy="true"] #listing-product-grid { opacity: .55; transition: opacity .15s ease; }
.vo-card-media { position: relative; }
.vo-quick-view-trigger { position: absolute; inset-inline-end: .75rem; top: .75rem; z-index: 2; min-height: 38px; padding: 0 .8rem; border: 1px solid var(--vo-line); border-radius: 5px; background: rgba(255,255,255,.97); color: var(--vo-heading); font-size: 12px; font-weight: 650; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.vo-quick-view-trigger:hover, .vo-quick-view-trigger:focus-visible { background: var(--vo-heading); color: #fff; }
.vo-quick-view { position: fixed; inset: 0; width: min(1120px, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); margin: auto; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.22); }
.vo-quick-view::backdrop { background: rgba(0,0,0,.58); }
.vo-quick-view-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .5rem 1.25rem; border-bottom: 1px solid var(--vo-line); background: #fff; font-size: 14px; font-weight: 650; }
.vo-quick-view-head > div { display: flex; align-items: center; gap: 1rem; }
.vo-quick-view-head a { text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 500; }
.vo-quick-view-head button { width: 40px; height: 40px; font-size: 27px; line-height: 1; }
.vo-quick-view-content { min-height: 160px; }
.vo-quick-view-content > [data-product-detail] { padding-block: 1.5rem; }
.vo-quick-view-content [data-product-detail] > .grid { gap: 1.5rem; }
.vo-quick-view-content [data-product-price], [data-product-detail] [data-product-price] { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem; }

@media (min-width: 1024px) {
    .vo-quick-view-trigger { transition: background .18s ease, color .18s ease; }
}

@media (min-width: 1024px) {
    .vo-listing-layout { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
    .vo-filter-sidebar { display: block; position: static; max-height: none; overflow: visible; border: 1px solid var(--vo-line); border-radius: 10px; }
    .vo-filter-sidebar__inner { width: 100%; }
    .vo-filter-sidebar .vo-filter-form { overflow: visible; }
    .vo-mobile-filter-button, #collection-filters { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    [data-listing-page] .vo-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@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; }
}
