/* ==========================================================================
   Catalogue
   ========================================================================== */
.cat-hero { position: relative; overflow: hidden; background: var(--maroon); color: var(--ivory); padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.cat-hero__bg { position: absolute; inset: 0; }
.cat-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; transform: scale(1.1); animation: kenburnsCat 30s ease-in-out infinite alternate; }
.cat-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--maroon) 25%, rgba(94,15,29,.55) 100%); }
@keyframes kenburnsCat { to { transform: scale(1.2) translateX(-2%); } }
.cat-hero__inner { position: relative; }
.cat-hero h1 { margin: 1rem 0 .8rem; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.cat-hero h1 em { color: var(--gold-2); }
.cat-hero .lead { color: rgba(248,243,234,.75); }
.cat-hero .crumbs { color: var(--gold-2); }
.cat-hero .crumbs a:hover { color: var(--ivory); }
.cat-tabs { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { position: relative; padding: 1rem 0 1.2rem; font: 400 clamp(1.25rem, 2vw, 1.6rem)/1 var(--serif); color: rgba(248,243,234,.55); white-space: nowrap; transition: color .4s; }
.cat-tab sup { font: .62rem var(--sans); letter-spacing: .1em; margin-left: .3rem; color: var(--gold-2); }
.cat-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-2); transform: scaleX(0); transition: transform .5s var(--ease); }
.cat-tab:hover, .cat-tab.is-on { color: var(--ivory); }
.cat-tab.is-on { font-style: italic; }
.cat-tab.is-on::after { transform: scaleX(1); }

/* ---------- Layout ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-top: 2.5rem; padding-bottom: clamp(4rem, 8vw, 7rem); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
.filters__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.filters__head h2 { font-size: 1.7rem; }
.filters__clear { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid; }
.filters__close, .filters__cta { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.fgroup summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: '+'; font-size: 1.1rem; line-height: .8; transition: transform .3s; }
.fgroup[open] summary::after { transform: rotate(45deg); }
.fgroup[open] > div { margin-top: 1rem; animation: fadeUp .4s var(--ease); }
.checks { display: grid; gap: .55rem; }
.check { display: flex; align-items: center; gap: .7rem; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--ink-3); display: grid; place-items: center; margin: 0; cursor: pointer; transition: background .2s, border-color .2s; flex: none; }
.check input::after { content: ''; width: 8px; height: 4px; border: solid var(--ivory); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--maroon); border-color: var(--maroon); }
.check input:checked::after { opacity: 1; }
.check:hover { color: var(--ink); }
.check small { margin-left: auto; color: var(--ink-3); font-size: .75rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { width: 30px; height: 30px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .3s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.is-on::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); }
.swatch span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ivory); font-size: .66rem; padding: .2rem .45rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.swatch:hover span { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters__help { margin-top: 1.8rem; padding: 1.4rem; background: var(--paper); }
.filters__help .script { font-size: 1.9rem; color: var(--maroon); margin: 0; line-height: 1.1; }
.filters__help p { font-size: .86rem; color: var(--ink-2); margin: .4rem 0 1rem; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.toolbar__count { margin: 0; font-size: .85rem; color: var(--ink-2); }
.toolbar__count strong { font: 500 1.35rem var(--serif); color: var(--ink); }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.active-filters .chip { padding: .32rem .7rem; font-size: .74rem; background: var(--paper); border-color: transparent; }
.active-filters .chip::after { content: '×'; font-size: 1rem; line-height: 1; margin-left: .2rem; }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.sort { display: flex; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.sort select { appearance: none; border: 0; border-bottom: 1px solid var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23221716' stroke-width='1.2'/%3E%3C/svg%3E") right center / 10px no-repeat; padding: .35rem 1.4rem .35rem 0; font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; outline-offset: 4px; }
.density { display: flex; gap: .3rem; }
.density button { display: flex; gap: 2px; padding: 6px; opacity: .35; transition: opacity .3s; }
.density button.is-on, .density button:hover { opacity: 1; }
.density i { width: 4px; height: 14px; background: var(--ink); display: block; }
.filter-toggle { display: none; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ink); padding: .65rem 1rem; }
.filter-toggle svg { width: 16px; }
.filter-toggle span:not(:empty) { background: var(--maroon); color: var(--ivory); border-radius: 9px; min-width: 18px; height: 18px; font-size: .62rem; display: grid; place-items: center; letter-spacing: 0; }

/* Editorial tile inside grid */
.tile-edit { grid-column: span 2; position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); display: flex; align-items: flex-end; min-height: 100%; }
.tile-edit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.6s var(--ease), opacity .6s; }
.tile-edit:hover img { transform: scale(1.06); opacity: .6; }
.tile-edit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(34,23,22,.85), transparent 60%); z-index: 1; }
.tile-edit div { position: relative; z-index: 2; padding: clamp(1.4rem, 3vw, 2.4rem); }
.tile-edit h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: .7rem 0 1.1rem; }
.tile-edit h3 em { color: var(--gold-2); }
.tile-edit .link-arrow { color: var(--gold-2); }

.grid.is-updating { opacity: .3; transition: opacity .15s; }

/* ---------- Mobile filters ---------- */
@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .filter-toggle { display: inline-flex; }
  .toolbar__count { order: 3; width: 100%; }
  .active-filters { order: 4; }
  .density { display: none; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 86; max-height: 86vh; background: var(--ivory); padding: 1.4rem var(--gutter) 0; transform: translateY(100%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s; border-radius: 18px 18px 0 0; }
  .filters.is-open { transform: none; visibility: visible; box-shadow: 0 -30px 60px -20px rgba(0,0,0,.35); }
  .filters__close { display: grid; }
  .filters__head { align-items: center; gap: 1rem; }
  .filters__head h2 { margin-right: auto; }
  .filters__cta { display: block; position: sticky; bottom: 0; background: var(--ivory); padding: 1rem 0 1.2rem; }
  .filters__help { display: none; }
  .tile-edit { grid-column: span 2; aspect-ratio: 4 / 3; }
}
