/* «اطلب من الإمارات» — design system v8.
   Reference look: white surfaces, ORANGE primary (#F5821F family), deep navy
   (#0B2A4A) headings, rounded cards, soft shadows. */
:root {
  --orange: #f5821f; --orange-dark: #d96e0b; --orange-deep: #b85c05;
  --orange-soft: #fff3e6; --orange-line: #ffd9ae;
  --navy: #0b2a4a; --navy-deep: #07203a; --navy-soft: #eef3f9;
  --ink: #1c2733; --muted: #68707a; --line: #e4e9ef; --bg: #f6f8fb; --card: #ffffff;
  --danger: #b3261e; --danger-soft: #fdecea;
  --green: #15803d; --green-soft: #dcf2e3;
  --shadow-sm: 0 2px 8px rgba(11, 42, 74, 0.07);
  --shadow-md: 0 10px 26px rgba(11, 42, 74, 0.12);
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; background: var(--bg); color: var(--ink); }
h1, h2, h3, h4 { color: var(--navy); }
h1, h2, h3 { font-weight: 800; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 0.97rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.18); }
label { display: block; font-size: 0.9rem; }
label span { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 600; }
a { color: var(--orange-dark); }

/* ---------- promo bar ---------- */
.promo-banner { background: linear-gradient(90deg, var(--navy-deep), var(--navy) 55%, var(--navy-deep)); color: #fff; text-align: center; font-weight: 700; padding: 9px 12px; font-size: 0.95rem; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-badge { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 13px; box-shadow: 0 6px 14px rgba(245, 130, 31, 0.35); }
.brand-names { display: flex; flex-direction: column; line-height: 1.15; }
.brand-names strong { color: var(--navy); font-size: 1.12rem; }
.brand-names small { color: var(--muted); }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.navbtn { border: 1px solid transparent; background: transparent; padding: 9px 14px; border-radius: 999px; font-weight: 700; color: var(--navy); font-size: 0.96rem; }
.navbtn:hover { background: var(--orange-soft); }
.navbtn.active { background: var(--orange); color: #fff; box-shadow: 0 4px 10px rgba(245, 130, 31, 0.3); }
.top-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.ghost-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px; font-weight: 600; color: var(--navy); }
.ghost-btn:hover { border-color: var(--orange-line); background: var(--orange-soft); }
.cart-btn { border: none; background: var(--navy); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 4px 10px rgba(11, 42, 74, 0.3); }
.cart-btn:hover { background: var(--navy-deep); }
.cart-count { background: var(--orange); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 0.85rem; font-weight: 800; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #8ec3ee 0%, #cfe9fa 70%, #eaf5fd 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
html[dir="ltr"] .hero-bg { transform: scaleX(-1); }
/* Soft light scrim on the text side only (inline-start), so the navy
   headline carries over the sky while the scene stays visible. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.34) 36%, rgba(255,255,255,0) 64%); }
html[dir="ltr"] .hero::after { background: linear-gradient(to right, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.34) 36%, rgba(255,255,255,0) 64%); }
.hero-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; min-height: 520px;
  padding: 46px 16px 78px; display: flex; align-items: flex-start; }
.hero-content { max-width: 560px; min-width: 0; text-align: start; }
.hero-content h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.8vw, 3.05rem); font-weight: 800; color: var(--navy); line-height: 1.35; }
.hero-content h1 .hl { color: var(--orange); }
.hero-content p { margin: 0 0 22px; color: rgba(11, 42, 74, 0.85); font-size: 1.04rem; line-height: 1.8; font-weight: 600; }
.hero-search { display: flex; width: 100%; max-width: 560px; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow-md); }
.hero-search input { border: none; flex: 1; min-width: 0; padding: 10px 16px; background: transparent; font-size: 1rem; }
.hero-search input:focus { box-shadow: none; }
.search-btn { border: none; background: var(--orange); color: #fff; font-weight: 800; font-size: 1rem; border-radius: 999px; padding: 10px 30px; }
.search-btn:hover { background: var(--orange-dark); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.route-chip { border: 1px solid rgba(11, 42, 74, 0.25); background: rgba(11, 42, 74, 0.88); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.route-chip:hover { background: var(--navy); }
.route-chip.active { background: #fff; color: var(--navy); border-color: #fff; box-shadow: var(--shadow-sm); }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.trust-chip { background: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.95); color: var(--navy); padding: 6px 13px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; box-shadow: var(--shadow-sm); }

/* ---------- layout ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 20px 14px 44px; }
.view { display: none; }
.view.active { display: block; }
.section-title { font-size: 1.18rem; font-weight: 800; margin: 22px 0 12px; }

/* ---------- category strip ---------- */
.cat-strip { position: relative; z-index: 6; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 14px 12px; margin-top: -42px; }
.cat-tile { flex: 1 0 90px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 11px;
  background: #f4f7fa; border: 1.5px solid transparent; border-radius: 16px; font-weight: 700; font-size: 0.83rem; color: var(--navy);
  transition: box-shadow .15s ease, transform .15s ease; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-tile.active { box-shadow: inset 0 0 0 2px var(--orange), var(--shadow-sm); }
.cat-ic { width: 48px; height: 48px; display: grid; place-items: center; color: var(--navy); }
.cat-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Per-tile pastel tints, as in the reference mock */
.cat-tile.t-blue   { background: #e8f1fd; } .cat-tile.t-blue   .cat-ic { color: #2b6cb0; }
.cat-tile.t-violet { background: #efeafd; } .cat-tile.t-violet .cat-ic { color: #6d28d9; }
.cat-tile.t-green  { background: #e7f8ee; } .cat-tile.t-green  .cat-ic { color: #15803d; }
.cat-tile.t-sky    { background: #e6f5fc; } .cat-tile.t-sky    .cat-ic { color: #0284c7; }
.cat-tile.t-pink   { background: #fdeef5; } .cat-tile.t-pink   .cat-ic { color: #db2777; }
.cat-tile.t-ice    { background: #edf3fa; } .cat-tile.t-ice    .cat-ic { color: #0b2a4a; }
.cat-tile.t-peach  { background: #ffefe3; } .cat-tile.t-peach  .cat-ic { color: #e07b24; }
.cat-tile.t-lav    { background: #f3eafd; } .cat-tile.t-lav    .cat-ic { color: #7c3aed; }
.cat-tile.t-teal   { background: #e6f7f1; } .cat-tile.t-teal   .cat-ic { color: #0f766e; }
.cat-tile.t-slate  { background: #eef1f5; } .cat-tile.t-slate  .cat-ic { color: #52606d; }
/* The "all categories" tile goes solid orange when active (mock style) */
.cat-tile[data-cat=""].active { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(245, 130, 31, 0.35); }
.cat-tile[data-cat=""].active .cat-ic { color: #fff; }

/* ---------- filters & products ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input[type="search"] { flex: 2 1 220px; }
.filters select { flex: 1 1 160px; }
.filters-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); }
.filters-bar select { background: var(--navy-soft); border-color: transparent; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card img { width: 100%; height: 160px; object-fit: contain; background: #fff; cursor: pointer; }
.product-card h4 { cursor: pointer; }
.product-card .ph { height: 160px; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--orange-soft), var(--navy-soft)); }
.product-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-body h4 { margin: 0; font-size: 1.02rem; }
.product-body p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; line-height: 1.6; }
.price { font-weight: 800; color: var(--orange-deep); font-size: 1.08rem; }
.price small { color: var(--muted); font-weight: 600; }
.meta-row { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; }
.tag { background: var(--navy-soft); color: var(--navy); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.tag.route { background: var(--orange-soft); color: var(--orange-deep); }
.stock-out { color: var(--danger); font-weight: 700; }

/* ---------- buttons ---------- */
.primary-btn { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color: #fff; border: none; border-radius: 11px; padding: 11px 18px; font-weight: 700; font-size: 0.97rem; box-shadow: 0 4px 10px rgba(245, 130, 31, 0.25); }
.primary-btn:hover { background: var(--orange-dark); }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.danger-btn { background: #fff; color: var(--danger); border: 1px solid #f0c7c3; border-radius: 9px; padding: 7px 12px; font-weight: 700; }
.danger-btn:hover { background: var(--danger-soft); }
.small-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 12px; font-weight: 700; color: var(--navy); }
.small-btn:hover { border-color: var(--orange-line); background: var(--orange-soft); }

/* ---------- destination cards ---------- */
.dest-section { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm); padding: 18px; }
.dest-title { display: flex; align-items: center; gap: 8px; font-size: 1.18rem; font-weight: 800; margin: 0 0 14px; }
.crown-ic { width: 23px; height: 23px; fill: var(--orange); flex: 0 0 auto; }
.hero-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.route-card { position: relative; overflow: hidden; flex: 1 1 260px; height: 158px; padding: 0;
  border: none; border-radius: 18px; color: #fff; background: var(--navy);
  box-shadow: var(--shadow-md); transition: transform .16s ease, box-shadow .16s ease; }
.route-card:hover, .route-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11, 42, 74, 0.3); }
.route-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.route-card[data-route="EG_AE"] .route-photo { object-position: center 42%; }
.route-label { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 16px 12px; text-align: start;
  font-weight: 800; font-size: 1.12rem; background: linear-gradient(transparent, rgba(7, 32, 58, 0.85));
  text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

/* ---------- features + CTA ---------- */
.features-band { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; align-items: stretch; }
.features-grid { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.feature { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.feature h4 { margin: 0 0 3px; font-size: 0.98rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.feat-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.feat-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cta-card { flex: 1 1 320px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); border-radius: 20px; color: #fff;
  padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: 0 14px 30px rgba(245, 130, 31, 0.35); }
.cta-app-icon { width: 92px; height: 92px; border-radius: 22px; background: #fff; flex: 0 0 auto; box-shadow: 0 8px 18px rgba(7, 32, 58, 0.28); }
.cta-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.cta-card h3 { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1.5; }
.cta-btn { align-self: flex-start; background: var(--navy); color: #fff; border: none; border-radius: 999px; padding: 11px 22px; font-weight: 800; font-size: 0.98rem; }
.cta-btn:hover { background: var(--navy-deep); }
.cta-sell { align-self: flex-start; background: transparent; border: none; color: #fff; font-weight: 700; text-decoration: underline; padding: 0; font-size: 0.94rem; }

/* ---------- info / contact cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 26px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-top: 0; font-size: 1.05rem; }
.info-card.narrow { max-width: 480px; margin: 0 auto; }
.info-card.danger { border-color: #f0c7c3; background: #fff8f7; }
.info-card ol, .info-card ul { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.8; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.contact-block { margin-top: 26px; }
.contact-cards { margin-top: 10px; }
.contact-single { max-width: 500px; margin: 0; padding: 14px 16px; }
.contact-single .contact-num { font-size: 1.04rem; }
.contact-single .contact-actions .small-btn { padding: 6px 11px; font-size: 0.88rem; }
.flag-ic { display: inline-block; width: 31px; height: 21px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(43, 38, 32, 0.18); vertical-align: middle; }
.flag-ic svg { display: block; width: 100%; height: 100%; }
.contact-single h4 { margin: 0 0 4px; line-height: 1; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 6px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.contact-card h4 { margin: 0 0 6px; }
.contact-num { font-size: 1.18rem; font-weight: 800; margin: 0; color: var(--navy); }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-actions a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.wa-btn { border-color: #25d366; color: #128c4b; }
.hint { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; font-size: 1rem; }

/* ---------- forms ---------- */
.stack-form { display: flex; flex-direction: column; gap: 11px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; align-items: end; }
.grid-form .full { grid-column: 1 / -1; }
.form-group-label { grid-column: 1 / -1; font-weight: 800; color: var(--navy); font-size: 0.92rem; padding-top: 6px; border-bottom: 2px solid var(--orange-soft); padding-bottom: 5px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.inline-form input { flex: 1 1 240px; }

/* ---------- orders ---------- */
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow-sm); }
.order-card .order-card { border: none; box-shadow: none; padding: 0; margin: 0; }
.order-card h4 { margin: 0 0 8px; font-size: 1.02rem; }
.kv { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 0.92rem; align-items: center; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 11px; font-size: 0.82rem; font-weight: 800; }
.st-new { background: #e3edff; color: #2563eb; }
.st-confirmed { background: #e0f5fa; color: #0e7490; }
.st-purchasing { background: #fef3c7; color: #b45309; }
.st-shipped { background: #e6e6fb; color: #4338ca; }
.st-arrived { background: #d9f2ec; color: #0f766e; }
.st-delivered { background: var(--green-soft); color: var(--green); }
.st-cancelled { background: var(--danger-soft); color: var(--danger); }
.esc-held { background: #fef3c7; color: #b45309; }
.esc-released { background: var(--green-soft); color: var(--green); }
.esc-refunded { background: var(--danger-soft); color: var(--danger); }
.token-box { background: var(--navy); color: #dcebfb; border-radius: 10px; padding: 11px 13px; word-break: break-all; font-family: monospace; margin-top: 8px; }

.tracking-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--navy-soft); display: flex; flex-direction: column; gap: 6px; }
.tracking-head { font-weight: 800; color: var(--navy); }
.eta-line { font-size: 1.05rem; }
.delivery-code-box { border: 1.5px dashed var(--orange); background: var(--orange-soft); border-radius: 12px; padding: 12px 14px; text-align: center; }
.dc-label { font-weight: 800; color: var(--orange-deep); }
.dc-code { font-size: 1.7rem; font-weight: 800; letter-spacing: 6px; color: var(--navy); margin: 4px 0; font-variant-numeric: tabular-nums; }
.delivery-code-box .hint { text-align: start; }
.timeline { margin-top: 8px; border-top: 1px dashed #c6d4e4; padding-top: 8px; }
.tl-row { padding: 3px 0; font-size: 0.92rem; display: flex; gap: 8px; align-items: baseline; }
.tl-dot { color: var(--orange); font-size: 0.7rem; }
.tracking-form { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tracking-form .tracking-head { margin-bottom: 8px; }
.code-form { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.code-form input { letter-spacing: 2px; }

/* ---------- dashboards / admin ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dash-head h2 { margin: 6px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 700; color: var(--navy); }
.tab:hover { border-color: var(--orange-line); }
.tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 12px; padding: 15px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 1.32rem; font-weight: 800; color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.seller-stats { margin: 6px 0 16px; }
table.plain { width: 100%; border-collapse: collapse; background: #fff; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 10px; text-align: start; font-size: 0.92rem; vertical-align: top; }
table.plain thead th { background: var(--navy-soft); color: var(--navy); font-weight: 800; }
table.plain tbody tr:nth-child(even) { background: #fbfcfe; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; background: rgba(7, 32, 58, 0.55); z-index: 60; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 18px 10px; }
.drawer-card { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 560px; box-shadow: var(--shadow-md); }
.drawer-card h3 { margin: 0; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-total { font-size: 1.12rem; margin: 14px 0; background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 11px; padding: 11px 14px; color: var(--navy); }
.qty-ctl { display: inline-flex; gap: 6px; align-items: center; }
.qty-ctl button { width: 29px; height: 29px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 800; color: var(--navy); }
.qty-ctl button:hover { border-color: var(--orange-line); background: var(--orange-soft); }

.toast { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(50%); background: var(--navy); color: #fff;
  padding: 11px 18px; border-radius: 16px; z-index: 80; width: max-content; max-width: min(92vw, 430px); text-align: center; box-shadow: var(--shadow-md); line-height: 1.6; }
html[dir="ltr"] .toast { transform: translateX(-50%); inset-inline-start: 50%; }
.footer { text-align: center; color: var(--muted); padding: 20px 18px; border-top: 1px solid var(--line); background: #fff; line-height: 1.7; }
.photo-credits { margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.success { color: var(--green); font-weight: 700; }
.error { color: var(--danger); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  /* Stack: text block first (on the hero's sky gradient), scene band below */
  .hero { display: flex; flex-direction: column; }
  .hero::after { display: none; }
  .hero-inner { order: 1; min-height: 0; padding: 26px 14px 20px; }
  .hero-bg { position: relative; order: 2; height: 205px; object-position: center 24%; }
  .hero-content { max-width: none; }
  .hero-content h1 { font-size: 1.8rem; }
  .cat-strip { margin-top: -30px; }
  .cta-app-icon { width: 76px; height: 76px; border-radius: 18px; }
}
@media (max-width: 640px) {
  .route-card { flex-basis: 100%; height: 124px; }
  .features-band { flex-direction: column; }
  .filters select { flex-basis: 100%; }
  .mainnav { order: 3; width: 100%; justify-content: center; }
}

/* Guard: the hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

/* ================================================================
   ROUND 3 — "Atelier" theme, translated from the user's reference
   template (warm cream surfaces, serif display type, pill nav,
   floating glass cards, vertical icon rail, charcoal + bronze).
   Brand constants kept: platform orange #f5821f as the bronze
   accent, the عدوغرى logo, and every functional hook untouched.
   ================================================================ */
:root {
  --navy-soft: #f1eadd;
  --ink: #2b2620; --muted: #8b7d6a; --line: #e7ddcb; --bg: #f4efe7; --card: #fffdf8;
  --orange-soft: #fdf0e1; --orange-line: #f2d7b4;
  --shadow-sm: 0 2px 10px rgba(74, 56, 28, 0.08);
  --shadow-md: 0 14px 34px rgba(74, 56, 28, 0.16);
  --radius: 18px;
}
body { background: radial-gradient(1100px 500px at 85% -5%, #faf5ec 0%, rgba(250,245,236,0) 60%), var(--bg); }
h1, h2 { font-family: "El Messiri", "Cairo", serif; font-weight: 700; letter-spacing: 0.1px; }
h3, h4 { font-family: "El Messiri", "Cairo", serif; font-weight: 600; }

/* header → floating cream bar with pill nav (template) */
.topbar { background: rgba(250, 246, 238, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(231, 221, 203, 0.8); box-shadow: 0 4px 18px rgba(74, 56, 28, 0.06); }
.mainnav { background: #fffdf8; border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.navbtn { color: var(--ink); }
.navbtn:hover { background: var(--orange-soft); }
.navbtn.active { background: #262019; color: #fdf9f1; box-shadow: 0 6px 14px rgba(38, 32, 25, 0.35); }
.ghost-btn { background: #fffdf8; color: var(--ink); }
.cart-btn { background: #262019; box-shadow: 0 6px 14px rgba(38, 32, 25, 0.35); }
.cart-btn:hover { background: #3a332a; }
.promo-banner { background: linear-gradient(90deg, #211d16, #38312a 55%, #211d16); }

/* vertical icon rail (template signature) */
.rail { position: fixed; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 7px;
  background: rgba(255, 253, 248, 0.94); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md); }
.rail-btn { width: 42px; height: 42px; border: none; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--ink); padding: 0; }
.rail-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { background: var(--orange-soft); }
.rail-btn.active { background: #262019; color: #fdf9f1; }
.rail-spacer { width: 22px; border-top: 1px solid var(--line); margin: 5px 0; }
.rail-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange-line); }
@media (max-width: 1080px) { .rail { display: none; } }

/* hero → warm photograph, cream veil, serif headline */
.hero { background: #e9dfcd; padding-bottom: 30px; }
.hero-bg { object-position: center 42%; }
.hero::after { background:
  linear-gradient(to top, rgba(244,239,231,0.95) 0%, rgba(244,239,231,0) 30%),
  linear-gradient(to left, rgba(247,242,233,0.90) 0%, rgba(247,242,233,0.55) 42%, rgba(247,242,233,0.08) 72%); }
html[dir="ltr"] .hero::after { background:
  linear-gradient(to top, rgba(244,239,231,0.95) 0%, rgba(244,239,231,0) 30%),
  linear-gradient(to right, rgba(247,242,233,0.90) 0%, rgba(247,242,233,0.55) 42%, rgba(247,242,233,0.08) 72%); }
.hero-inner { min-height: 470px; }
.hero-eyebrow { margin: 0 0 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.6px; color: var(--orange-deep); text-transform: uppercase; }
.hero-content h1 { font-family: "El Messiri", "Cairo", serif; font-weight: 700; font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.3; color: #262019; }
.hero-content h1 .hl { color: var(--orange-deep); }
.hero-content > p { color: rgba(43, 38, 32, 0.82); }
.hero-search { box-shadow: 0 16px 36px rgba(74, 56, 28, 0.20); }
.trust-chip { background: rgba(255, 253, 248, 0.85); backdrop-filter: blur(6px); }

/* floating cards row (template signature) */
.hero-float { position: relative; z-index: 3; max-width: 1160px; margin: 8px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 1.15fr 1.35fr 1fr; gap: 14px; }
.float-card { background: rgba(255, 253, 248, 0.94); backdrop-filter: blur(8px); border: 1px solid rgba(231, 221, 203, 0.9);
  border-radius: 24px; box-shadow: var(--shadow-md); padding: 16px; text-align: start; }
.float-card.featured { display: flex; align-items: center; gap: 13px; cursor: pointer; font-family: inherit; width: 100%; }
.float-card.featured img { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; flex: none; }
.float-card .fc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.float-card .fc-text small { color: var(--orange-deep); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.5px; }
.float-card .fc-text strong { font-family: "El Messiri", serif; font-size: 1.12rem; color: #262019; }
.float-card .fc-text em { font-style: normal; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.float-card .fc-arrow { margin-inline-start: auto; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #262019; color: #fdf9f1; display: grid; place-items: center; font-size: 1rem; }
.float-card.stats { display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.float-card.stats .stat { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.float-card.stats .stat svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--orange-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-card.dark { background: linear-gradient(150deg, #2e2820, #1d1913); color: #f5efe3; border-color: #3a332a; }
.float-card.dark strong { font-family: "El Messiri", serif; font-size: 1.18rem; color: #fdf9f1; }
.float-card.dark p { margin: 6px 0 13px; color: rgba(245, 239, 227, 0.78); font-size: 0.88rem; line-height: 1.65; }
.float-card.dark .float-go { background: var(--orange); color: #fff; border: none; box-shadow: 0 6px 14px rgba(245, 130, 31, 0.4); }
.float-card.dark .float-go:hover { background: var(--orange-dark); }
@media (max-width: 900px) { .hero-float { grid-template-columns: 1fr; } .hero-inner { min-height: 0; } }

/* warm retint of category pastels + softer surfaces */
.cat-tile { border-radius: 18px; }
.cat-tile.t-blue   { background: #f3ead9; } .cat-tile.t-blue   .cat-ic { color: #96762e; }
.cat-tile.t-violet { background: #f5e8dd; } .cat-tile.t-violet .cat-ic { color: #a05c2c; }
.cat-tile.t-green  { background: #eef0dd; } .cat-tile.t-green  .cat-ic { color: #6d7a35; }
.cat-tile.t-sky    { background: #f7ecd7; } .cat-tile.t-sky    .cat-ic { color: #b07d2b; }
.cat-tile.t-pink   { background: #f9e9e2; } .cat-tile.t-pink   .cat-ic { color: #b45a41; }
.cat-tile.t-ice    { background: #f2eee1; } .cat-tile.t-ice    .cat-ic { color: #7d7461; }
.cat-tile.t-peach  { background: #fdeeda; } .cat-tile.t-peach  .cat-ic { color: #cf7016; }
.cat-tile.t-lav    { background: #f4e9e4; } .cat-tile.t-lav    .cat-ic { color: #96604f; }
.cat-tile.t-teal   { background: #ecefe4; } .cat-tile.t-teal   .cat-ic { color: #5f7350; }
.cat-tile.t-slate  { background: #efe9dc; } .cat-tile.t-slate  .cat-ic { color: #6b5f45; }
.route-card, .info-card, .cta-card { border-radius: 24px; }
.cta-card { background: linear-gradient(140deg, #2e2820, #1d1913); color: #f5efe3; }
.cta-card h3 { color: #fdf9f1; }
.cta-btn { background: var(--orange); }
.dest-title .crown-ic { color: var(--orange-deep); }

/* ===== Round 3.1 — page redistribution (owner-directed) =====
   Route chips lifted to the hero's top end corner; search slimmed
   to match the composition; trust messages consolidated into the
   floating stats card; roomier, calmer section rhythm. */
.hero-chips { position: absolute; top: 16px; inset-inline-end: 18px; z-index: 4; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.route-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(38, 32, 25, 0.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 253, 248, 0.35); color: #fdf9f1; padding: 8px 15px; }
.route-chip:hover { background: rgba(38, 32, 25, 0.95); }
.route-chip.active { background: #fffdf8; color: #262019; border-color: #fffdf8; }
.flag-sm { width: 23px; height: 16px; border-radius: 3px; }
.hero-search { max-width: 438px; padding: 4px; }
.hero-search input { padding: 8px 14px; font-size: 0.95rem; }
.hero-search .search-btn { padding: 9px 22px; font-size: 0.95rem; }
.hero-inner { min-height: 452px; padding-top: 30px; }
.hero-content > p { max-width: 50ch; }
@media (max-width: 760px) {
  .hero-chips { position: static; margin: 14px 16px 0; }
  .hero-inner { padding-top: 6px; }
}
/* categories become one soft panel; airier store rhythm */
.cat-strip { background: rgba(255, 253, 248, 0.8); border: 1px solid var(--line); border-radius: 24px; padding: 12px; box-shadow: var(--shadow-sm); margin-top: 22px; }
.grid { gap: 18px; }
.dest-section, .features-band { margin-top: 38px; }
.dest-title { font-size: 1.65rem; }
.contact-block { margin-top: 38px; }

/* ===== Round 3.2 — search moves to the top =====
   Search + route chips share one top row inside the hero. */
.hero-top { position: absolute; top: 16px; inset-inline: 18px; z-index: 4; display: flex; gap: 14px; align-items: flex-start; }
.hero-top .hero-search { flex: 1 1 auto; max-width: 600px; margin: 0; box-shadow: 0 14px 34px rgba(46, 36, 20, 0.28); }
.hero-top .hero-chips { position: static; margin: 0; margin-inline-start: auto; flex-shrink: 0; }
.hero-inner { padding-top: 104px; }
@media (max-width: 760px) {
  .hero-top { position: static; flex-direction: column; padding: 14px 16px 0; gap: 10px; }
  .hero-top .hero-search { max-width: none; width: 100%; }
  .hero-top .hero-chips { margin-inline-start: 0; }
  .hero-inner { padding-top: 8px; }
}

/* ===== Round 3.3 — search sits WITH its filters =====
   One compact toolbar: search + route chips together, no gap. */
.hero-top { align-items: center; }
.hero-top .hero-search { flex: 0 1 340px; max-width: 340px; }
.hero-top .hero-chips { margin-inline-start: 0; }

/* ===== Round 3.4 — toolbar on the left, stacked =====
   Search on top, its filters directly beneath it, one column
   anchored to the hero's left side. */
.hero-top { inset-inline: auto; left: 18px; right: auto; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-top .hero-search { flex: none; width: 340px; max-width: 340px; }
.hero-top .hero-chips { flex-wrap: wrap; }
@media (max-width: 760px) {
  .hero-top { left: auto; }
  .hero-top .hero-search { width: 100%; max-width: none; }
}

/* ===== Round 3.5 — align the toolbar with the hero text =====
   The left toolbar drops to the headline's level so the page
   starts balanced instead of floating at the very top edge. */
.hero-top { top: 64px; }
.hero-inner { padding-top: 64px; }
@media (max-width: 760px) {
  .hero-inner { padding-top: 8px; }
}

/* ===== Round 3.6 — toolbar takes the side opposite the text =====
   Physical-left anchoring collided with the LTR text column (and
   the icon rail). Anchor to the inline END instead: left in the
   Arabic view, right in the English view — always the empty side. */
.hero-top { left: auto; right: auto; inset-inline-start: auto; inset-inline-end: 18px; align-items: flex-end; }
@media (max-width: 1150px) {
  .hero-top { position: static; padding: 14px 16px 0; align-items: flex-start; }
  .hero-top .hero-search { width: 100%; max-width: 480px; }
}

/* Registration form: breathing room when scrolled into view. */
#registerForm { scroll-margin-top: 92px; }
#lookupForm { scroll-margin-top: 92px; }

/* Egypt twin of the featured route card: same size, directly below. */
.feat-eg { grid-column: 1; }

/* Placement fix: stats + sell cards stay on the first row; the
   Egypt card alone takes row 2 under the UAE card. Cards keep
   their natural height instead of stretching to the tallest. */
.hero-float { align-items: start; }
.float-card.stats { grid-column: 2; grid-row: 1; }
.float-card.sell { grid-column: 3; grid-row: 1; }
@media (max-width: 900px) {
  .float-card.stats, .float-card.sell, .feat-eg { grid-column: auto; grid-row: auto; }
}

/* Balance fix: stats + sell span both rows so the float block
   ends on one clean line — no lone card dangling over a void. */
.hero-float { align-items: stretch; }
.float-card.stats { grid-row: 1 / 3; }
.float-card.sell { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) {
  .float-card.stats, .float-card.sell { grid-row: auto; }
}

/* ===== Category photos (v38): real product image per tile ===== */
.cat-tile .cat-ic { width: 72px; height: 54px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(46,42,35,.08), 0 2px 6px rgba(46,42,35,.10); }
.cat-tile .cat-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tile.active .cat-ic { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255,255,255,.0), 0 4px 10px rgba(0,0,0,.18); }

/* ===== Lift the float block + tighten the hero (v45) ===== */
.hero { padding-bottom: 22px; }
.hero-inner { min-height: 428px; }
.hero-float { margin-top: -38px; }
@media (max-width: 1150px) { .hero-float { margin-top: 6px; } }

/* ===== Contact block: tighter stack (v46) ===== */
.contact-single { padding: 9px 16px; }
.contact-row { padding: 2px 0; }
.contact-row + .contact-row { margin-top: 5px; padding-top: 7px; }

/* ===== Payment methods + badges (v47) ===== */
.pay-methods { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 2px; }
.pay-title { font-weight: 800; color: var(--navy); }
.pay-opt { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; background: var(--card); font-weight: 700; }
.pay-opt:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(245, 130, 31, 0.18); }
.pay-opt input { accent-color: var(--orange); width: 17px; height: 17px; }
.pay-note { margin: 0; }
.pill.pay-paid { background: #e5f6ec; color: #14713c; }
.pill.pay-pending { background: #fdf3d7; color: #8a6d1a; }
.pill.pay-failed, .pill.pay-refund_due { background: #fde8e8; color: #a02c2c; }
.pill.pay-cod { background: #eef2f7; color: #44546a; }

/* ===== Contact numbers: hidden until revealed (v49) ===== */
.contact-reveal { display: inline-block; margin-top: 2px; color: var(--orange-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-num.masked { letter-spacing: 3px; color: #8a7f6a; }

/* Payment methods strip (v53) */
.pay-strip { max-width: 1100px; margin: 26px auto 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.pay-strip h4 { margin: 0 0 12px; font-family: 'El Messiri', serif; color: var(--navy); font-size: 1.06rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pay-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; font-weight: 800; font-size: 0.92rem; color: var(--navy); box-shadow: 0 2px 8px rgba(46,42,35,0.06); min-height: 38px; }
.pay-badge.visa { color: #1a1f71; font-style: italic; letter-spacing: 1.5px; font-size: 1.05rem; }
.pay-badge.meeza { color: #00703c; letter-spacing: 0.5px; }
.pay-note { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 8px; }
.paymob-badge { display: inline-flex; align-items: center; background: #0a1f44; border-radius: 8px; padding: 5px 10px; }
.paymob-badge img { height: 16px; display: block; }
.paymob-badge svg.paymob-logo { height: 16px; width: auto; display: block; }

/* Compact footer contact line (v56) */
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.footer-contact .fc-num { font-weight: 700; color: var(--navy); text-decoration: none; }
.footer-contact .fc-num.masked { letter-spacing: 1px; }
.footer-contact .fc-wa-link { display: inline-flex; vertical-align: -2px; }
.footer-contact .fc-reveal { color: var(--orange-deep); font-weight: 700; text-decoration: none; }
.footer-contact .fc-sep { opacity: 0.6; }
.pay-badge.instapay { color: #4b2e83; }
.pay-badge.aani { color: #0e7a6d; }
.transfer-box { margin-top: 10px; border: 1px solid #f3cf9f; background: #fff7ec; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.pill.pay-awaiting_transfer { background: #fdf0d5; color: #8a5a00; }
.pill.pay-transfer_claimed { background: #fde8d7; color: #9a4a00; }
.warn-card { margin-top: 12px; border: 2px solid #e8a13a; background: #fff4e0; border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.warn-card .token-box { font-size: 1.25rem; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 40, 0.55); z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal-backdrop[hidden] { display: none; }
.modal-card { background: var(--bg, #fdfaf4); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; position: relative; padding: 14px 16px 20px; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 18px; } .modal-card { border-radius: 20px; } }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(10,20,40,.75); color: #fff; font-size: 1rem; cursor: pointer; }
.modal-card img.pimg { width: 100%; max-height: 48vh; object-fit: contain; background: #fff; border-radius: 14px; }
.modal-card .pimg-ph { height: 180px; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--orange-soft), var(--navy-soft)); border-radius: 14px; }
.modal-card h3 { margin: 12px 0 6px; }
.modal-card .pm-desc { white-space: pre-wrap; line-height: 1.7; color: var(--ink-soft, #444); }
