/* الشيف سامي — المتجر الإلكتروني */
:root {
  --blue: #008FC9;
  --primary: #006A96;
  --primary-dark: #00547A;
  --ink: #111418;
  --ink-2: #4A5560;
  --muted: #6B7A86;
  --light: #E3F2FA;
  --bg: #F4F9FC;
  --card: #FFFFFF;
  --border: #DCE8EF;
  --ok: #138A4B;
  --ok-bg: #E6F6EC;
  --warn: #9A6200;
  --warn-bg: #FFF5DD;
  --danger: #C62828;
  --danger-bg: #FDECEC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 20, 24, .04), 0 8px 24px rgba(0, 106, 150, .07);
  --shadow-lg: 0 18px 48px rgba(0, 106, 150, .16);
  --head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.35; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 143, 201, .45); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
.section { padding-block: 28px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.d-block { display: block; }
.danger { color: var(--danger); }
.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 18px; align-content: start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .18s, transform .12s, box-shadow .18s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--light); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--light); color: var(--primary-dark); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #F3C9C9; }
.btn-danger-ghost:hover { background: var(--danger-bg); color: var(--danger); }
.btn.full { width: 100%; }
.btn.grow { flex: 1; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost.is-loading::after { border-color: var(--primary); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--primary); cursor: pointer; font-weight: 600; }
.link-btn.danger { color: var(--danger); font-weight: 500; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.main-nav a:hover { background: var(--light); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: var(--light); }
.header-search { flex: 1; max-width: 360px; position: relative; margin-inline-start: auto; }
.header-search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--muted); }
.header-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); padding-inline: 42px 14px; }
.header-search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 143, 201, .12); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { font-weight: 600; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); }
.lang:hover { background: var(--light); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; }
.cart-btn:hover { background: var(--primary-dark); color: #fff; }
.cart-btn svg { width: 20px; height: 20px; fill: currentColor; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--primary); font-size: .78rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }

/* ---------- Toasts ---------- */
.toast-zone { position: fixed; z-index: 60; top: 84px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; display: flex; gap: 14px; align-items: center; max-width: 520px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; font-weight: 500; }
.toast a { color: #8ED8FF; font-weight: 700; white-space: nowrap; }
.toast-ok { background: #0F3D2A; }
.toast-error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(0, 143, 201, .18), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); padding-block: 32px 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
.eyebrow { display: inline-block; color: var(--primary); background: var(--light); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-block: 12px 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--ink-2); font-weight: 500; font-size: .93rem; }

.slider { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1170 / 660; background: var(--light); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .25s; }
.dots button.on { width: 24px; background: #fff; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-sm); margin-block: 12px; font-weight: 500; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-error { background: var(--danger-bg); color: var(--danger); }

/* ---------- Full-width slider (16:9 on every device) ---------- */
.hero-slider { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--light); overflow: hidden; }
.hero-slider .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-slider .slides::-webkit-scrollbar { display: none; }
.hero-slider .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .dots { bottom: clamp(10px, 2vw, 24px); }
.hero-slider .dots button { width: 10px; height: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hero-slider .dots button.on { width: 30px; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s; }
.hero-slider:hover .slide-arrow, .slide-arrow:focus-visible { opacity: 1; }
.slide-arrow:hover { background: #fff; }
.slide-arrow.prev { inset-inline-start: 20px; }
.slide-arrow.next { inset-inline-end: 20px; }
[dir="rtl"] .slide-arrow.prev { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .slide-arrow.next { transform: translateY(-50%) scaleX(-1); }

/* ---------- Welcome strip ---------- */
.welcome { background: #fff; border-bottom: 1px solid var(--border); padding-block: 22px; }
.welcome-grid { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 24px; align-items: center; }
.welcome h1 { font-size: clamp(1.25rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.perk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.perk-open { background: var(--ok-bg); border-color: #BFE5CD; color: var(--ok); }
.perk-closed { background: var(--danger-bg); border-color: #F3C9C9; color: var(--danger); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.perk-open .dot-live { animation: blink 1.4s infinite; }
.welcome-search { display: flex; gap: 8px; }
.welcome-search input { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); padding-inline: 20px; }
.welcome-search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,143,201,.12); }
.welcome-search .btn { min-height: 50px; }

.active-order { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--primary), var(--blue)); box-shadow: 0 10px 28px rgba(0,106,150,.25); }
.active-order:hover { color: #fff; transform: translateY(-1px); }
.ao-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 auto; }
.ao-text { flex: 1; display: grid; }
.ao-text small { opacity: .85; }
.ao-text strong { font-family: var(--head); font-size: 1.1rem; }

.cat-panel { animation: fadeUp .3s ease; }
.cat-panel .center { margin-top: 16px; }
.chip-name { line-height: 1.3; }

.how { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.how-n { width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--primary); font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.how p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Sections & cards ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; }
[dir="ltr"] .more { unicode-bidi: plaintext; }

.cat-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.cat-chip { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; width: 112px; padding: 12px 8px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: .18s; font-weight: 600; }
.cat-chip small { color: var(--muted); font-weight: 400; font-size: .76rem; }
.cat-chip .chip-img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--light); }
.cat-chip .chip-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip:hover { border-color: var(--blue); }
.cat-chip.on { border-color: var(--primary); background: var(--light); color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 106, 150, .1); }

