:root {
  --burgundy: #6E1A26;
  --burgundy-deep: #4E111A;
  --ivory: #FAF5EA;
  --ivory-2: #F2EAD8;
  --gold: #C9A24B;
  --gold-deep: #9C7A2E;
  --navy: #1E2A44;
  --ink: #2A1A1C;
  --muted: #6B5A55;
  --line: #E3D6BC;
  --bad: #A3231B;
  --wa: #1F8F4E;
  --radius: 14px;
  --font: "Cairo", system-ui, sans-serif;
  --display: "Reem Kufi", "Cairo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  padding-bottom: 72px;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; }
a { color: var(--burgundy); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* شريط زخرفي هادي مستوحى من الأرابيسك */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--burgundy);
  color: var(--ivory);
  border-bottom: 3px solid var(--gold);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand__logo {
  height: 54px; width: auto; padding: 3px 6px;
  background: #FEFDF7; border: 2px solid var(--gold); border-radius: 12px;
}
.brand__name { font-family: var(--display); font-size: 1.4rem; letter-spacing: .5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.05rem var(--font);
  border: 0; border-radius: 999px; padding: 12px 26px;
  text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s;
  min-height: 48px;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn--primary { background: var(--burgundy); color: var(--ivory); }
.btn--gold { background: var(--gold); color: var(--burgundy-deep); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--sm { padding: 6px 16px; min-height: 38px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(201,162,75,.18), transparent 50%),
    var(--ivory);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}
.cover { background: var(--ivory-2); border-bottom: 3px solid var(--gold); }
.cover img { width: 100%; height: auto; max-height: 460px; object-fit: cover; margin: 0 auto; }
.hero__grid { position: relative; display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 8px; padding: 2px 14px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-deep); font-weight: 700; font-size: .9rem;
}
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); color: var(--burgundy); }
.hero h1 span { color: var(--navy); font-size: .78em; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 12px 0 18px; }

.price-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.price-tags .price-tag { margin-bottom: 6px; }
.price-tags .price-tag--alt { background: var(--navy); box-shadow: 0 6px 0 #121a2c; }
.price-tags .price-tag--mid { background: #4A2A1A; box-shadow: 0 6px 0 #2B170D; }
.price-tag__unit b { color: var(--gold); }
.price-tags .price-tag--offer {
  background: var(--gold); color: var(--burgundy-deep); border-color: var(--burgundy);
  box-shadow: 0 6px 0 var(--gold-deep); text-decoration: none;
}
.price-tag--offer .price-tag__num { color: var(--burgundy); }
.price-tag--offer .price-tag__unit b { color: var(--burgundy); }
.price-tag--offer s { opacity: .75; }
.prod__offer { margin: -4px 0 8px; font-size: .9rem; font-weight: 700; color: var(--gold-deep); }
.summary__save dd { color: #1F7A45; }
.price-note { margin: 0 0 18px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.price-tag {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--burgundy); color: var(--ivory);
  border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 8px 20px; margin-bottom: 20px;
  box-shadow: 0 6px 0 var(--burgundy-deep);
}
.price-tag__num { font: 800 2.6rem/1 var(--font); color: var(--gold); }
.price-tag__unit { font-size: .95rem; line-height: 1.35; }

.hero__media { margin: 0; }
/* موبايل: صورة المنتج فوق الأسعار، عشان فورم الطلب ييجي تحت الأسعار على طول */
@media (max-width: 819px) { .hero__media { order: -1; } }
.hero__media figcaption, .dish figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }

.media-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--ivory-2); border: 2px solid var(--gold);
}
.media-slot img { width: 100%; height: 100%; object-fit: cover; }
.media-slot--empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-style: dashed; color: var(--muted); font-weight: 600; padding: 16px;
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(201,162,75,.08) 12px 24px);
}

/* Sections */
.section { padding: 44px 0; }
.section--tint { background: var(--ivory-2); }
.section__title { font-size: 1.6rem; color: var(--burgundy); margin-bottom: 20px; }
.section__title::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 6px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
  border-radius: 2px;
}

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
  border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column;
}
.facts strong { color: var(--navy); font-size: 1.08rem; }
.facts span { color: var(--muted); }
.dish { margin: 24px 0 0; max-width: 520px; }

.about {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px; max-width: 720px;
  box-shadow: 0 2px 10px rgba(110, 26, 38, .06);
}
.about p { margin: 0 0 14px; line-height: 1.9; }
.about strong { color: var(--burgundy); }
.about .btn { margin-top: 4px; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 12px; text-align: center;
  box-shadow: 0 2px 10px rgba(110, 26, 38, .06);
}
.value__icon { display: block; font-size: 2.1rem; line-height: 1; margin-bottom: 10px; }
.value h3 { font-family: var(--font); font-weight: 800; font-size: 1.08rem; color: var(--burgundy); margin-bottom: 4px; }
.value p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.steps li span {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 800;
}

