:root {
  --page: #f3f5f9;
  --ink: #1a2436;
  --ink-2: #5a6478;
  --ink-4: #98a2b5;
  --hairline: #e2e8f2;
  --raised: #eef1f7;
  --navy: #16305c;
  --navy-2: #0b1a38;
  --gold: #e02b2b;
  --gold-2: #b21e1e;
  --gold-soft: rgba(224, 43, 43, 0.12);
  --gold-border: rgba(224, 43, 43, 0.4);
  --gold-text: #b21e1e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 760px; margin: 0 auto; padding: 18px 14px 44px; }
.caption { color: var(--ink-2); font-size: 12px; margin: 6px 2px 14px; }
.loading-note { text-align: center; color: var(--ink-2); padding: 30px 0; }
img { max-width: 100%; }

/* Hero band */
.awlad-hero {
  background:
    radial-gradient(ellipse 420px 220px at 85% -20%, rgba(224, 43, 43, 0.22), transparent 70%),
    radial-gradient(ellipse 380px 260px at 5% 120%, rgba(63, 110, 190, 0.28), transparent 70%),
    linear-gradient(140deg, #24487f 0%, var(--navy) 55%, var(--navy-2) 100%);
  border-radius: 24px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  box-shadow: 0 18px 44px rgba(10, 20, 37, 0.35);
}
.awlad-hero-brand { display: flex; align-items: center; gap: 16px; }
.awlad-hero-logo {
  width: 86px; height: 86px; border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 43, 43, 0.18), 0 10px 26px rgba(0, 0, 0, 0.45);
  object-fit: cover; flex-shrink: 0; background: #fff;
}
.awlad-hero-kicker { color: #ffb9b9; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.awlad-hero-title { color: #ffffff; font-size: 38px; font-weight: 900; margin: 2px 0 0; line-height: 1.15; }
.awlad-hero-intro { color: #b9c5da; font-size: 14px; line-height: 25px; margin: 0; max-width: 60ch; }

/* Hero photo */
.hero-photo-btn { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.hero-photo { width: 100%; height: 240px; object-fit: cover; border-radius: 20px; display: block; background: var(--raised); box-shadow: 0 12px 30px rgba(15, 30, 56, 0.14); }

/* Callout */
.callout { border: 1px solid #f0d9a0; background: linear-gradient(120deg, #fdf7e6, #fdf2d9); border-radius: 14px; padding: 12px 16px; margin: 10px 0 16px; }
.callout strong { color: #8a5a06; font-size: 13px; font-weight: 800; }
.callout p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; line-height: 21px; }

/* Offers block */
.offers { margin: 20px 0 4px; }
.offers-label { color: var(--gold-text); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.offers-heading { font-size: 22px; font-weight: 800; margin: 2px 0 4px; color: var(--navy); }
.offers p { color: var(--ink-2); font-size: 13px; margin: 0; line-height: 21px; }

/* Sticky tools: السلة + البحث + الأنواع + الماركات ثابتة فوق أثناء التمرير */
.sticky-tools {
  position: sticky; top: 0; z-index: 70;
  background: rgba(243, 245, 249, 0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin: 12px -14px 0; padding: 10px 14px 12px;
  border-bottom: 1px solid #d3dcea;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 24px rgba(15, 30, 56, 0.12);
}
.sticky-tools .awlad-cartbtn-wrap { padding: 0 0 8px; }
.sticky-tools .awlad-cartbtn { width: 100%; padding: 11px 22px; font-size: 14px; }
.sticky-tools .search-wrap { margin: 0; }

/* Sections */
.awlad-section { display: flex; flex-direction: column; gap: 4px; margin: 24px 0; }
.awlad-section-head {
  background: linear-gradient(120deg, #24487f 0%, var(--navy) 60%, var(--navy-2) 100%);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(10, 20, 37, 0.28);
  border-inline-start: 4px solid var(--gold);
}
.awlad-section-title { color: #ffffff; font-weight: 800; font-size: 18px; }
.awlad-type { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; background: #e9eef6; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 12px 14px; box-shadow: 0 6px 18px rgba(22, 48, 92, 0.14); }
.awlad-type-title { font-weight: 800; font-size: 15px; color: var(--navy); border-inline-start: 4px solid var(--gold); padding-inline-start: 9px; }

/* Product cards */
.awlad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 700px) { .awlad-grid { grid-template-columns: 1fr 1fr 1fr; } }
.awlad-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--navy);
  border-radius: 18px; overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(22, 48, 92, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.awlad-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 30, 56, 0.14); }
.awlad-card-photowrap { position: relative; }
.awlad-card-photobtn { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.awlad-card-photo { width: 100%; height: 128px; object-fit: cover; display: block; background: var(--raised); }
@media (min-width: 700px) { .awlad-card-photo { height: 150px; } }
.awlad-badge {
  position: absolute; top: 9px; inset-inline-start: 9px;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #ffffff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(224, 43, 43, 0.4);
}
.awlad-card-body { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; }
.awlad-name { font-weight: 800; color: var(--navy); font-size: 14px; line-height: 21px; }
.awlad-detail { color: var(--ink-2); font-size: 12px; line-height: 19px; }
.awlad-pricerow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.awlad-price { font-weight: 800; color: var(--gold-text); white-space: nowrap; font-size: 15px; }
.awlad-oldprice { color: var(--ink-4); text-decoration: line-through; font-size: 12px; white-space: nowrap; }
.awlad-row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.awlad-stock { color: var(--ink-2); font-size: 11px; }

/* Stepper */
.awlad-stepper { display: flex; align-items: center; gap: 8px; }
.awlad-stepbtn {
  width: 33px; height: 33px; border-radius: 10px;
  border: 1px solid var(--hairline); background: #ffffff; color: var(--navy);
  font-size: 17px; line-height: 1; cursor: pointer; font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.awlad-stepbtn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-text); }
.awlad-stepbtn:active:not(:disabled) { background: var(--gold); color: #ffffff; }
.awlad-stepbtn:disabled { opacity: 0.35; cursor: default; }
.awlad-qty { min-width: 20px; text-align: center; font-weight: 800; color: var(--navy); font-size: 14px; }

/* Cart pill */
.awlad-cartbtn-wrap { display: flex; justify-content: center; padding: 8px 0; }
.awlad-cartbtn {
  padding: 14px 30px; border: none; border-radius: 999px;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #ffffff; font-weight: 800; font-size: 15px; line-height: 22px;
  cursor: pointer; text-align: center;
  box-shadow: 0 10px 26px rgba(224, 43, 43, 0.4);
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.awlad-cartbtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(224, 43, 43, 0.5); }
.awlad-cartbtn:disabled { background: var(--navy); opacity: 0.45; cursor: default; box-shadow: none; color: #ffffff; }

/* Cart modal lines */
.awlad-cart { display: flex; flex-direction: column; }
.awlad-cart-block { border: 2px solid var(--navy); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #f5f8fd; box-shadow: 0 4px 12px rgba(22, 48, 92, 0.12); display: flex; flex-direction: column; gap: 2px; }
.awlad-cart-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.awlad-cart-sub { color: var(--ink-2); font-size: 12px; }
.awlad-saved { color: var(--gold-text); padding-top: 8px; font-weight: 700; }
.awlad-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; padding: 10px 12px; font-weight: 800; color: var(--navy); border: 2px solid var(--navy); border-radius: 12px; background: #eaf0f9; }
.cart-order-btn {
  display: block; width: 100%; box-sizing: border-box; margin: 16px 0 0;
  background: linear-gradient(120deg, #25d366 0%, #1ca851 100%);
  color: #ffffff; text-align: center; text-decoration: none;
  font-weight: 800; font-size: 15px; padding: 14px 18px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.cart-order-btn.cart-order-off { background: var(--raised); color: var(--ink-2); box-shadow: none; }
.cart-note { color: var(--ink-2); font-size: 12px; line-height: 19px; margin: 10px 0 0; }

/* Dialogs */
.awlad-dialog { border: 2px solid var(--navy); border-radius: 20px; padding: 22px; width: min(92vw, 430px); background: #ffffff; color: var(--ink); font-family: inherit; box-shadow: 0 24px 60px rgba(10, 20, 37, 0.35); }
.awlad-dialog::backdrop, .photo-dialog::backdrop { background: rgba(10, 20, 37, 0.6); }
.awlad-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 16px; font-weight: 800; color: var(--navy); }
.dialog-close { border: none; background: var(--raised); color: var(--ink); width: 32px; height: 32px; border-radius: 50%; font-size: 14px; cursor: pointer; }

/* Photo viewer: مجسم 3D تفاعلي على خلفية بيضاء */
.photo-dialog { border: none; border-radius: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #eef1f6 100%); text-align: center; position: fixed; inset: 0; margin: 0; overflow: hidden; }
.photo-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.photo-dialog::backdrop { background: rgba(238, 241, 246, 0.92); }
.photo-stage { position: relative; width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; perspective: 1100px; overflow: hidden; touch-action: none; }
#mv3d { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
.card3d { position: relative; width: min(74vw, 460px); transform-style: preserve-3d; cursor: grab; user-select: none; }
.card3d.dragging { cursor: grabbing; }
.card3d-front { display: block; width: 100%; border-radius: 8px; transform: translateZ(9px); backface-visibility: hidden; -webkit-backface-visibility: hidden; -webkit-user-drag: none; user-select: none; }
.card3d-back { position: absolute; inset: 0; border-radius: 8px; background: #f2f2f2; border: 1px solid #e0e0e0; transform: translateZ(-9px) rotateY(180deg); }
.card3d-edge { position: absolute; background: linear-gradient(180deg, #dbdbdb, #b5b5b5); }
.card3d-edge.edge-l { top: 0; left: -9px; width: 18px; height: 100%; transform: rotateY(90deg); }
.card3d-edge.edge-r { top: 0; right: -9px; width: 18px; height: 100%; transform: rotateY(90deg); }
.card3d-edge.edge-t { top: -9px; left: 0; width: 100%; height: 18px; transform: rotateX(90deg); }
.card3d-edge.edge-b { bottom: -9px; left: 0; width: 100%; height: 18px; transform: rotateX(90deg); }
.shadow3d { position: absolute; bottom: 11%; left: 50%; width: min(56vw, 360px); height: 42px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(15, 30, 56, 0.35), transparent 70%); filter: blur(10px); border-radius: 50%; pointer-events: none; transition: opacity 0.2s; }
.photo-close { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 6; background: #0f1e38; color: #fff; border: none; box-shadow: 0 4px 14px rgba(15, 30, 56, 0.25); }
.photo-toolbar { position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; z-index: 6; background: #0f1e38; border: none; border-radius: 99px; padding: 6px 14px; box-shadow: 0 10px 28px rgba(15, 30, 56, 0.3); }
.photo-toolbar button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--gold); color: #fff; font-size: 19px; font-weight: 900; cursor: pointer; line-height: 1; font-family: inherit; }
.photo-toolbar span { color: #fff; font-size: 12px; font-weight: 800; min-width: 46px; direction: ltr; }
.photo-dialog p#photoDialogTitle { color: #0f1e38; font-weight: 800; margin: 0; position: absolute; bottom: 14px; left: 0; right: 0; font-size: 15px; }
.photo-tip { position: absolute; bottom: 52px; left: 0; right: 0; color: #7a8aa5; font-size: 11px; margin: 0; padding: 0 20px; }

/* Search */
.search-wrap { margin: 16px 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-wrap .search-input { flex: 1 1 100%; min-width: 0; }
.brand-select {
  flex: 1 1 0; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: #ffffff; color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(15, 30, 56, 0.05);
}
.brand-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.awlad-brand { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; color: var(--gold-text); background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: 999px; padding: 2px 8px; }
.awlad-tool { align-self: flex-start; font-size: 10px; font-weight: 800; color: var(--ink-2); background: rgba(15, 30, 56, 0.05); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 8px; }
.search-input {
  width: 100%; padding: 13px 18px;
  border: 1px solid var(--hairline); border-radius: 14px;
  background: #ffffff; color: var(--ink); font-family: inherit; font-size: 14px;
  box-shadow: 0 3px 10px rgba(15, 30, 56, 0.05);
}
.search-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.search-input::placeholder { color: var(--ink-4); }
.search-note { color: var(--ink-2); font-size: 13px; margin: 10px 2px; }

/* تثبيت الخلفية تحت النوافذ المنبثقة */
body.modal-open { overflow: hidden; }

/* ---------- خطوات إتمام الطلب (wizard) ---------- */
.wiz-steps { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 14px; }
.wiz-step { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; opacity: 0.4; }
.wiz-step.active, .wiz-step.done { opacity: 1; }
.wiz-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); background: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.wiz-step.active .wiz-dot { background: var(--navy); color: #ffffff; }
.wiz-step.done .wiz-dot { background: var(--gold); border-color: var(--gold); color: #ffffff; }
.wiz-label { font-size: 10px; font-weight: 700; color: var(--navy); text-align: center; }
.wiz-btns { display: flex; gap: 10px; margin-top: 16px; }
.wiz-btn { flex: 1; padding: 12px 18px; border-radius: 14px; font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.wiz-next { border: none; background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%); color: #ffffff; box-shadow: 0 8px 20px rgba(224, 43, 43, 0.3); }
.wiz-back { border: 2px solid var(--navy); background: #ffffff; color: var(--navy); }
.wiz-summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; background: #f5f8fd; border: 2px solid var(--navy); border-radius: 12px; padding: 10px 12px; }
.wiz-sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.wiz-sumlabel { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.wiz-sumval { color: var(--navy); font-weight: 800; text-align: end; }

/* عربون (اختياري) */
.dep-wrap { margin-top: 12px; border-top: 1px dashed var(--hairline); padding-top: 12px; }
.dep-hint { color: var(--ink-2); font-size: 12px; line-height: 19px; margin: 0 0 8px; }
.dep-amount { margin-top: 10px; }

/* Empty cart button */
.cart-clear-btn { display: block; width: 100%; margin-top: 10px; padding: 10px 18px; border: 1px solid #e2b1b1; border-radius: 12px; background: #ffffff; color: #b33737; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.cart-clear-btn:hover { background: #fdf1f1; }

/* Facts */
.facts { margin: 22px 0 10px; background: #ffffff; border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 18px; box-shadow: 0 5px 16px rgba(15, 30, 56, 0.06); }
.facts-label { color: var(--gold-text); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; }
.facts-list { margin: 8px 0 0; }
.facts-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.facts-row:last-child { border-bottom: none; }
.facts-row dt { color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.facts-row dd { margin: 0; font-size: 13px; line-height: 21px; text-align: end; color: var(--navy); font-weight: 600; }

/* Footer band */
.awlad-footer {
  display: flex; flex-direction: column; gap: 5px;
  background:
    radial-gradient(ellipse 300px 140px at 90% 0%, rgba(224, 43, 43, 0.16), transparent 70%),
    linear-gradient(140deg, #24487f 0%, var(--navy) 55%, var(--navy-2) 100%);
  border-radius: 20px; padding: 20px; margin-top: 16px;
  box-shadow: 0 12px 30px rgba(10, 20, 37, 0.3);
}
.awlad-footer-name { color: var(--gold); font-weight: 900; font-size: 18px; }
.awlad-footer-line { color: #b9c5da; font-size: 13px; line-height: 21px; }
.awlad-footer-line strong { color: #ffffff; }
.awlad-footer-link { color: var(--gold); text-decoration: underline; }

.closing { color: var(--ink-4); font-size: 12px; text-align: center; margin-top: 20px; }

@media (max-width: 600px) {
  .awlad-stepbtn { width: 34px; height: 34px; }
  .awlad-hero-title { font-size: 30px; }
  .awlad-hero-logo { width: 72px; height: 72px; }
}

.awlad-chips { display: flex; gap: 5px; align-items: center; align-self: flex-start; flex-wrap: wrap; }
.awlad-chips .awlad-brand, .awlad-chips .awlad-tool { align-self: auto; }

.awlad-cart-name { font-weight: 700; color: var(--navy); font-size: 13px; line-height: 20px; }
.awlad-cart-ctl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-item-remove { border: 1px solid #e2b1b1; background: #ffffff; color: #b33737; border-radius: 10px; padding: 6px 12px; font-family: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.cart-item-remove:hover { background: #fdf1f1; }

/* Maintenance screen */
.maintenance { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #0b1a38 0%, #24487f 55%, #050e20 100%); padding: 24px; overflow: hidden; }
.maintenance::before, .maintenance::after { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none; }
.maintenance::before { background: #e02b2b; top: -120px; right: -100px; animation: maintenance-float 9s ease-in-out infinite; }
.maintenance::after { background: #24487f; bottom: -140px; left: -100px; animation: maintenance-float 11s ease-in-out infinite reverse; }
@keyframes maintenance-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.15); } }
.maintenance-card { position: relative; max-width: 420px; text-align: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(224, 43, 43, 0.32); border-radius: 24px; padding: 34px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); }
.maintenance-logo-wrap { position: relative; width: 152px; height: 152px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.maintenance-logo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); animation: maintenance-logo-pulse 2.6s ease-in-out infinite; }
@keyframes maintenance-logo-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 43, 43, 0.45); } 50% { transform: scale(1.06); box-shadow: 0 0 30px 8px rgba(224, 43, 43, 0.35); } }
.maintenance-orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit-a { inset: 0; border: 2px dashed rgba(224, 43, 43, 0.55); animation: maintenance-spin 8s linear infinite; }
.orbit-b { inset: 11px; border: 2px solid rgba(255, 255, 255, 0.14); border-top-color: var(--gold); border-left-color: var(--gold); animation: maintenance-spin 2.6s linear infinite reverse; }
.maintenance-orbit-dot { position: absolute; top: -5.5px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(224, 43, 43, 0.8); }
@keyframes maintenance-spin { to { transform: rotate(360deg); } }
.maintenance-kicker { display: block; color: #ffb9b9; font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.maintenance-title { color: #fff; font-size: 26px; font-weight: 900; margin: 0 0 10px; }
.maintenance-text { color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.9; margin: 0 0 18px; }
.maintenance-bar { width: 200px; height: 6px; margin: 0 auto 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.maintenance-bar span { display: block; height: 100%; width: 38%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #ff7b7b); animation: maintenance-slide 1.5s ease-in-out infinite; }
@keyframes maintenance-slide { 0% { transform: translateX(280%); } 100% { transform: translateX(-110%); } }

/* ===== interior refresh 2 ===== */
.awlad-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.awlad-section-count {
  flex-shrink: 0;
  background: rgba(224, 43, 43, 0.3);
  border: 1px solid rgba(255, 185, 185, 0.55);
  color: #ffd7d7;
  font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 3px 11px;
}
.awlad-type-title { font-size: 14px; background: linear-gradient(to left, rgba(224, 43, 43, 0.1), transparent); border-radius: 6px; padding: 4px 9px; }
.awlad-card-photo { height: 140px; }
@media (min-width: 700px) { .awlad-card-photo { height: 160px; } }

/* Payment methods in cart */
.pay-wrap { margin-top: 14px; border: 2px solid var(--navy); border-radius: 16px; padding: 12px; background: #fff; box-shadow: 0 4px 12px rgba(22, 48, 92, 0.1); }
.pay-title { font-weight: 800; color: var(--navy); font-size: 14px; margin-bottom: 8px; }
.pay-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .pay-opts { grid-template-columns: 1fr; } }
.pay-opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border: 1px solid var(--hairline); border-radius: 12px;
  background: #fff; cursor: pointer; font-family: inherit;
}
.pay-opt-label { font-weight: 800; font-size: 13px; color: var(--navy); }
.pay-opt-hint { font-size: 10px; color: var(--ink-2); }
.pay-opt:disabled { opacity: 0.45; cursor: default; }
.pay-opt.active { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.pay-target { margin-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink); }
.pay-target strong { color: var(--gold-text); }
.pay-target-num {
  font-weight: 800; font-size: 15px; color: var(--navy);
  background: var(--raised); border: 1px dashed var(--gold-border);
  border-radius: 10px; padding: 6px 14px; letter-spacing: 0.04em;
}
.pay-receipt { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-receipt-btn {
  display: inline-block; cursor: pointer;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #ffffff; font-weight: 800; font-size: 13px;
  border-radius: 12px; padding: 10px 18px;
  box-shadow: 0 6px 16px rgba(224, 43, 43, 0.32);
}
.pay-receipt-ok { color: #177245; font-size: 12px; font-weight: 700; }
.pay-receipt-err { color: #b3261e; font-size: 12px; font-weight: 700; }

/* System console link (decoy /panel) */
.console-link { display: inline-block; margin-top: 18px; direction: ltr; font-family: ui-monospace, 'Courier New', monospace; font-size: 10px; letter-spacing: 0.14em; color: rgba(185, 197, 218, 0.45); text-decoration: none; }
.console-link:hover { color: #ffd7d7; }

/* ---------- حجز مباشر من السلة ---------- */
.book-wrap { margin-top: 14px; border: 2px solid var(--navy); border-radius: 16px; padding: 12px; box-shadow: 0 4px 12px rgba(22, 48, 92, 0.1); }
.book-title { font-weight: 800; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.book-toggle { width: 100%; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--gold-border); background: var(--gold-soft); color: var(--gold-text); font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; }
.book-toggle:hover { background: rgba(224, 43, 43, 0.18); }
.book-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.book-hint { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 19px; }
.book-input { padding: 11px 12px; border: 1px solid var(--hairline); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; width: 100%; }
.book-input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.book-note { resize: vertical; }
.book-error { margin: 0; color: #b3261e; font-size: 12px; font-weight: 700; }
.book-submit { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; padding: 14px 18px; border: none; border-radius: 14px; background: linear-gradient(135deg, #24487f, var(--navy-2)); color: #fff; font-size: 15px; font-weight: 900; cursor: pointer; font-family: inherit; box-shadow: 0 8px 20px rgba(22, 48, 92, 0.35); }
.book-submit:disabled { opacity: 0.6; cursor: default; }
.book-done-card { text-align: center; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 22px 16px; }
.book-done-title { margin: 0 0 8px; font-size: 17px; font-weight: 900; color: #15803d; }
.book-done-text { margin: 0; font-size: 13px; color: #166534; line-height: 22px; }

/* ---------- تحسينات شكل المتجر ---------- */
.awlad-card-photobtn { position: relative; overflow: hidden; display: block; width: 100%; cursor: zoom-in; }
.awlad-card-photo { transition: transform 0.35s ease; }
.awlad-card:hover .awlad-card-photo { transform: scale(1.06); }
.awlad-card-photobtn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 60%); transform: translateX(-130%); transition: transform 0.6s ease; pointer-events: none; }
.awlad-card:hover .awlad-card-photobtn::after { transform: translateX(130%); }
.awlad-section-title { display: flex; align-items: center; gap: 9px; }
.awlad-section-title::before { content: ''; width: 5px; height: 20px; border-radius: 99px; background: linear-gradient(180deg, var(--gold), #ff7b7b); flex: none; }
.awlad-hero-logo { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.35); }
.awlad-hero-kicker { background: rgba(224, 43, 43, 0.18); border: 1px solid rgba(224, 43, 43, 0.35); padding: 4px 12px; border-radius: 99px; display: inline-block; width: fit-content; }
.cart-order-btn { animation: order-pulse 2.6s ease-in-out infinite; }
.cart-order-btn.cart-order-off { animation: none; }
@keyframes order-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(224, 43, 43, 0.35); } 50% { box-shadow: 0 8px 32px rgba(224, 43, 43, 0.62); } }

/* ---------- اختيار الفرع للاستلام ---------- */
.branch-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.branch-opt { text-align: right; border: 1.5px solid var(--hairline); border-radius: 14px; background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-family: inherit; transition: border-color 0.15s, background 0.15s; }
.branch-opt.active { border-color: var(--gold); background: #fffaf2; }
.branch-name { font-weight: 900; color: var(--navy); font-size: 14px; }
.branch-addr { font-size: 12px; color: var(--ink-2); line-height: 19px; }

/* ---------- إعادة ترتيب المتجر: شريط أقسام + شريط معلومات ---------- */
.sec-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sec-chips::-webkit-scrollbar { display: none; }
.sec-chip {
  flex: none; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--navy); background: #ffffff; color: var(--navy);
  font-family: inherit; font-weight: 800; font-size: 12px; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s;
}
.sec-chip:hover, .sec-chip:active { background: var(--navy); color: #ffffff; }
.callout-info { border-color: rgba(22, 48, 92, 0.25); background: linear-gradient(120deg, #eaf0f9, #e3ecfa); }
.callout-info strong { color: var(--navy); }
.facts-contact { color: var(--navy); font-weight: 800; text-decoration: none; border-bottom: 1.5px dashed var(--gold-border); direction: ltr; display: inline-block; }
.facts-contact:hover { color: var(--gold-text); }
.awlad-section { scroll-margin-top: 150px; }

/* ---------- قفل تمرير الخلفية مع النوافذ ---------- */
html.modal-open, body.modal-open { overflow: hidden !important; height: 100%; }
.awlad-dialog, .photo-dialog { overscroll-behavior: contain; }

/* ---------- زرار السلة العائم ---------- */
.awlad-cartbtn-wrap { display: none; }
.cart-fab {
  position: fixed; bottom: 18px; left: 18px; z-index: 70;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: linear-gradient(140deg, #24487f, var(--navy) 60%, var(--navy-2));
  box-shadow: 0 12px 28px rgba(10, 20, 37, 0.45);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.cart-fab:hover:not(:disabled) { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 34px rgba(10, 20, 37, 0.55); }
.cart-fab:disabled { opacity: 0.5; cursor: default; }
.cart-fab-ic { font-size: 27px; line-height: 1; }
.cart-fab-badge {
  position: absolute; top: -5px; right: -5px; min-width: 25px; height: 25px;
  border-radius: 999px; background: var(--gold); color: #fff;
  font-size: 12.5px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  padding: 0 6px; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(224, 43, 43, 0.5);
}

/* storefront phone fixes: empty cart button hidden, kicker pill no ugly wrap */
.cart-fab:disabled { display: none; }
@media (max-width: 600px) {
  .awlad-hero-kicker { font-size: 11.5px; padding: 4px 10px; border-radius: 14px; line-height: 1.5; }
}

/* collapsible categories */
.awlad-section-head { cursor: pointer; display: flex; align-items: center; gap: 10px; user-select: none; }
.awlad-section-head:focus-visible { outline: 3px solid var(--gold, #e0a030); outline-offset: 2px; }
.awlad-section-chev { margin-inline-start: auto; color: #fff; font-size: 18px; transition: transform 0.2s; }
.awlad-section.collapsed .awlad-section-chev { transform: rotate(90deg); }
.awlad-section.collapsed .awlad-type { display: none; }
.awlad-section.collapsed { margin: 12px 0; }
.awlad-section.collapsed .awlad-section-head { margin-bottom: 0; }

/* hero photo: show it whole (3:2), no crop */
.hero-photo { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* phone: only the search box stays pinned; filters and cart button scroll away */
@media (max-width: 600px) {
  .sticky-tools, .sticky-tools .search-wrap { display: contents; }
  .search-input { position: sticky; top: 8px; z-index: 70; box-shadow: 0 8px 20px rgba(15, 30, 56, 0.16); }
  .sticky-tools { margin: 0; }
  .search-wrap .search-input { width: 100%; margin: 12px 0 8px; }
  .search-wrap .brand-select { display: inline-block; width: calc(50% - 4px); margin: 0 0 8px; }
  .sticky-tools .sec-chips { margin-bottom: 8px; }
}

/* no page zoom: double-tap zoom off; photo viewer keeps its own zoom */
html, body { touch-action: manipulation; }
