/* Shop / listing ───────────────────────────────────────────────────── */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 12px 0 14px; }
.shop-head__title { text-transform: none; line-height: 1.05; }
.shop-head__count { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .shop-head { margin: 18px 0 22px; } }

/* category chips with thumbs */
.shop-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 4px; padding: 0 var(--gutter) 4px; }
.shop-cat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.shop-cat:hover { border-color: var(--ink); color: var(--ink); }
.shop-cat__img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--tile); display: grid; place-items: center; font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.shop-cat__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.shop-cat.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-cat.is-active .shop-cat__img { background: #2C2E31; color: #fff; }
@media (min-width: 900px) { .shop-cats { margin: 0 0 8px; padding: 0 0 4px; flex-wrap: wrap; } }

/* toolbar */
.shop-bar { position: sticky; top: 56px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter); margin: 0 calc(var(--gutter) * -1) 12px; background: rgba(244,243,239,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.shop-bar__filter { flex-shrink: 0; height: 38px; font-weight: 600; color: var(--ink); }
.shop-bar__n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; display: inline-grid; place-items: center; padding: 0 5px; }
.shop-bar__chips { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; align-items: center; }
.shop-bar__active { height: 32px; font-size: 12.5px; padding: 0 10px 0 12px; flex-shrink: 0; }
.shop-bar__active i { font-size: 10px; opacity: .7; }
.shop-bar__clear { font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; white-space: nowrap; padding: 0 4px; }
.shop-sort { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); padding-left: 12px; }
.shop-sort i { font-size: 12px; color: var(--ink-3); pointer-events: none; }
.shop-sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%; padding: 0 12px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink); outline: 0; cursor: pointer; max-width: 128px; }
@media (max-width: 599px) {
    .shop-sort select { width: 0; padding: 0 0 0 20px; position: absolute; inset: 0; opacity: 0; max-width: none; }
    .shop-sort { width: 38px; padding: 0; justify-content: center; }
}
@media (min-width: 1024px) {
    .shop-bar { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; margin: 0 0 16px; padding: 0; }
    .shop-bar__filter { display: none; }
    .shop-sort select { max-width: none; }
}

/* layout */
.shop-layout { display: block; }
@media (min-width: 1024px) { .shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; } }
.shop-results { min-width: 0; }

/* filters (sheet on mobile, sidebar on desktop) */
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup__label { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fcats { display: grid; gap: 2px; }
.fcat { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.fcat input { position: absolute; opacity: 0; pointer-events: none; }
.fcat span { flex: 1; }
.fcat em { font-style: normal; font-size: 12px; color: var(--subtle); }
.fcat:hover { background: var(--bg); }
.fcat.is-active { background: var(--ink); color: #fff; }
.fcat.is-active em { color: #9B9EA4; }
.price-box { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.price-box span { font-size: 11px; color: var(--muted); }
.price-box input { border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; width: 100%; font-variant-numeric: tabular-nums; }
.price-box:focus-within { border-color: var(--ink); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); outline: 0; margin: 8px 0 4px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--sh-1); cursor: pointer; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; }
.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; cursor: pointer; }
.switch { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; cursor: pointer; transition: background var(--t-fast); flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform var(--t-fast); }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(18px); }
.shop-filters__reset { font-size: 13px; font-weight: 600; text-decoration: underline; padding: 0 6px; }
.shop-filters__apply-desk { display: none; margin-top: 8px; }

@media (min-width: 1024px) {
    .shop-filters.sheet { position: sticky; top: calc(var(--header-h) + 16px); left: auto; right: auto; bottom: auto; transform: none; max-height: calc(100vh - var(--header-h) - 32px); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: none; z-index: 1; }
    .shop-filters .sheet__grab, .shop-filters__close, .shop-filters__foot { display: none; }
    .shop-filters .sheet__head { padding: 16px 18px; }
    .shop-filters .sheet__body { padding: 0 18px 18px; }
    .shop-filters__apply-desk { display: flex; }
    #prodFilterOverlay { display: none; }
}
