/* DAN Café & Bakery Dubai — main stylesheet. Mobile-first, RTL-safe (logical properties only). */
:root {
  --paper: #F3E4D1;      /* page beige (UAE menu) */
  --paper-2: #F8EEE2;    /* raised surfaces */
  --cream: #EAD5BB;      /* bands */
  --ink: #2F2E3A;        /* charcoal text */
  --muted: #6B6573;
  --line: #E2CCB2;
  --accent: #DC4C29;     /* UAE orange */
  --accent-d: #B93C1E;
  --white: #FFFBF6;
  --ok: #2E7D4F;
  --wa: #1FA855;
  --r-img: 22px; --r-box: 18px; --r-pill: 999px;
  --shadow: 0 10px 30px rgba(47, 46, 58, .12);
  --f: 'Kumbh Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --hdr: 60px;
}
[dir="rtl"] { --f: 'IBM Plex Sans Arabic', 'Kumbh Sans', system-ui, sans-serif; }
@media (min-width: 600px) { :root { --gutter: 24px; --hdr: 68px; } }
@media (min-width: 1080px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 64px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 44px; }
@media (min-width: 900px) { .section { padding-block: 72px; } }
.band { background: var(--cream); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.note { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.note .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.lead { font-size: 18px; color: var(--ink); max-width: 60ch; }
.kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
[dir="rtl"] .kicker { letter-spacing: 0; }
.display { font-weight: 800; font-size: clamp(44px, 11vw, 92px); letter-spacing: -.035em; }
.display--md { font-size: clamp(34px, 7vw, 56px); }
.h2 { font-weight: 800; font-size: clamp(28px, 5.5vw, 44px); margin-bottom: 14px; }
.h3 { font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ic-arrow, [dir="rtl"] .ic-chevron { transform: scaleX(-1); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 0; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-d); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .ic { width: 20px; height: 20px; }
.pillbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.pillbtn .ic { width: 16px; height: 16px; color: var(--accent); }
.pillbtn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.pillbtn--wide { width: 100%; max-width: none; min-height: 48px; margin-top: 20px; }
.icbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; position: relative; text-decoration: none; }
.icbtn .ic { width: 22px; height: 22px; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 600; font-size: 14px; }
.arrowlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: 15px; }
.arrowlink .ic { width: 16px; height: 16px; transition: transform .15s; }
.arrowlink:hover .ic { transform: translateX(3px); }
[dir="rtl"] .arrowlink:hover .ic { transform: scaleX(-1) translateX(3px); }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-size: 13px; }
.chip--soon { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip--ph { font-size: 11px; padding: 1px 8px; color: var(--muted); background: transparent; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; }

/* preview bar, header */
.preview-bar { background: var(--ink); color: var(--paper); font-size: 12.5px; padding: 6px var(--gutter); display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; }
.preview-bar .ic { width: 15px; height: 15px; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(243, 228, 209, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__row { display: flex; align-items: center; gap: 6px; height: var(--hdr); }
.hdr__logo { display: flex; align-items: center; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.logo { display: block; line-height: 0; }
.logo svg { height: 34px; width: auto; }
.hdr__nav { display: none; }
.hdr__tools { display: flex; align-items: center; gap: 2px; }
.hdr__store { display: none; }
.hdr__lang { font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: var(--r-pill); }
.hdr__lang:hover { background: var(--paper-2); }
.badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
@media (min-width: 600px) { .hdr__store { display: inline-flex; } .logo svg { height: 40px; } }
@media (min-width: 1080px) {
  .hdr__burger { display: none; }
  .hdr__row { gap: 20px; }
  .hdr__logo { margin-inline-end: 8px; }
  .hdr__nav { display: flex; gap: 2px; margin-inline-end: auto; }
  .hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: var(--r-pill); }
  .hdr__nav a:hover { background: var(--paper-2); }
  .hdr__nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
}
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__bg { position: absolute; inset: 0; background: rgba(47, 46, 58, .45); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 380px); background: var(--paper); padding: 8px 20px 32px; overflow: auto; box-shadow: var(--shadow); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 64px; margin-bottom: 8px; }
.drawer__links li { border-bottom: 1px solid var(--line); }
.drawer__links a { display: flex; align-items: center; min-height: 56px; font-weight: 800; font-size: 22px; text-decoration: none; }
.drawer__lang { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 600; text-decoration: none; }

/* pattern */
.pattern { background: var(--accent) url(/assets/img/pattern.svg) repeat; background-size: 96px; }
.hero-wrap { position: relative; }
.pattern--hero { height: 32px; background-size: 64px; background-position: 0 -32px; }
.pattern--foot { height: 64px; background-size: 64px; }

/* hero */
.hero { display: grid; gap: 28px; padding-block: 28px 44px; align-items: center; }
.hero__sub { font-size: 19px; max-width: 26ch; margin-top: 14px; }
.hero__meta { font-size: 15px; color: var(--muted); }
.hero__meta strong { color: var(--ink); font-size: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hero__media { border-radius: var(--r-img); background: radial-gradient(closest-side, #F9EEE1, var(--paper)); padding: 10px; }
.hero__media img { width: 100%; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; padding-block: 56px 72px; } }

/* ways */
.ways { display: grid; gap: 16px; }
.way { display: grid; align-content: start; gap: 4px; text-decoration: none; background: var(--paper-2); border-radius: var(--r-img); padding: 16px 18px 18px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.way:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.way img { width: 100%; aspect-ratio: 4/3; object-fit: contain; margin-bottom: 8px; }
.way__title { font-weight: 800; font-size: 22px; }
.way__text { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
@media (min-width: 760px) { .ways { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; } .way--big { grid-row: span 2; } .way--big img { aspect-ratio: 1/1; } }

.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__head .h2 { margin-bottom: 4px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { display: grid; gap: 8px; text-decoration: none; text-align: center; font-weight: 700; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-box); padding: 10px 8px 14px; }
.cat img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
@media (max-width: 420px) { .cat { font-size: 14px; } }

/* product grid & card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__img { position: relative; display: block; border-radius: var(--r-img); background: radial-gradient(closest-side, #FAF0E4 30%, transparent 100%); aspect-ratio: 4/3; margin-bottom: 10px; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card__img img { transform: scale(1.04); }
.badge-pre { position: absolute; top: 0; inset-inline-end: 0; display: inline-flex; align-items: center; gap: 3px; background: var(--white); color: var(--accent); border-radius: var(--r-pill); padding: 3px 8px 3px 6px; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.badge-pre .ic { width: 14px; height: 14px; }
.card__name { font-weight: 800; font-size: 16.5px; text-decoration: none; line-height: 1.2; color: var(--ink); }
.card__name:hover { color: var(--accent); }
.card__desc { font-size: 13.5px; color: var(--muted); margin: 6px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 8px; flex-wrap: wrap; }
.card__alg { display: inline-flex; gap: 2px; color: var(--accent); }
.card__alg .ic { width: 17px; height: 17px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.card__price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.addbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.addbtn .ic { width: 16px; height: 16px; }
.addbtn:hover { background: var(--accent); }
.addbtn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.card.is-off .card__img { opacity: .5; }
@media (max-width: 380px) { .addbtn span { display: none; } .addbtn { padding: 0 12px; } }

/* story / ctaband / branches */
.story { display: grid; gap: 24px; align-items: center; }
.story__media img { width: 100%; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ctaband { display: grid; gap: 16px; align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--r-img); padding: 28px; position: relative; overflow: hidden; }
.ctaband p { color: #d9cdbf; margin: 0; }
@media (min-width: 760px) { .ctaband { grid-template-columns: 1fr auto; padding: 40px 48px; } }
.branches { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .branches { grid-template-columns: repeat(3, 1fr); } }
.branch { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; display: grid; gap: 6px; align-content: start; }
.branch--soon { background: transparent; border-style: dashed; }
.branch__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.branch h3 a { text-decoration: none; font-size: 22px; }
.branch p { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14.5px; flex-wrap: wrap; }
.branch p .ic { width: 18px; height: 18px; color: var(--accent); }
.branch__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

/* page heads, about */
.pagehead { padding-block: 32px 12px; }
.pagehead .lead { margin-top: 14px; }
.pagehead--tight { padding-block: 24px 8px; }
.about { display: grid; gap: 36px; padding-block: 24px 64px; }
.about__row { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .about__row { grid-template-columns: 1fr 1fr; gap: 56px; } .about__row--flip img { order: 2; } }

/* order page */
.storebar { background: var(--ink); color: var(--white); position: sticky; top: var(--hdr); z-index: 30; }
.storebar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
.storebar__label { display: flex; align-items: center; gap: 6px; font-size: 14.5px; min-width: 0; }
.storebar__label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storebar__label .ic { width: 18px; height: 18px; color: var(--accent); }
.catnav { position: sticky; top: calc(var(--hdr) + 52px); z-index: 29; background: var(--cream); border-bottom: 1px solid var(--line); }
.catnav ul { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper-2); white-space: nowrap; text-decoration: none; font-size: 14.5px; }
.catnav a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700; }
.orderlayout { display: grid; gap: 28px; padding-block: 24px 80px; }
.sidecats, .sidecart { display: none; }
.searchrow { margin: 16px 0 8px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); padding: 0 16px; min-height: 48px; max-width: 520px; }
.search .ic { color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; min-height: 46px; font-size: 16px; }
.catsec { padding-top: 28px; border-top: 1px solid var(--line); margin-top: 28px; }
.catsec:first-of-type { border-top: 0; margin-top: 8px; }
.catsec .h2 { margin-bottom: 4px; }
.catsec > .muted { margin-bottom: 18px; }
.noresults { padding: 20px 0; font-weight: 600; }
.custombanner { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 18px; border-radius: var(--r-box); background: var(--paper-2); border: 1px dashed var(--accent); text-decoration: none; font-weight: 600; }
.custombanner span { flex: 1; }
.custombanner .ic { color: var(--accent); }
@media (min-width: 1080px) {
  .catnav { display: none; }
  .orderlayout { grid-template-columns: 200px minmax(0, 1fr) 320px; gap: 36px; padding-top: 28px; }
  .sidecats, .sidecart { display: block; }
  .sidecats ul { position: sticky; top: calc(var(--hdr) + 72px); display: grid; gap: 2px; }
  .sidecats a { display: block; padding: 9px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; }
  .sidecats a.is-active { background: var(--ink); color: var(--white); font-weight: 700; }
  .sidecart__box { position: sticky; top: calc(var(--hdr) + 72px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-box); padding: 20px; max-height: calc(100vh - var(--hdr) - 96px); overflow: auto; }
  .page-order .cartbar { display: none !important; }
}

/* mini cart & lines */
.minicart__empty { text-align: center; color: var(--muted); padding: 12px 0; font-size: 14.5px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 48px; object-fit: contain; }
.line__name { font-weight: 700; font-size: 15px; line-height: 1.25; text-decoration: none; }
.line__mods { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.line__warn { font-size: 12.5px; color: var(--accent-d); font-weight: 600; margin: 2px 0 0; }
.line__price { font-weight: 700; white-space: nowrap; }
.line__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); }
.stepper button { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.stepper button .ic { width: 16px; height: 16px; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14.5px; }
.stepper--lg button { width: 46px; height: 46px; }
.totals { display: grid; gap: 6px; padding: 14px 0; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .total { font-weight: 800; font-size: 19px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .disc { color: var(--ok); }
.totals .hint { font-size: 12.5px; color: var(--muted); justify-content: flex-start; }

/* cart page / checkout */
.cartpage, .checkout { display: grid; gap: 22px; padding-block: 12px 80px; align-items: start; }
@media (min-width: 900px) { .cartpage, .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; } .summary { position: sticky; top: calc(var(--hdr) + 16px); } }
.summary { display: grid; gap: 10px; }
.storeline { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.storeline .ic { width: 16px; height: 16px; color: var(--accent); vertical-align: -3px; }
.promo { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); padding: 4px 4px 4px 14px; }
[dir="rtl"] .promo { padding: 4px 14px 4px 4px; }
.promo input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; min-height: 38px; text-transform: uppercase; font-size: 16px; }
.promo__ic .ic { width: 18px; height: 18px; color: var(--muted); }
.promo__msg { font-size: 13.5px; margin: 0; }
.promo__msg.ok { color: var(--ok); } .promo__msg.bad { color: var(--accent-d); }
.empty { padding-block: 32px 96px; display: grid; gap: 16px; justify-items: start; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 10px 14px; font-weight: 400; font-size: 16px; }
.form textarea { min-height: 96px; resize: vertical; }
.form .is-invalid { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(220, 76, 41, .15); }
.form fieldset { border: 1px solid var(--line); margin: 0; display: grid; gap: 14px; min-width: 0; }
.form fieldset:not(.card-box) { border: 0; padding: 0; }
.form legend { padding: 0; float: left; width: 100%; margin-bottom: 4px; font-weight: 700; }
[dir="rtl"] .form legend { float: right; }
.form legend + * { clear: both; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.formerr { color: var(--accent-d); font-weight: 600; font-size: 14px; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .opt { position: relative; cursor: pointer; }
.seg input, .opt input, .days input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 700; }
.seg input:checked + span, .opt input:checked + span, .days input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span, .opt input:focus-visible + span, .days input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt span { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 400; }
.opt small { color: var(--muted); font-size: 12.5px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.days label { position: relative; flex: none; cursor: pointer; }
.days span { display: grid; gap: 1px; min-width: 78px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13px; font-weight: 400; }
.days span strong { font-size: 14.5px; }
.days input:disabled + span { opacity: .4; cursor: not-allowed; }
.leadnote { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 6px; }
.leadnote .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.formlayout { display: grid; gap: 24px; padding-block: 16px 80px; align-items: start; }
.formlayout__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formlayout__media--one { grid-template-columns: 1fr; }
@media (min-width: 900px) { .formlayout { grid-template-columns: 1fr 1fr; gap: 48px; } .formlayout__media { position: sticky; top: calc(var(--hdr) + 24px); } }
.steps { display: grid; gap: 10px; margin-top: 18px; }
.steps li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.steps span { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* product page */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13.5px; color: var(--muted); padding-top: 16px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { text-decoration: none; }
.crumbs .ic { width: 14px; height: 14px; }
.pdp { display: grid; gap: 20px; padding-block: 12px 32px; }
.pdp__main { border-radius: var(--r-img); background: radial-gradient(closest-side, #FAF0E4 35%, var(--paper) 100%); padding: 8px; }
.pdp__main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.pdp__short { font-size: 18px; margin-top: 12px; max-width: 46ch; }
.pdp__price { font-weight: 800; font-size: 26px; margin: 4px 0 12px; }
.pdp__size { font-weight: 400; font-size: 17px; color: var(--muted); }
.pdp__branch { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14.5px; margin: 6px 0 14px; }
.pdp__branch .ic { width: 16px; height: 16px; color: var(--accent); vertical-align: -3px; }
.pdp__section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.pdp__form { margin-bottom: 12px; }
.prose p { color: var(--ink); }
.algchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.algchips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.algchips .ic { width: 20px; height: 20px; color: var(--accent); }
.nutri { font-size: 14px; color: var(--ink); background: var(--white); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 20px; } .pdp__media { position: sticky; top: calc(var(--hdr) + 20px); align-self: start; } }

/* option form (shared by sheet & product page) */
.optform { display: grid; gap: 16px; }
.optgroup { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.optgroup legend { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: baseline; padding: 0; margin-bottom: 6px; }
.optgroup legend small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.choice span { flex: 1; }
.choice em { font-style: normal; color: var(--muted); font-size: 14px; }
.choice:has(input:checked) { border-color: var(--ink); }
.optinput { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--white); font-size: 16px; }
.addrow { display: flex; gap: 10px; align-items: center; }
.addrow .btn { flex: 1; white-space: nowrap; padding: 0 16px; font-size: 16px; min-width: 0; }

/* modal / sheet */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.modal__bg { position: absolute; inset: 0; background: rgba(47, 46, 58, .5); }
.modal__panel { position: relative; width: 100%; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 22px 22px 0 0; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: sheet .25s ease-out; }
@keyframes sheet { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .modal { align-items: center; } .modal__panel { max-width: 560px; border-radius: 22px; padding: 28px; } }
.modal__close { position: absolute; top: 10px; inset-inline-end: 10px; }
.sheet__head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; padding-inline-end: 36px; }
.sheet__head img { width: 96px; height: 72px; object-fit: contain; }
.sheet__head h2 { font-size: 22px; font-weight: 800; }
.sheet__head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.bm__modes { margin: 16px 0; }
.bm__list { display: grid; gap: 8px; margin-bottom: 16px; }
.bm__branch { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; text-align: start; width: 100%; }
.bm__branch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bm__branch input { accent-color: var(--ink); width: 18px; height: 18px; }
.bm__branch strong { display: block; font-size: 16px; }
.bm__branch small { color: var(--muted); }
.bm__branch.is-soon { opacity: .6; cursor: not-allowed; background: transparent; border-style: dashed; }
.bm__branch .chip { margin-inline-start: auto; }

/* cart bar, toast, whatsapp */
.cartbar { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
[dir="rtl"] .cartbar { padding: 0 10px 0 20px; }
.cartbar__count { min-width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.cartbar strong { margin-inline-start: auto; }
@media (min-width: 700px) { .cartbar { inset-inline: auto 24px; min-width: 320px; } [dir="rtl"] .cartbar { inset-inline: 24px auto; } }
.toast { position: fixed; top: calc(var(--hdr) + 12px); left: 50%; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.wa-fab { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 44; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-fab .ic { width: 30px; height: 30px; }
body.has-cartbar .wa-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
body.has-cartbar main { padding-bottom: 72px; }

/* locations */
.contactbox { margin-top: 20px; }
.phones { display: flex; flex-wrap: wrap; gap: 8px; }
.maps { display: grid; gap: 16px; padding-top: 0; }
@media (min-width: 760px) { .maps { grid-template-columns: 1fr 1fr; } }
.mapcard { margin: 0; }
.mapcard iframe, .branchpage__map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--r-box); background: var(--cream); display: block; }
.mapcard figcaption { font-size: 14px; margin-top: 8px; }
.branchpage { display: grid; gap: 24px; padding-block: 16px 72px; }
@media (min-width: 900px) { .branchpage { grid-template-columns: 1fr 1fr; gap: 48px; } .branchpage__map iframe { height: 520px; } }
.facts { display: grid; gap: 16px; margin: 20px 0 24px; }
.facts dt { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-bottom: 4px; }
.facts dt .ic { width: 18px; height: 18px; color: var(--accent); }
.facts dd { margin: 0; }
.facts--tight { margin: 0 0 8px; gap: 8px; }
.facts--tight div { display: flex; justify-content: space-between; gap: 12px; }
.facts--tight dd { text-align: end; }

/* faq */
.faq { display: grid; gap: 8px; padding-block: 8px 24px; max-width: 860px; }
.faq .h3 { margin-top: 24px; }
.qa { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; }
.qa summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa[open] summary .ic { transform: rotate(180deg); }
.qa p { padding: 0 18px 16px; margin: 0; color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--paper-2); }
.chart { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.chart th, .chart td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.chart thead th { font-size: 11.5px; font-weight: 600; vertical-align: bottom; }
.chart thead th .ic { width: 20px; height: 20px; color: var(--accent); margin: 0 auto 4px; display: block; }
.chart tbody th { text-align: start; font-weight: 600; white-space: nowrap; }
.chart tbody th a { text-decoration: none; }
.chart th:first-child { position: sticky; inset-inline-start: 0; background: var(--paper-2); }
.chart .yes .ic { color: var(--accent); width: 18px; height: 18px; margin: auto; }
.chart .no { color: var(--line); }

/* confirmation */
.confirm { max-width: 640px; padding-block: 32px 80px; display: grid; gap: 18px; }
.confirm__head { text-align: center; display: grid; gap: 10px; justify-items: center; }
.confirm__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.confirm__ic .ic { width: 34px; height: 34px; }
.confirm__no { font-size: 17px; }

/* footer */
.foot { background: var(--ink); color: #e8ddd0; margin-top: 24px; }
.foot .wrap { padding-block: 40px 28px; }
.foot__top { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot__brand { grid-column: 1 / -1; }
.foot__logo { color: var(--paper); display: inline-block; margin-bottom: 10px; }
.foot__logo svg { height: 48px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; font-weight: 700; }
[dir="rtl"] .foot h2 { letter-spacing: 0; }
.foot li { margin-bottom: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .muted { color: #b3a99e; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #b3a99e; }
@media (min-width: 900px) { .foot__top { grid-template-columns: 1.5fr repeat(4, 1fr); } .foot__brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
