/* ==========================================================================
   NAMERA — نَمِرَة · The Grace
   Contemporary storefront. Brand palette: pure black · warm off-white ·
   light beige · soft sand · dusty sage. Soft radii, compact scale.
   ========================================================================== */

:root {
  --ink: #0f0e0d;
  --ink-2: #3b3733;
  --muted: #877e75;
  --cream: #f5f0eb;
  --paper: #fbf9f6;
  --white: #ffffff;
  --beige: #ded1c0;
  --sand: #cbbdae;
  --sage: #a3a997;
  --sage-deep: #6b7260;
  --sand-soft: #efe7dc;
  --sage-soft: #e3e5dc;
  --gold: #b89b6e;
  --line: rgba(15, 14, 13, 0.08);
  --line-strong: rgba(15, 14, 13, 0.16);
  --danger: #a3402f;

  --f-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-label: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(40, 30, 20, 0.05), 0 2px 8px -2px rgba(40, 30, 20, 0.06);
  --shadow: 0 16px 40px -18px rgba(40, 30, 20, 0.22);
  --shadow-lg: 0 40px 80px -32px rgba(40, 30, 20, 0.32);

  --gutter: clamp(16px, 3.2vw, 40px);
  --maxw: 1280px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  /* Soft brand gradients used instead of photos until real photography exists */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --aurora: radial-gradient(70% 60% at 15% 15%, #ece3d6 0%, transparent 60%),
    radial-gradient(55% 55% at 85% 25%, #cfd4c5 0%, transparent 62%),
    radial-gradient(70% 70% at 65% 95%, #d9c9b5 0%, transparent 60%), #efe8de;
  --aurora-sage: radial-gradient(70% 70% at 20% 10%, #c4c9b8 0%, transparent 60%),
    radial-gradient(60% 60% at 90% 80%, #8f9682 0%, transparent 62%), #a9ae9c;
  --aurora-ink: radial-gradient(60% 60% at 85% 10%, #2b2824 0%, transparent 62%),
    radial-gradient(70% 70% at 10% 100%, #1d1b19 0%, transparent 60%), #0f0e0d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Scrolling stays; the bars are hidden for a cleaner look */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.lock {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[dir='rtl'] .flip {
  transform: scaleX(-1);
}

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
}

.label {
  font-family: var(--f-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang='ar'] .label:not(.latin) {
  letter-spacing: 0;
  font-size: 12.5px;
}

.latin {
  direction: ltr;
  unicode-bidi: isolate;
}

.section {
  padding-block: clamp(44px, 6vw, 84px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.section-head h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
}

.section-head p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13.5px;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 999px;
  font-family: var(--f-label);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(15, 14, 13, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
  background: rgba(15, 14, 13, 0.03);
}

.btn--light {
  --bg: var(--cream);
  --fg: var(--ink);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 0.2s, gap 0.25s var(--ease);
}

.link svg {
  width: 16px;
  height: 16px;
}

.link:hover {
  color: var(--ink);
  gap: 9px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(15, 14, 13, 0.06);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: background 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
}

.arrow-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.arrow-btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- announcement ---------- */
.announce {
  background: var(--ink);
  color: rgba(245, 240, 235, 0.86);
  font-size: 12px;
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

[dir='rtl'] .marquee {
  animation-name: marquee-rtl;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline-end: 26px;
  white-space: nowrap;
}

.marquee i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
  display: inline-block;
}

.announce:hover .marquee {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  to {
    transform: translateX(50%);
  }
}

/* ---------- header ---------- */
#chrome-top {
  display: contents;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 235, 0.78);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.scrolled {
  border-color: var(--line);
  background: rgba(245, 240, 235, 0.9);
}

.header__in {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header__logo {
  display: block;
  width: clamp(124px, 11vw, 150px);
  color: var(--ink);
}

.header__logo svg {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 13.5px;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav button:hover {
  background: rgba(15, 14, 13, 0.05);
  color: var(--ink);
}

.nav a.active {
  background: var(--ink);
  color: var(--cream);
}

.nav .is-sale {
  color: var(--danger);
}

.nav svg {
  width: 12px;
  height: 12px;
}

.mega {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: var(--gutter);
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.mega::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 100%;
  height: 12px;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega:hover {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 18px;
}

.nav .mega__item {
  display: grid;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 13px;
  text-align: center;
}

.nav .mega__item:hover {
  background: none;
}

.mega__item .frame {
  aspect-ratio: 4/5;
}

.header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  font-family: var(--f-label);
  font-size: 12.5px;
  font-weight: 500;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  margin-inline: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: var(--ink);
}

.cart-count {
  position: absolute;
  top: 3px;
  inset-inline-end: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  line-height: 17px;
  font-family: var(--f-label);
  text-align: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.cart-count.show {
  transform: scale(1);
}

.cart-count.bump {
  animation: bump 0.5s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.menu-btn {
  display: none;
}

/* ---------- drawers / overlays (floating panels) ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 13, 0.32);
  backdrop-filter: blur(3px);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.scrim.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 10px;
  bottom: 10px;
  inset-inline-end: 10px;
  width: min(420px, calc(100% - 20px));
  background: var(--paper);
  border-radius: var(--r-lg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s;
  box-shadow: var(--shadow-lg);
}

[dir='rtl'] .drawer {
  transform: translateX(calc(-100% - 24px));
}

.drawer--start {
  inset-inline-end: auto;
  inset-inline-start: 10px;
  transform: translateX(calc(-100% - 24px));
}

[dir='rtl'] .drawer--start {
  transform: translateX(calc(100% + 24px));
}

.drawer.open {
  transform: none !important;
  visibility: visible;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h3 {
  font-size: 18px;
  font-weight: 500;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 20px;
}

.drawer__foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.free-bar {
  margin: 14px 20px 4px;
  padding: 12px 14px;
  background: var(--sand-soft);
  border-radius: var(--r-sm);
  font-size: 12.5px;
}

.free-bar__track {
  height: 4px;
  background: rgba(15, 14, 13, 0.08);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.free-bar__track span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 4px;
  transition: width 0.6s var(--ease);
}

.line-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.line-item:last-child {
  border-bottom: 0;
}

.line-item__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--beige);
}

.line-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-item h4 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.line-item .meta {
  color: var(--muted);
  font-size: 12.5px;
}

.line-item .price {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.line-item .remove {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  transition: color 0.2s;
}

.line-item .remove:hover {
  color: var(--danger);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  height: 32px;
  margin-top: 8px;
  background: var(--white);
}

.qty button {
  width: 30px;
  height: 100%;
  display: grid;
  place-items: center;
}

.qty button svg {
  width: 13px;
  height: 13px;
}

.qty span {
  min-width: 20px;
  text-align: center;
  font-family: var(--f-label);
  font-size: 13px;
}

.qty--lg {
  height: 44px;
  margin: 0;
}

.qty--lg button {
  width: 40px;
}

.empty {
  text-align: center;
  padding: 56px 16px;
}

.empty > svg {
  width: 96px;
  margin: 0 auto 16px;
  color: var(--sand);
}

.empty h4 {
  font-size: 20px;
  font-weight: 500;
}

.empty p {
  color: var(--muted);
  margin: 6px 0 20px;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
}

/* mobile menu */
.mnav {
  padding: 8px 20px 20px;
}

.mnav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 18px;
}

.mnav a svg {
  width: 18px;
  height: 18px;
}

.mnav .sub a {
  font-family: var(--f-body);
  font-size: 14px;
  padding: 10px 4px;
  padding-inline-start: 14px;
  color: var(--ink-2);
}

/* search */
.search {
  position: fixed;
  inset-inline: 10px;
  top: 10px;
  z-index: 90;
  background: var(--paper);
  border-radius: var(--r-lg);
  transform: translateY(calc(-100% - 20px));
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.search.open {
  transform: none;
  visibility: visible;
}

.search__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 76px;
  border-bottom: 1px solid var(--line);
}

.search__bar svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--muted);
}

.search__bar input {
  flex: 1;
  border: 0;
  background: none;
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 24px);
  outline: none;
  min-width: 0;
}

.search__results {
  padding-block: 22px 30px;
}

.search__results .grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.search__hint {
  color: var(--muted);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}

.modal.open {
  visibility: visible;
  pointer-events: auto;
}

.modal__box {
  background: var(--paper);
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.modal.open .modal__box {
  opacity: 1;
  transform: none;
}

.modal__box--sm {
  width: min(520px, 100%);
  padding: 28px;
}

.modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.qv {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.qv__media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--beige);
}

.qv__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv__info {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 100;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), visibility 0.45s;
  white-space: nowrap;
}

.toast.show {
  transform: translate(-50%, 0);
  visibility: visible;
}

.toast--error {
  background: var(--danger);
}

.toast svg {
  width: 17px;
  height: 17px;
}

/* whatsapp */
.wa-float {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease);
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
}

.wa-float svg {
  width: 24px;
  height: 24px;
}

/* ---------- media frames & placeholders ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--beige);
  isolation: isolate;
}

.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--grain), var(--aurora);
  color: rgba(15, 14, 13, 0.14);
}

.ph svg {
  width: 40%;
  max-width: 170px;
  height: auto;
}

.ph--sand {
  background: var(--grain), radial-gradient(70% 70% at 30% 20%, #e4d8c8, transparent 60%), #cdbfae;
}

.ph--sage {
  background: var(--grain), var(--aurora-sage);
  color: rgba(245, 240, 235, 0.7);
}

.ph--beige {
  background: var(--grain), var(--aurora);
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(16px, 2.4vw, 28px) clamp(36px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: clamp(440px, calc(100svh - var(--header-h) - 34px - 72px), 600px);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.hero__kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(107, 114, 96, 0.15);
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

html[lang='ar'] .hero h1 {
  line-height: 1.35;
  letter-spacing: 0;
}

.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--sage-deep);
}

.hero__sub {
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 15.5px);
  margin-block: 18px 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: clamp(26px, 3.4vw, 40px);
  font-size: 12.5px;
  color: var(--ink-2);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  color: var(--sage-deep);
}

.hero__visual {
  position: relative;
  height: clamp(380px, 60vh, 560px);
}

.hero__card {
  position: absolute;
  inset: 0;
  inset-inline-start: 12%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.hero__card .ph {
  color: var(--ink);
}

.hero__card .ph svg {
  width: 56%;
  max-width: 300px;
  filter: drop-shadow(0 14px 24px rgba(15, 14, 13, 0.12));
}

.hero__float {
  position: absolute;
  z-index: 2;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__float--photo {
  width: 30%;
  aspect-ratio: 4/5;
  inset-inline-start: 0;
  bottom: 10%;
  border: 4px solid var(--cream);
}

.hero__float--note {
  inset-inline-start: 0;
  top: 12%;
  padding: 12px 16px;
  background: rgba(251, 249, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 2px;
  min-width: 170px;
}

.hero__float--note b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
}

.hero__float--note span {
  font-size: 12px;
  color: var(--muted);
}

.hero__badge {
  position: absolute;
  z-index: 3;
  width: 104px;
  height: 104px;
  bottom: -18px;
  inset-inline-end: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero__badge svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.hero__badge .mark {
  width: 46px;
  color: var(--cream);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- categories ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.cat {
  position: relative;
  display: block;
}

.cat .frame {
  aspect-ratio: 4/5;
}

.cat:hover .frame > img {
  transform: scale(1.05);
}

.cat__label {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cat__label h3 {
  font-size: 14.5px;
  font-weight: 500;
}

.cat__label span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- product card & grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 32px) clamp(12px, 1.4vw, 20px);
}

.grid--n1 {
  grid-template-columns: minmax(0, 300px);
}

.grid--n2 {
  grid-template-columns: repeat(2, minmax(0, 300px));
}

.grid--n3 {
  grid-template-columns: repeat(3, minmax(0, 300px));
}

.card {
  position: relative;
}

.card__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--beige);
}

.card__media {
  position: relative;
  aspect-ratio: 4/5;
  display: block;
}

.card__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease), transform 1.1s var(--ease);
}

.card__media .alt {
  opacity: 0;
}

.card:hover .card__media .alt {
  opacity: 1;
}

.card:hover .card__media > :first-child {
  transform: scale(1.04);
}

.badges {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  align-items: flex-start;
}

.badge {
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge--sale {
  background: var(--ink);
  color: var(--cream);
}

.badge--best {
  background: var(--sage-soft);
}

.card__actions {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover .card__actions,
.card:focus-within .card__actions {
  opacity: 1;
  transform: none;
}

.card__actions .btn {
  flex: 1;
  min-height: 38px;
  font-size: 12.5px;
  padding: 0 12px;
  --bg: rgba(251, 249, 246, 0.92);
  --fg: var(--ink);
  border-color: transparent;
  backdrop-filter: blur(10px);
}

.card__actions .icon-btn {
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--cream);
  flex: none;
}

.card__actions .icon-btn svg {
  width: 17px;
  height: 17px;
}

.card__info {
  padding: 12px 2px 0;
  display: grid;
  gap: 2px;
}

.card__info h3 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
}

.price {
  font-size: 13.5px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--ink-2);
}

.price s {
  color: var(--muted);
  font-size: 12.5px;
}

.price .now-sale {
  color: var(--danger);
  font-weight: 500;
}

.swatches {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.swatches i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

/* carousel */
.rail {
  --gap: clamp(12px, 1.4vw, 20px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  gap: var(--gap);
  overflow-x: auto;
  /* sideways only: without this the wheel scrolls the rail up and down */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.rail > * {
  scroll-snap-align: start;
}

/* cards in a rail fade in without rising, so nothing pokes out of it */
.rail > .reveal {
  transform: none;
}

.rail-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rail-progress {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 26px;
  position: relative;
  overflow: hidden;
}

.rail-progress span {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
  inset-inline-start: 0;
  width: 25%;
  transition: inset-inline-start 0.3s, width 0.3s;
}

[data-rail].static .rail-nav,
[data-rail].static .rail-progress {
  display: none;
}

/* ---------- coming soon ---------- */
.soon {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--grain), var(--aurora);
  border: 1px solid var(--line);
}

.soon > svg {
  width: 120px;
  color: var(--ink);
}

.soon h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.soon p {
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 52ch;
}

.soon .btn svg {
  width: 17px;
}

.soon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ---------- editorial (bento) ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}

.edit-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 34vw, 400px);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.edit-card--sage {
  background: var(--grain), var(--aurora-sage);
}

.edit-card--ink {
  background: var(--grain), var(--aurora-ink);
  color: var(--cream);
}

.edit-card__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: 240px;
  opacity: 0.6;
}

.edit-card__art {
  position: absolute;
  z-index: -1;
}

.edit-card--sage .edit-card__art {
  width: 38%;
  top: clamp(18px, 2.6vw, 30px);
  bottom: clamp(18px, 2.6vw, 30px);
  inset-inline-end: clamp(18px, 2.6vw, 30px);
}

.edit-card--sage .edit-card__art .frame {
  height: 100%;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.edit-card--ink .edit-card__art {
  width: min(56%, 260px);
  top: clamp(22px, 3vw, 36px);
  inset-inline-end: clamp(22px, 3vw, 36px);
  color: var(--cream);
  opacity: 0.92;
}

.edit-card .label {
  display: block;
  margin-bottom: 10px;
  opacity: 0.75;
}

.edit-card h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  max-width: 14ch;
}

.edit-card p {
  max-width: 340px;
  margin-block: 10px 20px;
  opacity: 0.8;
  font-size: 13.5px;
}

.edit-card--sage .edit-card__copy {
  max-width: 54%;
}

.edit-card .btn {
  align-self: flex-start;
}

/* ---------- promise ---------- */
.promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.promise li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}

.promise svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--sand-soft);
  color: var(--ink);
}

