/* Deloura — palette taken from the logo: cocoa #200F0F on blush #FCE6E0 */
:root {
  --cocoa: #200F0F;
  --cocoa-2: #4B302B;
  --cocoa-3: #7A5C55;
  --blush: #FCE6E0;
  --blush-2: #FCEDE8;           /* matches the baked-in background of the cookie photos */
  --blush-3: #F6D5CC;
  --rose: #E7B3A6;
  --caramel: #B57A55;
  --cream: #FFFAF7;
  --white: #FFFFFF;
  --line: #F1DDD6;
  --ok: #2F6B4A;
  --ok-bg: #E8F3EC;
  --warn: #8A4B12;
  --warn-bg: #FFF1E2;
  --info: #3D3A6B;
  --info-bg: #EEEDFA;
  --error: #A3261F;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(32, 15, 15, .05), 0 2px 8px rgba(32, 15, 15, .05);
  --shadow: 0 2px 6px rgba(32, 15, 15, .05), 0 12px 32px rgba(32, 15, 15, .08);
  --shadow-l: 0 24px 60px rgba(32, 15, 15, .18);

  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-display: "El Messiri", "Tajawal", serif;
  --header-h: 68px;
  color-scheme: light;   /* single light look, by design (brief: no dark backgrounds) */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cocoa);
  background: var(--cream);
  overflow-x: hidden;
}
body.has-cart-bar { padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--cocoa); color: var(--cream); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--cocoa-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cocoa); color: var(--cream); box-shadow: 0 6px 18px rgba(32, 15, 15, .18); }
.btn-primary:hover:not(:disabled) { background: var(--cocoa-2); }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--rose); }
.btn-ghost:hover { background: var(--blush); }
.btn-soft { background: var(--blush); color: var(--cocoa); }
.btn-soft:hover { background: var(--blush-3); }
.btn-ig {
  color: #fff;
  background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 80%, #515BD4);
  box-shadow: 0 8px 22px rgba(221, 42, 123, .28);
}
.btn-ig:hover { filter: brightness(1.05); }
.link-btn { background: none; border: 0; padding: 4px 2px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush);
  font-size: 18px; cursor: pointer; display: grid; place-items: center; flex: none;
}
.icon-btn:hover { background: var(--blush-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(252, 230, 224, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(231, 179, 166, .45);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a {
  text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: background-color .2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .6); }
.cart-btn {
  position: relative; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--white); box-shadow: var(--shadow-s); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px;
  background: var(--cocoa); color: var(--cream);
  font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
  border: 2px solid var(--blush);
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

@media (max-width: 719px) {
  :root { --header-h: 60px; }
  .brand img { height: 38px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 6px 8px; font-size: 14px; }
  .main-nav a:nth-child(3) { display: none; }
}
@media (max-width: 380px) {
  .main-nav a:nth-child(2) { display: none; }
}

.closed-banner { background: var(--cocoa); color: var(--cream); font-size: 15px; text-align: center; }
.closed-banner .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; padding-block: 10px; }
.closed-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.orders-closed .product-card .qty { display: none; }
.cart-closed { background: var(--warn-bg); color: var(--warn); font-weight: 700; text-align: center; border-radius: var(--radius-s); padding: 10px 12px; margin: 0 0 10px; }
.advance-notice { background: var(--blush-2); color: var(--cocoa-2); font-weight: 700; text-align: center; border-radius: var(--radius-s); padding: 10px 12px; margin: 0 0 10px; }

.hours { text-align: center; }
.hours-title { font-weight: 800; margin-bottom: 6px; }
.hours-list { margin: 0; display: grid; gap: 4px; }
.hours-list div { display: flex; justify-content: center; gap: 10px; }
.hours-list dt { font-weight: 500; }
.hours-list dd { margin: 0; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.footer-hours .hours-title { margin-top: 6px; }

.pending-banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #F3D8B8; font-size: 15px; }
.pending-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255, 255, 255, .9), transparent 60%),
    linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}
