:root {
    --color-primary: #e63329;
    --color-primary-dark: #c22318;
    --color-accent: #f59e42;
    --color-yellow: #ffd23f;
    --color-bg: #fbeedf;
    --color-bg-soft: #fdf6ec;
    --color-surface: #ffffff;
    --dish-pink: #e88c8c;
    --dish-orange: #f0913a;
    --dish-green: #7cc24e;
    --dish-purple: #8a7be0;
    --color-text: #2b2118;
    --color-text-muted: #7a6f63;
    --border-soft: rgba(43, 33, 24, 0.12);
    --shadow-card: 0 10px 30px rgba(43, 33, 24, 0.08);
    --radius-card: 20px;
    --radius-xl: 40px;
    --radius-pill: 999px;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container-max: 1180px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Testata (come il sito: css/style.css) ---------- */

.shop-container {
    width: min(100% - 32px, var(--container-max));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    border-radius: var(--radius-pill);
    padding: 10px 14px;
    background: var(--color-text);
    color: var(--color-surface);
    font-size: 14px;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Sotto il carrello a comparsa (z-index 90/100), sopra il menu mobile. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: var(--color-bg);
}

/* Avviso di chiusura: vendite online spente da admin. Non sticky, per non coprire header e carrello. */
.shop-closed-banner {
    border-bottom: 3px solid var(--color-primary-dark);
    background: var(--color-yellow);
    color: var(--color-text);
}

.shop-closed-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-block: 16px;
}

.shop-closed-inner svg {
    flex: none;
    margin-top: 2px;
    color: var(--color-primary-dark);
}

.shop-closed-inner p {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.shop-closed-inner strong {
    font-size: 17px;
    font-weight: 800;
}

.nav-wrap {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-surface);
    box-shadow: 0 16px 34px rgba(230, 51, 41, 0.24);
}

.brand-icon svg {
    width: 27px;
    height: 27px;
}

.brand-icon path:first-child {
    fill: var(--color-surface);
}

.brand-icon path:nth-child(2) {
    fill: none;
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-width: 2;
}

.brand-icon circle {
    fill: var(--color-primary);
}

.brand-name {
    display: grid;
    gap: 4px;
    font-size: 18px;
    white-space: nowrap;
}

.brand-name small {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.main-nav {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-cart-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
    padding: 0 12px 0 14px;
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.shop-cart-link:hover,
.shop-cart-link[aria-current="page"] {
    color: var(--color-primary);
}

/* Da smartphone la parola resta solo per gli screen reader: icona e contatore bastano. */
.shop-cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.shop-cart-link [data-cart-count] {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-surface);
    font-size: 12px;
}

.shop-cart-link [data-cart-count].is-bumping {
    animation: badge-bump 0.35s ease;
}

.menu-toggle {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--color-text);
    transition: opacity 180ms ease, transform 180ms ease;
}

