/* ==========================================================================
   PALA CHIC — landing page
   Mobile-first. RTL by default: layout uses logical properties
   (inline-start = right in Arabic) so it mirrors correctly.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */

:root {
  /* Brand */
  --c-green: #002907;
  --c-green-hover: #0c3d15;
  --c-green-soft: #2f5a37;   /* secondary green text on light backgrounds */
  --c-green-tint: #eef3ee;   /* selected states, soft panels */
  --c-green-line: #c6d6c8;
  --c-white: #ffffff;
  --c-ivory: #f9f7f3;

  /* Neutrals */
  --c-ink: #142019;
  --c-muted: #5b685f;
  --c-line: #e4e7e2;
  --c-on-green: #ffffff;
  --c-on-green-muted: rgb(255 255 255 / .78);
  --c-on-green-accent: #cfe0d1;
  --c-error: #b42318;

  /* Type */
  --font-display: "El Messiri", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fr: "Cormorant Garamond", "Times New Roman", serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(0 41 7 / .06);
  --shadow: 0 18px 40px -24px rgb(0 41 7 / .35);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .22s;

  /* Layout */
  --container: 1160px;
  --gutter: 16px;
  --header-h: 64px;
  --scroll-offset: 12px;
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
    --scroll-offset: calc(var(--header-h) + 16px); /* header is sticky on desktop */
  }
}

/* ---- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--scroll-offset);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-green);
}

p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

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

/* French accents: elegant italic serif, slightly larger to match Arabic x-height. */
[lang="fr"] {
  font-family: var(--font-fr);
  font-style: italic;
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: .01em;
}

.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money__cur { font-size: .72em; font-weight: 700; letter-spacing: .04em; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-green);
  color: var(--c-on-green);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.img-missing {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(135deg, var(--c-green-tint), var(--c-ivory));
}

.logo-text {
  font-family: var(--font-fr);
  font-weight: 600;
  font-style: normal;
  letter-spacing: .12em;
  color: var(--c-green);
}

/* ---- Shared components --------------------------------------------------- */

.eyebrow {
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--c-green-soft);
}

.section-title { font-size: var(--fs-h2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--c-green); color: var(--c-on-green); }
.btn--primary:hover { background: var(--c-green-hover); box-shadow: 0 12px 24px -14px rgb(0 41 7 / .75); }

.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; }

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

.site-header {
  position: relative;
  z-index: 20;
  background: rgb(255 255 255 / .94);
  border-bottom: 1px solid var(--c-line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(10px); }
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: inline-flex; border-radius: 6px; }
.brand__logo { width: auto; height: 38px; }

.site-nav { display: none; }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .brand__logo { height: 46px; }

  .site-nav {
    display: flex;
    gap: 2.25rem;
    margin-inline: auto 2rem;
  }
  .site-nav a {
    position: relative;
    padding-block: .25rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--c-ink);
    transition: color var(--dur) var(--ease);
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform var(--dur) var(--ease);
  }
  .site-nav a:hover { color: var(--c-green); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 1rem 2.75rem;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 1.5rem;
}

.hero__media {
  position: relative;
  order: -1; /* photo first on phones */
}

.hero__frame {
  position: relative;
  height: clamp(230px, 40svh, 440px);
  overflow: hidden;
  /* Soft arch: elliptical top, gently rounded base. */
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 26% 26% var(--radius-lg) var(--radius-lg);
  background: var(--c-ivory);
}

.hero__frame picture,
.hero__img {
  width: 100%;
  height: 100%;
}
.hero__img {
  object-fit: cover;
  object-position: 50% 48%;
}

/* Sits over the coat (inline-end), not over the gloves. */
.hero__badge {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .85rem .4rem .7rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .94);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
}

.dots { display: inline-flex; }
.dots i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dot);
  border: 1.5px solid var(--c-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .14);
}
.dots i + i { margin-inline-start: -5px; }

/* Phones: price + button right after the product name, so they sit above the fold;
   the description follows. Desktop restores source order. */
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__lead { order: 1; margin-top: 1.1rem; }
.hero__notes { order: 2; }

