/* Shop page (/products): filter sidebar + results. Mobile-first; tokens come from pb-sections.css. */
.vh-sl { max-width: var(--shop-container, 80rem); margin: 0 auto; padding: 16px 1rem 40px; box-sizing: border-box; color: var(--vh-pb-text); }
@media (min-width: 640px) { .vh-sl { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .vh-sl { padding: 20px 2rem 56px; } }

.vh-sl-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) { .vh-sl-body { grid-template-columns: 15.5rem minmax(0, 1fr); align-items: start; } }
.vh-sl-main { min-width: 0; }

/* ---- Intro + promo banner ---- */
.vh-sl-top { display: grid; gap: 16px; align-items: center; }
@media (min-width: 1100px) { .vh-sl-top.has-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; } }
.vh-sl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--vh-pb-muted); }
.vh-sl-crumbs a { color: inherit; text-decoration: none; }
.vh-sl-crumbs a:hover { color: var(--vh-pb-primary); }
.vh-sl-crumbs .bi { font-size: 10px; }
.vh-sl-crumbs span { color: var(--vh-pb-text); }
.vh-sl-title { margin: 8px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
@media (min-width: 768px) { .vh-sl-title { font-size: 38px; } }
.vh-sl-lead { margin: 10px 0 0; max-width: 36rem; font-size: 15px; line-height: 1.6; color: var(--vh-pb-muted); }
.vh-sl-banner { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--vh-pb-surface-2); aspect-ratio: 3 / 1; }
@media (min-width: 1100px) { .vh-sl-banner { aspect-ratio: 4.4 / 1; } }
.vh-sl-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vh-sl-banner.has-text::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 40%, rgba(255, 255, 255, 0) 70%); }
.vh-sl-banner__copy { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; gap: 6px; max-width: 50%; color: #111827; }
.vh-sl-banner__copy strong { font-size: clamp(1.1rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.1; }
.vh-sl-banner__copy span { font-size: 13px; color: #374151; }

/* ---- Category tiles ---- */
.vh-sl-tiles { display: flex; gap: 10px; margin: 20px 0 6px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.vh-sl-tiles::-webkit-scrollbar { display: none; }
.vh-sl-tile { flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px; border: 1px solid var(--vh-pb-border); border-radius: 12px; background: var(--vh-pb-surface); text-decoration: none; color: var(--vh-pb-text); transition: border-color .15s, box-shadow .15s; }
.vh-sl-tile:hover { border-color: var(--vh-pb-primary); }
.vh-sl-tile.is-on { border-color: var(--vh-pb-primary); background: var(--vh-pb-primary-soft); box-shadow: 0 0 0 1px var(--vh-pb-primary) inset; }
.vh-sl-tile__img { width: 64px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--vh-pb-primary); }
/* The photo fills a rounded frame (like product cards); the icon fallback is unaffected. */
.vh-sl-tile__img:has(img) { border-radius: 10px; overflow: hidden; background: var(--vh-pb-surface-2); }
.vh-sl-tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.vh-sl-tile__name { font-size: 12.5px; text-align: center; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (min-width: 1024px) { .vh-sl-tile { flex-basis: 96px; } }

/* ---- Filter sidebar / drawer ---- */
.vh-sl-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(15, 23, 42, .45); }
.vh-sl-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; width: min(86vw, 340px); overflow-y: auto; background: var(--vh-pb-surface); box-shadow: 0 0 40px rgba(15, 23, 42, .25); transform: translateX(-105%); transition: transform .25s ease; }
.vh-sl-side.is-open { transform: translateX(0); }
@media (min-width: 1024px) {
    .vh-sl-scrim { display: none !important; }
    .vh-sl-side { position: static; z-index: auto; width: auto; overflow: visible; transform: none; transition: none; box-shadow: none; border: 1px solid var(--vh-pb-border); border-radius: 14px; }
}
.vh-sl-filters { padding: 18px 18px 8px; }
.vh-sl-side__head { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.vh-sl-side__head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; }
.vh-sl-side__head a { font-size: 13.5px; font-weight: 600; color: var(--vh-pb-primary); text-decoration: none; }
.vh-sl-side__close { width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--vh-pb-surface-2); color: var(--vh-pb-text); cursor: pointer; }
@media (min-width: 1024px) { .vh-sl-side__close { display: none; } }

.vh-sl-group { border-top: 1px solid var(--vh-pb-border); padding: 14px 0; }
.vh-sl-group:first-of-type { border-top: 0; }
.vh-sl-group summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; }
.vh-sl-group summary::-webkit-details-marker { display: none; }
.vh-sl-group summary .bi { font-size: 12px; transition: transform .2s; }
.vh-sl-group[open] summary .bi { transform: rotate(180deg); }
.vh-sl-group__body { display: grid; gap: 2px; padding-top: 10px; }

