/* ==========================================================================
   Archive: Shop / Category / Brand / Search (design/source/full/Archive.dc.html).
   ========================================================================== */

.vz-archive { padding-top: 16px; padding-bottom: clamp(48px, 6vw, 80px); }

.vz-archive__head { margin-top: 12px; }
.vz-archive__h1 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(24px, 3vw, 30px);
    letter-spacing: -.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.vz-archive__sub { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 760px; text-wrap: pretty; }
.vz-subcats { margin-top: 16px; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }

.vz-archive__layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) {
    .vz-archive__layout { grid-template-columns: 260px minmax(0, 1fr); }
}

/* ---------- filters: sidebar ≥1024 / bottom sheet below ---------- */

.vz-filters {
    border-radius: var(--r-card);
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: inset 0 0 0 1px var(--line);
}
.vz-filters__form { display: flex; flex-direction: column; max-height: inherit; }
.vz-filters__head { display: none; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.vz-filters__title { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.vz-filters__body { padding: 4px 20px 8px; overflow: auto; flex: 1; }
.vz-filters__group { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.vz-filters__group--last { border-bottom: 0; }
.vz-filters__legend { padding: 0; margin-bottom: 4px; font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.vz-filters__foot {
    display: flex;
    gap: 8px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
}
.vz-filters__foot .vz-btn--primary { flex: 1; }
.vz-filters.is-live .vz-filters__foot { display: none; }

@media (min-width: 1024px) {
    .vz-filters { position: sticky; top: 24px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
    .vz-filters__body { overflow: auto; }
    .vz-toolbar__filters { display: none !important; }
    .vz-sheet-overlay { display: none !important; }
}

@media (max-width: 1023px) {
    .vz-filters { display: none; }
    .vz-filters.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        max-height: 86vh;
        border-radius: var(--r-dialog) var(--r-dialog) 0 0;
        background: var(--white);
        box-shadow: 0 -20px 60px -20px rgba(10, 10, 10, .35);
    }
    .vz-filters.is-open .vz-filters__head { display: flex; }
    .vz-filters.is-open .vz-filters__foot,
    .vz-filters.is-live.is-open .vz-filters__foot { display: flex; background: var(--white); }
    /* No JS: the filters are simply shown above the results. */
    .vz-filters:not(.is-live) { display: block; }
    .vz-filters:not(.is-live) .vz-filters__foot { display: flex; }
}
.vz-sheet-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, .5); }
.vz-sheet-overlay[hidden] { display: none; }

/* switch */
.vz-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; position: relative; }
.vz-switch__label { font-size: 14.5px; font-weight: 500; }
.vz-switch input { position: absolute; opacity: 0; width: 52px; height: 32px; right: 0; margin: 0; cursor: pointer; }
.vz-switch__track { position: relative; width: 52px; height: 32px; flex: none; border-radius: var(--r-pill); background: var(--ring-input); transition: background .15s; }
.vz-switch__knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--white); box-shadow: 0 1px 3px rgba(10, 10, 10, .3); transition: transform .15s; }
.vz-switch input:checked + .vz-switch__track { background: var(--accent); }
.vz-switch input:checked + .vz-switch__track .vz-switch__knob { transform: translateX(20px); }
.vz-switch input:focus-visible + .vz-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.vz-filters__switchrow { padding: 8px 0; }

/* checkbox rows */
.vz-check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 14.5px; }
.vz-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.vz-check__dot { width: 8px; height: 8px; flex: none; border-radius: var(--r-pill); background: currentColor; }
.vz-check__label { flex: 1; min-width: 0; }
.vz-check__n { font-size: 12px; color: var(--muted); }
.vz-check.is-disabled { color: var(--faint); cursor: default; }
.vz-check.is-disabled .vz-check__dot { opacity: .5; }
[data-brandlist].is-collapsed .vz-check.is-extra { display: none; }
.vz-check.is-filtered-out { display: none !important; }

.vz-price { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 4px; }
.vz-price__field {
    flex: 1;
    min-width: 0;
    height: var(--h-ctl);
    border-radius: var(--r-ctl);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--ring-input);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    font-size: 14px;
}
.vz-price__field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.vz-price__field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.vz-filters .vz-hint { display: block; margin-top: 6px; }

/* ---------- condition segments ---------- */