.hero__title {
  margin-block: .3rem .55rem;
  font-size: var(--fs-h1);
  line-height: 1.3;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(transparent 64%, rgb(201 174 146 / .38) 0);
  padding-inline: .1em;
}

.hero__product {
  font-weight: 700;
  color: var(--c-green);
}
.hero__product-fr { color: var(--c-green-soft); font-weight: 600; }

.hero__lead {
  max-width: 40ch;
  color: var(--c-muted);
  font-size: var(--fs-md);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
  margin-top: 1.1rem;
}

.hero__from { display: grid; line-height: 1.25; }
.hero__from-label { font-size: var(--fs-xs); color: var(--c-muted); }
.hero__from .money { font-size: 1.5rem; font-weight: 800; color: var(--c-green); }

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.hero__notes li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__notes .icon { color: var(--c-green); }

/* Tablets up: text beside an arched portrait photo (a full-width strip would crop the face). */
@media (min-width: 600px) {
  .hero { padding-block: 2.5rem 3.5rem; }

  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 2rem;
  }

  .hero__media { order: 0; }

  .hero__frame {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg);
  }

  .hero__lead,
  .hero__notes { order: 0; }
  .hero__lead { margin-top: .3rem; }
  .hero__cta { margin-top: 1.5rem; }
}

@media (min-width: 900px) {
  .hero { padding-block: 3.5rem 5rem; }

  .hero__inner { gap: 4.5rem; }

  .hero__media {
    max-width: 500px;
    justify-self: center;
    width: 100%;
  }

  /* Thin offset arch outline — a quiet jewellery-box frame. */
  .hero__media::before {
    content: "";
    position: absolute;
    inset: -14px 14px 14px -14px;
    border: 1px solid var(--c-green-line);
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg);
    pointer-events: none;
  }

  .hero__badge { inset-inline-end: 20px; bottom: 20px; }
  .hero__lead { font-size: var(--fs-lg); }
}

/* ---- Shop: gallery + buy box ---------------------------------------------- */

.shop {
  padding-block: 2.5rem 3.5rem;
  background: var(--c-ivory);
  border-block: 1px solid var(--c-line);
}

.shop__grid {
  display: grid;
  gap: 2rem;
}

/* Tablets: single column, but keep the 3:4 gallery from growing taller than the screen. */
@media (min-width: 600px) and (max-width: 899px) {
  .gallery { width: min(100%, 480px); margin-inline: auto; }
}

@media (min-width: 900px) {
  .shop { padding-block: 4.5rem; }
  .shop__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 3.5rem;
  }
  .gallery {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (min-width: 1200px) {
  .shop__grid { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 4.5rem; }
}

/* Gallery */

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 3 / 4; /* matches the photos, so nothing is cropped */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery__slide picture,
.gallery__img {
  width: 100%;
  height: 100%;
}
.gallery__img { object-fit: cover; }

.gallery__tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: .2rem .8rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .92);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
}
.gallery__tag [lang="fr"] { font-weight: 600; color: var(--c-muted); }

.gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: .8rem;
}

.gallery__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--c-white);
  opacity: .62;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .9; }
.gallery__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--c-green);
  box-shadow: inset 0 0 0 2px var(--c-white);
}

/* Buy box */

.buybox {
  display: grid;
  gap: 2rem;
}

.buybox__title { font-size: var(--fs-h2); margin-top: .1rem; }

.buybox__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .9rem;
  margin-top: .35rem;
}
.buybox__amount { font-size: 2rem; font-weight: 800; color: var(--c-green); line-height: 1.3; }
.buybox__compare { color: var(--c-muted); font-size: var(--fs-md); }
.buybox__unit { margin-top: .15rem; font-size: var(--fs-sm); color: var(--c-muted); }

/* Steps */

.step { display: grid; gap: .75rem; }

.step__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-green);
}
.step__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-on-green);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 700;
}
.step__fr {
  margin-inline-start: auto;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-muted);
}

