/*
 * Brand Store — shop filters. Loaded on shop and category pages only. Token-only values.
 * Desktop: sticky left panel. Under 960px (with JavaScript): slide-in drawer opened by the Filters button.
 */
.bs-shop__layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.bs-shop__results { min-width: 0; }
@media (min-width: 960px) {
	.bs-shop__layout { grid-template-columns: 272px minmax(0, 1fr); gap: 40px; align-items: start; }
	.bs-shop__layout .bs-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .bs-shop__layout .bs-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bs-filters { border: 1px solid var(--bs-color-border); border-radius: 24px; padding: 6px 22px 22px; background: var(--bs-color-bg); }
@media (min-width: 960px) {
	.bs-filters { position: sticky; top: calc(var(--bs-header-height) + 24px); max-height: calc(100vh - var(--bs-header-height) - 48px); overflow-y: auto; scrollbar-width: thin; }
}
.bs-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 6px; }
.bs-filters__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.bs-filters__close { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--bs-color-surface); color: var(--bs-color-ink); cursor: pointer; }

.bs-filter { border-bottom: 1px solid var(--bs-color-border); padding: 14px 0; }
.bs-filter:last-of-type { border-bottom: 0; }
.bs-filter > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-weight: 800; color: var(--bs-color-ink); min-height: 32px; }
.bs-filter > summary::-webkit-details-marker { display: none; }
.bs-filter > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
.bs-filter[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.bs-filter > :not(summary) { margin-top: 10px; }

.bs-filter__list, .bs-filter__sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bs-filter__sub { padding-left: 14px; margin-top: 2px; }
.bs-filter__link { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--bs-color-text); text-decoration: none; font-weight: 600; transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease; }
.bs-filter__link small, .bs-check small { color: var(--bs-color-muted); font-weight: 600; font-size: 12px; }
.bs-filter__link:hover { background: var(--bs-color-surface); color: var(--bs-color-brand); padding-left: 16px; }
.bs-filter__link.is-active { background: var(--bs-color-ink); color: var(--bs-color-button-text); }
.bs-filter__link.is-active small { color: color-mix(in srgb, var(--bs-color-button-text) 70%, transparent); }

.bs-filter__price { display: flex; align-items: center; gap: 8px; }
.bs-filter__price input { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--bs-color-field-border); border-radius: 12px; background: var(--bs-color-bg); color: var(--bs-color-ink); font-family: inherit; font-size: var(--bs-small); }
.bs-filter__price input:focus-visible { outline: 2px solid var(--bs-color-brand); outline-offset: 1px; }
.bs-filter__hint { margin: 8px 0 0; font-size: 12px; color: var(--bs-color-muted); }

.bs-check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-weight: 600; color: var(--bs-color-text); }
.bs-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--bs-color-ink); cursor: pointer; }
.bs-check small { margin-left: auto; }
.bs-check:hover { color: var(--bs-color-brand); }
.bs-filter__stars { color: var(--bs-color-accent); letter-spacing: 0.06em; }

.bs-filters__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; }
.bs-filters__actions .bs-button { flex: 1 1 auto; justify-content: center; }
.bs-js .bs-filters__actions .bs-button { display: none; } /* filters apply as you choose; the button is the no-JavaScript fallback */

/* Toolbar */
.bs-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.bs-shop__bar .bs-shop__sort { margin-left: auto; }
.bs-filters-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.bs-filters-toggle__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bs-color-ink); color: var(--bs-color-button-text); font-size: 11px; font-weight: 800; }
@media (min-width: 960px) { .bs-filters-toggle { display: none; } }
.bs-active-filters { margin: 0 0 20px; align-items: center; }
.bs-active-filters > li { margin: 0; }
.bs-chip--active { background: var(--bs-color-ink); color: var(--bs-color-button-text); }
.bs-chip--active:hover { background: var(--bs-color-brand); }