.vz-segs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
    width: max-content;
    max-width: 100%;
    scrollbar-width: none;
}
.vz-segs__item {
    flex: none;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    text-decoration: none;
}
.vz-segs__item:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.vz-segs__item[aria-current] { background: var(--accent-tint); box-shadow: var(--accent-tint-ring); color: var(--accent-text); }
.vz-segs__n { font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* ---------- toolbar ---------- */

.vz-toolbar { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 44px; }
.vz-toolbtn {
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--ring-input);
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vz-toolbtn:hover { background: var(--hover); }
.vz-toolbar__count { font-size: 14px; color: var(--muted); }
.vz-toolbar__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.vz-sort {
    height: 36px;
    border-radius: var(--r-pill);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--ring-input);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px 0 14px;
    font-size: 13px;
    color: var(--muted);
}
.vz-sort:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.vz-sort select { height: 34px; border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 170px; }
.vz-sort__go { height: 28px; border: 0; border-radius: var(--r-pill); background: var(--surface); font-size: 13px; font-weight: 600; padding: 0 10px; }
.vz-sort__go[hidden] { display: none; }
.vz-viewtoggle { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--ring-input); }
.vz-viewtoggle__btn { width: 32px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink); }
.vz-viewtoggle__btn:hover { background: var(--hover); color: var(--ink); }
.vz-viewtoggle__btn[aria-current] { background: var(--accent-tint); box-shadow: var(--accent-tint-ring); color: var(--ink); }
@media (max-width: 519px) {
    .vz-toolbar__end { margin-left: 0; width: 100%; justify-content: space-between; }
}