.step__hint {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.step__hint .icon { color: var(--c-green); }

/* Selectable cards (radio inputs, visually replaced) */

.option {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option__card {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.option:hover .option__card { border-color: var(--c-green-line); }

.option__input:checked + .option__card {
  border-color: var(--c-green);
  background: var(--c-green-tint);
  box-shadow: inset 0 0 0 1px var(--c-green);
}
.option__input:focus-visible + .option__card {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
}

.option__radio {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--c-green-line);
  border-radius: 50%;
  background: var(--c-white);
  transition: border-color var(--dur) var(--ease);
}
.option__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green);
  transform: scale(0);
  transition: transform var(--dur) var(--ease);
}
.option__input:checked + .option__card .option__radio { border-color: var(--c-green); }
.option__input:checked + .option__card .option__radio::after { transform: scale(1); }

/* Offers */

.offers { display: grid; gap: .8rem; }

.offer--best { margin-top: .4rem; }
.offer--best .option__card { border-color: var(--c-green-line); }

.offer__card { position: relative; min-height: 74px; }

.offer__badge {
  position: absolute;
  top: -12px;
  inset-inline-end: 14px;
  padding: .1rem .75rem;
  border-radius: var(--radius-pill);
  background: var(--c-green);
  color: var(--c-on-green);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.7;
}
.offer__badge [lang="fr"] { font-weight: 500; }

.offer__info { display: grid; flex: 1; gap: .05rem; line-height: 1.5; }
.offer__label { font-size: var(--fs-md); font-weight: 700; }
.offer__fr { margin-inline-start: .3rem; font-size: 1rem; font-weight: 500; color: var(--c-muted); }
.offer__meta { font-size: var(--fs-sm); color: var(--c-muted); }

.offer__pricing { display: grid; justify-items: end; gap: .2rem; text-align: end; line-height: 1.4; }
.offer__price { font-size: 1.2rem; font-weight: 800; color: var(--c-green); }
.offer__save {
  padding: .05rem .55rem;
  border-radius: var(--radius-pill);
  background: var(--c-green-tint);
  color: var(--c-green);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.option__input:checked + .option__card .offer__save { background: var(--c-white); }

/* Colours */

.pair__legend {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.pair__picked { font-weight: 500; color: var(--c-muted); }
.pair__picked::before { content: "— "; }

.colors[data-qty="1"] .pair__legend,
.colors[data-qty="1"] .colors__mix { display: none; }

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}

.swatch__card {
  position: relative;
  flex-direction: column;
  gap: .5rem;
  padding: .55rem .55rem .7rem;
  text-align: center;
}

.swatch__media {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-ivory);
}
.swatch__media picture,
.swatch__img { width: 100%; height: 100%; }
.swatch__img { object-fit: cover; }

.swatch__text { display: grid; line-height: 1.35; }
.swatch__name { font-size: var(--fs-sm); font-weight: 700; }
.swatch__fr { font-size: .95rem; font-weight: 500; color: var(--c-muted); }

.swatch__tick {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-on-green);
  box-shadow: 0 0 0 2px var(--c-white);
  transform: scale(0);
  transition: transform var(--dur) var(--ease);
}
.swatch__tick .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.option__input:checked + .swatch__card .swatch__tick { transform: scale(1); }

/* Several pairs: compact rows so three pairs stay short on phones. */
.colors:not([data-qty="1"]) .swatch__card {
  flex-direction: row;
  gap: .55rem;
  padding: .45rem .5rem;
  text-align: start;
}
.colors:not([data-qty="1"]) .swatch__media {
  flex: none;
  width: 40px;
  border-radius: 50%;
}
.colors:not([data-qty="1"]) .swatch__fr,
.colors:not([data-qty="1"]) .swatch__tick { display: none; }

/* Delivery */

.deliveries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.delivery__card {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  padding: 1rem;
}
.delivery__card .option__radio {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
}
.delivery__icon { width: 28px; height: 28px; margin-bottom: .4rem; color: var(--c-green); }
.delivery__label { font-size: var(--fs-sm); font-weight: 700; line-height: 1.45; }
.delivery__fr { font-size: .95rem; font-weight: 500; color: var(--c-muted); line-height: 1.4; }
.delivery__hint { margin-top: .2rem; font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.55; }
.delivery__fee {
  margin-top: auto;
  padding-top: .55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-green);
}