.grid.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid.products[role="tabpanel"] { animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card { display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plate { position: relative; display: block; margin: 16px 16px 0; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 58%, var(--light) 59%, var(--light) 66%, #fff 67%); padding: 8%; }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 10px 24px rgba(17, 20, 24, .16); transition: transform .35s; }
.product-card:hover .plate img { transform: scale(1.04) rotate(-2deg); }
.plate .tag { position: absolute; top: 4%; inset-inline-start: 0; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1rem; }
.card-body h3 a { color: var(--ink); }
.card-body p { font-size: .87rem; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.price small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); }
.price-lg { font-size: 1.6rem; font-family: var(--head); }

.offers-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.offer-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--primary), var(--blue)); box-shadow: var(--shadow); }
.offer-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .35); flex: 0 0 auto; }
.offer-body { flex: 1; min-width: 0; }
.offer-body h3 { margin: 4px 0; }
.offer-body p { font-size: .85rem; opacity: .9; margin: 0; }
.offer-card .price { color: #fff; font-size: 1.1rem; }
.offer-pill { font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 999px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--ink), #0B3A52 60%, var(--primary)); }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; opacity: .85; }

/* ---------- Page head & menu ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--border); padding-block: 22px 18px; }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.inline-search { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.inline-search input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid var(--border); padding-inline: 16px; background: var(--bg); }
.menu-nav { position: sticky; top: 70px; z-index: 30; background: rgba(244, 249, 252, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.menu-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.menu-nav a { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.menu-nav a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-section h2 small { font-family: var(--body); font-size: .85rem; font-weight: 400; }

/* ---------- Product page ---------- */
.crumbs { display: flex; gap: 8px; padding-block: 16px 4px; font-size: .9rem; color: var(--muted); }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 20px; }
.product-media { position: sticky; top: 90px; }
.plate-xl { margin: 0; max-width: 520px; margin-inline: auto; }
.product-form { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.product-form h1 { margin: 0; }
.lead { color: var(--ink-2); }
.opt-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px 10px; margin: 0; }
.opt-group legend { font-weight: 700; padding: 0 6px; display: flex; gap: 8px; align-items: center; }
.opt-group.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(198, 40, 40, .1); }
.pill { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.pill-req { background: var(--warn-bg); color: var(--warn); }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed var(--border); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; accent-color: var(--primary); flex: 0 0 auto; }
.opt-name { flex: 1; }
.opt-price { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.opt.disabled { opacity: .45; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 600; color: var(--primary); cursor: pointer; }
.qty button:hover { background: var(--light); }
.qty button[disabled] { opacity: .35; }
.qty input { width: 42px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 36px; font-size: 1.1rem; }
.qty-sm span { min-width: 26px; text-align: center; font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea, .coupon input {
  width: 100%; min-height: 46px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; padding: 10px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus, .phone-input:focus-within {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 143, 201, .12);
}
.err { color: var(--danger); font-style: normal; font-size: .85rem; }
.phone-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.phone-input span { padding: 0 12px; color: var(--muted); font-weight: 600; border-inline-end: 1px solid var(--border); align-self: stretch; display: grid; place-items: center; background: var(--bg); }
.phone-input input { border: 0 !important; box-shadow: none !important; flex: 1; min-height: 46px; padding: 10px 14px; letter-spacing: .08em; font-weight: 600; }
.code-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .6em; font-weight: 700; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- Panels, cart, checkout ---------- */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 90px; }
.summary h2 { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; font-variant-numeric: tabular-nums; }
.sum-row.ok { color: var(--ok); }
.sum-row.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; }
.sum-row.total strong { color: var(--primary); font-family: var(--head); }
.summary .btn { margin-top: 12px; }

.cart-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--border); }
.cart-line img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.cart-line.is-off { opacity: .6; }
.cl-info { display: grid; gap: 2px; min-width: 0; }
.cl-name { font-weight: 700; color: var(--ink); }
.cl-actions { display: grid; justify-items: end; gap: 6px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; background: var(--bg); padding: 5px; border-radius: 16px; margin-bottom: 16px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px; border-radius: 12px; font-weight: 700; color: var(--ink-2); transition: .18s; }
.seg input:checked + span { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid rgba(0, 143, 201, .45); }

.choice-list { display: grid; gap: 8px; margin-bottom: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: .15s; }
.choice:hover { border-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--light); }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: 0 0 auto; }
.choice span { display: grid; gap: 2px; }
.pay-list { grid-template-columns: repeat(3, 1fr); }

