/* =====================================================================
   La Maison du Savon de Hermel — site styles
   1. Tokens   2. Base   3. Layout   4. Components
   5. Home     6. Product page       7. Cart & checkout
   8. Footer   9. Motion
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F7F2EA;
  --bg-alt: #EFE7DA;
  --surface: #FFFCF7;
  --ink: #24221D;
  --ink-2: #5B5447;
  --ink-3: #6F685C;
  --line: rgba(36, 34, 29, 0.1);
  --line-strong: rgba(36, 34, 29, 0.18);

  --olive-950: #1F261B;
  --olive-900: #2C3526;
  --olive-700: #43513A;
  --olive-500: #5E6F4D;
  --olive-200: #D3DBC6;
  --olive-100: #E6EBDD;

  --plum-700: #6E2433;
  --plum-300: #E3C3C9;
  --gold: #C2A06B;
  --cream: #FBF7F0;
  --danger: #A8392F;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36, 34, 29, 0.05), 0 4px 14px -6px rgba(36, 34, 29, 0.08);
  --shadow-md: 0 16px 36px -18px rgba(36, 34, 29, 0.32);
  --shadow-lg: 0 34px 70px -34px rgba(36, 34, 29, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 76px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .13 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--olive-500); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; } /* headings that receive focus for screen readers */
::selection { background: var(--olive-200); color: var(--olive-950); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
p { margin: 0; }
[lang="ar"] { font-family: var(--font-ar); }

.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;
}

.skip-link {
  position: fixed;
  left: 16px; top: -64px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--sand { background-color: var(--bg-alt); }

.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-500);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow [lang="ar"] { font-size: 1.15rem; letter-spacing: 0; text-transform: none; font-weight: 700; }

.section-title { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 400; letter-spacing: -0.025em; }
.section-title em, .hero__title em, .footer-cta__title em { font-style: italic; font-weight: 300; color: var(--olive-700); }
.section-lead { margin-top: 16px; max-width: 56ch; font-size: 1.05rem; color: var(--ink-2); }
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- 4. Components ---------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 234, 0.78);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(247, 242, 234, 0.92);
  border-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(36, 34, 29, 0.5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height 0.35s var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(36, 34, 29, 0.45);
  transition: transform 0.6s var(--ease-spring), width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}
.brand:hover .brand__logo { transform: rotate(-14deg) scale(1.06); }
.site-header.is-scrolled .brand__logo { width: 40px; height: 40px; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.brand__name small {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav { display: none; gap: 4px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s, background-color 0.25s;
}
.site-nav a:hover { color: var(--ink); background: rgba(36, 34, 29, 0.05); }
@media (min-width: 900px) { .site-nav { display: flex; } }

.cart-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.cart-button:hover { transform: translateY(-2px); background: var(--olive-700); }
.cart-button .icon { width: 20px; height: 20px; }
.cart-button__count {
  position: absolute;
  top: -5px; right: -5px;
  display: grid;
  place-items: center;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--plum-700);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-button__count.is-bumping { animation: bump 0.55s var(--ease-spring); }

/* Buttons */
.btn {
  --btn-bg: var(--olive-700);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s,
    transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(31, 38, 27, 0.6); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { --btn-bg: var(--olive-900); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); border-color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); padding-inline: 6px; }
.btn--ghost:hover { box-shadow: none; transform: none; --btn-fg: var(--olive-700); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--olive-950); }
.btn--light:hover { --btn-bg: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--cream); border-color: rgba(251, 247, 240, 0.32); }
.btn--outline-light:hover { --btn-bg: var(--cream); --btn-fg: var(--olive-950); border-color: var(--cream); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-added { --btn-bg: var(--olive-500); }
.btn .icon-check { display: none; }
.btn.is-added .icon-check { display: block; animation: pop 0.45s var(--ease-spring); }
.btn.is-added .icon-bag { display: none; }

.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }

