/* Heidar Baba · catering page additions: the illustrated spread, "Add to my event", the event sheet and the floating tray.
   Shares pages.css (hero, platters, skewers, call band) and dish.css (the dish window). Markup: src/pages/catering.mjs. */

/* ---------- Hero additions ---------- */
.cat-hero__jump { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.cat-hero__jump .link-arrow { min-height: 32px; display: inline-flex; align-items: center; font-size: 15px; }

/* ---------- Shared: the dish opener and the Add button ---------- */
.cat-open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.cat-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.cat-add {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 23, 21, .55);
  font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.cat-add:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(28, 23, 21, .04); }
.cat-add[hidden] { display: none; } /* shown by catering.js; without JavaScript there is nothing to add to */
.cat-add__plus { position: relative; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--anar); }
.cat-add__plus::before, .cat-add__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.8px; margin: -0.9px 0 0 -4px; background: var(--chini); border-radius: 1px; transition: transform .2s ease; }
.cat-add__plus::after { transform: rotate(90deg); }
.cat-add[aria-pressed="true"] { background: var(--anar); color: var(--chini); box-shadow: none; }
.cat-add[aria-pressed="true"] .cat-add__plus { background: var(--saffron); }
/* The plus becomes a check. */
.cat-add[aria-pressed="true"] .cat-add__plus::before { width: 5px; margin: 0; left: 4px; top: 9px; transform: rotate(45deg); background: var(--ink); }
.cat-add[aria-pressed="true"] .cat-add__plus::after { width: 9px; margin: 0; left: 6.5px; top: 7.5px; transform: rotate(-50deg); background: var(--ink); }
.cat-add--on-saffron { box-shadow: inset 0 0 0 1.5px rgba(28, 23, 21, .7); }
.cat-add--on-saffron[aria-pressed="true"] { background: var(--ink); }
/* Icon-only on the skewer list (the dish name sits right beside it; the full label stays for screen readers). */
.cat-add--icon { width: 44px; padding: 0; gap: 0; }
.cat-add--icon .cat-add__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .cat-add[aria-pressed="true"] .cat-add__plus { animation: catPop .32s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes catPop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: none; } }

/* ======================================================================
   The spread: every tray, illustrated
   ====================================================================== */
.cat-spread { background: var(--chini); color: var(--ink); }
.cat-spread__inner { padding-top: 112px; padding-bottom: 112px; }
.cat-spread__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; margin-bottom: 64px; }
.cat-spread__titles { display: flex; flex-direction: column; gap: 18px; }
.cat-spread__title { font-family: var(--serif); font-size: clamp(48px, 5.6vw, 84px); font-weight: 500; line-height: .95; letter-spacing: -.025em; text-wrap: balance; }
.cat-spread__title em { color: var(--anar); }
.cat-spread__intro { display: flex; flex-direction: column; gap: 14px; max-width: 36em; }
.cat-spread__lede { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.4; color: var(--text-on-light); }
.cat-spread__note { font-size: 14px; line-height: 1.6; color: var(--muted-on-light); }

.cat-spread__group + .cat-spread__group { margin-top: 72px; }
.cat-spread__group-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--ink);
  font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1.1;
}
.cat-spread__count { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-on-light); white-space: nowrap; }
.cat-spread__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }

