/* ==========================================================================
   Le Bon Sommeil — storefront
   "Clair de lune": colours sampled from the hero film — night blue, pillow
   mist and the warm amber of a bedside lamp. Editorial serif type, hairlines
   instead of boxes, slow motion. Logical properties keep LTR and RTL in sync.
   ========================================================================== */

:root {
  --ink: #0f1b2d;
  --ink-2: #16263d;
  --night: #1b3150;
  --dusk: #2d4c70;
  --mist: #dce6ef;
  --mist-2: #edf2f6;
  --linen: #f5f2ec;
  --paper: #fbf9f5;
  --sand: #e9e2d6;
  --text: #2a3446;
  --muted: #6c7587;
  --line: rgba(15, 27, 45, 0.12);
  --line-2: rgba(15, 27, 45, 0.22);
  --line-light: rgba(220, 230, 239, 0.18);
  --amber: #e6a468;
  --amber-2: #c98443;
  --amber-soft: #f6e5d2;
  --whatsapp: #1fa855;
  --danger: #b4443a;
  --success: #2f7d5b;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.45);
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --header-h: 76px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:lang(ar) {
  --font-display: 'Amiri', 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

*,
*::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;
  background: var(--linen);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  color: var(--ink);
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

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

.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 40px, 720px);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.flip-ltr {
  transform: scaleX(-1);
}

[dir='rtl'] .flip-ltr {
  transform: none;
}

/* Arabic script is never letter-spaced, uppercased or slanted */
:lang(ar) .eyebrow,
:lang(ar) .hero-eyebrow,
:lang(ar) .product-card-cat,
:lang(ar) .footer-title,
:lang(ar) .badge,
:lang(ar) .thanks-sub,
:lang(ar) .finder-label,
:lang(ar) .cat-count,
:lang(ar) .hero-scroll {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html:lang(ar) em {
  font-style: normal;
}

/* ------------------------------ Type ------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--amber-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: var(--amber);
}

.section {
  padding-block: clamp(80px, 11vw, 150px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-title {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

:lang(ar) .section-title {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-sub {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ------------------------------ Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn .icon {
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

[dir='rtl'] .btn:hover .icon-arrow.flip-rtl {
  transform: scaleX(-1) translateX(4px);
}

.btn-lg {
  padding: 17px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: var(--linen);
}

.btn-primary:hover {
  background: var(--dusk);
}

.btn-amber,
.btn-gold {
  background: var(--amber);
  color: var(--ink);
}

.btn-amber:hover,
.btn-gold:hover {
  background: #efb47e;
}

.btn-outline {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--linen);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #179446;
}

.btn-whatsapp-outline {
  margin-top: 12px;
  border-color: rgba(31, 168, 85, 0.5);
  color: #138040;
}

.btn-whatsapp-outline:hover {
  border-color: var(--whatsapp);
  background: var(--whatsapp);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-text-light {
  position: relative;
  padding-block: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn-text-light::after,
.link-arrow::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

[dir='rtl'] .btn-text-light::after,
[dir='rtl'] .link-arrow::after {
  transform-origin: right;
}

.btn-text-light:hover::after,
.link-arrow:hover::after {
  transform: scaleX(0.35);
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.icon-btn:hover {
  background: rgba(127, 140, 160, 0.14);
}

/* ---------------------------- Announcement ---------------------------- */

.announce {
  background: var(--ink);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

.announce .container {
  padding-block: 9px;
}

.announce-star {
  color: var(--amber);
}

/* ------------------------------- Header ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(245, 242, 236, 0.84);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  color: var(--ink);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

/* Home: the header floats over the film, then turns solid on scroll */
.site-header--overlay {
  position: fixed;
  inset-inline: 0;
  top: 0;
}

.js .site-header--overlay:not(.is-scrolled):not(.is-nav-open) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
}

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

.header-start {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.logo-moon {
  fill: currentColor;
}

.logo-star {
  fill: var(--amber);
}

.logo-name {
  font-family: var(--font-logo);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a {
  position: relative;
  padding-block: 6px;
  color: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

[dir='rtl'] .site-nav > a::after {
  transform-origin: right;
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
  transform: scaleX(1);
}

.site-nav-head,
.site-nav-lang,
.nav-backdrop {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.lang-switch {
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s, background-color 0.3s;
}

.lang-switch:hover {
  opacity: 1;
}

.lang-switch[lang='ar'],
.site-nav-lang[lang='ar'],
.footer-lang[lang='ar'] {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

.lang-switch[lang='fr'],
.site-nav-lang[lang='fr'],
.footer-lang[lang='fr'] {
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

.cart-count {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

/* -------------------------------- Toast ------------------------------- */

.toast {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  inset-inline-end: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100% - 40px));
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--mist-2);
  font-size: 14.5px;
  animation: toast-in 0.5s var(--ease) both;
}

.toast .icon {
  flex: none;
  color: var(--amber);
}

.toast a {
  color: var(--amber);
  font-weight: 600;
}

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

.toast-error .icon {
  color: #fff;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s, transform 0.4s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ============================ HOME: hero film ============================ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(620px, 100svh);
  overflow: hidden;
  background: var(--ink) url('/video/hero-poster.webp') center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: hero-drift 30s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12) translate3d(-1%, -1%, 0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0) 26%),
    linear-gradient(0deg, rgba(10, 18, 32, 0.92) 0%, rgba(10, 18, 32, 0.5) 34%, rgba(10, 18, 32, 0) 64%),
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 40%, rgba(10, 18, 32, 0.35) 100%);
}

.hero-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  padding-block: calc(var(--header-h) + 40px) clamp(48px, 7vw, 88px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--mist);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(230, 164, 104, 0.6);
  animation: glow 3.2s ease-in-out infinite;
}

@keyframes glow {
  50% {
    box-shadow: 0 0 0 7px rgba(230, 164, 104, 0);
  }
}

.hero-title {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(54px, 9.4vw, 148px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.hero-line {
  display: block;
}

.hero-title em {
  color: #f4cfa6;
  font-style: italic;
}

:lang(ar) .hero-title {
  font-size: clamp(42px, 6.8vw, 104px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.js .hero-line {
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
  animation: line-in 1.6s var(--ease) forwards;
}

.js .hero-line + .hero-line {
  animation-delay: 0.45s;
}

@keyframes line-in {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-sub {
  max-width: 440px;
  margin: 0;
  color: rgba(237, 242, 246, 0.85);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero-toggle {
  position: absolute;
  bottom: 20px;
  inset-inline-start: max(20px, (100vw - 1280px) / 2);
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(10, 18, 32, 0.25);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.js .hero-toggle {
  display: grid;
}

.hero-toggle-pause {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}

.hero-toggle.is-paused .hero-toggle-pause {
  width: 0;
  height: 0;
  border-block: 7px solid transparent;
  border-inline-start: 11px solid currentColor;
  border-inline-end: 0;
  margin-inline-start: 3px;
}

[dir='rtl'] .hero-toggle.is-paused .hero-toggle-pause {
  transform: scaleX(-1);
  margin-inline-start: 0;
  margin-inline-end: 3px;
}

.hero-scroll {
  position: absolute;
  top: 50%;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll i {
  position: relative;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.hero-scroll i::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -40%;
  height: 40%;
  background: #fff;
  animation: scroll-cue 2.4s var(--ease) infinite;
}

[dir='rtl'] .hero-scroll {
  right: auto;
  left: 22px;
}

:lang(ar) .hero-scroll span {
  display: none;
}

@keyframes scroll-cue {
  to {
    top: 100%;
  }
}

/* ------------------------------ Ribbon ------------------------------ */

.ribbon {
  overflow: hidden;
  padding-block: 22px;
  background: var(--ink);
  color: var(--mist);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon 46s linear infinite;
}

.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}

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

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

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

.ribbon-list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ribbon-list li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic;
  white-space: nowrap;
}

:lang(ar) .ribbon-list li {
  font-style: normal;
}

.ribbon-list li::after {
  content: '✦';
  margin-inline: 34px;
  color: var(--amber);
  font-size: 0.55em;
  font-style: normal;
}

/* ----------------------------- Manifesto ----------------------------- */

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.moon {
  position: relative;
  width: min(100%, 440px);
  margin: 0;
  justify-self: center;
}

.moon img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(27, 49, 80, 0.6), 0 0 120px -10px rgba(230, 164, 104, 0.35);
  animation: breathe 7s ease-in-out infinite;
}

.moon::before {
  content: '';
  position: absolute;
  inset: -22px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}

.moon::after {
  content: '';
  position: absolute;
  top: 9%;
  inset-inline-end: 4%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 24px 4px rgba(230, 164, 104, 0.6);
}

@keyframes breathe {
  50% {
    transform: scale(1.025);
  }
}

.manifesto-text {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.manifesto-text em {
  color: var(--dusk);
  font-style: italic;
}

:lang(ar) .manifesto-text {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.6;
  letter-spacing: 0;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.promises li {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.promise-num {
  color: var(--amber-2);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
}

.promises h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.promises p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* --------------------------- Category index --------------------------- */

.index-section {
  padding-top: 0;
  overflow-x: clip;
}

.cat-index {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line-2);
  list-style: none;
}

.cat-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 300px) 120px 40px;
  align-items: center;
  gap: 24px;
  padding-block: clamp(20px, 2.6vw, 34px);
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
}

.cat-row::before {
  content: '';
  position: absolute;
  inset: 0 -20px;
  z-index: -1;
  background: var(--mist-2);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.cat-num {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
}

.cat-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.6s var(--ease), color 0.4s;
}

:lang(ar) .cat-name {
  font-size: clamp(32px, 4.6vw, 66px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.cat-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.cat-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: end;
  text-transform: uppercase;
}

.cat-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.cat-peek {
  position: absolute;
  top: 50%;
  inset-inline-start: 46%;
  z-index: 2;
  width: clamp(160px, 16vw, 230px);
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -50%) rotate(-5deg) scale(0.85);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

@media (hover: hover) {
  .cat-row:hover::before {
    opacity: 1;
  }

  .cat-row:hover .cat-name {
    color: var(--dusk);
    transform: translateX(14px);
  }

  [dir='rtl'] .cat-row:hover .cat-name {
    transform: translateX(-14px);
  }

  .cat-row:hover .cat-arrow {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--linen);
  }

  .cat-row:hover .cat-peek {
    opacity: 1;
    transform: translate(0, -50%) rotate(-3deg) scale(1);
  }
}

/* ---------------------------- Product rail ---------------------------- */

.index-section + .rail-section {
  padding-top: clamp(24px, 4vw, 48px);
}

.rail-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-controls .link-arrow {
  margin-inline-end: 14px;
}

.rail-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.rail-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--linen);
}

.rail-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, (100vw - 1280px) / 2);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  margin: 0;
  padding: 0 max(20px, (100vw - 1280px) / 2) 8px;
  list-style: none;
}

.rail-item {
  width: clamp(250px, 27vw, 370px);
  scroll-snap-align: start;
}

/* ---------------------------- Product card ---------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--mist-2);
}

.product-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}

.product-card-media img.alt {
  opacity: 0;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-card:hover .product-card-media img.alt {
  opacity: 1;
}

.product-card-go {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.product-card:hover .product-card-go {
  opacity: 1;
  transform: none;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, var(--paper), var(--mist));
}

.placeholder svg {
  width: 72%;
  height: auto;
}

.badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.badge-muted {
  background: rgba(15, 27, 45, 0.8);
  color: #fff;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 2px 0;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.product-card-cat {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

:lang(ar) .product-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.product-card-title a {
  text-decoration: none;
}

.product-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.product-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: auto 0 0;
  padding-top: 2px;
}

.product-card-price .from {
  color: var(--muted);
  font-size: 13px;
}

.product-card-price strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

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

/* Firmness meter */
.firmness {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 13px;
}

.firmness-label {
  color: var(--ink);
  font-weight: 600;
}

.firmness-bar {
  display: inline-flex;
  gap: 3px;
}

.firmness-bar i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
}

.firmness-bar i.on {
  background: var(--dusk);
}

.firmness-compact .firmness-value {
  display: none;
}

/* ------------------------------- Finder ------------------------------- */

.finder {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
  isolation: isolate;
}

.finder-glow {
  position: absolute;
  top: -30%;
  inset-inline-end: -10%;
  z-index: -1;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 164, 104, 0.22), rgba(45, 76, 112, 0.25) 40%, transparent 70%);
}

