/* ==========================================================================
   GiftMaroc — homepage styles
   Mobile-first, no framework, no build step.
   ========================================================================== */

:root {
  /* Brand red (2026-09-25): primary #C91F2C (5.7:1 on white, 5.4:1 on the
     page background), hover/active #A81722 (7.4:1). Accent = the same
     palette so the brand reads as one red. */
  --color-primary: #c91f2c;
  --color-primary-dark: #a81722;
  --color-accent: #c91f2c;
  --color-accent-dark: #a81722;
  --color-brand-tint: #fdecee;
  /* Semantic colors — never the brand red: success green (5.3:1), warning
     amber (5.0:1); errors keep --color-danger plus a non-color cue (icon /
     border / text). */
  --color-success: #1e7b3c;
  --color-warning: #b45309;
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #1f2a28;
  --color-text-muted: #5b6866;
  --color-border: #e4ded4;
  --color-danger: #b3261e;

  /* Redesign V1 (2026-09-27): one typeface for Latin + Arabic, self-hosted
     (public/fonts, Rubik, SIL OFL) — no third-party font request. */
  --font-sans: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-hairline: #e9e4dc;
  --color-media: #f6f3ee;
  --shadow-rest: 0 1px 2px rgba(20, 24, 22, 0.06), 0 1px 1px rgba(20, 24, 22, 0.03);
  --shadow-hover: 0 10px 26px rgba(20, 24, 22, 0.1);

  --header-height: 64px;
  --max-width: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+26A1;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* -- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

.visually-hidden {
  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;
  top: -100px;
  inset-inline-start: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

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

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  padding: 0 5%;
  margin-bottom: 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

/* Top bar: announcement + language switcher (visible at every width). */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 5%;
}

.topbar__message {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switch a {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.lang-switch a[aria-current="true"] {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.5);
}

.header-main {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 5%;
  min-height: var(--header-height);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: var(--color-bg);
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo__accent {
  color: var(--color-accent);
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  gap: 22px;
}

.primary-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--color-primary);
}

.search-form {
  display: none;
}

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

.header-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.header-action:hover {
  background: var(--color-bg);
}

.cart-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  /* accent-dark (not accent) so white text clears WCAG AA (4.5:1) */
  background: var(--color-accent-dark);
  color: #fff;
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.mobile-nav {
  border-top: 1px solid var(--color-border);
  padding: 8px 5% 16px;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav li:last-child a {
  border-bottom: none;
}

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

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 5% 64px;
  max-width: 640px;
}

.hero__title {
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 14px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__cta {
  display: inline-block;
  margin-top: 24px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.hero__cta:hover {
  background: var(--color-brand-tint);
}

/* -- Categories ---------------------------------------------------------- */

.categories {
  padding: 40px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 5%;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* -- Product grid / cards -------------------------------------------------- */

.featured-products {
  padding: 16px 0 44px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 5%;
}

.product-grid__state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 16px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.product-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(15, 30, 28, 0.08);
  transform: translateY(-2px);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1ede6;
  /* flex item of the card: never grow from the photo's intrinsic height
     (a portrait photo would otherwise override the square ratio) */
  min-height: 0;
  flex: none;
}

/* Every card has the same square media box; the photo is contained (never
   cropped, never stretched) and centered, so a tall or square source image
   can never change the card's size. */
.product-card__image {
  /* pinned to the square box: the box sizes the photo, never the reverse */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
}

.product-card__image--placeholder {
  padding: 0;
}

.product-card__image--placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f1ede6,
    #f1ede6 10px,
    #ece6db 10px,
    #ece6db 20px
  );
}

.product-card__badges {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: calc(100% - 16px);
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}

.badge--discount {
  /* accent-dark (not accent) so white text clears WCAG AA (4.5:1) */
  background: var(--color-accent-dark);
}

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

/* Merchandising badges (server-computed facts: src/product.js merchandising()). */
.badge--new {
  background: var(--color-primary);
}

.badge--sale {
  background: var(--color-accent-dark);
}

.badge--low-stock {
  background: #b45309; /* white text: 5.0:1 */
}


/* Out of stock: fade the photo only — text and the CTA keep full contrast
   (a faded red button with white text would fall below WCAG AA). The
   "Rupture de stock" badge carries the state. */
.product-card--out-of-stock .product-card__image {
  opacity: 0.7;
}

.product-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 10px 0;
  /* exactly two lines, clamped: long titles never grow the card */
  min-height: 2.6em;
  max-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px 12px;
}

.product-card__price {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary);
}