.cat-dish {
  position: relative; display: flex; flex-direction: column;
  border-radius: 14px; background: #FBF8F3; box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .1);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cat-dish__art { display: block; overflow: hidden; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 10px; background: radial-gradient(120% 90% at 50% 40%, #F7F1E8 0%, #EBE1D3 100%); }
.cat-dish__art img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cat-dish--no-art .cat-dish__body { padding-top: 24px; }
.cat-dish__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 12px; }
.cat-dish__name { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.12; }
.cat-dish__v { flex: 0 0 auto; position: relative; top: -2px; font-family: var(--sans); font-size: 11px; }
.cat-dish__fa { align-self: flex-start; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--anar); }
.cat-dish__kind { font-size: 13.5px; line-height: 1.45; color: var(--muted-on-light); }
.cat-dish__prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: auto; padding-top: 14px; }
.cat-dish__prices > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 0 2px; border-top: 1px solid rgba(28, 23, 21, .12); }
.cat-dish__prices > div + div { padding-left: 10px; border-left: 1px solid rgba(28, 23, 21, .08); }
.cat-dish__prices dt { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-on-light); }
.cat-dish__prices dd { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-dish > .cat-add { align-self: stretch; margin: 2px 12px 14px; }
.cat-dish.is-picked { box-shadow: inset 0 0 0 2px var(--anar), 0 14px 30px -18px rgba(125, 29, 24, .55); }
@media (hover: hover) {
  .cat-dish:hover { box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .22), 0 18px 34px -22px rgba(28, 23, 21, .45); transform: translateY(-2px); }
  .cat-dish.is-picked:hover { box-shadow: inset 0 0 0 2px var(--anar), 0 18px 34px -20px rgba(125, 29, 24, .6); }
  .cat-dish:hover .cat-dish__art img { transform: scale(1.05); }
  .cat-dish:hover .cat-dish__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}

/* ---------- Platters and skewers get their illustrations and Add buttons ---------- */
.cat-plat { position: relative; }
.cat-plat__art { order: -2; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin: -12px -10px 6px; border-radius: 10px; background: radial-gradient(120% 90% at 50% 40%, rgba(255, 255, 255, .6) 0%, rgba(233, 223, 208, .6) 100%); }
.cat-plat__art img { width: 100%; height: 100%; object-fit: contain; }
.cat-plat__actions { position: relative; z-index: 2; margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cat-plat__actions .cat-plat__cta { margin: 0; padding: 0; }
.cat-plat.is-picked { box-shadow: inset 0 0 0 2px var(--ink); }

.cat-skewers__list { columns: auto; }
.cat-skewers__item { position: relative; align-items: center; gap: 14px; padding: 8px 0; }
.cat-skewers__art { flex: 0 0 64px; width: 64px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: radial-gradient(120% 90% at 50% 40%, #F7F1E8 0%, #EBE1D3 100%); }
.cat-skewers__art img { width: 100%; height: 100%; object-fit: contain; }
.cat-skewers__art--none { display: flex; align-items: center; justify-content: center; }
.cat-skewers__art--none svg { opacity: .45; }
.cat-skewers__name { flex: 1 1 auto; min-width: 0; }
.cat-skewers__item .cat-add { flex: 0 0 auto; margin-left: 4px; }
.cat-skewers__item.is-picked .cat-skewers__name { font-weight: 600; color: var(--ink); }
@media (hover: hover) { .cat-skewers__item:has(.cat-open):hover .cat-skewers__name { text-decoration: underline; text-underline-offset: 4px; } }

/* ======================================================================
   The event sheet
   ====================================================================== */
.cat-event { position: relative; overflow: hidden; overflow: clip; background: var(--charcoal); color: var(--chini); }
.cat-event__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 48px 80px; padding-top: 120px; padding-bottom: 120px; }
.cat-event__intro { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cat-event__eyebrow { line-height: normal; }
.cat-event__title { font-family: var(--serif); font-size: clamp(48px, 4.8vw, 76px); font-weight: 500; line-height: .95; letter-spacing: -.025em; text-wrap: balance; }
.cat-event__title em { display: block; color: var(--saffron); }
.cat-event__name { white-space: nowrap; }
.cat-event__fa { font-size: clamp(48px, 4.4vw, 68px); color: var(--saffron); opacity: .9; }
.cat-event__lede { max-width: 30em; font-size: 18px; line-height: 1.65; color: var(--text-on-dark); }
.cat-event__next { list-style: none; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 30em; padding-top: 22px; border-top: 1px solid rgba(227, 168, 62, .45); }
.cat-event__next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--muted-on-dark); }
.cat-event__next strong { color: var(--chini); font-weight: 600; }
.cat-event__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--saffron); font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--saffron); transform: translateY(-2px); }
.cat-event__call { font-size: 16px; color: var(--muted-on-dark); }
.cat-event__call a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; font-weight: 600; color: var(--saffron); text-decoration: underline; text-underline-offset: 4px; }