.finder::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.08;
}

.finder .section-title {
  color: #fff;
}

.finder .section-sub {
  margin-top: 20px;
  color: rgba(220, 230, 239, 0.75);
}

.finder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.finder-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.finder-option {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: rgba(220, 230, 239, 0.7);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.finder-option:hover {
  border-color: rgba(220, 230, 239, 0.45);
  color: #fff;
}

.sleep-icon {
  width: 84px;
  height: auto;
}

#sleep-side:checked ~ .finder-options [for='sleep-side'],
#sleep-back:checked ~ .finder-options [for='sleep-back'],
#sleep-stomach:checked ~ .finder-options [for='sleep-stomach'] {
  border-color: var(--amber);
  background: rgba(230, 164, 104, 0.1);
  color: #fff;
}

#sleep-side:checked ~ .finder-options [for='sleep-side'] .sleep-icon,
#sleep-back:checked ~ .finder-options [for='sleep-back'] .sleep-icon,
#sleep-stomach:checked ~ .finder-options [for='sleep-stomach'] .sleep-icon {
  color: var(--amber);
}

#sleep-side:focus-visible ~ .finder-options [for='sleep-side'],
#sleep-back:focus-visible ~ .finder-options [for='sleep-back'],
#sleep-stomach:focus-visible ~ .finder-options [for='sleep-stomach'] {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.finder-panel {
  display: none;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-light);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.03);
  animation: panel-in 0.6s var(--ease);
}

