*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--t-bg);
  color: var(--t-text);
  font-family: 'IBM Plex Sans', 'Tajawal', sans-serif;
  /* Do NOT set overflow-x: hidden here — it clips nested sticky+scroll
     containers (category pills, specials strip) on desktop widths.
     Horizontal overflow is already prevented by the centred max-width
     .app-container, and the fixed/sticky panels handle their own clipping. */
  min-height: 100vh;
}
[dir="rtl"] body { font-family: 'Tajawal', 'IBM Plex Sans', sans-serif; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
#product-drawer { scrollbar-width: thin; scrollbar-color: var(--t-brand) var(--t-raised); }
#product-drawer::-webkit-scrollbar { width: 4px; }
#product-drawer::-webkit-scrollbar-track { background: var(--t-raised); border-radius: 4px; }
#product-drawer::-webkit-scrollbar-thumb { background: var(--t-brand); border-radius: 4px; }

.font-display { font-family: 'Newsreader', 'Tajawal', serif; font-style: italic; }
[dir="rtl"] .font-display { font-style: normal; font-weight: 800; }
.text-brand    { color: var(--t-brand); }
.text-muted    { color: var(--t-textMuted); }
.text-faint    { color: var(--t-textFaint); }
.text-accent   { color: var(--t-accent); }
.gold-text     { color: var(--t-brand); }

.surface       { background: var(--t-surface); }
.surface-raised { background: var(--t-raised); }
.t-border      { border-color: var(--t-border); }

/* Inline icon sizing (used by SVG partials and JS-built markup) */
.ic-inline { width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-inline-end: 5px; }
.ic-plate  { width: 32%; height: 32%; opacity: .5; }

.app-container {
  max-width: 672px;
  margin: 0 auto;
  padding: 0 16px;
}

#app-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--t-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--t-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
}
.brand-identity { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--t-border); }
.brand-logo-fallback { width: 36px; height: 36px; border-radius: 50%; background: var(--t-brandBg); border: 1px solid color-mix(in srgb, var(--t-brand) 30%, transparent); display: flex; align-items: center; justify-content: center; color: var(--t-brand); font-weight: 700; font-size: .95rem; font-family: 'Newsreader', serif; }
.brand-name { font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#search-wrap {
  position: sticky; top: 61px; z-index: 30;
  background: var(--t-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0 8px;
}
.search-box { position: relative; width: 100%; }
#search-input {
  width: 100%; padding: 12px 16px 12px 44px;
  background: var(--t-inputBg);
  border: 1px solid var(--t-border);
  border-radius: 10px;
  color: var(--t-text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
[dir="rtl"] #search-input { padding: 12px 44px 12px 16px; }
#search-input::placeholder { color: var(--t-textFaint); }
#search-input:focus { border-color: var(--t-brand); }
.search-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--t-textFaint); pointer-events: none; }

#cats-wrap {
  position: sticky; top: 117px; z-index: 29;
  background: var(--t-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 0 10px;
}
.cats-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  /* Padding matches .app-container so pills align with page content */
  padding-inline: 16px;
  /* Ensure the scroll container never causes page-level overflow */
  max-width: 100vw;
  box-sizing: border-box;
}
/* Override the inner .app-container padding for the cats row — the scroll
   container itself carries the side padding already */
#cats-wrap .app-container { padding-inline: 0; }
.cat-pill {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  color: var(--t-textMuted);
  transition: all 0.2s ease;
}
.cat-pill:hover { color: var(--t-text); border-color: var(--t-brand); }
.cat-pill.active {
  background: var(--t-brand);
  color: var(--t-bg);
  border-color: var(--t-brand);
  font-weight: 700;
}

.menu-main { padding-top: 16px; padding-bottom: 140px; }
.menu-section { margin-bottom: 32px; }
.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title { color: var(--t-text); font-weight: 600; font-size: 1.05rem; margin: 0; }
.section-divider { height: 1px; background: var(--t-border); flex: 1; }
.special-title { color: var(--t-brand); }
.offer-title   { color: var(--t-accent); }