.vh-sl-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; }
.vh-sl-check input { width: 17px; height: 17px; flex-shrink: 0; margin: 0; accent-color: var(--vh-pb-primary); cursor: pointer; }
.vh-sl-check__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-sl-check__n { font-size: 13px; color: var(--vh-pb-muted); }
.vh-sl-check:hover .vh-sl-check__label { color: var(--vh-pb-primary); }
.vh-sl-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.vh-sl-stars .bi-star { color: #d1d5db; }
.vh-sl-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--vh-pb-text); cursor: pointer; }
.vh-sl-more .bi { font-size: 11px; }

.vh-sl-search { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0 12px; border: 1px solid var(--vh-pb-border); border-radius: 8px; background: var(--vh-pb-surface-2); color: var(--vh-pb-muted); }
.vh-sl-search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--vh-pb-text); outline: none; }

/* Dual-thumb price slider */
.vh-sl-range { position: relative; height: 24px; margin: 4px 2px 0; }
.vh-sl-range::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--vh-pb-primary); }
.vh-sl-range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.vh-sl-range input::-webkit-slider-runnable-track { background: none; border: 0; }
.vh-sl-range input::-moz-range-track { background: none; border: 0; }
.vh-sl-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 999px; background: var(--vh-pb-primary); box-shadow: 0 1px 4px rgba(15, 23, 42, .35); pointer-events: auto; cursor: pointer; }
.vh-sl-range input::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 999px; background: var(--vh-pb-primary); box-shadow: 0 1px 4px rgba(15, 23, 42, .35); pointer-events: auto; cursor: pointer; }
.vh-sl-range__label { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; }
.vh-sl-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.vh-sl-price label { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--vh-pb-border); border-radius: 8px; background: var(--vh-pb-surface); font-size: 13px; color: var(--vh-pb-muted); }
.vh-sl-price input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--vh-pb-text); outline: none; -moz-appearance: textfield; }
.vh-sl-price input::-webkit-outer-spin-button, .vh-sl-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vh-sl-apply { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; padding: 9px 18px; border: 0; border-radius: 8px; background: var(--vh-pb-primary); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.vh-sl-group .vh-sl-apply { width: 100%; }

/* ---- Results bar ---- */
.vh-sl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 14px; }
.vh-sl-filterbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--vh-pb-border); border-radius: 10px; background: var(--vh-pb-surface); color: var(--vh-pb-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.vh-sl-filterbtn span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--vh-pb-primary); color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .vh-sl-filterbtn { display: none; } }
.vh-sl-count { order: 5; flex-basis: 100%; margin: 0; font-size: 14px; color: var(--vh-pb-muted); }
.vh-sl-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--vh-pb-muted); }
.vh-sl-sort label { display: none; }
.vh-sl-sort select { height: 40px; min-width: 0; max-width: 150px; padding: 0 28px 0 12px; border: 1px solid var(--vh-pb-border); border-radius: 10px; background-color: var(--vh-pb-surface); color: var(--vh-pb-text); font: inherit; font-size: 14px; cursor: pointer; }
.vh-sl-views { display: flex; gap: 6px; }
.vh-sl-views a { width: 40px; height: 40px; border: 1px solid var(--vh-pb-border); border-radius: 10px; background: var(--vh-pb-surface); color: var(--vh-pb-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; text-decoration: none; }
.vh-sl-views a.is-on { border-color: var(--vh-pb-primary); background: var(--vh-pb-primary); color: #fff; }
@media (min-width: 768px) {
    .vh-sl-count { order: 0; flex: 1 1 auto; flex-basis: auto; }
    .vh-sl-sort label { display: inline; }
    .vh-sl-sort select { min-width: 190px; max-width: none; }
}

.vh-sl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; }
.vh-sl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px; border: 1px solid var(--vh-pb-border); border-radius: 999px; background: var(--vh-pb-surface); color: var(--vh-pb-text); font-size: 13px; text-decoration: none; }
.vh-sl-chip:hover { border-color: var(--vh-pb-primary); color: var(--vh-pb-primary); }
.vh-sl-chip--clear { border-color: transparent; background: none; color: #dc2626; font-weight: 600; }

/* ---- Product grid / list ---- */
.vh-sl-grid { display: grid; gap: 12px; }
.vh-sl-grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .vh-sl-grid--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vh-sl-grid--grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; } }
.vh-sl .vh-pcc { padding: 10px; }
@media (min-width: 768px) {
    .vh-sl .vh-pcc__name { font-size: 14.5px; font-weight: 500; }
    .vh-sl .vh-pcc__stars { font-size: 12px; }
    .vh-sl .vh-pcc__price strong { font-size: 18px; }
    .vh-sl .vh-pcc__price s { font-size: 13px; }
    .vh-sl .vh-pcc__cart { padding: 10px; font-size: 14px; }
}
.vh-pcc__cart .bi { margin-left: 4px; }
.vh-pcc__desc { margin: 2px 0 4px; font-size: 13px; line-height: 1.5; color: var(--vh-pb-muted); }

