/* Catalogo pubblico — veste grafica (design system HubbleCoffe).
   Caricato DOPO lo <style> di catalogo_pubblico.html: qui stanno colori, font,
   sfondi, riquadri e l'impaginazione mobile. La struttura resta nel template. */

html body.hc-pubblico {
  /* token del design system */
  --k-latte-50: #fbf3ea; --k-latte-100: #f5e5d5; --k-latte-200: #efdfcd; --k-foam: #fffcf7;
  --k-esp-900: #2e2318; --k-esp-700: #4b3b2a; --k-esp-600: #63503b; --k-esp-500: #82694f; --k-esp-400: #a38b6e; --k-esp-300: #c4b096; --k-esp-200: #e0d0b8;
  --k-crema-700: #9a5f27; --k-crema-600: #b67534; --k-crema-500: #ce8f43; --k-crema-400: #e0ab68; --k-crema-100: #f8e8ce; --k-on-crema: #40270d;
  --k-cosmos-950: #14162e; --k-cosmos-900: #1b1f3b; --k-cosmos-700: #303663; --k-nebula: #8a5c9e; --k-gold: #f2c879; --k-glow: #fbe6b4;
  --k-ok: #4e7a48; --k-ok-100: #e3eedc; --k-danger: #b34a3a;
  --k-line: rgba(75, 59, 42, .13);
  --k-tile: #f7eee3;
  --k-sh-xs: 0 1px 2px rgba(75, 59, 42, .08);
  --k-sh-sm: 0 2px 6px rgba(75, 59, 42, .10);
  --k-sh-md: 0 6px 18px rgba(75, 59, 42, .12);
  --k-sh-lg: 0 16px 40px rgba(75, 59, 42, .16);
  --k-sh-cosmos: 0 18px 46px rgba(27, 31, 59, .35);
  --k-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --k-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --k-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
  --k-ease: cubic-bezier(.2, .8, .2, 1);
  /* le variabili storiche del template seguono la nuova palette */
  --c-cream: var(--k-latte-100); --c-cream2: var(--k-latte-50); --c-taupe: var(--k-esp-500); --c-dark: var(--k-esp-700);
  --c-action: var(--k-esp-700); --c-action-h: var(--k-esp-900); --c-ok: var(--k-ok); --c-line: var(--k-line); --c-mut: var(--k-esp-500);

  font-family: var(--k-body);
  background: var(--k-latte-50);
  color: var(--k-esp-700);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ───────── Sfondo: aloni caldi + trama a puntini, fissi dietro la pagina ───────── */
body.hc-pubblico::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 108% -8%, rgba(237, 199, 144, .34), transparent 62%),
    radial-gradient(44rem 30rem at -12% 38%, rgba(245, 229, 213, .95), transparent 64%),
    radial-gradient(40rem 28rem at 92% 96%, rgba(168, 125, 187, .10), transparent 62%),
    radial-gradient(rgba(75, 59, 42, .075) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--k-latte-50);
}

body.hc-pubblico button, body.hc-pubblico input, body.hc-pubblico select, body.hc-pubblico textarea { font-family: inherit; }
body.hc-pubblico :focus-visible { outline: 3px solid var(--k-crema-400); outline-offset: 2px; }
body.hc-pubblico input:focus-visible, body.hc-pubblico textarea:focus-visible, body.hc-pubblico select:focus-visible { outline: none; }

.sh-wrap { max-width: 1560px; padding: 0 clamp(1rem, 2.4vw, 2.5rem); }

/* ───────── Barra in alto ───────── */
.sh-head { background: rgba(251, 243, 234, .8); border-bottom: 1px solid var(--k-line); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); }
.sh-head-row { padding: .6rem 0; gap: .55rem; }
.sh-brand img { height: 30px; }
.sh-vedi, .sh-fbtn { height: 44px; background: var(--k-foam); border: 1px solid var(--k-line); box-shadow: var(--k-sh-xs); color: var(--k-esp-700); font-weight: 700; font-size: .92rem; transition: transform .15s var(--k-ease), box-shadow .15s, border-color .15s, background .15s; }
.sh-vedi:hover, .sh-fbtn:hover { border-color: var(--k-esp-300); box-shadow: var(--k-sh-sm); }
.sh-vedi:active, .sh-fbtn:active, .sh-x:active { transform: scale(.94); }
.sh-vedi i { color: var(--k-crema-600); }
.sh-fbtn { width: 44px; padding: 0; justify-content: center; font-size: 1.05rem; }
.sh-fbtn .n { position: absolute; top: -5px; right: -5px; min-width: 1.3rem; height: 1.3rem; background: var(--k-crema-500); color: var(--k-on-crema); font-family: var(--k-mono); font-weight: 700; font-size: .68rem; box-shadow: 0 0 0 2px var(--k-latte-50); }
.sh-cartbtn { background: var(--k-esp-700); border-color: var(--k-esp-700); color: var(--k-latte-100); }
.sh-cartbtn:hover { background: var(--k-esp-900); border-color: var(--k-esp-900); }
.sh-cartbtn .n { background: var(--k-gold); color: var(--k-on-crema); }