/* The sheet itself: porcelain paper with a saffron double rule, like a printed invitation. */
.cat-sheet {
  position: relative; padding: 44px 48px 48px; background: var(--chini); color: var(--ink);
  border-radius: 6px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
}
.cat-sheet::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(227, 168, 62, .9); border-radius: 3px; pointer-events: none; }
.cat-sheet::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(227, 168, 62, .45); border-radius: 2px; pointer-events: none; }
.cat-sheet__top { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(28, 23, 21, .14); }
.cat-sheet__kicker { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--anar); }
.cat-sheet__req { font-size: 13px; color: var(--muted-on-light); }
.cat-sheet__req span { color: var(--anar); }
.cat-sheet__req[hidden] { display: none; }
.cat-sheet__form { position: relative; display: flex; flex-direction: column; }

.cat-sheet__step { min-width: 0; margin: 0; padding: 28px 0 32px; border: 0; border-bottom: 1px solid rgba(28, 23, 21, .12); display: flex; flex-direction: column; gap: 18px; }
.cat-sheet__step--last { border-bottom: 0; }
.cat-sheet__step[hidden], .cat-sheet__send[hidden] { display: none; } /* after a successful send */
.cat-sheet__legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 4px; }
.cat-sheet__legend + * { clear: both; }
.cat-sheet__num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--anar); color: var(--saffron); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.cat-sheet__legend-text { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.cat-sheet__aside { font-size: 14.5px; line-height: 1.6; color: var(--muted-on-light); }

/* Fields */
.cat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cat-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cat-field__label, .cat-group__label, .cat-venue__label { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.cat-field__opt { margin-left: 4px; font-size: 12.5px; font-weight: 400; font-style: italic; color: var(--muted-on-light); }
.cat-field__hint { font-size: 13px; line-height: 1.5; color: var(--muted-on-light); }
.cat-input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 8px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .26);
  font: inherit; font-size: 16px; line-height: 1.35; transition: box-shadow .15s ease;
}
.cat-input::placeholder { color: #8E847D; opacity: 1; }
.cat-input:hover { box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .5); }
.cat-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--anar); }
.cat-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cat-input--area { min-height: 112px; resize: vertical; }
select.cat-input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237D1D18' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.cat-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #A3241D; background: #FFF8F6; }
.cat-error { font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #A3241D; }
.cat-error::before { content: '! '; }

/* Chips (radio and checkbox) */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { position: relative; display: inline-flex; cursor: pointer; }
.cat-chip input, .cat-service input, .cat-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cat-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .24);
  font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cat-chip:hover span { box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .55); }
.cat-chip input:checked + span { background: var(--anar); color: var(--chini); box-shadow: none; }
.cat-chip--check input:checked + span::before { content: '✓'; margin-right: 8px; color: var(--saffron); font-weight: 700; }
.cat-chip input:focus-visible + span, .cat-service input:focus-visible + .cat-service__card, .cat-toggle input:focus-visible + span::before { outline: 2px solid var(--ink); outline-offset: 3px; }
.cat-group { display: flex; flex-direction: column; gap: 10px; }
.cat-group .cat-field__hint { margin-top: 2px; }

