/* Floating cart button + slide-in side drawer */
body.cart-open{overflow:hidden}
.cart-fab{position:fixed;inset-inline-end:24px;bottom:24px;z-index:60;display:none;place-items:center;width:62px;height:62px;border:0;border-radius:50%;background:#1f2a22;color:#fff;box-shadow:0 14px 34px rgba(20,28,22,.32);transition:transform .18s ease,background .18s ease}
/* The floating cart is a desktop-web affordance; mobile uses the bottom bar. */
@media(min-width:701px){.cart-fab{display:grid}}
.cart-fab:hover{transform:translateY(-2px);background:#2b3a2e}
.cart-fab:focus-visible{outline:3px solid #e9a943;outline-offset:3px}
.cart-fab svg{width:27px;height:27px}
.cart-badge{position:absolute;top:-5px;inset-inline-end:-5px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#e9a943;color:#1f2a22;font-size:.74rem;font-weight:800;line-height:1;border:2px solid var(--bg)}
.cart-badge[hidden]{display:none}
/* Mobile bottom-bar cart item: opens the same drawer as the desktop FAB. */
.mobile-nav-cart{position:relative;border:0;background:none;font-family:inherit;cursor:pointer;appearance:none;-webkit-tap-highlight-color:transparent}
.mobile-nav-cart:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.mobile-cart-badge{position:absolute;inset-block-start:1px;inset-inline-end:calc(50% - 15px);display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#e9a943;color:#1f2a22;font-size:.6rem;font-weight:800;line-height:1;border:2px solid var(--paper);pointer-events:none}
.mobile-cart-badge[hidden]{display:none}
.cart-drawer-overlay{position:fixed;inset:0;z-index:70;background:rgba(18,26,20,.48);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.cart-drawer{position:fixed;top:0;right:0;bottom:0;z-index:80;display:flex;flex-direction:column;width:min(430px,100%);background:var(--paper);box-shadow:-24px 0 60px rgba(18,26,20,.24);transform:translateX(102%);transition:transform .32s cubic-bezier(.22,.8,.3,1);visibility:hidden}
.cart-shell.is-open .cart-drawer-overlay{opacity:1;visibility:visible}
.cart-shell.is-open .cart-drawer{transform:translateX(0);visibility:visible}
.cart-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 16px;border-bottom:1px solid var(--line)}
.cart-drawer-head .eyebrow{margin:0}
.cart-drawer-head h2{display:flex;align-items:center;gap:9px;margin:4px 0 0;font-size:2rem}
.cart-drawer-count:empty{display:none}
.cart-drawer-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#e8eee5;color:var(--green);font-family:'DM Sans',sans-serif;font-size:.78rem;font-weight:800}
.cart-drawer-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font-size:1.4rem;line-height:1}
.cart-drawer-close:hover{background:#f1ede3}
.cart-drawer-content{flex:1;overflow-y:auto;padding:18px 22px 24px}
.cart-groups{display:grid;gap:22px}
.cart-group{border:1px solid var(--line);border-radius:18px;background:#fffdf9;overflow:hidden}
.cart-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#eef1e8;border-bottom:1px solid var(--line)}
.cart-group-head strong{font-family:'Fraunces',serif;font-size:1.05rem}
.cart-group-head span{font-size:.74rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.cart-line{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #f0ece2;align-items:flex-start}
.cart-line:last-of-type{border-bottom:0}
.cart-line-thumb{flex:none;width:54px;height:54px;border-radius:12px;overflow:hidden;background:#f3ead9}
.cart-line-thumb img{width:100%;height:100%;object-fit:cover}
.cart-line-info{display:flex;flex-direction:column;flex:1;min-width:0}
.cart-line-info strong{font-size:.92rem;line-height:1.25}
.cart-line-unit{font-size:.78rem;color:var(--muted);margin-top:2px}
.cart-qty{display:inline-flex;align-items:center;gap:2px;margin-top:8px;border:1px solid #d8d9cd;border-radius:999px;padding:2px;width:fit-content;background:#fbf9f4}
.cart-qty form{display:inline-flex;margin:0}
.cart-qty button{display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:50%;background:transparent;color:var(--ink);font-size:1rem;font-weight:700;line-height:1}
.cart-qty button:hover{background:#e8eee5;color:var(--green)}
.cart-qty span{min-width:22px;text-align:center;font-size:.84rem;font-weight:700}
.cart-line-end{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.cart-line-end strong{font-size:.86rem}
.cart-remove{border:0;background:none;padding:0;font-size:.72rem;color:var(--muted);text-decoration:underline;font-weight:600}
.cart-remove:hover{color:#a4392b}
.cart-group-foot{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#f8f5ef;border-top:1px solid var(--line);font-size:.9rem}
.cart-checkout{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--green);color:#fff;padding:14px 16px;font-weight:700;font-size:.9rem}
.cart-checkout:hover{color:#fff;text-decoration:none;filter:brightness(1.07)}
.cart-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:64px 20px}
.cart-empty-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#eef1e8;color:var(--green);margin-bottom:18px}
.cart-empty-icon svg{width:32px;height:32px}
.cart-empty h3{font-size:1.35rem;margin:0 0 6px}
.cart-empty p{font-size:.9rem;color:var(--muted);max-width:28ch;margin:0}
.cart-drawer-footnote{margin:0;padding:14px 22px;border-top:1px solid var(--line);text-align:center;font-size:.75rem;color:var(--muted);background:#fbf9f4}

/* Quantity stepper used on menu cards and the full cart page */
.qty-stepper{display:inline-flex;align-items:center;border:1px solid #c9d0c6;border-radius:10px;background:#fff;overflow:hidden}
.qty-stepper button{display:grid;place-items:center;width:30px;height:34px;border:0;background:#f0f3ec;color:var(--green);font-size:1.05rem;font-weight:800;line-height:1}
.qty-stepper button:hover{background:#e2eadc}
.qty-stepper input{width:38px;height:34px;border:0;border-inline:1px solid #e2e4d9;border-radius:0;text-align:center;padding:0;background:#fff;font-size:.86rem;font-weight:700;-moz-appearance:textfield}
.qty-stepper input::-webkit-outer-spin-button,.qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.cart-page-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:22px;align-items:start}
.cart-page-items{display:grid;gap:12px}
.cart-page-line{display:flex;align-items:center;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.cart-page-line .cart-line-thumb{width:68px;height:68px}
.cart-page-line-info{flex:1;min-width:0}
.cart-page-line-info strong{display:block;font-size:1rem}
.cart-page-line-info span{font-size:.84rem;color:var(--muted)}
.cart-page-line-end{display:flex;align-items:center;gap:16px;flex:none}
.cart-page-line-end strong{font-size:.95rem}
.cart-summary-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px;position:sticky;top:20px}
.cart-summary-card h2{font-size:1.3rem;margin:0 0 14px}
.cart-summary-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:.92rem;border-bottom:1px solid #f0ece2}
.cart-summary-row.total{border-bottom:0;font-size:1.1rem;font-weight:700;padding-top:14px}
.cart-summary-card .button{width:100%;margin-top:14px}

.detail-add{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.detail-add .qty-stepper button{height:44px;width:38px}
.detail-add .qty-stepper input{height:44px;width:48px;font-size:.95rem}

/* The mobile bottom bar replaces the FAB; only the drawer needs mobile tuning. */
@media(max-width:700px){
  .cart-drawer{width:100%;max-width:none;border-radius:0}
  .cart-drawer-head{padding:20px 18px 14px}
  .cart-drawer-content{padding:16px 16px 24px}
  .cart-line{padding:12px}
  .cart-page-grid{grid-template-columns:1fr}
  .cart-summary-card{position:static}
  .cart-page-line{flex-wrap:wrap}
  .cart-page-line-end{width:100%;justify-content:space-between}
}

/* Right-to-left mirroring for the drawer */
html[dir="rtl"] .cart-drawer{right:auto;left:0;transform:translateX(-102%);box-shadow:24px 0 60px rgba(18,26,20,.24)}
html[dir="rtl"] .cart-shell.is-open .cart-drawer{transform:translateX(0)}
html[dir="rtl"] .cart-line-end{align-items:flex-start}
html[dir="rtl"] .cart-checkout{flex-direction:row-reverse}
.cart-page-back{display:inline-block;font-size:.86rem;font-weight:700;margin-bottom:18px}
.cart-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.cart-page-head .eyebrow{margin:0}
.cart-page-head h1{margin:6px 0 0}
.cart-page-vendor{background:#e8eee5;color:var(--green);border-radius:999px;padding:7px 14px;font-size:.8rem;font-weight:700}
.cart-page-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.cart-page-tabs a{border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:.82rem;font-weight:700;background:var(--paper);color:var(--ink)}
.cart-page-tabs a.is-active{background:var(--green);border-color:var(--green);color:#fff}
.cart-page-tabs a:hover{text-decoration:none;border-color:#b9c9b4}
.cart-page-add{display:block;text-align:center;border:1px dashed #c4cdbf;border-radius:14px;padding:14px;font-size:.9rem;font-weight:700;color:var(--green);background:#f4f6ef}
.cart-page-add:hover{text-decoration:none;background:#eaf0e4}
.cart-page-empty{margin-top:20px;background:var(--paper);border:1px solid var(--line);border-radius:20px}
.cart-page-empty .button{margin-top:18px}
.cart-summary-note{font-size:.78rem;color:var(--muted);margin:12px 0 0;line-height:1.4}
/* Add-to-cart feedback: a small circle flies to the cart, the cart bounces,
   and the count badge pops when the number changes. */
.cart-fab::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid rgba(233,169,67,.5);opacity:0;transform:scale(.86);transition:opacity .18s ease,transform .18s ease;pointer-events:none}
.cart-fab:hover::after,.cart-fab:focus-visible::after{opacity:1;transform:scale(1)}
.cart-fly-dot{position:fixed;z-index:250;width:15px;height:15px;border-radius:50%;pointer-events:none;background:radial-gradient(circle at 32% 30%,#f6c766,var(--green,#285a3d));box-shadow:0 0 0 5px rgba(40,90,61,.14),0 6px 14px rgba(20,28,22,.28)}
.cart-fab.is-bouncing,.mobile-nav-cart.is-bouncing{animation:cart-bounce .62s cubic-bezier(.34,1.56,.64,1)}
.cart-badge.is-popping,.mobile-cart-badge.is-popping{animation:cart-badge-pop .42s cubic-bezier(.34,1.56,.64,1)}
@keyframes cart-bounce{
  0%{transform:translateY(0) scale(1)}
  28%{transform:translateY(-11px) scale(1.12)}
  52%{transform:translateY(3px) scale(.95)}
  72%{transform:translateY(-5px) scale(1.04)}
  100%{transform:translateY(0) scale(1)}
}
@keyframes cart-badge-pop{
  0%{transform:scale(1)}
  38%{transform:scale(1.42)}
  100%{transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .cart-fab.is-bouncing,.mobile-nav-cart.is-bouncing,.cart-badge.is-popping,.mobile-cart-badge.is-popping{animation:none}
  .cart-fly-dot{display:none}
}
/* Per-sandwich notes: optional, editable, and clearable. */
.cart-note{margin-top:7px;font-size:.75rem;width:100%}
.cart-note summary{cursor:pointer;list-style:none;color:var(--muted);font-weight:600;line-height:1.3}
.cart-note summary::-webkit-details-marker{display:none}
.cart-note summary::before{content:"✎";margin-inline-end:4px;color:var(--green)}
.cart-note[open] summary{color:var(--green)}
.cart-note form{margin-top:6px}
.cart-note textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #d8d9cd;border-radius:9px;padding:7px 9px;font:inherit;font-size:.78rem;resize:vertical;min-height:48px;background:#fff}
.cart-note textarea:focus{outline:2px solid #9fbd9f;outline-offset:1px}
.cart-note-actions{display:flex;gap:6px;margin-top:5px;flex-wrap:wrap}
.cart-note-save,.cart-note-clear{border-radius:8px;padding:6px 10px;font-size:.72rem;font-weight:700;min-height:30px}
.cart-note-save{border:0;background:#285a3d;color:#fff}
.cart-note-save:hover{filter:brightness(1.08)}
.cart-note-clear{border:1px solid #e0d6cd;background:#fff;color:#8a5a3a}
.cart-note-clear:hover{background:#fbf3ec}

/* Ingredient customisation: chosen contents and the inline editor. */
.cart-contents{display:flex;flex-wrap:wrap;gap:3px 7px;margin:5px 0 2px;padding:0;list-style:none}
.cart-content{display:inline-flex;align-items:center;gap:3px;font-size:.7rem;line-height:1.2;color:#6d715f;background:#f6f2e8;border:1px solid #ece3d4;border-radius:999px;padding:2px 6px 2px 3px}
.cart-content .ingredient-icon{width:15px;height:15px}
.cart-content-qty{color:#8a8d7d;font-size:.65rem;font-weight:600}
.cart-customize{margin-top:7px;font-size:.75rem;width:100%}
.cart-customize summary{cursor:pointer;list-style:none;color:#285a3d;font-weight:700;line-height:1.3}
.cart-customize summary::-webkit-details-marker{display:none}
.cart-customize summary::before{content:"＋";margin-inline-end:4px;color:#c05a2e;font-weight:800}
.cart-customize[open] summary::before{content:"−"}
.cart-customize .cart-contents{display:block;list-style:disc;margin:8px 0 10px;padding-inline-start:22px}
.cart-customize .cart-content{display:list-item;background:none;border:0;border-radius:0;padding:2px 0;color:#3e443b;font-size:.76rem}
.cart-customize .cart-content .ingredient-icon{display:none}
.cart-customize .cart-content-qty{margin-inline-start:5px}
.cart-customize form{margin-top:8px;border:1px solid #e5ddce;border-radius:11px;background:#fbf9f4;padding:9px}
.cart-custom-group{border:0;border-bottom:1px solid #efe8da;margin:0 0 8px;padding:0 0 8px;min-width:0}
.cart-custom-group:last-of-type{border-bottom:0;margin-bottom:6px;padding-bottom:0}
.cart-custom-group legend{padding:0;margin-bottom:5px;font-size:.66rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8a6a45}
.cart-custom-hint{font-weight:600;letter-spacing:0;text-transform:none;color:#9a9d8c}
.cart-custom-options{display:grid;gap:5px}
.cart-custom-option{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.76rem;line-height:1.25;color:#3e443b}
.cart-custom-choice{display:flex;align-items:center;gap:6px;flex:1 1 120px;min-width:0;cursor:pointer}
.cart-custom-choice input{width:15px;height:15px;accent-color:#285a3d;margin:0;flex:none}
.cart-custom-choice input:disabled+img{opacity:.7}
.cart-custom-choice .ingredient-icon{width:17px;height:17px}
.cart-custom-qty{display:inline-flex;align-items:center;border:1px solid #d8d9cd;border-radius:999px;background:#fff;padding:1px;flex:none}
.cart-custom-qty button{display:grid;place-items:center;width:22px;height:24px;border:0;border-radius:50%;background:transparent;color:#285a3d;font-size:.85rem;font-weight:800;line-height:1}
.cart-custom-qty button:hover{background:#e8eee5}
.cart-custom-qty input{width:42px;height:24px;border:0;border-radius:0;text-align:center;padding:0;background:transparent;font-size:.72rem;font-weight:700;color:#285a3d;-moz-appearance:textfield}
.cart-custom-qty input::-webkit-outer-spin-button,.cart-custom-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cart-custom-unit{font-size:.62rem;font-weight:700;color:#8a8d7d;min-width:22px;padding-inline-end:4px}
.cart-custom-save{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:#285a3d;color:#fff;padding:7px 12px;font-size:.72rem;font-weight:800;min-height:32px;margin-top:2px}
.cart-custom-save:hover{filter:brightness(1.08)}
@media(max-width:700px){
  .cart-customize form{padding:8px}
  .cart-custom-option{min-height:28px}
}
html[dir="rtl"] .cart-customize summary::before{margin-inline-end:0;margin-inline-start:4px}

.price-savings { display: block; margin-top: 0.15rem; font-size: 0.7rem; color: #166534; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Add-to-cart modal (quantity → default/customize → contents)
   The shell lives outside <main> so it survives SPA navigation.
--------------------------------------------------------------------------- */
body.customize-open{overflow:hidden}
.customize-modal[hidden]{display:none!important}
.customize-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px}
.customize-modal-overlay{position:absolute;inset:0;background:rgba(18,26,20,.55);backdrop-filter:blur(3px)}
.customize-modal-dialog{position:relative;display:flex;flex-direction:column;width:min(720px,100%);max-height:min(92vh,900px);background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:0 30px 80px rgba(18,26,20,.34);overflow:hidden}
.customize-modal-dialog:focus{outline:none}
.customize-modal-close{position:absolute;top:14px;right:14px;z-index:5;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fffdf9;color:var(--ink);font-size:1.4rem;line-height:1}
.customize-modal-close:hover{background:#f1ede3}
.customize-modal-content{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:26px 26px 0}
.cz-head{padding-right:48px}
.cz-head h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:2px 0 4px}
.cz-price{margin:0;font-weight:800;color:var(--green);font-size:1.02rem}
.cz-progress{display:flex;gap:6px;margin:18px 0 20px;padding:0;list-style:none;counter-reset:none}
.cz-progress li{display:flex;align-items:center;gap:6px;flex:1;padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#fbf9f4;color:var(--muted);font-size:.72rem;font-weight:700;white-space:nowrap}
.cz-progress li span{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#ecefe6;color:var(--green);font-size:.68rem;font-weight:800;flex:none}
.cz-progress li.is-active{border-color:#b9cbb2;background:#eef3e9;color:var(--green)}
.cz-progress li.is-active span{background:var(--green);color:#fff}
.cz-progress li.is-done{border-color:#dbe4d4;color:var(--green);background:#f4f7ef}
.cz-step{padding-bottom:2px}
.cz-step h3{font-size:1.25rem;margin:0 0 4px}
.cz-step h4{font-family:'DM Sans',sans-serif;font-size:.86rem;letter-spacing:.02em;margin:0 0 8px;color:var(--ink)}
.cz-lead{margin:0 0 14px;color:var(--muted);font-size:.9rem;line-height:1.45}
.cz-qty-big{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0 28px}
.cz-qty-stepper .qty-stepper{border-radius:14px}
.cz-qty-stepper{padding:0}
.cz-qty-stepper{display:inline-flex}
.cz-qty-stepper button{width:46px;height:52px;font-size:1.3rem}
.cz-qty-stepper input{width:64px;height:52px;font-size:1.15rem}
.cz-qty-hint{font-size:.8rem;color:var(--muted)}
.cz-target{display:grid;gap:6px;margin:0 0 14px;max-width:420px}
.cz-target-label{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cz-target-select{min-height:48px;width:100%;border:1.5px solid #b9cbb2;border-radius:12px;background:#fff;color:var(--ink);padding:8px 40px 8px 12px;font:inherit;font-weight:600;box-shadow:0 1px 3px rgba(23,79,61,.08);cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23174F3D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:16px}
.cz-target-select:hover{border-color:#8fb383;background-color:#fbfdf9}
.cz-target-select:focus-visible{outline:3px solid #e9a943;outline-offset:2px;border-color:var(--green)}
.cz-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.cz-choice-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;border:1.5px solid var(--line);border-radius:16px;background:#fbf9f4;padding:15px 16px;min-height:120px;color:var(--ink)}
.cz-choice-card:hover{border-color:#b9cbb2;background:#f4f7ef}
.cz-choice-card:focus-visible{outline:3px solid #e9a943;outline-offset:2px}
.cz-choice-card strong{font-size:.96rem}
.cz-choice-card small{font-size:.78rem;color:var(--muted);line-height:1.4}
.cz-choice-card.is-selected{border-color:var(--green);background:#f0f6ee;box-shadow:0 0 0 1px var(--green) inset}
.cz-choice-card.is-selected .cz-choice-icon{background:var(--green);color:#fff}
.cz-default-preview{border:1px solid #eee4d3;border-radius:14px;background:#fbf8f1;padding:12px 14px;margin-bottom:14px}
.cz-default-preview h4{font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.cz-choice-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8eee5;color:var(--green);font-weight:800;font-size:.9rem}
.cz-content-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.cz-content-list-boxed{border:1px solid #eee4d3;border-radius:14px;background:#fbf8f1;padding:12px 14px;margin-bottom:16px}
.cz-content{display:flex;align-items:center;gap:8px;font-size:.84rem;line-height:1.3;color:#3e443b;min-height:26px}
.cz-content .ingredient-icon{width:22px;height:22px}
.cz-content-name{flex:1;min-width:0}
.cz-content-qty{font-size:.76rem;font-weight:700;color:#8a8d7d;white-space:nowrap}
.cz-group{border:1px solid #eee4d3;border-radius:14px;background:#fffdf9;padding:11px 13px;margin:0 0 12px;min-width:0}
.cz-group legend{padding:0 4px;margin-bottom:4px;font-size:.68rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#8a6a45}
.cz-legend-hint{font-weight:600;letter-spacing:0;text-transform:none;color:#9a9d8c}
.cz-rows{display:grid;gap:7px}
.cz-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:5px 0;border-bottom:1px dashed #f0ece2}
.cz-row:last-child{border-bottom:0}
.cz-row-main{display:flex;align-items:center;gap:8px;flex:1 1 150px;min-width:0;font-size:.85rem;cursor:pointer}
.cz-row-main input[type="checkbox"],.cz-row-main input[type="radio"]{width:17px;height:17px;accent-color:var(--green);flex:none;margin:0}
.cz-row-main .ingredient-icon{width:22px;height:22px}
.cz-row.is-removed .cz-row-main span:not(.cz-fixed):not(.cz-remove-hint){opacity:.5;text-decoration:line-through}
.cz-fixed{font-size:.62rem;font-weight:700;color:#9a9d8c;background:#f1ede3;border-radius:999px;padding:2px 6px;white-space:nowrap}
.cz-remove-hint{font-size:.62rem;font-weight:600;color:#a4392b;white-space:nowrap}
.cz-row.is-removed .cz-remove-hint{color:var(--green)}
.cz-row.is-removed .cz-remove-hint::before{content:"＋ "}
.cz-row:not(.is-removed) .cz-remove-hint::before{content:"− "}
.cz-row-qty{display:inline-flex;align-items:center;border:1px solid #d8d9cd;border-radius:999px;background:#fff;padding:1px;flex:none}
.cz-row-qty button{display:grid;place-items:center;width:26px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--green);font-size:.95rem;font-weight:800;line-height:1}
.cz-row-qty button:hover{background:#e8eee5}
.cz-row-qty input{width:46px;height:28px;border:0;text-align:center;padding:0;background:transparent;font-size:.78rem;font-weight:700;color:#285a3d;-moz-appearance:textfield}
.cz-row-qty input::-webkit-outer-spin-button,.cz-row-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cz-unit{font-size:.64rem;font-weight:700;color:#8a8d7d;min-width:22px;padding-inline-end:5px}
.cz-addons{margin:18px 0 16px;padding:14px;border:1.5px solid #e4d2b1;border-radius:16px;background:#fdf8ee}
.cz-addons h4{margin:0 0 3px;color:#8a5a12;font-size:.92rem}
.cz-addons>p{margin:0 0 10px;font-size:.78rem;color:#8a7a5e}
.cz-addon-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cz-addon{border:1px solid #e8dcc6;border-radius:12px;background:#fffdf9;min-width:0}
.cz-addon-add{display:flex;align-items:center;gap:7px;width:100%;border:0;background:transparent;padding:8px 9px;font-size:.8rem;font-weight:700;color:var(--ink);text-align:left;border-radius:12px}
.cz-addon-add:hover{background:#fbf0d8}
.cz-addon-add .ingredient-icon{width:20px;height:20px}
.cz-addon-add span:nth-child(2){flex:1;min-width:0}
.cz-addon-plus{font-size:.7rem;font-weight:800;color:#a56a12;background:#f6e3bb;border-radius:999px;padding:3px 8px;white-space:nowrap}
.cz-addon-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 9px;border-top:1px solid #f0e5d0}
.cz-addon-name{display:none}
.cz-addon-remove{border:0;background:none;padding:0;font-size:.68rem;font-weight:700;color:#a4392b;text-decoration:underline;margin-left:auto}
.cz-summary{border:1px solid #dbe4d4;border-radius:16px;background:#f4f7ef;padding:13px 14px;margin:0 0 10px}
.cz-summary h4{margin:0 0 3px;color:var(--green)}
.cz-summary-count{margin:0 0 9px;font-size:.8rem;color:#5f6b58}
.cz-summary-empty{margin:2px 0 0;font-size:.78rem;color:#a4392b}
.cz-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0 18px;margin-top:14px;background:linear-gradient(180deg,rgba(255,253,249,0),var(--paper) 26%);flex-wrap:wrap}
.cz-submit{border:0;border-radius:12px;background:var(--green);color:#fff;padding:13px 22px;font-size:.9rem;font-weight:800;min-height:48px;transition:filter .15s ease,opacity .15s ease}
.cz-submit:hover{filter:brightness(1.08)}
.cz-submit:disabled{opacity:.62;cursor:not-allowed}
.cz-back{border:1px solid #d8d9cd;border-radius:12px;background:#fff;color:var(--green);padding:12px 16px;font-size:.85rem;font-weight:700;min-height:46px}
.cz-back:hover{background:#f1f5ec}
.cz-split{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:20px 0 10px}
.cz-split-field{display:flex;flex-direction:column;gap:5px;font-size:.8rem;font-weight:700;color:var(--muted)}
.cz-split-field input{width:110px;height:46px;border:1px solid #c9d0c6;border-radius:12px;background:#fff;text-align:center;font-size:1.05rem;font-weight:800;color:var(--ink);-moz-appearance:textfield}
.cz-split-field input::-webkit-outer-spin-button,.cz-split-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cz-split-plus,.cz-split-equals{font-size:1.2rem;font-weight:800;color:var(--muted);padding-bottom:12px}
.cz-split-equals strong{color:var(--green)}
.cz-split-error{margin:0 0 8px;font-size:.8rem;font-weight:700;color:#a4392b}
.cz-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:70px 20px;color:var(--muted);font-weight:700}
.cz-spinner{width:22px;height:22px;border:3px solid #e2e4d9;border-top-color:var(--green);border-radius:50%;animation:cz-spin .7s linear infinite}
@keyframes cz-spin{to{transform:rotate(360deg)}}
.cz-error{border:1px solid #e6cec6;border-radius:14px;background:#fff7f4;color:#a4392b;padding:16px;font-size:.9rem;margin:20px 0}
.cz-add-form{padding-bottom:4px}
@media(max-width:700px){
  .customize-modal{padding:0;align-items:stretch}
  .customize-modal-dialog{width:100%;height:100%;max-height:none;border-radius:0;border:0}
  .customize-modal-content{padding:20px 16px 0}
  .customize-modal-close{top:10px;right:10px}
  .cz-progress li{font-size:.64rem;padding:6px 7px}
  .cz-progress li span{width:18px;height:18px}
  .cz-choice-grid{grid-template-columns:1fr}
  .cz-choice-card{min-height:0}
  .cz-addon-grid{grid-template-columns:1fr}
  .cz-row-main{flex-basis:120px;font-size:.8rem}
  .cz-footer{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .cz-submit,.cz-back{flex:1;justify-content:center;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  .cz-spinner{animation:none}
}

/* Save a cart or a single sandwich as a reusable card. */
.saved-save{border-top:1px solid var(--line);background:#fbf9f4;padding:9px 16px;font-size:.78rem}
.saved-save summary{cursor:pointer;list-style:none;font-weight:700;color:var(--green);display:flex;align-items:center;gap:6px;min-height:24px}
.saved-save summary::-webkit-details-marker{display:none}
.saved-save summary::before{content:"✦";font-size:.82rem;color:var(--accent)}
.saved-save[open] summary{margin-bottom:7px}
.saved-save-form{display:flex;gap:6px;align-items:center}
.saved-save-form input{flex:1;min-width:0;height:36px;border:1px solid #c9d0c6;border-radius:9px;background:#fff;padding:6px 10px;font-size:.8rem}
.saved-save-form input:focus{outline:2px solid #77a583;outline-offset:1px}
.saved-save-form button{flex:none;border:0;border-radius:9px;background:var(--green);color:#fff;padding:8px 12px;font-size:.75rem;font-weight:800;min-height:36px}
.saved-save-form button:hover{filter:brightness(1.08)}
.cart-page-line .saved-save{background:transparent;border-top:1px dashed #e4e2d8;padding:7px 0 0;margin-top:8px}
.cart-summary-card .saved-save{border:1px solid var(--line);border-radius:12px;margin-top:12px;padding:10px 12px}
html[dir="rtl"] .saved-save summary::before{margin-inline-end:0}

/* Shared group carts listed on the cart page (outside the group session). */
.cart-groups{margin:14px 0 4px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 14px}
.cart-groups-title{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#6b6257);margin:0 0 8px}
.cart-groups-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cart-group-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 0;border-top:1px dashed #e4e2d8}
.cart-group-row:first-child{border-top:0;padding-top:0}
.cart-group-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.cart-group-link{color:inherit;text-decoration:none;font-weight:700}
.cart-group-link:hover{text-decoration:underline}
.cart-group-meta{font-size:.78rem;color:var(--muted,#6b6257)}
.cart-group-actions{display:flex;align-items:center;gap:10px}
.cart-group-actions form{display:inline}
.cart-group-actions .text-button{min-height:36px}

/* Cart cards and add sheet mirror the native cart hierarchy. */
.cart-page,.cart-drawer{--cart-surface:#fff;--cart-tint:#f7f1e7;--cart-border:#e5dccf;--cart-primary:#174f3d}
.cart-page-line,.cart-group{background:var(--cart-surface);border-color:var(--cart-border);box-shadow:0 8px 24px rgba(23,79,61,.06)}
.cart-page-line{align-items:flex-start;border-radius:18px}
.cart-page-line-info>strong,.cart-line-info>strong{color:#202824;font-family:inherit;font-size:1rem;line-height:1.3}
.cart-page-line-info>span,.cart-line-unit{display:block;margin-top:3px}
.cart-page-line-end{align-items:flex-end;flex-direction:column;gap:6px}
.cart-page-line-end>strong,.cart-line-end>strong{color:#174f3d}
.cart-qty{border-color:var(--cart-border);background:var(--cart-tint);margin-top:12px;padding:3px}
.cart-qty button{width:32px;height:32px;background:#fff;color:#174f3d}
.cart-qty span{min-width:28px;color:#202824}
.cart-unit-card{width:100%;min-width:0;margin-top:12px;border:1px solid var(--cart-border);border-radius:12px;background:#fff;overflow:hidden}
.cart-unit-list{display:grid;gap:6px;margin-top:12px}
.cart-unit-list .cart-unit-card{margin-top:0}
.cart-unit-card>summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;list-style:none;cursor:pointer}
.cart-unit-card>summary::-webkit-details-marker{display:none}
.cart-unit-card>summary:hover{background:#f7f1e7}
.cart-unit-title{flex:none;font-size:.82rem;font-weight:800;color:#202824}
.cart-unit-recipe{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;color:#63736a}
.cart-unit-price{flex:none;font-size:.74rem;font-weight:700;color:#174f3d}
.cart-page-line-info .cart-unit-title,.cart-line-info .cart-unit-title{font-size:.82rem;color:#174f3d}
.cart-page-line-info .cart-unit-price,.cart-line-info .cart-unit-price{font-size:.74rem;color:#174f3d}
.cart-unit-chevron{font-size:1.2rem;color:#63736a;line-height:1;transition:transform .2s ease}
.cart-unit-card[open] .cart-unit-chevron{transform:rotate(180deg)}
.cart-unit-body{border-top:1px solid var(--cart-border);padding:12px;background:#fff}
.cart-unit-body .cart-contents{margin:0 0 10px}
.cart-unit-body .saved-save{margin-top:10px}
.cart-unit-body .cart-customize form{background:#fff;border-color:var(--cart-border)}
.cart-custom-group{padding:12px;border:1px solid var(--cart-border);border-radius:12px;margin-bottom:10px}
.cart-custom-group legend{color:#174f3d}
.cart-custom-option{min-height:40px;gap:10px}
.cart-custom-choice{font-size:.82rem}
.cart-custom-choice input{width:18px;height:18px}
.cart-custom-qty button{width:30px;height:30px}
.cart-custom-qty input{height:30px}
.cart-custom-save{min-height:44px;padding:10px 16px;border-radius:12px;background:#174f3d;font-size:.82rem}
.cart-checkout,.cart-summary-card .button.primary{background:#174f3d}
.cart-mobile-checkout{display:none}
.cart-group-head{background:#dcede3}
.cart-summary-card{border-color:var(--cart-border);box-shadow:0 8px 24px rgba(23,79,61,.06)}

.customize-modal-dialog{background:#fff9f0;border-color:#e5dccf}
.cz-head h2,.cz-step h3{font-family:inherit;color:#202824}
.cz-head .eyebrow{color:#174f3d}
.cz-price{color:#174f3d}
.cz-progress{gap:8px}
.cz-progress li{flex-direction:column;justify-content:center;gap:4px;border:0;background:transparent;border-radius:0;text-align:center;white-space:normal;color:#63736a}
.cz-progress li span{width:26px;height:26px;background:#fff;border:1px solid #e5dccf;color:#4c5b53}
.cz-progress li.is-active,.cz-progress li.is-done{border:0;background:transparent;color:#174f3d}
.cz-progress li.is-active span,.cz-progress li.is-done span{background:#174f3d;border-color:#174f3d;color:#fff}
.cz-choice-grid{grid-template-columns:1fr}
.cz-choice-card{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;min-height:0;gap:2px 12px;background:#fff;border-color:#e5dccf}
.cz-choice-card .cz-choice-icon{grid-row:1/3;width:34px;height:34px}
.cz-choice-card.is-selected{border-color:#174f3d;background:#dcede3;box-shadow:none}
.cz-choice-card.is-disabled{opacity:.5;cursor:not-allowed}
.cz-qty-big{display:flex;justify-content:center;flex-direction:column;gap:8px;background:#fff;border:1px solid #e5dccf;border-radius:18px;padding:20px;margin:18px 0 24px}
.cz-qty-stepper{width:100%;justify-content:space-between;align-items:center}
.cz-qty-stepper button{width:48px;height:48px;border-radius:50%;background:#f7f1e7}
.cz-qty-stepper input{height:52px;width:90px;border:0;font-size:2rem;font-weight:800}
.cz-qty-hint{align-self:center}
.cz-group,.cz-content-list-boxed{background:#fff;border-color:#e5dccf}
.cz-group legend{color:#174f3d}
.cz-summary{background:#dcede3;border-color:#b9d7c4}
.cz-submit{background:#174f3d}
.cz-footer{background:linear-gradient(180deg,rgba(255,249,240,0),#fff9f0 26%)}
@media(max-width:700px){
  .cart-page-line{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;padding:14px}
  .cart-page-line .cart-line-thumb{grid-column:1;grid-row:1;width:56px;height:56px}
  .cart-page-line-info{grid-column:2;grid-row:1;min-width:0}
  .cart-page-line-end{grid-column:1/-1;grid-row:2;flex-direction:row;align-items:center;justify-content:space-between;width:100%;border-top:1px solid #e5dccf;padding-top:10px}
  .cart-page-grid{gap:14px}
  .cart-summary-card{padding:18px}
  .cart-page{padding-bottom:175px}
  .cart-mobile-checkout{position:fixed;inset-inline:0;bottom:74px;z-index:19;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 16px;background:#fff;border-top:1px solid #e5dccf;box-shadow:0 -8px 24px rgba(23,79,61,.08)}
  .cart-mobile-checkout span{display:flex;flex-direction:column;line-height:1.2}
  .cart-mobile-checkout small{font-size:.72rem;color:#63736a}
  .cart-mobile-checkout strong{font-size:1rem;color:#202824}
  .cart-mobile-checkout a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:12px;background:#174f3d;color:#fff;font-weight:800}
  .cart-drawer-content{background:#fff9f0}
  .cart-line{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px 10px}
  .cart-line-thumb{grid-column:1;grid-row:1}
  .cart-line-info{grid-column:2;grid-row:1}
  .cart-line-end{grid-column:1/-1;grid-row:2;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid #e5dccf;padding-top:8px}
  .customize-modal{align-items:end;padding:0}
  .customize-modal-dialog{width:100%;height:auto;min-height:60dvh;max-height:92dvh;border-radius:26px 26px 0 0;border:0;padding-bottom:env(safe-area-inset-bottom)}
  .customize-modal-content{padding:22px 18px 0}
  .cz-progress li{font-size:.66rem;padding:4px 2px}
  .cz-progress li span{width:24px;height:24px}
  .cz-footer{position:sticky;bottom:0;padding-bottom:16px}
  .cz-footer .cz-back{flex:0 0 auto}
  .cz-footer .cz-submit{flex:1}
}

/* Add sheet: one expandable editor for each sandwich in the batch. */
.cz-unit-list{display:grid;gap:8px;margin:16px 0}
.cz-unit-card{border:1px solid #e5dccf;border-radius:12px;background:#fff;overflow:hidden}
.cz-unit-card>summary{display:flex;align-items:center;gap:8px;min-height:54px;padding:12px;list-style:none;cursor:pointer}
.cz-unit-card>summary::-webkit-details-marker{display:none}
.cz-unit-card[open]>summary{background:#dcede3}
.cz-unit-title{font-size:.88rem;font-weight:800;color:#174f3d;white-space:nowrap}
.cz-unit-status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;color:#4c5b53}
.cz-unit-chevron{font-size:1.2rem;color:#63736a;line-height:1;transition:transform .2s ease}
.cz-unit-card[open] .cz-unit-chevron{transform:rotate(180deg)}
.cz-unit-body{display:grid;gap:14px;padding:14px;border-top:1px solid #e5dccf}
.cz-unit-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cz-unit-mode{min-height:44px;border:1px solid #e5dccf;border-radius:12px;background:#f7f1e7;color:#4c5b53;font-weight:800}
.cz-unit-mode.is-selected{border-color:#174f3d;background:#dcede3;color:#174f3d}
.cz-unit-mode:disabled{opacity:.45;cursor:not-allowed}
.cz-unit-default[hidden],.cz-unit-custom[hidden]{display:none}
.cz-unit-default .cz-content-list{margin:0}
.cz-unit-note-label{display:grid;gap:7px;font-size:.8rem;font-weight:800;color:#174f3d}
.cz-unit-note-label textarea{width:100%;min-height:64px;resize:vertical;border:1px solid #cbd7cb;border-radius:12px;background:#fff;padding:10px 12px;font:inherit;font-size:.86rem;font-weight:400;color:#202824}
.cz-unit-note-label textarea:focus-visible,.cz-unit-card>summary:focus-visible,.cz-unit-mode:focus-visible{outline:3px solid #f5a623;outline-offset:2px}
.cz-unit-custom .cz-group{margin-bottom:10px}
.cz-unit-custom .cz-row{min-height:44px}
.cz-unit-custom .cz-row-main{min-width:0}
@media(max-width:700px){
  .cz-unit-body{padding:12px}
  .cz-unit-custom .cz-row{align-items:flex-start}
  .cz-unit-custom .cz-row-qty{margin-inline-start:25px}
}
