/* ══ Shop dell'evento — task-946, ridisegnato in task-1104 ═══════════════════
 * Uno storefront, non un modulo: testata chiara con i prodotti a ventaglio,
 * griglia di card (2 / 3 / 4 colonne), scheda prodotto a foglio, carrello a
 * cassetto con il checkout dentro, barra del carrello sempre a portata.
 * Le classi `sh-lines`, `sh-ticket*`, `sh-requested*` servono alla pagina
 * d'ordine (`order.html`) e restano in fondo.
 */

@font-face { font-family: 'Shop Display'; src: url("../fonts/print/BricolageGrotesque-SemiBold.4721f1c4abd2.ttf") format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Shop Display'; src: url("../fonts/print/BricolageGrotesque-Bold.47dbc4da19df.ttf") format('truetype'); font-weight: 700 800; font-display: swap; }

/* Le variabili stanno sul contenitore: scheda e carrello sono suoi figli e le
   ereditano, compreso il colore scelto nella vetrina (task-1106). */
.shop {
  --sh-ink: var(--rr-navy, #10243a);
  --sh-muted: #5d6b78;
  --sh-paper: #f6f3ec;
  --sh-card: #ffffff;
  --sh-line: #e5e0d5;
  --sh-accent: var(--rr-teal, #138577);
  --sh-accent-ink: #0b5e54;
  --sh-gold: var(--rr-gold, #c8952b);
  --sh-out: #9aa4ad;
  --sh-radius: 14px;
  --sh-ease: cubic-bezier(.22, 1, .36, 1);
  --sh-display: 'Shop Display', 'Space Grotesk', system-ui, sans-serif;
  color: var(--sh-ink);
}
.shop {
  background: var(--sh-paper);
  padding-top: calc(var(--navbar-height, 76px) - 10px);
  padding-bottom: 7rem;
  min-height: 100vh;
}
.shop-wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.shop [hidden], .sh-sheet [hidden], .sh-drawer [hidden] { display: none !important; }
.shop h1, .shop h2, .shop h3, .sh-sheet h2, .sh-drawer h2 { font-family: var(--sh-display); color: var(--sh-ink); }

/* ── testata ─────────────────────────────────────────────────────────── */
.shop-head { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.25rem, 3vw, 2rem); overflow: hidden; }
.shop-head__grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .shop-head__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.shop-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-muted);
}
.shop-eyebrow__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--sh-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--sh-accent) 60%, transparent); animation: sh-pulse 2.4s infinite; }
.shop-title {
  margin: 0 0 1rem; font-family: var(--sh-display); font-weight: 800;
  font-size: clamp(2.3rem, 7.4vw, 4.6rem); line-height: .98; letter-spacing: -.035em;
  animation: sh-rise .8s var(--sh-ease) both;
}
.shop-lead { margin: 0 0 1.4rem; max-width: 46ch; font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.55; color: var(--sh-muted); animation: sh-rise .8s .08s var(--sh-ease) both; }
.shop-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; animation: sh-rise .8s .16s var(--sh-ease) both; }
.shop-trust li { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--sh-line); border-radius: 999px; background: var(--sh-card); font-size: .85rem; font-weight: 600; }
.shop-trust svg { width: 1rem; height: 1rem; fill: none; stroke: var(--sh-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* i prodotti veri, a ventaglio */
.shop-head__fan { position: relative; height: clamp(190px, 44vw, 380px); }
.shop-fan__card {
  position: absolute; top: 50%; left: 50%; margin: 0;
  width: clamp(130px, 30vw, 250px); aspect-ratio: 4 / 5; padding: clamp(10px, 2vw, 18px);
  display: grid; place-items: center; background: var(--sh-card); border-radius: var(--sh-radius);
  box-shadow: 0 24px 50px -24px rgba(16, 36, 58, .45), 0 2px 6px rgba(16, 36, 58, .06);
  --r: calc((var(--n) - 1) * 9deg); --x: calc((var(--n) - 1) * 62%);
  transform: translate(calc(-50% + var(--x)), -50%) rotate(var(--r));
  animation: sh-fan .9s calc(var(--n) * .12s + .1s) var(--sh-ease) both, sh-float 7s calc(var(--n) * -2s) ease-in-out infinite alternate;
}
.shop-fan__card:nth-child(2) { z-index: 2; }
.shop-fan__card img { width: 100%; height: 100%; object-fit: contain; }

/* i tre passi del pre-ordine */
.shop-steps { list-style: none; margin-top: clamp(1.5rem, 4vw, 2.5rem); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sh-line); }
.shop-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; padding: 1rem .5rem 0 0; align-items: baseline; align-content: start; }
.shop-steps b { grid-row: span 2; font-family: var(--sh-display); font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1; color: var(--sh-accent); }
.shop-steps span { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.shop-steps small { color: var(--sh-muted); font-size: .8rem; }
@media (max-width: 520px) { .shop-steps li { grid-template-columns: 1fr; } .shop-steps b { grid-row: auto; font-size: 1.4rem; } }

/* ── la vetrina personalizzabile (task-1106) ──────────────────────────── */
.shop-announce { margin: 0; padding: .65rem 1rem; text-align: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--sh-accent); }
.shop--hero-plain .shop-head__grid, .shop--hero-cover .shop-head__grid:not(:has(.shop-head__cover)) { grid-template-columns: 1fr; }
.shop--hero-plain .shop-head__text { max-width: 760px; }
.shop-head__cover { margin: 0; border-radius: var(--sh-radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(16, 36, 58, .5); animation: sh-pop .9s .1s var(--sh-ease) both; }
.shop-head__cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .shop--cols-3 .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop--cols-3 .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop--square .sh-card__media { aspect-ratio: 1; }
.sh-pickup { display: flex; gap: .5rem; align-items: flex-start; margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 12px; border: 1px dashed var(--sh-line); font-size: .88rem; line-height: 1.45; }
.sh-pickup::before { content: ''; flex: 0 0 .55rem; height: .55rem; margin-top: .4rem; border-radius: 50%; background: var(--sh-accent); }
.sh-checkout .sh-pickup { margin: 0 0 1rem; }

/* ── filtri ──────────────────────────────────────────────────────────── */
.shop-filters {
  position: sticky; top: calc(var(--navbar-height, 76px) - 10px); z-index: 5;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 -1rem 1.25rem; padding: .75rem 1rem; background: color-mix(in srgb, var(--sh-paper) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.shop-filters::-webkit-scrollbar { display: none; }
.shop-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--sh-line); border-radius: 999px; background: var(--sh-card); color: var(--sh-ink);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--sh-ease);
}
.shop-chip span { font-size: .75rem; opacity: .6; }
.shop-chip:hover { transform: translateY(-1px); border-color: var(--sh-ink); }
.shop-chip.is-on { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }

/* ── griglia e card ──────────────────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
@media (min-width: 760px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sh-card { display: flex; flex-direction: column; min-width: 0; }
.sh-card[hidden] { display: none; }
.js-shop .sh-card { opacity: 0; transform: translateY(18px); }
.js-shop .sh-card.is-in { opacity: 1; transform: none; transition: opacity .6s var(--sh-ease), transform .6s var(--sh-ease); transition-delay: calc(min(var(--i), 8) * 60ms); }
.sh-card__media {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; padding: 12%;
  border: 0; border-radius: var(--sh-radius); background: var(--sh-card); cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 36, 58, .05);
  transition: box-shadow .35s var(--sh-ease), transform .35s var(--sh-ease);
}
.sh-card__media:hover, .sh-card__media:focus-visible { box-shadow: 0 22px 40px -22px rgba(16, 36, 58, .35); transform: translateY(-3px); }
.sh-card__media:focus-visible { outline: 3px solid var(--sh-accent); outline-offset: 3px; }
.sh-card__img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--sh-ease), opacity .45s; }
.sh-card__media:hover .sh-card__img { transform: scale(1.06); }
.sh-card__img--alt { opacity: 0; }
.sh-card__media:hover .sh-card__img--alt { opacity: 1; }
.sh-card__media:hover .sh-card__img:not(.sh-card__img--alt):has(+ .sh-card__img--alt) { opacity: 0; }
.sh-card__media--none {
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--sh-accent) 16%, transparent) 0%, transparent 60%),
    radial-gradient(100% 90% at 90% 100%, color-mix(in srgb, var(--sh-gold) 20%, transparent) 0%, transparent 55%),
    var(--sh-card);
}
.sh-card__initial { grid-area: 1 / 1; font-family: var(--sh-display); font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--sh-ink) 82%, transparent); transition: transform .6s var(--sh-ease); }
.sh-card__media:hover .sh-card__initial { transform: scale(1.08) rotate(-4deg); }
.sh-card__kind { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-muted); }
.sh-card__badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.sh-badge { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--sh-accent); }
.sh-badge--ticket { background: var(--sh-gold); }
.sh-badge--out { background: var(--sh-out); }
.sh-card__cta {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem; padding: .6rem; border-radius: 999px;
  background: var(--sh-ink); color: #fff; font-weight: 700; font-size: .85rem; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .35s var(--sh-ease);
}
.sh-card__media:hover .sh-card__cta, .sh-card__media:focus-visible .sh-card__cta { opacity: 1; transform: none; }
@media (hover: none) { .sh-card__cta { display: none; } }
.sh-card.is-out .sh-card__img { filter: grayscale(1); opacity: .55; }
.sh-card__info { padding: .7rem .15rem 0; }
.shop .sh-card__name { margin: 0; font-family: inherit; font-size: clamp(.92rem, 2.2vw, 1.02rem); font-weight: 700; line-height: 1.3; }
.sh-card__price { margin: .2rem 0 0; font-family: var(--sh-display); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.15rem); }
.sh-card__meta { margin: .15rem 0 0; font-size: .8rem; color: var(--sh-muted); }

.shop-empty { margin: 1rem 0; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--sh-radius); background: var(--sh-card); text-align: center; }
.shop-empty h2 { font-family: var(--sh-display); margin: 0 0 .5rem; }
.shop-empty p { margin: 0 auto; max-width: 50ch; color: var(--sh-muted); }
.shop-foot { margin: 2rem 0 0; font-size: .82rem; color: var(--sh-muted); max-width: 70ch; }

/* ── bottoni ─────────────────────────────────────────────────────────── */
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: 0 1.4rem;
  border: 0; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: transform .2s var(--sh-ease), background .2s, box-shadow .2s;
}
.sh-btn--primary { background: var(--sh-ink); color: #fff; }
.sh-btn--primary:hover { background: #0a1827; box-shadow: 0 10px 24px -12px rgba(16, 36, 58, .6); }
.sh-btn:active { transform: scale(.98); }
.sh-btn[disabled] { opacity: .55; cursor: progress; }
.sh-btn--grow { flex: 1 1 auto; }
.sh-btn--block { width: 100%; }
.sh-link { border: 0; background: none; padding: .5rem 0; color: var(--sh-muted); text-decoration: underline; cursor: pointer; }
.sh-x {
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(16, 36, 58, .06);
  font-size: 1.5rem; line-height: 1; color: var(--sh-ink); cursor: pointer; transition: background .2s, transform .3s var(--sh-ease);
}
.sh-x:hover { background: rgba(16, 36, 58, .12); transform: rotate(90deg); }
.sh-x:focus { outline: 0; }
.sh-x:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sh-accent) 45%, transparent); }