/* Service cards */
.cat-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-service { position: relative; display: flex; cursor: pointer; }
.cat-service__card {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: 10px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .22);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.cat-service__card { position: relative; padding-right: 44px; }
.cat-service__card::after { content: ''; position: absolute; top: 18px; right: 16px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(28, 23, 21, .4); background: #fff; }
.cat-service input:checked + .cat-service__card::after { box-shadow: inset 0 0 0 5px var(--anar); background: var(--saffron); }
.cat-service__title { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.15; }
.cat-service__body { font-size: 14px; line-height: 1.5; color: var(--muted-on-light); }
.cat-service:hover .cat-service__card { box-shadow: inset 0 0 0 1px rgba(28, 23, 21, .5); }
.cat-service input:checked + .cat-service__card { background: #FFF6E4; box-shadow: inset 0 0 0 2px var(--anar); }
.cat-venue { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 10px; background: var(--sand); }
.cat-venue[hidden] { display: none; }
.cat-field--wide { grid-column: 1 / -1; }

/* Guests stepper */
.cat-stepper { display: flex; align-items: stretch; gap: 8px; max-width: 280px; }
.cat-stepper__input { text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-stepper__input::placeholder { font-size: 16px; font-weight: 400; }
.cat-stepper__btn { flex: 0 0 50px; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0; border: 0; border-radius: 8px; background: var(--ink); color: var(--saffron); font-size: 24px; line-height: 1; cursor: pointer; }
.cat-stepper__btn:hover { background: #000; }
.cat-stepper__btn[hidden] { display: none; }

/* Your spread (inside the sheet) */
.cat-picked { padding: 18px 20px 16px; border-radius: 10px; background: var(--sand); }
.cat-picked[hidden], .cat-picked__empty[hidden] { display: none; }
.cat-picked__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cat-picked__title { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--anar); }
.cat-picked__more { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--anar); }
.cat-picked__more:hover { color: var(--anar-deep); }
.cat-picked__list { list-style: none; }
.cat-picked__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid rgba(28, 23, 21, .12); }
.cat-picked__name { flex: 1 1 160px; min-width: 0; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.cat-picked__controls { display: flex; align-items: center; gap: 8px; }
.cat-picked__qty { width: 72px; min-height: 44px; padding: 8px 10px; text-align: center; font-variant-numeric: tabular-nums; }
.cat-picked__size { width: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.cat-picked__unit { font-size: 14px; color: var(--muted-on-light); }
.cat-picked__remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted-on-light); font-size: 26px; line-height: 1; cursor: pointer; }
.cat-picked__remove:hover { background: rgba(125, 29, 24, .08); color: var(--anar); }
.cat-picked__total { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--text-on-light); }
.cat-picked__total:empty { display: none; }
.cat-picked__empty { padding: 14px 16px; border-radius: 10px; border: 1px dashed rgba(28, 23, 21, .3); font-size: 14.5px; line-height: 1.55; color: var(--text-on-light); }
.cat-picked__empty a { color: var(--anar); font-weight: 600; }

