/* C · 33 / 45 — catalogue (filters, cards) and the calzone builder. */

/* ---------- Filters ---------- */
.flt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(28px, 4vw, 48px); padding: 12px; border-radius: 20px; background: var(--paper); position: sticky; top: calc(var(--hd) + 8px); z-index: 5; }
html:not(.js) .flt, html:not(.js) .pz-cmp { display: none; }
.flt .seg { margin: 0; background: var(--white); align-items: center; }
.flt .seg button { min-width: 0; padding: 0 14px; }
.flt-l { padding: 0 8px 0 10px; font: 700 .75rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tgl { display: flex; flex-wrap: wrap; gap: 6px; }
.tgl button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .9375rem; }
.tgl button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.tgl button[aria-pressed="true"]::before { content: '✓ '; }
.search { flex: 1 1 220px; min-width: 0; }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23231F20' stroke-width='2'%3E%3Ccircle cx='7.5' cy='7.5' r='6'/%3E%3Cpath d='M12 12l5 5'/%3E%3C/svg%3E") no-repeat 16px center; }
.search input::placeholder { color: var(--muted); }
.flt-n { font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
@media (max-width: 760px) { .flt { position: static; } }

/* ---------- Cards ---------- */
.pz-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.pz { display: flex; flex-direction: column; scroll-margin-top: calc(var(--hd) + 90px); }
.pz[hidden] { display: none; }
.pz-ph { margin: 0 0 6px; overflow: hidden; }
.pz-ph img { width: 100%; aspect-ratio: 900 / 585; object-fit: contain; transition: scale .5s var(--ease); }
@media (hover: hover) { .pz:hover .pz-ph img { scale: 1.07; } }
.pz:focus-within .pz-ph img { scale: 1.07; }
.pz-b { display: flex; flex-direction: column; flex: 1; }
.pz-n { font: 400 2rem/1.05 var(--serif); }
.pz-i { margin-top: 8px; color: var(--muted); font-size: .9688rem; }
.pz-i mark, .pz-n mark { background: var(--yellow); color: var(--ink); border-radius: 3px; }
.pz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tg { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 600 .75rem/1 var(--sans); letter-spacing: .02em; border: 1px solid currentColor; }
.tg-veg { color: var(--veg); }
.tg-hot { color: var(--hot); }
.tg-pick { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.pz-p { display: grid; grid-template-columns: 1fr 1fr; margin: auto 0 0; padding-top: 16px; }
.pz-p div { padding: 12px 0 0; border-top: 1.5px solid var(--ink); }
.pz-p div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.pz-p dt { font: 600 .75rem/1 var(--sans); letter-spacing: .08em; color: var(--muted); }
.pz-p dd { margin: 6px 0 0; font: 400 1.75rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.pz-cmp { align-self: flex-start; min-height: 44px; margin-top: 8px; padding: 0 2px; border: 0; background: none; font-weight: 600; font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (hover: hover) { .pz-cmp:hover { text-decoration-color: var(--orange); } }
html.motion .pz.fade { animation: cardIn .45s var(--ease); }
@keyframes cardIn { from { opacity: 0; translate: 0 10px; } }
.empty { text-align: center; padding: 48px 0; }
.empty p { font: italic 400 2rem/1.1 var(--serif); margin-bottom: 16px; }

/* ---------- Calzone builder ---------- */
.calz { border-top: 1px solid var(--line); }
.cz { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cz fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.cz legend { display: flex; gap: 12px; align-items: baseline; padding: 0; margin-bottom: 14px; font: 700 .8125rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.cz-n { font-variant-numeric: tabular-nums; color: var(--muted); }
.cz-base { display: flex; flex-wrap: wrap; gap: 10px; }
.cz-base label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 14px; cursor: pointer; }
.cz-base label:has(input:checked) { background: var(--ink); color: var(--white); }
.cz-base input { width: 18px; height: 18px; accent-color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500; transition: background-color .15s, border-color .15s; }
.chip span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(35, 31, 32, .25); }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.chip input:disabled + span { opacity: .4; }
.chip input:disabled { cursor: not-allowed; }
@media (hover: hover) { .chip input:not(:disabled):not(:checked):hover + span { border-color: var(--ink); } }
.note { font-size: .9375rem; color: var(--muted); }
.note::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 2px; background: var(--orange); vertical-align: .05em; }
.cz-out { position: sticky; top: calc(var(--hd) + 24px); padding: clamp(20px, 2.6vw, 36px); border-radius: 24px; background: var(--paper); }
.cz-svg { width: 100%; height: auto; }
.cz-sum { margin-top: 12px; font: italic 400 1.75rem/1.15 var(--serif); min-height: 2.3em; }
.cz-price { margin-top: 10px; font-variant-numeric: tabular-nums; }
.cz-price b { font: 400 1.75rem/1 var(--serif); }
.cz-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cz-copied { min-height: 1.5em; margin-top: 10px; font-size: .9375rem; font-weight: 600; }
html:not(.js) .cz-out { display: none; }
@media (max-width: 900px) { .cz { grid-template-columns: 1fr; } .cz-out { position: static; order: -1; } }
html.motion .cz-svg .fl { transform-box: fill-box; transform-origin: center; animation: drop .45s var(--ease) both; }
@keyframes drop { from { opacity: 0; translate: 0 -18px; } }
.cz-svg .lid { transition: rotate .5s var(--ease); transform-origin: 40px 200px; }
@media (max-width: 560px) { .flt .seg { border-radius: 16px; } .flt .seg button { min-width: 64px; } }
