/* ============================================================
   Al Juffair Cool Store — Premium brand theme
   Deep green + gold · cream surfaces · serif display type
   ============================================================ */
:root {
  /* Brand */
  --brand: #0E4634;
  --brand-deep: #082A1F;
  --brand-mid: #17614A;
  --brand-soft: rgba(14, 70, 52, .07);
  --gold: #B8954A;
  --gold-light: #D9C28C;
  --gold-deep: #8A6E33;
  --gold-soft: rgba(184, 149, 74, .14);

  /* Surfaces */
  --bg: #ffffff;
  --cream: #FAF7F0;
  --cream-dark: #F2ECE0;
  --bg-alt: #FAF7F0;
  --bg-card: #ffffff;

  /* Ink */
  --text: #16201B;
  --text-2: #5E6B64;
  --text-3: #8C958F;
  --line: rgba(22, 32, 27, .10);
  --line-strong: rgba(22, 32, 27, .20);
  --line-gold: rgba(184, 149, 74, .35);

  /* Status */
  --green: #1C7A4F;
  --green-soft: rgba(28, 122, 79, .12);
  --red: #A8321F;
  --red-soft: rgba(168, 50, 31, .09);
  --amber: #8A6E33;
  --amber-soft: rgba(184, 149, 74, .16);

  --shadow-sm: 0 1px 2px rgba(8, 42, 31, .04), 0 2px 10px rgba(8, 42, 31, .04);
  --shadow-md: 0 4px 14px rgba(8, 42, 31, .06), 0 14px 40px rgba(8, 42, 31, .08);
  --shadow-lg: 0 24px 70px rgba(8, 42, 31, .20);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 980px;
  --topbar-h: 36px;
  --nav-h: 64px;
  --max: 1220px;
  --gutter: 24px;

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-ar: "IBM Plex Sans Arabic", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-ar-display: "Amiri", "Scheherazade New", "Times New Roman", serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--gold-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; }
.h-display, .h1, .h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
html[dir="rtl"] .h-display, html[dir="rtl"] .h1, html[dir="rtl"] .h2 { font-family: var(--font-ar-display); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.h-display { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; }
.h1 { font-size: clamp(28px, 4vw, 42px); }
.h2 { font-size: clamp(23px, 2.8vw, 31px); }
.h3 { font-size: 19px; font-family: var(--font-ui); font-weight: 600; letter-spacing: -0.01em; }
html[dir="rtl"] .h3 { font-family: var(--font-ar); }

.kicker {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; color: var(--gold-deep); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::after { content: ""; flex: none; width: 28px; height: 1px; background: var(--line-gold); }
.kicker.center { justify-content: center; }
.kicker.center::before { content: ""; width: 28px; height: 1px; background: var(--line-gold); }
html[dir="rtl"] .kicker { letter-spacing: .04em; font-family: var(--font-ar); }

.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; max-width: 58ch; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -0.01em; }
.price .cur { font-size: .66em; font-weight: 600; color: var(--text-3); margin-inline-end: 4px; letter-spacing: .04em; }
.was { color: var(--text-3); text-decoration: line-through; font-weight: 400; font-size: .84em; margin-inline-start: 7px; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 26px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .12s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-mid); box-shadow: 0 6px 20px rgba(14, 70, 52, .22); }
.btn-gold { background: var(--gold); color: #1B1403; font-weight: 600; }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #26332C; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-link { color: var(--brand); padding: 0; min-height: 0; font-weight: 500; position: relative; }
.btn-link:hover { color: var(--gold-deep); }
.btn-link .chev { font-size: 1.15em; line-height: 1; }
.btn-sm { min-height: 36px; padding: 0 18px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; min-height: 0; flex: none; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.btn-icon svg { width: 20px; height: 20px; flex: none; }
.btn-icon:hover { background: var(--brand-soft); }
.btn svg { width: 19px; height: 19px; }

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--brand-deep); color: rgba(255,255,255,.88);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
html[dir="rtl"] .topbar { letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.topbar .wrap { height: var(--topbar-h); display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.topbar .sep { color: var(--gold); }
.topbar b { color: var(--gold-light); font-weight: 600; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
.header .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 11px; white-space: nowrap; min-width: 0; overflow: hidden; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--brand); display: grid; place-items: center; color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(217, 194, 140, .35);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-lock { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo-lock .l1 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .01em; color: var(--text); }
.logo-lock .l2 { font-size: 8.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
html[dir="rtl"] .logo-lock .l1 { font-family: var(--font-ar-display); font-size: 19px; }
html[dir="rtl"] .logo-lock .l2 { letter-spacing: .06em; }

.nav { display: flex; gap: 28px; margin-inline-start: 14px; }
.nav a { font-size: 13.5px; font-weight: 500; color: var(--text-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .28s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header-spacer { flex: 1; }

.search { position: relative; width: 280px; max-width: 30vw; }
.search input {
  width: 100%; height: 38px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--cream); padding: 0 38px; font-size: 13.5px; outline: none;
  transition: box-shadow .25s, background .25s, border-color .25s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }

.lang-btn {
  flex: none; height: 34px; padding: 0 15px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: all .22s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.cart-btn { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.cart-btn:hover { background: var(--brand-soft); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 1px; inset-inline-end: -1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: #1B1403; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform .28s var(--ease);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.menu-btn { display: none; }

.mobile-search { display: none; padding: 10px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.mobile-search .search { width: 100%; max-width: none; }

/* ---------- Views ---------- */
.view { display: none; animation: fade .4s var(--ease); }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 80px 0 84px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-actions { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 13px; color: var(--text-2); }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }

.hero-art { position: relative; }
.hero-art .frame { position: relative; z-index: 1; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-md); }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .outline {
  position: absolute; z-index: 0; inset-inline-end: -22px; bottom: -22px; width: 58%; height: 54%;
  border: 1px solid var(--line-gold); border-radius: 4px; pointer-events: none;
}
.hero-card {
  position: absolute; z-index: 2; inset-inline-start: -26px; bottom: 38px; background: #fff; border-radius: 4px;
  padding: 16px 20px; box-shadow: var(--shadow-md); display: flex; gap: 15px; align-items: center;
  border-top: 2px solid var(--gold);
}
.hero-card .hc-n { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hero-card .hc-n { text-align: right; }
html[dir="rtl"] .hero-card .hc-n { font-family: var(--font-ar-display); }
.hero-card .hc-l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-top: 6px; }
html[dir="rtl"] .hero-card .hc-l { letter-spacing: .02em; font-size: 11.5px; text-transform: none; }
.hero-card .divider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- USP strip ---------- */
.usp { border-bottom: 1px solid var(--line); background: #fff; }
.usp .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; align-items: center; gap: 13px; padding: 22px 18px; font-size: 13px; font-weight: 500; color: var(--text-2); position: relative; }
.usp-item + .usp-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 26px; background: var(--line); }
.usp-item svg { width: 21px; height: 21px; color: var(--gold-deep); flex: none; stroke-width: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head .lead { margin-top: 12px; }
.section-alt { background: var(--cream); }
.section-center { text-align: center; }
.section-center .lead { margin: 12px auto 0; }

/* Promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
.promise-item { background: var(--cream); padding: 40px 34px; }
.promise-item .pi-ico { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold-deep); margin-bottom: 20px; }
.promise-item .pi-ico svg { width: 20px; height: 20px; stroke-width: 1.3; }
.promise-item h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; font-weight: 600; }
html[dir="rtl"] .promise-item h3 { font-family: var(--font-ar-display); }
.promise-item p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* Category chips */
.cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 20px;
  border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--text); transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.active:hover { color: #fff; }
.chip .ico { font-size: 15px; }
.cats-sticky { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(250,247,240,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 16px 0 8px; border-bottom: 1px solid var(--line); }

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 30px 0 22px; }
.select {
  position: relative; display: inline-flex; align-items: center; height: 38px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); padding: 0 36px 0 16px; font-size: 13.5px;
}
html[dir="rtl"] .select { padding: 0 16px 0 36px; }
.select select { appearance: none; -webkit-appearance: none; background: none; border: 0; outline: none; cursor: pointer; font-weight: 500; }
.select::after { content: ""; position: absolute; inset-inline-end: 15px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 22px; }
.grid > * { min-width: 0; }
.grid-deals { grid-auto-flow: column; grid-auto-columns: minmax(238px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.grid-deals::-webkit-scrollbar { display: none; }
.grid-deals .card { scroll-snap-align: start; }
.card {
  position: relative; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 16px; display: flex; flex-direction: column; gap: 11px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.card-img { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 24px; inset-inline-start: 24px; z-index: 1;
  background: var(--gold); color: #1B1403; font-size: 9.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 3px; letter-spacing: .12em; text-transform: uppercase;
}
html[dir="rtl"] .card-tag { letter-spacing: .02em; font-size: 10.5px; }
.card-name { font-size: 14.5px; font-weight: 500; line-height: 1.4; min-height: 2.8em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-unit { font-size: 12px; color: var(--text-3); margin-top: -7px; letter-spacing: .01em; }
.limit-note { color: var(--gold-deep); font-weight: 500; }
.card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.card .price { font-size: 16px; white-space: nowrap; }
.add-btn {
  height: 36px; min-width: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background .22s, transform .12s;
}
.add-btn:hover { background: var(--brand-mid); }
.add-btn:active { transform: scale(.93); }
.add-btn.done { background: var(--green); }
.add-btn svg { width: 15px; height: 15px; }
.stepper { display: inline-flex; align-items: center; height: 36px; border-radius: var(--radius-pill); background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; font-weight: 500; color: var(--brand); transition: background .18s; }
.stepper button:hover { background: var(--brand-soft); }
.stepper span { min-width: 26px; text-align: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.lg { height: 48px; }
.stepper.lg button { width: 46px; height: 46px; font-size: 21px; }
.stepper.lg span { min-width: 42px; font-size: 16px; }
.empty { text-align: center; padding: 70px 0; color: var(--text-2); grid-column: 1 / -1; }

/* ---------- Product detail ---------- */
.pd { padding: 36px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); margin-bottom: 34px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--brand); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pd-img { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--cream); position: sticky; top: calc(var(--nav-h) + 24px); box-shadow: var(--shadow-sm); }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding-top: 6px; }
.pd-info .h1 { margin: 6px 0 8px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 8px; }
.pd-price .price { font-size: 32px; }
.pd-price .was { font-size: 17px; }
.save-tag { display: inline-block; background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; font-size: 12px; padding: 5px 12px; border-radius: 3px; letter-spacing: .04em; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 26px 0 32px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.pd-meta span { display: flex; align-items: center; gap: 8px; }
.pd-meta svg { width: 15px; height: 15px; color: var(--green); }
.pd-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pd-desc { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.pd-desc h3 { margin-bottom: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-deep); font-weight: 600; }
html[dir="rtl"] .pd-desc h3 { letter-spacing: .04em; font-size: 13px; text-transform: none; }
.pd-desc p { color: var(--text-2); line-height: 1.7; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 42, 31, .42); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(450px, 100%); background: #fff; z-index: 110;
  transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-display); font-size: 22px; }
html[dir="rtl"] .drawer-head h2 { font-family: var(--font-ar-display); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--cream); }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--cream); }
.cart-item .ci-name { font-size: 14px; font-weight: 500; line-height: 1.4; }
.cart-item .ci-unit { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cart-item .ci-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cart-item .ci-remove { font-size: 12px; color: var(--text-3); }
.cart-item .ci-remove:hover { color: var(--red); }
.cart-item .ci-price { font-size: 14.5px; text-align: end; }
.cart-empty { text-align: center; padding: 70px 16px; }
.cart-empty .ico { font-size: 40px; margin-bottom: 14px; opacity: .4; }
.cart-empty h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 21px; }
html[dir="rtl"] .cart-empty h3 { font-family: var(--font-ar-display); }
.cart-empty p { color: var(--text-2); margin-bottom: 22px; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--text-2); }
.sum-row.total { font-size: 18px; font-weight: 600; color: var(--text); padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum-row .free { color: var(--green); font-weight: 600; }
.min-bar { margin: 4px 0 16px; }
.min-bar .track { height: 4px; border-radius: 2px; background: var(--cream-dark); overflow: hidden; }
.min-bar .fill { height: 100%; border-radius: 2px; background: var(--gold); transition: width .5s var(--ease), background .3s; }
.min-bar .fill.ok { background: var(--green); }
.min-bar .label { font-size: 12.5px; color: var(--text-2); margin-top: 8px; display: flex; gap: 7px; align-items: center; }
.min-bar .label.ok { color: var(--green); font-weight: 500; }
.min-bar .label svg { width: 13px; height: 13px; flex: none; }

/* ---------- Checkout ---------- */
.checkout { padding: 36px 0 90px; background: var(--cream); min-height: calc(100vh - var(--nav-h)); }
.steps { display: flex; align-items: center; justify-content: center; margin: 8px 0 42px; }
.step { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: .04em; }
.step .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 600; transition: all .3s; background: #fff; }
.step.active { color: var(--text); }
.step.active .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.done { color: var(--gold-deep); }
.step.done .n { background: var(--gold); border-color: var(--gold); color: #1B1403; }
.step-line { width: 64px; height: 1px; background: var(--line-strong); margin: 0 16px; }
.co-grid { display: grid; grid-template-columns: 1fr 378px; gap: 30px; align-items: start; }
.co-grid > * { min-width: 0; }
.panel { background: #fff; border-radius: 8px; padding: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel h2 { margin-bottom: 8px; }
.panel .lead { font-size: 14.5px; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .12em; }
html[dir="rtl"] .field label { letter-spacing: .02em; font-size: 12.5px; text-transform: none; }
.field input, .field select, .field textarea {
  height: 50px; border-radius: 6px; border: 1px solid var(--line-strong); padding: 0 15px; background: #fff; outline: none; font-size: 15px;
  transition: border-color .22s, box-shadow .22s;
}
.field textarea { height: auto; min-height: 90px; padding: 14px 15px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.error input, .field.error select { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field .err { font-size: 12px; color: var(--red); display: none; }
.field.error .err { display: block; }
.field .prefix { position: relative; }
.field .prefix input { padding-inline-start: 66px; width: 100%; }
.field .prefix > span:first-child { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-2); font-weight: 500; border-inline-end: 1px solid var(--line); padding-inline-end: 9px; direction: ltr; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235E6B64' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
html[dir="rtl"] .field select { background-position: left 15px center; }
.radio-list { display: grid; gap: 12px; }
.radio-card { display: flex; align-items: center; gap: 15px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: all .22s; background: #fff; }
.radio-card:hover { border-color: var(--line-gold); }
.radio-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all .2s; background: #fff; }
.radio-card.selected .rc { border-color: var(--brand); background: var(--brand); }
.radio-card.selected .rc::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.radio-card .rt { font-weight: 500; font-size: 15px; }
.radio-card .rs { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.radio-card .ri { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.pay-logo { height: 23px; padding: 0 8px; border-radius: 3px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; font-size: 9px; font-weight: 800; letter-spacing: .04em; color: var(--text-2); }
.pay-logo.visa { color: #1a1f71; font-style: italic; }
.pay-logo.mc { color: #c0341d; }
.pay-logo.amex { color: #2e77bc; }
.pay-row.accepted { margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
/* card fields always read left-to-right, including in Arabic */
#c_number, #c_expiry, #c_cvv { direction: ltr; text-align: start; }
#c_number { padding-right: 66px; }
.card-brand { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.secure-note { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); margin-top: 16px; }
.secure-note svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.pay-note { margin-top: 20px; padding: 16px 18px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-deep); font-size: 13.5px; line-height: 1.6; }
.panel-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.order-summary { position: sticky; top: calc(var(--nav-h) + 24px); }
.order-summary h3 { margin-bottom: 18px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
html[dir="rtl"] .order-summary h3 { font-family: var(--font-ar-display); }
.os-items { max-height: 300px; overflow-y: auto; margin-bottom: 16px; }
.os-item { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.os-item img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--cream); }
.os-item .n { flex: 1; line-height: 1.4; }
.os-item .q { color: var(--text-3); font-size: 12px; }
.review-block { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.review-block:first-of-type { padding-top: 0; }
.review-block h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-deep); margin-bottom: 10px; font-weight: 700; }
html[dir="rtl"] .review-block h4 { letter-spacing: .03em; font-size: 12px; text-transform: none; }
.review-block p { font-size: 14.5px; line-height: 1.6; }
.alert { padding: 15px 18px; border-radius: 6px; background: var(--red-soft); color: var(--red); font-size: 13.5px; font-weight: 500; margin-bottom: 20px; display: none; }
.alert.show { display: block; }

/* Confirmation */
.confirm { text-align: center; max-width: 580px; margin: 50px auto; padding: 56px 34px; }
.confirm .check { width: 78px; height: 78px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin: 0 auto 26px; animation: pop .55s var(--ease); border: 1px solid var(--line-gold); }
.confirm .check svg { width: 34px; height: 34px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.confirm h1 { margin-bottom: 14px; }
.confirm p { color: var(--text-2); margin-bottom: 8px; }
.confirm .eta { display: inline-flex; gap: 9px; align-items: center; background: var(--cream); border: 1px solid var(--line); padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 500; color: var(--text); margin: 22px 0 30px; font-size: 14px; }

.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- About / Contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-card { background: #fff; border-radius: 8px; padding: 38px; border: 1px solid var(--line); }
.info-card h3 { margin-bottom: 14px; }
.info-card p { color: var(--text-2); line-height: 1.75; }
.contact-list { display: grid; gap: 16px; margin-top: 22px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.contact-list svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: 3px; stroke-width: 1.5; }
.map { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; margin-top: 24px; background: var(--cream); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand); color: #fff; padding: 72px 0; text-align: center; }
.newsletter .kicker { color: var(--gold-light); justify-content: center; }
.newsletter .kicker::after, .newsletter .kicker::before { background: rgba(217,194,140,.4); }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.7); margin: 14px auto 30px; max-width: 48ch; font-size: 15px; }
.news-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.news-form input {
  flex: 1; height: 52px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff; padding: 0 22px; outline: none; font-size: 15px; transition: all .22s;
}
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form input:focus { background: rgba(255,255,255,.14); border-color: var(--gold-light); }
.news-ok { color: var(--gold-light); font-size: 14px; margin-top: 16px; display: none; }
.news-ok.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: rgba(255,255,255,.62); padding: 70px 0 32px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { font-size: 10.5px; color: var(--gold-light); margin-bottom: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
html[dir="rtl"] .footer h4 { letter-spacing: .04em; font-size: 12.5px; text-transform: none; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer .logo { margin-bottom: 18px; }
.footer .logo-mark { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(217,194,140,.3); }
.footer .logo-lock .l1 { color: #fff; }
.footer .logo-lock .l2 { color: var(--gold); }
.footer p { max-width: 40ch; line-height: 1.75; }
.pay-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.footer .pay-logo { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 24px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255,255,255,.4); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast { background: var(--brand-deep); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease); display: flex; align-items: center; gap: 11px; max-width: 90vw; border: 1px solid rgba(217,194,140,.25); }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
.toast svg { width: 16px; height: 16px; color: var(--gold-light); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Mobile nav ---------- */
.mnav { position: fixed; inset: 0; z-index: 120; background: var(--cream); display: none; flex-direction: column; padding: 22px var(--gutter); }
.mnav.open { display: flex; animation: fade .25s var(--ease); }
.mnav .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mnav a { font-family: var(--font-display); font-size: 26px; font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .mnav a { font-family: var(--font-ar-display); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 520px; }
  .hero-art .frame { aspect-ratio: 16 / 11; }
  .pd-grid { gap: 40px; }
  .co-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .promise-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header .search { display: none; }
  .mobile-search { display: block; }
  .menu-btn { display: inline-flex; }
  .usp .wrap { grid-template-columns: 1fr 1fr; }
  .usp-item:nth-child(3)::before { display: none; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-img { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 56px; }
  .section { padding: 54px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 26px; }
  .step-line { width: 28px; margin: 0 10px; }
  .step span.t { display: none; }
  .step.active span.t { display: inline; }
  .hero-card { inset-inline-start: 16px; bottom: -22px; }
  .promise-item { padding: 32px 26px; }
}
@media (max-width: 520px) {
  :root { --gutter: 18px; --nav-h: 58px; }
  /* the sub-line does not fit beside the menu, language and cart controls */
  .header .logo-lock .l2 { display: none; }
  .header .logo-lock { gap: 0; }
  .header .wrap { gap: 10px; }
  .lang-btn { padding: 0 11px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-mark svg { width: 20px; height: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .card-foot { flex-wrap: wrap; gap: 6px; }
  .stepper { height: 32px; }
  .stepper button { width: 28px; height: 32px; font-size: 15px; }
  .stepper span { min-width: 18px; font-size: 13px; }
  .card { padding: 11px; border-radius: 11px; }
  .card-tag { top: 17px; inset-inline-start: 17px; padding: 4px 8px; font-size: 8.5px; }
  .card-name { font-size: 13px; min-height: 2.8em; }
  .card .price { font-size: 14.5px; }
  .card .was { display: none; }
  .add-btn { padding: 0 11px; }
  .add-btn .t { display: none; }
  .usp .wrap { grid-template-columns: 1fr; }
  .usp-item { padding: 14px 0; }
  .usp-item + .usp-item::before { display: none; }
  .usp-item + .usp-item { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .pd-price .price { font-size: 27px; }
  .panel-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .panel-actions .btn { width: 100%; }
  .btn-lg { padding: 0 20px; font-size: 15px; }
  .confirm { padding: 34px 18px; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
  .topbar .wrap { font-size: 10px; letter-spacing: .08em; }
}

/* ---------- iOS Safari ---------- */
/* Safari zooms the whole page when a focused field is smaller than 16px,
   which leaves the layout shifted after the keyboard closes. */
@media (max-width: 860px) {
  .field input, .field select, .field textarea,
  .search input, .news-form input, .select, .select select { font-size: 16px; }
}
/* The dynamic toolbar makes 100vh taller than the visible area on iOS. */
@supports (height: 100dvh) {
  .checkout { min-height: calc(100dvh - var(--nav-h)); }
}
/* Keep content clear of the notch and the home indicator. */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  .drawer-foot { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .drawer-head { padding-top: max(22px, env(safe-area-inset-top)); }
  .toast-wrap { bottom: max(28px, env(safe-area-inset-bottom)); }
  .mnav {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    padding-top: max(22px, env(safe-area-inset-top));
  }
  .mobile-search {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}
/* A tapped control keeps :hover on touch screens; only apply it to real pointers. */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card:hover .card-img img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