#sleep-side:checked ~ .finder-panels .finder-panel-side,
#sleep-back:checked ~ .finder-panels .finder-panel-back,
#sleep-stomach:checked ~ .finder-panels .finder-panel-stomach {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.finder-label {
  margin: 0;
  color: rgba(220, 230, 239, 0.6);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.finder-range {
  margin: 6px 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
}

.finder-range small {
  color: rgba(220, 230, 239, 0.55);
  font-family: var(--font-body);
  font-size: 15px;
}

.finder-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.finder-meter i {
  height: 6px;
  border-radius: 3px;
  background: rgba(220, 230, 239, 0.15);
}

.finder-meter i.on {
  background: linear-gradient(90deg, #f0c08f, var(--amber));
  box-shadow: 0 0 18px rgba(230, 164, 104, 0.5);
}

.finder-scale {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  color: rgba(220, 230, 239, 0.5);
  font-size: 12px;
}

.finder-text {
  margin: 22px 0 24px;
  color: rgba(237, 242, 246, 0.85);
  font-size: 16.5px;
}

.finder-picks {
  display: grid;
  gap: 2px;
  margin: 12px 0 26px;
  padding: 0;
  list-style: none;
}

.finder-picks a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
  color: #fff;
  text-decoration: none;
}

.finder-pick-img {
  overflow: hidden;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--night);
}

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