.hero-inner { display: grid; gap: 28px; padding-block: 36px 28px; align-items: center; }
.eyebrow { color: var(--caramel); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.hero h1 { font-size: clamp(32px, 7.6vw, 58px); margin-bottom: 14px; }
.hero h1 .emoji { display: inline-block; animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--cocoa-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* One large photo (1760×1328, 4:3) — shown whole, never cropped or stretched. */
.hero-visual { margin: 0; width: 100%; max-width: 560px; margin-inline: auto; min-width: 0; }
.hero-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 1760 / 1328;
  border-radius: var(--radius-l); background: var(--blush-2);
  box-shadow: 0 2px 6px rgba(32, 15, 15, .06), 0 24px 50px rgba(32, 15, 15, .16);
  animation: hero-in .8s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (max-width: 859px) {
  .hero-inner { gap: 20px; padding-block: 28px 20px; }
  .hero-actions { max-width: 460px; }
  .hero-actions .btn { flex: 1 1 140px; padding-inline: 16px; }
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: .9fr 1.1fr; padding-block: 56px 48px; gap: 40px; }
  .hero-visual { max-width: 640px; }
}

/* ---------- Notices ---------- */
.notices { position: relative; z-index: 2; }
.notices-inner { display: grid; gap: 10px; margin-top: 4px; }
.notice {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-weight: 700; box-shadow: var(--shadow-s);
}
@media (min-width: 720px) { .notices-inner { grid-template-columns: 1fr 1fr; } .notice { justify-content: center; } .notice-wide { grid-column: 1 / -1; } }
.notice-wide { display: block; text-align: center; }
.notice-wide a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.flavors, .how { padding-block: 56px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 5vw, 42px); }
.section-sub { color: var(--cocoa-3); max-width: 52ch; margin: 8px auto 0; }

/* Sticky section tabs: crumbl / classic / scoop */
.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: 6px; justify-content: center;
  margin: 0 -16px 28px; padding: 10px 16px;
  background: rgba(255, 250, 247, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-tabs a {
  flex: 0 1 auto; text-align: center; text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--cocoa-2);
  transition: background-color .2s, color .2s;
}
.menu-tabs a:hover { border-color: var(--rose); }
.menu-tabs a.is-active { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
@media (max-width: 400px) { .menu-tabs { gap: 4px; } .menu-tabs a { flex: 1 1 0; padding: 8px 6px; font-size: 13px; } }

.category { scroll-margin-top: calc(var(--header-h) + 72px); }
.category + .category { margin-top: 64px; }
.category-head h3::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--caramel); margin-inline-end: 10px; vertical-align: middle;
}
.new-badge {
  position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-end: 12px;
  background: var(--caramel); color: var(--white); font-weight: 800; font-size: 13px;
  padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-s);
}
.category-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px dashed var(--rose); }
.category-head h3 { font-size: clamp(24px, 4vw, 32px); }
.category-en { font-size: 13px; color: var(--cocoa-3); letter-spacing: .08em; text-transform: uppercase; text-align: end; }
.price-badge { background: var(--cocoa); color: var(--cream); font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.category-desc { color: var(--cocoa-3); margin: 12px 0 22px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; } }

.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(32, 15, 15, .06), 0 22px 44px rgba(32, 15, 15, .12); }
.product-card.is-in-cart { border-color: var(--rose); }
.product-media { background: var(--blush-2); aspect-ratio: 1; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05) rotate(-3deg); }
/* Crumbl and makrouta photos are shot from further away — zoom in so the cookie fills the card. */
.product-card[data-category="crumbl"] .product-media img { scale: 1.4; }
.product-card[data-category="makrouta"] .product-media img { scale: 1.2; }
.product-media { position: relative; }
.product-card.is-sold-out .product-media img { filter: grayscale(.7); opacity: .55; }
.product-card.is-sold-out:hover .product-media img { transform: none; }
.product-card.is-sold-out .product-media::before {
  content: "سولد أوت"; position: absolute; z-index: 1; inset-block-start: 14px; inset-inline-start: 14px;
  background: var(--error); color: var(--white); font-weight: 800; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-s);
}
.product-card.is-sold-out .qty { opacity: .4; pointer-events: none; }
.product-card.img-missing .product-media::after { content: "🍪"; display: grid; place-items: center; height: 100%; font-size: 48px; }