/* Text link with animated underline */
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.25s;
  padding-bottom: 2px;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.breadcrumbs a { color: var(--ink-2); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--olive-700); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* Filter chips */
.filters {
  position: relative;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.filters::-webkit-scrollbar { display: none; }
.filters__indicator {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), height 0.55s var(--ease-out);
}
/* Phones: chips wrap so every category stays visible */
@media (max-width: 599px) {
  .filters { flex-wrap: wrap; width: 100%; overflow: visible; border-radius: 26px; }
}
.filters__indicator.no-anim { transition: none; }
.chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--cream); }
.chip__count {
  display: grid;
  place-items: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(36, 34, 29, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background-color 0.3s;
}
.chip.is-active .chip__count { background: rgba(251, 247, 240, 0.18); }

/* Product grid & cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px) clamp(12px, 2.2vw, 28px);
}
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
}
.card__media {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint, var(--bg-alt));
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 1.1s var(--ease-out), opacity 0.6s var(--ease-out);
}
.js .card__media img:not(.is-loaded) { opacity: 0; }
.card:hover .card__media { box-shadow: var(--shadow-md); }
.card:hover .card__media img { transform: scale(1.07); }
.card:active .card__media { transform: scale(0.985); }
.card__tag {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  z-index: 2;
  margin: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 252, 247, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
}
.card__add {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-spring), background-color 0.3s;
}
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }
.card__add:hover { background: var(--olive-700); }
.card__add .icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease-spring); }
.card__add:hover .icon-plus { transform: rotate(90deg); }
.card__add .icon-check { display: none; }
.card__add.is-added { background: var(--olive-500); opacity: 1; transform: none; }
.card__add.is-added .icon-plus { display: none; }
.card__add.is-added .icon-check { display: block; animation: pop 0.45s var(--ease-spring); }
@media (hover: none) { .card__add { opacity: 1; transform: none; } }

.card__body { grid-row: 2; display: flex; flex-direction: column; gap: 2px; padding: 16px 4px 2px; }
.card__title { font-size: clamp(1.02rem, 0.92rem + 0.45vw, 1.2rem); font-weight: 500; line-height: 1.25; transition: color 0.25s; }
.card:hover .card__title { color: var(--olive-700); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--olive-500); outline-offset: 4px; }
.card__ar { font-family: var(--font-ar); font-size: 1.02rem; line-height: 1.5; color: var(--plum-700); text-align: left; }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.card__size { font-size: 0.8rem; font-weight: 500; color: var(--ink-3); }
.card__price { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.card.is-entering { animation: cardIn 0.6s var(--ease-out) both; animation-delay: var(--enter-delay, 0ms); }

@media (max-width: 479px) {
  .card__tag { display: none; }
  .card__add { width: 40px; height: 40px; margin: 8px; }
  .card__body { padding-top: 12px; }
  .card__ar { font-size: 0.95rem; }
}

/* Quantity stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 52px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
}
.stepper button:hover:not(:disabled) { background: var(--bg-alt); }
.stepper button:active:not(:disabled) { transform: scale(0.88); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper .icon { width: 16px; height: 16px; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper output.tick { animation: tick 0.35s var(--ease-spring); }
.stepper--sm { height: 38px; padding: 3px; }
.stepper--sm button { width: 30px; height: 30px; }
.stepper--sm .icon { width: 14px; height: 14px; }
.stepper--sm output { min-width: 28px; font-size: 0.92rem; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 8px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px) scale(0.96);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s 0.5s;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-spring), visibility 0s;
}
.toast--error { background: var(--danger); }
.toast__thumb {
  width: 48px; height: 48px;
  flex: none;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  background: var(--tint, var(--bg-alt));
}
.toast__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.toast__body { display: flex; flex-direction: column; min-width: 0; padding-inline: 4px; line-height: 1.3; }
.toast__title { font-weight: 700; font-size: 0.92rem; }
.toast__text { font-size: 0.82rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.toast__action {
  flex: none;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(251, 247, 240, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 0.25s;
}
.toast__action:hover { background: rgba(251, 247, 240, 0.22); }
.toast__close {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.2s, background-color 0.2s;
}
.toast__close:hover { opacity: 1; background: rgba(251, 247, 240, 0.1); }
.toast__close .icon { width: 16px; height: 16px; }
.has-buybar .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .toast { left: auto; right: 24px; bottom: 24px; transform: translateY(24px) scale(0.96); }
  .toast.is-visible { transform: none; }
  .toast__text { max-width: 240px; }
}

/* Item flying into the cart */
.fly-ghost { position: fixed; z-index: 95; pointer-events: none; will-change: transform; }
.fly-ghost__inner {
  width: 100%; height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24%;
  background: var(--tint, var(--bg-alt));
  box-shadow: var(--shadow-md);
  will-change: transform, opacity;
}
.fly-ghost__inner img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Feature list (icons + text) */
.icon-tile {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--olive-100);
  color: var(--olive-700);
}
.icon-tile .icon { width: 22px; height: 22px; }

