/*
 * A-One Autos 2.0 brand layer. Loaded after the Loom-derived design layer
 * (aone.css) and the ported home styles (aone-home.css), before theme-styles,
 * so Theme settings still win. Brand: Inter, red #AE0000, ink #171717.
 */
:root {
    --vo-font: Inter, Arial, sans-serif;
    --vo-text: #171717;
    --vo-heading: #171717;
    --vo-line: #e7e7e7;
    --vo-muted: #6b6b6b;
    --vo-btn: #AE0000;
    --vo-btn-text: #ffffff;
    --vo-label: #AE0000;
    --vo-label-text: #ffffff;
    --lo-media-bg: #ffffff;
}

body.font-sans { font-family: var(--vo-font); }

/* Headings: no override here; v1 rules in aone-v1.css set weight and spacing (Loom base resets via Theme settings). */

/* Prices and sale */
.vo-product-card [data-price],
.vo-product-card .vo-price { color: #AE0000; font-weight: 800; }

/* Product cards: white tile, thin border, red price */
.vo-product-card { background: #fff; border-radius: 8px; overflow: hidden; }
.vo-product-card :is(h3, .vo-card-title, [data-card-title]) {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

/* Grid column count from the A-One product grid setting */
@media (min-width: 901px) {
    .aone-latest-products-grid { grid-template-columns: repeat(var(--aone-cols, 4), minmax(0, 1fr)); }
}

/* Top bar colours come from the section */
.aone-topbar { background: var(--aone-topbar-bg, #AE0000); color: var(--aone-topbar-text, #fff); }
.aone-topbar a { color: inherit; }

/* Buttons */
.vo-btn:not(.vo-btn--alt) { background: #AE0000; border-color: #AE0000; color: #fff; }
.vo-btn:not(.vo-btn--alt):hover { background: #850000; border-color: #850000; }

/* Text on the dark promo band and the red trust block */
.aone-promo h2, .aone-promo p { color: #fff; }
.aone-trust h2, .aone-trust p, .aone-trust a { color: #fff; }

/* ---------- Header (v1 layout: logo + wide search + text actions, dark menu bar) ---------- */
.vo-header .aone-search { display: none; }
@media (min-width: 1024px) {
    [data-aone-inline-search="true"] .aone-search {
        display: flex; grid-row: 1; grid-column: 2; width: min(100%, 640px); justify-self: center;
        border: 1px solid #d9d9d9; border-radius: 14px; overflow: hidden; background: #fff;
    }
    [data-aone-inline-search="true"] .aone-search input {
        flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; outline: 0; font: 400 14px/1 var(--vo-font); color: #171717; background: transparent;
    }
    [data-aone-inline-search="true"] .aone-search button {
        width: 52px; border: 0; border-left: 1px solid #e7e7e7; background: #fff; color: #171717; display: grid; place-items: center; cursor: pointer;
    }
    [data-aone-inline-search="true"] .aone-search:focus-within { border-color: #AE0000; box-shadow: 0 0 0 3px rgb(174 0 0 / .12); }
    [data-aone-inline-search="true"] .aone-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
    [data-aone-inline-search="true"] [data-overlay-open="search-drawer"] { display: none !important; }
    [data-aone-inline-search="true"] [data-nav] { padding-left: 0 !important; padding-right: 0 !important; }

    /* Menu bar runs edge to edge; links start at the left */
    .vo-header [data-nav] {
        justify-content: flex-start !important; gap: 0 !important; margin-top: 12px;
       
    }
    .vo-header [data-nav] .vo-nav-link--top { display: flex; align-items: center; height: 46px; padding: 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
        min-width: 250px; margin-right: 12px; padding: 0 20px; background: #AE0000; color: #fff;
    }
    .vo-header [data-nav] .vo-nav-link--top[aria-current="page"] { box-shadow: inset 0 -3px 0 #AE0000; }
    .vo-header .vo-utility-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
}

/* ---------- Footer (v1: brand column, three link columns, bottom bar) ---------- */
footer.vo-tint { background: #0f0f10; color: #d4d4d4; border-top: 4px solid #AE0000; margin-top: 0; }
footer.vo-tint .vo-eyebrow { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: none; }
footer.vo-tint .vo-nav-link, footer.vo-tint p, footer.vo-tint .vo-content-block { color: #bdbdbd; letter-spacing: 0; text-transform: none; font-size: 14px; }
footer.vo-tint .vo-nav-link:hover { color: #fff; }
footer.vo-tint .vo-footer-contact { display: block; text-align: left; }
footer.vo-tint .vo-footer-contact p { margin: 0 0 4px; }
footer.vo-tint .vo-footer-logo { text-align: left; }
@media (min-width: 900px) {
    footer.vo-tint .vo-shell > .vo-content-group:first-child {
        display: grid !important; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px !important; align-items: start;
    }
    footer.vo-tint .vo-shell > .vo-content-group:first-child > .vo-content-group { align-items: flex-start !important; text-align: left; max-width: 380px; }
}
footer.vo-tint hr { border-color: #2a2a2a; }
footer.vo-tint .vo-content-block, footer.vo-tint .vo-content-block p { letter-spacing: 0 !important; text-transform: none !important; font-size: 14px !important; line-height: 1.6; }
footer.vo-tint .text-muted, footer.vo-tint .text-muted a { color: #8a8a8a !important; font-size: 12px !important; }

/* Card titles: two lines, as on v1 */
.vo-product-card :is(h3, .vo-card-title, [data-card-title]) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Page width = production (28px gutter, 1520px cap; .aone-shell widths come from aone-v1.css) ---------- */
@media (min-width: 1200px) {
    .vo-header > .vo-shell, footer.vo-tint > .vo-shell { width: min(100% - 56px, 1520px); max-width: none; margin-inline: auto; padding-inline: 0; }
}
@media (min-width: 901px) and (max-width: 1199px) {
    .vo-header > .vo-shell, footer.vo-tint > .vo-shell { width: min(100% - 36px, 1160px); max-width: none; margin-inline: auto; padding-inline: 0; }
}
.aone-hero-carousel { border-radius: 22px; overflow: hidden; }
@media (min-width: 1024px) {
    .vo-header > .vo-shell > .relative { min-height: 96px !important; padding-block: 0 !important; }
    .vo-header [data-nav] .vo-nav-link--top { height: 56px; font-size: 14px; }
    [data-aone-inline-search="true"] .aone-search { width: 100%; max-width: 1100px; justify-self: stretch; margin-inline: 40px; }
    [data-aone-inline-search="true"] .aone-search input { height: 60px; font-size: 16px; padding-left: 24px; }
    [data-aone-inline-search="true"] .aone-search button { width: 72px; }
    .vo-header [data-brand] img { max-height: 84px !important; max-width: 230px !important; }
}
@media (min-width: 1024px) {
    .vo-header [data-nav] { grid-column: 1 / -1 !important; margin-left: 0 !important; width: 100% !important; }
}

/* Header utilities as v1: "LOGIN / REGISTER" and cart icon + label + red count */
@media (min-width: 1024px) {
    .vo-header [data-brand] { justify-self: start !important; }
    .vo-header .aone-util-login, .vo-header .aone-util-cart { width: auto !important; height: 42px !important; padding: 0 12px; margin: 0 !important; gap: 8px; border-radius: 10px; }
    .vo-header .aone-util-login svg { display: none; }
    .vo-header .aone-util-cart { flex-direction: row-reverse; justify-content: flex-end; }
    .vo-header .aone-util-cart svg { display: block !important; order: 3; }
    .vo-header .aone-util-cart .vo-count { position: static !important; display: inline-grid; place-items: center; width: 20px; height: 20px; min-width: 20px; padding: 0; border-radius: 999px; background: #AE0000 !important; color: #fff !important; font-size: 11px; font-weight: 800; line-height: 1; order: 1; }
    .vo-header .aone-util-cart .vo-utility-label { order: 2; }
    .vo-header .aone-util-login:hover, .vo-header .aone-util-cart:hover { border-color: #e7e7e7; }
}

/* Header measurements matched to production at 1440 */
@media (min-width: 1024px) {
    .vo-header > .vo-shell > .relative { padding: 0 !important; column-gap: 0 !important; grid-template-columns: auto minmax(0, 1fr) auto !important; }
    .vo-header [data-brand] { height: 96px; align-items: center; }
    .vo-header [data-brand] img { height: 74px !important; max-height: 74px !important; width: auto !important; max-width: 188px !important; }
    [data-aone-inline-search="true"] .aone-search { max-width: 801px; margin: 0 40px 0 94px; justify-self: start; }
    [data-aone-inline-search="true"] .aone-search input { height: 48px; font-size: 15px; }
    [data-aone-inline-search="true"] .aone-search button { width: 60px; }
    .vo-header [data-nav] { margin-top: 0; }
    .vo-header [data-nav] .vo-nav-link--top { font-size: 12px !important; font-weight: 700; letter-spacing: .015em; padding: 0 20px !important; }
    .vo-header [data-nav] .vo-nav-link--top[aria-current="page"] { background: #303030; box-shadow: inset 0 -3px 0 #AE0000; }
    .vo-header .aone-util-login .vo-utility-label, .vo-header .aone-util-cart .vo-utility-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
    .vo-header .aone-util-login { margin-right: 11px !important; }
}

/* Hero: the <picture> wrapper must not change v1's image layout */
.aone-hero-slide picture { display: contents; }
/* Phone header logo as v1 */
@media (max-width: 1023px) {
    .vo-header [data-brand] img { height: 61px !important; max-height: 61px !important; max-width: 155px !important; width: auto !important; }
}
@media (max-width: 1023px) {
    .vo-header [data-brand] { width: auto !important; max-width: 60vw !important; overflow: visible !important; }
    .vo-header [data-brand] img { max-width: 155px !important; object-fit: contain; }
}
.aone-card-price { justify-content: flex-start !important; text-align: left !important; }

/* Full-width dark menu bar without overflowing the page */
html, body { overflow-x: clip; }
@media (min-width: 1024px) {
    .vo-header [data-nav] { position: relative; }
    .vo-header [data-nav]::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--aone-nav-bg, #171717); z-index: -1; pointer-events: none; }
}


/* v1 type everywhere: .aone-site { font-family: Inter, Arial, sans-serif } (Arial where Inter is not installed) */
html body, body button, body input, body select, body textarea, body .vo-header, body footer { font-family: Inter, Arial, sans-serif; }

/* v1 reveal ends at translate:none (not "0 0"): any translate makes the section the box that fixed
   children (floating Add to cart, drawers) are positioned in, so they would scroll away with the page. */
.aone-enter.is-visible { translate: none; }

/* Footer type and phone layout as v1 (.aone-footer-grid) */
footer.vo-tint .vo-eyebrow { color: #fff !important; font-size: 14px !important; font-weight: 800 !important; text-transform: uppercase !important; margin-bottom: 8px !important; }
footer.vo-tint .vo-nav-link, footer.vo-tint .vo-nav-link span { color: #aaa !important; font-size: 13px !important; }
footer.vo-tint .vo-nav-link:hover, footer.vo-tint .vo-nav-link:hover span { color: #fff !important; }
footer.vo-tint .vo-content-block p, footer.vo-tint .vo-footer-contact p { color: #aaa !important; }
footer.vo-tint ul.space-y-2\.5 > li + li { margin-top: 11px; }
@media (max-width: 899px) {
    footer.vo-tint > .vo-shell { width: min(100% - 20px, 1520px) !important; padding-block: 45px !important; }
    footer.vo-tint .vo-shell > .vo-content-group:first-child { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 34px !important; align-items: start !important; text-align: left !important; }
    footer.vo-tint .vo-shell > .vo-content-group:first-child > .vo-content-group { grid-column: 1 / -1; align-items: flex-start !important; text-align: left !important; }
    footer.vo-tint .vo-footer-logo { text-align: left !important; }
    footer.vo-tint .vo-footer-logo img { width: 193px !important; }
    footer.vo-tint .vo-footer-social, footer.vo-tint [class*="footer-social"] { justify-content: flex-start !important; }
    footer.vo-tint .vo-shell > .vo-content-group:last-child { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}
@media (max-width: 600px) {
    footer.vo-tint .vo-shell > .vo-content-group:first-child { grid-template-columns: 1fr !important; }
}