/* Lulu Products for Cooking — design tokens (derived from the original layout)
   Brand colours taken from the logo: yellow #EDC414, green #148841, red #C82526 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root{
  --charcoal: #081912;
  --charcoal-2: #123425;
  --cream: #0a2016;
  --cream-2: #17402e;
  --flame: #EDC414;
  --flame-dark: #F2D04A;
  --ember: #E5484D;
  --gold: #F5D44A;
  --ink: #f4f3ea;
  --ink-soft: #adbdb1;
  --line: rgba(255,255,255,0.10);
  --radius: 18px;
  --shadow-card: 0 10px 24px -12px rgba(27,23,18,0.35);
  --ff-display: "Tajawal", sans-serif;
  --ff-body: "Tajawal", sans-serif;
  --ff-mono: "JetBrains Mono", monospace;
}

/* ---- theme tokens: defaults are the ORIGINAL colour literals (so the default look is unchanged).
        /assets/theme.js overrides them with style.setProperty when another theme is chosen. ---- */
:root{
  --flame-rgb: 237,196,20;
  --ink-rgb: 251,245,234;
  --overlay-rgb: 255,255,255;
  --danger-rgb: 168,42,24;
  --btn-shadow-rgb: 168,42,24;
  --amber-rgb: 255,176,32;
  --flame-ink: #EDC414;
  --grad-start: #F5D44A;
  --tick: #fff;
  --on-flame-soft: rgba(27,21,0,.7);
  --header-bg: rgba(27,23,18,0.92);
  --scrim: rgba(20,16,12,0.55);
  --card-border: rgba(33,27,21,0.04);
  --close-bg: rgba(33,27,21,0.06);
  --shadow-soft: rgba(0,0,0,0.25);
  --shadow-logo: rgba(0,0,0,.35);
  --shadow-strong: rgba(0,0,0,0.45);
  --powered: #64748B;
  --hero-glow-a: rgba(237,196,20,0.16);
  --hero-glow-b: rgba(242,169,59,0.10);
  --hero-bloom: rgba(237,196,20,0.35);
  --logo-glow: rgba(237,196,20,0.35);
  --logo-glow-2: rgba(242,169,59,0.5);
  --pattern-opacity: 0.05;
  --pattern-opacity-hero: 0.07;
  --pattern-filter: none;
}

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before{
  content:"";
  position: fixed; inset:0;
  background-image: url("/assets/pattern.png");
  background-repeat: repeat;
  background-size: 190px;
  opacity: var(--pattern-opacity);
  filter: var(--pattern-filter);
  pointer-events: none;
  z-index: 0;
}
#siteHeader, .hero, main, .site-footer, .cart-overlay, .checkout-overlay, .product-overlay, .lang-overlay, .sticky-cart{
  position: relative; z-index: 1;
}

img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; border:none; }
input, textarea{ font-family: inherit; }

/* subtle grain/ember texture on dark sections */
.hero, .site-footer{
  background-color: var(--charcoal);
  background-image:
    radial-gradient(circle at 15% 15%, var(--hero-glow-a), transparent 45%),
    radial-gradient(circle at 85% 0%, var(--hero-glow-b), transparent 40%);
}

/* ============== HEADER ============== */
.demo-banner{
  position: relative; z-index: 50;
  display:flex; align-items:center; justify-content:center; gap:8px;
  flex-wrap:wrap;
  background: var(--flame-dark);
  color:#fff;
  padding: 10px 16px;
  font-size: 12.5px; font-weight:700;
  text-align:center;
  line-height:1.5;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.demo-banner-icon{ font-size:14px; flex-shrink:0; }

.site-header{
  position: sticky; top:0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--overlay-rgb),0.06);
}
.header-inner{
  max-width: 720px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 8px 16px;
}
.header-actions{ display:flex; align-items:center; gap:8px; }
.lang-btn{
  background: rgba(var(--overlay-rgb),0.08); color: var(--ink);
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; transition: transform .15s ease, background .2s ease;
}
.lang-btn:active{ transform: scale(0.92); }
.checkout-nav-btn{
  background: var(--flame); color:var(--on-flame); font-weight:800; font-size:13px;
  padding: 10px 16px; border-radius: 100px;
  white-space:nowrap;
  transition: transform .15s ease, background .2s ease;
}
.checkout-nav-btn:active{ transform: scale(0.94); background: var(--flame-dark); }
.brand-logo{
  height:44px; width:auto;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px var(--shadow-soft);
}
.cart-btn{
  position:relative;
  background: rgba(var(--overlay-rgb),0.08);
  color: var(--ink);
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition: transform .15s ease, background .2s ease;
}
.cart-btn:active{ transform: scale(0.92); }
.cart-count{
  position:absolute; top:-4px; left:-4px;
  background: var(--flame); color:var(--on-flame);
  font-family: var(--ff-mono); font-weight:700;
  font-size: 11px; min-width:18px; height:18px; padding:0 3px;
  border-radius: 50%; display:flex; align-items:center; justify-content:center;
  border: 2px solid var(--charcoal);
}