.vh-sl-grid--list { grid-template-columns: minmax(0, 1fr); }
.vh-sl-grid--list .vh-pcc { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: start; }
.vh-sl-grid--list .vh-pcc > :not(.vh-pcc__img):not(.vh-pcc__off):not(.vh-pcc__heart) { grid-column: 2; }
.vh-sl-grid--list .vh-pcc__img { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
.vh-sl-grid--list .vh-pcc__name { min-height: 0; }
.vh-sl-grid--list .vh-pcc__cart { justify-self: start; width: auto; margin-top: 6px; padding-left: 22px; padding-right: 22px; }
@media (min-width: 768px) { .vh-sl-grid--list .vh-pcc { grid-template-columns: 180px minmax(0, 1fr); column-gap: 20px; padding: 14px; } }

.vh-sl-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 16px; border: 1px dashed var(--vh-pb-border); border-radius: 14px; text-align: center; color: var(--vh-pb-muted); }
.vh-sl-empty .bi { font-size: 40px; }
.vh-sl-empty h2 { margin: 0; font-size: 18px; color: var(--vh-pb-text); }
.vh-sl-empty p { margin: 0; }
.vh-sl-pager { margin-top: 28px; }

/* ---- Category page ("Marketplace" category style) ---- */
.vh-sl--cat .vh-sl-crumbs { margin-bottom: 12px; }
.vh-sl-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; border-radius: 16px; overflow: hidden; background: linear-gradient(110deg, var(--vh-pb-surface) 0%, var(--vh-pb-primary-soft) 100%); border: 1px solid var(--vh-pb-border); }
.vh-sl-hero.has-art { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
@media (min-width: 768px) { .vh-sl-hero { padding: 26px 30px; } }
.vh-sl-hero .vh-sl-title { margin-top: 0; }
.vh-sl-hero .vh-sl-lead { max-width: 32rem; }
.vh-sl-hero__art { width: auto; height: auto; max-width: 100%; max-height: 210px; object-fit: contain; justify-self: end; border-radius: 12px; }
@media (max-width: 639px) {
    .vh-sl-hero.has-art { grid-template-columns: minmax(0, 1fr) 38%; padding: 16px; }
    .vh-sl-hero .vh-sl-title { font-size: 24px; }
    .vh-sl-hero .vh-sl-lead { font-size: 13.5px; }
    .vh-sl-hero__art { max-height: 140px; align-self: end; }
}
.vh-sl-hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; padding: 0; font-size: 13.5px; font-weight: 500; }
.vh-sl-hero__chips .bi { color: var(--vh-pb-primary); font-size: 16px; margin-right: 4px; }
@media (max-width: 639px) { .vh-sl-hero__chips { gap: 8px 14px; font-size: 12px; } .vh-sl-hero.has-art .vh-sl-hero__chips { grid-column: 1 / -1; } }

.vh-sl-back { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 2px; border-radius: 6px; color: var(--vh-pb-text); text-decoration: none; }
.vh-sl-back:hover { background: var(--vh-pb-surface-2); color: var(--vh-pb-primary); }
.vh-sl-group summary .vh-sl-back .bi { transform: none; font-size: 13px; }
.vh-sl-group summary { gap: 4px; }
.vh-sl-group summary > .bi-chevron-down { margin-left: auto; }
.vh-sl-nav { gap: 2px; }
.vh-sl-nav__item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; color: var(--vh-pb-text); text-decoration: none; }
.vh-sl-nav__item:hover { background: var(--vh-pb-surface-2); color: var(--vh-pb-primary); }
.vh-sl-nav__item.is-on { background: var(--vh-pb-primary-soft); color: var(--vh-pb-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--vh-pb-primary); }
.vh-sl-nav__item.is-on .vh-sl-check__n { color: var(--vh-pb-primary); }
.vh-sl-nav__icon { width: 20px; text-align: center; font-size: 16px; color: var(--vh-pb-muted); }
.vh-sl-nav__item.is-on .vh-sl-nav__icon { color: var(--vh-pb-primary); }
.vh-sl-avail { grid-template-columns: minmax(0, 1fr); }
.vh-sl-avail .vh-sl-check { font-size: 13.5px; }