/* ---------- 5. Home ---------- */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 104px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
  animation: drift 20s ease-in-out infinite alternate;
}
.blob--sage {
  top: -14%; right: -10%;
  width: min(52vw, 640px); aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, #CBD6BA, transparent 68%);
}
.blob--blush {
  bottom: -18%; left: -12%;
  width: min(40vw, 500px); aspect-ratio: 1;
  background: radial-gradient(circle, #EFD6D3, transparent 68%);
  animation-delay: -7s;
}
.hero__inner { display: grid; gap: clamp(48px, 7vw, 80px); align-items: center; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.08fr 0.92fr; } }

.hero__title {
  font-size: clamp(2.7rem, 1.5rem + 4.8vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero__ar {
  margin-top: 20px;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  line-height: 1.5;
  color: var(--plum-700);
  text-align: left;
}
.hero__lead { margin-top: 18px; max-width: 46ch; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; }
.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}
.hero__perks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__perks .icon { width: 18px; height: 18px; color: var(--olive-500); }

.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 500px; }
.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 32px 32px;
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.hero__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: -34px; bottom: 64px;
  display: grid;
  place-items: center;
  width: 136px; height: 136px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: var(--shadow-md);
}
.hero__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.hero__badge-ring text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--olive-700);
}
.hero__badge-logo { width: 74px; height: 74px; border-radius: 50%; }
.hero__float {
  position: absolute;
  top: 16%; right: -28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
  transition: box-shadow 0.3s;
}
.hero__float:hover { box-shadow: var(--shadow-lg); }
.hero__float-thumb { width: 56px; height: 56px; overflow: hidden; isolation: isolate; border-radius: 14px; background: var(--tint, var(--bg-alt)); }
.hero__float-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hero__float strong { display: block; font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; line-height: 1.2; }
.hero__float small { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.hero__float small span { color: var(--ink-3); font-weight: 500; }
@media (max-width: 959px) {
  .hero__visual { max-width: 420px; }
  .hero__badge { left: -6px; bottom: 28px; width: 112px; height: 112px; }
  .hero__badge-logo { width: 60px; height: 60px; }
  .hero__float { right: -6px; top: 10%; }
}

/* Ingredient marquee */
.marquee {
  overflow: hidden;
  padding-block: 20px;
  background: var(--olive-900);
  color: var(--cream);
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; gap: 30px; padding-right: 30px; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  white-space: nowrap;
}
.marquee__item[lang="ar"] { font-family: var(--font-ar); font-style: normal; font-weight: 400; color: var(--plum-300); }
.marquee__sep {
  width: 14px; height: 14px;
  flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.4 8.6L23 12l-8.6 2.4L12 23l-2.4-8.6L1 12l8.6-2.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.4 8.6L23 12l-8.6 2.4L12 23l-2.4-8.6L1 12l8.6-2.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Shop */
.shop__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.shop__top .section-head { margin-bottom: 28px; }
.shop__empty { padding: 48px 0; text-align: center; color: var(--ink-2); }

/* Story */
.story__inner { display: grid; gap: clamp(48px, 7vw, 88px); align-items: center; }
@media (min-width: 960px) { .story__inner { grid-template-columns: 0.9fr 1.1fr; } }
.story__media { position: relative; isolation: isolate; margin: 0; max-width: 520px; width: 100%; justify-self: center; }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.story__media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  z-index: -1;
  border: 1px solid var(--olive-200);
  border-radius: var(--radius-lg);
}
.story__caption {
  position: absolute;
  right: 20px; bottom: 20px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 252, 247, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.story__text { margin-top: 20px; font-size: 1.06rem; color: var(--ink-2); }
.story__ar { margin-top: 16px; font-size: 1.3rem; line-height: 1.85; color: var(--plum-700); }
.features { display: grid; gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature strong { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; }
.feature span { font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 599px) { .story__media::before { inset: 16px -10px -14px 14px; } }

/* How to order */
.steps__list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num { font-family: var(--font-display); font-size: 3.2rem; font-style: italic; font-weight: 300; line-height: 1; color: var(--olive-500); }
.step .icon-tile { position: absolute; top: clamp(26px, 3vw, 36px); right: clamp(26px, 3vw, 36px); border-radius: 50%; }
.step h3 { margin-top: 24px; font-size: 1.35rem; }
.step p { margin-top: 10px; color: var(--ink-2); }
.step .step__ar { margin-top: 12px; font-size: 1.1rem; line-height: 1.7; color: var(--plum-700); }
.steps__cta { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 48px); }

/* ---------- 6. Product page ---------- */
.product-page { padding-top: clamp(16px, 3vw, 32px); }
.product { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
  .product__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
}
.product__gallery { display: grid; gap: 14px; }
.product__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--tint, var(--bg-alt));
  view-transition-name: product-hero;
}
.product__stage img {
  width: 100%;
  height: auto;
  max-height: min(76vh, 760px);
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: opacity 0.35s var(--ease-out), transform 1.2s var(--ease-out);
}
.product__stage.is-photo img { mix-blend-mode: normal; }
.product__stage.is-swapping img { opacity: 0; }
.product__stage:hover img { transform: scale(1.035); }
.product__thumbs { display: flex; gap: 10px; }
.thumb {
  width: 78px; height: 78px;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--tint, var(--bg-alt));
  opacity: 0.65;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb.is-photo img { mix-blend-mode: normal; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }

.product__info { display: flex; flex-direction: column; }
.product__info .eyebrow { margin-bottom: 14px; }
.product__title { font-size: clamp(2.3rem, 1.5rem + 2.9vw, 3.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.product__ar { margin-top: 10px; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.5; color: var(--plum-700); text-align: left; }
.product__price-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.product__price { font-family: var(--font-display); font-size: 2rem; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 4ch; }
.size-chip { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.product__desc { margin-top: 24px; font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); }
.product__desc-ar {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.7);
  font-size: 1.22rem;
  line-height: 1.85;
}
.buy { display: flex; gap: 12px; margin-top: 30px; }
.buy .btn { flex: 1; }
.product__buy-now { margin-top: 12px; }
.assurances { display: grid; gap: 12px; margin: 28px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); }
.assurances li { display: flex; align-items: center; gap: 12px; font-size: 0.93rem; color: var(--ink-2); }
.assurances .icon { color: var(--olive-500); }
.assurances strong { color: var(--ink); font-weight: 600; }

.details { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.detail {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow 0.5s var(--ease-out);
}
.detail:hover { box-shadow: var(--shadow-md); }
.detail__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail__title { font-size: 1.3rem; font-weight: 500; }
.detail__title-ar { margin-left: auto; font-size: 1.15rem; color: var(--plum-700); }
.detail__en { color: var(--ink-2); }
.detail__ar { margin-top: 14px; font-size: 1.16rem; line-height: 1.85; }
.detail__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.detail__list li { position: relative; padding-left: 20px; }
.detail__list li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--olive-500); }
.detail__list[dir="rtl"] li { padding-left: 0; padding-right: 20px; }
.detail__list[dir="rtl"] li::before { left: auto; right: 2px; }
.detail a { color: var(--olive-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Sticky add-to-cart bar (phones) */
.buybar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 32px));
  transition: transform 0.5s var(--ease-out);
}
.buybar.is-visible { transform: none; }
.buybar__thumb { width: 48px; height: 48px; flex: none; overflow: hidden; isolation: isolate; border-radius: 14px; background: var(--tint, var(--bg-alt)); }
.buybar__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.buybar__info { flex: 1; min-width: 0; line-height: 1.3; }
.buybar__name { display: block; overflow: hidden; font-family: var(--font-display); font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; }
.buybar__price { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
@media (min-width: 960px) { .buybar { display: none; } }

/* ---------- 7. Cart & checkout ---------- */
.page-head { padding-block: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); font-weight: 400; letter-spacing: -0.03em; }
.page-title em, .product-page .section-title em { font-style: italic; font-weight: 300; color: var(--olive-700); }
.page-lead { margin-top: 12px; max-width: 60ch; color: var(--ink-2); }

