/* ==========================================================================
   معجنات الحشوة اللذيذة — Arabic-only menu site (from coffee-menu-template)
   ========================================================================== */

:root {
  /* One fixed LIGHT palette — warm dough-cream page with the colours of the
     shop's neon sign (green / red / orange lettering, yellow laurel) as
     accents. Deliberately no prefers-color-scheme or data-theme overrides:
     every visitor sees the same colours whatever their device's dark-mode
     setting. --gold is for fills (buttons); --gold-deep is the readable
     amber for text on the light background. */
  --cream: #FBF6EE;          /* page background */
  --cream-deep: #F4EBDD;     /* alternate section background */
  --paper: #FFFFFF;          /* cards */
  --espresso: #1C1511;       /* dark bands (why-us, footer) */
  --espresso-soft: #2E241D;
  --gold: #FFC21A;           /* sign yellow (laurel + phone number) */
  --gold-deep: #8C5C00;
  --gold-tint: rgba(255, 194, 26, 0.18);
  --rose: #E3261B;           /* sign red (الحشوة) */
  --rose-deep: #E8650C;      /* sign orange (اللذيذة) */
  --rose-tint: rgba(227, 38, 27, 0.09);
  --green: #179B4A;          /* sign green (معجنات) */
  --green-tint: rgba(23, 155, 74, 0.11);
  --ink: #1E1712;
  --ink-soft: #6F6258;
  --border: rgba(30, 23, 18, 0.11);
  --shadow-color: 70, 45, 20;
  --on-dark: #F7EFE5;        /* text on the dark bands */
  --on-dark-soft: #BFB2A4;

  --font-display-ar: 'Baloo Bhaijaan 2', 'IBM Plex Sans Arabic', sans-serif;
  --font-display-en: 'Baloo Bhaijaan 2', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.5s;
  --dur-slow: 0.9s;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

html[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', var(--font-body); }

img, svg { display: block; max-width: 100%; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s var(--ease-out); }
img[loading="lazy"].img-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { opacity: 1; }
}

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

h1, h2, h3 { text-wrap: balance; font-weight: 700; color: var(--ink); }

[lang-display="ar"], html[data-lang="ar"] .display { font-family: var(--font-display-ar); font-weight: 800; }
html[data-lang="en"] .display { font-family: var(--font-display-en); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
html[data-lang="ar"] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 14px; }

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.section { padding: 88px 0; position: relative; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}

.section-sub { color: var(--ink-soft); font-size: 16.5px; max-width: 52ch; }

.on-dark { --cream: var(--espresso); }
.band-dark {
  background: var(--espresso);
  color: var(--on-dark);
  --border: rgba(247, 239, 229, 0.12);
}
.band-dark .section-sub { color: var(--on-dark-soft); }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #1A1206;
  box-shadow: 0 10px 28px -12px rgba(255, 198, 26, 0.55);
}
.btn-primary:hover { background: var(--gold-deep); box-shadow: 0 14px 34px -12px rgba(255, 176, 0, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.band-dark .btn-ghost { color: var(--on-dark); border-color: rgba(247, 239, 229, 0.28); }
.band-dark .btn-ghost:hover { border-color: var(--on-dark); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), backdrop-filter var(--dur-fast) var(--ease-out);
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(var(--shadow-color), 0.04);
  background-color: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 44px; width: 44px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.brand-logo { height: 46px; width: auto; }
.site-header .brand-logo { border-radius: 10px; box-shadow: 0 6px 16px -8px rgba(var(--shadow-color), 0.55); }
.site-header.scrolled .brand-logo { height: 40px; }
@media (max-width: 560px) { .brand-logo { height: 40px; } .site-header.scrolled .brand-logo { height: 36px; } }
.brand-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand-name {
  font-family: var(--font-display-ar);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
html[data-lang="en"] .brand-name { font-family: var(--font-display-en); font-size: 21px; letter-spacing: 0.02em; }
.brand-sub { display: block; font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.main-nav a:hover { color: var(--ink); background: rgba(var(--shadow-color), 0.05); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.header-icon svg { width: 19px; height: 19px; }
.header-icon.is-call { background: var(--green); border-color: var(--green); color: #fff; }
.header-icon.is-call:hover { background: #12803C; border-color: #12803C; }
.header-icon.is-ig:hover { color: var(--rose); border-color: var(--rose); }
@media (max-width: 380px) { .header-actions { gap: 6px; } .header-actions .header-icon, .header-actions .cart-toggle, .header-actions .menu-toggle { width: 36px; height: 36px; } }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  font-size: 22px;
  font-weight: 700;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease-out) 0.3s, transform 0.4s var(--ease-out) 0.3s; }
.mobile-nav.open .btn { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
  background: var(--cream);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 7, 0.55) 0%, rgba(10, 8, 7, 0.72) 45%, rgba(16, 13, 11, 0.97) 100%);
}
/* Phones/tablets: show the whole storefront photo (its natural 941x1672
   ratio = 177.7vw tall) under the header so the sign stays fully visible; the
   copy starts just below the sign's phone number (~26% down the photo) and
   the photo fades out behind it. */
@media (max-width: 899px) {
  .hero { padding: calc(64px + 46vw + 24px) 0 72px; }
  .hero-media {
    top: 64px;
    bottom: auto;
    height: 177.7vw;
    -webkit-mask-image: linear-gradient(to bottom, #000 22%, transparent 33%);
            mask-image: linear-gradient(to bottom, #000 22%, transparent 33%);
  }
  .hero-media img { object-position: center top; }
  .hero-scrim { display: none; }
}
@media (min-width: 900px) {
  .hero { min-height: 92vh; display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero-media { inset-inline-start: auto; width: 54%; }
  .hero-media img { object-position: center 12%; }
  /* fade the photo's inner edge (the side facing the copy) into the page */
  html[dir="rtl"] .hero-media { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 38%); mask-image: linear-gradient(to left, transparent 0%, #000 38%); }
  html[dir="ltr"] .hero-media { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%); }
  .hero-scrim { display: none; }
}

.hero-photo .hero-copy .eyebrow { color: var(--gold-deep); }
.hero-photo .hero-title { color: var(--ink); }
.hero-photo .hero-sub { color: var(--ink-soft); }
.hero-photo .hero-stat b { color: var(--ink); }
.hero-photo .hero-stat span { color: var(--ink-soft); }
.hero-photo .btn-ghost { color: var(--ink); border-color: rgba(30, 23, 18, 0.25); }
.hero-photo .btn-ghost:hover { border-color: var(--ink); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy { max-width: 640px; }

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.15;
  margin-block: 20px 18px;
}
html[data-lang="ar"] .hero-title { line-height: 1.35; }

.hero-title .accent { color: var(--rose); }
.hero-title .tone-green { color: var(--green); }
.hero-title .tone-orange { color: var(--rose-deep); }
.hero-title .tone-red { color: var(--rose); }

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-size: 26px; font-family: var(--font-display-en); color: var(--ink); line-height: 1.3; }
html[data-lang="ar"] .hero-stat b { font-family: var(--font-display-ar); }
.hero-stat span { font-size: 12.5px; color: var(--ink-soft); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

.hero-copy .eyebrow, .hero-title, .hero-sub, .hero-cta, .hero-stats {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease-out) forwards;
}
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.42s; }
.hero-stats { animation-delay: 0.54s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow, .hero-title, .hero-sub, .hero-cta, .hero-stats, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Marquee strip ---------- */
.strip {
  border-block: 1px solid var(--border);
  overflow: hidden;
  background: var(--cream-deep);
}
.strip-track {
  display: flex;
  width: max-content;
  gap: 56px;
  padding: 16px 0;
  animation: marquee 32s linear infinite;
}
.strip-track span {
  font-family: var(--font-display-ar);
  font-size: 18px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
html[data-lang="en"] .strip-track span { font-family: var(--font-display-en); font-style: italic; }
.strip-track span::after { content: "✦"; color: var(--gold-deep); font-size: 13px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[dir="rtl"] .strip-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.cat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px -20px rgba(var(--shadow-color), 0.35);
  border-color: transparent;
}
.cat-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
  color: var(--gold-deep);
  transition: transform var(--dur-base) var(--ease-out);
}
.cat-card:nth-child(even) .cat-icon { background: var(--rose-tint); color: var(--rose-deep); }
.cat-card:hover .cat-icon { transform: scale(1.08) rotate(-4deg); }
.cat-icon svg { width: 34px; height: 34px; }
.cat-icon.has-photo { background: none; box-shadow: 0 0 0 3px var(--gold-tint), 0 14px 28px -14px rgba(var(--shadow-color), 0.45); }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (min-width: 560px) { .cat-icon.has-photo { width: 104px; height: 104px; } }
.cat-card span { font-size: 15.5px; font-weight: 700; }

/* ---------- Products ---------- */
.cat-section { scroll-margin-top: 110px; }
.cat-section + .cat-section { margin-top: 56px; }
.cat-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cat-section-head .eyebrow { margin: 0; }
.cat-section-head .cat-count { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

.coming-soon {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--paper);
}
.coming-soon p { font-size: 14.5px; color: var(--ink-soft); }

.prod-disclaimer {
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .product-grid { gap: 20px; } }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* One-item-at-a-time view — toggled via the buttons in the products section
   header (view-toggle). Applied by adding "view-list" to #productSections;
   see applyProductView in script.js. Grid (above) is the default. */
#productSections.view-list .product-grid {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin-inline: auto;
  gap: 54px;
}
#productSections.view-list .product-art { aspect-ratio: 4 / 3; }
#productSections.view-list .product-name { font-size: 19px; }

.product-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.product-card:hover { border-color: rgba(168, 111, 0, 0.3); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(var(--shadow-color), 0.4); }

.product-art {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-art svg { width: 68%; height: 68%; transition: transform var(--dur-base) var(--ease-out); }
.product-card:hover .product-art svg { transform: scale(1.06); }
.product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.product-card:hover .product-art img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(var(--shadow-color), 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
@media (min-width: 640px) { .product-body { padding: 16px 16px 18px; gap: 10px; } }
.product-name { font-size: 15.5px; font-weight: 700; }
.product-cat { font-size: 12px; color: var(--ink-soft); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-price { font-family: var(--font-display-en); font-size: 19px; font-weight: 700; color: var(--gold-deep); line-height: 1.3; }

/* Pizza: two sizes, each with its own price */
.product-sizes { display: flex; flex-direction: column; gap: 2px; }
.product-size { display: flex; align-items: baseline; gap: 6px; }
.product-size-label { font-size: 12px; color: var(--ink-soft); min-width: 30px; }
.product-size .product-price { font-size: 17px; }
html[data-lang="ar"] .product-price { font-family: var(--font-display-ar); }

.product-cal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream-deep);
  padding: 5px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.product-cal svg { width: 13px; height: 13px; color: var(--rose-deep); flex-shrink: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-inline: auto;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: rgba(247, 239, 229, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-num {
  font-family: var(--font-display-en);
  font-size: 14px;
  color: var(--rose);
  font-weight: 700;
}
.why-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gold-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.why-card:nth-child(2) .why-icon { background: var(--rose-tint); color: var(--rose-deep); }
.why-card:nth-child(3) .why-icon { background: rgba(43, 212, 106, 0.14); color: #2BD46A; }
.why-card:nth-child(2) .why-icon { color: #FF7A1A; }
.why-card .why-num { color: #FF5A4E; }
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 19px; }
.why-card p { color: var(--on-dark-soft); font-size: 14.5px; }

/* ---------- About / split ---------- */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.about-art { position: relative; aspect-ratio: 1/1; max-width: 460px; margin-inline: auto; }
.about-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 50px -24px rgba(var(--shadow-color), 0.45);
}
.about-badge {
  position: absolute;
  bottom: 6%;
  inset-inline-start: -6%;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px -22px rgba(var(--shadow-color), 0.35);
}
.about-badge strong { font-size: 22px; font-family: var(--font-display-en); color: var(--rose); display: block; }
.about-badge span { font-size: 11.5px; color: var(--ink-soft); }

.about-copy p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 18px; }
.about-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.about-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Occasions band ---------- */
.occ-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.occ-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.occ-nav:hover { background: var(--gold); color: #fff; border-color: transparent; }
.occ-nav:active { transform: scale(0.94); }
.occ-nav svg { width: 20px; height: 20px; }
.occ-prev svg { transform: scaleX(-1); }
html[dir="rtl"] .occ-prev svg { transform: scaleX(1); }
html[dir="rtl"] .occ-next svg { transform: scaleX(-1); }
@media (max-width: 560px) { .occ-nav { width: 38px; height: 38px; } .occ-nav svg { width: 17px; height: 17px; } }

.occ-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}
.occ-scroller::-webkit-scrollbar { display: none; }
.occ-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 240px;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.occ-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.occ-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin-inline: auto;
}
@media (min-width: 640px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .testi-grid { grid-template-columns: repeat(4, 1fr); } }

.testi-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-stars { display: flex; gap: 3px; }
.testi-stars svg { width: 15px; height: 15px; }
.testi-quote { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon-wrap {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-tint); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .icon-wrap svg { width: 20px; height: 20px; }
.contact-row h4 { font-size: 14px; margin-bottom: 4px; }
.contact-row p, .contact-row a { font-size: 14.5px; color: var(--ink-soft); }
.contact-row a:hover { color: var(--gold-deep); }
.contact-row .phones { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  height: 100%;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(0.85); background: var(--paper); }
.map-open-link {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(var(--shadow-color), 0.35);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.map-open-link svg { width: 16px; height: 16px; color: var(--rose); flex-shrink: 0; }
.map-open-link:hover { transform: translateY(-2px); background: var(--gold-tint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark); padding: 64px 0 28px; --border: rgba(247, 239, 229, 0.12); }
.footer-top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand-logo { height: 64px; }
.footer-brand p { color: var(--on-dark-soft); font-size: 14.5px; margin-top: 14px; max-width: 34ch; }
.footer-col h5 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 16px; }
html[data-lang="ar"] .footer-col h5 { text-transform: none; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: var(--on-dark); }
.footer-col a:hover { color: var(--gold); }

.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(247, 239, 229, 0.22);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: #1A1206; }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 12.5px; color: var(--on-dark-soft);
}

/* ---------- Arch divider ---------- */
.arch-divider { display: block; width: 100%; height: auto; color: var(--cream); }

/* ---------- Product ID badge ---------- */
.product-id {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  background: rgba(var(--shadow-color), 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-family: var(--font-display-en);
}


/* ---------- Product view toggle (grid / one item at a time) ---------- */
.prod-head-row { flex-direction: row; align-items: center; justify-content: space-between; max-width: none; margin-bottom: 0; }
.products-intro { margin-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.view-toggle {
  display: inline-flex;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: var(--paper);
}
.view-toggle button {
  width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button[aria-pressed="true"] { background: var(--gold); color: #1A1206; }

/* ---------- Promo banner ----------
   Default: diagonal stripes in the sign's two neighbouring warm tones (red +
   orange). A sheet-supplied photo (Site Content tab, once the Sheets CMS is
   wired) replaces the stripes, with a scrim so the wordmark stays readable.
   Starts display:none in the markup and is revealed only after the Site
   Content load settles (siteContentLoaded), so it never flashes. */
.promo-banner {
  position: relative;
  overflow: hidden;
  padding: 46px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    var(--rose) 0px,
    var(--rose) 34px,
    var(--rose-deep) 34px,
    var(--rose-deep) 68px
  );
}
.promo-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.promo-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.promo-banner.has-image .promo-banner-scrim {
  background: linear-gradient(180deg, rgba(var(--shadow-color), 0.5), rgba(var(--shadow-color), 0.62));
}
.promo-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}
.promo-word {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  color: #FFFDF8;
  line-height: 1.2;
  text-shadow: 0 6px 18px rgba(var(--shadow-color), 0.45);
}
.promo-spark {
  font-size: clamp(20px, 3vw, 30px);
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(var(--shadow-color), 0.4);
}
.promo-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-display-en);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(15px, 2vw, 19px);
  color: #FFF1D6;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(var(--shadow-color), 0.45);
}
html[data-lang="ar"] .promo-tag { font-family: var(--font-display-ar); font-style: normal; letter-spacing: 0; }

/* ---------- Promo photo showcase (continuous marquee) ----------
   Cards are built in JS from real item photos, picked at random on every
   load (see renderPromoShowcase), never a hand-picked/hardcoded set.
   Pure-CSS animation; the site-wide prefers-reduced-motion rule near the top
   of this file already collapses animation-duration to ~0. */
.promo { padding-bottom: 40px; }
.promo-scroller-wrap { overflow: hidden; margin-bottom: 28px; }
.promo-scroller {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: promo-marquee 34s linear infinite;
}
.promo-scroller:hover { animation-play-state: paused; }
@keyframes promo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[dir="rtl"] .promo-scroller { animation-name: promo-marquee-rtl; }
@keyframes promo-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.promo-card {
  flex: 0 0 auto;
  width: 220px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 44px -24px rgba(var(--shadow-color), 0.45);
}
.promo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (max-width: 560px) { .promo-card { width: 170px; } }
.promo-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 4px;
}

/* ---------- Second hero (full-bleed photo band near the bottom) ----------
   Hidden until HERO2_IMG is set in script.js (see initHero2). */
.hero2 {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--espresso);
}
.hero2 > .container { width: 100%; }
.hero2-media { position: absolute; inset: 0; }
.hero2-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero2-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 13, 11, 0.15) 0%, rgba(16, 13, 11, 0.35) 45%, rgba(16, 13, 11, 0.95) 100%);
}
.hero2-copy { position: relative; z-index: 1; padding-block: 64px; max-width: 620px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero2-title { font-size: clamp(32px, 5vw, 54px); line-height: 1.3; color: var(--on-dark); }
.hero2 .eyebrow { color: var(--gold); }
.hero2-title .tone-gold { color: var(--gold); }
.hero2-sub { color: rgba(247, 239, 229, 0.86); font-size: 17px; max-width: 44ch; }

/* ---------- Product detail modal ---------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.product-modal.open { opacity: 1; pointer-events: auto; }
.product-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 17, 0.6);
}
.product-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(var(--shadow-color), 0.45);
  transform: scale(0.94);
  transition: transform var(--dur-base) var(--ease-out);
}
.product-modal.open .product-modal-panel { transform: scale(1); }
.product-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.product-modal-close:hover { background: rgba(0, 0, 0, 0.6); }
.product-modal-close svg { width: 18px; height: 18px; }
.product-modal-media { aspect-ratio: 4 / 3; background: var(--gold-tint); }
.product-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-illus { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.product-modal-illus svg { width: 46%; height: 46%; }
.product-modal-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.product-modal-cat { font-size: 12px; color: var(--ink-soft); }
.product-modal-name { font-size: 22px; font-weight: 700; }
.product-modal-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.product-modal-sizes { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.product-modal-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}
.product-modal-size b { font-size: 15px; }
.product-modal-size .product-price { font-size: 18px; }
.product-modal-size-meta { display: flex; align-items: center; gap: 10px; }
.product-modal-notes {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  white-space: pre-line; /* preserve line breaks typed into a sheet cell (Alt+Enter) */
}
.product-modal-notes:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .product-modal, .product-modal-panel { transition: none; }
}

/* ---------- Cart toggle (header) ---------- */
.cart-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.cart-toggle { background: var(--paper); }
.cart-toggle:hover { border-color: var(--gold-deep); }
.cart-toggle:active { transform: scale(0.94); }
.cart-toggle svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-en);
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out);
}
.cart-badge[hidden] { display: none; }
.cart-badge.pulse { animation: cartPulse 0.4s var(--ease-out); }
@keyframes cartPulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Add-to-cart controls on product cards / popup ---------- */
.product-cart-controls { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.product-cart-control { min-height: 40px; }

.product-add-cart {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.product-add-cart svg { width: 16px; height: 16px; flex-shrink: 0; }
.product-add-cart:hover { background: var(--gold); color: #1A1206; }
.product-add-cart:active { transform: scale(0.97); }
@media (max-width: 380px) { .product-add-cart { font-size: 12px; padding-inline: 8px; gap: 5px; } }

.product-cart-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 3px;
  animation: stepperPop 0.22s var(--ease-out);
}
.product-cart-stepper .qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.product-cart-stepper .qty-btn:hover { background: var(--gold); color: #1A1206; }
.product-cart-stepper .qty-btn:active { transform: scale(0.94); }
.product-cart-stepper .qty-value {
  font-family: var(--font-display-en);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.product-cart-stepper .qty-value small { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
html[data-lang="ar"] .product-cart-stepper .qty-value { font-family: var(--font-display-ar); }
@keyframes stepperPop { from { transform: scale(0.85); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .product-cart-stepper { animation: none; } }

.product-modal-cart:empty { display: none; }
.product-modal-cart .product-cart-controls { flex-direction: row; margin-top: 6px; }
.product-modal-cart .product-cart-control { flex: 1; }

/* ---------- Cart drawer ---------- */
.cart-drawer { position: fixed; inset: 0; z-index: 310; visibility: hidden; pointer-events: none; }
.cart-drawer.open { visibility: visible; pointer-events: auto; }
.cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 17, 0.55);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-inline-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(var(--shadow-color), 0.4);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
}
html[dir="rtl"] .cart-drawer-panel { transform: translateX(-100%); box-shadow: 20px 0 60px -20px rgba(var(--shadow-color), 0.4); }
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-head h3 { font-size: 20px; font-family: var(--font-display-ar); font-weight: 800; }
.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.cart-drawer-close:hover { border-color: var(--ink); }
.cart-drawer-close svg { width: 16px; height: 16px; }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 16px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--ink-soft);
  flex: 1;
}
.cart-empty svg { width: 46px; height: 46px; color: var(--ink-soft); opacity: 0.4; }
.cart-empty p { font-size: 14.5px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item-img, .cart-item-img-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--cream-deep);
  flex-shrink: 0;
}
.cart-item-img-placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-deep); }
.cart-item-img-placeholder svg { width: 26px; height: 26px; }
.cart-item-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.cart-item-weight { font-size: 12px; color: var(--ink-soft); }
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out);
}
.qty-btn:hover { background: var(--cream-deep); }
.qty-value { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; font-family: var(--font-display-en); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-subtotal { font-size: 15px; font-weight: 700; color: var(--gold-deep); font-family: var(--font-display-en); white-space: nowrap; }
html[data-lang="ar"] .cart-item-subtotal { font-family: var(--font-display-ar); }
.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cart-item-remove:hover { background: var(--rose-tint); color: var(--rose); }
.cart-item-remove svg { width: 14px; height: 14px; }

.cart-drawer-foot { flex-shrink: 0; padding: 18px 22px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cart-drawer-foot[hidden] { display: none; }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; }
.cart-total-row span:last-child { font-family: var(--font-display-en); font-size: 21px; color: var(--gold-deep); }
html[data-lang="ar"] .cart-total-row span:last-child { font-family: var(--font-display-ar); }
/* WhatsApp green with dark text (white on #25D366 is too low-contrast) */
.cart-checkout { width: 100%; justify-content: center; background: #25D366; color: #04210F; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, 0.55); }
.cart-checkout:hover { background: #1EBE57; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.6); }
.cart-checkout svg { width: 19px; height: 19px; }
.cart-clear {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px;
  transition: color var(--dur-fast) var(--ease-out);
}
.cart-clear:hover { color: var(--rose); }

@media (max-width: 480px) {
  .cart-drawer-panel { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer-panel, .cart-drawer-overlay, .cart-badge.pulse { transition: none; animation: none; }
}
