* { box-sizing: border-box; }
.hidden {
  display: none !important;
}
/* Do not set overflow-x:hidden on html/body — it breaks position:sticky in WebKit/Blink. */
html {
  max-width: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #020617;
  color: #e5e7eb;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px) + var(--keyboard-inset, 0px));
  width: 100%;
  max-width: 100%;
}
html.menu-page-interaction-locked,
body.menu-page-interaction-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  height: 100%;
}
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 24px) clamp(12px, 4vw, 20px) 48px;
}
.hero { margin-bottom: 16px; }

.working-hours-banner {
  margin: 0 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
}
.working-hours-banner.is-closed {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.18);
}
.working-hours-banner.is-countdown .working-hours-status-text {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.working-hours-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.working-hours-compact:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}
.working-hours-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}
.working-hours-banner.is-closed .working-hours-status-dot {
  background: #f87171;
}
.working-hours-status-text {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.working-hours-toggle-label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
}
.working-hours-chevron {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s ease;
}
.working-hours-banner.is-expanded .working-hours-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.working-hours-details {
  padding: 0 10px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.working-hours-details.hidden {
  display: none;
}
.working-hours-heading {
  margin: 8px 0 4px;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}
.working-hours-list {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #cbd5e1;
}
.working-hours-list li {
  margin: 1px 0;
}
.working-hours-list li.working-hours-divider {
  list-style: none;
  margin-left: -1rem;
  padding-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.menu-hero-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.menu-hero-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.875rem);
  line-height: 1.2;
  word-wrap: break-word;
}
.menu-title-logo-slot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  min-width: 0;
}
.menu-title-logo-slot.hidden {
  display: none;
}
.menu-title-logo {
  display: block;
  max-height: clamp(40px, 10vw, 56px);
  max-width: min(140px, 38vw);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.menu-slogan-bottom {
  text-align: center;
  padding: 20px 16px 12px;
  margin-top: 16px;
  color: #94a3b8;
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  line-height: 1.55;
  border-top: 1px solid #1e293b;
  background: transparent;
}
.menu-slogan-bottom.hidden {
  display: none;
}

.menu-slogan-bottom:not(.hidden) + .menu-business-footer {
  border-top: none;
  margin-top: 0;
  padding-top: 12px;
}

.menu-business-footer {
  margin-top: 32px;
  padding: 20px 0 8px;
  border-top: 1px solid #1e293b;
}
.menu-business-footer.hidden {
  display: none;
}
.menu-footer-inner {
  text-align: center;
}
.menu-footer-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.menu-footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #0f172a;
  color: var(--menu-brand-primary, #38bdf8);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.menu-footer-icon-btn:hover {
  background: #1e293b;
  border-color: #475569;
  color: #e5e7eb;
}
.menu-footer-icon-btn:active {
  opacity: 0.9;
}
.menu-footer-icon-btn svg {
  display: block;
}
.menu-footer-icon-btn--secondary {
  border-style: dashed;
  opacity: 0.95;
}

.remote-phone-row {
  margin-bottom: 4px;
}
.remote-phone-row .remote-customer-input-phone-main {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.menu-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
}
html[dir="rtl"] .menu-lang-bar {
  flex-direction: row-reverse;
}
.menu-lang-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.menu-lang-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-lang-btn {
  border: 1px solid #334155;
  background: #1e293b;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.menu-lang-btn.active {
  background: #1d4ed8;
  border-color: #2563eb;
  color: #fff;
}
.muted { color: #94a3b8; margin: 0; }
/* Gift bar + search + categories: sticky by default; fixed while searching / gift-pick (keyboard-safe). */
.menu-sticky-sentinel {
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.menu-sticky-chrome {
  position: -webkit-sticky;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  margin: 0 0 10px;
  padding: 8px 0 2px;
  background: rgba(2, 6, 23, 0.97);
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.menu-sticky-chrome.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 8px clamp(12px, 4vw, 20px) 2px;
  box-sizing: border-box;
  max-width: none;
}
.menu-sticky-chrome.is-fixed .gift-pick-inner {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.menu-sticky-spacer {
  display: none;
  width: 100%;
  margin: 0 0 10px;
  pointer-events: none;
}
/* While the user is searching, keep logo / gift / hours off the screen. */
body.menu-browse-compact #menuLangBar,
body.menu-browse-compact .hero,
body.menu-browse-compact #workingHoursBanner,
body.menu-browse-compact #newsTickerBar,
body.menu-browse-compact #menuSloganStrip {
  display: none !important;
}
.gift-pick-slot:empty {
  display: none;
}
.menu-browse-tools {
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.menu-search-wrap {
  margin: 0 0 6px;
}
.menu-search {
  width: 100%;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  -webkit-text-size-adjust: 100%;
}
.menu-search::placeholder {
  color: #64748b;
}
.menu-search:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.22);
}
.status {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.status.hidden {
  display: none;
}

.menu-prompt {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.menu-prompt.hidden {
  display: none;
}
.menu-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}
.menu-prompt-panel {
  position: relative;
  width: min(100%, 340px);
  padding: 18px 16px 14px;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.menu-prompt-error .menu-prompt-panel {
  border-color: rgba(248, 113, 113, 0.45);
}
.menu-prompt-message {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e2e8f0;
}
.menu-prompt-btn {
  min-width: 88px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-prompt-error .menu-prompt-btn {
  background: #b91c1c;
}
.menu-prompt-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.order-tracking-section {
  margin-bottom: 20px;
}
.order-tracking-section.hidden {
  display: none;
}
.order-tracking-card {
  background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.order-tracking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.order-tracking-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.order-tracking-id {
  margin: 4px 0 0;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 800;
  color: #fde68a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.order-tracking-number-label {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.order-tracking-meta {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
}
.order-tracking-meta strong {
  color: #94a3b8;
  font-weight: 700;
}
.order-status-pill {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  max-width: 52%;
  line-height: 1.25;
}
.order-status-pill.waiting {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.order-status-pill.active {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
}
.order-status-pill.preparing {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.45);
}
.order-status-pill.done {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.order-tracking-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
}
.order-track-lines {
  border-top: 1px solid #1e293b;
  padding-top: 12px;
  margin-bottom: 8px;
}
.order-track-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
  color: #e5e7eb;
}
.order-track-line:last-child {
  border-bottom: none;
}
.order-track-name {
  min-width: 0;
  font-weight: 600;
}
.order-track-qty {
  color: #94a3b8;
  font-weight: 700;
  font-size: 12px;
}
.order-track-line-total {
  font-weight: 800;
  color: #f7931e;
  font-variant-numeric: tabular-nums;
}
.order-track-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
  color: #f1f5f9;
  padding-top: 4px;
}
.order-track-empty {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.order-tracking-dismiss {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e5e7eb;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.order-tracking-dismiss:active {
  opacity: 0.92;
}

.news-ticker-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #1e3a5f 0%, #0f172a 55%);
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  min-height: 46px;
}
.news-ticker-bar.hidden {
  display: none;
}
.news-ticker-bar.hidden-by-search {
  display: none;
}
.news-ticker-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 12px;
  background: rgba(247, 147, 30, 0.28);
  color: #fde68a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-ticker-bar.news-ticker-ar .news-ticker-badge {
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.news-ticker-mask {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 10px 0;
  position: relative;
}
.news-ticker-mask::before,
.news-ticker-mask::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 1;
}
.news-ticker-mask::before {
  left: 0;
  background: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0) 100%);
}
.news-ticker-mask::after {
  right: 0;
  background: linear-gradient(270deg, #0f172a 0%, rgba(15, 23, 42, 0) 100%);
}
/* Arabic UI runs under dir=rtl: flex-start is the physical right edge, so a track that
 * starts at translateX(-50%) is shifted entirely off-screen. Keep mask layout LTR so
 * the marquee matches English geometry; segment dir="rtl" still renders glyphs correctly.
 */
.news-ticker-bar.news-ticker-ar .news-ticker-mask {
  direction: ltr;
}
.news-ticker-track {
  display: inline-flex;
  flex-direction: row;
  flex-shrink: 0;
  width: max-content;
  direction: ltr;
  will-change: transform;
  --ticker-duration: 48s;
}
.news-ticker-group {
  display: inline-flex;
  flex-direction: row;
  flex-shrink: 0;
  direction: ltr;
}
/* English: marquee scrolls LTR-reading feel (lines move left → right-to-left crawl of new text). */
.news-ticker-track-ltr-en {
  animation: newsTickerMarqueeEn var(--ticker-duration) linear infinite;
}
/* Arabic: marquee scrolls with RTL-reading feel (same duplicate strip; motion reversed). */
.news-ticker-track-rtl-ar {
  animation: newsTickerMarqueeAr var(--ticker-duration) linear infinite;
}
.news-ticker-seg {
  display: inline-block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #e2e8f0;
  padding-inline-start: 4px;
  padding-inline-end: 18px;
  -webkit-font-smoothing: antialiased;
}
.news-ticker-seg[dir="rtl"] {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    "Noto Sans Arabic",
    "Noto Naskh Arabic",
    "Geeza Pro",
    sans-serif;
  letter-spacing: 0.01em;
}
/* Loops use -50% so one full cycle equals exactly one duplicated group (no px drift in RTL). */
@keyframes newsTickerMarqueeEn {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes newsTickerMarqueeAr {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .news-ticker-seg[aria-hidden="true"] {
    display: none;
  }
  .news-ticker-seg {
    white-space: normal;
  }
}

.categories-nav {
  position: static;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  margin: 0;
  background: transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
html[dir="rtl"] .categories-nav {
  direction: rtl;
}
.categories-nav::-webkit-scrollbar { height: 4px; }
.categories-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 999px; }
.category-chip {
  white-space: nowrap;
  border: 1px solid #334155;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.category-chip.active {
  background: #F7931E;
  border-color: #F7931E;
  color: #fff;
}
.quick-filter-chip {
  background: #111827;
  border-color: #475569;
  font-weight: 700;
}
.quick-filter-chip.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.sections { display: flex; flex-direction: column; gap: 20px; }
.category-section {
  scroll-margin-top: calc(118px + env(safe-area-inset-top, 0px));
}
.category-section-title {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.grid {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); border-color: #334155; }
/* Only non-compact (legacy vertical) cards — must NOT target .card-compact or it steals the thumbnail */
.card:not(.card-compact) img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.name { margin: 0; font-size: 16px; font-weight: 700; }
.desc { margin: 6px 0 0; color: #94a3b8; font-size: 13px; }
.price { margin-top: 8px; color: #F7931E; font-weight: 700; }
.variants {
  margin-top: 10px;
  border-top: 1px dashed #334155;
  padding-top: 8px;
}
.variants-title {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.variant-option { margin-bottom: 8px; }
.variant-option-name {
  color: #94a3b8;
  font-size: 12px;
  margin: 0 0 4px;
}
.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.variant-pill {
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 5px 10px;
  color: #e2e8f0;
  font-size: 12px;
  background: #111827;
}
.variant-pill.inactive {
  opacity: 0.5;
  text-decoration: line-through;
}

/* Compact product cards — never wider than viewport */
.grid-compact {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 420px) {
  .grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  }
}
.card-compact {
  padding: clamp(8px, 2vw, 10px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.card-compact-row {
  display: flex;
  gap: clamp(8px, 2vw, 10px);
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.card-thumb-col {
  flex: 0 0 auto;
}
.card-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}
@media (max-width: 380px) {
  .card-thumb-wrap {
    width: 64px;
    height: 64px;
  }
}
.card-thumb-btn {
  padding: 0;
  border: none;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  line-height: 0;
  width: 100%;
  height: 100%;
}
.card-thumb-frame {
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Explicit: wins over any other .card … img rules */
.card-compact img.card-thumb {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  vertical-align: top;
}
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  background: #1e293b;
}
.card-compact-body {
  flex: 1;
  min-width: 0;
}
/* Title | NEW/SIG (hugs icon) | fixed-width ⓘ — same icon column on every card in LTR and RTL */
.card-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) 32px;
  column-gap: 8px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.card-compact-head .card-compact-name {
  margin: 0;
  min-width: 0;
}
.card-compact-promo-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 4px;
  min-width: 0;
  max-width: min(160px, 42vw);
}
.card-promo-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[dir="rtl"] .card-promo-tag {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 10px;
  padding: 4px 7px;
}
.card-promo-new {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.card-promo-sig {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.card-compact-info-btn {
  grid-column: 3;
  justify-self: center;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #94a3b8;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.card-compact-info-btn:hover,
.card-compact-info-btn:focus-visible {
  color: #e2e8f0;
  border-color: #64748b;
  outline: none;
}
.card-compact-info-btn:active {
  background: #334155;
  color: #f1f5f9;
}
.card-compact-info-svg {
  display: block;
  pointer-events: none;
}
.card-compact-name {
  margin: 0;
  font-size: clamp(14px, 3.8vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.name-en.card-name {
  display: block;
  text-align: left;
}
.name-ar.card-name {
  display: block;
  margin-top: 2px;
  direction: rtl;
  unicode-bidi: plaintext;
  font-weight: 700;
  color: #cbd5e1;
  text-align: left;
}
html[dir="rtl"] .name-en.card-name {
  text-align: right;
}
html[dir="rtl"] .name-ar.card-name {
  text-align: right;
}
.card-compact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.card-compact-price {
  margin: 6px 0 0;
  color: #F7931E;
  font-weight: 700;
  font-size: 14px;
}
.card-compact-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}
.btn-add-cart {
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: clamp(12px, 3.2vw, 13px);
  cursor: pointer;
  flex-shrink: 0;
  max-width: 100%;
}
.card-hint {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: #64748b;
}
/* Product description under the title (replaces tap hint when description exists). */
.card-hint.card-hint-desc {
  font-size: clamp(11px, 2.9vw, 13px);
  line-height: 1.4;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-out-of-stock-msg,
.card-stock-msg {
  margin: 6px 0 0;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
}
.card-stock-oos,
.card-out-of-stock-msg {
  color: #f87171;
}
.card-stock-low {
  color: #fbbf24;
}
.modal-variant-oos {
  font-size: 0.75em;
  opacity: 0.85;
}
.card-out-of-stock-order-blocked {
  opacity: 0.92;
}

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.tag-sm { font-size: 9px; padding: 2px 6px; }
.tag-pill {
  font-size: 10px;
  padding: 5px 10px;
}
.tag-animated {
  animation: tag-pulse 2.4s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.08); transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .tag-animated { animation: none; }
}
.tag-new {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.tag-signature {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
  color: #1c1917;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Detail modal */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.detail-modal.hidden {
  display: none;
}
.detail-modal-inner {
  position: relative;
  width: 100%;
  max-width: min(520px, 100vw);
  max-height: min(92vh, 100dvh);
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px 16px 0 0;
  margin-top: auto;
  box-sizing: border-box;
}
.detail-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #1e293b;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}
.detail-modal-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}
.detail-modal-content {
  padding: 16px 16px 24px;
}
.detail-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}
.name-en.modal-name {
  display: block;
  text-align: left;
}
.name-ar.modal-name {
  display: block;
  margin-top: 4px;
  direction: rtl;
  unicode-bidi: plaintext;
  font-weight: 800;
  text-align: left;
}
.detail-modal-sub {
  margin: 6px 0 0;
  color: #a5b4fc;
  font-size: 15px;
}
.detail-modal-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-modal-badges .tag {
  flex: 0 1 auto;
  max-width: 100%;
  margin: 0;
}
html[dir="rtl"] .detail-modal-badges {
  justify-content: flex-start;
}
html[dir="rtl"] .detail-modal-badges .tag {
  text-transform: none;
  letter-spacing: 0.02em;
}
.detail-modal-desc {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}
.detail-modal-desc.ar {
  direction: rtl;
  text-align: right;
}
.modal-variant-block {
  margin-top: 14px;
}
.modal-variant-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-variant-pill {
  border: 1px solid #334155;
  background: #111827;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.modal-variant-pill.active {
  border-color: #F7931E;
  background: rgba(247, 147, 30, 0.15);
  color: #fdba74;
}
.modal-variant-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.modal-modifier-block {
  padding-top: 2px;
}
.modal-modifier-repeat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.modal-modifier-step {
  width: 30px;
  height: 30px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-modifier-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.detail-modal-price {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #F7931E;
}
.detail-modal-price-field {
  display: block;
  margin-top: 16px;
}
.detail-modal-price-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.detail-modal-price-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.detail-modal-add {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #F7931E;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.detail-modal-oos {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.detail-modal-add-disabled,
.detail-modal-add:disabled {
  background: #475569;
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Cart */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-fab.cart-pop {
  animation: cart-pop 560ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes cart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(-6deg); }
  55% { transform: scale(1.07) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.cart-fab.hidden {
  display: none;
}
.cart-fab-icon {
  font-size: 22px;
}
.cart-fab-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #F7931E;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fly-to-cart-dot {
  position: fixed;
  z-index: 980;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  left: 0;
  top: 0;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #fde68a 35%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.95;
}
.fly-to-cart-dot.animate {
  transition: transform 720ms cubic-bezier(0.2, 0.95, 0.1, 1), opacity 720ms ease;
  transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) scale(0.2);
  opacity: 0.02;
}
@media (prefers-reduced-motion: reduce) {
  .cart-fab.cart-pop {
    animation: none;
  }
  .fly-to-cart-dot,
  .fly-to-cart-dot.animate {
    transition: none;
    opacity: 0;
  }
}
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.5);
  touch-action: none;
}
.cart-overlay.hidden {
  display: none;
}
.cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 960;
  max-height: 70vh;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: #0f172a;
  border-top: 1px solid #334155;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}
.cart-drawer.hidden {
  display: none;
}
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cart-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.cart-drawer-clear {
  border: none;
  background: #1e293b;
  color: #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}
.cart-drawer-clear:active {
  opacity: 0.92;
}
.cart-drawer-close {
  border: none;
  background: #1e293b;
  color: #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}
.cart-drawer-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
}
.cart-remote-note.cart-pass-to-cashier {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.25);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}
.cart-remote-note {
  color: #94a3b8;
}
.cart-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.cart-actions-row.hidden {
  display: none !important;
}
.cart-submit-remote {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f8fafc;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.cart-submit-remote.hidden {
  display: none !important;
}
.cart-submit-remote:active {
  opacity: 0.92;
}
.cart-want-gift {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, #f7931e, #ea580c);
  color: #111827;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}
.cart-want-gift.hidden {
  display: none !important;
}
.cart-want-gift:active {
  opacity: 0.92;
}
@media (min-width: 520px) {
  .cart-actions-row {
    flex-direction: row;
    align-items: stretch;
  }
  .cart-submit-remote,
  .cart-want-gift {
    flex: 1;
  }
}

.remote-customer-modal {
  position: fixed;
  inset: 0;
  /* Above cart drawer (960), product detail modal (1000), and order tracking card */
  z-index: 4000;
  background: rgba(2, 6, 23, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  touch-action: none;
  overscroll-behavior: contain;
}
.remote-customer-modal.hidden {
  display: none;
}
.remote-customer-panel {
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.remote-customer-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f1f5f9;
}
.remote-customer-sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
}
.remote-customer-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}
.remote-customer-input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  font-size: 16px;
  outline: none;
}
.remote-customer-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.remote-customer-input.invalid {
  border-color: #be123c;
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.2);
}
.remote-service-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.remote-service-chip {
  border: 1px solid #334155;
  background: #111827;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.remote-service-chip.active {
  border-color: #1d4ed8;
  background: rgba(29, 78, 216, 0.25);
  color: #dbeafe;
}
.remote-service-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.remote-customer-inline-error {
  margin: -6px 0 12px;
  color: #fda4af;
  font-size: 12px;
  font-weight: 700;
}
.remote-customer-inline-error.hidden {
  display: none;
}
.remote-delivery-wrap.hidden {
  display: none;
}

/* Payment method selector (used in remote modal + gift summary). */
.payment-method-section {
  margin: 6px 0 14px;
}
.payment-method-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}
.payment-method-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.payment-method-chip {
  border: 1px solid #334155;
  background: #111827;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.payment-method-chip.active {
  border-color: #F7931E;
  background: rgba(247, 147, 30, 0.15);
  color: #fde7c8;
}
.payment-method-hint {
  margin: 0 0 4px;
  font-size: 12px;
  color: #94a3b8;
}
.payment-method-desc {
  margin: 4px 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(247, 147, 30, 0.08);
  border: 1px solid rgba(247, 147, 30, 0.35);
}
.payment-method-desc-title {
  font-size: 11px;
  font-weight: 800;
  color: #F7931E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.payment-method-desc-text {
  margin: 0;
  color: #f1f5f9;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}
.payment-method-error {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #fda4af;
}
.payment-method-error.hidden {
  display: none;
}

/* Schedule section. */
.schedule-section {
  margin: 0 0 14px;
}
.schedule-section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}
.schedule-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.schedule-option {
  border: 1px solid #334155;
  background: #111827;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.schedule-option.active {
  border-color: #1d4ed8;
  background: rgba(29, 78, 216, 0.25);
  color: #dbeafe;
}
.schedule-picker {
  margin-top: 6px;
}
.schedule-picker.hidden {
  display: none;
}
.schedule-picker-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin: 4px 0 6px;
}
.schedule-picker-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  font-size: 15px;
  outline: none;
}
.schedule-picker-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.schedule-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #fda4af;
}
.schedule-error.hidden {
  display: none;
}
/* Western digits + typical phone keypad even when page is Arabic RTL */
.remote-customer-input-phone {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
html[dir="rtl"] .remote-customer-input-phone {
  text-align: right;
}
.remote-customer-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.remote-customer-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.remote-customer-btn.secondary {
  background: #1e293b;
  color: #e5e7eb;
}
.remote-customer-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f8fafc;
}
.remote-customer-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-lines {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
}
.cart-empty {
  color: #64748b;
  text-align: center;
  padding: 24px;
}
.cart-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1e293b;
}
.cart-line-leading {
  flex: 0 0 auto;
}
.cart-line-thumb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid #334155;
}
.cart-line-thumb-placeholder {
  background: #1f2937;
}
.cart-line-main {
  flex: 1;
  min-width: 0;
}
.cart-line-name {
  font-weight: 700;
  font-size: 14px;
}
.name-en.cart-line-name {
  display: block;
}
.name-ar.cart-line-name {
  display: block;
  margin-top: 2px;
  direction: rtl;
  font-weight: 700;
  color: #cbd5e1;
  font-size: 13px;
}
html[dir="rtl"] .name-en.cart-line-name {
  text-align: right;
}
html[dir="rtl"] .name-ar.cart-line-name {
  text-align: right;
}
.cart-line-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.cart-line-price {
  font-size: 13px;
  color: #F7931E;
  font-weight: 700;
  margin-top: 4px;
}
.cart-line-note {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1.35;
  resize: vertical;
  min-height: 44px;
  outline: none;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
.cart-line-note:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.cart-line-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}
.cart-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}
.cart-drawer-footer {
  border-top: 1px solid #334155;
  padding-top: 12px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
}

/* Gift builder modal */
.gift-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  z-index: 1100;
  touch-action: none;
  overscroll-behavior: contain;
}
.gift-modal.hidden {
  display: none;
}
.gift-modal-inner {
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, calc(100vh - max(24px, env(safe-area-inset-top, 0px)) - max(16px, env(safe-area-inset-bottom, 0px))));
  max-height: min(90vh, 90dvh, calc(100dvh - max(24px, env(safe-area-inset-top, 0px)) - max(16px, env(safe-area-inset-bottom, 0px))));
  min-height: 0;
  background: #0f172a;
  border-radius: 18px;
  border: 1px solid #1e293b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}
.gift-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.gift-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #e5e7eb;
}
.gift-modal-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
}
.gift-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 0;
}
.gift-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: #e5e7eb;
}
.gift-summary-count {
  font-weight: 600;
}
.gift-summary-total {
  font-weight: 700;
  color: #facc15;
}
.gift-toggle-flowers {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #020617;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 6px;
}
.gift-toggle-pill {
  min-width: 40px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}