.vz-chips { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- results: one markup, three layouts ---------- */

.vz-items { margin-top: 16px; }
.vz-results { min-width: 0; container: results / inline-size; }
.vz-items.is-loading .vz-items__list { opacity: .45; transition: opacity .1s; pointer-events: none; }
.vz-items__list { display: grid; gap: 16px; }
.vz-items--grid .vz-items__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) {
    .vz-items--grid .vz-items__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1240px) {
    .vz-items--grid .vz-items__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vz-items__cell { min-width: 0; }

.vz-item { display: grid; min-width: 0; height: 100%; color: var(--ink); text-decoration: none; }
.vz-item:hover { color: var(--ink); text-decoration: none; }
.vz-item__media {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.vz-item__img { width: 100%; height: 100%; object-fit: contain; }
.vz-item__noimg { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: center; padding: 4px; }
.vz-item__id { display: flex; flex-direction: column; min-width: 0; }
.vz-item__brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vz-item__mpn { font-family: var(--font-mono); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.vz-item__mpn--title { font-family: var(--font-body); font-weight: 500; }
.vz-item mark { background: var(--mark); color: var(--ink); border-radius: 4px; }
.vz-item__title { color: var(--muted); min-width: 0; }
.vz-item__stock { font-size: 12.5px; font-weight: 500; }
.vz-item__price { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.vz-item__view { font-size: 13.5px; font-weight: 600; color: var(--accent-text); }
.vz-item.is-sold .vz-item__img { opacity: .6; }
.vz-item.is-sold .vz-item__price { color: var(--muted); }

/* grid card */
.vz-items--grid .vz-item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "media media"
        "cond  stock"
        "id    id"
        "title title"
        "price price";
    grid-template-rows: auto auto auto auto 1fr;
    align-items: center;
    column-gap: 8px;
    padding: 12px;
    border-radius: var(--r-pcard);
    background: rgba(255, 255, 255, .86);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .18s ease, box-shadow .18s ease;
}
.vz-items--grid .vz-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.vz-items--grid .vz-item__media { grid-area: media; aspect-ratio: 1 / 1; border-radius: var(--r-inner); }
.vz-items--grid .vz-item__cond { grid-area: cond; margin-top: 12px; }
.vz-items--grid .vz-item__stock { grid-area: stock; margin-top: 12px; }
.vz-items--grid .vz-item__cond:empty { display: none; }
.vz-items--grid .vz-item__id { grid-area: id; margin-top: 10px; }
.vz-items--grid .vz-item__mpn { margin-top: 2px; font-size: 16px; }
.vz-items--grid .vz-item__mpn--title { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vz-items--grid .vz-item__title { grid-area: title; margin-top: 4px; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.vz-items--grid .vz-item__title:empty { min-height: 0; }
.vz-items--grid .vz-item__price { grid-area: price; align-self: end; padding-top: 12px; font-size: 17px; }
.vz-items--grid .vz-item__view { display: none; }
@media (max-width: 519px) {
    .vz-items--grid .vz-item__mpn { font-size: 14px; }
    .vz-items--grid .vz-item { padding: 10px; }
}

/* list: rows when the results column is wide enough */
.vz-items__head { display: none; }
@container results (min-width: 760px) {
    .vz-items--list {
        border-radius: var(--r-card);
        background: var(--white);
        box-shadow: inset 0 0 0 1px var(--line);
        overflow: hidden;
    }
    .vz-items--list .vz-items__list { gap: 0; }
    .vz-items--list .vz-items__cell + .vz-items__cell,
    .vz-items--list .vz-items__banner + .vz-items__cell { border-top: 1px solid var(--line); }
    .vz-items__head,
    .vz-items--list .vz-item {
        display: grid;
        grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1.5fr) 128px 116px 104px 60px;
        gap: 16px;
        align-items: center;
        padding: 10px 16px;
    }
    .vz-items__head { padding-top: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
    .vz-items--list .vz-item:hover { background: var(--hover-soft); }
    .vz-items--list .vz-item__media { width: 64px; height: 64px; border-radius: var(--r-item); }
    .vz-items--list .vz-item__mpn { font-size: 15px; }
    .vz-items--list .vz-item__title { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .vz-items--list .vz-item__stock { font-size: 13.5px; }
    .vz-items--list .vz-item__price { font-size: 15px; text-align: right; }
    .vz-items--list .vz-item__view { justify-self: end; }
}
/* list: compact cards in a narrow column */
@container results (max-width: 759px) {
    .vz-items--list .vz-items__list { gap: 10px; }
    .vz-items--list .vz-item {
        grid-template-columns: 88px minmax(0, 1fr) auto;
        grid-template-areas:
            "media id    id"
            "media title title"
            "media cond  price";
        grid-template-rows: auto auto 1fr;
        column-gap: 12px;
        padding: 12px;
        border-radius: var(--r-tile);
        background: var(--white);
        box-shadow: inset 0 0 0 1px var(--line);
    }
    .vz-items--list .vz-item__media { grid-area: media; width: 88px; height: 88px; border-radius: var(--r-item); }
    .vz-items--list .vz-item__id { grid-area: id; }
    .vz-items--list .vz-item__mpn { font-size: 15px; }
    .vz-items--list .vz-item__title { grid-area: title; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .vz-items--list .vz-item__cond { grid-area: cond; align-self: end; padding-top: 8px; }
    .vz-items--list .vz-item__price { grid-area: price; align-self: end; padding-top: 8px; font-size: 15px; }
    .vz-items--list .vz-item__stock,
    .vz-items--list .vz-item__view { display: none; }
}

/* banner after the 12th result */
.vz-items__banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 20px;
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--line);
}
.vz-items__banner p { flex: 1; min-width: min(100%, 220px); font-size: 15px; }
.vz-items__banner strong { font-family: var(--font-head); font-weight: 600; }
@container results (min-width: 760px) {
    .vz-items--list .vz-items__banner { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
}

/* ---------- pagination ---------- */

.vz-pager { margin-top: 32px; }
.vz-pager ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.vz-pager__num,
.vz-pager__arrow,
.vz-pager__gap {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.vz-pager__arrow { padding: 0; }
.vz-pager__num:hover, .vz-pager__arrow:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.vz-pager__num[aria-current] { background: var(--accent-tint); box-shadow: var(--accent-tint-ring); color: var(--ink); }
.vz-pager__arrow.is-off { opacity: .35; }
.vz-pager__gap { color: var(--muted); }
.vz-pager__info { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- SEO text ---------- */

.vz-seo { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 32px; max-width: 820px; }
.vz-seo__title { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.vz-seo__body { margin-top: 8px; position: relative; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text-2); }
.vz-seo__body.is-clamped { max-height: 96px; overflow: hidden; }
.vz-seo__body.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(rgba(245, 245, 245, 0), var(--surface)); }
.vz-seo__more { margin-top: 4px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.vz-seo__more[hidden] { display: none; }

/* ---------- no results ---------- */

.vz-none { margin-top: 12px; }
.vz-none__grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 960px) {
    .vz-none__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.vz-none__side { display: flex; flex-direction: column; gap: 24px; }
.vz-none__title { margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
    .vz-items--grid .vz-item:hover { transform: none; }
    .vz-switch__track, .vz-switch__knob { transition: none; }
}