.product-card__price--compare {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Loading skeletons */

.product-card--skeleton {
  aspect-ratio: unset;
  height: 230px;
  position: relative;
  background: linear-gradient(90deg, #f1ede6 25%, #ece6db 37%, #f1ede6 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* -- Promo banner -------------------------------------------------------- */

.promo-banner {
  padding: 8px 5% 44px;
}

.promo-banner__inner {
  /* accent-dark (not accent) so white text clears WCAG AA (4.5:1) */
  background: var(--color-accent-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.promo-banner__heading {
  font-size: 1.3rem;
  font-weight: 800;
}

.promo-banner__text {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.promo-banner__cta {
  display: inline-block;
  margin-top: 18px;
  background: #fff;
  color: var(--color-accent-dark);
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
}

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

.trust-section {
  padding: 8px 5% 48px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-item {
  text-align: center;
  padding: 20px 12px;
}

.trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(201, 31, 44, 0.08);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.trust-item__title {
  font-size: 1rem;
  font-weight: 700;
}

.trust-item__text {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

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

.site-footer {
  background: #1c1b1d;
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 5% 20px;
}

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.footer__group h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

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

.footer__group a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__group a:hover {
  color: #fff;
}

.footer__social-icons {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

a.footer__social-icon {
  width: 44px;
  height: 44px;
  text-decoration: none;
}

a.footer__social-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

a.footer__social-icon:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* -- Page header (catalogue / category pages) ------------------------------ */

.page-header {
  padding: 28px 5% 8px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header__description {
  margin-top: 8px;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* -- Catalogue toolbar: results count + filters ----------------------------- */

.catalogue-toolbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 5% 0;
}

.catalogue-toolbar__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.catalogue-toolbar__count {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  background: var(--color-surface);
}

.filter-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

/* Below the desktop breakpoint the panel is collapsed behind the "Filtres"
   toggle. The `display: grid` above would otherwise override the UA's
   [hidden] rule and keep it visible. (Desktop re-shows it further down.) */
.filter-panel[hidden] {
  display: none;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filter-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

.filter-field--actions {
  flex-direction: row;
  gap: 10px;
}

.filter-apply {
  flex: 1;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
}

.filter-apply:hover {
  background: var(--color-primary-dark);
}

.filter-reset {
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text-muted);
}

.filter-reset:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* -- Catalogue results / Load more ------------------------------------------ */

.catalogue-results {
  padding: 4px 5% 48px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.load-more-btn {
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-surface);
}

.load-more-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ==========================================================================
   Tablet — 600px+
   ========================================================================== */

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .hero__title {
    font-size: 2.3rem;
  }

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

  .filter-field--actions {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Desktop — 900px+
   ========================================================================== */

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

  .mobile-nav {
    display: none !important;
  }

  .primary-nav {
    display: block;
  }

  .search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding-block: 4px;
    padding-inline: 16px 4px; /* RTL-aware */
    max-width: 360px;
    justify-self: stretch;
    margin: 0 16px;
  }

  .search-form input {
    flex: 1;
    border: none;
    background: none;
    font: inherit;
    padding: 8px 0;
    outline: none;
  }

  .search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--color-text-muted);
  }

  .search-form button:hover {
    background: var(--color-surface);
    color: var(--color-primary);
  }

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

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

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

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__inner {
    padding: 84px 5% 92px;
  }

  /* Filters are always visible on desktop — no toggle needed. */
  .filter-toggle {
    display: none;
  }

  .filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .filter-panel[hidden] {
    display: flex;
  }

  .filter-field {
    flex: 1 1 180px;
  }

  .filter-field--price {
    flex: 1 1 130px;
  }

  .filter-field--actions {
    flex: 0 0 auto;
    align-self: flex-end;
  }
}

/* ==========================================================================
   Large desktop — 1200px+
   ========================================================================== */

@media (min-width: 1200px) {
  .header-main,
  .categories,
  .featured-products,
  .promo-banner,
  .trust-section,
  .catalogue-results {
    padding-left: max(5%, calc((100% - var(--max-width)) / 2));
    padding-right: max(5%, calc((100% - var(--max-width)) / 2));
  }

  .section-title,
  .category-grid,
  .product-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ==========================================================================
   Arabic (/ar/, dir="rtl")
   Layout mirrors automatically (flex/grid + logical properties above).
   Arabic is a connected script: letter-spacing and uppercase transforms
   break it, so they are neutralised; a system Arabic-capable font stack is
   preferred (no web fonts).
   ========================================================================== */

:root:lang(ar) {
  --font-sans: "Rubik", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", "SF Arabic", system-ui, sans-serif;
}

:lang(ar) .hero__title,
:lang(ar) .page-header__title,
:lang(ar) .footer__group h3,
:lang(ar) .cat-nav__title,
:lang(ar) .filter-field label {
  letter-spacing: normal;
  text-transform: none;
}

:lang(ar) .hero__title {
  line-height: 1.35;
}

/* Brand name and Latin text inside Arabic pages keep their own spacing. */
:lang(ar) .logo {
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Product page (Step 3) — mobile-first: image first, details right below.
   Logical properties only (RTL-safe). No letter-spacing / uppercase (Arabic).
   ========================================================================== */

.product-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 5% 48px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none; /* the reset only covers <ul>; this is an <ol> */
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-inline-end: 6px;
  color: var(--color-border);
}

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

.breadcrumb__list [aria-current="page"] {
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

/* Square frame reserved up front → no layout shift while the image loads. */
.gallery__main {
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* A3: swipeable track (native scroll-snap, no library). */
.gallery__viewport {
  position: relative;
}

.gallery__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery__zoom {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gallery__count {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(31, 42, 40, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}

.gallery__thumb--video {
  position: relative;
  background: #1f2a28;
}

.gallery__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.gallery__play::after {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  left: 11px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #1f2a28;
}

/* Fullscreen viewer (built by product.js on first use). */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0d1413;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
}

.lightbox__count {
  margin: 0;
  font-weight: 700;
}

.lightbox__btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lightbox__nav {
  position: absolute;
  inset-block-start: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  inset-inline-start: 12px;
}

.lightbox__nav--next {
  inset-inline-end: 12px;
}

.lightbox__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.lightbox__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-x pan-y pinch-zoom;
}

.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.lightbox__slide.is-zoomed {
  overflow: auto;
  justify-content: flex-start;
  align-items: flex-start;
}

.lightbox__slide.is-zoomed img {
  max-width: none;
  max-height: none;
  width: 200%;
  cursor: zoom-out;
}

@media (hover: none) {
  .lightbox__nav {
    display: none;
  }
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
}

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-snap-type: x proximity;
}

.gallery__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  scroll-snap-align: start;
}

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

.gallery__thumb[aria-current="true"] {
  border-color: var(--color-primary);
}

.product-info {
  min-width: 0;
}

.product-info__name {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-info__sku {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.product-price__current {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.product-price__compare {
  color: var(--color-text-muted);
}

.product-stock {
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

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

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

.product-buy {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.product-buy__label {
  font-weight: 700;
  font-size: 0.9rem;
}

.qty {
  display: inline-flex;
  align-items: stretch;
  width: max-content;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}

.qty__btn {
  width: 44px;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
}

.qty__btn:hover:not(:disabled) {
  background: var(--color-bg);
}

.qty__btn:disabled {
  color: var(--color-border);
  cursor: not-allowed;
}

.qty__input {
  width: 60px;
  border: 0;
  border-inline: 1px solid var(--color-border);
  text-align: center;
  font: inherit;
  font-weight: 700;
  -moz-appearance: textfield;
}

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

.product-buy__cta {
  min-height: 52px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0 28px;
  transition: background 0.15s ease;
}

.product-buy__cta:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.product-buy__cta:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
}

.product-buy__status {
  min-height: 1.5em;
  font-weight: 600;
  color: var(--color-success);
}

.product-trust {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-trust__icon {
  display: inline-flex;
  color: var(--color-primary);
}

.product-trust__icon svg {
  width: 22px;
  height: 22px;
}

.product-description {
  margin-top: 24px;
}

.product-description h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-description__body {
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.product-description__body p + p {
  margin-top: 10px;
}

@media (min-width: 900px) {
  .product-page {
    padding-top: 24px;
  }

  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 48px);
  }

  .gallery__thumb {
    width: 76px;
    height: 76px;
  }

  .product-info__name {
    font-size: 2rem;
  }

  .product-buy {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .product-buy__label {
    grid-column: 1 / -1;
  }

  .product-buy__status {
    grid-column: 1 / -1;
  }
}

/* -- Cart page (Step 4) -------------------------------------------------------
   Mobile first: each line is a card (image | name/price | quantity, total,
   remove). From 900px: lines + sticky summary side by side. Logical
   properties only, so Arabic mirrors automatically. */

/* Components below set `display`, which would override the `hidden`
   attribute — keep hidden states hidden. */
.cart-page [hidden] {
  display: none !important;
}

.cart-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 48px;
}

.cart-loading,
.cart-notices,
.cart-error,
.cart-empty,
.cart-layout {
  margin: 12px 5% 0;
}

.cart-loading {
  color: var(--color-text-muted);
}

.cart-notices {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cart-notice {
  padding: 12px 14px;
  border: 1px solid var(--color-warning);
  border-inline-start-width: 4px;
  border-radius: var(--radius);
  background: #fff7ee;
  font-weight: 600;
}

.cart-error {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.cart-error__retry,
.cart-line__remove {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-weight: 700;
}

.cart-error__retry:hover,
.cart-line__remove:hover {
  border-color: var(--color-text-muted);
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 16px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-empty__title {
  font-size: 1.35rem;
  font-weight: 800;
}

.cart-empty__text {
  color: var(--color-text-muted);
  max-width: 45ch;
}

.cart-layout {
  display: grid;
  gap: 20px;
}

.cart-layout[aria-busy="true"] .cart-summary__row--total dd {
  opacity: 0.6;
}

.cart-lines {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas:
    "img info"
    "qty qty"
    "total remove";
  gap: 12px 14px;
  align-items: center;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-line--unavailable {
  border-style: dashed;
}

.cart-line__img {
  grid-area: img;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--color-bg);
  display: block;
}

.cart-line__info {
  grid-area: info;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-line__name {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cart-line__name:hover,
.cart-line__name:focus-visible {
  text-decoration: underline;
}

.cart-line__unit {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.cart-line__price {
  font-weight: 700;
  color: var(--color-primary);
}

.cart-line__compare {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.cart-line__discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent-dark);
  border-radius: 999px;
  padding: 1px 8px;
}

.cart-line__badge {
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: 999px;
  padding: 1px 10px;
}

.cart-line__msg {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cart-line__msg--error {
  color: var(--color-danger);
  font-weight: 600;
}

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

.cart-line .qty__input:disabled {
  color: var(--color-text-muted);
  background: var(--color-bg);
}

.cart-line__price,
.cart-line__compare,
.cart-line__total,
.cart-summary__row dd {
  white-space: nowrap; /* never split an amount from its currency */
}

.cart-line__total {
  grid-area: total;
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-line__remove {
  grid-area: remove;
  justify-self: end;
}

.cart-summary {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cart-summary__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-summary__rows {
  display: grid;
  gap: 6px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary__row dt {
  color: var(--color-text-muted);
}

.cart-summary__row--total {
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-summary__row--total dt {
  color: var(--color-text);
}

.cart-summary__hint,
.cart-summary__note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cart-summary__blocked {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-danger);
}

.cart-summary__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0 24px;
}

.cart-summary__cta:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--color-primary-dark);
}

.cart-summary__cta:disabled,
.cart-summary__cta[aria-disabled="true"] {
  background: var(--color-text-muted);
  cursor: not-allowed;
}

.cart-summary__continue {
  justify-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 600px) {
  .cart-line {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-areas:
      "img info remove"
      "img qty total";
  }

  .cart-line__img {
    width: 96px;
    height: 96px;
  }

  .cart-line__total {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

/* -- Direct COD order (product page) -----------------------------------------
   Mobile first. The order card sits right under price + stock; Add to Cart is
   a secondary, outlined action below it. Logical properties throughout so the
   Arabic (RTL) page mirrors without extra rules. */

.cod-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-brand-tint);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.cod-badge__icon {
  display: inline-flex;
}

.cod-badge__icon svg {
  width: 18px;
  height: 18px;
}

.product-buy {
  margin-top: 18px;
}

.order-card {
  margin-top: 18px;
  padding: 18px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.order-card__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.order-card__lead {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.order-card__unavailable {
  margin-top: 12px;
  font-weight: 700;
  color: var(--color-danger);
}

.order-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.order-form__fields {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

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

.field__label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b9b1a5;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem; /* ≥ 16px: no iOS zoom on focus */
}

textarea.field__input {
  min-height: 72px;
  resize: vertical;
}

.field__input:focus-visible {
  outline: 3px solid rgba(201, 31, 44, 0.35);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.field__input[aria-invalid="true"] {
  border-color: var(--color-danger);
  border-width: 2px;
  background: #fff8f7;
}

/* Phone numbers stay left-to-right on the Arabic page, aligned like the
   other fields. */
[dir="rtl"] #order-phone {
  text-align: right;
}

.field__error::before,
.order-form__error::before,
.cart-line__msg--error::before,
.cart-summary__blocked::before {
  /* Non-color cue: errors must not rely on red alone (the brand is red). */
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  margin-inline-end: 0.35em;
  border-radius: 999px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  line-height: 1;
  vertical-align: 0.05em;
}

.field__error,
.order-form__error {
  color: var(--color-danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.order-form [hidden],
.confirmation-page [hidden] {
  display: none !important;
}

.order-form__hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-summary {
  padding: 12px 14px;
  background: var(--color-bg);
  border-radius: 8px;
  font-size: 0.92rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
}

/* break-word (not anywhere): long product names may wrap, but short labels
   like "Livraison" are never split mid-word by a long value next to them. */
.order-summary__row dt {
  flex: 1 1 50%;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Only "× 2" stays on one line. Not every [dir="ltr"]: a product name shown
   as a French fallback on /ar/ or /en/ also carries dir="ltr" and must wrap
   (a long fallback name overflowed the 375px layout by 1px on /en/). */
.order-summary__qty {
  white-space: nowrap;
}

.order-summary__row dd {
  flex: 0 1 auto;
  max-width: 60%;
  margin: 0;
  text-align: end;
  font-weight: 700;
}

#summary-line,
#summary-total,
.confirmation__amount,
#confirmation-total {
  white-space: nowrap;
}

.order-summary__row--item {
  color: var(--color-text-muted);
}

.order-summary__row--total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 800;
}

.order-summary__row--total dd {
  color: var(--color-primary);
  font-weight: 800;
}

.order-summary__note {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.order-form__submit {
  width: 100%;
  min-height: 56px;
  text-transform: uppercase; /* "CONFIRMER LA COMMANDE" (no effect on Arabic) */
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0 24px;
  transition: background 0.15s ease;
}

.order-form__submit:hover:not(:disabled) {
  background: #8e131c; /* one step darker than --color-accent-dark */
}

.order-form__submit:disabled {
  background: var(--color-text-muted);
  cursor: wait;
}

.order-form__submit:focus-visible,
.order-sticky__cta:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

.order-form__reassure {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Secondary path: Add to Cart — below the fold, after the reassurance
   (never in the main purchase block). */
.product-alt {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.product-alt__label {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.product-alt .product-buy__cta {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  min-height: 48px;
}

.product-alt .product-buy__cta:hover:not(:disabled) {
  background: var(--color-brand-tint);
}

.product-alt .product-buy__cta:disabled {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

/* Below the fold: description, how to order, FAQ, reassurance. */
.product-more {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  max-width: 760px;
}

.product-more .product-description {
  margin-top: 0;
}

.product-more h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.how-to-order__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-to-order__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.how-to-order__num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}

.how-to-order__step h3 {
  font-size: 1rem;
}

.how-to-order__step p,
.faq__item p {
  color: var(--color-text-muted);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  padding-bottom: 12px;
}

.product-more .product-trust {
  margin-top: 0;
}

/* Mobile sticky bar: price + jump to the form (only once JS runs, only
   while the order card is off screen, never on wide screens). */
.order-sticky {
  display: none;
}

@media (max-width: 899px) {
  .order-sticky.order-sticky--ready {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
  }

  .order-sticky.order-sticky--hidden {
    transform: translateY(110%);
    visibility: hidden;
  }

  .product-page:has(.order-sticky--ready) {
    padding-bottom: 88px;
  }
}

.order-sticky__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.order-sticky__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .order-sticky {
    transition: none;
  }
}

@media (min-width: 900px) {
  .order-card {
    padding: 22px 24px;
  }

  .product-more {
    margin-top: 48px;
  }
}

/* -- Order confirmation --------------------------------------------------- */

.confirmation-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.confirmation {
  display: grid;
  gap: 20px;
}

.confirmation__head {
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.confirmation__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
}

.confirmation__title {
  font-size: 1.6rem;
  font-weight: 800;
}

.confirmation__title:focus {
  outline: none;
}

.confirmation__ref {
  padding: 16px;
  text-align: center;
  background: var(--color-surface);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius);
}

.confirmation__ref-label {
  font-weight: 700;
  color: var(--color-text-muted);
}

.confirmation__ref-value {
  margin: 4px 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: all;
}

.confirmation__ref-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.confirmation__items {
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.confirmation__items h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.confirmation__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.confirmation__line > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.confirmation__amount {
  font-weight: 700;
}

.confirmation__items dl {
  margin: 8px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
}

/* WhatsApp confirmation (0016): white on #0e7a3d = 5.5:1 contrast. */
.confirmation__whatsapp {
  margin: 18px 0 6px;
  padding: 16px;
  border: 1px solid #c7e6d3;
  border-radius: 14px;
  background: #f0f9f3;
  text-align: center;
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #0e7a3d;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  text-decoration: none;
}

.whatsapp-cta:hover {
  background: #0a632f;
  color: #fff;
}

.whatsapp-cta:focus-visible {
  outline: 3px solid #0e7a3d;
  outline-offset: 3px;
}

.whatsapp-cta__icon {
  flex: none;
}

.confirmation__whatsapp-hint {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* -- Floating WhatsApp contact button ------------------------------------- */
/* Rendered only while a store WhatsApp number is set (src/pages.js
   whatsappFloatHtml). Bottom corner on the reading-direction end (right in
   LTR, left in RTL), above the phone safe area. shared.js adds .wa-float--away
   whenever a button, link or field would sit underneath it, so it never
   covers the COD form, the cart controls or the mobile order bar. */
.wa-float {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: opacity 0.15s ease, transform 0.15s ease, bottom 0.2s ease;
}

.wa-float:hover {
  background: #1ebe5b;
  color: #fff;
}

.wa-float:focus-visible {
  outline: 3px solid #0e7a3d;
  outline-offset: 3px;
}

.wa-float__icon {
  width: 30px;
  height: 30px;
}

.wa-float--away {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.9);
}

/* Room under the footer so, at the end of the page, the button floats over
   empty space rather than over the footer links / social icons. */
body:has(.wa-float) .site-footer {
  padding-bottom: 92px;
}

/* Above the mobile order bar while that bar is shown. */
@media (max-width: 899px) {
  body:has(.order-sticky--ready:not(.order-sticky--hidden)) .wa-float {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }
}

.confirmation__cod {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.confirmation .hero__cta,
.confirmation-page .cart-empty .hero__cta {
  justify-self: center;
}

/* Focus rings on red surfaces (brand red, 2026-09-25): the default red ring
   would vanish on the red hero / top bar. */
.hero :focus-visible,
.topbar :focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   Commercial homepage (2026-09-25): compact hero → products first → trust
   strip → categories → brand content. Product cards: image first, price,
   real delivery, "Voir le produit" call to action.
   ========================================================================== */





.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 5%;
  margin-bottom: 14px;
}

.section-head .section-title {
  padding: 0;
  margin: 0;
}

.section-head__link {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.featured-products {
  /* top/bottom only: the side gutter comes from the 1200px+ rule */
  padding-top: 18px;
  padding-bottom: 28px;
}

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

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 12px;
}

.product-card__body .product-card__name {
  padding: 0;
}

.product-card__body .product-card__price-row {
  flex-wrap: wrap;
  padding: 0;
}

.product-card__body .product-card__price {
  font-size: 1.02rem;
  font-weight: 800;
}

.product-card__body .product-card__price--compare {
  font-size: 0.8rem;
  font-weight: 500;
}

.product-card__delivery {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.product-card__delivery--free {
  color: var(--color-success);
  font-weight: 700;
}

.product-card__cta {
  display: block;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease;
}

.product-card:hover .product-card__cta,
.product-card:focus-visible .product-card__cta {
  background: var(--color-primary-dark);
}

/* At least 6px between the last line of text and the CTA (the CTA itself is
   pushed to the bottom by margin-top: auto, so cards in a row line up). */
.product-card__body > :nth-last-child(2) {
  margin-bottom: 6px;
}

.badge--discount {
  font-size: 0.75rem;
}

/* Trust strip: compact rows so it never pushes the catalogue down. */
.trust-section--strip {
  padding-top: 4px;
  padding-bottom: 24px;
}

.trust-section--strip .trust-grid {
  gap: 10px;
}

.trust-section--strip .trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  column-gap: 12px;
  text-align: start;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.trust-section--strip .trust-item__icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  margin: 0;
}

.trust-section--strip .trust-item__icon svg {
  width: 22px;
  height: 22px;
}

.trust-section--strip .trust-item__title {
  font-size: 0.92rem;
}

.trust-section--strip .trust-item__text {
  margin-top: 2px;
  font-size: 0.8rem;
}

.categories {
  padding-top: 16px;
  padding-bottom: 32px;
}

/* Brand content: light brand tint, red accents (the page stays mostly light). */
.promo-banner__inner {
  background: var(--color-brand-tint);
  color: var(--color-text);
  border: 1px solid rgba(201, 31, 44, 0.18);
}

.promo-banner__heading {
  color: var(--color-primary-dark);
}

.promo-banner__text {
  color: var(--color-text-muted);
}

.promo-banner__cta {
  background: var(--color-primary);
  color: #fff;
}

.promo-banner__cta:hover {
  background: var(--color-primary-dark);
}


@media (min-width: 900px) {


  .product-card__body {
    padding: 12px 14px 14px;
  }
}

@media (min-width: 1200px) {

  .featured-products .section-head {
    padding-left: 0;
    padding-right: 0;
  }

}

/* ==========================================================================
   Catalogue-first homepage (2026-09-25, structure inspired by marketplace
   home pages; GiftMaroc's own brand): search visible on every screen size,
   category rail/chips next to a compact banner, Promotions (real discounts
   only) and New arrivals right below, then categories, trust, brand.
   ========================================================================== */

/* -- Top bar: two short lines at most on phones -- */
@media (max-width: 599px) {
  .topbar {
    font-size: 0.72rem;
    gap: 8px;
    padding: 5px 4%;
  }

  .topbar__message {
    text-align: start;
  }

  .lang-switch {
    gap: 4px;
  }
}

/* -- Product search: the existing form (GET /{lang}/produits/?q=), now also
      shown on phones and tablets as a full-width row under the logo -- */
@media (max-width: 899px) {
  .header-main {
    row-gap: 8px;
    padding-bottom: 8px;
  }

  .search-form {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding-block: 2px;
    padding-inline: 14px 4px;
  }

  .search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 16px; /* no zoom-on-focus on iOS */
    padding: 8px 0;
    outline: none;
  }

  .search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--color-primary-dark);
  }
}

/* -- Top commerce area -- */
.home-top {
  display: grid;
  gap: 10px;
  padding: 12px 5% 4px;
}

/* Grid items may shrink below their content: the chip row and the deals
   carousel scroll inside themselves instead of widening the page. */
.home-top > * {
  min-width: 0;
}

.hero--banner {
  border-radius: var(--radius);
  overflow: hidden;
}

.hero--banner .hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  padding: 12px 14px;
}

.hero--banner .hero__title {
  font-size: 1rem;
  line-height: 1.3;
}

/* Phones: one compact row (title + CTA). COD is already in the top bar and
   every card shows its own delivery, so the chips start at 600px. */
@media (max-width: 599px) {
  .hero--banner .hero__copy .hero__badges {
    display: none;
  }

  .hero--banner .hero__cta {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

.hero--banner .hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hero--banner .cod-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
}

.hero--banner .hero__cta {
  margin-top: 0;
  padding: 9px 20px;
  font-size: 0.92rem;
}

/* Category navigation: horizontal chips on phones, a rail on desktop. */
.cat-nav__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cat-nav__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav__list::-webkit-scrollbar {
  display: none;
}

.cat-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.cat-nav__link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.cat-nav__link--all {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.cat-nav__link--all:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* -- Product sections -- */
.product-section {
  padding-top: 12px;
  padding-bottom: 20px;
}

/* Promotions: a light brand band so real deals stand out (page stays light). */
.product-section--deals {
  background: var(--color-brand-tint);
  border-block: 1px solid rgba(201, 31, 44, 0.14);
  margin-top: 8px;
}

.product-section--deals .section-title {
  color: var(--color-primary-dark);
}

/* Priority deals (server-ranked: priority_rank): the SAME card as every
   other deal — identical width, media box, title box and CTA — with only a
   subtle accent (stronger brand border). Never larger, never spanning. */
.product-card--priority {
  /* the accent is drawn with the same 1px border plus an inset ring, so the
     card's geometry (media box, text, CTA) is pixel-identical to its neighbours */
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary), 0 6px 18px rgba(201, 31, 44, 0.12);
}

/* Deals: one consistent grid — 2 columns on phones, 3 equal columns from
   tablet up (the Deals section keeps 3 even on wide desktops); every card in
   a row stretches to the same height. */
.product-grid--deals {
  align-items: stretch;
}

@media (min-width: 600px) {
  .product-grid--deals {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product page: the same merchandising badges above the price. */
.product-merch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.product-merch .badge {
  font-size: 0.78rem;
}

/* -- Shop by category: real product photo + count -- */
.categories {
  padding-top: 8px;
}

.category-card--tile {
  display: grid;
  gap: 4px;
  padding: 8px 8px 12px;
  text-align: center;
}

.category-card__image {
  width: 100%;
  height: auto; /* the height attribute would otherwise beat aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  background: #f1ede6;
}

.category-card__image--placeholder {
  display: block;
  background: repeating-linear-gradient(45deg, #f1ede6, #f1ede6 10px, #ece6db 10px, #ece6db 20px);
}

.category-card__count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (min-width: 600px) {
  .hero--banner .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
  }

  .hero--banner .hero__title {
    font-size: 1.45rem;
  }

  .hero--banner .hero__cta {
    flex: 0 0 auto;
  }
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) {
  /* Rail beside the banner (only when there are categories to list). */
  .home-top--with-nav {
    grid-template-columns: 230px 1fr;
    align-items: stretch;
  }

  .home-top--with-nav .cat-nav {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 8px;
  }

  .home-top--with-nav .cat-nav__title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    padding: 2px 10px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  :lang(ar) .home-top--with-nav .cat-nav__title {
    text-transform: none;
    letter-spacing: 0;
  }

  .home-top--with-nav .cat-nav__list {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
  }

  .home-top--with-nav .cat-nav__link {
    display: flex;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-size: 0.9rem;
  }

  .home-top--with-nav .cat-nav__link:hover {
    background: var(--color-brand-tint);
  }

  .home-top--with-nav .cat-nav__link--all {
    background: none;
    color: var(--color-primary-dark);
    font-weight: 700;
  }

  .hero--banner .hero__title {
    font-size: 1.75rem;
  }

  .hero--banner .hero__inner {
    height: 100%;
    padding: 24px 32px;
  }
}

@media (min-width: 1200px) {
  .home-top {
    padding-left: max(5%, calc((100% - var(--max-width)) / 2));
    padding-right: max(5%, calc((100% - var(--max-width)) / 2));
  }

  /* Denser marketplace grid: 5 products per row (Deals stay at 3). */
  .product-grid:not(.product-grid--deals) {
    grid-template-columns: repeat(5, 1fr);
  }

  .product-section {
    padding-left: max(5%, calc((100% - var(--max-width)) / 2));
    padding-right: max(5%, calc((100% - var(--max-width)) / 2));
  }

  .product-section .section-head,
  .product-section .product-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

/* -- Contact page -------------------------------------------------------- */
.contact-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 5% 48px;
}

/* The page already has its side gutter: align the header with the card. */
.contact-page .page-header {
  padding: 0;
}

.contact-page__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact-page__intro {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.contact-card {
  margin-top: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 18px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.contact-item + .contact-item {
  border-top: 1px solid var(--color-border);
}

.contact-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-brand-tint);
  color: var(--color-primary-dark);
}

.contact-item__label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.contact-item__value {
  display: inline-block;
  min-height: 44px;
  padding-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  overflow-wrap: anywhere;
}

.contact-item__value:hover,
.contact-item__value:focus-visible {
  text-decoration: underline;
}

/* Latin/digits stay left-to-right inside the RTL page, aligned to the start. */
[dir="rtl"] .contact-item__value {
  text-align: right;
}


/* -- Recurring 12 h "offers refresh" countdown (src/promo.js) ------------- */
.promo-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.promo-timer__value { white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; }

/* Cards: a compact promotional pill — bigger, bolder digits, same height on
   every discounted card (single line, fixed line-height) so rows stay uniform
   and the CTA (margin-top: auto) keeps its aligned bottom. */
.promo-timer--card {
  display: inline-flex;
  align-self: flex-start;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-brand-tint);
  border: 1px solid rgba(201, 31, 44, 0.28);
  font-size: 1rem;
  line-height: 1.15;
}
.promo-timer--card .promo-timer__icon { font-size: 1rem; line-height: 1; }
.promo-timer--card .promo-timer__value { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.03em; }

/* Product page: a clear promotional band under the price — label + large bold digits. */
.promo-timer--page {
  margin: 10px 0 6px;
  padding: 12px 16px;
  border: 1px solid rgba(201, 31, 44, 0.3);
  border-inline-start: 5px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-brand-tint);
  font-size: 1rem;
  flex-wrap: wrap;
  gap: 6px 14px;
  box-shadow: 0 2px 8px rgba(201, 31, 44, 0.08);
}
.promo-timer--page .promo-timer__label { font-weight: 700; color: var(--color-text); }
.promo-timer--page .promo-timer__value { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.1; }

@media (max-width: 599px) {
  .promo-timer--card { padding: 4px 8px; font-size: 0.92rem; gap: 5px; }
  .promo-timer--card .promo-timer__value { font-size: 0.98rem; }
  .promo-timer--page { padding: 10px 12px; }
  .promo-timer--page .promo-timer__value { font-size: 1.6rem; }
}

/* -- Customer reviews ----------------------------------------------------- */
.reviews { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.reviews h2 { margin: 0 0 12px; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.reviews__average { font-size: 2rem; font-weight: 800; line-height: 1; }
.reviews__count { color: var(--color-text-muted); }
.reviews__none { color: var(--color-text-muted); margin: 0 0 16px; }
.stars { color: #e0a800; letter-spacing: 1px; font-size: 1.1rem; line-height: 1; white-space: nowrap; }
.stars__empty { color: #d8d3c8; }
.reviews__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.review-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; }
.review-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.review-item__name { font-weight: 700; }
.review-item__date { color: var(--color-text-muted); font-size: 0.85rem; }
.review-item__comment { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-form { display: grid; gap: 6px; max-width: 560px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; }
.review-form__heading { margin: 0 0 4px; font-size: 1.1rem; }
.review-form label { font-weight: 600; margin-top: 6px; }
.review-form input[type="text"], .review-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; width: 100%; box-sizing: border-box; }
.review-form__rating { border: 0; padding: 0; margin: 0; }
.review-form__rating legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.review-form__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.review-form__star-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.review-form__star { font-size: 1.9rem; line-height: 1; color: #d8d3c8; cursor: pointer; margin: 0; padding: 2px 4px; min-width: 44px; text-align: center; }
.review-form__stars .review-form__star-input:checked ~ .review-form__star,
.review-form__stars .review-form__star:hover,
.review-form__stars .review-form__star:hover ~ .review-form__star { color: #e0a800; }
.review-form__star-input:focus-visible + .review-form__star { outline: 2px solid var(--color-primary); border-radius: 4px; }
.review-form__help { margin: 2px 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
/* Honeypot: visually hidden by clipping (an off-screen offset would create scrollable width on RTL pages). */
.review-form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.review-form__submit { margin-top: 10px; justify-self: start; }
.review-form__status { margin: 6px 0 0; min-height: 1.4em; }
.review-form__status--ok { color: var(--color-success); font-weight: 600; }
.review-form__status--error { color: var(--color-danger); font-weight: 600; }
.review-form .field-error { margin: 0; }


/* ==========================================================================
   Commercial storefront redesign V1 (2026-09-27)
   Presentation only. Red is reserved for: primary CTA, promotional price,
   discount badge, cart badge, small hero accents and the Flash Deal strip.
   Surfaces: white cards without borders, soft shadows, warm page background.
   Typography: Rubik (self-hosted, Latin + Arabic), 16px / 1.55 body.
   Every rule below overrides the earlier phases by cascade order (same
   specificity, later wins) — the earlier blocks are kept for history.
   ========================================================================== */

body {
  font-size: 1rem;
  line-height: 1.55;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Small brand accent before every section title (never a red block). */
.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 0.95em;
  margin-inline-end: 10px;
  border-radius: 3px;
  background: var(--color-primary);
  vertical-align: -0.1em;
}

.section-head {
  align-items: center;
  margin-bottom: 16px;
}

.section-head__link {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
}

.section-head__link:hover,
.section-head__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -- Header: slim dark announcement bar + clean white header ---------------- */

.site-header {
  border-bottom: 1px solid var(--color-hairline);
  box-shadow: 0 1px 0 rgba(20, 24, 22, 0.02);
}

.topbar {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  padding: 5px 5%;
  min-height: 30px;
}

.topbar__message {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switch a {
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch a[aria-current="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.35);
}

.header-main {
  gap: 14px;
  padding: 8px 5%;
  min-height: 60px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
}

.primary-nav ul {
  gap: 20px;
}

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-action {
  color: var(--color-text);
}

.cart-count {
  background: var(--color-primary);
  top: 1px;
}

/* -- Hero: light, commercial, product-first ------------------------------- */

.home-top {
  display: block;
  padding: 10px 5% 0;
}

.hero--light {
  color: var(--color-text);
  background: linear-gradient(135deg, #fff 0%, #fbf3ef 55%, var(--color-brand-tint) 100%);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
}

.hero--light .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: none;
  padding: 16px 16px 18px;
  height: auto;
}

.hero--light .hero__copy {
  min-width: 0;
}

.hero__eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(201, 31, 44, 0.09);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero--light .hero__title {
  font-size: 1.75rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.hero--light .hero__subtitle {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hero--light .hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(201, 31, 44, 0.22);
}

.hero--light .hero__cta:hover,
.hero--light .hero__cta:focus-visible {
  background: var(--color-primary-dark);
}

.hero--light .hero__cta--secondary {
  background: #fff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: none;
}

.hero--light .hero__cta--secondary:hover,
.hero--light .hero__cta--secondary:focus-visible {
  background: #fff;
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.hero--light .hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
}

.hero--light .cod-badge {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--color-hairline);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero--light .cod-badge__icon {
  color: var(--color-primary);
}

.hero__media {
  display: block;
  order: -1;
  width: 100%;
  height: 168px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-rest);
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.hero--light :focus-visible {
  outline-color: var(--color-accent);
}

/* -- Reassurance strip: facts only, one line, scrolls sideways on phones --- */

.reassure {
  margin: 12px 0 4px;
  padding: 0 5%;
}

.reassure__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.reassure__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
}

.reassure__icon {
  display: inline-flex;
  color: var(--color-primary);
}

.reassure__icon svg {
  width: 20px;
  height: 20px;
}

/* -- Category rail: photo tiles, horizontal scroll ------------------------ */

.categories--rail {
  padding-top: 18px;
  padding-bottom: 6px;
}

.category-rail {
  display: flex;
  gap: 12px;
  padding: 4px 5% 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.category-rail .category-card--tile {
  flex: 0 0 128px;
  padding: 6px 6px 10px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  scroll-snap-align: start;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.category-rail .category-card--tile:hover,
.category-rail .category-card--tile:focus-visible {
  border: 0;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.category-rail .category-card__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: var(--color-media);
}

.category-rail .category-card__label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
}

.category-rail .category-card__count {
  font-size: 0.75rem;
}

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

.product-section {
  padding-top: 22px;
  padding-bottom: 6px;
}

.product-section--deals {
  background: transparent;
  border: 0;
  margin-top: 0;
}

.product-section--deals .section-title {
  color: var(--color-text);
}

.featured-products {
  padding-top: 22px;
  padding-bottom: 12px;
}

.product-grid {
  gap: 12px;
}

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

.product-card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
  }
}

.product-card--priority {
  border: 0;
  box-shadow: var(--shadow-rest), 0 0 0 1.5px rgba(201, 31, 44, 0.55);
}

.product-card__image-wrap {
  background: var(--color-media);
}

.product-card__image {
  padding: 12px;
}

.product-card__image--placeholder {
  padding: 0;
  background: repeating-linear-gradient(45deg, #f6f3ee, #f6f3ee 10px, #efeae2 10px, #efeae2 20px);
}

.product-card--out-of-stock .product-card__image {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.product-card__badges {
  top: 10px;
  inset-inline-start: 10px;
  gap: 6px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 7px;
  line-height: 1.2;
}

.badge--discount {
  background: var(--color-primary);
  font-size: 0.75rem;
}

.badge--stock {
  background: var(--color-text-muted);
}

/* "Nouveau": a small outlined chip next to the name (never on the photo). */
.product-card__chips {
  display: flex;
  gap: 6px;
  min-height: 0;
}

.product-card__chips .badge--new {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.product-card__body {
  gap: 5px;
  padding: 12px 12px 12px;
}

.product-card__body .product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.product-card__body .product-card__price-row {
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
}

.product-card__body .product-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  white-space: nowrap;
}

.product-card__body .product-card__price--compare {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__discount {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(201, 31, 44, 0.1);
  color: var(--color-primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

/* "Stock limité": a factual line by the price, not a pill on the photo. */
.product-card__stock.badge {
  display: block;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--color-warning);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: normal;
}

.product-card__delivery {
  font-size: 0.8rem;
}

.product-card__cta {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-card--out-of-stock .product-card__cta {
  background: var(--color-text);
}

.product-card--skeleton {
  height: 300px;
  border-radius: var(--radius);
  box-shadow: none;
}

/* -- Flash Deal (per-product countdown, migration 0020) -------------------
   Purely presentational: the element, data-ends-at and the "HH:MM:SS" text of
   .promo-timer__value are unchanged; the digits sit in dark boxes. */

.flash-deal {
  color: #fff;
  background: linear-gradient(90deg, var(--color-primary) 0%, #e2542b 100%);
  border: 0;
  box-shadow: 0 4px 14px rgba(201, 31, 44, 0.2);
}

.flash-deal__tag {
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.flash-deal__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.flash-deal .promo-timer__label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.flash-deal .promo-timer__value {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.promo-timer__unit {
  display: inline-block;
  min-width: 2ch;
  margin: 0 2px;
  padding: 3px 4px;
  border-radius: 5px;
  background: var(--color-text);
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Card strip: full width of the card body, two rows on narrow cards. */
.flash-deal--card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 4px 8px;
  margin: 2px 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.flash-deal--card .flash-deal__tag {
  font-size: 0.72rem;
}

.flash-deal--card .promo-timer__label {
  font-size: 0.72rem;
}

.flash-deal--card .promo-timer__value {
  font-size: 0.82rem;
}

.flash-deal--card .promo-timer__unit {
  padding: 3px 3px;
  min-width: 2.1ch;
}

/* Product page band: larger, full width, near the price. */
.flash-deal--page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 14px 0 4px;
  padding: 12px 16px;
  border: 0;
  border-inline-start: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(201, 31, 44, 0.22);
}

.flash-deal--page .flash-deal__tag {
  font-size: 1rem;
}

.flash-deal--page .promo-timer__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.flash-deal--page .promo-timer__value {
  font-size: 1.5rem;
  letter-spacing: 0;
}

.flash-deal--page .promo-timer__unit {
  padding: 4px 7px;
  border-radius: 8px;
}

/* -- Homepage "how to order" + trust + brand ------------------------------ */

.how-to-order--home {
  padding: 22px 5% 8px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-to-order--home .section-head {
  padding: 0;
}

.how-to-order__steps--home {
  display: grid;
  gap: 10px;
}

.how-to-order__steps--home .how-to-order__step {
  padding: 14px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.how-to-order__steps--home h3 {
  font-size: 0.95rem;
}

.how-to-order__steps--home p {
  font-size: 0.86rem;
}

.trust-section--strip {
  padding-top: 18px;
  padding-bottom: 8px;
}

.trust-section--strip .trust-item {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.promo-banner {
  padding: 20px 5% 40px;
}

.promo-banner__inner {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.promo-banner__cta {
  border-radius: var(--radius-sm);
  padding: 12px 24px;
}

/* -- Catalogue / category: lighter filters --------------------------------- */

.page-header {
  padding-top: 22px;
}

.page-header__title {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.catalogue-toolbar__summary {
  padding: 6px 0;
}

.filter-toggle {
  border-color: var(--color-hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-rest);
}

.filter-panel {
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-rest);
  margin-bottom: 16px;
}

.filter-field label {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.filter-field input,
.filter-field select {
  padding: 9px 12px;
  border-color: var(--color-hairline);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.filter-apply {
  border-radius: var(--radius-sm);
  padding: 10px 18px;
}

.filter-reset {
  border-radius: var(--radius-sm);
  border-color: var(--color-hairline);
  padding: 10px 14px;
}

.load-more-btn {
  border-radius: var(--radius-sm);
}

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

.breadcrumb__list {
  font-size: 0.82rem;
}

.gallery__main {
  border: 0;
  border-radius: var(--radius);
  background: var(--color-media);
  box-shadow: var(--shadow-rest);
}

.gallery__thumb {
  border-radius: var(--radius-sm);
  border-color: var(--color-hairline);
}

.product-info__name {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-info__sku {
  font-size: 0.78rem;
}

.product-merch {
  margin-top: 10px;
}

.product-merch .badge--new {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.product-merch .badge--sale {
  background: var(--color-primary);
}

.product-merch .badge--low-stock {
  background: transparent;
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
}

.product-price {
  gap: 8px 10px;
  margin-top: 12px;
}

.product-price__current {
  font-size: 1.75rem;
  line-height: 1.1;
}

.product-price__compare {
  font-size: 1rem;
}

.product-price__discount .badge--discount {
  border-radius: 7px;
  font-size: 0.8rem;
}

.cod-badges {
  margin-top: 12px;
  gap: 6px;
}

.cod-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
}

.cod-badge__icon {
  color: var(--color-primary);
}

.product-stock {
  margin-top: 10px;
  font-size: 0.88rem;
}

/* COD order card: the main commercial component of the page. */
.order-card {
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  background: var(--color-surface);
}

.order-card__head {
  padding: 14px 18px;
  background: var(--color-text);
  color: #fff;
}

.order-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.order-card__lead {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.order-card .product-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 18px 0;
}

.order-card .product-buy__label {
  grid-column: auto;
  font-size: 0.9rem;
}

.order-card .qty {
  border-radius: var(--radius-sm);
  border-color: var(--color-hairline);
}

.order-card .order-form {
  margin: 0;
  padding: 14px 18px 18px;
}

.order-card .order-card__unavailable {
  margin: 0;
  padding: 16px 18px 18px;
}

.field__input {
  border-color: #cfc8bc;
  border-radius: var(--radius-sm);
}

.order-summary {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.order-form__submit {
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  box-shadow: 0 8px 20px rgba(201, 31, 44, 0.25);
}

.order-form__submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.order-sticky__cta {
  border-radius: var(--radius-sm);
  background: var(--color-primary);
}

.product-alt .product-buy__cta {
  border-radius: var(--radius-sm);
}

.product-more h2,
.reviews h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.product-trust {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.review-item,
.review-form {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.faq__item {
  border-bottom-color: var(--color-hairline);
}

/* -- Floating WhatsApp: smaller on phones so it never sits on a CTA ------- */
@media (max-width: 599px) {
  .wa-float {
    width: 48px;
    height: 48px;
  }

  .wa-float__icon {
    width: 26px;
    height: 26px;
  }
}

/* -- Phones (< 600px) ------------------------------------------------------- */
@media (max-width: 599px) {
  .topbar {
    font-size: 0.75rem;
    padding: 4px 4%;
    gap: 8px;
  }

  .header-main {
    row-gap: 6px;
    padding: 6px 4% 6px;
    min-height: 54px;
  }

  .search-form {
    padding-block: 0;
  }

  .search-form input {
    padding: 7px 0;
  }

  .search-form button {
    width: 36px;
    height: 36px;
  }

  .home-top {
    padding: 8px 4% 0;
  }

  .hero--light .hero__inner {
    padding: 12px 12px 14px;
    gap: 10px;
  }

  .hero__media {
    height: 150px;
  }

  .hero--light .hero__title {
    font-size: 1.5rem;
  }

  .hero--light .hero__subtitle {
    font-size: 0.92rem;
  }

  .hero__actions {
    margin-top: 12px;
  }

  .hero--light .hero__cta {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .hero--light .hero__cta--secondary {
    flex: 0 0 auto;
  }

  /* COD + delivery already sit in the reassurance strip right below. */
  .hero--light .hero__copy .hero__badges {
    display: none;
  }

  .reassure {
    padding: 0 4%;
  }

  .category-rail {
    padding-inline: 4%;
  }

  .category-rail .category-card--tile {
    flex-basis: 112px;
  }

  .section-head,
  .product-grid,
  .section-title {
    padding-left: 4%;
    padding-right: 4%;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card__body {
    padding: 10px 10px 10px;
  }

  .product-card__body .product-card__name {
    font-size: 0.9rem;
  }

  .product-card__body .product-card__price {
    font-size: 1.1rem;
  }

  .product-card__cta {
    min-height: 38px;
    font-size: 0.85rem;
  }

  .flash-deal--card {
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  .flash-deal--page .promo-timer__value {
    font-size: 1.35rem;
  }

  .flash-deal--page {
    padding: 10px 12px;
  }

  .product-info__name {
    font-size: 1.4rem;
  }

  .product-price__current {
    font-size: 1.6rem;
  }

  .how-to-order--home,
  .promo-banner {
    padding-left: 4%;
    padding-right: 4%;
  }

  .trust-section--strip {
    padding-left: 4%;
    padding-right: 4%;
  }
}

/* -- Tablet (600px+) --------------------------------------------------------- */
@media (min-width: 600px) {
  .hero--light .hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
  }

  .hero__media {
    order: 0;
    height: 220px;
    justify-self: end;
    width: 100%;
    max-width: 300px;
  }

  .hero--light .hero__title {
    font-size: 2.1rem;
  }

  .reassure__list {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }

  .how-to-order__steps--home {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    gap: 16px;
  }
}

/* -- Desktop (900px+) -------------------------------------------------------- */
@media (min-width: 900px) {
  .section-title {
    font-size: 1.625rem;
  }

  .header-main {
    min-height: 68px;
    padding: 10px 5%;
  }

  .search-form {
    border-color: var(--color-hairline);
    background: var(--color-bg);
  }

  .home-top {
    padding-top: 16px;
  }

  .hero--light .hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
    gap: 32px;
    padding: 30px 40px;
  }

  .hero--light .hero__title {
    font-size: 2.6rem;
  }

  .hero--light .hero__subtitle {
    font-size: 1.05rem;
    max-width: 44ch;
  }

  .hero__media {
    height: 250px;
    max-width: 320px;
  }

  .hero--light .hero__cta {
    min-height: 48px;
    padding: 0 26px;
  }

  .reassure__item {
    font-size: 0.92rem;
    padding: 7px 16px;
  }

  .category-rail .category-card--tile {
    flex-basis: 150px;
  }

  .product-section {
    padding-top: 30px;
  }

  .featured-products {
    padding-top: 30px;
  }

  .product-card__body {
    padding: 14px 14px 14px;
  }

  .product-card__body .product-card__name {
    font-size: 0.95rem;
  }

  .product-card__body .product-card__price {
    font-size: 1.3rem;
  }

  .product {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 40px;
  }

  .product-info__name {
    font-size: 1.85rem;
  }

  .product-price__current {
    font-size: 1.85rem;
  }

  .order-card {
    padding: 0;
  }

  .order-card .product-buy {
    padding: 16px 22px 0;
  }

  .order-card .order-form {
    padding: 16px 22px 22px;
  }

  .order-card__head {
    padding: 16px 22px;
  }

  .flash-deal--page .promo-timer__value {
    font-size: 1.7rem;
  }

  .how-to-order--home {
    padding-top: 30px;
  }
}

@media (min-width: 1200px) {
  .hero--light .hero__title {
    font-size: 2.75rem;
  }

  .hero__media {
    height: 270px;
    max-width: 340px;
  }

  .reassure {
    padding-left: max(5%, calc((100% - var(--max-width)) / 2));
    padding-right: max(5%, calc((100% - var(--max-width)) / 2));
  }

  .category-rail {
    padding-left: 0;
    padding-right: 0;
  }

  .categories--rail {
    padding-left: max(5%, calc((100% - var(--max-width)) / 2));
    padding-right: max(5%, calc((100% - var(--max-width)) / 2));
  }

  .categories--rail .section-head {
    padding-left: 0;
    padding-right: 0;
  }

  .how-to-order--home {
    padding-left: 0;
    padding-right: 0;
  }
}

/* -- Arabic: same design, tuned for the script ----------------------------- */
:lang(ar) .section-title,
:lang(ar) .hero--light .hero__title,
:lang(ar) .product-info__name,
:lang(ar) .page-header__title,
:lang(ar) .flash-deal__tag,
:lang(ar) .filter-field label {
  letter-spacing: 0;
}

:lang(ar) .hero--light .hero__title {
  line-height: 1.3;
}

:lang(ar) .product-card__body .product-card__name {
  font-size: 1rem;
  line-height: 1.4;
}

:lang(ar) .reassure__item,
:lang(ar) .cod-badge {
  font-size: 0.9rem;
}

:lang(ar) .order-card__title {
  font-size: 1.15rem;
}

:lang(ar) .primary-nav a {
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .category-rail .category-card--tile {
    transition: none;
  }
}

/* -- Redesign V1 — pass 2 refinements ------------------------------------- */

/* Narrow cards (2-column phones): the strip stacks — tag on the first line,
   the boxed timer alone on the second (the label stays in the DOM for
   assistive tech). Nothing may spill out of the card. */
@media (max-width: 599px) {
  .flash-deal--card .flash-deal__timer {
    flex: 1 1 100%;
    justify-content: center;
    gap: 4px;
  }

  .flash-deal--card .promo-timer__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .flash-deal--card .promo-timer__value {
    font-size: 0.86rem;
  }

  .flash-deal--card .promo-timer__unit {
    min-width: 2ch;
    margin: 0 1px;
    padding: 3px 4px;
  }

  .flash-deal--card .flash-deal__tag {
    flex: 1 1 100%;
    text-align: center;
  }

  /* Slimmer sticky stack: bar 26px + header 50px + search 40px. */
  .topbar {
    min-height: 26px;
    padding: 3px 4%;
  }

  .header-main {
    min-height: 50px;
    padding: 4px 4% 6px;
    row-gap: 4px;
  }

  .search-form input {
    padding: 6px 0;
  }

  .search-form button {
    width: 32px;
    height: 32px;
  }

  .menu-toggle,
  .header-action {
    width: 38px;
    height: 38px;
  }
}

/* Cards between 600 and 900px (3 columns on tablets) keep one row when it fits. */
@media (min-width: 600px) {
  .flash-deal--card .flash-deal__timer {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}

/* Hero: balance copy and media. */
@media (min-width: 900px) {
  .hero--light .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .hero__media {
    height: 280px;
    max-width: 380px;
    width: 100%;
  }

  /* Catalogue filters on one row. */
  .filter-field {
    flex: 1 1 150px;
  }

  .filter-field--price {
    flex: 1 1 120px;
  }
}


/* -- Final redesign (2026-09-27): brand positioning, intents, gift ideas,
      homepage reviews, footer brand line, 4:5 card media ------------------ */

/* Card media: portrait 4:5 (contain, never cropped) — a taller, more
   commercial frame; square and landscape supplier images sit centred on the
   neutral surface. */
.product-card__image-wrap {
  aspect-ratio: 4 / 5;
}

.product-card--skeleton {
  height: 340px;
}

.hero__eyebrow {
  font-size: 0.8rem;
}

.hero__eyebrow-brand {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero--light .hero__subtitle {
  max-width: 52ch;
}

/* Two shopping intents */
.intents {
  padding: 18px 5% 4px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.intents__grid {
  display: grid;
  gap: 12px;
}

.intent {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.intent--gifts {
  background: linear-gradient(135deg, #fff 0%, var(--color-brand-tint) 100%);
}

@media (hover: hover) and (pointer: fine) {
  .intent:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
  }
}

.intent__icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-media);
  font-size: 1.5rem;
}

.intent--gifts .intent__icon {
  background: rgba(201, 31, 44, 0.1);
}

.intent__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.intent__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.intent__text {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.intent__arrow {
  margin-inline-start: auto;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

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

/* Gift ideas by budget (real catalogue price filters) */
.gift-ideas {
  padding: 22px 5% 6px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gift-ideas .section-head {
  padding: 0;
  margin-bottom: 6px;
}

.gift-ideas__intro {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.gift-ideas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.budget-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.budget-tile:hover,
.budget-tile:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-rest);
}

.budget-tile__icon {
  font-size: 1.1rem;
}

/* Homepage reviews (approved rows only) */
.home-reviews {
  padding: 22px 5% 6px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-reviews .section-head {
  padding: 0;
}

.home-reviews__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-review {
  padding: 14px 16px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
}

.home-review .review-item__comment {
  margin-top: 6px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-review__product {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Footer: consistent with the new surfaces; brand line */
.site-footer {
  background: #1f2a28;
  padding-top: 44px;
}

.footer__group h3 {
  letter-spacing: 0.04em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.footer__brand {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__brand-logo {
  font-weight: 800;
  color: #fff;
}

.footer__brand-line {
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 600px) {
  .intents__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 599px) {
  .intents,
  .gift-ideas,
  .home-reviews {
    padding-left: 4%;
    padding-right: 4%;
  }

  .product-card--skeleton {
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .intents,
  .gift-ideas,
  .home-reviews {
    padding-left: 0;
    padding-right: 0;
  }
}

:lang(ar) .intent__title {
  font-size: 1.1rem;
}

:lang(ar) .budget-tile {
  font-size: 0.95rem;
}


/* -- Refinement pass (2026-09-27): premium decorative hero, product
      composition, tinted section bands, stronger category tiles ------------ */

.hero--light {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 31, 44, 0.09) 0%, rgba(201, 31, 44, 0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(233, 162, 107, 0.2) 0%, rgba(233, 162, 107, 0) 60%),
    linear-gradient(135deg, #fffdfa 0%, #fbf3ee 60%, #f8e9e6 100%);
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.hero--light .hero__inner {
  position: relative;
  z-index: 1;
}

.hero--light .hero__copy {
  position: relative;
  z-index: 2;
}

.hero--light .hero__title {
  font-size: 1.55rem;
}

.hero--light .hero__subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero__eyebrow {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 31, 44, 0.18);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-rest);
}

/* Product composition: one large tile + up to two small ones, floating on
   white cards with soft shadows. Real catalogue photos only. */
.hero__media {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  order: -1;
  width: 100%;
  height: 176px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.hero__media--1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hero__media--2 {
  grid-template-rows: 1fr;
}

.hero__tile {
  display: block;
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 8px 22px rgba(120, 40, 40, 0.14);
  overflow: hidden;
  border: 1px solid rgba(201, 31, 44, 0.08);
}

.hero__tile--1 {
  grid-row: 1 / -1;
}

.hero__tile .hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.hero__tile--1 .hero__image {
  padding: 12px;
}

.hero__media--1 .hero__tile--1,
.hero__media--2 .hero__tile {
  grid-row: auto;
}

/* Section bands: alternate soft tints and hairlines instead of one long
   beige page. */
.reassure {
  margin: 14px 0 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.categories--rail {
  padding-top: 22px;
  padding-bottom: 10px;
}

.category-rail .category-card--tile {
  flex-basis: 160px;
  padding: 0 0 12px;
  overflow: hidden;
}

.category-rail .category-card__image {
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 4 / 5;
}

.category-rail .category-card__label {
  margin-top: 8px;
  padding: 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.category-rail .category-card__count {
  padding: 0 10px;
}

.product-section--deals {
  margin-top: 16px;
  padding-top: 26px;
  padding-bottom: 22px;
  background: linear-gradient(180deg, #fbf3ef 0%, #fdf7f4 100%);
  border-top: 1px solid rgba(201, 31, 44, 0.08);
  border-bottom: 1px solid rgba(201, 31, 44, 0.08);
}

.intents {
  padding-top: 24px;
}

.featured-products {
  padding-top: 26px;
  padding-bottom: 20px;
}

.gift-ideas {
  position: relative;
  margin-top: 8px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: linear-gradient(135deg, #fff 0%, #fbf3ef 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
}

.gift-ideas::after {
  content: "🎁";
  position: absolute;
  inset-inline-end: 18px;
  top: 10px;
  font-size: 3rem;
  opacity: 0.12;
  pointer-events: none;
}

.gift-ideas .section-head,
.gift-ideas__intro,
.gift-ideas__grid {
  padding-left: 18px;
  padding-right: 18px;
}

.how-to-order--home {
  padding-top: 30px;
  padding-bottom: 10px;
}

.home-reviews {
  padding-top: 26px;
}

.trust-section--strip {
  padding-top: 26px;
}

.promo-banner {
  padding-top: 26px;
}

.promo-banner__inner {
  background: linear-gradient(135deg, #fbf3ef 0%, var(--color-brand-tint) 100%);
}

@media (max-width: 599px) {
  .hero--light .hero__inner {
    padding: 12px 12px 14px;
    gap: 10px;
  }

  .hero__media {
    height: 168px;
    gap: 8px;
  }

  .hero--light .hero__title {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .hero--light .hero__subtitle {
    margin-top: 6px;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
    margin-bottom: 8px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__actions {
    margin-top: 10px;
    flex-wrap: nowrap;
  }

  .hero--light .hero__cta {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .category-rail .category-card--tile {
    flex-basis: 124px;
  }

  .gift-ideas::after {
    font-size: 2.2rem;
  }
}

@media (min-width: 600px) {
  .hero__media {
    order: 0;
    height: 230px;
    max-width: 330px;
    justify-self: end;
  }

  .hero--light .hero__title {
    font-size: 2rem;
  }
}

@media (min-width: 900px) {
  .hero--light .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding: 30px 40px 32px;
    gap: 28px;
  }

  .hero--light .hero__title {
    font-size: 2.35rem;
    line-height: 1.15;
  }

  .hero--light .hero__subtitle {
    font-size: 1rem;
    max-width: 48ch;
  }

  .hero__media {
    height: 290px;
    max-width: 420px;
  }

  .category-rail .category-card--tile {
    flex-basis: 176px;
  }
}

@media (min-width: 1200px) {
  .hero--light .hero__title {
    font-size: 2.6rem;
  }

  .hero__media {
    height: 300px;
    max-width: 440px;
  }
}

:lang(ar) .hero--light .hero__title {
  line-height: 1.32;
}

@media (prefers-reduced-motion: reduce) {
  .hero__art {
    display: block;
  }
}

/* Decorative hero motifs: a touch stronger so the composition reads on
   every screen, still far below the copy's contrast. */
.hero__art .hero__art-flowers {
  opacity: 0.42;
}

.hero__art .hero__art-gifts {
  opacity: 0.45;
}


/* -- Under the hero: white service bar + round category rail --------------- */

/* ROW 1 — one white rounded card, equal service items (title + subline). */
.reassure {
  margin: 14px 0 0;
  padding-top: 0;
  padding-bottom: 0;
}

.reassure__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  overflow: visible;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  border: 1px solid rgba(201, 31, 44, 0.06);
  scroll-snap-type: none;
}

.reassure__item {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  white-space: normal;
  font-size: 0.86rem;
  scroll-snap-align: none;
}

.reassure__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-sm);
}

.reassure__link:hover .reassure__text,
.reassure__link:focus-visible .reassure__text {
  color: var(--color-primary);
}

.reassure__icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(201, 31, 44, 0.08);
  color: var(--color-primary);
}

.reassure__icon svg {
  width: 22px;
  height: 22px;
}

.reassure__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.reassure__text {
  font-weight: 700;
  line-height: 1.25;
}

.reassure__sub {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ROW 2 — round category medallions with the name underneath. */
.categories--round {
  padding-top: 16px;
  padding-bottom: 4px;
}

.categories--round .category-rail {
  display: flex;
  gap: 8px;
  padding: 8px 4px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories--round .category-rail::-webkit-scrollbar {
  display: none;
}

.categories--round .category-card--round {
  flex: 0 0 96px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.18s ease;
}

.categories--round .category-card--round:hover,
.categories--round .category-card--round:focus-visible {
  border: 0;
  box-shadow: none;
  transform: none;
}

.category-card__circle {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f3ece4;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 22, 0.05), 0 4px 12px rgba(120, 40, 40, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card__circle .category-card__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
}

.category-card__circle--initial {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.category-card__circle--tone-0 { background: #fbe9e6; }
.category-card__circle--tone-1 { background: #eef3ea; }
.category-card__circle--tone-2 { background: #fbf1df; }
.category-card__circle--tone-3 { background: #eaf0f6; }

.category-card__circle--all {
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(201, 31, 44, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .category-card--round:hover .category-card__circle,
  .category-card--round:focus-visible .category-card__circle {
    transform: translateY(-3px) scale(1.04);
    box-shadow: inset 0 0 0 1px rgba(20, 24, 22, 0.05), 0 10px 22px rgba(120, 40, 40, 0.16);
  }

  .category-card--round:hover .category-card__circle--all {
    box-shadow: 0 10px 22px rgba(201, 31, 44, 0.36);
  }
}

.categories--round .category-card__label {
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
}

.categories--round .category-card__count {
  padding: 0;
  font-size: 0.72rem;
}

.categories--round .category-card--all .category-card__label {
  color: var(--color-primary-dark);
}

@media (min-width: 600px) {
  .reassure__list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .reassure__item + .reassure__item {
    border-inline-start: 1px solid var(--color-hairline);
    border-radius: 0;
  }

  .categories--round .category-rail {
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .categories--round .category-card--round {
    flex-basis: 116px;
  }

  .category-card__circle {
    width: 88px;
    height: 88px;
  }
}

@media (min-width: 900px) {
  .reassure__item {
    min-height: 72px;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .categories--round .category-rail {
    gap: 30px;
  }

  .categories--round .category-card--round {
    flex-basis: 128px;
  }

  .category-card__circle {
    width: 100px;
    height: 100px;
  }

  .categories--round .category-card__label {
    font-size: 0.9rem;
  }
}

@media (max-width: 599px) {
  .reassure__item:nth-child(odd) {
    border-inline-end: 1px solid var(--color-hairline);
  }

  .reassure__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-hairline);
  }

  .reassure__item:last-child:nth-child(odd) {
    border-inline-end: 0;
    grid-column: 1 / -1;
  }
}

:lang(ar) .reassure__text {
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .category-card__circle,
  .categories--round .category-card--round {
    transition: none;
  }
}

/* Category medallions with an icon (emoji on a pastel disc). */
.category-card__circle--icon {
  font-size: 2rem;
  line-height: 1;
}

@media (min-width: 900px) {
  .category-card__circle--icon {
    font-size: 2.6rem;
  }
}

.category-card--gifts .category-card__circle {
  background: #fbe9e6;
  box-shadow: inset 0 0 0 1px rgba(201, 31, 44, 0.12), 0 4px 12px rgba(120, 40, 40, 0.1);
}


/* -- Trust / service bar (reference-driven): one premium white bar that
      overlaps the hero, equal columns with thin separators, side icon,
      bold title + muted subline; scrollable cards on phones. ---------------- */

.home-top {
  position: relative;
  z-index: 1;
}

.hero--light {
  padding-bottom: 26px;
}

.reassure {
  position: relative;
  z-index: 2;
  margin: -30px 0 0;
  padding: 0 5%;
}

.reassure__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  gap: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 12px 34px rgba(120, 40, 40, 0.12), 0 1px 2px rgba(20, 24, 22, 0.05);
}

.reassure__item,
.reassure__item + .reassure__item {
  border: 0;
  border-radius: 0;
  min-height: 84px;
  padding: 12px 18px;
  gap: 14px;
}

.reassure__item + .reassure__item {
  border-inline-start: 1px solid var(--color-hairline);
}

.reassure__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(201, 31, 44, 0.08);
  color: var(--color-primary);
}

.reassure__icon svg {
  width: 30px;
  height: 30px;
}

.reassure__icon--whatsapp {
  background: #25d366;
  color: #fff;
  border-radius: 50%;
}

.reassure__text {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.reassure__sub {
  font-size: 0.82rem;
  margin-top: 2px;
}

/* Category rail sits right under the bar, part of the same composition. */
.categories--round {
  padding-top: 22px;
  padding-bottom: 8px;
}

@media (max-width: 899px) {
  .reassure__item,
  .reassure__item + .reassure__item {
    padding: 10px 14px;
    min-height: 76px;
  }

  .reassure__icon {
    width: 46px;
    height: 46px;
  }

  .reassure__icon svg {
    width: 26px;
    height: 26px;
  }

  .reassure__text {
    font-size: 0.9rem;
  }

  .reassure__sub {
    font-size: 0.78rem;
  }
}

/* Phones: horizontally scrollable service cards (first fully visible, the
   next one peeking), hidden scrollbar, RTL-safe (logical flow). */
@media (max-width: 599px) {
  .reassure {
    margin-top: -22px;
    padding: 0;
  }

  .reassure__list {
    display: flex;
    grid-auto-flow: initial;
    gap: 10px;
    padding: 0 4% 6px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .reassure__item,
  .reassure__item + .reassure__item,
  .reassure__item:nth-child(odd),
  .reassure__item:nth-child(-n + 2),
  .reassure__item:last-child:nth-child(odd) {
    flex: 0 0 78%;
    max-width: 300px;
    min-height: 74px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: 0 8px 22px rgba(120, 40, 40, 0.12);
    scroll-snap-align: start;
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .hero--light {
    padding-bottom: 30px;
  }

  .reassure {
    margin-top: -34px;
  }

  .reassure__item,
  .reassure__item + .reassure__item {
    min-height: 92px;
    padding: 14px 22px;
  }
}

@media (min-width: 1200px) {
  .reassure {
    padding-left: max(5%, calc((100% - var(--max-width)) / 2));
    padding-right: max(5%, calc((100% - var(--max-width)) / 2));
  }
}

:lang(ar) .reassure__text {
  font-size: 1.02rem;
}

:lang(ar) .reassure__sub {
  font-size: 0.86rem;
}


/* -- 5-item service bar + dense 9-entry category rail (reference spec) ----- */

.hero--light {
  padding-bottom: 34px;
}

.reassure {
  margin-top: -36px;
}

.reassure__list {
  grid-auto-columns: minmax(0, 1fr);
  padding: 4px 6px;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(120, 40, 40, 0.14), 0 1px 2px rgba(20, 24, 22, 0.05);
}

.reassure__item,
.reassure__item + .reassure__item {
  min-height: 88px;
  padding: 12px 14px;
  gap: 12px;
}

.reassure__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.reassure__icon svg {
  width: 30px;
  height: 30px;
}

.reassure__text {
  font-size: 0.92rem;
}

.reassure__sub {
  font-size: 0.78rem;
}

@media (min-width: 1200px) {
  .reassure__item,
  .reassure__item + .reassure__item {
    padding: 14px 18px;
  }

  .reassure__text {
    font-size: 0.98rem;
  }

  .reassure__sub {
    font-size: 0.82rem;
  }
}

/* Rail: 9 medallions using the whole content width. */
.categories--round {
  padding-top: 20px;
  padding-bottom: 6px;
}

.categories--round .category-rail {
  gap: 6px;
  padding: 6px 2px 10px;
}

.categories--round .category-card--round {
  flex: 0 0 84px;
  gap: 6px;
  padding: 4px 2px;
}

.category-card__circle {
  width: 66px;
  height: 66px;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 22, 0.04), 0 6px 16px rgba(120, 40, 40, 0.1);
}

.category-card__circle--art {
  padding: 13px;
}

.category-card__circle--art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.category-card__circle--tone-0 { background: #fbe9e6; }
.category-card__circle--tone-1 { background: #fbf1df; }
.category-card__circle--tone-2 { background: #f3e8f5; }
.category-card__circle--tone-3 { background: #e8f1f8; }
.category-card__circle--tone-4 { background: #eaf3e6; }
.category-card__circle--tone-5 { background: #f6ecdf; }

.category-card--placeholder {
  cursor: default;
  opacity: 0.92;
}

.categories--round .category-card__label {
  font-size: 0.8rem;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .categories--round .category-rail {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: visible;
  }

  .categories--round .category-card--round {
    flex: 1 1 0;
    min-width: 0;
  }

  .category-card__circle {
    width: 74px;
    height: 74px;
  }
}

@media (min-width: 900px) {
  .categories--round .category-rail {
    gap: 12px;
  }

  .category-card__circle {
    width: 88px;
    height: 88px;
  }

  .category-card__circle--art {
    padding: 18px;
  }

  .categories--round .category-card__label {
    font-size: 0.88rem;
  }
}

@media (max-width: 599px) {
  .categories--round .category-rail {
    gap: 4px;
    padding-inline: 4%;
    scroll-padding-inline: 4%;
  }

  .categories--round .category-card--round {
    flex: 0 0 78px;
    scroll-snap-align: start;
  }

  .category-card__circle {
    width: 62px;
    height: 62px;
  }

  .category-card__circle--art {
    padding: 12px;
  }

  .categories--round .category-card__label {
    font-size: 0.76rem;
  }

  .categories--round .category-card__count {
    font-size: 0.68rem;
  }
}


/* -- Animated hero scene (2026-09-28): gift boxes, ribbons, roses, petals,
      hearts, sparkles. Inline SVG, CSS transform/opacity animations only
      (compositor-friendly), slow and subtle; static under
      prefers-reduced-motion; fewer moving pieces on phones. ---------------- */

.hero-scene {
  position: relative;
  z-index: 1;
  order: -1;
  width: 100%;
  height: 176px;
  pointer-events: none;
}

.hero-scene__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

[dir="rtl"] .hero-scene__svg {
  transform: scaleX(-1);
}

.hero-scene__float,
.hero-scene__sway,
.hero-scene__petal,
.hero-scene__heart,
.hero-scene__spark {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.hero-scene__sway {
  transform-origin: 50% 100%;
}

/* Petals, hearts and sparkles are drawn around (0,0) inside a positioned
   <g class="hero-scene__anchor">, so they rotate / scale about their own
   centre (a <use> does not honour fill-box origins everywhere). */
.hero-scene__petal,
.hero-scene__heart,
.hero-scene__spark {
  transform-box: view-box;
  transform-origin: 0 0;
}

.hero-scene__float--a { animation: gm-float 7s ease-in-out infinite; }
.hero-scene__float--b { animation: gm-float 8.5s ease-in-out -2s infinite; }
.hero-scene__float--c { animation: gm-float 9.5s ease-in-out -4s infinite; }

.hero-scene__sway--a { animation: gm-sway 9s ease-in-out infinite; }
.hero-scene__sway--b { animation: gm-sway 11s ease-in-out -3s infinite reverse; }
.hero-scene__sway--c { animation: gm-sway 10s ease-in-out -5s infinite; }

.hero-scene__petal { opacity: 0; animation: gm-petal 14s linear infinite; }
.hero-scene__petal--2 { animation-duration: 17s; animation-delay: -5s; }
.hero-scene__petal--3 { animation-duration: 15s; animation-delay: -9s; }
.hero-scene__petal--4 { animation-duration: 19s; animation-delay: -3s; }
.hero-scene__petal--5 { animation-duration: 16s; animation-delay: -12s; }
.hero-scene__petal--6 { animation-duration: 18s; animation-delay: -7s; }

.hero-scene__heart { opacity: 0; animation: gm-heart 11s ease-in-out infinite; }
.hero-scene__heart--2 { animation-duration: 13s; animation-delay: -4s; }
.hero-scene__heart--3 { animation-duration: 12s; animation-delay: -8s; }

.hero-scene__spark { opacity: 0; animation: gm-spark 4.5s ease-in-out infinite; }
.hero-scene__spark--2 { animation-duration: 5.5s; animation-delay: -1.5s; }
.hero-scene__spark--3 { animation-duration: 6s; animation-delay: -3s; }
.hero-scene__spark--4 { animation-duration: 5s; animation-delay: -2.2s; }

@keyframes gm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes gm-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes gm-petal {
  0% { transform: translate(0, -10px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.85; }
  85% { opacity: 0.7; }
  100% { transform: translate(-46px, 270px) rotate(210deg); opacity: 0; }
}

@keyframes gm-heart {
  0% { transform: translateY(18px) scale(0.7); opacity: 0; }
  25% { opacity: 0.75; }
  70% { opacity: 0.55; }
  100% { transform: translateY(-46px) scale(1.05); opacity: 0; }
}

@keyframes gm-spark {
  0%, 100% { transform: scale(0.3) rotate(0deg); opacity: 0; }
  45% { transform: scale(1) rotate(45deg); opacity: 0.95; }
  60% { transform: scale(0.85) rotate(60deg); opacity: 0.6; }
}

/* Phones: fewer decorative moving elements. */
@media (max-width: 599px) {
  .hero-scene {
    height: 168px;
  }

  .hero-scene__extra {
    display: none;
  }
}

@media (min-width: 600px) {
  .hero-scene {
    order: 0;
    height: 240px;
    max-width: 360px;
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .hero-scene {
    height: 300px;
    max-width: 440px;
  }
}

/* Reduced motion: the same composition, completely still; drifting pieces
   (which start invisible) are shown at rest instead. */
@media (prefers-reduced-motion: reduce) {
  .hero-scene__float,
  .hero-scene__sway,
  .hero-scene__petal,
  .hero-scene__heart,
  .hero-scene__spark {
    animation: none !important;
    will-change: auto;
  }

  .hero-scene__petal,
  .hero-scene__heart {
    opacity: 0.6;
  }

  .hero-scene__spark {
    opacity: 0.8;
  }
}

/* -- Information pages (about, delivery, returns, privacy, terms) ----------
   Same card as the contact page; plain text, no new visual language. */
.info-content {
  margin-top: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 18px 18px;
  max-width: 760px;
}

.info-section h2 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
}

.info-section p {
  line-height: 1.7;
  margin: 0 0 10px;
}

.info-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.info-contact .contact-list {
  padding: 4px 0;
}