/* ── barra del carrello ──────────────────────────────────────────────── */
.sh-bar { position: fixed; left: 0; right: 0; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; padding: 0 1rem; pointer-events: none; }
.sh-bar[hidden] { display: none; }
.sh-bar__btn {
  pointer-events: auto; display: flex; align-items: center; gap: .9rem; width: min(440px, 100%); min-height: 3.6rem; padding: .5rem .6rem .5rem 1rem;
  border: 0; border-radius: 999px; background: var(--sh-ink); color: #fff; cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(16, 36, 58, .7); animation: sh-bar-in .5s var(--sh-ease) both;
}
.sh-bar__bag { position: relative; display: grid; place-items: center; }
.sh-bar__bag svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sh-bar__bag b { position: absolute; top: -.45rem; right: -.6rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--sh-gold); color: var(--sh-ink); font-size: .72rem; line-height: 1.25rem; text-align: center; }
.sh-bar__label { font-weight: 700; }
.sh-bar__total { margin-left: auto; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .12); font-family: var(--sh-display); font-weight: 700; }
.sh-bar.is-bump .sh-bar__btn { animation: sh-bump .45s var(--sh-ease); }

/* ── scheda prodotto: foglio dal basso / finestra ────────────────────── */
.sh-sheet, .sh-drawer { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; color: var(--sh-ink); }
.sh-sheet::backdrop, .sh-drawer::backdrop { background: rgba(10, 20, 32, .5); backdrop-filter: blur(3px); animation: sh-fade .3s both; }
.sh-sheet { width: 100%; margin: auto auto 0; }
.sh-sheet__inner {
  position: relative; display: grid; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--sh-card); border-radius: 22px 22px 0 0; animation: sh-sheet-up .45s var(--sh-ease) both;
}
@media (min-width: 860px) {
  .sh-sheet { width: min(980px, 100% - 3rem); margin: auto; }
  .sh-sheet__inner { grid-template-columns: 1.05fr 1fr; border-radius: 22px; max-height: 88vh; animation-name: sh-pop; }
}
.sh-sheet .sh-x { position: absolute; top: .8rem; right: .8rem; z-index: 3; background: rgba(255, 255, 255, .9); }
.sh-sheet__gallery { background: var(--sh-paper); min-width: 0; }
.sh-sheet__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-sheet__track::-webkit-scrollbar { display: none; }
.sh-sheet__track figure { flex: 0 0 100%; margin: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 8%; scroll-snap-align: center; }
.sh-sheet__track img { width: 100%; height: 100%; object-fit: contain; }
.sh-sheet__thumbs { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; }
.sh-sheet__thumbs:empty { display: none; }
.sh-sheet__thumbs button { flex: 0 0 3.5rem; height: 3.5rem; padding: .2rem; border: 2px solid transparent; border-radius: 10px; background: var(--sh-card); cursor: pointer; }
.sh-sheet__thumbs button.is-on { border-color: var(--sh-ink); }
.sh-sheet__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.sh-sheet__body { padding: 1.4rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
@media (min-width: 860px) { .sh-sheet__body { padding: 2.5rem 2.2rem 2rem; } }
.sh-sheet__badges { margin: 0; display: flex; gap: .3rem; min-height: 1.2rem; }
.sh-sheet__title { margin: .3rem 0 0; font-family: var(--sh-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; }
.sh-sheet__price { margin: .3rem 0 .6rem; font-family: var(--sh-display); font-size: 1.35rem; font-weight: 700; color: var(--sh-accent-ink); }
.sh-sheet__desc { margin: 0 0 1rem; color: var(--sh-muted); line-height: 1.55; white-space: pre-line; }
.sh-opts { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.sh-opts legend { margin-bottom: .55rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sh-opts__list { display: flex; flex-wrap: wrap; gap: .45rem; }
.sh-opts__list label { position: relative; }
.sh-opts__list input { position: absolute; opacity: 0; pointer-events: none; }
.sh-opts__list span {
  display: inline-grid; place-items: center; min-width: 3.1rem; min-height: 2.8rem; padding: 0 .9rem;
  border: 1.5px solid var(--sh-line); border-radius: 12px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--sh-ease);
}
.sh-opts__list span:hover { border-color: var(--sh-ink); }
.sh-opts__list input:checked + span { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; transform: translateY(-1px); }
.sh-opts__list input:focus-visible + span { outline: 3px solid var(--sh-accent); outline-offset: 2px; }
.sh-opts__list input:disabled + span { color: var(--sh-out); text-decoration: line-through; cursor: not-allowed; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(16, 36, 58, .04) 6px 7px); }
.sh-sheet__buy { display: flex; gap: .6rem; align-items: stretch; margin-top: auto; }
.sh-step { display: inline-flex; align-items: center; border: 1.5px solid var(--sh-line); border-radius: 999px; }
.sh-step button { width: 2.8rem; height: 100%; min-height: 3rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--sh-ink); }
.sh-step output { min-width: 1.6rem; text-align: center; font-weight: 800; }
.sh-sheet__note { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--sh-accent) 9%, #fff); font-size: .88rem; line-height: 1.45; }

/* ── cassetto del carrello ───────────────────────────────────────────── */
.sh-drawer { height: 100%; width: min(460px, 100%); margin: 0 0 0 auto; }
.sh-drawer__inner { display: flex; flex-direction: column; height: 100%; background: var(--sh-card); animation: sh-slide .45s var(--sh-ease) both; }
.sh-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--sh-line); }
.sh-drawer__head h2 { margin: 0; font-family: var(--sh-display); font-size: 1.35rem; }
.sh-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.25rem; }
.sh-drawer__body[hidden] { display: none; }
.sh-drawer__foot { padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--sh-line); background: var(--sh-card); }
.sh-cart { list-style: none; margin: 0 0 1rem; padding: 0; }
.sh-cart li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--sh-line); animation: sh-rise .35s var(--sh-ease) both; }
.sh-cart__thumb { width: 4.2rem; height: 4.2rem; border-radius: 10px; background: var(--sh-paper); display: grid; place-items: center; overflow: hidden; }
.sh-cart__thumb img { width: 85%; height: 85%; object-fit: contain; }
.sh-cart__name { margin: 0; font-weight: 700; line-height: 1.25; }
.sh-cart__var { margin: .1rem 0 .35rem; font-size: .82rem; color: var(--sh-muted); }
.sh-cart__price { font-family: var(--sh-display); font-weight: 700; text-align: right; }
.sh-cart .sh-step button { min-height: 2.2rem; width: 2.2rem; font-size: 1.05rem; }
.sh-cart__remove { display: block; margin: .35rem 0 0 auto; padding: 0; border: 0; background: none; font-size: .78rem; color: var(--sh-muted); text-decoration: underline; cursor: pointer; }
.sh-cart__empty { margin: 2rem 0; text-align: center; color: var(--sh-muted); }
.sh-notice { margin: 0 0 1rem; padding: .75rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--sh-gold) 16%, #fff); font-size: .88rem; line-height: 1.45; }
.sh-field { margin-bottom: .85rem; }
.sh-field label { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .88rem; }
.sh-field label span { font-weight: 400; color: var(--sh-muted); }
.sh-field input { width: 100%; min-height: 3rem; padding: 0 .9rem; border: 1.5px solid var(--sh-line); border-radius: 12px; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sh-field input:focus { outline: 0; border-color: var(--sh-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sh-accent) 16%, transparent); }
.sh-field small { display: block; margin-top: .25rem; font-size: .78rem; color: var(--sh-muted); }
.sh-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; line-height: 1.45; }
.sh-check input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--sh-ink); flex: 0 0 auto; }
.sh-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .75rem; }
.sh-total span { font-weight: 700; }
.sh-total b { font-family: var(--sh-display); font-size: 1.5rem; }
.sh-error { margin: 0 0 .75rem; padding: .6rem .8rem; border-radius: 10px; background: #fdecea; color: #9b2c1f; font-size: .88rem; }
.sh-error[hidden] { display: none; }
.sh-summary { margin: 0 0 1rem; color: var(--sh-muted); font-size: .9rem; }
.sh-payment { min-height: 12rem; }

/* ── avviso «aggiunto» ───────────────────────────────────────────────── */
.sh-toast {
  position: fixed; left: 50%; bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.4rem); z-index: 41;
  padding: .6rem 1rem; border-radius: 999px; background: var(--sh-accent); color: #fff; font-weight: 700; font-size: .9rem;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--sh-ease);
}
.sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── movimento ───────────────────────────────────────────────────────── */
@keyframes sh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sh-fan { from { opacity: 0; transform: translate(-50%, -30%) rotate(0deg) scale(.9); } }
@keyframes sh-float { to { translate: 0 -10px; } }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sh-accent) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes sh-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sh-pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sh-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sh-bar-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sh-bump { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .shop *, .sh-sheet *, .sh-drawer *, .sh-bar * { animation: none !important; transition: none !important; }
  .js-shop .sh-card { opacity: 1; transform: none; }
}