.checkout { display: grid; gap: clamp(24px, 4vw, 40px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .checkout__summary { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); }
  .checkout__form { grid-column: 1; grid-row: 1; }
}

.panel {
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; font-size: 1.55rem; font-weight: 500; }
.panel__title small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }

.cart-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.line:first-child { padding-top: 0; }
.line__thumb { display: block; width: 76px; height: 76px; overflow: hidden; isolation: isolate; border-radius: 16px; background: var(--tint, var(--bg-alt)); }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.6s var(--ease-out); }
.line__thumb:hover img { transform: scale(1.08); }
.line__name { display: block; font-family: var(--font-display); font-size: 1.06rem; line-height: 1.25; transition: color 0.2s; }
.line__name:hover { color: var(--olive-700); }
.line__meta { margin-top: 2px; font-size: 0.82rem; color: var(--ink-3); }
.line__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.line__remove { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.line__remove:hover { color: var(--danger); }
.line__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.line.is-removing { animation: lineOut 0.35s var(--ease-in-out) forwards; }

.totals { display: grid; gap: 10px; margin: 22px 0 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.totals dt, .totals dd { margin: 0; }
.totals dd { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.totals dt small, .history__title small { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--ink-3); }
.totals .totals__grand { align-items: baseline; margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.totals__grand dt { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.totals__grand dd { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.summary__note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-3); }
.summary__note a { color: var(--olive-700); font-weight: 600; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; grid-column: span 2; }
.field--half { grid-column: span 1; }
@media (max-width: 479px) { .field--half { grid-column: span 2; } }
.field input {
  width: 100%;
  height: 60px;
  padding: 24px 16px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field input:hover { border-color: rgba(36, 34, 29, 0.32); }
.field input:focus { border-color: var(--olive-500); background: var(--surface); box-shadow: 0 0 0 4px rgba(94, 111, 77, 0.16); }
.field label {
  position: absolute;
  left: 17px; top: 19px;
  transform-origin: left top;
  font-size: 1rem;
  color: var(--ink-3);
  pointer-events: none;
  transition: transform 0.25s var(--ease-out), color 0.25s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.76); color: var(--olive-700); font-weight: 600; }
.field input:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(168, 57, 47, 0.1); }
.field input:user-invalid + label { color: var(--danger); }

.pay-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--olive-100);
  color: var(--olive-900);
  font-size: 0.93rem;
}
.pay-note .icon { width: 24px; height: 24px; color: var(--olive-700); }
.pay-note strong { display: block; }
.form-error { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(168, 57, 47, 0.08); color: var(--danger); font-size: 0.92rem; font-weight: 500; }
.checkout__submit { margin-top: 22px; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }
.form-note .icon { width: 16px; height: 16px; }