.promise h4 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.promise p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery--5 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery a {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--beige);
}

.gallery a:first-child {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery a:hover img {
  transform: scale(1.05);
}

/* ---------- faq ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.faq-wrap .section-head {
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.acc {
  display: grid;
  gap: 8px;
}

.acc details {
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acc details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 500;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary .pm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sand-soft);
  position: relative;
  flex: none;
  transition: background 0.25s, color 0.25s;
}

.acc summary .pm::before,
.acc summary .pm::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.acc summary .pm::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.35s var(--ease);
}

.acc details[open] .pm {
  background: var(--ink);
  color: var(--cream);
}

.acc details[open] .pm::after {
  transform: translate(-50%, -50%) rotate(0);
}

.acc .acc__body {
  padding: 0 18px 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  max-width: 64ch;
}

.acc--sm {
  gap: 6px;
}

.acc--sm summary {
  font-size: 14px;
  padding: 13px 16px;
}

.acc--sm .acc__body {
  padding: 0 16px 14px;
}

/* ---------- newsletter ---------- */
.news {
  padding-bottom: clamp(44px, 6vw, 84px);
}

.news__in {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px 40px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--grain), var(--aurora);
  border: 1px solid var(--line);
}

.news h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
}

.news p {
  color: var(--ink-2);
  margin-top: 6px;
  font-size: 13.5px;
}