.product-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 14px; flex: 1; }
.product-name { font-size: 20px; }
.product-en { font-size: 12px; color: var(--cocoa-3); letter-spacing: .08em; text-transform: uppercase; text-align: start; unicode-bidi: plaintext; }
.product-note { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--caramel); }
.product-price { margin-top: 6px; color: var(--cocoa-2); font-size: 15px; }
.product-price strong { font-size: 22px; color: var(--cocoa); font-family: var(--font-display); }
.product-choices { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.product-choice {
  position: relative; display: flex; align-items: center; min-height: 40px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white);
  font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: border-color .2s, background .2s;
}
.product-choice:hover { border-color: var(--rose); }
.product-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.product-choice:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 2px; }
.product-choice.is-checked { border-color: var(--cocoa); background: var(--blush); box-shadow: 0 0 0 1px var(--cocoa) inset; }
.product-choice.is-sold-out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.product-choice.is-sold-out input { cursor: not-allowed; }
.orders-closed .product-choices { display: none; }
.product-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.add-btn { width: 100%; min-height: 44px; padding-inline: 10px; font-size: 15px; }
.add-btn.added { animation: added .5s var(--ease); }
@keyframes added { 30% { transform: scale(.94); } 60% { transform: scale(1.03); } }
.in-cart { font-size: 13px; color: var(--ok); font-weight: 700; min-height: 1.4em; text-align: center; margin-top: 6px; }
@media (min-width: 720px) {
  .product-body { padding: 18px 18px 16px; }
  .product-name { font-size: 22px; }
}

/* ---------- Quantity stepper ---------- */
.qty {
  display: inline-flex; align-items: center; justify-content: space-between;
  background: var(--blush-2); border-radius: 999px; padding: 3px; align-self: stretch;
}
.qty-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--white); box-shadow: var(--shadow-s);
  font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, transform .15s;
}
.qty-btn:hover:not(:disabled) { background: var(--blush); }
.qty-btn:active:not(:disabled) { transform: scale(.9); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-value { min-width: 2.2em; text-align: center; font-weight: 800; font-size: 17px; }

/* ---------- How to order ---------- */
/* ---------- Reviews ---------- */
.reviews { padding-block: 56px; background: var(--blush-2); }
.reviews-feature {
  margin: 0 auto 24px; width: fit-content; max-width: 100%; text-align: center;
  font-family: var(--font-display); font-size: clamp(19px, 3vw, 24px); font-weight: 700;
}
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .review-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .review-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 38px 22px 20px; box-shadow: var(--shadow-s);
}
.review::before {
  content: "“"; position: absolute; top: -6px; inset-inline-start: 18px;
  font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--rose);
}
.review p { font-weight: 500; }
.reviews-more { margin-top: 22px; text-align: center; }
.reviews-more a { font-weight: 700; text-underline-offset: 3px; }

.how { background: linear-gradient(180deg, var(--cream), var(--blush) 140%); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { background: var(--white); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blush); font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 10px;
}
.step h3 { font-size: 21px; margin-bottom: 4px; }
.step p { color: var(--cocoa-3); }
.payment-note {
  margin: 26px auto 0; width: fit-content; max-width: 100%;
  background: var(--white); border: 1px dashed var(--rose); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blush); padding-block: 40px; text-align: center; border-top: 1px solid var(--rose); }
.footer-inner { display: grid; justify-items: center; gap: 12px; }
.footer-logo { height: 56px; width: auto; }
.ig-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  background: var(--white); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-s);
}
.copyright { font-size: 13px; color: var(--cocoa-3); }