/* ─── Layout toggle button ─── */
.layout-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--t-border);
  background: var(--t-surface); color: var(--t-textMuted);
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s; font-family: inherit;
}
.layout-toggle-btn:hover { border-color: var(--t-brand); color: var(--t-text); }

/* ─── GRID layout (default) ─── */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* In list mode the grid becomes single column */
body.layout-list .products-grid { grid-template-columns: 1fr; }

/* ─── Product card — default GRID style ─── */
.product-card {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s; position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--t-brand); box-shadow: var(--t-shadow); }
.product-card:active { transform: scale(0.98); }

.product-card .product-card-media {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--t-raised); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card-image { transform: scale(1.03); }
.product-card-body { padding: 13px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; }
.card-name { color: var(--t-text); font-weight: 600; font-size: 0.95rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'Newsreader', 'Tajawal', serif; font-style: italic; }
[dir="rtl"] .card-name { font-style: normal; font-weight: 700; }
.card-desc { color: var(--t-textMuted); font-size: 0.75rem; line-height: 1.5; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price-group { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price { color: var(--t-brand); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.card-price-old { color: var(--t-textFaint); font-size: 0.75rem; text-decoration: line-through; }

/* ─── LIST layout overrides ─── */
body.layout-list .product-card {
  flex-direction: row; border-radius: 10px; align-items: center;
}
body.layout-list .product-card .product-card-media {
  width: 104px; height: 104px; aspect-ratio: unset; flex-shrink: 0;
}
body.layout-list .product-card .product-card-body {
  padding: 12px 16px; gap: 6px;
}
body.layout-list .product-card .card-desc { -webkit-line-clamp: 1; }

.add-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--t-brand); color: var(--t-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--t-brandLight); }
.add-btn:active { transform: scale(0.9); }

.ribbon {
  position: absolute; top: 12px; inset-inline-start: 0;
  background: var(--t-accent); color: #fff;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 10px 3px 8px;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
  z-index: 10;
}
[dir="rtl"] .ribbon { clip-path: polygon(100% 0, 0 0, 12% 50%, 0 100%, 100% 100%); }

/* ─── Stamp badge (signature element) ─── */
.stamp-badge {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 10;
  border: 1.3px dashed var(--t-accent);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.1;
  font-size: .56rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--t-accent);
  background: color-mix(in srgb, var(--t-surface) 88%, transparent);
  transform: rotate(-7deg);
}

.cover-wrapper { position: relative; height: 160px; overflow: hidden; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--t-bg)); }
.cover-caption { position: absolute; bottom: 12px; left: 16px; right: 16px; text-align: center; }
.cover-text { color: var(--t-text); opacity: 0.85; font-size: 0.85rem; text-shadow: 0 1px 6px rgba(0,0,0,0.6); margin: 0; }

.floating-action-zone { position: fixed; bottom: 20px; inset-inline-start: 16px; inset-inline-end: 16px; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
#cart-btn {
  display: none; align-items: center; gap: 12px;
  background: var(--t-brand); color: var(--t-bg);
  font-weight: 700; font-size: 0.875rem;
  padding: 14px 24px; border-radius: 12px;
  border: none; cursor: pointer; pointer-events: auto;
  box-shadow: var(--t-shadow);
  transition: transform 0.2s, background 0.15s;
}
#cart-btn svg { width: 18px; height: 18px; flex: none; }
#cart-btn:hover { background: var(--t-brandLight); }
#cart-btn:active { transform: scale(0.97); }
#cart-count { background: color-mix(in srgb, var(--t-bg) 25%, transparent); padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; }
#cart-total-btn { border-inline-start: 1px solid color-mix(in srgb, var(--t-bg) 25%, transparent); padding-inline-start: 12px; font-family: 'Newsreader', serif; font-variant-numeric: tabular-nums; }