.news form {
  display: flex;
  gap: 6px;
  padding: 5px;
  padding-inline-start: 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.news input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  min-width: 0;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding-block: clamp(40px, 5vw, 64px) 32px;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__brand > svg {
  width: 120px;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer__brand p {
  color: rgba(245, 240, 235, 0.6);
  max-width: 300px;
  font-size: 13px;
}

.footer__brand .footer__ayah {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: clamp(22px, 5.4vw, 30px);
  line-height: 2.2;
  color: #ddd3c5;
  max-width: 560px;
  margin-top: 22px;
  text-wrap: balance;
}

.footer h4 {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--sand);
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: rgba(245, 240, 235, 0.78);
  font-size: 13px;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: #fff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.socials a:hover {
  background: var(--cream);
  color: var(--ink);
}

.socials svg {
  width: 16px;
  height: 16px;
}

.footer__word {
  color: rgba(245, 240, 235, 0.06);
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}

.footer__word svg {
  width: 100%;
  height: auto;
  max-height: 110px;
}

.footer__bottom {
  border-top: 1px solid rgba(245, 240, 235, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 16px;
  font-size: 12px;
  color: rgba(245, 240, 235, 0.55);
}

.pay {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pay span {
  border-radius: 6px;
  padding: 3px 9px;
  background: rgba(245, 240, 235, 0.08);
  font-size: 11px;
  color: rgba(245, 240, 235, 0.8);
}

/* ---------- inner page header ---------- */
.page-head {
  padding-block: clamp(26px, 4vw, 48px) clamp(16px, 2vw, 24px);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 400;
}

.crumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.crumbs a:hover {
  color: var(--ink);
}

/* ---------- shop ---------- */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
  padding-bottom: 4px;
}

.chip {
  flex: none;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  background: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-block: 20px 26px;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  background: rgba(251, 249, 246, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

[dir='rtl'] .toolbar {
  padding: 8px 14px 8px 8px;
}

.toolbar__l,
.toolbar__r {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toolbar .count {
  color: var(--muted);
  font-size: 12.5px;
}

.toolbar button.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand-soft);
}

.toolbar button.filter-btn svg {
  width: 16px;
  height: 16px;
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 13px;
  padding-inline-end: 20px;
  cursor: pointer;
}

.select::after {
  content: '';
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.cols {
  display: flex;
  gap: 2px;
}

.cols button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0.4;
}

.cols button.on {
  opacity: 1;
  background: var(--sand-soft);
}

.cols svg {
  width: 16px;
  height: 16px;
}

.grid[data-cols='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid[data-cols='3'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fgroup {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.fgroup h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
}

.fopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fopts .chip {
  padding: 6px 13px;
  font-size: 12.5px;
}

.color-opt {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  position: relative;
}

.color-opt.on::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.range {
  display: grid;
  gap: 8px;
}

.range input[type='range'] {
  width: 100%;
  accent-color: var(--ink);
}

.range output {
  font-size: 12.5px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}

.no-results {
  text-align: center;
  padding: 64px 16px;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ---------- product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 64px);
  padding-block: 16px 32px;
  align-items: start;
}

.pdp__gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.pdp__gallery.single {
  grid-template-columns: 1fr;
}

.pdp__gallery.single .pdp__thumbs {
  display: none;
}

.pdp__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp__thumbs button {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-sm);
  opacity: 0.55;
  transition: opacity 0.2s, box-shadow 0.2s;
  background: var(--beige);
}

.pdp__thumbs button.on {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--ink);
}