/* Mobile drawer (only when JavaScript is available; otherwise the panel simply sits above the grid) */
.bs-filters-backdrop { position: fixed; inset: 0; z-index: 85; background: color-mix(in srgb, var(--bs-color-ink) 45%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.bs-filters-backdrop.is-open { opacity: 1; pointer-events: auto; }
@media (max-width: 959px) {
	.bs-js .bs-filters { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); border: 0; border-radius: 0 24px 24px 0; overflow-y: auto; transform: translateX(-105%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s; box-shadow: 0 0 40px color-mix(in srgb, var(--bs-color-ink) 25%, transparent); }
	.bs-js .bs-filters.is-open { transform: none; visibility: visible; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.bs-js .bs-filters__close { display: inline-flex; }
	.bs-js .bs-filters__actions .bs-button { display: inline-flex; } /* explicit "Show results" button on mobile */
	body.bs-filters-open { overflow: hidden; }
}

/* ---------- Shop & category header (mirrors the home hero) ---------- */
.bs-shophead { padding-top: 20px; }
.bs-shophead__frame { position: relative; display: grid; grid-template-columns: 1fr; border-radius: calc(var(--bs-radius-card) + 6px); overflow: hidden; background: var(--bs-color-brand); color: var(--bs-color-bg); }
.bs-shophead__copy { order: 2; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 28px; }
.bs-shophead__crumbs { font-size: var(--bs-small); color: color-mix(in srgb, var(--bs-color-bg) 70%, var(--bs-color-brand)); }
.bs-shophead__crumbs a { color: inherit; text-decoration: none; }
.bs-shophead__crumbs a:hover { text-decoration: underline; }
.bs-shophead__eyebrow { margin: 4px 0 0; font-size: var(--bs-small); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bs-color-accent); }
.bs-shophead__title { margin: 0; font-family: var(--bs-font-heading); font-weight: var(--bs-heading-weight); font-size: clamp(34px, 5.4vw, var(--bs-h1)); line-height: 0.98; letter-spacing: calc(var(--bs-heading-tracking) * 1.25); color: var(--bs-color-bg); }
.bs-shophead__text { margin: 0; max-width: 48ch; line-height: 1.6; color: color-mix(in srgb, var(--bs-color-bg) 80%, var(--bs-color-brand)); }
.bs-shophead__count { align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bs-color-bg) 12%, transparent); font-size: var(--bs-small); font-weight: 700; }
.bs-shophead__search { margin-top: 6px; max-width: 560px; }
.bs-shophead__search .bs-ss--large { box-shadow: none; }
.bs-shophead__media { order: 1; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--bs-color-bg) 8%, var(--bs-color-brand)); }
.bs-shophead__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (min-width: 1024px) {
	.bs-shophead__frame.has-media { grid-template-columns: 6fr 5fr; min-height: 380px; }
	.bs-shophead__copy { order: 1; padding: 44px 48px; justify-content: center; }
	.bs-shophead__media { order: 2; aspect-ratio: auto; }
}

/* Category tiles */
.bs-cattiles { margin-top: 18px; }
.bs-cattiles ul { list-style: none; margin: 0; padding: 2px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bs-cattile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 12px; border-radius: var(--bs-radius-card); background: var(--bs-color-surface); color: var(--bs-color-ink); text-decoration: none; border: 1.5px solid transparent; transition: border-color 0.15s ease, background-color 0.15s ease; height: 100%; }
.bs-cattile:hover { border-color: var(--bs-color-ink); }
.bs-cattile.is-on { border-color: var(--bs-color-brand); background: var(--bs-color-bg); box-shadow: inset 0 0 0 1px var(--bs-color-brand); }
.bs-cattile__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: calc(var(--bs-radius-card) * 0.8); overflow: hidden; background: var(--bs-color-bg); margin-bottom: 6px; }
.bs-cattile__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.4s ease; }
.bs-cattile:hover .bs-cattile__img img { transform: scale(1.05); }
.bs-cattile__img--all { display: grid; place-items: center; color: var(--bs-color-brand); }
.bs-cattile__name { font-weight: 800; font-size: 0.92rem; line-height: 1.25; padding: 0 4px; }
.bs-cattile__count { font-size: 12px; color: var(--bs-color-muted); padding: 0 4px; }

/* Trust row */
.bs-shophead__trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--bs-color-muted); font-size: var(--bs-small); font-weight: 600; }
.bs-shophead__trust li { display: inline-flex; align-items: center; gap: 8px; }
.bs-shophead__trust svg { color: var(--bs-color-success); }
.bs-shop { padding-top: 28px; }

/* Recently viewed */
.bs-shoprecent { padding-top: var(--bs-space); }
.bs-shoprecent__title { margin: 0 0 18px; font-family: var(--bs-font-heading); font-weight: var(--bs-heading-weight); font-size: var(--bs-h3); color: var(--bs-color-ink); }
.bs-shoprecent__row { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.bs-shoprecent__row > li { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .bs-cattile__img img { transition: none; } }
.bs-shop .woocommerce-products-header { display: none; }