.finder-pick-name {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
}

:lang(ar) .finder-pick-name {
  font-size: 17px;
  font-weight: 700;
}

.finder-pick-price {
  color: rgba(220, 230, 239, 0.75);
  font-size: 14px;
}

.finder-picks a:hover .finder-pick-name {
  color: var(--amber);
}

/* ------------------------------ Closing ------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 14vw, 190px);
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.92), rgba(15, 27, 45, 0.7) 50%, rgba(15, 27, 45, 0.95)),
    url('/video/hero-poster.webp') center 40% / cover no-repeat;
  color: var(--mist);
  text-align: center;
}

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

.closing-title {
  max-width: 16ch;
  margin: 22px 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(46px, 7.4vw, 112px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

:lang(ar) .closing-title {
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.closing-text {
  max-width: 520px;
  margin: 0 0 34px;
  color: rgba(220, 230, 239, 0.8);
  font-size: 17px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------------------------- Scroll reveal --------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ========================== Inner page header ========================== */

.page-head {
  padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-top: 26px;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

:lang(ar) .page-title {
  font-size: clamp(38px, 5.4vw, 80px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.page-title-dark {
  margin: 0 0 32px;
  font-size: clamp(44px, 6vw, 84px);
}

:lang(ar) .page-title-dark {
  font-size: clamp(34px, 4.4vw, 60px);
}

.page-sub {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.breadcrumb a {
  text-decoration: none;
}

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

.breadcrumb [aria-current] {
  color: var(--ink);
}

/* ------------------------------- Catalog ------------------------------ */

.catalog {
  padding-block: 28px clamp(80px, 10vw, 140px);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

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

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--linen);
}

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

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  transition: border-color 0.3s;
}

.search-field:focus-within {
  border-color: var(--ink);
}

.search-field input {
  min-width: 190px;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.select-field select {
  padding-block: 12px;
  padding-inline: 18px 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f1b2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

[dir='rtl'] .select-field select {
  background-position: left 16px center;
}

.results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 26px;
}

.results-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.filter-chip:hover {
  background: var(--amber);
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  text-align: center;
}

.empty-state .placeholder {
  position: relative;
  inset: auto;
  width: 220px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 18px;
  border-radius: var(--radius);
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--dusk);
}

/* ------------------------------- Product ------------------------------ */

.product-page {
  padding-block: 28px 80px;
}

.product-page > .breadcrumb {
  margin-bottom: 28px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(36px, 5vw, 80px);
}

.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 4px);
  background: var(--mist-2);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s;
}