.cat-toggle { display: flex; align-items: flex-start; gap: 0; min-height: 44px; cursor: pointer; position: relative; }
.cat-toggle span { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.45; }
.cat-toggle span::before { content: ''; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(28, 23, 21, .45); }
.cat-toggle input:checked + span::before { background: var(--anar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3A83E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }

/* Send */
.cat-sheet__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cat-sheet__send { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(28, 23, 21, .14); }
.cat-sheet__submit { min-width: min(100%, 340px); }
.cat-sheet__submit[disabled] { opacity: .7; cursor: progress; }
.cat-sheet__submit[hidden] { display: none; }
.cat-sheet__fine { max-width: 40em; font-size: 13.5px; line-height: 1.55; color: var(--muted-on-light); }
.cat-sheet__fine a { color: var(--anar); }
.cat-sheet__fine[hidden] { display: none; }
.cat-sheet__status { margin-top: 24px; }
.cat-sheet__status[hidden] { display: none; }
.cat-sheet__status:focus { outline: none; }
.cat-sheet__status--error { padding: 16px 18px; border-radius: 8px; background: #FBEAE7; color: #7A1A14; font-weight: 600; }
.cat-summary, .cat-sent { padding: 28px 28px 24px; border-radius: 10px; background: var(--ink); color: var(--chini); }
.cat-summary__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--saffron); }
.cat-summary__title { margin-top: 8px; font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1.05; }
.cat-summary__body { margin-top: 10px; max-width: 36em; font-size: 15.5px; line-height: 1.6; color: var(--muted-on-dark); }
.cat-summary__text { margin: 18px 0 0; padding: 18px 20px; max-height: 340px; overflow: auto; border-radius: 8px; background: rgba(246, 242, 236, .06); box-shadow: inset 0 0 0 1px rgba(227, 168, 62, .35); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; color: var(--chini); white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-summary__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cat-summary__actions .btn--outline-dark { color: var(--chini); box-shadow: inset 0 0 0 1.5px rgba(246, 242, 236, .7); }
.cat-summary__actions .btn--anar svg { stroke: var(--saffron); }
.cat-summary { --focus: #E3A83E; }
.cat-summary__copied { min-height: 1.5em; margin-top: 10px; font-size: 14px; color: var(--saffron); }

/* ---------- Floating tray ---------- */
.cat-basket { position: fixed; right: 24px; bottom: 24px; z-index: 55; }
.cat-basket[hidden] { display: none; }
.cat-basket__link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 10px; border-radius: 999px;
  background: var(--anar); color: var(--chini); text-decoration: none; font-size: 15px; font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(227, 168, 62, .5);
}
.cat-basket__link:hover { color: var(--chini); filter: brightness(1.08); }
.cat-basket__count { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; background: var(--saffron); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-basket__go { padding-left: 12px; border-left: 1px solid rgba(246, 242, 236, .3); color: var(--saffron); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .cat-basket:not([hidden]) { animation: hbSheet .3s cubic-bezier(.2, .7, .2, 1); }
}

/* ======================================================================
   Tablets and phones
   ====================================================================== */
@media (min-width: 960px) and (max-width: 1199px) {
  .cat-event__inner { grid-template-columns: minmax(0, 1fr); }
  .cat-event__intro { position: static; }
}
@media (max-width: 959px) {
  .cat-hero__jump { margin-top: 14px; gap: 0 22px; }
  .cat-hero__jump .link-arrow { min-height: 44px; }
  .cat-spread__inner { padding-top: 72px; padding-bottom: 80px; }
  .cat-spread__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .cat-spread__title { font-size: clamp(40px, 10.6vw, 64px); }
  .cat-spread__lede { font-size: 19px; }
  .cat-spread__group + .cat-spread__group { margin-top: 56px; }
  .cat-plat__art { margin: -6px -4px 4px; }
  .cat-event__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .cat-event__intro { position: static; gap: 18px; }
  .cat-event__title { font-size: clamp(42px, 11vw, 68px); }
  .cat-event__lede { font-size: 16px; }
  .cat-sheet { margin-inline: calc(-1 * var(--gutter) + 8px); padding: 32px 24px 32px; }
  .cat-services { grid-template-columns: minmax(0, 1fr); }
  .cat-service__card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 44px 14px 16px; }
  .cat-service__card::after { top: 50%; margin-top: -9px; }
  .cat-service__title { font-size: 20px; }
  .cat-basket { left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 10px); display: flex; justify-content: center; }
  .cat-basket__link { width: 100%; max-width: 440px; justify-content: space-between; }
  .cat-basket__text { flex: 1 1 auto; }
}
@media (max-width: 599px) {
  .cat-spread__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-dish__art { margin: 6px 6px 0; }
  .cat-dish__body { padding: 12px 12px 8px; }
  .cat-dish__name { font-size: 19px; }
  .cat-dish__fa { font-size: 13px; }
  .cat-dish__kind { font-size: 12.5px; }
  .cat-dish__prices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
  .cat-dish__prices > div + div { padding-left: 6px; }
  .cat-dish__prices dt { font-size: 9.5px; letter-spacing: .05em; }
  .cat-dish__prices dd { font-size: 14px; }
  .cat-dish > .cat-add { margin: 2px 8px 10px; padding: 0 10px 0 8px; gap: 7px; font-size: 13px; }
  .cat-row { grid-template-columns: minmax(0, 1fr); }
  .cat-sheet { padding: 28px 18px 28px; }
  .cat-sheet::before { inset: 6px; } .cat-sheet::after { inset: 9px; }
  .cat-chip span { padding: 0 14px; font-size: 14.5px; }
  .cat-picked { padding: 14px 14px 12px; }
  .cat-picked__controls { width: 100%; }
  .cat-picked__size { flex: 1 1 auto; }
  .cat-summary { padding: 22px 18px 18px; }
  .cat-summary__actions .btn { flex: 1 1 100%; }
  .cat-sheet__submit { width: 100%; }
}
@media (max-width: 359px) {
  .cat-spread__grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .cat-add, .cat-basket, .cat-hero__jump, .cat-sheet__send, .cat-open { display: none !important; }
  .cat-event { background: #fff !important; color: #000 !important; }
}

#planner, #inquiry, #trays { scroll-margin-top: 6rem; }
.cat-sheet__send .btn[hidden], .cat-sheet__status[hidden] { display: none; }
.cat-picked__unit { white-space: normal; }