.menu-open .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: grid;
    place-items: center;
    padding: 96px 24px 48px;
    background: var(--color-bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu nav {
    display: grid;
    width: min(100%, 360px);
    gap: 12px;
}

.mobile-menu a {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.mobile-menu a::after {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 34px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    content: "";
    opacity: 0;
    transform: translateX(-50%) scaleX(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-menu a[aria-current="page"] {
    border-color: rgba(230, 51, 41, 0.2);
    color: var(--color-primary);
}

.mobile-menu a[aria-current="page"]::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

@keyframes badge-bump {
    0% { transform: scale(1); }
    45% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.shop-page {
    width: min(100% - 32px, var(--container-max));
    margin: 0 auto;
    padding: 10px 0 64px;
}

/* ---------- Hero ---------- */

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.txt-orange {
    color: var(--color-accent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.button-primary {
    background: var(--color-primary);
    color: var(--color-surface);
}

.button-secondary {
    background: var(--color-accent);
    color: var(--color-text);
}

.button-accent {
    background: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 16px 34px rgba(245, 158, 66, 0.24);
}

.txt-red {
    color: var(--color-primary);
}

/* Hero dello Store come quello del sito (css/style.css): titolo serif multicolore a sinistra,
   a destra le salse in cerchio che galleggiano sul disco giallo, con orb e badge. */
.store-hero {
    position: relative;
    padding: 30px 0 24px;
}

.hero-grid {
    display: grid;
    gap: 28px;
}

.hero-copy h1 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.12;
}

.hero-text {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.hero-actions .button {
    min-height: 50px;
}

.hero-floating-stage {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
    isolation: isolate;
}

.hero-floating-stage::before {
    position: absolute;
    z-index: -3;
    width: min(100%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 48% 48%, rgba(255, 210, 63, 0.58) 0 34%, rgba(245, 158, 66, 0.18) 35% 56%, transparent 57%),
        radial-gradient(circle at 18% 24%, rgba(230, 51, 41, 0.12), transparent 44%);
    content: "";
}

.store-hero-sauces {
    position: relative;
    width: 250px;
    height: 250px;
}

.store-hero-sauce {
    position: absolute;
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    overflow: hidden;
    border: 6px solid var(--color-surface);
    border-radius: 50%;
    color: var(--color-surface);
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 700;
    box-shadow: var(--shadow-card);
    animation: sauceFloat 5.6s ease-in-out infinite;
}

.store-hero-sauce img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-hero-sauce--pink { top: 0; left: 4px; background: var(--dish-pink); }
.store-hero-sauce--orange { top: 18px; right: 0; background: var(--dish-orange); animation-delay: -1.4s; }
.store-hero-sauce--green { bottom: 10px; left: 18px; background: var(--dish-green); animation-delay: -2.8s; }
.store-hero-sauce--purple { right: 10px; bottom: 0; background: var(--dish-purple); animation-delay: -4.2s; }

.hero-float-orb {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
}

.hero-float-orb-red { top: 10%; left: 8%; width: 18px; height: 18px; background: var(--color-primary); }
.hero-float-orb-yellow { top: 16%; right: 8%; width: 44px; height: 44px; background: var(--color-yellow); }
.hero-float-orb-orange { right: 16%; bottom: 12%; width: 24px; height: 24px; background: var(--color-accent); }

.hero-float-badge {
    position: absolute;
    z-index: 4;
    display: grid;
    min-width: 112px;
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

.hero-float-badge strong,
.hero-float-badge span {
    display: block;
    line-height: 1.12;
}

.hero-float-badge strong {
    font-size: 15px;
    font-weight: 800;
}

.hero-float-badge span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 800;
}

.hero-float-badge-halal { top: 0; right: 0; background: var(--color-yellow); }
.hero-float-badge-sauce { bottom: 64px; left: 0; transform: rotate(-4deg); }
.hero-float-badge-delivery { right: 0; bottom: 8px; min-width: 140px; transform: rotate(3deg); }

@keyframes sauceFloat {
    0%,
    100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

/* ---------- Info strip ---------- */

.shop-info-strip {
    display: grid;
    gap: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    margin: 6px auto 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.info-item + .info-item {
    border-top: 1px solid var(--border-soft);
}

.info-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-surface);
}

.info-icon--orange {
    background: var(--color-accent);
    color: var(--color-text);
}

.info-icon--green {
    background: var(--dish-green);
    color: var(--color-text);
}

.info-item div {
    display: grid;
    gap: 2px;
}

.info-item strong {
    font-size: 15px;
    line-height: 1.25;
}

.info-item span:last-child {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ---------- Catalogo salse ---------- */

.store-catalog {
    padding: 24px 0 72px;
    /* Arrivando da un link #salse-shop il titolo resta sotto la testata fissa. */
    scroll-margin-top: 32px;
}

.sauce-section-head {
    max-width: 620px;
    margin: 0 auto 22px;
    text-align: center;
}

.sauce-section-head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.16;
}

.sauce-section-head h2::after {
    display: block;
    width: 58px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    content: "";
}

.sauce-section-head p:last-child {
    margin: 14px auto 0;
    color: var(--color-text-muted);
}

/* Contenitore bianco e card colorate come il carosello salse del sito: il cerchio della
   salsa sborda sopra la card, quindi la griglia lascia spazio in alto e tra le righe. */
.dish-carousel {
    border-radius: var(--radius-xl);
    padding: 26px 16px 22px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.sauce-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 96px 18px;
    padding-top: 74px;
}

/* Righe incomplete (es. 5 salse) centrate: per questo flex e non grid. */
.sauce-grid > .dish-card {
    flex: 0 1 100%;
}

.dish-card {
    --dish-color: var(--dish-pink);
    position: relative;
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-card);
    padding: 96px 18px 20px;
    background: var(--dish-color);
    color: var(--color-surface);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.dish-card:hover,
.dish-card:focus-visible {
    box-shadow: 0 18px 46px rgba(43, 33, 24, 0.14);
    transform: translateY(-3px);
}

.dish-card-pink { --dish-color: var(--dish-pink); }
.dish-card-orange { --dish-color: var(--dish-orange); }
.dish-card-green { --dish-color: var(--dish-green); }
.dish-card-purple { --dish-color: var(--dish-purple); }

.dish-image {
    position: absolute;
    top: -70px;
    left: 50%;
    width: 160px;
    height: 160px;
    overflow: hidden;
    border: 5px solid var(--color-surface);
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    transform: translateX(-50%);
}

.dish-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.dish-image-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, var(--color-bg-soft), var(--color-surface));
}

.dish-image-placeholder span {
    color: var(--dish-color);
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.dish-kicker {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dish-card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.dish-types {
    font-size: 13px;
    font-weight: 700;
}

.dish-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.dish-price {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
}

.dish-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: var(--radius-pill);
    padding: 0 20px;
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 800;
}

.dish-cta::after {
    margin-left: 8px;
    color: var(--color-primary);
    content: "→";
}

.sauce-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.sauce-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    color: var(--color-text);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
}

.variant-list {
    display: grid;
    gap: 12px;
    width: 100%;
}

.variant-group {
    display: grid;
    gap: 6px;
}

.variant-group-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.variant-sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.variant-pill {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 44px;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
    padding: 6px 8px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.variant-pill:hover {
    border-color: var(--dish-color, var(--color-primary));
}

.variant-pill small {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
}

.variant-pill[data-available="0"] {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.variant-pill.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-surface);
}

.variant-pill.is-active small {
    color: var(--color-surface);
}

.dish-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: var(--color-surface);
    padding: 12px 18px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.dish-order-button.is-added {
    background: var(--color-accent);
    color: var(--color-text);
}

.dish-order-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ---------- Carrello ---------- */

.cart-hero {
    max-width: 760px;
    padding: 26px 0 20px;
}

.cart-hero h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.12;
}

.cart-hero p:last-child {
    margin: 12px 0 0;
    color: var(--color-text-muted);
}

.cart-layout {
    display: grid;
    gap: 18px;
}

.cart-items-panel,
.cart-summary {
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.cart-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 26px 8px;
    text-align: center;
}

.cart-empty h2 {
    margin: 0;
    font-size: 22px;
}

.cart-empty p {
    margin: 0;
    color: var(--color-text-muted);
}

.cart-empty .button {
    margin-top: 10px;
}

.cart-items {
    display: grid;
    gap: 12px;
}

/* Mobile: miniatura + nome sopra, quantita + prezzo sotto */
.cart-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 14px;
    background: var(--color-bg-soft);
}

.cart-thumb {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 4px solid var(--color-surface);
    border-radius: 50%;
    background: var(--thumb-color, var(--dish-pink));
    color: var(--color-surface);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.cart-thumb--photo {
    overflow: hidden;
    background: var(--color-surface);
}

.cart-thumb--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-body {
    grid-column: 2 / -1;
    min-width: 0;
}

.cart-item-body h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.cart-item-body p {
    margin: 2px 0 4px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.cart-item-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.cart-item-status-waiting {
    background: var(--color-surface);
    color: var(--color-primary);
}

.cart-item-controls {
    grid-column: 1 / 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item-controls button,
.cart-actions-row button {
    min-height: 40px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.cart-item-controls .cart-item-remove {
    display: inline-grid;
    width: 40px;
    padding: 0;
    place-items: center;
    color: var(--color-text-muted);
}

.cart-item-controls .cart-item-remove:hover {
    color: var(--color-primary);
}

.cart-item-controls strong {
    min-width: 26px;
    text-align: center;
}

.cart-item-price {
    grid-column: 3;
    font-size: 18px;
    font-weight: 900;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 0;
}

.summary-row span {
    color: var(--color-text-muted);
}

.summary-row-total {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary-row-total strong {
    font-size: 24px;
}

.cart-status {
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.cart-checkout {
    width: 100%;
    margin-top: 14px;
    border: 0;
    cursor: pointer;
}

.cart-checkout:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.cart-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cart-summary.is-muted {
    opacity: 0.78;
}

/* Scelta consegna: opzioni a card, il radio resta nativo ma prende il colore del brand */

.fulfillment-choice {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    border: 0;
    padding: 0;
    min-width: 0;
}

.fulfillment-choice legend {
    margin-bottom: 10px;
    padding: 0;
}

.fulfillment-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--color-bg-soft);
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fulfillment-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary);
}

.fulfillment-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fulfillment-unavailable {
    color: var(--color-primary-dark) !important;
    font-weight: 600;
}

.fulfillment-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.fulfillment-option:has(input:focus-visible) {
    outline: 3px solid rgba(230, 51, 41, 0.35);
    outline-offset: 2px;
}

.fulfillment-option-body {
    display: grid;
    min-width: 0;
}

.fulfillment-option-body strong {
    font-size: 15px;
    line-height: 1.25;
}

.fulfillment-option-body small {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.fulfillment-option-price {
    font-weight: 800;
    white-space: nowrap;
}

.cart-secure-note {
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}

.cart-actions-row {
    justify-content: center;
}

.cart-actions-row button {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* ---------- Pagine esito ---------- */

.result-page {
    padding-top: 26px;
}

.result-hero {
    display: grid;
    gap: 22px;
    align-items: stretch;
    padding: 24px 0 66px;
}

.result-copy {
    display: grid;
    align-content: center;
    min-height: 330px;
}

.result-copy h1 {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1.12;
}

.result-copy p:not(.eyebrow) {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--color-text-muted);
    font-size: 16px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.order-receipt {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.order-receipt::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: var(--color-yellow);
    opacity: 0.85;
}

.order-state-badge,
.receipt-code,
.receipt-summary,
.receipt-items,
.receipt-note {
    position: relative;
    z-index: 1;
}

.receipt-state {
    position: relative;
    z-index: 1;
    display: grid;
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    place-items: center;
    border: 6px solid var(--color-surface);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.receipt-state svg {
    display: block;
}

.receipt-state--success {
    background: var(--dish-green);
}

.receipt-state--warning {
    background: var(--color-accent);
    color: var(--color-text);
}

.receipt-state--pending,
.receipt-state--neutral {
    background: var(--color-primary);
}

.order-state-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    min-height: 36px;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
}

.order-state-badge--success {
    background: rgba(124, 194, 78, 0.18);
    color: #2f6d1f;
}

.order-state-badge--pending,
.order-state-badge--neutral {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.order-state-badge--warning {
    background: rgba(245, 158, 66, 0.22);
    color: #8a3f00;
}

.receipt-code {
    display: grid;
    gap: 4px;
    margin: 26px 0 18px;
}

.receipt-code span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.receipt-code strong {
    overflow-wrap: anywhere;
    color: var(--color-text);
    font-size: 24px;
    line-height: 1.12;
}

.receipt-pickup {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    border-radius: var(--radius-card);
    background: var(--color-bg-soft);
    margin: 18px 0 0;
    padding: 14px 16px;
}

.receipt-pickup > span {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.receipt-pickup strong {
    font-size: 18px;
}

.receipt-pickup small {
    color: var(--color-text-muted);
}

.receipt-pickup ul {
    display: grid;
    gap: 2px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.receipt-summary {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    margin: 18px 0;
    padding: 4px 0;
}

.receipt-items {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.receipt-items li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: var(--radius-card);
    background: var(--color-bg-soft);
    padding: 12px;
}

.receipt-items span {
    display: grid;
    gap: 2px;
    font-weight: 800;
}

.receipt-items small {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.receipt-items strong {
    white-space: nowrap;
    font-size: 14px;
}

.receipt-note {
    margin: 18px 0 0;
    color: var(--color-text-muted);
}

.receipt-note a {
    color: var(--color-primary);
    font-weight: 900;
}

.state-page {
    width: min(100% - 32px, 760px);
    margin: 52px auto;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.state-page .button {
    margin-top: 18px;
}

/* ---------- Card della lista: link alla pagina salsa ---------- */

.sauce-link-card {
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sauce-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(43, 33, 24, 0.14);
}

.sauce-link-card:focus-visible {
    outline: 3px solid rgba(230, 51, 41, 0.45);
    outline-offset: 4px;
}

.dish-photo {
    padding: 0;
    object-fit: cover;
    background: var(--color-surface);
}

.sauce-card-types {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.dish-price-from {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.sauce-link-card .dish-price-row {
    margin: 0;
}

/* ---------- Pagina salsa ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 18px 0 10px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-primary);
    font-weight: 600;
}

.product-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 12px;
    justify-items: center;
}

/* Foto a misura fissa: quadrata, al massimo 460px e mai piu alta dello schermo disponibile.
   height: auto vince sull'attributo height="800" del tag, che altrimenti allungava le foto verticali. */
.product-main-image,
.product-placeholder {
    width: min(100%, 460px, calc(100vh - 220px));
    min-width: min(100%, 260px);
    height: auto;
    aspect-ratio: 1;
    border: 8px solid var(--color-surface);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.product-placeholder {
    display: grid;
    place-items: center;
    background: var(--color-yellow);
}

.product-placeholder span {
    display: grid;
    width: 58%;
    aspect-ratio: 1;
    place-items: center;
    border: 8px solid var(--color-surface);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-surface);
    font-family: var(--font-serif);
    font-size: 96px;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}

.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border: 3px solid transparent;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    background: var(--color-surface);
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.is-active {
    border-color: var(--color-primary);
}

.product-buy {
    display: grid;
    gap: 16px;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.product-buy .eyebrow {
    margin: 0;
}

.product-buy h1 {
    margin: -8px 0 0;
    font-family: var(--font-serif);
    font-size: 34px;
    line-height: 1.12;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tags span {
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
}

.product-description {
    margin: 0;
    color: var(--color-text-muted);
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.product-price strong {
    font-size: 32px;
    line-height: 1;
}

.product-price span {
    color: var(--color-text-muted);
    font-weight: 600;
}

.product-option {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
    min-width: 0;
}

.product-option legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.type-switch {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
    padding: 5px;
}

.type-pill {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 700;
    cursor: pointer;
}

.type-pill.is-active {
    background: var(--color-primary);
    color: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.product-sizes {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

.product-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
}

.qty-stepper button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.qty-stepper output {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
}

.product-delivery {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.product-info {
    padding: 28px 0 8px;
}

.product-info-grid {
    display: grid;
    gap: 16px;
}

.info-card {
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 20px 22px;
    box-shadow: var(--shadow-card);
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.info-card h2 small {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.info-card p {
    margin: 0 0 8px;
    color: var(--color-text-muted);
}

.info-pending {
    border-radius: 14px;
    background: var(--color-bg-soft);
    padding: 10px 14px;
    font-style: italic;
}

.allergen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.allergen-chips li {
    border-radius: var(--radius-pill);
    background: rgba(230, 51, 41, 0.12);
    padding: 6px 12px;
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.info-traces {
    font-size: 14px;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.nutrition-table th,
.nutrition-table td {
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 0;
    text-align: left;
    font-weight: 600;
}

.nutrition-table td {
    text-align: right;
    white-space: nowrap;
}

.nutrition-table tr.is-sub th {
    padding-left: 14px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.nutrition-table tr:last-child th,
.nutrition-table tr:last-child td {
    border-bottom: 0;
}

/* ---------- I miei ordini ---------- */

.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    display: grid;
    gap: 16px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.order-card-head .order-state-badge {
    margin: 0;
}

.order-card-date {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.order-card-code {
    margin: 2px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-steps li {
    display: grid;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.order-steps li span {
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--border-soft);
}

.order-steps li.is-done {
    color: var(--color-text);
}

.order-steps li.is-done span {
    background: var(--dish-green);
}

.order-card-items {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-card-items li {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}

.order-card-items span,
.order-card-foot span {
    color: var(--color-text-muted);
    font-size: 14px;
}

.order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
}

.order-card-foot strong {
    font-size: 20px;
}

.order-card-tracking {
    margin: 0;
    border-radius: 14px;
    background: var(--color-bg-soft);
    padding: 10px 14px;
    font-size: 14px;
}

.order-card-tracking a,
.orders-page .alert-note a {
    color: var(--color-primary);
    font-weight: 700;
}

.orders-request {
    max-width: none;
}

.orders-request-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.orders-request-form label {
    font-weight: 700;
}

.orders-request-form input[type="email"] {
    min-height: 48px;
    border: 2px solid var(--border-soft);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
}

.orders-request-form input[type="email"]:focus {
    border-color: var(--color-primary);
    outline: none;
}

.orders-request-form .button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.orders-request-form input[type="email"],
.orders-request-form input[type="text"]:not(.orders-code-input) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 2px solid var(--border-soft);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
}

.orders-request-form input[type="text"]:not(.orders-code-input):focus {
    border-color: var(--color-primary);
    outline: none;
}

.withdrawal-summary {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 14px;
    margin: 0;
}

.withdrawal-summary dt {
    color: var(--color-text-muted);
    font-weight: 700;
}

.withdrawal-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.withdrawal-note,
.order-withdrawal {
    margin: 16px 0 0;
    color: var(--color-text-muted);
}

.withdrawal-note a {
    color: var(--color-primary);
    font-weight: 700;
}

.order-withdrawal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

/* Accesso con codice: campo grande e spaziato, facile da copiare dal telefono. */
.orders-request-form .orders-code-input {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    border: 2px solid var(--border-soft);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-align: center;
}

.orders-request-form .orders-code-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.orders-request-form p {
    margin: 0;
}

.orders-request-alt {
    margin: 14px 0 0;
    font-size: 14px;
}

.orders-request-alt a {
    color: var(--color-primary);
    font-weight: 700;
}

.orders-logout {
    margin-top: 16px;
}

.orders-logout .button {
    border: 0;
    cursor: pointer;
}

.alert-note {
    max-width: 760px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(245, 158, 66, 0.2);
    padding: 12px 16px;
    font-weight: 600;
}

.alert-note--ok {
    background: rgba(124, 194, 78, 0.18);
    color: #2f6d1f;
}

.orders-empty {
    display: grid;
    justify-items: start;
    gap: 12px;
}

/* ---------- Footer (come il sito: css/style.css) ---------- */

.site-footer {
    padding: 46px 0 40px;
    background: var(--color-bg-soft);
}

.footer-main {
    display: grid;
    gap: 22px;
}

.footer-brand-block {
    display: grid;
    max-width: 390px;
    gap: 12px;
}

.footer-brand-block p {
    margin: 0;
    color: var(--color-text-muted);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 2px;
}

.footer-social {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 8px 13px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 800;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.footer-social--instagram {
    border-color: rgba(225, 48, 108, 0.26);
    color: #e1306c;
}

.footer-social--tiktok {
    border-color: rgba(17, 17, 17, 0.16);
    color: #111111;
}

.social-icon--instagram {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.social-icon--tiktok {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tiktok-accent-cyan,
.tiktok-accent-pink,
.tiktok-main {
    fill: none;
    stroke-width: 2.4;
}

.tiktok-accent-cyan {
    stroke: #25f4ee;
    transform: translate(-1px, 1px);
}

.tiktok-accent-pink {
    stroke: #fe2c55;
    transform: translate(1px, -1px);
}

.tiktok-main {
    stroke: currentColor;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 2px;
}

.footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--color-text-muted);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-social:hover {
    color: var(--color-primary);
}

.site-footer h3 {
    margin: 0 0 2px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-bottom {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    color: var(--color-text-muted);
    font-size: 12px;
}

/* ---------- Carrello a comparsa ---------- */
/* Mobile: pannello che sale dal basso. Da 768px: pannello laterale a destra. */

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(43, 33, 24, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 28px 28px 0 0;
    background: var(--color-surface);
    box-shadow: 0 -12px 40px rgba(43, 33, 24, 0.18);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.cart-drawer.is-open {
    transform: none;
    visibility: visible;
}

body.cart-drawer-open {
    overflow: hidden;
}

.cart-drawer-handle {
    width: 44px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: var(--radius-pill);
    background: var(--border-soft);
}

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px 12px;
}

.cart-drawer-head .eyebrow {
    margin-bottom: 2px;
}

.cart-drawer-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.cart-drawer-head h2 span {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 600;
}

.cart-drawer-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-text);
    cursor: pointer;
}

.cart-drawer-close:hover {
    color: var(--color-primary);
}

.cart-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px 12px;
}

.cart-drawer-added {
    margin: 0 0 12px;
    border-radius: var(--radius-card);
    background: rgba(124, 194, 78, 0.16);
    padding: 10px 14px;
    color: #2f6d1f;
    font-size: 14px;
    font-weight: 700;
}

.cart-drawer-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 0;
    color: var(--color-text-muted);
    text-align: center;
}

.cart-drawer-empty strong {
    color: var(--color-text);
    font-size: 18px;
}

.cart-drawer-empty p {
    max-width: 260px;
    margin: 0;
}

.cart-drawer-empty-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 5px solid var(--color-surface);
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

.cart-drawer-browse {
    width: auto;
    min-width: 200px;
    margin-top: 6px;
}

/* Nel pannello le righe restano sempre a due livelli, anche su schermi larghi */
.cart-drawer .cart-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.cart-drawer .cart-item-body {
    grid-column: 2 / -1;
}

.cart-drawer .cart-item-controls {
    grid-column: 1 / 3;
}

.cart-drawer .cart-item-price {
    grid-column: 3;
    text-align: right;
}

.cart-item.is-highlight {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.cart-drawer-foot {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--border-soft);
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
}

.cart-drawer-foot .summary-row {
    padding-top: 0;
}

.cart-drawer-note {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
}

.cart-drawer-cta {
    width: 100%;
}

.cart-drawer-continue {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- Pagine legali (privacy, cookie, termini) ---------- */
.legal-page {
    padding: 34px 0 72px;
}

.legal-wrap {
    max-width: 860px;
}

.legal-head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
}

.legal-head p:not(.eyebrow) {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 16px;
}

.legal-head .legal-updated {
    font-size: 13px;
}

.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.legal-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}

.legal-tabs a[aria-current="page"] {
    background: var(--color-primary);
    color: var(--color-surface);
}

.legal-draft {
    margin: 22px 0 0;
    border-left: 4px solid var(--color-yellow);
    border-radius: 14px;
    background: var(--color-bg-soft);
    padding: 12px 16px;
    font-size: 14px;
}

.legal-body {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.legal-body section {
    min-width: 0;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 22px 20px;
    box-shadow: var(--shadow-card);
}

.legal-body h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.legal-body h3 {
    margin: 20px 0 6px;
    font-size: 16px;
}

.legal-body p,
.legal-body li {
    color: var(--color-text-muted);
}

.legal-body p {
    margin: 0 0 10px;
}

.legal-body ul,
.legal-body ol {
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
    padding-left: 20px;
}

.legal-body strong {
    color: var(--color-text);
}

.legal-body a:not(.button) {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-body code {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.legal-owner {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    border-radius: 16px;
    background: var(--color-bg-soft);
    padding: 14px 16px;
}

.legal-owner div {
    display: grid;
    gap: 2px;
}

.legal-owner dt {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-owner dd {
    margin: 0;
    font-weight: 600;
}

.legal-placeholder {
    border-radius: 6px;
    background: var(--color-yellow);
    padding: 1px 6px;
    color: var(--color-text);
    font-weight: 700;
}

.legal-table-wrap {
    margin: 0 0 12px;
    overflow-x: auto;
}

.legal-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table td {
    color: var(--color-text-muted);
}

.legal-form {
    border-radius: 16px;
    background: var(--color-bg-soft);
    padding: 12px 16px;
}

.legal-form summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
}

.consent-panel {
    margin: 14px 0 6px;
    border-radius: 16px;
    background: var(--color-bg-soft);
    padding: 16px;
}

.consent-status {
    font-weight: 600;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.consent-actions .button {
    border: 0;
    cursor: pointer;
}

.footer-legal {
    display: grid;
    gap: 6px;
}

/* Credito di chi ha realizzato il sito, sotto il copyright. */
.footer-copy {
    display: grid;
    gap: 2px;
}

.footer-credit a {
    color: var(--color-text);
    font-weight: 700;
}

.footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
}

.cart-legal-note {
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}

.cart-legal-note a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- Protezione anti-bot dei form (js/form-guard.js) ---------- */
.form-guard-status,
.form-guard-noscript {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.form-guard-noscript {
    color: var(--color-primary-dark);
}

.form-guard-widget:empty {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .cart-drawer,
    .cart-drawer-backdrop,
    .cart-drawer .cart-item {
        transition: none;
    }

    .store-hero-sauce {
        animation: none;
    }

    .dish-card {
        transition: none;
    }

    .dish-card:hover,
    .dish-card:focus-visible {
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (min-width: 480px) {
    .hero-copy h1,
    .cart-hero h1,
    .result-copy h1,
    .state-page h1 {
        font-size: 42px;
    }
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 24px;
        color: var(--color-text-muted);
        font-size: 14px;
        font-weight: 600;
    }

    .main-nav a {
        position: relative;
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    .main-nav a::after {
        position: absolute;
        right: 0;
        bottom: 7px;
        left: 0;
        height: 3px;
        border-radius: var(--radius-pill);
        background: var(--color-primary);
        content: "";
        opacity: 0;
        transform: scaleX(0.45);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .main-nav a[aria-current="page"] {
        color: var(--color-text);
    }

    .main-nav a:hover::after,
    .main-nav a:focus-visible::after,
    .main-nav a[aria-current="page"]::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .menu-toggle,
    .mobile-menu {
        display: none;
    }

    .shop-cart-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .footer-main {
        grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 0.7fr));
        align-items: start;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .footer-legal {
        justify-items: end;
        text-align: right;
    }

    .shop-page {
        padding-bottom: 88px;
    }

    .store-hero {
        padding: 52px 0 44px;
    }

    .hero-grid {
        grid-template-columns: 55fr 45fr;
        align-items: center;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-floating-stage {
        min-height: 440px;
    }

    .hero-floating-stage::before {
        width: min(100%, 460px);
    }

    .store-hero-sauces {
        width: 320px;
        height: 320px;
    }

    .store-hero-sauce {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }

    .hero-float-badge-halal { top: 24px; right: 2%; }
    .hero-float-badge-sauce { bottom: 110px; left: 0; }
    .hero-float-badge-delivery { right: 2%; bottom: 40px; }

    .store-catalog {
        padding: 44px 0 96px;
    }

    .dish-carousel {
        padding: 40px;
    }

    .shop-info-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .info-item + .info-item {
        border-top: 0;
        border-left: 1px solid var(--border-soft);
    }

    .sauce-grid {
        gap: 96px 24px;
    }

    .sauce-grid > .dish-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .cart-drawer {
        top: 0;
        left: auto;
        width: 400px;
        max-height: none;
        border-radius: 28px 0 0 28px;
        box-shadow: -12px 0 40px rgba(43, 33, 24, 0.18);
        transform: translateX(100%);
    }

    .cart-drawer-handle {
        display: none;
    }

    .cart-drawer-head {
        padding-top: 22px;
    }

    .product-layout {
        grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
        gap: 36px;
    }

    /* La foto resta visibile mentre si scorre la colonna con formati e dettagli. */
    .product-gallery {
        position: sticky;
        top: 100px;
        justify-items: stretch;
    }

    .product-buy h1 {
        font-size: 44px;
    }

    .product-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-summary {
        position: sticky;
        top: 88px;
    }

    .cart-item {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .cart-item-body,
    .cart-item-controls {
        grid-column: auto;
    }

    .cart-item-price {
        grid-column: auto;
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .main-nav {
        gap: 32px;
    }

    .hero-copy h1 {
        font-size: 60px;
    }

    .sauce-grid {
        gap: 96px 20px;
    }

    .sauce-grid > .dish-card {
        flex-basis: calc((100% - 60px) / 4);
    }

    .sauce-section-head h2 {
        font-size: 34px;
    }

    .result-copy h1 {
        font-size: 58px;
    }

    .legal-head h1 {
        font-size: 44px;
    }

    .legal-body section {
        padding: 28px 32px;
    }

    .result-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
        gap: 34px;
        padding-top: 46px;
    }
}

/* Area cliente: dettaglio ordine e conversazione con il negozio. */
.order-back {
    margin: 0 0 8px;
}

.order-code-line {
    overflow-wrap: anywhere;
}

.order-back a,
.order-card-link {
    color: var(--color-primary);
    font-weight: 800;
}

.order-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.order-unread {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    padding: 0 6px;
    color: var(--color-surface);
    font-size: 12px;
}

.order-help {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.order-help h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
}

.order-thread {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-msg {
    max-width: 80%;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
}

.order-msg--customer {
    justify-self: end;
    background: #fff4e6;
}

.order-msg--system {
    justify-self: center;
    background: var(--color-bg-soft);
}

.order-msg-meta {
    margin: 0 0 6px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.order-msg-type {
    display: inline-block;
    margin-left: 6px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    padding: 1px 10px;
    color: var(--color-text);
    font-weight: 700;
}

.order-msg-body {
    margin: 0;
    overflow-wrap: anywhere;
}

.order-msg-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.order-msg-photos img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.order-help-form {
    display: grid;
    gap: 10px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.order-help-form label {
    font-weight: 700;
}

.order-help-form select,
.order-help-form textarea,
.order-help-form input[type="file"] {
    width: 100%;
    min-width: 0;
    border: 2px solid var(--border-soft);
    border-radius: 14px;
    padding: 10px 14px;
    background: #fff;
    font: inherit;
}

.order-help-form select:focus,
.order-help-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.order-help-lead,
.order-help-error {
    margin: 0;
}

.order-help-error {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.order-help-hint {
    color: var(--color-text-muted);
}

.order-help-form .button {
    border: 0;
    cursor: pointer;
}

/* Area cliente, Assistenza e FAQ: una colonna centrata, niente contenuto schiacciato a sinistra. */
.orders-page {
    width: min(100% - 32px, 880px);
}

.orders-page .cart-hero {
    text-align: left;
}

.order-badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.order-state-badge--request {
    background: var(--color-primary);
    color: var(--color-surface);
}

.order-state-badge--closed {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
}

.order-withdrawal small,
.withdrawal-legal {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
}

.withdrawal-legal {
    text-align: center;
}

.order-help-closed {
    margin: 0;
    border-radius: var(--radius-card);
    background: var(--color-bg-soft);
    padding: 16px 18px;
    color: var(--color-text-muted);
}

.order-help-closed a {
    color: var(--color-primary);
    font-weight: 700;
}

.order-help-close {
    margin: 0;
    text-align: center;
}

.order-help-close-button {
    border: 0;
    background: none;
    padding: 8px;
    color: var(--color-text-muted);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.order-msg--system {
    max-width: 100%;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
}

.help-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 8px 0 28px;
}

.help-shortcuts a {
    display: grid;
    gap: 4px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}

.help-shortcuts strong {
    color: var(--color-primary);
    font-size: 17px;
}

.help-shortcuts span {
    color: var(--color-text-muted);
    font-size: 14px;
}

.help-section {
    display: grid;
    gap: 12px;
    margin-top: 32px;
    scroll-margin-top: 96px;
}

.help-section h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 30px;
}

.help-section p {
    margin: 0;
}

.help-section p a:not(.button) {
    color: var(--color-primary);
    font-weight: 700;
}

.help-hint {
    color: var(--color-text-muted);
    font-size: 14px;
}

.help-orders {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-orders li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    padding: 14px 18px;
    box-shadow: var(--shadow-card);
}

.faq-item {
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 800;
    cursor: pointer;
}

.faq-item p {
    padding: 0 20px 18px;
    color: var(--color-text-muted);
}


.orders-page .cart-hero p a {
    color: var(--color-primary);
    font-weight: 700;
}

.help-orders .order-state-badge {
    margin-left: 6px;
    vertical-align: 1px;
}

/* Carrello: CAP e opzioni di spedizione sotto «Spedizione in Italia». */
.shipping-details {
    display: grid;
    gap: 8px;
    margin: -2px 0 4px;
    border-left: 3px solid var(--color-primary);
    padding: 4px 0 4px 14px;
}

.shipping-cap {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.shipping-cap input {
    width: 140px;
    min-height: 44px;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.shipping-cap input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.shipping-cap-note {
    color: var(--color-text-muted);
    font-size: 13px;
}

.shipping-methods {
    display: grid;
    gap: 8px;
}

.shipping-method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--border-soft);
    border-radius: 14px;
    background: #fff;
    padding: 8px 12px;
    cursor: pointer;
}

.shipping-method:has(input:checked) {
    border-color: var(--color-primary);
}

.shipping-method input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-primary);
}

.shipping-method span {
    display: grid;
}

.shipping-method small {
    color: var(--color-text-muted);
    font-size: 13px;
}

.shipping-method em {
    font-style: normal;
    font-weight: 800;
}

.summary-note {
    margin: -4px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}