.mini-lines { list-style: none; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px dashed var(--border); display: grid; gap: 8px; font-size: .93rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.coupon { display: flex; gap: 8px; }
.coupon input { min-height: 40px; text-transform: uppercase; }
[data-coupon-msg].ok { color: var(--ok); }
[data-coupon-msg].bad { color: var(--danger); }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 420px; text-align: center; padding: 32px 26px; }
.auth-card .stack, .auth-card form { text-align: start; }
.auth-logo { margin: 0 auto 10px; height: 70px; width: auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-block: 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* ---------- Order tracking ---------- */
.celebrate { text-align: center; background: linear-gradient(180deg, var(--ok-bg), #fff); margin-bottom: 14px; }
.big-emoji { font-size: 3rem; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.order-head h2 { margin: 0; }
.status-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .86rem; background: var(--light); color: var(--primary); white-space: nowrap; }
.st-new { background: #FFF5DD; color: #9A6200; }
.st-accepted, .st-preparing { background: var(--light); color: var(--primary); }
.st-ready, .st-out_for_delivery { background: #EDE7FB; color: #5B3CC4; }
.st-delivered, .st-picked_up { background: var(--ok-bg); color: var(--ok); }
.st-cancelled { background: var(--danger-bg); color: var(--danger); }
.track { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.track li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; color: var(--muted); position: relative; }
.track li::before { content: ""; position: absolute; top: 10px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.track li:last-child::before { display: none; }
.track .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--border); position: relative; z-index: 1; }
.track li.done { color: var(--ink-2); }
.track li.done::before { background: var(--primary); }
.track li.done .dot { background: var(--primary); border-color: var(--primary); }
.track li.current { color: var(--primary); font-weight: 700; }
.track li.current .dot { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(0, 106, 150, .45); animation: ring 1.6s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 12px rgba(0, 106, 150, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 106, 150, 0); } }
.live-dot::before { content: "●"; color: var(--ok); margin-inline-end: 6px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.branch-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); transition: .18s; }
.order-row:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.order-row .end { text-align: end; display: grid; gap: 4px; justify-items: end; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }

/* ---------- Branches ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.branch-grid .panel + .panel { margin-top: 0; }
.branch header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.branch header h2 { margin: 0; font-size: 1.2rem; }
.branch details { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 10px; }
.branch summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .92rem; }
.hours th { text-align: start; font-weight: 500; color: var(--ink-2); padding: 4px 0; }
.hours td { text-align: end; font-variant-numeric: tabular-nums; }
.zones { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.zones li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; }
.empty-icon { font-size: 3rem; width: 96px; height: 96px; border-radius: 50%; background: var(--light); display: grid; place-items: center; }

/* ---------- Footer & mobile nav ---------- */
.site-footer { margin-top: 40px; background: var(--ink); color: #C9D3DA; padding-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer img { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 10px; height: 58px; width: auto; }
.site-footer h3 { color: #fff; }
.site-footer a { display: block; color: #C9D3DA; padding-block: 3px; }
.site-footer a:hover { color: #fff; }
.trust { display: grid; gap: 8px; align-content: start; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-block: 16px; font-size: .85rem; color: #8A97A1; }
.bottom-nav { display: none; }
.desk-only { display: inline-flex; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .welcome-grid { grid-template-columns: 1fr; gap: 14px; }
  .how { grid-template-columns: 1fr; }
  .hero-grid, .product-page, .two-col { grid-template-columns: 1fr; }
  .hero-grid { gap: 20px; }
  .slider { order: -1; }
  .product-media { position: static; }
  .plate-xl { max-width: 340px; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .slide-arrow { display: none; }
  .welcome { padding-block: 16px; }
  .perks { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .perk { flex: 0 0 auto; }
  .cat-chip { width: 96px; }
  .header-row { gap: 10px; min-height: 60px; }
  .logo img { height: 38px; }
  .header-search { display: none; }
  .header-actions { margin-inline-start: auto; }
  .cart-btn .cart-label, .desk-only { display: none; }
  .cart-btn { padding: 0 12px; }
  .menu-nav { top: 60px; }
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 1.55rem; margin-block: 8px 14px; }
  .hero-cta .btn { flex: 1; }
  .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plate { margin: 10px 10px 0; }
  .card-body { padding: 8px 10px 12px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
  .card-foot form { width: 100%; }
  .offers-row { grid-auto-columns: 86%; }
  .offer-card img { width: 84px; height: 84px; }
  .row-2, .row-3, .pay-list { grid-template-columns: 1fr; }
  .product-form { padding: 18px; border-radius: 20px; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line img { width: 56px; height: 56px; }
  .cl-actions { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .track { grid-auto-flow: row; gap: 14px; }
  .track li { grid-template-columns: 22px 1fr; justify-items: start; text-align: start; font-size: .95rem; }
  .track li::before { top: 22px; inset-inline-start: 10px; width: 3px; height: calc(100% + 14px); }
  .footer-grid { grid-template-columns: 1fr; }
  .toast-zone { top: 70px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 45; inset-inline: 0; bottom: 0;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { position: relative; display: grid; justify-items: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 4px; }
  .bottom-nav svg { width: 22px; height: 22px; fill: currentColor; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav .badge { position: absolute; top: 0; inset-inline-start: 55%; background: var(--primary); color: #fff; min-width: 18px; height: 18px; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
