/* ─── Shop page ─── */
.shop-head { padding-block: clamp(36px, 5vw, 60px) clamp(20px, 3vw, 32px); }
.shop-head .eyebrow { margin-bottom: 12px; }
.shop-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.shop-head .lead { margin-top: 14px; }

.shop-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.toolbar-tabs { display: none; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.result-count { font-size: .82rem; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.result-count b { color: var(--ink); font-weight: 600; }

.sort-wrap { position: relative; display: inline-flex; align-items: center; }
.sort-wrap::after { content: '▾'; position: absolute; right: 14px; pointer-events: none; color: var(--ink-2); font-size: .8rem; }
select.sort { appearance: none; -webkit-appearance: none; font-family: var(--font-body); font-size: .82rem; font-weight: 500; letter-spacing: .03em; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 30px; padding: 11px 38px 11px 18px; cursor: pointer; }
select.sort:focus { outline: none; border-color: var(--ink); }

.filter-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 11px 20px; border: 1.5px solid var(--ink); border-radius: 30px; background: transparent; cursor: pointer; }
.filter-btn .fbadge { background: var(--accent); color: #fff; border-radius: 20px; min-width: 19px; height: 19px; display: none; align-items: center; justify-content: center; font-size: .68rem; padding: 0 5px; }
.filter-btn.has .fbadge { display: inline-flex; }

.shop-body { display: grid; grid-template-columns: 1fr; gap: 0; padding-bottom: clamp(56px, 8vw, 110px); }

.filters { position: fixed; top: 0; right: 0; height: 100%; width: min(89%, 380px); z-index: 70; background: var(--paper); padding: 22px 24px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); box-shadow: -16px 0 50px rgba(20,18,15,.18); display: flex; flex-direction: column; gap: 26px; }
.filters.open { transform: none; }
.filter-overlay { position: fixed; inset: 0; background: rgba(20,18,15,.45); backdrop-filter: blur(2px); z-index: 69; opacity: 0; pointer-events: none; transition: opacity .3s; }
.filter-overlay.open { opacity: 1; pointer-events: auto; }

.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h3 { font-size: 1.6rem; }
.filters-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px; }

.fgroup { border-top: 1px solid var(--line); padding-top: 22px; }
.fgroup:first-of-type { border-top: none; padding-top: 0; }
.fgroup h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); margin: 0 0 16px; }

.f-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.f-pills .f-pill { border: 1.5px solid var(--line); background: transparent; border-radius: 30px; padding: 8px 16px; font-family: var(--font-body); font-size: .82rem; font-weight: 500; cursor: pointer; color: var(--ink); transition: .18s; }
.f-pills .f-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.f-cats { display: flex; flex-direction: column; gap: 2px; }
.f-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: none; text-align: left; cursor: pointer; font-family: var(--font-body); font-size: .95rem; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; transition: .15s; width: 100%; }
.f-cat:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--ink); }
.f-cat.active { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.f-cat .cnt { font-size: .76rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.f-colours { display: flex; flex-wrap: wrap; gap: 12px; }
.f-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 0; }
.f-sw .dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(20,18,15,.18); position: relative; transition: .18s; }
.f-sw.active .dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.f-sw .nm { font-size: .68rem; color: var(--ink-2); letter-spacing: .02em; }

.filter-actions { margin-top: auto; display: flex; gap: 12px; padding-top: 8px; }
.filter-actions .btn { flex: 1; justify-content: center; padding: 13px; font-size: .74rem; }
.clear-link { background: none; border: none; color: var(--ink-2); font-family: var(--font-body); font-size: .84rem; text-decoration: underline; cursor: pointer; }

.shop-grid { display: grid; gap: clamp(14px, 2vw, 26px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.prod .colours { display: flex; gap: 5px; margin-top: 4px; }
.prod .colours .d { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(20,18,15,.15); }

.shop-empty { display: none; text-align: center; padding: clamp(50px, 9vw, 110px) 0; color: var(--ink-2); }
.shop-empty.show { display: block; }
.shop-empty h3 { font-size: 2rem; margin-bottom: 10px; color: var(--ink); }
.shop-empty .btn { margin-top: 22px; }

@media (min-width: 920px) {
  .toolbar-tabs { display: inline-flex; }
  .filter-btn { display: none; }
  .shop-body { grid-template-columns: 252px 1fr; gap: clamp(36px, 4vw, 60px); }
  .filters { position: sticky; top: 96px; height: auto; width: auto; z-index: 1; background: none; padding: 0; overflow: visible; transform: none; box-shadow: none; gap: 24px; }
  .filters-head, .f-season, .f-sort, .filter-actions .show-results { display: none; }
  .filter-actions { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
  .filter-actions .clear-link { padding: 0; }
  .filter-overlay { display: none; }
}
body.drawer-open { overflow: hidden; }