/* ══ Pagina d'ordine (task-946/947/1104) ═════════════════════════════════ */
.sh-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.sh-lines__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--sh-line, #e4e9ee); font-weight: 600; }
.sh-lines__row:first-child { border-top: 0; }
.sh-lines__row.is-discount { color: var(--sh-muted, #5b6b7a); }
.sh-lines__total { border-top: 2px solid var(--sh-ink, #10243a); font-weight: 900; font-size: 1.1rem; }
.sh-order { width: min(720px, 100% - 2rem); margin-inline: auto; }
.sh-order__card { padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--sh-radius); background: var(--sh-card); box-shadow: 0 1px 2px rgba(16, 36, 58, .05); margin-bottom: 1.25rem; }
.sh-order__card h2 { margin: 0 0 .8rem; font-family: var(--sh-display); font-size: 1.25rem; }
.sh-order .shop-title { font-size: clamp(2rem, 6vw, 3.2rem); }
.sh-order__closed h3 { margin: 0 0 .4rem; font-family: var(--sh-display); }
.sh-order__closed p { margin: 0; color: var(--sh-muted); }
.sh-order__back { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--sh-accent-ink); }
.sh-tickets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sh-ticket { text-align: center; padding: 1rem; border: 1px dashed var(--sh-line, #e4e9ee); border-radius: 12px; background: var(--sh-card, #fff); }
.sh-ticket img { display: block; margin: 0 auto .5rem; max-width: 100%; height: auto; }
.sh-ticket__who { margin: 0; font-weight: 800; }
.sh-ticket__what { margin: 0; font-size: .85rem; color: var(--sh-muted, #5b6b7a); }
.sh-ticket__holder { margin-top: .6rem; text-align: left; }
.sh-ticket__holder > summary { list-style: none; cursor: pointer; display: inline-block; }
.sh-ticket__holder > summary::-webkit-details-marker { display: none; }
.sh-ticket__form { margin-top: .6rem; }
.sh-ticket__form .sh-field input { width: 100%; }
.sh-requested { padding: 1rem 1.1rem; border-radius: 12px; background: color-mix(in srgb, var(--sh-gold, #c8952b) 14%, #fff); }
.sh-requested__title { margin: 0 0 .35rem; font-weight: 900; font-size: 1.05rem; }
.sh-requested p { margin: 0; line-height: 1.5; }
.sh-waiting { margin: 0; color: var(--sh-muted); }

/* task-1030 — «Hai un codice?» */
.sh-code__row { display: flex; gap: 8px; }
.sh-code__row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.sh-code__apply {
  flex: none; padding: 0 16px; border: 1px solid currentColor; background: transparent;
  color: inherit; font: inherit; font-weight: 600; cursor: pointer; border-radius: 0;
}
.sh-code__msg { min-height: 1.2em; }
.sh-code__msg.is-ok { color: var(--sh-ok, #1f7a4d); font-weight: 600; }