.state-panel { max-width: 600px; margin: clamp(16px, 3vw, 32px) auto clamp(56px, 8vw, 96px); padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px); text-align: center; }
.state-panel h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 400; }
.state-panel p { margin-top: 12px; color: var(--ink-2); }
.state-panel .state-panel__ar { font-size: 1.25rem; line-height: 1.8; color: var(--plum-700); }
.state-panel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.state-art { width: 132px; height: 132px; margin: 0 auto 26px; }
.state-art .bg { fill: var(--olive-100); }
.state-art .paper { fill: var(--surface); stroke: var(--olive-700); }
.state-art .leaf { fill: var(--olive-200); stroke: var(--olive-700); }
.state-art .stroke { fill: none; stroke: var(--olive-700); }
.state-art .float-a { animation: float 4s ease-in-out infinite; }
.state-art .float-b { animation: float 5s ease-in-out -1.5s infinite; }
.success-check { width: 96px; height: 96px; margin: 0 auto 26px; }
.success-check circle { fill: var(--olive-100); stroke: var(--olive-500); stroke-width: 2; stroke-dasharray: 302; stroke-dashoffset: 302; animation: draw 0.9s var(--ease-out) forwards; }
.success-check path { fill: none; stroke: var(--olive-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s 0.65s var(--ease-out) forwards; }

.history { padding-bottom: clamp(56px, 8vw, 96px); }
.history__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 1.5rem; }
.history__list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.order-card { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.order-card__date { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-500); }
.order-card__items { color: var(--ink-2); font-size: 0.95rem; }
.order-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }
.status-pill { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--olive-100); color: var(--olive-700); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- 8. Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(64px, 8vw, 104px); background: var(--olive-950); color: rgba(251, 247, 240, 0.72); }
.footer-cta { display: grid; gap: 28px; align-items: end; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(251, 247, 240, 0.12); }
@media (min-width: 860px) { .footer-cta { grid-template-columns: 1.3fr auto; } }
.footer-cta__title { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem); font-weight: 400; color: var(--cream); }
.footer-cta__title em { color: var(--olive-200); }
.footer-cta__ar { margin-top: 12px; font-size: 1.35rem; color: var(--plum-300); text-align: left; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; gap: 40px; padding-block: 56px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 0.7fr 1.4fr; } }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand__name { margin-top: 16px; font-family: var(--font-display); font-size: 1.3rem; color: var(--cream); }
.footer-brand__tag { margin-top: 4px; font-size: 0.92rem; }
.footer-brand__tag [lang="ar"] { font-size: 1.1rem; }
.footer-col h3 { margin-bottom: 16px; font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(251, 247, 240, 0.5); }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); transition: color 0.25s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--olive-200); }
.footer-col .icon { width: 18px; height: 18px; color: var(--olive-200); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 24px; border-top: 1px solid rgba(251, 247, 240, 0.12); font-size: 0.82rem; color: rgba(251, 247, 240, 0.5); }
.footer-wordmark {
  margin: 0 0 -0.18em;
  font-family: var(--font-display);
  font-size: min(12.5vw, 168px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(251, 247, 240, 0.06);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* ---------- 9. Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-animate] { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(-1%, -1%); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(5%, 7%) scale(1.15); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
@keyframes tick { from { transform: translateY(-45%); opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes lineOut { to { opacity: 0; transform: translateX(18px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease-out); }
::view-transition-group(product-hero) { animation-duration: 0.6s; animation-timing-function: var(--ease-out); }
::view-transition-old(product-hero), ::view-transition-new(product-hero) { height: 100%; object-fit: cover; overflow: clip; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease-out); }
::view-transition-old(filters) { display: none; }
::view-transition-new(filters) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