/* ---------- Mobile cart bar ---------- */
.cart-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 250, 247, 0), var(--cream) 30%);
  animation: rise .35s var(--ease);
}
@keyframes rise { from { transform: translateY(100%); } }
.cart-bar-btn {
  width: 100%; max-width: 560px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 56px; padding: 8px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cocoa); color: var(--cream); box-shadow: var(--shadow-l); font-weight: 700;
}
.cart-bar-btn strong { font-family: var(--font-display); font-size: 19px; }
.cart-bar-cta { font-size: 14px; opacity: .85; }
@media (min-width: 900px) { .cart-bar { display: none; } body.has-cart-bar { padding-bottom: 0; } }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--cocoa); background: var(--cream); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(32, 15, 15, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog[open] { animation: fade-in .25s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }

.drawer {
  position: fixed; margin: 0; inset: 0 auto 0 0;   /* RTL: cart opens from the left (end) side */
  width: min(440px, 100%); height: 100dvh; height: 100vh; height: 100dvh;
  box-shadow: var(--shadow-l);
}
.drawer[open] { animation: slide-in .32s var(--ease); }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head, .modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--blush);
}
.drawer-head h2, .modal-head h2 { font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 8px; }
.grand-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.grand-total strong { font-family: var(--font-display); font-size: 26px; }

.cart-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  animation: fade-in .3s var(--ease);
}
.cart-line img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--blush-2); }
.cart-line-ph { width: 72px; height: 72px; border-radius: 16px; background: var(--blush-2); display: grid; place-items: center; font-size: 30px; }
.cart-line-info { display: grid; gap: 2px; min-width: 0; font-size: 15px; }
.cart-line-name strong { font-size: 16px; }
.cart-line .label { color: var(--cocoa-3); font-size: 13px; }
.cart-line-controls { display: flex; align-items: center; gap: 8px; margin-block: 6px; flex-wrap: wrap; }
.cart-line-controls .qty { align-self: auto; }
.cart-line-controls .qty-btn { width: 34px; height: 34px; }
.remove-btn {
  margin-inline-start: auto; background: none; border: 0; color: var(--error);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px 6px; min-height: 40px;
}
.remove-btn:hover { text-decoration: underline; }
.cart-line-sub strong { font-family: var(--font-display); font-size: 18px; }

.empty-cart { text-align: center; padding: 48px 12px; display: grid; gap: 6px; justify-items: center; }
.empty-icon { font-size: 52px; margin-bottom: 4px; }
.empty-cart .btn { margin-top: 14px; }

.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-inner { overflow-y: auto; overscroll-behavior: contain; padding: 0 0 20px; display: grid; gap: 16px; }
.modal-inner > *:not(.modal-head) { margin-inline: 18px; min-width: 0; }
.modal-inner > .btn-block { width: auto; }
[data-ig-handle], [data-order-ref] { display: inline-block; direction: ltr; unicode-bidi: isolate; }
.modal-head { position: sticky; top: 0; z-index: 2; }
@media (max-width: 560px) {
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-inner { flex: 1; }
}
.sub-title { font-size: 19px; margin-bottom: 8px; }

/* Summary table */
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary-table th, .summary-table td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--line); }
.summary-table thead th { background: var(--blush-2); font-size: 12.5px; color: var(--cocoa-2); font-weight: 700; }
.summary-table tbody th { font-weight: 700; }
.summary-table td { white-space: nowrap; }
.summary-table tfoot th, .summary-table tfoot td { border-bottom: 0; font-size: 17px; font-weight: 800; background: var(--blush); }
.summary-table tfoot td { font-family: var(--font-display); font-size: 20px; }
.summary-table th:first-child, .summary-table td:first-child { padding-inline-start: 14px; }
.summary-table th:last-child, .summary-table td:last-child { padding-inline-end: 14px; }