#modal-backdrop, #cart-backdrop { display: none; position: fixed; inset: 0; z-index: 80; align-items: flex-end; justify-content: center; }
#cart-backdrop { z-index: 70; }
.backdrop-blur-overlay { position: absolute; inset: 0; background: rgba(15,12,9,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

#product-drawer {
  position: relative; z-index: 10; width: 100%; max-height: 88vh;
  background: var(--t-surface); border-top: 1px solid var(--t-border); border-radius: 20px 20px 0 0;
  overflow-y: auto; display: flex; flex-direction: column; box-shadow: var(--t-shadow);
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#product-drawer.open { transform: translateY(0); }
.drawer-header { position: sticky; top: 0; z-index: 20; background: var(--t-surface); padding: 14px 20px; border-bottom: 1px solid var(--t-border); display: flex; align-items: center; justify-content: space-between; }
.drawer-close, .cart-close { width: 30px; height: 30px; border-radius: 50%; background: var(--t-raised); border: 1px solid var(--t-border); color: var(--t-textMuted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: background 0.15s; }
.drawer-close:hover, .cart-close:hover { background: var(--t-border); color: var(--t-text); }
.drawer-notch { width: 40px; height: 4px; background: var(--t-border); border-radius: 999px; position: absolute; left: 50%; transform: translateX(-50%); }

.modal-product-name { color: var(--t-text); font-size: 1.4rem; font-weight: 600; font-style: italic; font-family: 'Newsreader','Tajawal',serif; margin: 0 0 8px; }
[dir="rtl"] .modal-product-name { font-style: normal; font-weight: 800; }
.modal-desc { color: var(--t-textMuted); font-size: 0.875rem; line-height: 1.65; margin: 0 0 16px; }
.modal-price-box { display: inline-flex; align-items: center; gap: 10px; background: var(--t-brandBg); border: 1px solid color-mix(in srgb, var(--t-brand) 25%, transparent); padding: 8px 16px; border-radius: 10px; margin-bottom: 20px; }
.modal-price { color: var(--t-brand); font-size: 1.3rem; font-weight: 700; font-family: 'Newsreader',serif; font-variant-numeric: tabular-nums; }
.modal-price-old { color: var(--t-textFaint); font-size: 0.875rem; text-decoration: line-through; }
.modal-special-badge { display: inline-block; background: var(--t-accentBg); color: var(--t-accent); border: 1px solid color-mix(in srgb, var(--t-accent) 30%, transparent); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }

.extra-group { background: var(--t-raised); border: 1px solid var(--t-border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.extra-group-title { color: var(--t-text); font-weight: 600; font-size: 0.875rem; }
.extra-badge-required { background: var(--t-accentBg); color: var(--t-accent); border: 1px solid color-mix(in srgb, var(--t-accent) 30%, transparent); font-size: 0.66rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.extra-badge-optional { background: var(--t-raised); color: var(--t-textFaint); border: 1px solid var(--t-border); font-size: 0.66rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.extra-badge-selected { background: color-mix(in srgb, var(--t-brand) 15%, transparent); color: var(--t-brand); border: 1px solid color-mix(in srgb, var(--t-brand) 35%, transparent); }
.extra-item { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 9px; padding: 12px 14px; margin-top: 8px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: border-color 0.15s; }
.extra-item:hover { border-color: var(--t-brand); }
.extra-item-name { color: var(--t-text); font-size: 0.875rem; }
.extra-item-price { color: var(--t-brand); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.drawer-footer { position: sticky; bottom: 0; z-index: 20; background: var(--t-raised); border-top: 1px solid var(--t-border); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.qty-wrap { display: flex; align-items: center; gap: 4px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 10px; padding: 4px; }
.qty-btn { width: 30px; height: 30px; border-radius: 7px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 700; transition: background 0.15s; }
.qty-btn-minus { background: var(--t-raised); color: var(--t-textMuted); }
.qty-btn-minus:hover { color: var(--t-text); }
.qty-btn-plus  { background: var(--t-brandBg); color: var(--t-brand); }
.qty-btn-plus:hover  { background: var(--t-brand); color: var(--t-bg); }
.qty-num { width: 26px; text-align: center; font-weight: 700; color: var(--t-text); font-size: 0.9rem; }

.add-to-cart-btn { flex: 1; padding: 14px; background: var(--t-brand); color: var(--t-bg); border: none; border-radius: 10px; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.add-to-cart-btn:hover { background: var(--t-brandLight); }
.add-to-cart-btn.disabled { background: var(--t-raised); color: var(--t-textFaint); cursor: not-allowed; }

@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
.shake { animation: shake 0.4s ease; border-color: var(--t-accent) !important; }

#cart-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 100%; max-width: 360px;
  background: var(--t-cartBg); border-inline-start: 1px solid var(--t-border); display: flex; flex-direction: column; box-shadow: var(--t-shadow);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] #cart-panel { transform: translateX(-100%); }
#cart-panel.open { transform: translateX(0); }
.cart-header { padding: 18px 20px; border-bottom: 1px solid var(--t-border); background: var(--t-surface); display: flex; align-items: center; justify-content: space-between; }
.cart-title { color: var(--t-text); font-size: 1.1rem; font-weight: 600; font-style: italic; font-family: 'Newsreader','Tajawal',serif; }
[dir="rtl"] .cart-title { font-style: normal; font-weight: 800; }

.cart-item { background: var(--t-raised); border: 1px solid var(--t-border); border-radius: 12px; padding: 14px; display: flex; gap: 12px; }
.cart-item-name { color: var(--t-text); font-weight: 600; font-size: 0.875rem; margin: 0; font-family: 'Newsreader',serif; font-style: italic; }
[dir="rtl"] .cart-item-name { font-family: 'Tajawal',sans-serif; font-style: normal; font-weight: 700; }
.cart-item-extras { color: var(--t-textMuted); font-size: 0.72rem; margin: 2px 0 0; }
.cart-item-price { color: var(--t-brand); font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.cart-item-remove { background: transparent; border: none; padding: 0; color: var(--t-textFaint); cursor: pointer; font-size: 0.9rem; transition: color 0.15s; }
.cart-item-remove:hover { color: var(--t-accent); }
.cart-qty-btn { width: 22px; height: 22px; border-radius: 6px; border: none; cursor: pointer; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.cart-qty-minus { background: var(--t-raised); color: var(--t-textMuted); border: 1px solid var(--t-border); }
.cart-qty-plus  { background: var(--t-brandBg); color: var(--t-brand); }

.thumb-fallback { display: flex; align-items: center; justify-content: center; background: var(--t-raised); border: 1px solid var(--t-border); color: var(--t-brand); }
.thumb-fallback svg { width: 38%; height: 38%; opacity: .55; }
.cart-empty-icon { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--t-textFaint); }
.cart-empty-icon svg { width: 100%; height: 100%; }
.no-results-icon { width: 40px; height: 40px; margin-bottom: 12px; color: var(--t-textFaint); }
.success-check svg { width: 48px; height: 48px; }
.map-center-pin svg { width: 26px; height: 26px; }

.upsell-section { padding: 12px 16px; border-top: 1px solid var(--t-border); background: var(--t-surface); }
.upsell-label { color: var(--t-brand); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 10px; }
.upsell-item { flex-shrink: 0; width: 96px; cursor: pointer; background: var(--t-raised); border: 1px solid var(--t-border); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; }
.upsell-item:hover { border-color: var(--t-brand); }
.upsell-item-name  { color: var(--t-text); font-size: 0.7rem; font-weight: 600; padding: 4px 6px 2px; margin: 0; }
.upsell-item-price { color: var(--t-brand); font-size: 0.68rem; font-weight: 700; padding: 0 6px 6px; margin: 0; font-variant-numeric: tabular-nums; }

.cart-footer { padding: 16px; border-top: 1px solid var(--t-border); background: var(--t-raised); }
.cart-subtotal-label { color: var(--t-textMuted); font-size: 0.875rem; }
.cart-subtotal-value { color: var(--t-text); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.whatsapp-btn { width: 100%; padding: 15px; background: #25D366; color: #fff; border: none; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.whatsapp-btn:hover { background: #1fbd5a; }

#lang-dropdown { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 10px; box-shadow: var(--t-shadow); overflow: hidden; }
.lang-btn { display: block; width: 100%; text-align: start; padding: 11px 16px; font-size: 0.875rem; font-family: inherit; background: transparent; border: none; cursor: pointer; color: var(--t-textMuted); transition: background 0.12s; }
.lang-btn:hover { background: var(--t-raised); color: var(--t-text); }
.lang-btn.active { color: var(--t-brand); font-weight: 700; }
.lang-trigger { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--t-border); background: var(--t-surface); color: var(--t-textMuted); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s; font-family: inherit; }
.lang-trigger:hover { border-color: var(--t-brand); color: var(--t-text); }

.no-results { color: var(--t-textFaint); text-align: center; padding: 80px 0; }
.cart-empty { color: var(--t-textFaint); text-align: center; padding: 60px 20px; }

.offer-card { background: var(--t-surface); border: 1px solid color-mix(in srgb, var(--t-accent) 20%, var(--t-border)); border-radius: 12px; overflow: hidden; display: flex; cursor: pointer; transition: border-color 0.2s; position: relative; }
.offer-card:hover { border-color: var(--t-accent); }
.offer-card-media { width: 108px; height: 108px; flex-shrink: 0; overflow: hidden; background: var(--t-raised); display: flex; align-items: center; justify-content: center; }
.offer-card-info { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.offer-card-name { color: var(--t-text); font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; font-family: 'Newsreader',serif; font-style: italic; }
[dir="rtl"] .offer-card-name { font-family: 'Tajawal',sans-serif; font-style: normal; font-weight: 700; }
.offer-card-price { color: var(--t-brand); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.offer-card-old   { color: var(--t-textFaint); text-decoration: line-through; font-size: 0.78rem; }
/* ── Today's Specials strip ─────────────────────────────────────────
   Same scroll pattern as .cats-scroll: the strip breaks out of the
   .app-container padding so it scrolls edge-to-edge across the full
   viewport width, with 16px indent on the start side. */
.specials-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  /* Negate the 16 px side padding that .app-container (main) adds,
     then add our own padding so the first card sits at the same
     horizontal position as the rest of the page content */
  margin-inline: -16px;
  padding-inline: 16px;
  padding-bottom: 4px;
  /* Prevent page-level horizontal scrollbar */
  max-width: 100vw;
  box-sizing: border-box;
}

.special-card {
  flex: 0 0 148px;          /* fixed width — never shrink or grow */
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.special-card:hover  { border-color: var(--t-brand); box-shadow: var(--t-shadow); }
.special-card:active { transform: scale(0.98); }
.special-card-media {
  position: relative;
  height: 90px;
  overflow: hidden;
  background: var(--t-raised);
  display: flex; align-items: center; justify-content: center;
}
.special-card-name  {
  color: var(--t-text); font-weight: 600; font-size: 0.82rem;
  margin: 0; line-height: 1.35;
  font-family: 'Newsreader', serif; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[dir="rtl"] .special-card-name { font-family: 'Tajawal', sans-serif; font-style: normal; font-weight: 700; }
.special-card-price { color: var(--t-brand); font-weight: 700; font-size: 0.82rem; margin: 4px 0 0; font-variant-numeric: tabular-nums; }

.img-placeholder { display: flex; align-items: center; justify-content: center; background: var(--t-raised); color: var(--t-brand); width: 100%; height: 100%; }
.img-placeholder-sm svg { width: 40%; height: 40%; }
.hidden { display: none !important; }

#checkout-backdrop { display: none; position: fixed; inset: 0; z-index: 200; align-items: flex-end; justify-content: center; }
#checkout-drawer { position: relative; z-index: 201; width: 100%; max-width: 540px; background: var(--t-surface); border-radius: 20px 20px 0 0; border-top: 1px solid var(--t-border); max-height: 92vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.38s cubic-bezier(.32,1.1,.55,1); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { color: var(--t-textMuted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; }
.form-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 9px; border: 1.5px solid var(--t-border); background: var(--t-raised); color: var(--t-text); font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color .2s; }
.form-input:focus { border-color: var(--t-brand); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }
.choice-btn { padding: 14px 10px; border-radius: 10px; border: 1.5px solid var(--t-border); background: var(--t-raised); color: var(--t-textMuted); font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .2s; }
.choice-btn.active { border-color: var(--t-brand); background: var(--t-brand); color: var(--t-bg); }