.gallery-main img.is-swapping {
  opacity: 0.2;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 88px));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--mist-2);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
}

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

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--ink);
  opacity: 1;
}

.product-info {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.product-title {
  margin: 14px 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

:lang(ar) .product-title {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.price-block .from {
  color: var(--muted);
  font-size: 14px;
}

.price-now {
  color: var(--ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.price-old {
  color: var(--muted);
  font-size: 18px;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.stock .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.stock.in {
  color: var(--success);
}

.stock.in .dot {
  background: #3aa76d;
  box-shadow: 0 0 0 4px rgba(58, 167, 109, 0.16);
}

.stock.out {
  color: var(--danger);
}

.stock.out .dot {
  background: var(--danger);
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 22px 0 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.spec strong {
  color: var(--ink);
}

.spec .icon {
  color: var(--dusk);
}

.size-picker {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.size-picker legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 8px;
}

.size-option {
  position: relative;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.size-option span:hover {
  border-color: var(--ink);
}

.size-option b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: start;
}

.size-option small {
  color: var(--muted);
  font-size: 13px;
}

.size-option input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
}

.size-option input:checked + span b {
  color: var(--linen);
}

.size-option input:checked + span small {
  color: var(--amber);
}

.size-option input:focus-visible + span {
  outline: 2px solid var(--amber-2);
  outline-offset: 2px;
}

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

.qty {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--mist-2);
}

.qty input {
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-sm .qty-btn {
  width: 32px;
  height: 32px;
}

.qty-sm input {
  width: 32px;
  font-size: 15px;
}

.assurances {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.assurances li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}

.assurances .icon {
  color: var(--dusk);
}

.product-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 40px;
  border-top: 1px solid var(--line-2);
}

.product-details > :only-child {
  grid-column: 1 / -1;
}

.details-card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
}

:lang(ar) .details-card h2 {
  font-size: 28px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.feature-list .check {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--dusk);
}

.prose {
  font-size: 17px;
}

.prose p {
  margin: 0 0 1em;
  white-space: pre-line;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-tint {
  background: var(--mist-2);
}

/* -------------------------------- Cart -------------------------------- */

.cart-page {
  padding-block: clamp(36px, 5vw, 64px) clamp(80px, 10vw, 130px);
}

.alert {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 12px;
}

.alert p {
  margin: 0;
}

.alert-error {
  border: 1px solid #f0cdc7;
  background: #fbeae7;
  color: #8a2f26;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.cart-items {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-item-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: var(--mist-2);
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-item-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.1;
  text-decoration: none;
}

:lang(ar) .cart-item-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.cart-item-size,
.cart-item-unit {
  color: var(--muted);
  font-size: 14px;
}

.cart-item-total {
  min-width: 96px;
  color: var(--ink);
  font-weight: 600;
  text-align: end;
}

.cart-item-remove {
  color: var(--muted);
}

.cart-item-remove:hover {
  background: #fbeae7;
  color: var(--danger);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.js .cart-actions [data-cart-update-btn] {
  display: none;
}

.checkout-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 30px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--ink);
  color: var(--mist);
}

.checkout-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}

:lang(ar) .checkout-card h2 {
  font-size: 26px;
  font-weight: 700;
}

.summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary dt {
  color: rgba(220, 230, 239, 0.7);
}

.summary dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.summary-note {
  justify-content: flex-start !important;
  gap: 8px !important;
  font-size: 13px;
}

.summary-note dt {
  color: var(--amber);
}

.summary-note dd {
  color: rgba(220, 230, 239, 0.7);
  font-weight: 400;
}

.summary-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.summary-total dt {
  color: #fff;
  font-weight: 600;
}

.summary-total dd {
  font-size: 26px;
}

.checkout-text {
  margin: 18px 0;
  color: rgba(220, 230, 239, 0.7);
  font-size: 14px;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

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

.field > span {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.checkout-card .field input,
.checkout-card .field textarea {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(230, 164, 104, 0.22);
}

[dir='rtl'] input[dir='ltr'] {
  text-align: right;
}

.checkout-form .btn {
  margin-top: 6px;
}

/* ------------------------------- Thanks ------------------------------- */

.thanks {
  padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 130px);
}

.thanks-card {
  text-align: center;
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--dusk);
  box-shadow: 0 0 60px -6px rgba(230, 164, 104, 0.6);
}

.thanks .page-title-dark {
  margin-bottom: 14px;
}

.thanks-text {
  max-width: 520px;
  margin: 0 auto;
  font-size: 17px;
}

.thanks-sub {
  margin: 40px 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.order-lines {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
  list-style: none;
  text-align: start;
}

.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.order-lines li strong {
  white-space: nowrap;
}

.order-lines .order-lines-total {
  color: var(--ink);
  font-weight: 600;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* -------------------------------- Error ------------------------------- */

.error-page {
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
}

.error-page p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.error-art {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  color: var(--dusk);
}

.error-art .z {
  position: absolute;
  color: var(--amber-2);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  animation: floaty 3s ease-in-out infinite;
}

.error-art .z1 {
  top: -4px;
  inset-inline-end: -22px;
  font-size: 28px;
}

.error-art .z2 {
  top: -26px;
  inset-inline-end: -40px;
  font-size: 21px;
  animation-delay: 0.4s;
}

.error-art .z3 {
  top: -44px;
  inset-inline-end: -54px;
  font-size: 15px;
  animation-delay: 0.8s;
}

@keyframes floaty {
  50% {
    transform: translateY(-6px);
    opacity: 0.6;
  }
}

/* -------------------------------- Footer ------------------------------ */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 110px);
  background: var(--ink);
  color: rgba(220, 230, 239, 0.7);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer-lede {
  max-width: 380px;
  margin: 0 0 24px;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
}

:lang(ar) .footer-lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.7;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

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

.footer-title {
  margin: 6px 0 18px;
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

:lang(ar) .footer-title {
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(237, 242, 246, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.footer-wordmark {
  margin: 0 0 -0.12em;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(220, 230, 239, 0.9), rgba(220, 230, 239, 0.08) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-logo);
  font-size: clamp(64px, 15.6vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 13.5px;
}

.footer-bottom p {
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
}

/* ------------------------------ Responsive ---------------------------- */

@media (max-width: 1180px) {
  .cat-row {
    grid-template-columns: 52px minmax(0, 1fr) 120px 40px;
  }

  .cat-desc {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    gap: 8px;
  }

  .nav-toggle {
    display: inline-grid;
    margin-inline-start: -10px;
  }

  .logo-name {
    font-size: 25px;
  }

  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--linen);
  }

  .site-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(86vw, 360px);
    padding: 18px 24px 28px;
    overflow-y: auto;
    background: var(--linen);
    box-shadow: var(--shadow);
    color: var(--ink);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0.5s;
  }

  [dir='rtl'] .site-nav {
    transform: translateX(105%);
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .site-nav > a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
  }

  :lang(ar) .site-nav > a {
    font-size: 24px;
    font-weight: 700;
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .site-nav .site-nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    border: 0;
    font-family: var(--font-body);
    font-size: 16px;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: block;
    background: rgba(10, 18, 32, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }

  .nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-scroll {
    display: none;
  }

  .hero-toggle {
    top: calc(var(--header-h) + 14px);
    bottom: auto;
    margin: 0;
  }

  .manifesto-grid,
  .finder-grid,
  .product-layout,
  .product-details,
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .moon {
    width: min(72%, 340px);
  }

  .product-info,
  .checkout-card {
    position: static;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 32px, 1280px);
  }

  .header-actions .lang-switch {
    display: none;
  }

  .hero-visual {
    object-position: 46% 50%;
  }

  .hero-foot {
    padding-top: 22px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .ribbon {
    padding-block: 16px;
  }

  .promises {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cat-row {
    grid-template-columns: 34px minmax(0, 1fr) 56px;
    gap: 14px;
  }

  .cat-num {
    font-size: 17px;
  }

  .cat-count,
  .cat-arrow {
    display: none;
  }

  .cat-peek {
    position: static;
    width: 56px;
    border-radius: 8px;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .rail-controls .rail-btn {
    display: none;
  }

  .rail-item {
    width: 74vw;
  }

  .finder-options {
    gap: 8px;
  }

  .finder-option {
    padding: 16px 6px 14px;
    font-size: 13px;
  }

  .sleep-icon {
    width: 64px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .product-card-title {
    font-size: 21px;
  }

  :lang(ar) .product-card-title {
    font-size: 16px;
  }

  .product-card-cat {
    font-size: 10px;
  }

  .product-card .firmness {
    display: none;
  }

  .product-card-go {
    display: none;
  }

  .catalog-filters,
  .search-field {
    width: 100%;
  }

  .search-field {
    flex: 1 1 100%;
  }

  .search-field input {
    flex: 1;
    min-width: 0;
  }

  .select-field {
    flex: 1;
  }

  .select-field select {
    width: 100%;
  }

  .chips {
    flex-wrap: nowrap;
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chip {
    flex: none;
  }

  .buy-row {
    flex-direction: column;
  }

  .qty {
    align-self: flex-start;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      'media info remove'
      'media qty total';
    gap: 8px 14px;
  }

  .cart-item-media {
    grid-area: media;
    width: 76px;
    align-self: start;
  }

  .cart-item-info {
    grid-area: info;
  }

  .cart-item-qty {
    grid-area: qty;
  }

  .cart-item-total {
    grid-area: total;
    min-width: 0;
  }

  .cart-item-remove {
    grid-area: remove;
    align-self: start;
  }

  .checkout-card {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .toast {
    inset-inline: 16px;
    max-width: none;
  }
}

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

  .ribbon-track {
    animation: none !important;
  }

  .js [data-reveal],
  .js .hero-line {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ======================= Categories menu (header) ======================= */

.nav-menu {
  position: relative;
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.nav-menu-caret {
  transition: transform 0.3s var(--ease);
}

.nav-panel {
  position: absolute;
  top: 100%;
  inset-inline-start: -24px;
  z-index: 60;
  width: min(560px, 80vw);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--paper);
  box-shadow: 0 30px 60px -24px rgba(15, 27, 45, 0.35);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

/* invisible bridge so the panel does not close while the pointer travels to it */
.nav-panel::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -16px;
  height: 16px;
}

@media (min-width: 961px) {
  .nav-panel {
    margin-top: 14px;
  }

  .nav-menu:hover .nav-panel,
  .nav-menu:focus-within .nav-panel,
  .nav-menu.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu:hover .nav-menu-caret,
  .nav-menu.is-open .nav-menu-caret {
    transform: rotate(180deg);
  }

  .nav-menu.is-closed .nav-panel {
    opacity: 0;
    visibility: hidden;
  }
}

.nav-panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-panel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s;
}

.nav-panel-link:hover,
.nav-panel-link.is-active {
  background: var(--mist-2);
}

.nav-panel-thumb {
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 56px;
  border-radius: 9px;
  background: var(--night);
  color: var(--mist);
}

.nav-panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-panel-text {
  display: grid;
  min-width: 0;
}

.nav-panel-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:lang(ar) .nav-panel-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

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

.nav-panel-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-panel-all:hover {
  color: var(--amber-2);
}

/* In the mobile drawer every category is listed directly. */
@media (max-width: 960px) {
  .nav-menu {
    border-bottom: 1px solid var(--line);
  }

  .nav-menu-btn {
    display: none;
  }

  .nav-panel {
    position: static;
    width: auto;
    margin: 0;
    padding: 12px 0 14px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-panel::before {
    content: none;
  }

  .nav-panel-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nav-panel-link {
    padding: 6px 0;
  }

  .nav-panel-link:hover,
  .nav-panel-link.is-active {
    background: none;
  }

  .nav-panel-link.is-active .nav-panel-name {
    color: var(--dusk);
  }

  .nav-panel-name {
    font-size: 24px;
  }

  .nav-panel-thumb {
    width: 40px;
    height: 46px;
  }

  .nav-panel-all {
    display: none;
  }
}

/* ============================ WhatsApp bubble ============================ */

.wa-bubble {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom));
  inset-inline-end: 22px;
  z-index: 55;
  display: flex;
  align-items: center;
  text-decoration: none;
  animation: wa-in 0.7s 0.6s var(--ease) both;
}

@keyframes wa-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.8);
  }
}

.wa-bubble-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 16px 32px -12px rgba(18, 140, 70, 0.7), 0 4px 12px rgba(15, 27, 45, 0.15);
  color: #fff;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}

.wa-bubble-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #25d366;
  border-radius: 50%;
  animation: wa-pulse 2.8s ease-out 1.6s infinite;
}

@keyframes wa-pulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.65);
  }
}

.wa-bubble:hover .wa-bubble-icon,
.wa-bubble:focus-visible .wa-bubble-icon {
  background: #1fbf5b;
  transform: scale(1.07);
}

.wa-bubble-label {
  margin-inline-end: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 12px 30px -12px rgba(15, 27, 45, 0.4);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

[dir='rtl'] .wa-bubble-label {
  transform: translateX(-10px);
}

.wa-bubble:hover .wa-bubble-label,
.wa-bubble:focus-visible .wa-bubble-label,
.wa-bubble.is-teasing .wa-bubble-label {
  opacity: 1;
  transform: none;
}

.wa-bubble:focus-visible {
  outline: none;
}

.wa-bubble:focus-visible .wa-bubble-icon {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Hidden while the mobile menu is open */
.nav-open .wa-bubble {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .wa-bubble {
    bottom: calc(16px + env(safe-area-inset-bottom));
    inset-inline-end: 16px;
  }

  .wa-bubble-icon {
    width: 56px;
    height: 56px;
  }

  /* keep the footer's last line clear of the bubble */
  .footer-bottom {
    padding-bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-bubble-icon::before {
    animation: none;
    opacity: 0;
  }
}