/* Contact details */

.fields { display: grid; gap: .9rem; }

@media (min-width: 600px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}

.field { display: grid; gap: .35rem; align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 700; }

.field__input {
  width: 100%;
  min-height: 52px;
  padding: .7rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  font: inherit;
  font-size: 1rem; /* 16px or more: iOS doesn't zoom in on focus */
  line-height: 1.4;
  color: var(--c-ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--c-muted); opacity: .75; }
.field__input:hover { border-color: var(--c-green-line); }
.field__input:focus { border-color: var(--c-green); }
/* Numbers typed left-to-right, but lined up with the Arabic fields. */
.field__input[dir="ltr"] { text-align: right; }
.field__input[aria-invalid="true"] { border-color: var(--c-error); }

.field__select {
  appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002907' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center; /* the inline end: left, in this RTL page */
  background-size: 18px;
  cursor: pointer;
}

.field__error {
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-error);
}

/* Summary */

.summary {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: var(--shadow);
}

.summary__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.25rem;
}
.summary__title [lang="fr"] { font-size: 1.15rem; font-weight: 500; color: var(--c-muted); }

.summary__list { display: grid; gap: .55rem; }
.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--fs-sm);
}
.summary__row dt { color: var(--c-muted); }
.summary__row dd { font-weight: 700; text-align: end; }

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: .9rem;
  border-top: 1px dashed var(--c-green-line);
  font-weight: 700;
}
.summary__amount { font-size: 1.85rem; font-weight: 800; color: var(--c-green); line-height: 1.2; }

.summary__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--c-green-tint);
  color: var(--c-green);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.summary__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-align: center;
}
.summary__note .icon { color: var(--c-green); }

@media (min-width: 900px) {
  .summary { padding: 1.5rem 1.75rem; }
}

/* ---- Details ---------------------------------------------------------------- */

.details { padding-block: 3.5rem; }

.details__grid { display: grid; gap: 2rem; }

.details__media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-ivory);
}
.details__media picture,
.details__img { width: 100%; height: 100%; }
.details__img { object-fit: cover; object-position: 50% 62%; }

.features {
  display: grid;
  gap: .85rem;
  margin-top: 1.5rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .15rem 1rem;
  padding: 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.feature:hover { border-color: var(--c-green-line); }

.feature__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-green-tint);
  color: var(--c-green);
}
.feature__title { font-size: 1.1rem; }
.feature__fr { margin-inline-start: .3rem; font-size: 1rem; font-weight: 500; color: var(--c-muted); }
.feature__text { font-size: var(--fs-sm); color: var(--c-muted); }

@media (min-width: 600px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details__media { aspect-ratio: 4 / 3; }
}

@media (min-width: 900px) {
  .details { padding-block: 5.5rem; }
  /* Photo on the opposite side to the shop gallery, so sections alternate. */
  .details__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: 4.5rem;
  }
  .details__media {
    order: 2;
    aspect-ratio: 4 / 5;
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg);
  }
  .details__img { object-position: 50% 50%; }
}

/* ---- Trust --------------------------------------------------------------------- */

.trust {
  padding-block: 3.5rem;
  background: var(--c-green);
  color: var(--c-on-green);
}
.trust :focus-visible { outline-color: var(--c-on-green); }
.trust .eyebrow { color: var(--c-on-green-accent); }
.trust .section-title { color: var(--c-on-green); }

.trust__grid {
  display: grid;
  gap: .85rem;
  margin-top: 1.75rem;
}

/* Phones: compact rows (icon beside text). Wider screens: cards. */
.trust__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .04);
}
.trust__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(255 255 255 / .1);
}
.trust__item h3 { color: var(--c-on-green); font-size: 1.1rem; }
.trust__item h3 [lang="fr"] {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-on-green-accent);
}
.trust__item p { margin-top: .4rem; font-size: var(--fs-sm); color: var(--c-on-green-muted); }

