/* ==========================================================================
   Layout kit: Volt — dense, search-first catalogue (electronics, parts,
   hardware, home appliances). Light-grey page, white bordered tiles,
   dark category bar, Onest. Extends core.css.
   ========================================================================== */

:root {
    --k-font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --k-font-display: 'Onest', system-ui, sans-serif;
    --k-display-weight: 700;
    --k-display-tracking: -0.02em;
    --k-bg: #f2f4f7;
    --k-surface: #fff;
    --k-surface-2: #f2f4f7;
    --k-line: #e3e7ee;
    --k-radius-sm: 8px;
    --k-radius: 12px;
    --k-radius-lg: 16px;
    --k-radius-btn: 10px;
    --k-section-gap: clamp(1.75rem, 4vw, 2.75rem);
    --k-title-size: clamp(1.2rem, 2vw, 1.5rem);
    --k-gutter: 12px;
    --vt-dark: color-mix(in srgb, var(--text-heading, #0f172a) 88%, #1e293b);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.vt-header { box-shadow: 0 1px 0 var(--k-line); }
.vt-header.is-scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.vt-main-inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 76px; }
.vt-search { flex: 1; max-width: 720px; }
.vt-search input { height: 48px; padding-left: 2.8rem; padding-right: 6.5rem; border: 2px solid var(--k-accent); border-radius: 12px; background: var(--k-surface); }
.vt-search input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-accent) 18%, transparent); }
.vt-search-icon { position: absolute; left: 1rem; z-index: 1; color: var(--k-muted); }
.vt-search button { right: 4px; height: 40px; padding: 0 1.4rem; border-radius: 9px; font-weight: 700; }
.vt-header .kx-icons { gap: 4px; margin-left: auto; }
.vt-header .kx-icon { flex-direction: column; gap: 3px; height: 52px; min-width: 58px; border-radius: 10px; font-size: 1.25rem; }
.vt-header .kx-icon-label { font-size: .7rem; font-weight: 600; color: var(--k-muted); }
.vt-header .kx-count { top: 2px; right: 10px; }
@media (max-width: 991.98px) {
    .vt-main-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .7rem; min-height: 0; }
    .vt-search { order: 3; flex-basis: 100%; max-width: none; }
    .vt-search input { height: 44px; }
    .vt-search button { height: 36px; padding: 0 1rem; }
    .vt-header .kx-icon { height: 44px; min-width: 44px; }
    .vt-header .kx-icon-label { display: none; }
    .vt-header .kx-count { right: 2px; }
}