/* Form */
.checkout-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--cocoa-3); font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--cocoa);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23200F0F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: left 16px center; background-size: 12px 8px; background-repeat: no-repeat;
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(181, 122, 85, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error, .form-error { color: var(--error); font-size: 14px; font-weight: 500; min-height: 0; }
.field-error:empty, .form-error:empty { display: none; }
.checkout-notices { background: var(--blush); border-radius: var(--radius); padding: 14px 16px; font-weight: 700; display: grid; gap: 4px; }
.payment-box { background: var(--white); border: 1px dashed var(--rose); border-radius: var(--radius); padding: 14px 16px; font-weight: 700; }

/* "Order can't be changed" warning — above the name/phone fields */
.warning-box {
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid #F3D8B8; border-inline-start: 5px solid #E2A25E;
  border-radius: var(--radius); padding: 14px 16px; font-weight: 700; line-height: 1.75;
}
.field-hint { font-size: 13px; color: var(--cocoa-3); }

/* Delivery / Take Away selection cards */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 92px; padding: 12px 10px; text-align: center; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  font-weight: 700; line-height: 1.4;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.choice-card:hover { border-color: var(--rose); }
.choice-card:active { transform: scale(.98); }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 2px; }
.choice-card.is-checked { border-color: var(--cocoa); background: var(--blush); box-shadow: 0 0 0 1px var(--cocoa) inset; }
.choice-card.is-checked::after {
  content: "✓"; position: absolute; top: 8px; inset-inline-end: 10px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--cocoa); color: var(--cream);
  font-size: 13px; line-height: 22px; text-align: center;
}
.choice-icon { font-size: 26px; line-height: 1; }
.choice-text { font-size: 15px; }
.choice-note { font-size: 12px; font-weight: 400; color: var(--error); }
.choice-card.is-disabled { opacity: .55; cursor: not-allowed; background: var(--cream); }
.choice-card.is-disabled:hover { border-color: var(--line); }
.choice-card.is-disabled:active { transform: none; }
.choice-card.is-disabled input { cursor: not-allowed; }
fieldset.field[aria-invalid="true"] .choice-card { border-color: var(--error); }

.order-details { display: grid; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.order-details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 15px; }
.order-details span { color: var(--cocoa-3); }
.order-details strong { min-width: 0; overflow-wrap: anywhere; }

/* Success */
.success-hero { text-align: center; display: grid; gap: 4px; padding-top: 4px; }
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--blush); display: grid; place-items: center; font-size: 44px;
  animation: pop-in .6s var(--ease);
}
@keyframes pop-in { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.success-hero h2 { font-size: 28px; outline: none; }
.status-box { border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; font-size: 15px; border: 1px solid transparent; }
.status-box.warn { background: var(--warn-bg); color: var(--warn); border-color: #F3D8B8; }
.status-box.info { background: var(--info-bg); color: var(--info); border-color: #D9D6F3; }
.status-box.ok { background: var(--ok-bg); color: var(--ok); border-color: #C9E3D3; }
.status-box strong { font-size: 16px; }
.order-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.order-meta > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; display: grid; }
.order-meta span { font-size: 12.5px; color: var(--cocoa-3); }
.order-meta strong { font-size: 15px; }
.order-notes { margin-top: 10px; font-size: 15px; }
.send-steps { display: grid; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.send-steps ol { margin: 0 0 4px; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 15px; color: var(--cocoa-2); }
.message-preview summary { cursor: pointer; font-weight: 700; padding: 6px 0; color: var(--cocoa-2); }
.message-preview textarea {
  width: 100%; margin-top: 6px; font: inherit; font-size: 14px; line-height: 1.6;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px; resize: vertical;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  bottom: calc(96px + env(safe-area-inset-bottom));
  background: var(--cocoa); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-l); text-align: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
dialog .toast { top: calc(76px + env(safe-area-inset-top)); bottom: auto; transform: translateY(-12px); }
dialog .toast.show { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
