/* Online ordering mockup — sits on top of site.css's tokens (same file
   is always loaded first). Pure front-end: no payment fields, no backend.
   See order.js for the "why" behind the demo-only checkout flow. */

/* [hidden] loses to any later same-specificity display rule (.stepper,
   .btn, etc.), so it needs its own explicit override to actually hide. */
[hidden]{display:none!important}

.order-hero{padding:32px 24px 8px}
@media(min-width:1024px){.order-hero{padding:56px 80px 8px}}
.order-hero h1{font-weight:600;font-size:2rem;margin-bottom:10px}
@media(min-width:1024px){.order-hero h1{font-size:2.75rem}}
.order-hero p{max-width:60ch;color:var(--body);font-size:1rem}
.demo-note{
  display:inline-flex;align-items:center;gap:8px;margin-top:14px;
  font-size:.82rem;color:var(--amber-text);background:#FCEFD4;
  border:1px solid #F0D9A0;padding:8px 14px;border-radius:999px;
}
.lang-link-inline{font-size:.9rem;font-weight:600;color:var(--primary)}
.lang-link-inline:hover{color:var(--primary-hi)}

.order-layout{
  padding:24px 24px 120px;display:flex;flex-direction:column;gap:32px;
}
@media(min-width:1024px){
  .order-layout{padding:24px 80px 72px;flex-direction:row;align-items:flex-start;gap:48px}
}
.order-menu{flex:1 1 0;min-width:0}
.menu-section{margin-bottom:36px}
.menu-section:last-child{margin-bottom:0}
.menu-section h2{font-weight:600;font-size:1.4rem;margin-bottom:4px}
.menu-section .section-sub{font-size:.88rem;color:var(--muted);margin-bottom:16px}

.order-item{
  display:flex;align-items:center;gap:14px;padding:14px 0;
  border-bottom:1px solid var(--border);
}
.order-item .thumb{
  flex:0 0 auto;width:56px;height:56px;border-radius:10px;background:#F3E3C6;
  display:flex;align-items:center;justify-content:center;color:#C08A3E;
}
.order-item .info{flex:1 1 0;min-width:0}
.order-item h3{font-size:1.02rem;font-weight:600;margin-bottom:2px;color:var(--ink)}
.order-item .desc{font-size:.83rem;color:#6B5245;line-height:1.4}
.order-item .price{font-size:.92rem;font-weight:600;color:var(--primary);margin-top:4px}

.stepper{display:flex;align-items:center;gap:0;flex:0 0 auto}
.stepper button{
  width:34px;height:34px;border-radius:8px;border:1.5px solid var(--border);
  background:var(--card);color:var(--primary);font-size:1.1rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;
}
.stepper button:hover{border-color:var(--primary)}
.stepper button:disabled{opacity:.35;cursor:default}
.stepper .qty{width:32px;text-align:center;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.stepper .add{
  width:auto;padding:0 16px;border-color:var(--primary);background:var(--primary);color:#fff;
}
.stepper .add:hover{background:var(--primary-hi)}

/* Custom cakes: intentionally not addable to cart, matches the brief's
   phone-only model for celebration cakes. */
.callin-card{
  display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--border);
  border-radius:var(--radius-card);background:var(--card);
}
.callin-card .thumb{width:56px;height:56px}
.callin-card .info{flex:1 1 0}
.callin-card a.btn{padding:10px 16px;min-height:auto;font-size:.9rem}

/* ---------- cart (desktop sidebar) ---------- */
.cart-panel{
  display:none;flex:0 0 auto;width:340px;position:sticky;top:96px;
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius-card);
  padding:22px;
}
@media(min-width:1024px){.cart-panel{display:block}}
.cart-panel h2{font-size:1.15rem;font-weight:600;margin-bottom:14px}
.cart-empty{font-size:.9rem;color:var(--muted)}
.cart-line{display:flex;justify-content:space-between;gap:10px;font-size:.9rem;padding:8px 0;border-bottom:1px solid var(--border)}
.cart-line .name{color:var(--ink);font-weight:500}
.cart-line .qty{color:var(--muted)}
.cart-line .amt{color:var(--ink);font-weight:600;white-space:nowrap}
.cart-total-row{display:flex;justify-content:space-between;padding-top:14px;font-weight:700;color:var(--ink);font-size:1.05rem}

/* ---------- cart (mobile bottom bar) ---------- */
.cart-bar{
  position:fixed;inset-inline:0;bottom:0;z-index:40;
  background:var(--dark);color:#fff;padding:14px 20px;
  padding-bottom:max(14px,env(safe-area-inset-bottom));
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  transform:translateY(110%);transition:transform .22s ease;
}
.cart-bar.visible{transform:translateY(0)}
.cart-bar .count{font-size:.82rem;color:var(--on-dark)}
.cart-bar .total{font-weight:700;font-size:1.05rem}
@media(min-width:1024px){.cart-bar{display:none}}

.btn[disabled]{opacity:.5;cursor:default}

/* ---------- checkout modal ---------- */
.modal-overlay{
  position:fixed;inset:0;background:rgba(51,33,26,.55);z-index:60;
  display:flex;align-items:flex-end;justify-content:center;
}
@media(min-width:640px){.modal-overlay{align-items:center}}
.modal-overlay[hidden]{display:none}
.modal{
  background:var(--ground);width:100%;max-width:520px;max-height:90vh;overflow-y:auto;
  border-radius:20px 20px 0 0;padding:26px 24px;
}
@media(min-width:640px){.modal{border-radius:var(--radius-card);padding:32px}}
.modal h2{font-size:1.4rem;margin-bottom:16px}
.modal .field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.modal label{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.modal input,.modal select{
  font:inherit;color:var(--ink);background:#fff;border:1.5px solid var(--border);
  border-radius:10px;padding:11px 14px;width:100%;
}
.modal input:focus-visible,.modal select:focus-visible{border-color:var(--primary)}
.modal .recap{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:14px 0;margin:18px 0}
.modal .recap-line{display:flex;justify-content:space-between;font-size:.88rem;color:var(--body);padding:3px 0}
.modal .recap-total{display:flex;justify-content:space-between;font-weight:700;color:var(--ink);margin-top:8px;font-size:1.05rem}
.modal .modal-actions{display:flex;gap:12px}
.modal .modal-actions .btn{flex:1}
.modal-close{
  position:absolute;top:16px;right:16px;background:none;border:0;color:var(--muted);
  width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.modal-inner{position:relative}

.success{text-align:center;padding:8px 4px}
.success .check{
  width:64px;height:64px;border-radius:50%;background:#E9F1E5;color:#4C7A45;
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px;
}
.success h2{font-size:1.4rem;margin-bottom:10px}
.success p{color:var(--body);font-size:.96rem;margin-bottom:8px}
.success .fine-print{
  margin-top:16px;padding:12px 14px;background:var(--band);border-radius:12px;
  font-size:.82rem;color:var(--muted);text-align:left;
}