.pdp__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__main {
  position: relative;
  aspect-ratio: 4/5;
  max-height: calc(100vh - var(--header-h) - 48px);
  margin-inline: auto;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--beige);
  cursor: zoom-in;
}

.pdp__main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
}

.pdp__main.zoom > img {
  transform: scale(1.8);
}

.pdp__info {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 18px;
}

.pdp__info h1 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
}

.pdp__info .price {
  font-size: 18px;
  color: var(--ink);
}

.pdp__info .price s {
  font-size: 14px;
}

.opts {
  display: grid;
  gap: 18px;
}

.opt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 8px;
}

.opt-head b {
  font-weight: 600;
}

.opt-head span {
  color: var(--muted);
}

.opt-head button {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sizes button {
  min-width: 52px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--f-label);
  font-size: 13.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sizes button:hover {
  border-color: var(--ink);
}

.sizes button.on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.sizes.err button {
  border-color: var(--danger);
  animation: shake 0.4s;
}

@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.err-text {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 6px;
}

.buy-row {
  display: flex;
  gap: 10px;
}

.buy-row .btn {
  flex: 1;
  min-height: 46px;
}

.perks {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--sand-soft);
}

.perks li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.perks svg {
  width: 17px;
  height: 17px;
  color: var(--sage-deep);
}

