/* =====================================================================
   App dei CLIENTI — «Cornice» (VET-13, D-202, CHG-1660…1669)
   Caricato SOLO dalle pagine dei clienti (negozio /qrcart, tavolo /dining, area cliente /account), DOPO style.css:
   style.css serve anche le app dello staff (cameriere, cucina, bar, magazzino, produzione, pulizie), che restano com'erano
   (VET-15). Stesse regole del marketplace «Cornice» (D-201, webapp/shop/_assets/style.css):
   - la CORNICE è del sistema: testata, barra del carrello e piè di pagina scuri come il sito «Notte», attenuati;
   - la SPESA sta su grigio caldo chiaro con card bianche;
   - il NEGOZIO ha logo, nome e stelle in testata, il filo nel suo colore d'accento sotto la testata e, in home, la sua
     insegna a tutta larghezza (immagini, velo nel suo colore scuro). Variabili --s-*, calcolate SOLO da
     dbsrv/shop_branding_lib.php (customerapp_brand_vars in _common.php); senza aspetto personalizzato valgono i valori
     neutri qui sotto (insegna del sistema, iniziale al posto del logo);
   - verde del sistema su icone e link, LIME sui pulsanti che fanno andare avanti;
   - il canale (self-checkout, tavolo, asporto, consegna) non colora più i pulsanti: è una pillola con l'icona.
   I nomi di prima (--green*, --cta) restano, ma ora sono colori del SISTEMA: il negozio non li ricolora più.
   I colori di base (fondo, testo, parti scure) sono ripetuti nella pagina (_common.php): le scritte non dipendono da
   questo foglio (CHG-1604). Caratteri: quelli del sito (nmp-notte.css), nessun file da scaricare (D-192 D4).
   Bozza: QA-OCOM/results/customerapp-cornice-2026-10-24/bozze/variante-a-cornice.html
   ===================================================================== */