.gift-toggle-pill.on {
  background: #15803d;
  color: #ecfdf5;
}
.gift-toggle-pill.off {
  background: #374151;
  color: #e5e7eb;
}
.gift-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 4px 0 8px;
}
.gift-items-list {
  max-height: 200px;
  overflow: auto;
  margin-bottom: 10px;
}
.gift-flower-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.gift-item-row {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.gift-item-row.selected {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}
.gift-item-main {
  flex: 1;
  margin-right: 10px;
}
.gift-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}
.gift-item-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}
.gift-item-sub {
  color: #c4b5fd;
}
.gift-item-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #4b5563;
}
.gift-item-row.selected .gift-item-check {
  border-color: #f97316;
  background: #f97316;
}
.gift-field-group {
  margin-top: 10px;
}
.gift-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 4px;
}
.gift-loyalty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.gift-loyalty-chip {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.gift-loyalty-chip.selected {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}
.gift-loyalty-chip:active {
  opacity: 0.92;
}
.gift-loyalty-hint {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}
.gift-phone-row {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 6px;
}
.gift-phone-country {
  flex-shrink: 0;
  min-width: 108px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
  padding: 0 8px;
}
.gift-phone-cc-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
}
.gift-input-phone-main {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.gift-contact-picker-btn {
  flex-shrink: 0;
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e5e7eb;
  cursor: pointer;
  padding: 0;
}
.gift-contact-picker-btn:active {
  opacity: 0.92;
}
.gift-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  /* 16px minimum: iOS Safari otherwise zooms the whole viewport on focus */
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 6px;
  -webkit-text-size-adjust: 100%;
}
.gift-input::placeholder {
  color: #64748b;
}
.gift-input.invalid {
  border-color: #be123c;
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.2);
}
.gift-field-error {
  margin: -2px 0 6px;
  color: #fda4af;
  font-size: 12px;
  font-weight: 700;
}
.gift-field-error.hidden {
  display: none;
}
.gift-input-textarea {
  min-height: 52px;
  resize: vertical;
}
.gift-char-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.gift-field-hint {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.35;
}
.gift-char-count {
  flex-shrink: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #6b7280;
}
.gift-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.gift-btn-secondary,
.gift-btn-primary {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.gift-btn-secondary {
  background: #020617;
  border-color: #4b5563;
  color: #e5e7eb;
}
.gift-btn-primary {
  background: #f97316;
  border-color: #f97316;
  color: #0f172a;
}

/* Top gift quick-action */
.gift-quick-wrap {
  margin-top: 10px;
  position: relative;
}
.gift-quick-wrap.hidden {
  display: none;
}
.gift-quick-wrap.hidden-by-search {
  display: none;
}
.gift-quick-btn {
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.gift-quick-icon {
  font-size: 14px;
}
.gift-quick-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  min-width: 230px;
  max-width: min(88vw, 360px);
  border: 1px solid #334155;
  background: #0f172a;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.5);
}
html[dir="rtl"] .gift-quick-picker {
  left: auto;
  right: 0;
}
.gift-quick-picker.hidden {
  display: none;
}
.gift-quick-picker-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 700;
}
.gift-quick-item {
  width: 100%;
  text-align: left;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
html[dir="rtl"] .gift-quick-item {
  text-align: right;
}

/* Gift flow: pick products on the real menu */
body.gift-pick-active {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.gift-pick-active #menuLangBar,
body.gift-pick-active .hero,
body.gift-pick-active #workingHoursBanner,
body.gift-pick-active #newsTickerBar,
body.gift-pick-active #menuSloganStrip,
body.gift-pick-active #menuBusinessFooter {
  display: none !important;
}

.gift-pick-bar {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  padding: 12px;
  background: linear-gradient(135deg, #172554, #0f172a 70%);
  border: 1px solid #3b82f6;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.32);
}
.gift-pick-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.gift-pick-text {
  flex: 1;
  min-width: min(100%, 220px);
}
.gift-pick-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #e5e7eb;
}
.gift-pick-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}
.gift-pick-count-row {
  margin: 8px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}