/* modal2 only ever holds the size guide */
#modal2 .modal__box {
  width: min(760px, 100%);
}

.size-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: var(--r-sm);
}

.size-chart__help {
  margin-top: 14px;
  font-size: 13.5px;
  text-align: center;
}

.size-chart__help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-chart__help svg {
  width: 16px;
}

.note.agree a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- checkout ---------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding-block: 8px 72px;
  align-items: start;
}

.form-sec {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.form-sec h2 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 14px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fields .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 11px 14px;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 14px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(15, 14, 13, 0.06);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

.field .err-text {
  display: none;
  margin: 0;
}

.field.invalid .err-text {
  display: block;
}

.pay-opts {
  display: grid;
  gap: 8px;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 14px;
}

.pay-opt:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 14, 13, 0.06);
}

.pay-opt input {
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
}

.pay-opt.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pay-opt .badge {
  margin-inline-start: auto;
  background: var(--sand-soft);
}

.summary {
  background: var(--paper);
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.summary h2 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.summary .line-item {
  grid-template-columns: 58px 1fr auto;
  padding-block: 12px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  padding-block: 6px;
  font-size: 13.5px;
}

.sum-row.total {
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 16px;
  font-weight: 600;
}

.note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* ---------- about ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px);
}

.about-hero h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 300;
  margin-block: 12px 20px;
}