@media (min-width: 600px) {
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item { display: block; padding: 1.25rem; }
  .trust__icon { margin-bottom: .8rem; }
}
@media (min-width: 1000px) {
  .trust { padding-block: 5rem; }
  .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

/* ---- Final call to action ------------------------------------------------------ */

.final { padding-block: 4rem; text-align: center; }

.final__inner {
  display: grid;
  justify-items: center;
  gap: .9rem;
  max-width: 640px;
}
.final__logo { width: auto; height: 64px; margin-bottom: .5rem; }
.final__lead { color: var(--c-muted); font-size: var(--fs-md); }
.final__lead .money { font-weight: 800; color: var(--c-green); }
.final .btn { margin-top: .6rem; }
.final__note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.final__note .icon { color: var(--c-green); }

@media (min-width: 900px) {
  .final { padding-block: 5.5rem; }
}

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

.site-footer {
  /* Extra bottom space on phones so the sticky bar never hides content. */
  padding-block: 2.25rem calc(2.25rem + 76px);
  background: var(--c-green);
  color: var(--c-on-green-muted);
  font-size: var(--fs-sm);
}
.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: .5rem;
  text-align: center;
}
.site-footer__logo { width: auto; height: 64px; margin-bottom: .4rem; }
.site-footer__copy { font-size: var(--fs-xs); opacity: .75; }

@media (min-width: 900px) {
  .site-footer { padding-bottom: 2.25rem; }
}

/* ---- Mobile sticky CTA ---------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-line);
  background: rgb(255 255 255 / .97);
  box-shadow: 0 -12px 30px -22px rgb(0 41 7 / .4);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.sticky-cta.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .3s var(--ease);
}
.sticky-cta__info { display: grid; line-height: 1.25; }
.sticky-cta__label { font-size: var(--fs-xs); color: var(--c-muted); }
.sticky-cta__amount { font-size: 1.3rem; font-weight: 800; color: var(--c-green); }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---- Thank-you page ------------------------------------------------------------- */

.site-header--minimal .site-header__bar { justify-content: center; }
.page-thanks .site-footer { padding-bottom: 2.25rem; } /* no sticky bar here */

.thanks {
  padding-block: 2.5rem 3.5rem;
  background: var(--c-ivory);
}

.thanks__inner {
  display: grid;
  justify-items: center;
  gap: .75rem;
  max-width: 560px;
  text-align: center;
}

.thanks__badge {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-on-green);
  box-shadow: 0 0 0 8px var(--c-green-tint);
}
.thanks__badge .icon { width: 32px; height: 32px; stroke-width: 2.2; }

@keyframes thanks-pop {
  from { transform: scale(.6); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .thanks__badge { animation: thanks-pop .5s var(--ease) both; }
}

.thanks__title { font-size: var(--fs-h2); }
.thanks__lead { color: var(--c-muted); font-size: var(--fs-md); }

.thanks__card {
  width: 100%;
  margin-top: .75rem;
  text-align: start;
}

.thanks__items {
  display: grid;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.thanks__item { display: flex; align-items: center; gap: .85rem; }
.thanks__thumb {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-ivory);
}
.thanks__thumb img { width: 100%; height: 100%; object-fit: cover; }
.thanks__item-name { display: grid; flex: 1; font-weight: 700; line-height: 1.5; }
.thanks__item-variant { font-size: var(--fs-sm); font-weight: 500; color: var(--c-muted); }
.thanks__item-qty {
  padding: .1rem .65rem;
  border-radius: var(--radius-pill);
  background: var(--c-green-tint);
  color: var(--c-green);
  font-weight: 700;
  white-space: nowrap;
}

.thanks__notes {
  display: grid;
  gap: .6rem;
  width: 100%;
  margin-block: .5rem;
  text-align: start;
}
.thanks__notes li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.thanks__notes strong { display: block; font-size: var(--fs-md); color: var(--c-ink); }
.thanks__notes .money { font-weight: 700; color: var(--c-green); }
.thanks__note-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-green-tint);
  color: var(--c-green);
}

.thanks .btn { margin-top: .5rem; }
.thanks__tagline { margin-top: .5rem; font-size: var(--fs-sm); color: var(--c-muted); }

@media (min-width: 900px) {
  .thanks { padding-block: 4rem 5rem; }
}

/* ---- Reduced motion ----------------------------------------------------------- */

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