:root {
    /* la spesa: grigio caldo chiaro, card bianche */
    --bg: #f3f3ee; --bg-2: #ebebe4; --surf: #ffffff; --surf-2: #f0f0ea;
    --line: #e2e2da; --line-2: #d2d3c9;
    --text: #1b241d; --head: #0f1810; --muted: #55625a; --soft: #66725f;
    /* il sistema: verde per link e icone, lime per i pulsanti che fanno andare avanti */
    --sys: #2e7a1f; --sys-h: #1f5a14; --sys-bg: rgba(76,175,80,.12); --lime: #a3ff7e; --lime-ink: #072307;
    --lime-grad: linear-gradient(180deg, #b9ff9a, #86df5e);
    --lime-sh: 0 0 0 1px rgba(98,180,64,.55), 0 10px 24px -14px rgba(98,190,60,.85);
    /* la cornice scura */
    --frame: #1b231e; --frame-2: #232e28; --frame-fg: #eaf3e6; --frame-mut: #a0b49e; --frame-line: rgba(190,255,170,.12);
    --field-bg: rgba(255,255,255,.07); --field-line: rgba(190,255,170,.18);
    --grid-line: rgba(190,255,170,.05); --glow: rgba(76,175,80,.30);
    --star: #d99a00; --promo: #b93c0b; --bad: #b42318;
    --warn-bg: #fff5e1; --warn-line: #efc56c; --warn-ink: #5e3f00;
    --sh: 0 1px 2px rgba(16,32,16,.05), 0 10px 26px -20px rgba(16,40,16,.30);
    --r: 18px; --r-s: 12px;
    --sans: "Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,"SF Pro Display",Roboto,"Helvetica Neue",Arial,sans-serif;
    --text-f: "Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
    /* i canali: solo nella pillola */
    --ch-self: #6d28d9; --ch-table: #00796b; --ch-takeaway: #b45309; --ch-delivery: #3949ab;
    /* il negozio — valori dell'aspetto STANDARD (neutri, del sistema); l'aspetto personalizzato li riscrive (#nmp-brand) */
    --s: #3b4a40; --s-dark: #1b241f; --s-border: #d2d3c9; --s-acc: rgba(163,255,126,.45); --s-acc-d: #c9d8c4;
    --s-ink: #1b241d; --s-tint: #f0f0ea;
    --s-v1: rgba(27,36,31,.92); --s-v2: rgba(27,36,31,.62); --s-v3: rgba(27,36,31,.14);
    /* i nomi di style.css e delle pagine: ora del SISTEMA */
    --green: #2e7a1f; --green-dark: #1f5a14; --green-soft: #6dbf4a; --green-glow: #a3ff7e;
    --green-light: #edf3e6; --green-wash: #dfe9d6;
    --card: #ffffff; --border: #e2e2da; --danger: #b42318; --info: #0b5d8a;
    --cta: #86df5e; --cta-dark: #6fcf47;
}
/* style.css colora --cta secondo il canale sul body: con la Cornice i pulsanti sono lime per tutti i canali */
body.flow-self, body.flow-table, body.flow-takeaway, body.flow-delivery { --cta: #86df5e; --cta-dark: #6fcf47; }

/* ─── Base ───────────────────────────────────────────────────────── */
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { height: auto; min-height: 100%; }
body {
    background: var(--bg); color: var(--text);
    font: 400 16px/1.5 var(--text-f);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--sys);
    min-height: 100vh; display: flex; flex-direction: column;
    overflow-x: clip;
}
h1, h2, h3, h4 { font-family: var(--sans); color: var(--head); letter-spacing: -.015em; }
a { color: var(--sys); }
:focus-visible { outline: 2px solid var(--sys); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(163,255,126,.55); color: #0f1810; }
input, select, textarea, button { font-family: inherit; }
.ca-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ca-bigico { font-size: 0; margin-bottom: 4px; }
.ca-bigico .ca-ico { width: 44px; height: 44px; }
.ca-prod-img .ca-ico, .rim .ca-ico, .ca-pd-img .ca-ico { width: 30px; height: 30px; opacity: .55; }
.muted { color: var(--muted); }

/* ─── La cornice: testata ─────────────────────────────────────────── */
.ca-top {
    position: sticky; top: 0; z-index: 50; flex-shrink: 0;
    background: var(--frame); color: var(--frame-fg);
    border-bottom: 3px solid var(--s-acc);
    box-shadow: 0 10px 24px -18px rgba(0,0,0,.55);
}
.ca-top-in { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 0; }
.ca-shop { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; color: var(--frame-fg); }
.ca-slogo-link { flex: none; display: block; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ca-slogo {
    height: 46px; min-width: 46px; max-width: 132px; border-radius: 12px; background: #fff;
    display: grid; place-items: center; padding: 4px 7px;
    box-shadow: 0 4px 14px -8px rgba(0,0,0,.6);
}
.ca-slogo img { display: block; max-height: 38px; max-width: 118px; width: auto; height: auto; object-fit: contain; }
/* negozio senza logo: l'iniziale sul tondo scuro del sistema (niente colore inventato) */
.ca-slogo.is-ini {
    width: 46px; padding: 0;
    background: linear-gradient(160deg, #2c3b32, #1a241e); box-shadow: inset 0 0 0 1px rgba(163,255,126,.28);
    color: var(--lime); font: 800 21px/1 var(--sans);
}
.ca-tondo { width: 40px; height: 40px; border-radius: 50%; display: block; flex: none; box-shadow: 0 0 0 1px rgba(163,255,126,.28), 0 0 22px -6px rgba(163,255,126,.45); }
.ca-st { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.ca-st-name {
    font: 700 17px/1.25 var(--sans); color: #fff; letter-spacing: -.01em; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ca-st-name em { font-style: normal; color: #ffe066; }
a.ca-st-name:hover { color: #fff; }
/* CHG-2050 VET-31 (D-261): testata senza negozio = lockup col tondo e l'ondina; la riga sotto parte dove parte la
   scritta del lockup (CHG-2134, D-266: con le onde a sinistra la scritta parte a 188/130 dell'altezza: 61 px a 42 px) */
.ca-st .ca-lockup { display: block; width: auto; height: 42px; max-width: 100%; align-self: flex-start; object-fit: contain; }
.ca-st .ca-lockup + .ca-st-sub { margin-top: 0; padding-left: 61px; }
/* CHG-2055 VET-33: solo la scritta quando il corpo della pagina ha già il tondo; tipografia del lockup, «.it» verde */
.ca-st .ca-scritta { display: block; font: 800 21px/1.15 Manrope, var(--sans); letter-spacing: -.025em; white-space: nowrap; }
.ca-scritta .cs-nome { color: #fff; }
.ca-scritta .cs-it { color: #5fcf6b; }
.ca-st-sub {
    display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0;
    font-size: 13px; color: var(--frame-mut); white-space: nowrap; overflow: hidden;
}
.ca-st-sub i { font-style: normal; color: rgba(234,243,230,.38); }
.ca-st-city { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ca-st-rate { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--frame-mut); text-decoration: none; }
.ca-st-rate:hover { color: #fff; }
.ca-st-rate .ca-stars { color: #ffc94d; letter-spacing: .5px; font-size: 12px; }
.ca-ib {
    position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; text-decoration: none;
    border: 1px solid var(--field-line); background: var(--field-bg); color: var(--frame-fg);
}
.ca-ib:hover { color: #fff; background: rgba(255,255,255,.12); }
.ca-ib .ca-ico { width: 21px; height: 21px; }
.ca-badge {
    position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
    background: var(--lime); color: var(--lime-ink); font: 800 12px/21px var(--sans); text-align: center;
    box-shadow: 0 0 0 2px var(--frame);
}

/* ─── Percorso e contenuto ───────────────────────────────────────── */
.ca-main { flex: 1 0 auto; width: min(760px, 100% - 32px); max-width: none; margin: 0 auto; padding: 16px 0 48px; }
.ca-main--wide { width: min(1120px, 100% - 32px); }
.ca-main--cbar { padding-bottom: 110px; }
.ca-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ca-bc a { color: var(--sys); font-weight: 600; text-decoration: none; padding: 4px 0; }
.ca-bc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ca-bc .sep { margin: 0 8px; color: #9aa293; }
.ca-bc .current { color: var(--text); font-weight: 600; }
.ca-h1 { font: 800 clamp(25px, 3vw, 32px)/1.15 var(--sans); color: var(--head); letter-spacing: -.02em; margin: 0 0 6px; }
.ca-lead { color: var(--muted); font-size: 15px; margin: 0 0 16px; }

/* ─── La cornice: piè di pagina ───────────────────────────────────── */
.ca-foot { flex-shrink: 0; background: var(--frame); color: #a9b7a6; border-top: 1px solid var(--frame-line); padding: 28px 0 30px; }
.ca-foot-in { width: min(1120px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.ca-fb { display: flex; align-items: center; gap: 12px; }
.ca-fb img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.ca-fb span { display: flex; flex-direction: column; line-height: 1.35; }
.ca-fb b { color: #fff; font: 700 16px/1.3 var(--sans); }
.ca-fb b em { font-style: normal; color: #ffe066; }
.ca-fb small { font-size: 13.5px; color: #a9b7a6; }
/* CHG-2050 VET-31 (D-261): il lockup col tondo e l'ondina; la riga sotto allineata alla scritta (CHG-2134: 188/130 di 44 px) */
.ca-fb img.ca-lockup { width: auto; height: 44px; max-width: 100%; border-radius: 0; align-self: flex-start; object-fit: contain; }
.ca-fb .ca-lockup + small { padding-left: 64px; }
.ca-foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.ca-foot-links a { color: #a9b7a6; text-decoration: none; }
.ca-foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ca-foot .ca-eco { flex-basis: 100%; margin: 0; font-size: 12.5px; color: #93a390; display: flex; align-items: center; gap: 6px; }
.ca-foot .ca-eco .ca-ico { width: 15px; height: 15px; color: var(--lime); }

/* ─── L'insegna del negozio (home) ───────────────────────────────── */
.ca-ins {
    position: relative; overflow: hidden; isolation: isolate; flex-shrink: 0;
    min-height: 300px; display: flex; align-items: flex-end;
    background-color: var(--s-dark); color: #fff;
}
.ca-ins .nmp-sl, .ca-ins-img { position: absolute; inset: 0; z-index: 0; }
.ca-ins-img { background: center / cover no-repeat; }
.ca-ins-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--s-v1) 0%, var(--s-v2) 46%, var(--s-v3) 100%); }
.ca-ins-in { position: relative; z-index: 2; width: min(1120px, 100% - 32px); margin: 0 auto; padding: 40px 0 36px; }
.ca-eyebrow { display: inline-block; font: 700 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--s-acc-d); }
.ca-ins h1 { margin: 10px 0 0; color: #fff; font: 800 clamp(30px, 4.2vw, 52px)/1.06 var(--sans); letter-spacing: -.035em; text-shadow: 0 2px 14px rgba(0,0,0,.25); overflow-wrap: anywhere; }
.ca-ins-claim { margin: 8px 0 0; font: 600 18px/1.35 var(--sans); color: #fff; }
.ca-ins-sub { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.88); max-width: 560px; }
.ca-ins-addr { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 14px; color: rgba(255,255,255,.84); }
.ca-ins-addr .ca-ico { width: 16px; height: 16px; color: var(--s-acc-d); }
/* D-281 (CHG-2205): il distintivo «Negozio Fondatore» nell'insegna, sobrio: pillola chiara sul velo del negozio, icona lime del sistema */
.ca-ins-fond { margin: 12px 0 0; }
.ca-fond { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(255,255,255,.12);
           border: 1px solid rgba(163,255,126,.5); color: #fff; font: 600 13px/1.2 var(--sans); letter-spacing: .01em; }
.ca-fond .ca-ico { width: 16px; height: 16px; color: var(--lime); }
.ca-ins .nmp-sl-dots { right: max(16px, calc((100% - 1120px) / 2)); bottom: 14px; }
/* col colore ma senza immagini: il colore del negozio, banda più bassa */
.ca-ins--plain { min-height: 240px; background-image: linear-gradient(135deg, var(--s) 0%, var(--s-dark) 100%); }
/* aspetto standard: l'insegna è del sistema (griglia e alone del sito), niente colore inventato */
.ca-ins--std { background-image: linear-gradient(180deg, #1b241f 0%, #24302a 100%); }
.ca-ins--std::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 90% at 25% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 90% at 25% 0%, #000 30%, transparent 80%);
}
.ca-ins--std::after { content: ""; position: absolute; left: -15%; top: -260px; width: 760px; height: 520px; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent); }
.ca-ins--std .ca-eyebrow, .ca-ins--std .ca-ins-addr .ca-ico { color: var(--lime); }

/* ─── Mattoni comuni ─────────────────────────────────────────────── */
.ca-c { display: block; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); color: var(--text); text-decoration: none; }
a.ca-c:hover { color: var(--text); border-color: var(--line-2); }
.ca-stack > * + * { margin-top: 12px; }
.ca-sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.ca-sec-t h2 { margin: 0; font: 800 20px/1.2 var(--sans); color: var(--head); }
.ca-sec-t h2 small { font: 500 13px/1 var(--text-f); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.ca-sec-t a { display: inline-flex; align-items: center; gap: 5px; font: 600 14.5px/1 var(--sans); color: var(--sys); white-space: nowrap; text-decoration: none; }
.ca-sec-t a .ca-ico { width: 16px; height: 16px; }
.ca-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px;
    background: var(--surf); border: 1px solid var(--line-2); font: 600 12.5px/1.3 var(--sans); color: var(--text); white-space: nowrap;
}
.ca-pill .ca-ico { width: 15px; height: 15px; color: var(--ch, var(--sys)); }
.ca-pill--self { --ch: var(--ch-self); } .ca-pill--table { --ch: var(--ch-table); }
.ca-pill--takeaway { --ch: var(--ch-takeaway); } .ca-pill--delivery { --ch: var(--ch-delivery); }
.ca-pill[class*="ca-pill--"] { border-color: color-mix(in srgb, var(--ch) 35%, #fff); background: color-mix(in srgb, var(--ch) 7%, #fff); }
.ca-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ca-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    background: var(--surf); border: 1px solid var(--line-2); font: 600 13.5px/1.2 var(--sans); color: var(--text); text-decoration: none;
}
a.ca-chip:hover { border-color: #b9bcae; color: var(--head); }
.ca-chip .ca-ico { width: 16px; height: 16px; color: var(--sys); }
.ca-chip small { font-weight: 500; color: var(--soft); }
.ca-go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-grad); color: var(--lime-ink); flex: none; box-shadow: 0 0 0 1px rgba(98,180,64,.55); }
.ca-go .ca-ico { width: 20px; height: 20px; stroke-width: 2; }
.ca-chev { width: 18px; height: 18px; color: var(--soft); flex: none; }

/* elenco a righe (il negozio, info, account) */
.ca-lista { overflow: hidden; padding: 0; }
.ca-riga { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ca-riga:first-child { border-top: 0; }
a.ca-riga:hover { background: #fafaf6; color: var(--text); }
.ca-ric { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surf-2); color: var(--sys); flex: none; }
.ca-ric .ca-ico { width: 20px; height: 20px; }
.ca-rt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ca-rt b { font: 600 15.5px/1.3 var(--sans); color: var(--head); }
.ca-rt b .ca-stars { color: var(--star); font-size: 13px; letter-spacing: .5px; margin-left: 4px; }
.ca-rt span { font-size: 13.5px; color: var(--muted); }

/* ─── Home del negozio ───────────────────────────────────────────── */
.ca-home { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.ca-home > div { min-width: 0; }
.ca-home > div > .ca-sec-t:first-child { margin-top: 6px; }
.ca-amain { display: flex; align-items: center; gap: 16px; padding: 18px; }
.ca-aic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #26332b, #18201b); color: var(--lime); flex: none; box-shadow: inset 0 0 0 1px rgba(163,255,126,.22); }
.ca-aic .ca-ico { width: 28px; height: 28px; stroke-width: 1.6; }
.ca-at { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ca-at b { font: 800 19px/1.2 var(--sans); color: var(--head); letter-spacing: -.01em; }
.ca-at span { font-size: 14.5px; color: var(--muted); }
.ca-amain.is-off { opacity: .62; filter: grayscale(1); }
.ca-amain.is-off .ca-at span { color: var(--bad); font-weight: 600; }
.ca-modi { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ca-modo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
.ca-mic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--sys-bg); color: var(--sys); }
.ca-mic .ca-ico { width: 23px; height: 23px; }
.ca-modo b { font: 700 15.5px/1.25 var(--sans); color: var(--head); }
.ca-modo .ca-md { font-size: 13px; line-height: 1.35; color: var(--muted); }
.ca-nocode { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 15px; line-height: 1.4; }
.ca-nocode strong { color: var(--warn-ink); }
/* offerte di oggi */
.ca-ofs { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ca-ofs::-webkit-scrollbar { display: none; }
.ca-of { flex: 0 0 172px; scroll-snap-align: start; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.ca-of-img { height: 110px; background: var(--surf-2) center / cover no-repeat; display: grid; place-items: center; color: var(--soft); }
.ca-of-img .ca-ico { width: 34px; height: 34px; }
.ca-of-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.ca-of-b b { font: 600 14.5px/1.25 var(--sans); color: var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.ca-of-p { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ca-of-p s { color: var(--soft); font-size: 13px; }
.ca-of-p strong { color: var(--promo); font: 800 18px/1 var(--sans); }
.ca-of-badge { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 999px; background: rgba(15,24,16,.86); color: #fff; font: 700 11.5px/1.4 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-of-me { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--sys-bg); color: var(--sys-h); font: 700 11px/1.5 var(--sans); }
.ca-of-ch { align-self: flex-start; padding: 1px 7px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); font-size: 11px; }
.ca-of.is-me { box-shadow: 0 0 0 2px rgba(46,122,31,.35), var(--sh); }
/* pagamenti e impegno */
.ca-box { padding: 16px; }
.ca-box h3 { margin: 0; font: 800 16px/1.3 var(--sans); color: var(--head); display: flex; align-items: center; gap: 8px; }
.ca-box h3 .ca-ico { color: var(--sys); }
.ca-box p { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.ca-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.ca-nums span { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: var(--surf-2); font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.ca-nums b { font: 800 20px/1.1 var(--sans); color: var(--head); }
.ca-box .ca-nota { font-size: 11.5px; color: var(--soft); margin-top: 8px; }
/* il riquadro del marketplace porta il colore del negozio, come il «Venduto da» */
.ca-mkt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ca-mkt .ca-ric { background: var(--s-tint); color: var(--s-ink); }

/* ─── Pulsanti (style.css li colorava col canale: ora lime per tutti) ─ */
.ca-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 0;
    background: var(--lime-grad); color: var(--lime-ink); box-shadow: var(--lime-sh);
    font: 700 15.5px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .15s;
}
.ca-btn:hover, .ca-btn:focus { color: var(--lime-ink); filter: brightness(1.03); }
.ca-btn:active { background: #86df5e; transform: translateY(1px); }
.ca-btn .ca-ico { width: 19px; height: 19px; }
.ca-btn.full { display: flex; width: 100%; }
.ca-btn.secondary, .ca-btn.ghost { background: var(--surf); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.ca-btn.secondary:hover, .ca-btn.ghost:hover { color: var(--head); border-color: #b9bcae; filter: none; }
.ca-btn.secondary:active, .ca-btn.ghost:active { background: var(--surf-2); color: var(--head); }
.ca-btn.danger { background: var(--surf); color: var(--bad); border: 1px solid #ebc3be; box-shadow: none; }
.ca-btn.danger:hover { color: var(--bad); background: #fdf3f2; }
.ca-btn.danger:active { background: #fce9e7; }
.ca-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* filtri e pagine: tasti di servizio, non «avanti» */
.ca-filters .ca-btn, .ca-pager .ca-btn { background: var(--surf); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.ca-filters .ca-btn:active, .ca-pager .ca-btn:active { background: var(--surf-2); color: var(--head); }

/* ─── Card, stati, vuoti ─────────────────────────────────────────── */
.ca-card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; margin-bottom: 12px; }
.ca-card h2 { font: 800 17px/1.25 var(--sans); color: var(--head); }
.ca-card p { color: var(--text); }
/* riquadri di nota (.ca-banner-welcome, .ca-status, .ca-pd-conflict, .ca-cart-dietary, .ca-cart-tablenote, .ca-scan-status, .ca-scan-feedback): forma e colori sono di webapp/css/nmp-nota.css */
.ca-error-card, .ca-empty-state { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.ca-error-card h1 { color: var(--bad); }
.ca-error-card .ca-ico { width: 30px; height: 30px; }
.ca-empty-state h2 { color: var(--head); font-family: var(--sans); }

/* ─── Pagine a schede (tile) e liste di prima ────────────────────── */
.ca-tile { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); --tic-bg: var(--sys-bg); --tic-ac: var(--sys); }
.ca-tile:hover { border-color: var(--line-2); box-shadow: var(--sh); }
.ca-tile .tx .t { color: var(--head); font-family: var(--sans); }
.ca-tile .tx .m { color: var(--muted); }
.ca-tile.primary { background: var(--surf); color: var(--text); border-color: var(--line); box-shadow: var(--sh); }
.ca-tile.primary .ic { background: linear-gradient(160deg, #26332b, #18201b); color: var(--lime); }
.ca-tile.primary .tx .t { color: var(--head); }
.ca-tile.primary .tx .m { color: var(--muted); }
.ca-tile.primary .arr { color: var(--sys); }
.ca-list-item { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.ca-list-item.ca-list-primary { background: var(--surf); color: var(--text); border-color: var(--line); box-shadow: var(--sh); }
.ca-list-item.ca-list-primary .text .title { color: var(--head); }
.ca-list-item.ca-list-primary .text .meta { color: var(--muted); }
.ca-list-item.ca-list-primary .arrow { color: var(--sys); }

/* ─── Campi ──────────────────────────────────────────────────────── */
.ca-order-form .ca-of-row .lab, .ca-order-form .ca-of-row-grid .lab { color: var(--head); font-weight: 700; font-size: 13px; }
.ca-modal-content .ca-of-row .lab { color: var(--head); font-weight: 700; font-size: 13px; }
.ca-order-form .ca-of-row input, .ca-order-form .ca-of-row select, .ca-order-form .ca-of-row textarea,
.ca-order-form .ca-of-row-grid input, .ca-modal-content .ca-of-row input {
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--surf); padding: 11px 13px; color: var(--text);
}
.ca-order-form .ca-of-row input:focus, .ca-order-form .ca-of-row select:focus, .ca-order-form .ca-of-row textarea:focus,
.ca-order-form .ca-of-row-grid input:focus, .ca-modal-content .ca-of-row input:focus, .ca-input-big:focus {
    outline: 2px solid rgba(98,180,64,.7); outline-offset: 0; border-color: rgba(98,180,64,.7); box-shadow: 0 0 0 3px rgba(163,255,126,.22);
}
.ca-input-big { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surf); color: var(--text); }

/* campi con l'etichetta sopra anche fuori dal modulo d'ordine (registrazione, profilo: prima restavano in riga, senza stile) */
.ca-of-row { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.ca-order-form .ca-of-row, .ca-modal-content .ca-of-row { margin-top: 0; }
.ca-of-row .lab { font: 700 13px/1.3 var(--sans); color: var(--head); }
.ca-of-row > input, .ca-of-row > select, .ca-of-row > textarea {
    width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px;
    background: var(--surf); color: var(--text); font: inherit; font-size: 16px;
}
.ca-of-row > input:focus, .ca-of-row > select:focus, .ca-of-row > textarea:focus { outline: 2px solid rgba(98,180,64,.7); outline-offset: 0; box-shadow: 0 0 0 3px rgba(163,255,126,.22); }
.ca-of-row > input[readonly] { background: var(--surf-2); }

/* ─── Finestre ───────────────────────────────────────────────────── */
.ca-modal { background: rgba(10,16,12,.55); }
.ca-modal-content { background: var(--surf); color: var(--text); border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.ca-modal-content h2, .ca-modal-content h3 { color: var(--head); font-family: var(--sans); }
.ca-modal-close { border: 1px solid var(--line-2); background: rgba(255,255,255,.96); color: var(--text); width: 42px; height: 42px; box-shadow: none; }

/* ─── Menu (catalogo) — CHG-1662 ─────────────────────────────────── */
/* il canale: pillola con l'icona in una card chiara; il lettore è il pulsante lime */
.ca-canale { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; }
.ca-canale-t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 0; }
.ca-canale-t > b { font: 800 18px/1.25 var(--sans); color: var(--head); margin-top: 5px; letter-spacing: -.01em; }
.ca-canale-t > span:not(.ca-pill) { font-size: 14px; line-height: 1.4; color: var(--muted); }
/* CHG-2196 (D-277): orari di oggi, minimo e costo di consegna in testa al menu. Una riga che va a capo (a 390 px sono due righe al
   massimo); le voci brevi (minimo, consegna) non si spezzano a metà; «chiuso ora» in rosso del sistema, il resto in colore scuro. */
.ca-canale-t > span.ca-canale-info:not(.ca-pill) { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.ca-canale-info .ca-ci-corta { white-space: nowrap; }
.ca-canale-info .ca-ci-chiuso { color: #b42318; }
.ca-btn.ca-canale-go { flex: none; min-height: 44px; padding: 0 16px; font-size: 15px; margin: 0; }
.ca-scan-cta { margin-bottom: 0; }
/* ricerca e categoria */
.ca-filters { background: transparent; padding: 0; border-radius: 0; margin-bottom: 12px; gap: 8px; }
.ca-filters input[type=search] {
    flex: 1 1 100%; min-height: 48px; padding: 11px 14px 11px 42px; border: 1px solid var(--line-2); border-radius: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366725f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.4'/%3E%3Cline x1='15.4' y1='15.4' x2='20.5' y2='20.5'/%3E%3C/svg%3E") 14px 50% / 19px 19px no-repeat;
    font-size: 16px; color: var(--text);
}
.ca-filters select { flex: 1 1 160px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background-color: #fff; color: var(--text); }
.ca-filters input[type=search]:focus, .ca-filters select:focus { outline: 2px solid rgba(98,180,64,.7); outline-offset: 0; box-shadow: 0 0 0 3px rgba(163,255,126,.22); }
.ca-filters .ca-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
/* categorie e card dei prodotti */
.ca-cat-section { margin-bottom: 8px; }
.ca-cat-section .ca-cat-title { font: 800 18px/1.2 var(--sans); color: var(--head); border: 0; padding: 0; margin: 22px 0 10px; letter-spacing: -.01em; }
.ca-prod-grid { gap: 10px; }
.ca-prod-card {
    background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh);
    padding: 12px; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px;
}
.ca-prod-img { width: 76px; height: 76px; border-radius: 14px; background-color: var(--surf-2); color: var(--soft); }
.ca-prod-img.is-emoji { background-color: var(--surf-2); background-size: 52%; }
.ca-prod-name { font: 600 15.5px/1.3 var(--sans); color: var(--head); }
.ca-prod-desc { font-size: 13px; color: var(--muted); }
.ca-prod-meta { font-size: 11.5px; color: var(--muted); gap: 4px 6px; margin-top: 3px; }
.ca-prod-meta > span:not(.ca-prod-nutriscore) { display: inline-flex; align-items: center; gap: 3px; background: var(--surf-2); border-radius: 6px; padding: 1px 6px; }
.ca-prod-meta .ca-ico { width: 13px; height: 13px; color: var(--sys); }
.ca-prod-meta .ca-prod-all .ca-ico { color: #b45309; }
.ca-prod-actions { gap: 8px; }
.ca-prod-price { font: 800 16px/1.2 var(--sans); color: var(--head); }
.ca-btn.ca-btn-add {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 12px;
    font: 700 24px/1 var(--sans); box-shadow: 0 0 0 1px rgba(98,180,64,.55);
}
/* CHG-1879 (D-239): taglie e colori nell'app — card «Scegli» del master e scelta della variante (variant-picker.js) */
.ca-btn.ca-btn-add.ca-btn-var { width: auto; min-width: 74px; padding: 0 14px; font: 800 14.5px/1 var(--sans); }
.ca-prod-var { display: inline-block; margin: 3px 0 0; padding: 1px 8px; border-radius: 999px; background: var(--sys-bg); color: var(--sys-h); font: 700 11.5px/1.6 var(--sans); }
.ca-pd-variants { margin: 10px 0 6px; }
.ca-var-riga { margin: 0 0 10px; }
.ca-var-tit { font: 600 13px/1.3 var(--sans); color: var(--muted); margin: 0 0 6px; }
.ca-var-tit b { color: var(--head); }
.ca-var-opz { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-var-btn {
    min-width: 48px; min-height: 44px; padding: 6px 14px; border-radius: 12px; cursor: pointer;
    background: var(--surf); color: var(--text); border: 1.5px solid var(--line-2);
    font: 700 14.5px/1.15 var(--sans); display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.ca-var-btn:hover { border-color: #b9bcae; }
.ca-var-btn.scelta { background: var(--head); color: #fff; border-color: var(--head); box-shadow: inset 0 -3px 0 var(--lime); }
.ca-var-btn.spento, .ca-var-btn:disabled { cursor: not-allowed; color: var(--soft); background: var(--surf-2); border-style: dashed; text-decoration: line-through; }
.ca-var-btn small { display: block; font: 700 10.5px/1.2 var(--sans); color: var(--bad); text-decoration: none; margin-top: 2px; }
.ca-var-vuoto { margin: 4px 0; color: var(--muted); font-size: 13.5px; }
.ca-btn.ca-pd-add.ca-pd-add-attesa, .ca-btn.ca-pd-add:disabled { background: var(--surf-2); color: var(--muted); box-shadow: none; cursor: not-allowed; filter: none; }
.ca-recent-prods { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 10px 12px; }
.ca-recent-head h3 { color: var(--muted); }
.ca-recent-nav .rnav { background: var(--surf-2); color: var(--text); border-color: var(--line-2); }
.ca-recent-nav .rnav:active { background: var(--head); color: #fff; }
.ca-recent-item { border-color: var(--line); }
.ca-recent-item .rim { background-color: var(--surf-2); }
.ca-recent-item .rprice { color: var(--head); }
.ca-pager a, .ca-pager span { background: var(--surf); border-color: var(--line-2); color: var(--text); }
.ca-pager a:active { background: var(--surf-2); border-color: #b9bcae; }
.ca-pager span.current { background: var(--head); border-color: var(--head); color: #fff; }
.ca-empty-state .icon .ca-ico { width: 44px; height: 44px; color: var(--soft); }

/* la barra del carrello: parte della cornice (scura), pulsante lime */
.ca-mini-cart {
    left: 50%; right: auto; bottom: 12px; transform: translateX(-50%);
    width: min(760px, 100% - 20px); border-radius: 18px; padding: 8px 8px 8px 18px; gap: 14px;
    background: var(--frame); color: var(--frame-fg);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); z-index: 60;
}
.ca-mini-cart .text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; font-size: 13px; }
.ca-mini-cart .text small { font-size: 13px; color: var(--frame-mut); }
.ca-mini-cart .text strong { font: 800 19px/1.2 var(--sans); color: #fff; }
.ca-mini-cart .ca-btn { min-height: 46px; padding: 0 18px; font-size: 15px; font-weight: 700; background: var(--lime-grad); color: var(--lime-ink); white-space: nowrap; }
.ca-mini-cart .ca-btn:active { background: #86df5e; }

/* la scheda del prodotto: foglio dal basso al telefono, finestra a due colonne al computer */
.ca-modal-content.ca-product-detail { max-width: 880px; border-radius: 24px; padding: 0; text-align: left; }
.ca-pd-body { padding: 16px 18px 8px; }
.ca-pd-img { background-color: var(--surf-2); border-radius: 18px; height: 220px; color: var(--soft); }
.ca-pd-img.is-emoji { background-color: var(--surf-2); }
.ca-prod-thumb { border-color: var(--line); border-radius: 10px; }
.ca-prod-thumb.is-active { border-color: var(--sys); }
.ca-pd-name { font: 800 23px/1.2 var(--sans); color: var(--head); margin: 4px 48px 6px 0; letter-spacing: -.02em; }
.ca-pd-cat { background: none; color: var(--sys); padding: 0; font: 700 12px/1.3 var(--sans); letter-spacing: .14em; margin-bottom: 10px; }
.ca-pd-desc { color: var(--text); font-size: 15px; }
.ca-pd-meta span { background: var(--surf-2); color: var(--text); }
.ca-pd-meta .ca-ico { width: 14px; height: 14px; color: var(--sys); }
.ca-pd-allergens { font-size: 14px; }   /* il riquadro (attenzione) e' di webapp/css/nmp-nota.css */
.ca-pd-extras { border-top-color: var(--line-2); }
.ca-pd-extras .row .k { color: var(--muted); }
.ca-pd-extras .row .v { color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.ca-pd-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); gap: 14px; background: var(--surf); }
.ca-pd-price { font: 800 26px/1 var(--sans); color: var(--head); letter-spacing: -.02em; }

/* ─── Carrello, tavolo, ordine — CHG-1663/1664 ───────────────────── */
.ca-phead { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ca-phead .ca-h1 { margin: 0; }
.ca-phead .ca-lead { margin: 0; }
.ca-phead-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ca-lnk { display: inline-flex; align-items: center; gap: 7px; font: 600 14.5px/1.2 var(--sans); color: var(--sys); text-decoration: none; }
.ca-lnk:hover { color: var(--sys-h); text-decoration: underline; text-underline-offset: 3px; }
.ca-lnk .ca-ico { width: 18px; height: 18px; }
.ca-cart-grid > * { min-width: 0; }
.ca-cart-grid > .ca-status { margin: 0 0 12px; }
.ca-aiuto { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
/* l'account NoMorePaper nel carrello: un riquadro chiaro (prima uno era scuro, #1a2a1a) */
.ca-acc { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surf-2); color: var(--text); font-size: 14px; line-height: 1.45; text-align: left; }
.ca-acc > .ca-ico { color: var(--sys); margin-top: 1px; }
.ca-acc a { color: var(--sys); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ca-acc strong { color: var(--head); }
.ca-ok-ic { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-grad); color: var(--lime-ink); box-shadow: var(--lime-sh); }
.ca-ok-ic .ca-ico { width: 32px; height: 32px; stroke-width: 2.2; }
.ca-cart-dietary .flags .flag { border-color: var(--warn-line); color: var(--warn-ink); }
.ca-cart-dietary .edit { color: var(--warn-ink); }
.ca-cart-tablenote .txt { color: var(--text); }
.ca-cart-row .info .item-note { color: var(--muted); }
.ca-cart-row .info .item-note .note-edit, .ca-cart-row .info .item-note .note-add { color: var(--sys); }
.ca-cart-row .info .item-note .note-edit:hover, .ca-cart-row .info .item-note .note-add:hover { background: var(--sys-bg); }
.ca-table-page .ca-section-title { display: flex; align-items: center; gap: 8px; font: 800 16px/1.3 var(--sans); color: var(--head); }
.ca-table-page .ca-section-title .ca-ico { color: var(--sys); }
.ca-tbl-num { color: var(--head); }
.ca-tbl-session { background: var(--surf-2); }
.ca-tbl-session-h, .ca-tbl-stats strong { color: var(--head); }
.ca-tbl-empty { background: var(--surf-2); }
.ca-scan-controls .ca-btn { min-height: 42px; }
.ca-conto .ca-rt b { font-size: 16px; }

/* ─── Recensioni e pagine minori — CHG-1665 ──────────────────────── */
.ca-rev { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: center; padding: 20px 22px; margin-bottom: 12px; }
.ca-rev-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.ca-rev-avg b { font: 800 42px/1 var(--sans); color: var(--head); letter-spacing: -.03em; }
.ca-rev-avg b small { font-size: 16px; color: var(--soft); font-weight: 600; }
.ca-rev-avg .ca-review-stars { font-size: 18px; }
.ca-rev-avg > span:last-child { font-size: 13.5px; color: var(--muted); }
.ca-rev-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.ca-rb { display: grid; grid-template-columns: minmax(96px, 150px) 1fr 30px; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.ca-rb i { height: 8px; border-radius: 6px; background: var(--surf-2); overflow: hidden; }
.ca-rb em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6dbf4a, #a3ff7e); }
.ca-rb b { color: var(--head); text-align: right; }
.ca-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ca-review-card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.ca-review-stars, .ca-review-card .ca-review-stars, .ca-review-aspect-stars { color: var(--star); }
.ca-review-author { color: var(--head); font: 700 15.5px/1.3 var(--sans); }
.ca-review-channel { background: var(--surf); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; font: 600 12px/1.4 var(--sans); color: var(--muted); }
.ca-review-text { color: var(--text); }
.ca-review-aspects { border-top: 1px dashed var(--line-2); }
.ca-reviews-empty { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.ca-reviews-empty-icon { color: var(--star); }
.ca-reviews-empty-icon .ca-ico { width: 44px; height: 44px; }
.ca-reviews-empty h2 { color: var(--head); }
.ca-scan-viewfinder { border-radius: 18px; }

/* ─── Telefono ───────────────────────────────────────────────────── */
@media (min-width: 1000px) {
    .ca-cart-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
    .ca-cart-grid > * { grid-column: 1; }
    .ca-cart-grid > #ca-cart-summary { grid-column: 2; grid-row: 1 / span 8; }
}
@media (min-width: 761px) {
    .ca-phead { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
    .ca-phead .ca-lead { flex-basis: 100%; }
    .ca-filters input[type=search] { flex: 1 1 360px; }
    .ca-main--wide .ca-prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ca-product-detail .ca-pd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-content: start; padding: 24px 24px 8px; }
    .ca-product-detail .ca-pd-body > * { grid-column: 2; min-width: 0; }
    .ca-product-detail .ca-prod-gallery { grid-column: 1; grid-row: 1 / span 12; align-self: start; margin: 0; }
    .ca-product-detail .ca-pd-img { height: auto; aspect-ratio: 1 / 1; }
    .ca-product-detail .ca-pd-cat { justify-self: start; }
    .ca-product-detail .ca-pd-name { margin-top: 6px; }
}
@media (max-width: 760px) {
    #ca-product-modal { align-items: flex-end; padding: 0; }
    .ca-modal-content.ca-product-detail { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; }
    .ca-pd-img { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
    .ca-prod-card { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 10px; }
    .ca-prod-img { width: 68px; height: 68px; }
    .ca-prod-name { font-size: 15px; }
    .ca-canale { padding: 12px 14px; gap: 12px; }
    .ca-canale-t > b { font-size: 16.5px; }
    .ca-canale-t > span:not(.ca-pill) { font-size: 13.5px; }
    .ca-mini-cart { width: calc(100% - 20px); bottom: 10px; padding: 8px 8px 8px 16px; }
    .ca-mini-cart .ca-btn { padding: 0 14px; }
}
@media (max-width: 1000px) {
    .ca-home { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .ca-top-in { min-height: 62px; gap: 10px; }
    .ca-slogo { height: 42px; min-width: 42px; max-width: 104px; padding: 3px 6px; }
    .ca-slogo img { max-height: 34px; max-width: 92px; }
    .ca-slogo.is-ini { width: 42px; font-size: 19px; }
    .ca-st-name { font-size: 16px; }
    .ca-st-sub { font-size: 12.5px; }
    .ca-ib { width: 42px; height: 42px; }
    .ca-main { padding-top: 14px; }
    .ca-ins { min-height: 236px; }
    .ca-ins-veil { background: linear-gradient(0deg, var(--s-v1) 0%, var(--s-v2) 52%, var(--s-v3) 100%); }
    .ca-ins-in { padding: 30px 0 26px; }
    .ca-ins h1 { font-size: 31px; }
    .ca-ins-claim { font-size: 16px; }
    .ca-ins-sub { font-size: 14.5px; }
    .ca-amain { padding: 14px; gap: 14px; }
    .ca-aic { width: 50px; height: 50px; border-radius: 14px; }
    .ca-at b { font-size: 18px; }
    .ca-at span { font-size: 14px; }
    .ca-modo { align-items: center; text-align: center; padding: 12px 8px; gap: 8px; }
    .ca-modo .ca-md { display: none; }
    .ca-modo b { font-size: 14px; }
    .ca-sec-t { margin-top: 24px; }
    .ca-foot-in { flex-direction: column; align-items: flex-start; }
}

/* ─── CHG-2221 (Luke 9/11): senza foto, l'icona DISEGNATA della categoria al posto dell'emoji Twemoji ───────────
   Card del catalogo, «visti di recente» e scheda prodotto: stesso set del sito (dbsrv/nmp_category_icon.php), circa metà del
   riquadro, colore tenue. Le regole .is-emoji qui sopra restano per i vecchi dati salvati nel telefono. */
.nmp-cico { flex: none; }
.ca-prod-img .nmp-cico { width: 58%; height: auto; aspect-ratio: 1 / 1; color: var(--soft); opacity: .6; }
.rim .nmp-cico { width: 58%; height: auto; aspect-ratio: 1 / 1; color: var(--soft); opacity: .6; }
.ca-pd-img .nmp-cico { width: 96px; height: 96px; color: var(--soft); opacity: .55; }