.about-hero p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 14px;
  max-width: 54ch;
}

.about-art {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--r-lg);
  background: var(--grain), var(--aurora-ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-art svg {
  width: 52%;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.values li {
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: clamp(15px, 1.4vw, 18px);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.values li span {
  font-family: var(--f-label);
  font-size: 11.5px;
  color: var(--muted);
}

.policy {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 12px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.policy h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
}

.policy p {
  color: var(--ink-2);
  margin-bottom: 10px;
  font-size: 14px;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- photo framing (frameImage in app.js) ---------- */
/* close shapes: fill the frame, cropping from the bottom so faces stay */
.has-frame > img.is-fill {
  object-fit: cover;
  object-position: 50% 18%;
}

/* different shapes: the whole photo over a blurred copy of itself */
.has-frame > img.is-fit {
  object-fit: contain;
}

.has-fit {
  overflow: hidden;
  isolation: isolate;
}

.has-fit::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: var(--fit-bg) center / cover no-repeat;
  filter: blur(28px) saturate(1.05);
}

/* the product page is where she looks closely: a calm plain backdrop */
.pdp__main.has-fit::before {
  background: var(--beige);
  filter: none;
}

/* ---------- page loader: the leopard fills in while the page loads ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: var(--cream);
  transition: opacity 0.45s var(--ease), visibility 0.45s;
  animation: loader-failsafe 0s 8s forwards;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

.loader__mark {
  width: clamp(110px, 12vw, 150px);
  aspect-ratio: 274.8 / 134.5;
  background: linear-gradient(90deg, var(--ink) 50%, rgba(15, 14, 13, 0.12) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-mask: url('../logo/namera-leopard.svg') center / contain no-repeat;
  mask: url('../logo/namera-leopard.svg') center / contain no-repeat;
  animation: leopard-fill 1.5s cubic-bezier(0.65, 0, 0.35, 1) var(--phase, 0ms) infinite;
}

.loader__word {
  /* «نَمِرَة» cut from the wordmark (assets/logo/namera-arabic.svg) */
  width: clamp(64px, 7vw, 84px);
  aspect-ratio: 319.8 / 127.2;
  background: var(--ink);
  -webkit-mask: url('../logo/namera-arabic.svg') center / contain no-repeat;
  mask: url('../logo/namera-arabic.svg') center / contain no-repeat;
  animation: loader-breathe 1.5s ease-in-out var(--phase, 0ms) infinite;
}

.loader.done .loader__mark,
.loader.done .loader__word {
  animation: none;
}

@keyframes leopard-fill {
  0% {
    background-position: 100% 0;
  }
  70%,
  100% {
    background-position: 0 0;
  }
}

@keyframes loader-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@view-transition {
  navigation: auto;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .loader__mark {
    background: var(--ink);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  }

  .promise {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .mega__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
  }

  .header__in {
    grid-template-columns: auto 1fr auto;
  }

  .header__logo {
    width: 124px;
    justify-self: center;
  }

  .header__actions .hide-sm {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__visual {
    height: min(108vw, 440px);
    order: -1;
  }

  .hero__card {
    inset-inline-start: 0;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__cta,
  .hero__trust {
    justify-content: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero__float--note {
    top: auto;
    bottom: 16px;
    inset-inline-start: 16px;
  }

  .hero__float--photo {
    display: none;
  }

  .hero__badge {
    width: 84px;
    height: 84px;
    bottom: auto;
    top: 16px;
    inset-inline-end: 16px;
  }

  .hero__badge .mark {
    width: 36px;
  }

  .editorial,
  .faq-wrap,
  .news__in,
  .pdp,
  .checkout,
  .about-hero,
  .policy {
    grid-template-columns: 1fr;
  }

  .faq-wrap .section-head {
    position: static;
  }

  .edit-card--sage .edit-card__copy {
    max-width: 100%;
  }

  .edit-card--sage {
    padding-top: 0;
  }

  .edit-card--sage .edit-card__art {
    position: relative;
    width: 62%;
    inset: auto;
    margin: 22px auto 22px;
    aspect-ratio: 4/5;
    z-index: 0;
  }

  .pdp__info,
  .summary {
    position: static;
  }

  .checkout .summary {
    order: -1;
  }

  .qv {
    grid-template-columns: 1fr;
  }

  .qv__media {
    aspect-ratio: 4/3;
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }

  .soon {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery a:nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .grid,
  .grid[data-cols='3'],
  .grid--n3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--n1 {
    grid-template-columns: minmax(0, 300px);
  }

  .grid--n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last card stretches across so nothing sits alone */
  .grid--n3 > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 6px);
    justify-self: center;
    width: 100%;
  }

  .rail {
    grid-auto-columns: 68%;
  }

  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section-head .rail-nav {
    display: none;
  }

  .card__actions {
    opacity: 1;
    transform: none;
    inset-inline: auto 8px;
    bottom: 8px;
  }

  [dir='rtl'] .card__actions {
    inset-inline: 8px auto;
  }

  .card__actions .btn {
    display: none;
  }

  .card__actions .icon-btn {
    width: 34px;
    height: 34px;
  }

  .promise {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 10px;
  }

  .footer h4 {
    font-size: 12px;
  }

  .footer ul a {
    font-size: 11.5px;
    overflow-wrap: anywhere;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom .pay {
    justify-content: center;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .pdp__gallery {
    grid-template-columns: 1fr;
  }

  .pdp__thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .pdp__thumbs button {
    width: 60px;
    flex: none;
  }

  .toolbar .cols {
    display: none;
  }

  .buy-row {
    flex-wrap: wrap;
  }

  .wa-float {
    width: 46px;
    height: 46px;
    bottom: 14px;
    inset-inline-end: 14px;
  }

  .toast {
    white-space: normal;
    width: calc(100% - 32px);
    justify-content: center;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .news form {
    flex-wrap: wrap;
    border-radius: var(--r);
    padding: 6px;
  }

  .news form input {
    padding: 8px 10px;
  }

  .news form .btn {
    width: 100%;
  }
}