/* Order */
.order { max-width: 680px; margin-inline: auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.field small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: 1rem var(--font); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--ivory); min-height: 48px;
}
input[dir="ltr"] { text-align: right; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: .9rem; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }

.summary__policy { list-style: none; padding: 10px 0 0; margin: 8px 0 0; border-top: 1px dashed var(--line); font-weight: 600; color: var(--navy); }
.summary__policy li { padding: 2px 0; }
.hint { font-size: .9rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

.summary { border: 2px solid var(--gold); background: var(--ivory); border-radius: var(--radius); padding: 16px 18px; margin: 6px 0 16px; }
.summary h3 { color: var(--burgundy); margin: 0 0 6px; font-size: 1.1rem; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary dd.bad { color: var(--bad); }
.summary__total { border-bottom: 0 !important; font-size: 1.3rem; }
.summary__total dd { color: var(--burgundy); font-weight: 800; }
.summary__note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.preview { margin-top: 20px; border: 2px dashed var(--navy); }
.preview__flag {
  margin: 0 0 12px; padding: 8px 12px; border-radius: 8px;
  background: var(--navy); color: var(--ivory); font-weight: 700; text-align: center;
}
.preview__ok {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
  background: #E3F4E9; color: #14532D; border: 1.5px solid #1F7A45; font-weight: 800; text-align: center;
}
.form-err { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #FBE9E7; color: var(--bad); font-weight: 700; }
.hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.btn[disabled] { opacity: .7; cursor: default; }
.preview__msg {
  white-space: pre-wrap; font: 1rem/1.8 var(--font);
  background: var(--ivory); border-radius: 10px; padding: 12px; margin: 0 0 12px;
}

/* Checkout — على طريقة شوبيفاي: فورم + ملخص جانبي */
.checkout-sec { background: #fff; }
.checkout { display: grid; gap: 0; align-items: start; }
.co-main { min-width: 0; }
.co-sec { padding: 4px 0 22px; }
.co-h { margin: 0 0 12px; font-family: var(--font); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.co-h small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.checkout input, .checkout select, .checkout textarea {
  background: #fff; border: 1px solid #d6d0c4; border-radius: 6px; padding: 12px 14px; min-height: 50px;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus {
  outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy);
}
.checkout .field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field-pair { display: grid; gap: 0 12px; }

/* سطور المنتجات في الفورم */
.prod { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d6d0c4; border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fff; }
.prod__img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.prod__body { flex: 1; min-width: 0; }
.prod__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prod__head strong { color: var(--ink); font-size: 1rem; }
.prod__price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.prod__badge { display: inline-block; margin-inline-start: 4px; padding: 0 8px; border-radius: 999px; background: #F3EBDD; color: var(--burgundy); font-size: .75rem; font-weight: 700; vertical-align: middle; }
.prod__offer { margin: 4px 0 0; font-size: .82rem; font-weight: 700; color: #8A6A1F; }
.cut-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cut-row label { font-weight: 600; color: var(--muted); font-size: .88rem; }
.stepper { display: flex; align-items: center; border: 1px solid #d6d0c4; border-radius: 6px; overflow: hidden; }
.checkout .stepper input { width: 46px; min-height: 38px; padding: 4px; border: 0; border-radius: 0; text-align: center; font-weight: 800; font-size: 1.05rem; box-shadow: none; }
.stepper__btn { flex: none; width: 38px; height: 38px; border: 0; background: #F7F3EC; color: var(--ink); font: 700 1.2rem/1 var(--font); cursor: pointer; }
.stepper__btn:hover { background: #EFE7DA; }

/* صندوق التوصيل */
.ship { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--burgundy); background: #FBF6EF; border-radius: 6px; padding: 12px 14px; margin: 2px 0 12px; }
.ship strong { display: block; color: var(--ink); }
.ship small { color: var(--muted); font-size: .85rem; }
.ship b { white-space: nowrap; }
.ship--empty { border: 1px solid #d6d0c4; background: #F7F3EC; color: var(--muted); font-size: .92rem; }
.ship--bad { border-color: var(--bad); background: #FBE9E7; color: var(--bad); font-weight: 700; }

.note-toggle { background: none; border: 0; margin: 0; }
.note-toggle > summary { padding: 4px 0; font-weight: 600; color: var(--burgundy); font-size: .95rem; }
.note-toggle textarea { margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* الدفع: صندوق واحد فيه الاختيارات */
.pay { border: 1px solid #d6d0c4; border-radius: 8px; overflow: hidden; }
.pay__opt { display: block; border-bottom: 1px solid #d6d0c4; cursor: pointer; background: #fff; }
.pay__opt:last-child { border-bottom: 0; }
.pay__row { display: flex; align-items: center; gap: 10px; padding: 14px; font-weight: 700; }
.pay__row input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--burgundy); }
.pay__desc { display: none; padding: 12px 14px; background: #F7F3EC; border-top: 1px solid #d6d0c4; color: var(--muted); font-size: .9rem; }
.pay__opt:has(input:checked) { box-shadow: inset 0 0 0 1px var(--burgundy); background: #FBF6EF; }
.pay__opt:has(input:checked) .pay__desc { display: block; }

.co-paytotal { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; margin-bottom: 6px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 800; }
.co-paytotal strong { color: var(--burgundy); font-size: 1.3rem; }
.co-btn { border-radius: 8px !important; min-height: 56px; font-size: 1.15rem; }

/* الملخص */
.co-side { display: none; }
.sum__lines { list-style: none; margin: 0 0 6px; padding: 0; }
.sum__line { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.sum__thumb { position: relative; flex: none; width: 60px; height: 60px; border-radius: 8px; border: 1px solid #d6d0c4; background: #fff; }
.sum__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.sum__qty { position: absolute; top: -8px; inset-inline-end: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #6b6257; color: #fff; font-size: .78rem; display: grid; place-items: center; }
.sum__name { flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; }
.sum__name small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.sum__price { font-weight: 700; white-space: nowrap; text-align: end; }
.sum__price s { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.sum__empty { color: var(--muted); padding: 8px 0; }
.sum__rows { margin: 0; padding-top: 8px; border-top: 1px solid #e2dccf; }
.sum__rows > div { display: flex; justify-content: space-between; padding: 5px 0; }
.sum__rows dt { color: var(--ink); }
.sum__rows dd { margin: 0; font-weight: 700; }
.sum__rows .muted { color: var(--muted); font-weight: 400; font-size: .9rem; }
.sum__rows .bad { color: var(--bad); }
.sum__save dd { color: #1F7A45; }
.sum__total { padding-top: 12px !important; font-size: 1.15rem; font-weight: 800; }
.sum__total dd { font-size: 1.45rem; font-weight: 800; }
.sum__total small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.sum__policy { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed #d6d0c4; color: var(--muted); font-size: .88rem; }
.sum__policy li { padding: 2px 0; }

/* موبايل: شريط ملخص قابل للفتح فوق */
.co-mob { background: #F7F3EC; border: 1px solid #e2dccf; border-radius: 8px; margin: 0 0 18px; }
.co-mob > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; list-style: none; cursor: pointer; }
.co-mob > summary::-webkit-details-marker { display: none; }
.co-mob__toggle { color: var(--burgundy); font-weight: 700; }
.co-mob__toggle::after { content: " ⌄"; }
.co-mob[open] .co-mob__toggle::after { content: " ⌃"; }
.co-mob__total { font-size: 1.15rem; }
.co-mob > div { padding: 0 16px 14px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--navy); }
details > p, details > div { margin: 0; padding: 0 16px 14px; color: var(--muted); }
details > div p { margin: 0 0 6px; }

.footer { background: var(--navy); color: var(--ivory-2); padding: 28px 0; text-align: center; border-top: 3px solid var(--gold); }
.footer p { margin: 4px 0; }
.footer__brand { font-family: var(--display); font-size: 1.4rem; color: var(--gold); }
.footer a { color: var(--gold); }

.sticky-total {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--burgundy); color: var(--ivory); border-top: 2px solid var(--gold);
  transition: transform .2s;
}
.sticky-total small { display: block; font-size: .8rem; opacity: .85; }
.sticky-total strong { font-size: 1.2rem; color: var(--gold); }
.sticky-total.is-hidden { transform: translateY(110%); }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 40px; }
  .co-mob, .co-paytotal { display: none; }
  .co-side { display: block; position: sticky; top: 84px; background: #F7F3EC; border: 1px solid #e2dccf; border-radius: 10px; padding: 22px 24px; }
  .sticky-total { display: none; }
}

/* Per-unit preparation choices, mobile first. */
.prod--prep{display:block}.prod--prep .prod__head{gap:10px;align-items:center}.prod--prep .prod__head small{display:block;font-size:13px;margin-top:4px;color:#6a625e}.prod--prep .stepper{flex-shrink:0;direction:ltr}.prep-unit{padding:12px 0;border-top:1px solid #e9ded5}.prep-unit__label{display:block;font-weight:700;font-size:14px;margin-bottom:7px}.prep-unit__buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.prep-button{min-height:64px;padding:9px 7px;border:1.5px solid #7c1325;border-radius:12px;background:#fff;color:#7c1325;font:inherit;font-size:14px;font-weight:700;line-height:1.55;cursor:pointer}.prep-button.is-selected{background:#7c1325;color:#fff}.prep-button:focus-visible{outline:3px solid #c9963d;outline-offset:3px}@media(max-width:420px){.prod--prep .prod__head strong{font-size:16px}.prod--prep .stepper input{width:32px}.prod--prep .stepper__btn{min-width:36px;width:36px}.prep-button{font-size:13px}}