.vt-catbar { background: var(--vt-dark); color: #fff; }
.vt-catbar-inner { display: flex; align-items: stretch; gap: 1rem; min-height: 48px; }
.vt-all { position: relative; display: flex; }
.vt-all-btn { display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.1rem; border: 0; background: var(--k-accent); color: var(--k-accent-ink); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.vt-caret { font-size: .7rem; transition: transform .2s ease; }
.vt-all.is-open .vt-caret { transform: rotate(180deg); }
.vt-links { display: flex; align-items: center; gap: .1rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.vt-links::-webkit-scrollbar { display: none; }
.kx .vt-link { display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .8rem; border-radius: 8px; color: rgba(255, 255, 255, .85); font-size: .86rem; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.kx .vt-link:hover, .kx .vt-link.is-current { background: rgba(255, 255, 255, .1); color: #fff; }
.kx .vt-link-sale { color: #fbbf24; font-weight: 700; }
.kx .vt-link-page { color: rgba(255, 255, 255, .6); }
.kx .vt-phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.kx .vt-phone i { color: var(--k-accent); font-size: 1.05rem; }

.vt-mega {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1070;
    display: none;
    width: min(1000px, 92vw);
    min-height: 420px;
    border-radius: 0 0 14px 14px;
    background: var(--k-surface);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .25);
    color: var(--k-ink);
}
.vt-all.is-open > .vt-mega { display: block; }
.vt-mega-roots { position: relative; width: 270px; min-height: 420px; margin: 0; padding: .5rem 0; list-style: none; border-right: 1px solid var(--k-line); }
.vt-mega-roots > li { margin: 0; }
.kx .vt-mega-root { display: flex; align-items: center; justify-content: space-between; padding: .62rem 1.1rem; color: var(--k-ink); font-size: .9rem; font-weight: 500; }
.kx .vt-mega-root i { font-size: .7rem; color: var(--k-muted); }
.vt-mega-roots > li.is-active > .vt-mega-root { background: var(--k-surface-2); color: var(--k-accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--k-accent); }
.vt-mega-sub { position: absolute; top: 0; left: 270px; right: 0; display: none; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; align-content: start; padding: 1.4rem 1.6rem; }
.vt-mega-roots > li.is-active > .vt-mega-sub { display: grid; }
.kx .vt-mega-col a { display: block; padding: .2rem 0; color: var(--k-body); font-size: .86rem; }
.kx .vt-mega-col a.vt-mega-h { margin-bottom: .35rem; color: var(--k-ink); font-weight: 700; font-size: .92rem; }
.kx .vt-mega-col a:hover { color: var(--k-accent); }

/* ── Headings: compact, accent tick ─────────────────────────────────────── */
.ks .kx-title::before { content: ''; width: 4px; height: 1.05em; border-radius: 2px; background: var(--k-accent); }
.ks .kx-title-icon { order: -1; }
.kx .kx-more { color: var(--k-accent); font-size: .86rem; }
.kx .kx-more:hover { color: var(--k-ink); }

/* Product rows sit on white panels */
.ks-products .container, .ks-all .container { position: relative; }
.ks-products .kx-rail, .ks-products .kx-grid { padding: 14px; margin: 0; border-radius: var(--k-radius-lg); background: var(--k-surface); }
.ks-products .kx-scroll { padding: 2px; margin: 0; }
.ks-products .vt-card { border-color: transparent; }
.ks-products .vt-card:hover { border-color: var(--k-line); }

/* ── Card ───────────────────────────────────────────────────────────────── */
.vt-card { height: 100%; padding: 10px; border: 1px solid var(--k-line); border-radius: var(--k-radius); background: var(--k-surface); transition: border-color .15s ease, box-shadow .2s ease; }
.vt-card:hover { border-color: color-mix(in srgb, var(--k-accent) 45%, var(--k-line)); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.vt-card-media { aspect-ratio: 1; border-radius: 8px; background: #fff; }
.vt-card-media img { object-fit: contain; padding: 6px; transition: transform .4s ease; }
.vt-card:hover .vt-card-media img { transform: scale(1.04); }
.vt-chips { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.vt-chip { padding: .2rem .45rem; border-radius: 6px; background: var(--k-ink); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.3; }
.vt-chip-sale { background: var(--color-secondary, #e11d48); }
.vt-chip-muted { background: #94a3b8; }
.vt-wish { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--k-line); border-radius: 50%; background: #fff; color: var(--k-muted); font-size: .9rem; transition: all .15s ease; }
.vt-wish:hover { border-color: var(--color-secondary, #e11d48); color: var(--color-secondary, #e11d48); }
.vt-card-body { display: flex; flex-direction: column; flex: 1; gap: .25rem; padding: .6rem .2rem 0; }
.vt-card-brand { color: var(--k-accent); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kx .vt-card-name { font-size: .88rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.kx .vt-card-name:hover { color: var(--k-accent); }
.vt-specs { display: flex; flex-direction: column; gap: 1px; margin: .15rem 0 0; padding: 0; list-style: none; }
.vt-specs li { overflow: hidden; color: var(--k-ink) !important; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.vt-specs li span { color: var(--k-muted); }
.vt-specs li span::after { content: ':'; }
.vt-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .55rem; }
.vt-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.vt-price s { color: var(--k-muted); font-size: .76rem; }
.vt-price strong { color: var(--k-ink); font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.vt-price strong.is-sale { color: var(--color-secondary, #e11d48); }
.vt-add { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--k-accent); color: var(--k-accent-ink); font-size: 1.1rem; transition: filter .15s ease, transform .15s ease; }
.vt-add:hover { filter: brightness(.92); transform: translateY(-1px); }
.vt-card-meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; padding-top: .35rem; color: var(--k-muted); font-size: .72rem; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.kx-cats--tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.kx-cats--tiles .kx-cat { aspect-ratio: 1; border: 1px solid var(--k-line); background: #fff; }
.kx-cats--tiles .kx-cat-img img { object-fit: contain; padding: 18% 18% 32%; }
.kx-cats--tiles .kx-cat::after { display: none; }
.kx-cats--tiles .kx-cat-name { left: 8px; right: 8px; bottom: 10px; color: var(--k-ink); font-size: .84rem; text-align: center; }
.kx-cats--tiles .kx-cat-go { display: none; }
.kx-cats--tiles .kx-cat:hover { border-color: var(--k-accent); }
.kx-cats--circles .kx-cat-img { background: #fff; }
.kx-feature { background: var(--k-surface); border: 1px solid var(--k-line); }
.kx-feature-icon { background: #f4f4f5; background: color-mix(in srgb, var(--k-accent) 12%, #fff); }
.kx-brand { height: 70px; }

/* ── Category page (sidebar) ────────────────────────────────────────────── */
.vt-cat-head { padding-bottom: .5rem; }
.vt-cat-title-row { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.vt-cat-head .kx-cat-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.vt-cat-count { color: var(--k-muted); font-size: .9rem; font-weight: 600; }
.vt-cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.vt-cat-layout--full { grid-template-columns: 1fr; }
.vt-side { position: sticky; top: 140px; }
.vt-side-block { margin-bottom: 12px; padding: 1rem; border: 1px solid var(--k-line); border-radius: var(--k-radius); background: var(--k-surface); }
.vt-side-block h3 { margin: 0 0 .7rem; color: var(--k-ink); font-family: var(--k-font-body); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vt-side-cats { margin: 0; padding: 0; list-style: none; }
.vt-side-cats li { margin: 0; }
.kx .vt-side-cats a { display: flex; align-items: center; justify-content: space-between; padding: .45rem .5rem; border-radius: 8px; color: var(--k-ink); font-size: .88rem; }
.kx .vt-side-cats a i { font-size: .65rem; color: var(--k-muted); }
.kx .vt-side-cats a:hover { background: var(--k-surface-2); color: var(--k-accent); }
.vt-toolbar { padding: .55rem .7rem; border: 1px solid var(--k-line); border-radius: var(--k-radius); background: var(--k-surface); }
@media (max-width: 991.98px) {
    .vt-cat-layout { grid-template-columns: 1fr; }
    .vt-side { position: static; }
}
@media (min-width: 992px) { .vt-toolbar { justify-content: flex-end; } .vt-toolbar .kx-toolbar-actions:empty { display: none; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.kx-footer { margin-top: var(--k-section-gap); }

/* ── Stock pages in Volt ────────────────────────────────────────────────── */
body.kit-volt .btn { border-radius: 10px; }