.gift-pick-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.gift-pick-btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}
.gift-pick-btn.ghost {
  background: #0f172a;
  border-color: #334155;
  color: #e5e7eb;
}
.gift-pick-btn.primary {
  background: #f97316;
  border-color: #f97316;
  color: #0f172a;
}
.gift-pick-btn.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.card-gift-pick-mode.card-gift-pick-selected {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 12px;
}
.card-gift-pick-mode.card-gift-ineligible {
  opacity: 0.45;
  pointer-events: none;
}
.card-gift-pick-mode.card-gift-ineligible .card-compact-info-btn {
  pointer-events: auto;
}

.gift-card-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.gift-card-qty-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.gift-card-qty-btn:active {
  opacity: 0.85;
}
.gift-card-qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #f8fafc;
}
.gift-card-variant-qty-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #93c5fd;
}

.gift-order-summary-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  background: rgba(2, 6, 23, 0.92);
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.gift-order-summary-panel {
  width: 100%;
  max-width: min(28rem, 100%);
  max-height: min(88vh, calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
  max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px));
  margin: 0 auto 1rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

.gift-order-summary-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
}

.gift-order-summary-kind {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.gift-order-summary-section {
  margin-bottom: 1.25rem;
}

.gift-order-summary-h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.gift-sum-lines {
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 12px;
  overflow: hidden;
}

.gift-sum-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem 0.5rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 0.9rem;
}
.gift-sum-line:last-child {
  border-bottom: none;
}