/* ───────── Hero «Chiedimi delle idee» (superficie cosmo) ───────── */
.sh-stage { padding: clamp(.9rem, 2vw, 1.6rem) 0 2rem; align-items: stretch; }
.sh-stage.is-on { padding-top: clamp(.8rem, 1.6vw, 1.25rem); }
.sh-ask { width: 100%; }
.sh-rule { display: none; }
.sh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 26px; padding: clamp(1.6rem, 5vw, 3.6rem) clamp(1rem, 4vw, 3rem) clamp(1.4rem, 3.4vw, 2.6rem);
  color: var(--k-latte-100); text-align: center;
  background:
    radial-gradient(90% 120% at 84% -30%, rgba(138, 92, 158, .55), transparent 60%),
    radial-gradient(70% 110% at 6% 120%, rgba(48, 54, 99, .9), transparent 62%),
    linear-gradient(160deg, var(--k-cosmos-900), var(--k-cosmos-950));
  box-shadow: var(--k-sh-cosmos);
}
/* campo di stelle: solo CSS */
.sh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 27% 68%, var(--k-glow), transparent 60%),
    radial-gradient(2px 2px at 41% 14%, var(--k-gold), transparent 60%),
    radial-gradient(1.2px 1.2px at 58% 82%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 73% 30%, var(--k-glow), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 62%, #fff, transparent 60%),
    radial-gradient(1px 1px at 93% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 6% 80%, #fff, transparent 60%),
    radial-gradient(rgba(255, 255, 255, .5) .7px, transparent 1px),
    radial-gradient(rgba(251, 230, 180, .4) .7px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 137px 113px, 89px 151px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 17px 29px, 61px 83px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .45)); mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .45));
}
.sh-hero-txt { max-width: 44rem; margin: 0 auto clamp(1.1rem, 2.6vw, 1.8rem); }
.sh-hero-eye { margin: 0 0 .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--k-gold); }
.sh-hero h1 { margin: 0; font-family: var(--k-display); font-weight: 600; font-size: clamp(1.75rem, 6.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.sh-hero h1 em { font-style: normal; color: var(--k-gold); }
.sh-hero-sub { margin: .8rem auto 0; max-width: 34rem; font-size: clamp(.95rem, 2.4vw, 1.08rem); line-height: 1.5; color: rgba(245, 229, 213, .82); text-wrap: pretty; }
.sh-stage.is-on .sh-hero { padding: clamp(.75rem, 1.8vw, 1.1rem); border-radius: 22px; }
.sh-stage.is-on .sh-hero-txt { display: none; }

.sh-ask-ring { max-width: 46rem; margin: 0 auto; }
.sh-ask-ring::before { inset: -3px; background: conic-gradient(from var(--sh-ang), transparent 0deg, var(--k-glow) 70deg, var(--k-gold) 130deg, var(--k-nebula) 190deg, transparent 260deg); }
.sh-ask form { height: 4.1rem; background: #fff; padding: 0 .45rem 0 1.5rem; box-shadow: 0 14px 40px rgba(10, 12, 32, .45); }
.sh-ask form:focus-within { box-shadow: 0 14px 40px rgba(10, 12, 32, .45), 0 0 0 4px rgba(242, 200, 121, .45); }
.sh-ask.is-thinking form { box-shadow: 0 10px 30px rgba(10, 12, 32, .4); }
.sh-ask input { font-size: 1.12rem; font-weight: 600; color: var(--k-esp-900); }
.sh-ask input::placeholder { color: var(--k-esp-400); font-weight: 500; }
.sh-ask button[type=submit] { width: 3.2rem; height: 3.2rem; background: var(--k-crema-500); color: var(--k-on-crema); font-size: 1.2rem; transition: background .15s, transform .15s var(--k-ease); }
.sh-ask button[type=submit]:hover { background: var(--k-crema-400); }
.sh-ask button[type=submit]:active { transform: scale(.92); }
.sh-mic { color: var(--k-esp-400); }
.sh-mic:hover { color: var(--k-esp-700); }
.sh-mic.is-on { background: var(--k-danger); color: #fff; }

.sh-storico-bar { justify-content: center; margin-top: .9rem; }
.sh-storico-bar button { height: 36px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(245, 229, 213, .24); color: var(--k-latte-100); box-shadow: none; font-weight: 700; font-size: .84rem; }
.sh-storico-bar button:hover { background: rgba(255, 255, 255, .15); border-color: rgba(245, 229, 213, .45); }
.sh-storico-bar:has(button[hidden]) { display: none; }
.sh-think span { background: var(--k-gold); }
.sh-wait { color: rgba(245, 229, 213, .88); }
.sh-hunt-card { background: var(--k-foam); border: 0; border-radius: 12px; box-shadow: 0 10px 24px rgba(10, 12, 32, .4); padding: 0 .6rem; }
.sh-hunt-card::before { display: none; }
.sh-hunt-lens { border-color: var(--k-gold); background: radial-gradient(circle, rgba(251, 230, 180, .22), rgba(251, 230, 180, 0) 68%); box-shadow: 0 0 0 1px rgba(20, 22, 46, .4), 0 12px 30px rgba(10, 12, 32, .5); }
.sh-hunt-lens::after { background: var(--k-gold); }
.sh-ask-msg { padding: .8rem 1.1rem; border-radius: 18px; background: var(--k-foam); border: 1px solid var(--k-line); box-shadow: var(--k-sh-xs); font-weight: 600; }
.sh-ask-msg.err { color: var(--k-danger); background: #f6ded8; border-color: rgba(179, 74, 58, .25); }

/* ───────── Fasce in home ───────── */
.sh-rand { margin-top: .2rem; }
.sh-band { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.sh-band-h, .sh-sec { font-family: var(--k-display); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.4rem); letter-spacing: -.01em; color: var(--k-esp-900); align-items: center; gap: .6rem; }
.sh-band-h { margin: 0 0 .8rem; }
.sh-band-h > span, .sh-sec > span { font-family: var(--k-body); font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: var(--k-crema-700); background: var(--k-crema-100); padding: .28rem .55rem; border-radius: 999px; line-height: 1; }
.sh-band-all { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .3rem; height: 34px; padding: 0 .35rem 0 .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--k-crema-700); font-family: var(--k-body); font-size: .86rem; font-weight: 800; cursor: pointer; transition: background .15s; }
.sh-band-all i { font-size: .8rem; transition: transform .2s var(--k-ease); }
.sh-band-all:hover { background: var(--k-crema-100); }
.sh-band-all:hover i { transform: translateX(3px); }
.sh-band-row { gap: .8rem; }
.sh-sec { border-bottom: 0; margin: 1.5rem 0 .2rem; padding-bottom: 0; }

/* ───────── Scheda prodotto (card) ───────── */
.sh-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .8rem; }
.sh-card { background: var(--k-foam); border: 1px solid var(--k-line); border-radius: 18px; box-shadow: var(--k-sh-xs); padding: .4rem; overflow: visible; transition: transform .22s var(--k-ease), box-shadow .22s, border-color .22s; }
@media (hover: hover) {
  .sh-card:hover { transform: translateY(-3px); box-shadow: var(--k-sh-md); border-color: var(--k-esp-200); }
  .sh-card:hover .sh-img img { transform: scale(1.05); }
}
.sh-card:active { transform: scale(.985); }
.sh-img { background: var(--k-tile); border-radius: 13px; }
.sh-img img, .sh-pick-img > img:not(.sh-flogo), .sh-cart-row .im img { mix-blend-mode: multiply; }
.sh-img.nofoto svg, .sh-pick-img.nofoto svg { color: var(--k-esp-300); }
.sh-flogo { top: .75rem; right: .75rem; height: 20px; max-width: 46px; border-radius: 7px; padding: 3px 5px; background: rgba(255, 255, 255, .94); box-shadow: var(--k-sh-xs); }
.sh-badge { top: .75rem; left: .75rem; background: var(--k-ok); font-size: .62rem; font-weight: 800; letter-spacing: .03em; padding: .24rem .5rem; backdrop-filter: none; }
.sh-badge.off { background: rgba(46, 35, 24, .78); }
.sh-body { padding: .6rem .35rem .4rem; gap: .22rem; }
.sh-forn-mini { font-size: .6rem; font-weight: 800; letter-spacing: .1em; color: var(--k-esp-400); }
.sh-name { font-size: .88rem; font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--k-esp-900); }
/* importi: Space Mono, euro dopo il valore */
.sh-price { font-family: var(--k-mono); color: var(--k-esp-900); align-items: baseline; gap: 0; padding-top: .45rem; }
.sh-price .int { order: 1; font-size: 1.08rem; font-weight: 700; letter-spacing: -.04em; }
.sh-price .dec { order: 2; font-size: 1.08rem; font-weight: 700; letter-spacing: -.04em; align-self: baseline; margin-top: 0; }
.sh-price .cur { order: 3; font-size: .9rem; font-weight: 700; align-self: baseline; margin: 0 0 0 .3rem; }
.sh-price .piu { order: 4; font-family: var(--k-body); }
.sh-price .um { order: 5; font-family: var(--k-body); font-size: .74rem; font-weight: 600; color: var(--k-esp-400); margin-left: .35rem; }
.sk { border-radius: 18px; aspect-ratio: 3/4; background: linear-gradient(90deg, #f1e4d3 25%, #f9f0e4 50%, #f1e4d3 75%); background-size: 200% 100%; }

/* ───────── Elenco (sfoglia) ───────── */
.sh-chips { gap: .4rem; margin-top: 0; }
.sh-chip { background: var(--k-crema-500); border: 0; color: var(--k-on-crema); font-weight: 800; font-size: .72rem; line-height: 1; min-height: 0; height: 24px; padding: 0 .3rem 0 .55rem; box-shadow: none; }
.sh-chip i { color: var(--k-on-crema); opacity: .7; font-size: .68rem; }
.sh-chip:hover { background: var(--k-crema-600); }
.sh-countrow { margin: 1rem 0 .9rem; }
.sh-count { font-size: .9rem; font-weight: 600; color: var(--k-esp-500); }
.sh-count b { font-family: var(--k-mono); font-weight: 700; color: var(--k-esp-900); }
.sh-sort { background: var(--k-foam); border: 1px solid var(--k-line); border-radius: 999px; padding: 0 .5rem 0 .9rem; height: 40px; box-shadow: var(--k-sh-xs); font-weight: 700; }
.sh-sort select { font-size: 16px; font-weight: 700; color: var(--k-esp-700); height: 100%; }
.sh-vuoto { font-weight: 600; }
.sh-vuoto i { color: var(--k-esp-300); }
.sh-more { background: var(--k-esp-700); color: var(--k-latte-100); font-weight: 800; padding: .85rem 2.2rem; box-shadow: var(--k-sh-sm); transition: background .15s, transform .15s var(--k-ease); }
.sh-more:hover { background: var(--k-esp-900); }
.sh-more:active { transform: scale(.97); }

/* ───────── Pannelli laterali / dal basso ───────── */
.sh-ov { background: rgba(46, 35, 24, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sh-sheet { background: var(--k-foam); box-shadow: -16px 0 40px rgba(75, 59, 42, .18); width: min(420px, 100%); }
.sh-sheet-h { padding: 1rem 1.25rem; border-bottom: 1px solid var(--k-line); }
.sh-sheet-h h2 { font-family: var(--k-display); font-weight: 600; font-size: 1.3rem; color: var(--k-esp-900); letter-spacing: -.01em; }
.sh-x { background: var(--k-latte-100); color: var(--k-esp-700); width: 2.5rem; height: 2.5rem; transition: background .15s, transform .15s var(--k-ease); }
.sh-x:hover { background: var(--k-latte-200); }
.sh-sheet-b h3, .sh-cart-forn { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--k-esp-500); }
#shVedi .sh-sheet-b { display: flex; flex-direction: column; gap: .85rem; padding-top: .9rem; }
#shVedi .sh-catgroup { margin: 0; padding: .75rem .8rem .85rem; background: var(--k-latte-50); border: 1px solid var(--k-line); border-radius: 16px; }
#shVedi .sh-catgroup h3 { margin: 0 0 .55rem; padding-bottom: .4rem; border-bottom: 1px solid var(--k-line); }
#shVedi .sh-opt { min-height: 34px; font-size: .82rem; padding: .3rem .75rem; background: #fff; }
.sh-opts { gap: .45rem; }
.sh-opt { background: #fff; border: 1px solid var(--k-esp-200); color: var(--k-esp-700); font-weight: 700; font-size: .9rem; min-height: 42px; padding: .5rem 1rem; transition: background .15s, border-color .15s, color .15s, transform .12s var(--k-ease); }
.sh-opt:hover { border-color: var(--k-esp-400); }
.sh-opt:active { transform: scale(.96); }
.sh-opt.on { background: var(--k-esp-700); border-color: var(--k-esp-700); color: var(--k-latte-100); }
.sh-opt.on img { background: #fff; border-radius: 4px; padding: 1px 3px; height: 18px; }
.sh-opt.now:not(.on) { border-color: var(--k-crema-500); border-style: solid; background: var(--k-crema-100); }
.sh-macro { color: var(--k-esp-500); font-weight: 800; letter-spacing: .1em; }
.sh-sheet-f { border-top: 1px solid var(--k-line); background: var(--k-foam); }
.sh-sheet-f button { height: 50px; font-weight: 800; background: #fff; border: 1px solid var(--k-esp-200); color: var(--k-esp-700); transition: background .15s, transform .12s var(--k-ease); }
.sh-sheet-f button:active { transform: scale(.98); }
.sh-sheet-f button.pri { background: var(--k-crema-500); border-color: var(--k-crema-500); color: var(--k-on-crema); box-shadow: 0 3px 0 rgba(154, 95, 39, .55); }
.sh-sheet-f button.pri:hover { background: var(--k-crema-400); border-color: var(--k-crema-400); }
.sh-sheet-f button.pri:disabled { opacity: .6; }
.sh-search { height: 48px; background: #fff; border: 1px solid var(--k-esp-200); box-shadow: none; }
.sh-search:focus-within { border-color: var(--k-crema-500); box-shadow: 0 0 0 3px rgba(224, 171, 104, .35); }
.sh-search input { font-weight: 600; }
.sh-search button { background: var(--k-esp-700); color: var(--k-latte-100); }

/* carrello */
.sh-cart-row { grid-template-columns: 60px 1fr auto; padding: .7rem 0; }
.sh-cart-row .im { width: 60px; height: 60px; border-radius: 14px; background: var(--k-tile); }
.sh-cart-row .nm { font-weight: 700; color: var(--k-esp-900); }
.sh-cart-row .um { font-weight: 600; }
.sh-cart-row .rm { font-weight: 700; }
.sh-qty, .sh-pick-qty { background: #fff; border: 1px solid var(--k-esp-200); }
.sh-qty input, .sh-pick-qty span { font-family: var(--k-mono); font-weight: 700; color: var(--k-esp-900); }
.sh-qty button:hover, .sh-pick-qty button:hover { background: var(--k-latte-100); }
.sh-cart-empty, .sh-done { font-weight: 600; }
.sh-cart-empty i { color: var(--k-esp-300); font-size: 2.8rem; }
.sh-field span { font-weight: 800; color: var(--k-esp-600); font-size: .8rem; }
.sh-field input, .sh-field textarea { background: #fff; border: 1px solid var(--k-esp-200); border-radius: 12px; min-height: 48px; font-weight: 600; }
.sh-field input:focus, .sh-field textarea:focus { border-color: var(--k-crema-500); box-shadow: 0 0 0 3px rgba(224, 171, 104, .35); }
.sh-err { color: var(--k-danger); font-weight: 700; }
.sh-toast { background: var(--k-esp-900); color: var(--k-latte-100); font-weight: 700; box-shadow: var(--k-sh-lg); }

/* ───────── Dettaglio prodotto ───────── */
.sh-modal { background: rgba(46, 35, 24, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sh-modal-box { background: var(--k-foam); border-radius: 26px; box-shadow: var(--k-sh-lg); }
.sh-modal-img { background: var(--k-tile); }
.sh-modal-img > img:not(.sh-flogo) { mix-blend-mode: multiply; }
.sh-modal-x { background: rgba(255, 255, 255, .94); box-shadow: var(--k-sh-sm); }
.sh-modal-info h2 { font-family: var(--k-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; color: var(--k-esp-900); text-wrap: balance; }
.sh-modal-info .sh-forn-mini { color: var(--k-crema-700); }
.sh-cod { font-family: var(--k-mono); font-size: .72rem; letter-spacing: 0; color: var(--k-esp-400); }
.sh-imgprice { background: rgba(255, 252, 247, .96); border-radius: 16px; padding: .5rem .85rem; box-shadow: var(--k-sh-md); }
.sh-imgprice .int, .sh-imgprice .dec { font-size: 1.55rem; }
.sh-imgprice .cur { font-size: 1.1rem; }
.sh-imgprice .piu { font-size: .72rem; font-weight: 800; color: var(--k-esp-400); letter-spacing: .04em; margin-left: .45rem; }
.sh-imgprice .um { order: 6; font-size: .72rem; }
@keyframes shBump { 0% { transform: scale(1); } 35% { transform: scale(1.1); background: var(--k-ok-100); } 100% { transform: scale(1); } }
.sh-um { background: #fff; border: 1px solid var(--k-esp-200); border-radius: 12px; font-weight: 700; }
.sh-umrow .sh-um { height: 48px; }
.sh-umrow .sh-qty button { height: 46px; width: 44px; }
.sh-strip .is-on { background: var(--k-ok-100); color: var(--k-ok); }
.sh-strip .is-off { background: var(--k-latte-100); color: var(--k-esp-300); }
.sh-strip span { font-family: var(--k-mono); }
/* gli strumenti «intelligenti» parlano la lingua del cosmo */
.sh-ricetta-btn { height: 48px; border: 0; border-radius: 14px; background: linear-gradient(140deg, var(--k-cosmos-700), var(--k-cosmos-900)); color: var(--k-latte-100); font-weight: 800; box-shadow: 0 6px 16px rgba(27, 31, 59, .28); transition: filter .15s, transform .12s var(--k-ease); }
.sh-ricetta-btn i { color: var(--k-gold); }
.sh-ricetta-btn:hover { background: linear-gradient(140deg, var(--k-cosmos-700), var(--k-cosmos-900)); filter: brightness(1.12); }
.sh-ricetta-btn:active { transform: scale(.985); }
.sh-chat-open { border: 1px solid rgba(242, 200, 121, .55); background: var(--k-cosmos-900); color: var(--k-glow); font-weight: 800; }
.sh-ai-star { fill: var(--k-gold); stroke: var(--k-gold); }
.sh-ai-star-sm { fill: var(--k-glow); }
@keyframes sh-ai-glow { 0%, 100% { box-shadow: 0 6px 16px rgba(27, 31, 59, .35), 0 0 0 0 rgba(242, 200, 121, 0); } 50% { box-shadow: 0 6px 16px rgba(27, 31, 59, .35), 0 0 0 4px rgba(242, 200, 121, .35); } }
.sh-actions { gap: .6rem; }
.sh-actions .sh-fav, .sh-actions .sh-addbtn { height: 52px; border-radius: 14px; font-size: .95rem; font-weight: 800; }
.sh-actions .sh-fav { flex: 0 1 auto; padding: 0 .95rem; background: #fff; border: 1px solid var(--k-esp-200); color: var(--k-esp-700); }
.sh-actions .sh-fav:hover { background: var(--k-crema-100); border-color: var(--k-crema-500); }
.sh-fav i { color: var(--k-crema-500); }
.sh-actions .sh-addbtn { flex: 1 1 0; background: var(--k-crema-500); color: var(--k-on-crema); box-shadow: 0 3px 0 rgba(154, 95, 39, .55); }
.sh-actions .sh-addbtn:hover { background: var(--k-crema-400); }
.sh-actions .sh-addbtn.ok { background: var(--k-ok); color: #fff; box-shadow: 0 3px 0 rgba(46, 80, 42, .6); }

/* ───────── Ricetta e «Da comprare» ───────── */
.sh-ricetta h2 { font-family: var(--k-display); font-weight: 600; letter-spacing: -.015em; color: var(--k-esp-900); border-left: 4px solid var(--k-crema-500); }
.sh-ricetta details, .sh-picks { background: var(--k-foam); border: 1px solid var(--k-line); border-radius: 18px; box-shadow: var(--k-sh-sm); }
.sh-proc-mark { background: var(--k-crema-100); color: var(--k-crema-700); border-radius: 10px; }
.sh-proc-label { font-weight: 800; }
.sh-proc-n { font-family: var(--k-mono); letter-spacing: 0; }
.sh-ricetta li { font-weight: 500; }
.sh-ricetta li::before { background: var(--k-latte-100); color: var(--k-esp-900); font-family: var(--k-mono); }
.sh-step-go { background: var(--k-cosmos-900); border-color: var(--k-cosmos-900); color: var(--k-gold); }
.sh-step-go:hover { border-color: var(--k-gold); color: var(--k-glow); }
.sh-picks-h { font-family: var(--k-display); font-weight: 600; font-size: 1.15rem; color: var(--k-esp-900); padding: 1rem 1rem .6rem; }
.sh-resa { font-family: var(--k-body); font-weight: 700; color: var(--k-crema-700); }
.sh-pick { background: transparent; }
.sh-pick-img { background: var(--k-tile); border-radius: 12px; }
.sh-pick-name { font-weight: 700; letter-spacing: 0; color: var(--k-esp-900); }
.sh-pick-add { background: var(--k-esp-700); font-weight: 800; }
.sh-pick-add:hover { background: var(--k-esp-900); }
.sh-pick-foot { background: var(--k-latte-50); padding: .75rem .85rem; }
.sh-pick-all { height: 48px; background: var(--k-crema-500); color: var(--k-on-crema); font-weight: 800; box-shadow: 0 3px 0 rgba(154, 95, 39, .55); }
.sh-pick-all:hover { background: var(--k-crema-400); }
.sh-pick-all.ok { background: var(--k-ok); color: #fff; box-shadow: none; }

/* ───────── Chat (articolo / passaggio) e storico ───────── */
.sh-passo { background: var(--k-latte-50); }
.sh-passo-h { background: var(--k-foam); }
.sh-passo-h p { color: var(--k-crema-700); font-weight: 800; }
.sh-passo-h h2 { font-family: var(--k-display); font-weight: 600; letter-spacing: 0; color: var(--k-esp-900); }
.sh-bubble { border-radius: 18px; font-weight: 500; }
.sh-bubble.me { background: var(--k-esp-700); color: var(--k-latte-100); border-bottom-right-radius: 6px; }
.sh-bubble.ai { background: #fff; border: 1px solid var(--k-line); border-bottom-left-radius: 6px; box-shadow: var(--k-sh-xs); }
.sh-dopo { background: var(--k-crema-100); border-color: transparent; font-weight: 700; }
.sh-dopo:hover { border-color: var(--k-crema-500); }
.sh-passo-form { background: var(--k-foam); }
.sh-passo-form input { height: 48px; border-color: var(--k-esp-200); font-weight: 600; }
.sh-passo-form input:focus { border-color: var(--k-crema-500); box-shadow: 0 0 0 3px rgba(224, 171, 104, .35); }
.sh-passo-form button[type="submit"] { width: 48px; height: 48px; background: var(--k-crema-500); color: var(--k-on-crema); }
.sh-sto-box { background: var(--k-foam); border-radius: 26px; box-shadow: var(--k-sh-lg); }
.sh-sto-b button { background: transparent; }
.sh-sto-b strong { font-weight: 800; color: var(--k-esp-900); }
.sh-sto-b button:hover, .sh-sto-b button.on { background: var(--k-latte-100); }

/* ───────── Desktop ───────── */
@media (min-width: 701px) {
  .sh-head-row { padding: .7rem 0; gap: .65rem; }
  .sh-brand img { height: 34px; }
  .sh-cartbtn { width: auto; padding: 0 1.1rem 0 1rem; gap: .5rem; font-size: .92rem; }
  .sh-cartbtn i { font-size: 1.05rem; }
  .sh-cartbtn .t { display: inline; }
  .sh-modal-box { border-radius: 26px; box-shadow: 0 30px 80px rgba(46, 35, 24, .35); }
  .sh-modal-info h2 { font-size: 1.6rem; }
  .sh-modal-info .sh-actions { margin-top: auto; padding-top: .6rem; }
}
@media (min-width: 1101px) {
  .sh-band-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ───────── Fasce a scorrimento orizzontale (telefono e tablet) ───────── */
@media (max-width: 1100px) {
  .sh-band-row {
    display: flex; grid-template-columns: none; gap: .7rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(1rem, 2.4vw, 2.5rem)); padding: .25rem clamp(1rem, 2.4vw, 2.5rem) 1rem; scroll-padding-left: clamp(1rem, 2.4vw, 2.5rem);
  }
  .sh-band-row::-webkit-scrollbar { display: none; }
  .sh-band-row > * { flex: 0 0 clamp(150px, 22vw, 200px); scroll-snap-align: start; }
  .sh-band-row .sh-card:nth-child(n+7) { display: flex; }
  .sh-band { margin-bottom: -.6rem; }
}

/* ───────── Telefono ───────── */
@media (max-width: 700px) {
  .sh-wrap { padding: 0 .9rem; }
  .sh-head-row { gap: .45rem; padding: .5rem 0; }
  .sh-brand img { height: 26px; }
  .sh-vedi, .sh-fbtn { height: 44px; }
  .sh-fbtn { width: 44px; }
  .sh-head .sh-vedi { height: 44px; padding: 0 .9rem; min-width: 0; flex: 0 1 auto; font-size: .88rem; }

  .sh-hero { border-radius: 24px; padding: 1.7rem 1rem 1.3rem; }
  .sh-stage.is-on .sh-hero { padding: .65rem; border-radius: 999px; }
  .sh-stage.is-on .sh-hero:has(.sh-storico-bar button:not([hidden])), .sh-stage.is-on .sh-ask.is-thinking .sh-hero { border-radius: 24px; }
  .sh-ask form { height: 3.6rem; padding-left: 1.15rem; }
  .sh-ask input { font-size: 16px; }
  .sh-ask button[type=submit] { width: 2.8rem; height: 2.8rem; }

  .sh-band-row { margin: 0 -.9rem; padding: .25rem .9rem 1rem; scroll-padding-left: .9rem; gap: .6rem; }
  .sh-band-row > * { flex-basis: 43vw; max-width: 190px; }
  .sh-band-all span { display: none; }
  .sh-band-all { width: 36px; height: 36px; padding: 0; justify-content: center; background: var(--k-crema-100); }
  .sh-band-all i { font-size: .9rem; }

  /* griglia a tre colonne: almeno 3 articoli per riga su telefono (owner 2026-11-19), schede compatte */
  .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .sh-card { border-radius: 12px; padding: .22rem; }
  .sh-img { border-radius: 9px; }
  .sh-body { padding: .35rem .2rem .3rem; gap: .12rem; }
  .sh-name { font-size: .72rem; font-weight: 700; line-height: 1.2; }
  .sh-price { padding-top: .15rem; }
  .sh-price .int, .sh-price .dec { font-size: .92rem; margin-top: 0; }
  .sh-price .cur { font-size: .66rem; margin-top: 0; }
  .sh-price .um { display: none; }
  .sh-sconto { margin-left: .2rem; padding: 0 .3rem; font-size: .58rem; }
  .sh-was { margin-left: .2rem; font-size: .62rem; }
  .sh-flogo { top: .4rem; right: .4rem; height: 14px; max-width: 32px; padding: 1px 3px; border-radius: 4px; }
  .sh-badge { top: .4rem; left: .4rem; font-size: .5rem; padding: .15rem .32rem; }
  .sh-sort { height: 40px; }
  .sh-count { font-size: .86rem; }

  /* pannelli dal basso, con maniglia */
  .sh-sheet { border-radius: 26px 26px 0 0; max-height: 90vh; max-height: 90dvh; box-shadow: 0 -16px 40px rgba(46, 35, 24, .22); }
  .sh-sheet::before, .sh-modal-box::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--k-esp-200); z-index: 3; pointer-events: none; }
  .sh-sheet-h { padding: 1.25rem 1.1rem .8rem; }
  .sh-sheet-b { padding: .4rem 1.1rem 1rem; }
  .sh-sheet-f { padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom)); }
  .sh-opt { min-height: 44px; }

  .sh-modal { padding: 0; }
  .sh-modal-box { border-radius: 26px 26px 0 0; max-height: 94vh; max-height: 94dvh; }
  .sh-modal-box::before { background: rgba(75, 59, 42, .28); }
  .sh-modal-img { aspect-ratio: 1 / .74; }
  .sh-modal-info { padding: 1.1rem 1.1rem 0; gap: .75rem; }
  .sh-modal-info h2 { font-size: 1.3rem; }
  .sh-imgprice .int, .sh-imgprice .dec { font-size: 1.35rem; }
  /* azioni sempre a portata di pollice */
  .sh-modal-info .sh-actions { position: sticky; bottom: 0; z-index: 4; margin: .2rem -1.1rem 0; padding: .75rem 1.1rem calc(.8rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 252, 247, 0), var(--k-foam) .7rem); }
  .sh-actions .sh-fav span { display: none; }
  .sh-actions .sh-fav { flex: none; width: 52px; padding: 0; }
  .sh-actions .sh-fav i { font-size: 1.25rem; }

  .sh-picks { border-radius: 18px; }
  .sh-ricetta h2 { font-size: 1.6rem; }
  .sh-toast { bottom: calc(1rem + env(safe-area-inset-bottom)); max-width: calc(100vw - 2rem); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-card, .sh-img img, .sh-sheet, .sh-toast, .sh-band-all i { transition: none; }
}

/* quando «Sfoglia categorie» sparisce (ricerca in corso) i pulsanti restano a destra */
.sh-brand { margin-right: auto; }
.sh-head-row .sh-vedi { margin-left: 0; }

/* ───────── Link «solo» (/catalogo/solo/<fornitore>): il logo del fornitore in primo piano ───────── */
.sh-brand-solo { display: flex; align-items: center; gap: .8rem; min-width: 0; text-decoration: none; }
.sh-brand-forn { display: grid; place-items: center; height: 46px; padding: 5px 12px; background: #fff; border: 1px solid var(--k-line); border-radius: 14px; box-shadow: var(--k-sh-sm); flex: none; }
.sh-brand .sh-brand-forn img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.sh-brand-forn.is-txt { font-family: var(--k-display); font-weight: 600; font-size: 1.1rem; color: var(--k-esp-900); }
.sh-brand-by { display: flex; align-items: center; gap: .4rem; padding-left: .8rem; border-left: 1px solid var(--k-esp-200); }
.sh-brand-by small { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--k-esp-400); }
.sh-brand .sh-brand-by img { height: 22px; opacity: .85; }
.sh-hero-forn { display: inline-grid; place-items: center; margin: 0 0 1.3rem; padding: clamp(.9rem, 2.4vw, 1.3rem) clamp(1.3rem, 4vw, 2.2rem); background: #fff; border-radius: 26px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 0 60px rgba(242, 200, 121, .28), 0 18px 40px rgba(10, 12, 32, .5); transform: rotate(-1.5deg); }
.sh-hero-forn img { display: block; height: clamp(64px, 17vw, 112px); width: auto; max-width: min(70vw, 340px); object-fit: contain; }
.sh-hero-forn strong { font-family: var(--k-display); font-weight: 600; font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--k-esp-900); line-height: 1.1; }
/* un solo fornitore: il logo ripetuto su ogni prodotto non serve */
body:has(.sh-brand-solo) .sh-card .sh-flogo, body:has(.sh-brand-solo) .sh-pick-forn { display: none; }
@media (max-width: 700px) {
  .sh-brand-forn { height: 44px; padding: 5px 9px; border-radius: 13px; }
  .sh-brand .sh-brand-forn img { max-width: 92px; }
  .sh-brand-by { display: none; }
  .sh-hero-forn { margin-bottom: 1.1rem; border-radius: 22px; }
}
/* in versione «solo» la pagina è sempre in modalità elenco: la testata resta aperta con logo e nome */
.sh-stage.is-on .sh-hero:has(.sh-hero-forn) { padding: clamp(1.3rem, 3vw, 2.2rem) clamp(1rem, 4vw, 3rem) clamp(1.1rem, 2.4vw, 1.8rem); border-radius: 26px; }
.sh-stage.is-on .sh-hero-txt:has(.sh-hero-forn) { display: block; margin-bottom: 1.1rem; }
.sh-stage.is-on .sh-hero-txt:has(.sh-hero-forn) h1, .sh-stage.is-on .sh-hero-txt:has(.sh-hero-forn) .sh-hero-sub { display: none; }
.sh-stage.is-on .sh-hero-forn { margin-bottom: 1rem; }
.sh-stage.is-on .sh-hero-txt:has(.sh-hero-forn) .sh-hero-eye { margin: 0; font-size: .74rem; }
@media (max-width: 700px) {
  .sh-stage.is-on .sh-hero:has(.sh-hero-forn) { border-radius: 24px; padding: 1.4rem 1rem 1.1rem; }
  .sh-brand .sh-brand-forn img { max-width: 62px; }
  .sh-brand-forn { padding: 5px 7px; }
}

/* ───────── Nastro dei loghi fornitori nella testata (solo all'arrivo) ───────── */
.sh-hero .sh-marquee { margin: clamp(1.3rem, 3vw, 2rem) calc(-1 * clamp(1rem, 4vw, 3rem)) 0; width: auto; padding: .6rem 0 1.6rem; margin-bottom: -1.2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.sh-hero .sh-marquee-set { gap: clamp(.7rem, 1.6vw, 1.1rem); padding-right: clamp(.7rem, 1.6vw, 1.1rem); }
.sh-hero .sh-marquee img { box-sizing: content-box; height: clamp(34px, 6vw, 46px); max-width: 130px; padding: .6rem 1.1rem; background: #fff; border-radius: 16px; box-shadow: 0 8px 20px rgba(10, 12, 32, .4); }
.sh-hero-txt { margin-bottom: clamp(1.2rem, 2.8vw, 2rem); }

/* Sotto il box delle idee: ricerca prodotto, categorie, poi conteggio, ordine e filtri. */
.sh-stage { padding-bottom: 0; }
.sh-catalog { margin-top: 1.15rem; }
.sh-find { display: flex; align-items: center; gap: .55rem; }
.sh-find .sh-search { flex: 1; min-width: 0; margin: 0; }
.sh-find .sh-vedi { height: 48px; margin: 0; padding: 0 .95rem; max-width: none; flex: none; white-space: nowrap; }
.sh-find .sh-vedi.on { background: var(--k-esp-700); border-color: var(--k-esp-700); color: var(--k-latte-100); }
.sh-find .sh-vedi.on i { color: var(--k-gold); }
.sh-listbar { display: flex; align-items: center; gap: .7rem; margin: .85rem 0 .3rem; }
.sh-listbar .sh-count { flex: none; margin: 0; }
.sh-listbar .sh-chips { flex: 1 1 auto; min-width: 0; margin: 0; align-items: center; }
.sh-listbar .sh-fbtn { width: auto; height: 40px; padding: 0 .95rem; flex: none; margin-left: auto; }
.sh-listbar .sh-sort { flex: none; margin: 0; padding: 0 .15rem 0 .55rem; gap: 0; }
.sh-listbar .sh-sort span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sh-listbar .sh-sort select { field-sizing: content; width: auto; max-width: none; padding: 0 1.15rem 0 0; text-align: right; text-align-last: right; }
.sh-listbar .sh-fbtn .t { display: inline; }
@media (max-width: 700px) {
  .sh-find .sh-vedi { height: 46px; padding: 0 .75rem; font-size: .82rem; }
  .sh-listbar { gap: .45rem; }
  .sh-listbar .sh-fbtn { width: auto; height: 40px; padding: 0 .75rem; }
  .sh-listbar .sh-fbtn .t { display: inline; font-size: .82rem; }
  /* «Creiamo una ricetta»: su telefono solo l'icona (il nome resta nel tooltip), e la riga non deve mai sforare lo schermo */
  .sh-listbar .sh-ricbtn .t { display: none; }
  .sh-listbar .sh-ricbtn { padding: 0 .7rem; margin-left: auto; }
  .sh-listbar .sh-ricbtn + .sh-fbtn { margin-left: 0; }
  .sh-listbar { flex-wrap: wrap; row-gap: .4rem; }
}

/* ───────── Box «Offerte»: largo quanto serve, mai un banner vuoto ───────── */
.sh-offerte { width: fit-content; max-width: 100%; min-width: min(100%, 340px); }
#shOfferteGrid { display: flex; flex-wrap: wrap; gap: .65rem; padding-bottom: 0; }
#shOfferteGrid .sh-card { flex: 0 0 176px; max-width: 176px; }
.sh-offerte--uno { width: 100%; max-width: 520px; }
.sh-uno { display: flex; gap: .9rem; align-items: stretch; background: #fff; color: var(--k-esp-700, #4b3b2a); border-radius: 16px; padding: .6rem; box-shadow: 0 0 0 2px #fde047, 0 8px 22px rgba(127,29,29,.25); }
.sh-uno-img { position: relative; flex: 0 0 132px; width: 132px; aspect-ratio: 1/1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #f5e5d5; cursor: pointer; display: grid; place-items: center; font-size: 2rem; color: #a38b6e; }
.sh-uno-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-uno-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.sh-uno-n { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; font-family: var(--k-display, inherit); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: inherit; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-uno .sh-price { margin-top: 0; padding-top: 0; gap: .15rem .5rem; }
.sh-uno .sh-price .int { font-size: 1.7rem; }
.sh-uno-cta { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #b91c1c, #ea580c); box-shadow: 0 4px 12px rgba(185,28,28,.35); }
@media (max-width: 700px) {
  .sh-offerte { width: 100%; min-width: 0; }
  #shOfferteGrid .sh-card { flex: 0 0 calc((100% - 1.3rem) / 3); max-width: none; }
  .sh-offerte--uno { max-width: none; }
  .sh-uno { gap: .7rem; }
  .sh-uno-img { flex-basis: 108px; width: 108px; }
  .sh-uno-n { font-size: .95rem; }
  .sh-uno .sh-price .int { font-size: 1.45rem; }
}

/* ───────── Scheda prodotto su telefono: il prezzo sopra la foto è una pillola piccola, non un banner ───────── */
@media (max-width: 700px) {
  .sh-imgprice { right: .5rem; bottom: .5rem; max-width: calc(100% - 6.5rem); padding: .25rem .55rem; border-radius: 12px; box-shadow: var(--k-sh-sm); }
  .sh-imgprice .sh-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 .3rem; }
  .sh-imgprice .int, .sh-imgprice .dec { font-size: 1.15rem; }
  .sh-imgprice .cur { font-size: .85rem; }
  .sh-imgprice .piu { font-size: .62rem; margin-left: .2rem; }
  .sh-imgprice .sh-modal-was { width: auto; margin: 0; gap: .3rem; }
  .sh-imgprice .sh-modal-was s { font-size: .75rem; }
  .sh-imgprice .sh-modal-was .sh-sconto { font-size: .65rem; padding: .05rem .3rem; }
  .sh-imgprice .sh-price.is-offerta .riservato { display: none; }   /* lo dice già il bollino -N% */
  .sh-imgprice .riservato { font-size: .6rem; }
}

/* ───────── Scheda prodotto: con il banner «Sei un'azienda?» in fondo alla foto, prezzo e «info» salgono sopra (owner 2026-11-27) ───────── */
.sh-modal-img:has(.sh-b2b.is-mini) .sh-imgprice,
.sh-modal-img:has(.sh-b2b.is-mini) .sh-chat-open { bottom: calc(.8rem + 48px + .5rem); }