/* ============== HERO ============== */
.hero{
  position:relative;
  padding: 28px 20px 44px;
  color: var(--ink);
  overflow:hidden;
}
.hero-ember{
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% 120%, var(--hero-bloom), transparent 60%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image: url("/assets/pattern.png");
  background-repeat: repeat;
  background-size: 150px;
  opacity: var(--pattern-opacity-hero);
  filter: var(--pattern-filter);
  pointer-events:none;
  z-index:1;
}
.hero-inner{
  position:relative; z-index:2;
  max-width: 620px; margin:0 auto;
  text-align:center;
}
.hero-logo{
  width: 108px; margin: 0 auto 14px;
  background: var(--cream);
  border-radius: 20px;
  padding: 12px 16px;
  filter: drop-shadow(0 8px 18px var(--logo-glow));
  animation: flicker 4.5s ease-in-out infinite;
}
@keyframes flicker{
  0%,100%{ filter: drop-shadow(0 8px 18px var(--logo-glow)); }
  50%{ filter: drop-shadow(0 8px 26px var(--logo-glow-2)); }
}
.hero-title{
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.5;
  margin: 0 0 12px;
}
.hero-title span{ color: var(--flame-ink); }
.hero-desc{
  font-size: 16px;
  color: rgba(var(--ink-rgb),0.78);
  max-width: 340px; margin: 0 auto 22px;
  line-height:1.6;
}
.btn-order{
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  color:var(--on-flame); font-weight:700; font-size:16px;
  padding: 15px 30px; border-radius: 100px;
  text-decoration:none;
  box-shadow: 0 12px 24px -8px rgba(var(--btn-shadow-rgb),0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-order:active{ transform: scale(0.96); }
.btn-order.full{ width:100%; justify-content:center; border-radius: 14px; font-size:17px; padding:16px; }

/* ============== INFO STRIP ============== */
.info-strip{
  background: var(--cream-2);
  padding: 18px 16px;
  display:grid; grid-template-columns: 1fr 1fr; gap: 14px 10px;
  border-bottom: 1px solid var(--line);
}
.info-item{
  display:flex; align-items:flex-start; gap:8px;
  color: var(--ink);
  text-decoration: none;
}
.info-item--phone{
  grid-column: 1 / -1;
  justify-content:center;
  text-align:center;
  flex-direction:column;
  align-items:center;
}
.info-item--phone svg{ margin:0 0 2px; }
.info-item svg{ color: var(--flame-ink); flex-shrink:0; margin-top:2px; }
.info-item div{ display:flex; flex-direction:column; font-size:12.5px; line-height:1.5; }
.info-item b{ font-size:13px; margin-bottom:1px; }
.info-item span{ color: var(--ink-soft); }
a.info-item{
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
a.info-item:active{ transform: scale(0.97); opacity: 0.75; }
a.info-item span{ color: var(--flame-dark); font-weight:600; }

/* ============== MENU ============== */
.menu{ max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.menu-heading{ padding: 26px 4px 10px; text-align:center; }
.eyebrow{
  display:inline-block; font-family: var(--ff-mono); font-size:12px;
  letter-spacing: 2px; color: var(--flame-ink); font-weight:700;
  margin-bottom:6px;
}
.menu-heading h2{
  font-family: var(--ff-display); font-weight:900; font-size: 26px; margin:0;
}

.cat-nav{
  display:flex; flex-direction:column; gap:8px; padding: 4px 2px 18px;
  background: var(--cream);
}
.cat-pill{
  width:100%; text-align:center;
  background: var(--cream-2); border:1px solid var(--line);
  padding: 12px 18px; border-radius: 14px;
  font-size: 14px; font-weight:700; color: var(--ink-soft);
  transition: all .2s ease;
}
.cat-pill.active{
  background: var(--flame); color:var(--on-flame); border-color: var(--flame);
}

.cat-section{ padding: 8px 0 30px; scroll-margin-top: 130px; }
.cat-title{
  font-family: var(--ff-display); font-weight:800; font-size: 20px;
  display:flex; align-items:center; gap:8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--line);
}
.flame{ font-size:20px; }

.product-card{
  position: relative;
  display:flex; gap:14px;
  background:var(--cream-2); border-radius: var(--radius);
  padding: 12px; margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card.bestseller{
  border: 1.5px solid rgba(var(--flame-rgb),0.45);
  box-shadow: 0 12px 26px -12px rgba(var(--flame-rgb),0.5);
}
.badge-bestseller{
  position:absolute; top:-10px; right:12px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  color:var(--on-flame); font-size:11.5px; font-weight:800;
  padding: 5px 12px; border-radius: 100px;
  box-shadow: 0 6px 14px -6px rgba(var(--btn-shadow-rgb),0.6);
  z-index:2;
}

/* ---- promo note inside cart / checkout ---- */
.promo-note{
  font-size: 12.5px; text-align:center;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 10px;
  background: rgba(var(--flame-rgb),0.08); color: var(--flame-dark); font-weight:700;
}
.promo-note.applied{ background: rgba(var(--amber-rgb),0.15); color: var(--gold); }

.cart-summary .row.discount{ color: var(--gold); font-weight:700; }
.cart-summary .row.discount span:last-child{ color: var(--gold); }
.product-card:active{ transform: scale(0.985); }
.product-img{
  width: 96px; height: 96px; border-radius: 14px; object-fit: cover;
  flex-shrink:0; background: var(--cream-2);
}
.product-card.simple .product-img{ object-fit: contain; padding:6px; }
.product-body{ flex:1; min-width:0; display:flex; flex-direction:column; }
.product-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.from-label{ font-size:10.5px; color: var(--ink-soft); font-weight:600; margin-inline-end:2px; }
.product-top h4{ margin:2px 0 4px; font-size:16px; font-weight:800; }
.price{
  font-family: var(--ff-mono); font-weight:700; font-size:13px;
  color: var(--flame-dark); background: rgba(var(--flame-rgb),0.09);
  padding: 3px 8px; border-radius:8px; white-space:nowrap; flex-shrink:0;
}
.product-desc{
  font-size: 12.5px; color: var(--ink-soft); line-height:1.5;
  margin: 0 0 10px; flex:1;
}
.btn-add{
  align-self:flex-start;
  background: var(--flame); color:var(--on-flame); font-weight:700; font-size:13px;
  padding: 8px 16px; border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}
.btn-add:active{ transform: scale(0.94); background: var(--flame-dark); }

/* ============== FOOTER ============== */
.site-footer{
  text-align:center; color: rgba(var(--ink-rgb),0.6);
  padding: 34px 20px calc(34px + env(safe-area-inset-bottom));
  font-size: 12.5px;
}
.footer-logo{
  width:70px; margin: 0 auto 12px;
  background: var(--cream);
  border-radius: 14px;
  padding: 8px 10px;
}

/* ---- Powered by Riglit signature ---- */
.riglit-signature{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--ink-rgb),0.12);
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.powered-text{ color: var(--powered); }
.riglit-link{
  color: #2563EB;
  text-decoration: none;
  transition: color 0.25s ease;
}
.riglit-link:hover,
.riglit-link:focus-visible{ color: #1D4ED8; }

/* ============== STICKY CART BAR ============== */
.sticky-cart{
  position: fixed; left:16px; right:16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  background: var(--flame); color:var(--on-flame);
  border-radius: 16px;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 10px 12px 18px;
  box-shadow: 0 16px 30px -10px var(--shadow-strong);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cart.hidden{ transform: translateY(120%); opacity:0; pointer-events:none; }
.sticky-cart-info{ display:flex; flex-direction:column; font-size:12px; gap:2px; color: var(--on-flame-soft); }
.sticky-cart-info span:last-child{ font-family: var(--ff-mono); font-weight:700; font-size:15px; color:var(--on-flame); }
#stickyCartBtn{
  background: var(--flame); color:var(--on-flame); font-weight:700; font-size:14px;
  padding: 12px 20px; border-radius: 12px;
}

/* ============== OVERLAY / SHEETS ============== */
.overlay{
  position: fixed; inset:0; z-index: 100;
  background: var(--scrim);
  display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
}
.overlay.open{ opacity:1; pointer-events:auto; }
.sheet{
  position:relative;
  width:100%; max-width: 560px;
  max-height: 88vh; overflow-y:auto;
  background: var(--cream);
  border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.overlay.open .sheet{ transform: translateY(0); }
.sheet-close{
  position:absolute; top:14px; left:14px;
  width:34px; height:34px; border-radius:50%;
  background: var(--close-bg); color:var(--ink);
  font-size:15px; display:flex; align-items:center; justify-content:center;
}
.sheet-title{ font-family: var(--ff-display); font-size:20px; font-weight:800; margin: 4px 0 16px; text-align:center; }

/* ---- product options sheet ---- */
.ps-header{ display:flex; gap:14px; margin-bottom:16px; }
.ps-img{ width:88px; height:88px; border-radius:14px; object-fit:cover; flex-shrink:0; }
.ps-header h3{ margin:0 0 4px; font-size:18px; font-weight:800; }
.ps-header p{ margin:0; font-size:12.5px; color: var(--ink-soft); line-height:1.5; }
.ps-price{ font-family: var(--ff-mono); font-weight:700; color: var(--flame-dark); font-size:14px; }

.opt-group{ margin-bottom: 16px; }
.opt-group h5{
  font-size:13px; font-weight:800; color: var(--ink-soft);
  text-transform:uppercase; letter-spacing:0.5px; margin:0 0 8px;
}
.variant-select{ display:flex; gap:10px; }
.variant-opt{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;
  background: var(--cream-2); border:2px solid var(--line); border-radius:14px;
  padding:10px 8px; font-family:inherit; color:var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.variant-opt .variant-name{ font-weight:700; font-size:13.5px; }
.variant-opt .variant-price{ font-family: var(--ff-mono); font-size:12.5px; color: var(--ink-soft); }
.variant-opt.active{ border-color: var(--flame); background: rgba(var(--flame-rgb),0.10); }
.variant-opt.active .variant-name{ color: var(--flame-ink); }
.variant-opt.active .variant-price{ color: var(--flame-dark); }
.fries-select{ display:flex; flex-direction:column; gap:8px; }
.fries-opt{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; text-align:start;
  background: var(--cream-2); border:2px solid var(--line); border-radius:12px;
  padding:10px 14px; font-family:inherit; color:var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.fries-opt .fries-name{ font-weight:700; font-size:13.5px; }
.fries-opt .fries-price{ font-family: var(--ff-mono); font-size:12.5px; color: var(--flame-dark); font-weight:700; }
.fries-opt.active{ border-color: var(--flame); background: rgba(var(--flame-rgb),0.10); }
.fries-opt.active .fries-name{ color: var(--flame-ink); }
.opt-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
  font-size:14.5px;
}
.opt-row:last-child{ border-bottom:none; }
.opt-row .opt-price{ color: var(--ink-soft); font-family: var(--ff-mono); font-size:12.5px; margin-inline-start:auto; margin-inline-end:12px; }

.switch{
  position:relative; width:42px; height:24px; flex-shrink:0;
  background: var(--charcoal-2); border-radius: 100px; transition: background .2s ease;
}
.switch::after{
  content:""; position:absolute; top:2px; right:2px;
  width:20px; height:20px; border-radius:50%; background:#fff;
  box-shadow: 0 1px 3px var(--shadow-soft);
  transition: transform .2s ease;
}
.switch.on{ background: var(--flame); }
.switch.on::after{ transform: translateX(-18px); }

.checkline{
  width:22px; height:22px; border-radius:6px; flex-shrink:0;
  border: 2px solid var(--charcoal-2); position:relative; transition: all .15s ease;
}
.checkline.on{ background: var(--flame); border-color: var(--flame); }
.checkline.on::after{
  content:"✓"; position:absolute; inset:0; color:var(--tick);
  font-size:14px; display:flex; align-items:center; justify-content:center; font-weight:900;
}

.qty-row{
  display:flex; align-items:center; justify-content:space-between;
  margin: 6px 0 18px;
}
.qty-control{ display:flex; align-items:center; gap:14px; background:var(--cream-2); border-radius:100px; padding:6px 8px; border:1px solid var(--line); }
.qty-btn{
  width:30px; height:30px; border-radius:50%; background: var(--cream-2);
  font-size:18px; font-weight:700; display:flex; align-items:center; justify-content:center; color: var(--ink);
}
.qty-val{ font-family: var(--ff-mono); font-weight:700; min-width:18px; text-align:center; }

.ps-total-btn{
  width:100%; background: linear-gradient(135deg, var(--flame), var(--ember));
  color:var(--on-flame); font-weight:800; font-size:16px; padding:16px; border-radius:14px;
  display:flex; align-items:center; justify-content:space-between; padding-inline: 20px;
}

/* ---- cart sheet ---- */
.cart-item{
  display:flex; gap:12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img{ width:64px; height:64px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.ci-body{ flex:1; min-width:0; }
.ci-body h5{ margin:0 0 3px; font-size:14.5px; font-weight:800; }
.ci-mods{ font-size:11.5px; color: var(--ink-soft); line-height:1.5; margin-bottom:6px; }
.ci-bottom{ display:flex; align-items:center; justify-content:space-between; }
.ci-qty{ display:flex; align-items:center; gap:10px; background: var(--cream-2); border-radius:100px; padding:4px 10px; }
.ci-qty button{ background:none; font-size:16px; font-weight:700; color:var(--ink); width:18px; }
.ci-price{ font-family: var(--ff-mono); font-weight:700; font-size:13.5px; color: var(--flame-dark); }
.ci-remove{ background:none; color: var(--ember); font-size:12px; text-decoration:underline; margin-inline-start:10px; }

.cart-empty{ text-align:center; padding: 40px 10px; color: var(--ink-soft); font-size:14px; }
.hidden{ display:none !important; }

.cart-summary{ padding: 14px 2px; }
.cart-summary .row{ display:flex; justify-content:space-between; font-size:14px; padding:6px 0; color: var(--ink-soft); }
.cart-summary .row.total{ color: var(--ink); font-weight:800; font-size:17px; border-top: 2px dashed var(--line); margin-top:6px; padding-top:14px; }
.cart-summary .row span:last-child{ font-family: var(--ff-mono); }

/* ---- checkout: fulfillment ---- */
.fulfillment-toggle{ display:flex; gap:10px; margin: 6px 0 16px; }
.ful-opt{
  flex:1; background:var(--cream-2); border:2px solid var(--line); border-radius:14px;
  padding: 12px 8px; text-align:center; transition: all .2s ease;
}
.ful-opt span{ display:block; font-weight:800; font-size:14px; }
.ful-opt small{ display:block; font-size:11.5px; color: var(--ink-soft); margin-top:3px; }
.ful-opt.active{ border-color: var(--flame); background: rgba(var(--flame-rgb),0.06); }
.ful-opt.active span{ color: var(--flame-dark); }

.delivery-fields, .pickup-fields{ display:flex; flex-direction:column; gap:12px; margin-bottom: 8px; }
.branch-select{ display:flex; flex-direction:column; gap:10px; }
.branch-opt{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; text-align:start; cursor:pointer; box-sizing:border-box;
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius:14px;
  padding: 12px 14px; font-family: inherit; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.branch-opt:focus-visible{ outline: 2px solid var(--flame); outline-offset: 2px; }
.branch-opt .branch-name{ font-weight:700; font-size:14px; }
.branch-opt .branch-map{
  font-size:12px; font-weight:700; color: var(--flame-ink);
  border: 1px solid var(--flame); border-radius:100px; padding:5px 12px;
  text-decoration:none; white-space:nowrap;
  display:inline-flex; align-items:center; gap:4px;
}
.branch-opt .branch-map::before{ content:"📍"; font-size:11px; }
.branch-opt.active{ border-color: var(--flame); background: rgba(var(--flame-rgb),0.10); }
.branch-opt.active .branch-name{ color: var(--flame-ink); }

.city-field{ margin-bottom:12px; }
.city-field-label{ font-size:13px; font-weight:700; color: var(--ink-soft); display:block; margin-bottom:8px; }
.city-select{ display:flex; gap:10px; }
.city-opt{
  flex:1; text-align:center;
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius:12px;
  padding: 11px 10px; font-family: inherit; font-weight:700; font-size:14px; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.city-opt.active{ border-color: var(--flame); background: rgba(var(--flame-rgb),0.10); color: var(--flame-ink); }
.delivery-fields label, .pickup-fields label{ font-size:13px; font-weight:700; color: var(--ink-soft); display:flex; flex-direction:column; gap:6px; }
.delivery-fields input, .delivery-fields textarea, .pickup-fields input,
.customer-fields input{
  border: 1px solid var(--line); border-radius:12px; padding: 12px 14px;
  font-size:14.5px; background:var(--cream-2); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.delivery-fields textarea{ resize: vertical; min-height:60px; }

.customer-fields{ display:flex; flex-direction:column; gap:12px; margin-bottom: 14px; }
.customer-fields label{ font-size:13px; font-weight:700; color: var(--ink-soft); display:flex; flex-direction:column; gap:6px; }

.order-notes-field{ margin: 4px 0 14px; }
.order-notes-field label{ font-size:13px; font-weight:700; color: var(--ink-soft); display:flex; flex-direction:column; gap:6px; position:relative; }
.order-notes-field textarea{
  border: 1px solid var(--line); border-radius:12px; padding: 12px 14px;
  font-size:14.5px; background:var(--cream-2); color: var(--ink);
  resize: vertical; min-height:80px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.notes-counter{
  align-self:flex-end;
  font-size: 11.5px; font-weight:600; color: var(--ink-soft);
  font-family: var(--ff-mono);
}
.notes-counter.limit-near{ color: var(--flame-dark); }
.notes-counter.limit-reached{ color: var(--ember); }

/* animated reveal for delivery-only fields */
.delivery-fields{
  overflow:hidden;
  max-height: 500px;
  opacity: 1;
  transition: max-height .35s ease, opacity .3s ease, margin .35s ease;
}
.delivery-fields.hidden{
  display:flex !important; /* keep in flow so transition can animate */
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

/* invalid input state */
input.invalid, textarea.invalid{
  border-color: var(--ember) !important;
  box-shadow: 0 0 0 3px rgba(var(--danger-rgb),0.08);
}
.field-error{
  font-size: 12px; color: var(--ember); font-weight:700;
}

/* summary banner shown when trying to send an invalid order */
.form-error{
  background: rgba(var(--danger-rgb),0.08); color: var(--ember);
  border: 1px solid rgba(var(--danger-rgb),0.25);
  border-radius: 12px; padding: 12px 14px;
  font-size: 13px; font-weight:700; text-align:center;
  margin-bottom: 12px;
  animation: shake .35s ease;
}
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-4px); }
  75%{ transform: translateX(4px); }
}

.btn-whatsapp.disabled{
  opacity: 0.5;
  filter: grayscale(0.3);
}

/* ---- order ticket (signature element) ---- */
.ticket{
  background:var(--cream-2); border-radius:14px; padding: 16px;
  margin-bottom: 18px;
  font-family: var(--ff-mono); font-size:12.5px; color: var(--ink);
  border: 1px dashed var(--ink-soft);
  position:relative;
}
.ticket::before, .ticket::after{
  content:""; position:absolute; width:16px; height:16px; background: var(--cream);
  border-radius:50%; top:-9px;
}
.ticket::before{ left:-9px; }
.ticket::after{ right:-9px; }
.ticket-line{ display:flex; justify-content:space-between; padding: 3px 0; }
.ticket-line.name{ font-weight:700; }
.ticket-mods{ color: var(--ink-soft); padding-inline-start:10px; font-size:11px; }
.ticket-divider{ border-top:1px dashed var(--line); margin: 8px 0; }

/* ---- language selection modal ---- */
.lang-sheet{ text-align:center; }
.lang-modal-header{ margin: 6px 0 20px; }
.lang-modal-header h3{ font-family: var(--ff-display); font-size:20px; font-weight:800; margin:0 0 4px; }
.lang-modal-header p{ font-size:13px; color: var(--ink-soft); margin:0; }
.lang-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:10px;
}
.lang-option{
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:var(--cream-2); border: 1.5px solid var(--line); border-radius:14px;
  padding: 14px 10px; font-size:15px; font-weight:700; color: var(--ink);
  transition: all .15s ease;
}
.lang-option:active{ transform: scale(0.96); }
.lang-option.selected{ border-color: var(--flame); background: rgba(var(--flame-rgb),0.08); color: var(--flame-dark); }
.lang-option .flag{ font-size:20px; }

/* ---- toast ---- */
.toast{
  position: fixed; left:50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(0);
  background: var(--flame-dark); color:var(--on-flame); font-weight:700; font-size:13.5px;
  padding: 13px 22px; border-radius: 100px;
  box-shadow: 0 16px 30px -10px var(--shadow-strong);
  z-index: 200; max-width: 90vw; text-align:center;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.hidden{ opacity:0; pointer-events:none; transform: translateX(-50%) translateY(20px); }

/* ---- whatsapp cta ---- */
.btn-whatsapp.sending{ opacity:0.85; pointer-events:none; }
.wa-spinner{
  width:22px; height:22px; border-radius:50%;
  border: 3px solid rgba(255,255,255,0.35);
  border-top-color:#fff;
  animation: waSpin 0.7s linear infinite;
}
@keyframes waSpin{ to{ transform: rotate(360deg); } }
.btn-whatsapp{
  width:100%; background:#25D366; color:#fff; font-weight:800; font-size:16px;
  padding:17px; border-radius:14px; display:flex; align-items:center; justify-content:center; gap:10px;
  box-shadow: 0 12px 24px -10px rgba(37,211,102,0.55);
  transition: transform .15s ease;
}
.btn-whatsapp:active{ transform: scale(0.97); }

/* ============== RESPONSIVE ============== */
@media (min-width: 600px){
  .hero-image{ max-width: 300px; }
  .product-img{ width:112px; height:112px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-logo{ animation:none; }
  *{ transition-duration: 0.01ms !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--flame); outline-offset: 2px;
}

/* =========================================================
   Lulu identity overrides (colours/logo only — layout is the original)
   ========================================================= */
:root{ --brand-green:#148841; --brand-red:#C82526; --brand-yellow:#EDC414; --on-flame:#1B1500; }
.hero-logo{ width:132px; height:132px; padding:0; background:none; border-radius:50%; object-fit:contain; }
.brand-logo{ height:46px; width:46px; padding:0; background:none; border-radius:50%; box-shadow:0 2px 8px var(--shadow-logo); object-fit:contain; }
.footer-logo{ width:84px; height:84px; border-radius:50%; background:none; padding:0; object-fit:contain; margin:0 auto 10px; }
.checkout-nav-btn,.cart-count,.cat-pill.active,.btn-order,.badge-bestseller,.btn-add,.ps-total-btn,.toast,.sticky-cart{ color:var(--on-flame); }
.btn-order,.badge-bestseller,.ps-total-btn{ background:linear-gradient(135deg,var(--grad-start),var(--flame)); }
.sticky-cart-info{ color:var(--on-flame-soft); } .sticky-cart-info span:last-child{ color:var(--on-flame); }
#stickyCartBtn{ background:var(--on-flame); color:var(--flame); }
.toast{ background:var(--flame); }
.btn-add:disabled,.btn-add.soldout{ background:rgba(var(--overlay-rgb),.10); color:var(--ink-soft); cursor:not-allowed; }
.product-card.soldout .product-img{ filter:grayscale(.85) opacity(.55); }
.product-card.soldout h4{ color:var(--ink-soft); }
.badge-soldout{ position:absolute; top:-10px; right:12px; z-index:2; background:var(--brand-red); color:#fff; font-size:11.5px; font-weight:800; padding:5px 12px; border-radius:100px; }
.product-unit{ font-size:12px; color:var(--ink-soft); font-weight:600; margin:-2px 0 4px; }
.price-wrap{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex-shrink:0; }
.price-old{ font-family:var(--ff-mono); font-size:11.5px; color:var(--ink-soft); text-decoration:line-through; }
.discount-chip{ font-size:10.5px; font-weight:800; background:var(--brand-red); color:#fff; padding:2px 7px; border-radius:100px; }
.product-img.ph{ object-fit:contain; padding:10px; background:var(--cream-2); }
.menu-state{ text-align:center; padding:40px 16px; color:var(--ink-soft); font-weight:700; }
.menu-state button{ margin-top:14px; background:var(--flame); color:var(--on-flame); font-weight:800; padding:10px 22px; border-radius:100px; }
.spinner{ width:30px; height:30px; margin:0 auto 12px; border-radius:50%; border:3px solid rgba(var(--overlay-rgb),.15); border-top-color:var(--flame); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.lang-btn{ width:auto; min-width:40px; padding:0 12px; font-size:13px; font-weight:800; color:var(--ink); }
.info-item.hidden{ display:none; }
/* ---- LTR (English): the original page was RTL-only, so mirror the few physical offsets ---- */
html[dir="ltr"] .cart-count{ left:auto; right:-4px; }
html[dir="ltr"] .badge-bestseller,html[dir="ltr"] .badge-soldout{ right:auto; left:12px; }
html[dir="ltr"] .sheet-close{ left:auto; right:14px; }
html[dir="ltr"] .switch.on::after{ transform:translateX(18px); }
html[dir="ltr"] .sticky-cart{ padding:12px 18px 12px 10px; }
html[dir="ltr"] body{ font-family:"Tajawal","Inter",sans-serif; }

/* =========================================================
   Announcement bar — only exists in the DOM when there is something to announce (see site.js).
   Not sticky (the header keeps its own sticky behaviour); 38px high; calm motion only.
   ========================================================= */
.announce{ position:relative; z-index:1; display:flex; align-items:center; height:38px; overflow:hidden;
  background: var(--announce-bg, var(--flame)); color: var(--announce-fg, var(--on-flame)); font-size:13px; font-weight:700; line-height:1.2; }
.announce-viewport{ flex:1; min-width:0; height:100%; overflow:hidden; display:flex; align-items:center; }
.announce-track{ display:flex; align-items:center; width:max-content; }
.announce-item{ display:inline-block; white-space:nowrap; padding-inline:16px; color:inherit; text-decoration:none; }
a.announce-item{ text-decoration:underline; text-underline-offset:3px; }
.announce.is-static .announce-viewport{ justify-content:center; }
.announce.is-static .announce-item{ animation: announceIn .7s ease-out both; }
.announce.is-ticker .announce-track{ animation: announceScroll var(--announce-dur,20s) linear infinite; }
html[dir="rtl"] .announce.is-ticker .announce-track{ animation-name: announceScrollRtl; }
.announce:hover .announce-track, .announce:focus-within .announce-track, .announce.is-paused .announce-track{ animation-play-state: paused; }
.announce-close{ flex-shrink:0; width:40px; height:38px; background:none; color:inherit; font-size:15px; display:flex; align-items:center; justify-content:center; opacity:.85; }
.announce-close:hover{ opacity:1; }
@keyframes announceIn{ from{ opacity:0; transform: translateX(14px); } to{ opacity:1; transform:none; } }
html[dir="rtl"] .announce.is-static .announce-item{ animation-name: announceInRtl; }
@keyframes announceInRtl{ from{ opacity:0; transform: translateX(-14px); } to{ opacity:1; transform:none; } }
@keyframes announceScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@keyframes announceScrollRtl{ from{ transform: translateX(0); } to{ transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce){
  .announce-track, .announce-item{ animation:none !important; }
  .announce.is-ticker .announce-item[aria-hidden]{ display:none; }
  .announce.is-ticker .announce-viewport{ justify-content:center; }
  .announce.is-ticker .announce-track{ width:100%; }
  .announce.is-ticker .announce-item{ flex:1; white-space:normal; line-height:16px; max-height:34px; overflow:hidden; text-align:center; }
}