.gift-sum-line-name {
  font-weight: 600;
  color: #f1f5f9;
}

.gift-sum-line-meta {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #94a3b8;
}

.gift-sum-line-qty,
.gift-sum-line-price {
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}

.gift-sum-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0.5rem 0.25rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: #f8fafc;
  border-top: 1px solid rgba(248, 250, 252, 0.18);
}

/* Items subtotal / service fee lines stacked above the bold total row.
   Lighter weight to keep the "Total" line visually dominant. */
.gift-sum-subline-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0.25rem;
  font-size: 0.9rem;
  color: #cbd5f5;
  font-weight: 500;
}

.gift-sum-detail {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.gift-order-number-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fde68a;
  font-variant-numeric: tabular-nums;
}

.gift-order-summary-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.gift-order-summary-label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.gift-order-summary-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background: #020617;
  color: #f8fafc;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.gift-order-service-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.gift-order-service-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background: transparent;
  color: #e2e8f0;
  font-size: 0.85rem;
  cursor: pointer;
}

.gift-order-service-chip.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.gift-order-delivery-wrap {
  margin-top: 0.5rem;
}

.gift-order-summary-warn {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde68a;
  font-size: 0.9rem;
}

.gift-order-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gift-order-summary-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.gift-order-summary-btn.ghost {
  background: transparent;
  border: 1px solid rgba(71, 85, 105, 0.9);
  color: #cbd5e1;
}

.gift-order-summary-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
