/* الأناقة / Elegance Home Textile — storefront (dark / Wabix-inspired theme: lime accent, Bebas + DM Sans) */
/* Google Fonts: loaded once from HTML (<link>) + preconnect — avoids chained blocking @imports */

:root {
  /* Core tokens (reference design) */
  --wx-bg: #0a0a0a;
  --wx-bg-soft: #121212;
  --wx-text: #f2f2ec;
  --wx-muted: #b9b9b2;
  --wx-accent: #c8ff00;
  --wx-on-accent: #0a0a0a;
  --wx-line: #2a2a2a;
  --wx-danger: #ff5d5d;

  /* Legacy names → dark theme */
  --color-cream: var(--wx-bg);
  --color-beige: #171717;
  --color-walnut: #8f8f88;
  --color-walnut-dark: #050505;
  --color-charcoal: var(--wx-text);
  --color-charcoal-soft: var(--wx-muted);
  --color-gold: var(--wx-accent);
  --color-gold-light: #d4ff4d;
  --white: var(--wx-bg-soft);
  --gray-200: rgba(255, 255, 255, 0.1);
  --gray-400: #8a8984;
  --gray-600: var(--wx-muted);
  --gray-700: #d4d4cc;
  --gray-800: #ecece6;
  --success: #5ecf8a;
  --danger: var(--wx-danger);
  --pink-50: rgba(255, 255, 255, 0.05);
  --rose-700: var(--wx-accent);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 36px;
  --max-width: 1200px;
  --max-width-wide: 1320px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  --transition: 0.22s ease;
  --transition-slow: 0.35s ease;
  --font-heading: "Bebas Neue", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --touch-target: 44px;
  --container-pad-x: var(--space-3);
  --section-pad-y: var(--space-6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  color-scheme: dark;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.2rem + 1.4vw, var(--font-size-base));
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--color-cream);
  min-height: 100vh;
  position: relative;
}

#main-content {
  min-width: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200, 255, 0, 0.06), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(200, 255, 0, 0.05), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.03), transparent 45%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.06;
  background-image: repeating-radial-gradient(circle at 0 0, #fff 0 1px, transparent 1px 2px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

[dir="rtl"] body,
[dir="rtl"] .section-title,
[dir="rtl"] .hero-title,
[dir="rtl"] .home-hero__title,
[dir="rtl"] .home-section__title,
[dir="rtl"] .logo-text {
  font-family: "Tajawal", var(--font-body);
}

h1, h2, h3, h4, .section-title, .hero-title, .footer-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-charcoal);
  letter-spacing: 0.04em;
}

.section-title,
.hero-title,
.footer-title,
.page-hero h1,
.filters-sidebar h3 {
  text-transform: uppercase;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad-x);
  min-width: 0;
}

@media (min-width: 768px) {
  :root {
    --container-pad-x: var(--space-5);
    --section-pad-y: var(--space-8);
  }

  .container {
    padding: 0 var(--container-pad-x);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: var(--max-width-wide);
    padding: 0 var(--space-6);
  }
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  min-height: 56px;
  min-width: 0;
}

@media (min-width: 768px) {
  .nav {
    gap: var(--space-4);
    padding: var(--space-3) 0;
    min-height: 64px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  justify-content: center;
}

@media (min-width: 768px) {
  .logo {
    flex: 0 1 auto;
    justify-content: flex-start;
  }
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-charcoal);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  line-height: 1.05;
  text-align: center;
}

.logo-text__brand {
  display: block;
  font-family: "Inter", var(--font-body);
  font-size: clamp(1.1rem, 2.65vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

[dir="rtl"] .logo-text__brand {
  font-family: "Inter", var(--font-body);
}

.logo-text__tagline {
  display: block;
  font-family: "Inter", var(--font-body);
  font-size: clamp(0.48rem, 1.05vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1.2;
  margin-top: 0.02em;
}

.logo-text__tagline:empty {
  display: none;
}

.logo-text:has(.logo-text__tagline:empty) {
  gap: 0;
}

[dir="rtl"] .logo-text__tagline {
  font-family: "Inter", var(--font-body);
}

a.logo:visited {
  color: var(--wx-text);
}

a.logo:visited .logo-text__tagline {
  color: var(--color-gold);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:visited {
  color: var(--gray-600);
}

.nav-links a:hover,
.nav-links a:hover:visited,
.nav-links a.active,
.nav-links a.active:visited {
  color: var(--wx-text);
  border-bottom-color: var(--color-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-actions {
    gap: var(--space-3);
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-target);
  height: var(--touch-target);
  flex-shrink: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: transparent;
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--wx-text);
  border-radius: 1px;
  transition: transform var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(0, 0, 0, 0.58);
  z-index: 9998;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 1023px) {
  /* backdrop-filter on ancestors breaks position:fixed → viewport; keep drawer/overlay full-screen */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-home .header--home > .container.nav,
  body.page-home:not(.page-index) .header--home > .container.nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: var(--touch-target);
    height: var(--touch-target);
    padding: 0;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(32, 32, 32, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--wx-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition), border-color var(--transition);
  }

  .nav-drawer-close:hover {
    background: rgba(48, 48, 48, 0.72);
    border-color: var(--color-gold);
  }

  [dir="ltr"] .nav-drawer-close {
    left: auto;
    right: var(--space-3);
  }

  /* Drawer: RTL slides from physical right — frosted card (not solid white) */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--space-4);
    bottom: auto;
    right: var(--space-4);
    left: auto;
    width: min(320px, calc(100vw - var(--space-4) * 2));
    max-width: 100vw;
    max-height: min(calc(100dvh - var(--space-8)), calc(100vh - var(--space-8)));
    height: fit-content;
    min-height: 0;
    margin: 0;
    padding: calc(var(--touch-target) + var(--space-5)) var(--space-5) var(--space-5);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(18, 18, 18, 0.48);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    gap: var(--space-2);
    z-index: 9999;
    transform: translateX(calc(100% + var(--space-4)));
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s ease;
    -webkit-overflow-scrolling: touch;
  }

  [dir="ltr"] .nav-links {
    right: auto;
    left: var(--space-4);
    transform: translateX(calc(-100% - var(--space-4)));
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links.active a {
    display: flex;
    align-items: center;
    min-height: var(--touch-target);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    border-bottom: none;
    color: rgba(242, 242, 236, 0.92);
  }

  .nav-links.active a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-links.active a:visited {
    color: rgba(242, 242, 236, 0.88);
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .nav-drawer-close {
    display: none !important;
  }

  .nav-links {
    display: flex;
    position: static;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
  }
}

.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--wx-text);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color var(--transition), transform var(--transition);
}

.cart-icon-link:hover {
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.cart-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

[dir="rtl"] .cart-icon-link .cart-badge {
  right: auto;
  left: -2px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--color-gold);
  color: var(--wx-on-accent);
  border-radius: var(--radius-full);
  display: none;
}

.cart-badge:not([style*="display: none"]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge.pulse {
  animation: badgePulse 0.35s ease;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Lang dropdown */
.lang-dropdown {
  position: relative;
}

.pill,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch-target);
  padding: 8px 14px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--color-charcoal);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pill:hover,
.lang-toggle:hover {
  border-color: var(--color-gold);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
  padding: var(--space-2);
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-dropdown.active .lang-menu {
  display: block;
}

.lang-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: var(--touch-target);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  font-size: var(--font-size-sm);
}

.lang-menu-item:hover,
.lang-menu-item.active {
  background: var(--pink-50);
}

.lang-code {
  font-size: var(--font-size-xs);
  color: var(--gray-400);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--home {
  background: var(--color-walnut-dark) center/cover no-repeat;
  color: var(--white);
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(42, 42, 42, 0.75) 0%, rgba(42, 42, 42, 0.35) 55%, rgba(92, 74, 61, 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-8) 0;
}

.hero-simple .hero-inner {
  text-align: center;
}

.hero-card {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-6);
}

.hero--home .hero-card {
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero--home .hero-card {
    text-align: left;
    margin: 0;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: inherit;
}

.hero--home .hero-title {
  color: var(--white);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: var(--space-6);
  max-width: 520px;
}

.hero--home .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero-text {
  margin-bottom: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero slideshow (API-driven) */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 72vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slideshow-controls {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
}

.hero-slide-prev,
.hero-slide-next {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--wx-on-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: none;
  box-shadow: var(--shadow-sm);
}

.hero-slide-dots {
  display: flex;
  gap: 8px;
}

.hero-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-slide-dot.active {
  background: var(--color-gold);
  transform: scale(1.2);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target);
  padding: 12px 22px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition), filter var(--transition);
  text-align: center;
}

@media (min-width: 768px) {
  .btn {
    padding: 14px 28px;
  }
}

.btn-primary {
  background: var(--color-gold);
  color: var(--wx-on-accent);
  box-shadow: 0 12px 28px rgba(200, 255, 0, 0.22);
  border: 1px solid transparent;
}

.btn-primary:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(200, 255, 0, 0.28);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--wx-text);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: var(--wx-on-accent);
}

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

/* ——— Sections ——— */
.section {
  padding: var(--section-pad-y) 0;
}

.section--tight {
  padding: var(--space-5) 0;
}

@media (min-width: 768px) {
  .section--tight {
    padding: var(--space-6) 0;
  }
}

.section-title {
  font-size: clamp(1.5rem, 1.1rem + 2vw, var(--font-size-3xl));
  margin-bottom: var(--space-2);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: var(--font-size-base);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

.section-head {
  margin-bottom: var(--space-6);
}

/* ——— Grid ——— */
.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid {
    gap: var(--space-5);
  }
}

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

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

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

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

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

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

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

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

/* ——— Product cards ——— */
.card {
  background: var(--wx-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

/* Product cards: don’t clip the info block below the image (flex/grid edge cases) */
.card.product-card {
  overflow: visible;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 255, 0, 0.45);
}

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

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 220px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(25, 25, 25, 0.08);
  /* Reserve space even when inner % heights collapse in grid/flex */
  isolation: isolate;
}

.product-img,
.product-img-slideshow {
  display: block;
  width: 100%;
  min-height: 200px;
}

.product-img-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  z-index: 0;
}

.product-img-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

/* Clic sur la photo → fiche produit (sous la pastille promo, au-dessus des images, sous le bandeau CTA) */
.product-card__media-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
}

.product-card__media-link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.product-card__media .badge {
  pointer-events: none;
}

/* Single image (Nouveautés / most cards): no opacity stack — always visible */
.product-card-img-single {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}

.product-card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.product-card-slide.active {
  opacity: 1;
  z-index: 1;
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent 40%, rgba(42, 42, 42, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-card__actions .btn {
  flex: 1;
  min-width: min(120px, 100%);
  min-height: var(--touch-target);
  padding: 10px 16px;
  font-size: var(--font-size-xs);
}

.product-card__foot-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: stretch;
  justify-content: stretch;
  padding: var(--space-3);
  padding-top: var(--space-7);
  background: linear-gradient(
    to top,
    rgba(250, 248, 245, 0.98) 0%,
    rgba(250, 248, 245, 0.92) 40%,
    rgba(250, 248, 245, 0) 100%
  );
  pointer-events: auto;
}

.product-card__foot-cta .btn {
  flex: 1 1 calc(50% - var(--space-1));
  min-width: min(104px, 100%);
  min-height: var(--touch-target);
  justify-content: center;
  padding: 10px 12px;
  font-size: var(--font-size-xs);
}

.product-card__foot-cta .btn-primary.btn-add-cart--icon {
  flex: 0 0 auto;
  min-width: unset;
  width: auto;
}

.btn-add-cart--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: unset;
  min-height: unset;
  padding: 0.3rem;
  border-radius: var(--radius-full);
}

.btn-add-cart__icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Panier : fond blanc, taille proche du logo (plus le large pill doré). */
.btn-primary.btn-add-cart--icon {
  background: var(--home-white, #fff) !important;
  color: var(--home-text, #2a2622);
  border: 1px solid var(--home-line, rgba(42, 38, 34, 0.12));
  box-shadow: 0 2px 10px rgba(42, 38, 34, 0.08);
  filter: none;
}

.btn-primary.btn-add-cart--icon:hover {
  filter: none;
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 14px rgba(42, 38, 34, 0.1);
}

.sticky-cart-btn .btn-add-cart--icon {
  width: auto;
  min-height: unset;
  margin-inline: auto;
  padding: 0.4rem 0.5rem;
}

.product-card__body {
  padding: var(--space-4);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 5;
  min-width: 0;
  background: inherit;
}

.product-card__price-row {
  font-size: var(--font-size-base);
}

.product-card__price-row .price,
.product-card__price-row .price-new {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.product-card__price-row .price-old {
  font-weight: 500;
}

.product-card__body h4 {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
}

.product-card__body h4 a {
  font-weight: inherit;
}

.product-card__link {
  margin-top: auto;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  padding: 7px 14px;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: var(--color-gold);
  color: var(--wx-on-accent);
  border-radius: var(--radius-full);
}

.price,
.price-new {
  font-weight: 700;
  color: var(--color-charcoal);
}

.price-old {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  margin-right: var(--space-2);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.buy-now-row {
  display: none;
}

/* Legacy inner structure fallback */
.product-card > div:last-child h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ——— Categories strip ——— */
.categories-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .categories-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .categories-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-card {
  min-height: 160px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  background: linear-gradient(145deg, var(--color-beige), var(--gray-200));
  transition: transform var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--category-bg-image);
  background-size: cover;
  background-position: center;
}

.category-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(42, 42, 42, 0.65) 100%);
}

.category-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.category-card-content h4 {
  font-size: var(--font-size-lg);
  color: var(--white);
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-card .pill {
  background: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-xs);
}

/* ——— Why us ——— */
.why-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

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

.why-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.why-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: var(--pink-50);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.why-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.why-card p {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

/* ——— Newsletter ——— */
.newsletter {
  background: linear-gradient(135deg, #0e0e0e 0%, #161616 50%, #0a0a0a 100%);
  color: var(--wx-text);
  padding: var(--space-8) 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  color: var(--wx-text);
  margin-bottom: var(--space-2);
}

.newsletter p {
  color: var(--wx-muted);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-3);
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 768px) {
  .newsletter-form {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    align-items: center;
    width: auto;
  }
}

.newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: var(--touch-target);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@media (min-width: 768px) {
  .newsletter-form input {
    width: auto;
    min-width: min(200px, 100%);
    flex: 1;
  }
}

.newsletter-form .btn {
  width: 100%;
  min-height: var(--touch-target);
}

@media (min-width: 768px) {
  .newsletter-form .btn {
    width: auto;
  }
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Shop layout ——— */
.shop-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .shop-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }

  .shop-layout--no-filters {
    grid-template-columns: 1fr;
  }
}

/* Products page: main sits above body decorative layers; grid column must not clip cards */
.page-main--shop {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

body.page-products .page-main--shop {
  overflow: visible;
}

.shop-layout__main {
  min-width: 0;
}

/* Hero on products: do not also use .section (avoids double padding vs .page-home .section) */
.page-hero--products {
  padding-bottom: var(--space-4);
}

.shop-section {
  padding-top: var(--space-5);
}

.filters-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: sticky;
  top: 72px;
}

@media (min-width: 768px) {
  .filters-sidebar {
    padding: var(--space-5);
    top: 80px;
  }
}

@media (min-width: 1024px) {
  .filters-sidebar {
    top: 88px;
  }
}

.filters-sidebar h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-200);
}

.filter-group {
  margin-bottom: var(--space-4);
}

.filter-group label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.shop-toolbar .input {
  flex: 1;
  min-width: 200px;
}

/* Products shop bar — alignée RTL, carte légère (page boutique) */
body.page-home .shop-toolbar--card {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap: var(--space-4) var(--space-5);
  align-items: start;
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--home-white) 100%);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 32px rgba(42, 38, 34, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.page-home .shop-toolbar--card .filter-group {
  margin-bottom: 0;
}

body.page-home .shop-toolbar--card .shop-toolbar__search {
  min-width: 0;
}

body.page-home .shop-toolbar--card .shop-toolbar__search .input {
  width: 100%;
  flex: none;
  min-width: 0;
  border-radius: var(--radius-md);
}

body.page-home .shop-toolbar--card .shop-toolbar__category {
  margin: 0;
  min-width: 0;
}

body.page-home .shop-toolbar--card .shop-toolbar__category .select {
  width: 100%;
  border-radius: var(--radius-md);
}

body.page-home .shop-toolbar--card .filter-group label {
  margin-bottom: var(--space-2);
  color: var(--home-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Page catalogue produits : compacter la section, grille stable, pagination lisible */
body.page-products .shop-section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-8);
  overflow: visible;
}

body.page-products .shop-layout__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

body.page-products .shop-toolbar--card {
  margin-bottom: 0;
}

body.page-products .home-product-grid {
  align-items: start;
}

body.page-products .home-product-grid .product-card {
  height: auto;
}

body.page-products .home-product-grid .card:hover {
  transform: translateY(-2px);
}

body.page-products .pagination {
  margin-top: 0;
  padding-top: var(--space-4);
  gap: var(--space-3);
}

body.page-products .pagination .pagination-current {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--home-text);
  min-width: 5.5rem;
  text-align: center;
}

body.page-products .pagination button {
  font-size: var(--font-size-sm);
  min-width: 5.5rem;
}

body.page-products .home-product-grid .price,
body.page-products .home-product-grid .price-new {
  color: #5c4033;
  font-weight: 800;
}

body.page-products .home-product-grid .product-card__link {
  color: #5c4033;
}

body.page-products .home-product-grid .product-card__foot-cta .btn-primary:not(.btn-add-cart--icon) {
  background: #5c4033;
  color: #faf8f5;
  border: 1px solid #4a3429;
  box-shadow: 0 6px 18px rgba(92, 64, 51, 0.2);
}

body.page-products .home-product-grid .product-card__foot-cta .btn-primary:not(.btn-add-cart--icon):hover {
  background: #4a3429;
  border-color: #3d2b22;
  color: #faf8f5;
}

body.page-products .shop-cart-panel__inner {
  background: #fff;
  border: 1px solid rgba(42, 38, 34, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(42, 38, 34, 0.06);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 12rem;
}

body.page-products .shop-cart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(42, 38, 34, 0.1);
}

body.page-products .shop-cart-panel__title {
  font-family: "Tajawal", var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #9a948a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

[dir="ltr"] body.page-products .shop-cart-panel__title {
  font-family: "Inter", var(--font-body);
}

body.page-products .shop-cart-panel__full {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #8a847a;
  text-decoration: none;
  white-space: nowrap;
}

body.page-products .shop-cart-panel__full:hover {
  color: #5c4033;
}

body.page-products .shop-cart-panel__list {
  flex: 1;
  min-height: 0;
  gap: var(--space-3);
}

body.page-products .shop-cart-panel__list .cart-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(42, 38, 34, 0.08);
  box-shadow: 0 2px 10px rgba(42, 38, 34, 0.04);
}

body.page-products .shop-cart-panel__list .cart-item__row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-2);
  align-items: center;
}

body.page-products .shop-cart-panel__list .cart-item__thumb img {
  width: 56px;
  height: 56px;
  max-width: none;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

body.page-products .shop-cart-panel__list .cart-item__title {
  font-family: "Tajawal", var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #2a2622;
  margin: 0 0 var(--space-2);
  line-height: 1.4;
}

body.page-products .shop-cart-panel__list .cart-item__qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e3e0db;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

body.page-products .shop-cart-panel__list .cart-item__line-price {
  font-size: var(--font-size-sm);
  color: #5c4033;
}

body.page-products .shop-cart-panel__list .cart-item__options {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(42, 38, 34, 0.06);
}

body.page-products .shop-cart-panel__list .cart-item__foot {
  margin-top: var(--space-2);
}

body.page-products .shop-cart-panel__footer {
  padding-top: var(--space-2);
  border-top: 1px solid rgba(42, 38, 34, 0.08);
}

body.page-products .shop-cart-panel__total-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid rgba(42, 38, 34, 0.1);
}

body.page-products .shop-cart-panel__subtotal-cap {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a948a;
}

body.page-products .shop-cart-panel__total-line strong {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #2a2622;
}

body.page-products .shop-cart-panel__hint {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: #8a847a;
}

body.page-products .shop-cart-panel__checkout.btn-primary {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: #5c4033;
  color: #faf8f5;
  border: 1px solid #4a3429;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(92, 64, 51, 0.18);
}

body.page-products .shop-cart-panel__checkout.btn-primary:hover {
  background: #4a3429;
  color: #faf8f5;
}

[dir="rtl"] body.page-products .shop-cart-panel__head {
  flex-direction: row-reverse;
}

[dir="rtl"] body.page-products .shop-cart-panel__total-line {
  flex-direction: row-reverse;
}

[dir="rtl"] .product-card .badge {
  left: auto;
  right: var(--space-3);
}

body.page-home .shop-toolbar--card .input::placeholder {
  color: var(--home-muted);
  opacity: 0.85;
}

@media (max-width: 600px) {
  body.page-home .shop-toolbar--card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-4);
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--gray-200);
}

.pagination button {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--wx-text);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--color-gold);
  background: rgba(200, 255, 0, 0.12);
  color: var(--wx-text);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .pagination-current {
  padding: 0 var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

/* ——— Inputs ——— */
.input,
.select {
  width: 100%;
  min-height: var(--touch-target);
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #0f0f0f;
  color: var(--wx-text);
  font-size: var(--font-size-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus,
.select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.2);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.toolbar .input,
.toolbar .select {
  flex: 1;
  min-width: 160px;
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--gray-700);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}

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

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 400;
  cursor: pointer;
}

.summary {
  padding: var(--space-4);
  background: var(--pink-50);
  border-radius: var(--radius);
}

/* ——— Product detail (app.js injected) ——— */
.product-details {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .product-details {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-img-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pink-50);
  aspect-ratio: 1;
}

.product-img-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: min(280px, 62vw);
}

@media (min-width: 768px) {
  .product-img-slider {
    min-height: 280px;
  }
}

.product-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-img-slide.active {
  opacity: 1;
  z-index: 1;
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--wx-bg-soft);
  color: var(--wx-text);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev { left: var(--space-3); }
.gallery-next { right: var(--space-3); }

.gallery-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}

.gallery-dot.active {
  background: var(--color-gold);
}

.thumbs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  transition: opacity var(--transition), border-color var(--transition);
}

.thumb-btn:hover,
.thumb-btn.active {
  opacity: 1;
  border-color: var(--color-gold);
}

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

.sticky-cart-btn {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  z-index: 50;
}

@media (max-width: 767px) {
  body.has-sticky-cart .sticky-cart-btn {
    display: block;
  }

  body.has-sticky-cart {
    padding-bottom: 88px;
  }
}

/* ——— Cart ——— */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  min-width: 0;
}

@media (min-width: 768px) {
  .cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: var(--space-4);
    align-items: start;
  }
}

.cart-item img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .cart-item img {
    width: 100px;
    max-width: none;
    height: 100px;
    aspect-ratio: auto;
  }
}

.cart-empty-msg {
  text-align: center;
  padding: var(--space-8);
  color: var(--gray-600);
}

.cart-summary {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

@media (min-width: 768px) {
  .cart-summary {
    max-width: 400px;
    margin-inline-start: auto;
  }
}

/* ——— Custom select (app.js) ——— */
.custom-select-box {
  position: relative;
  width: 100%;
}

.select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.custom-select-trigger {
  width: 100%;
  min-height: var(--touch-target);
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #0f0f0f;
  color: var(--wx-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  z-index: 30;
  margin-top: 4px;
  box-shadow: var(--shadow);
}

.custom-select-list.open {
  display: block;
}

.custom-select-option {
  width: 100%;
  min-height: var(--touch-target);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: var(--font-size-sm);
  color: var(--wx-text);
  display: flex;
  align-items: center;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: var(--pink-50);
}

/* ——— Toast ——— */
.toast-notification {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 24px;
  background: var(--color-gold);
  color: var(--wx-on-accent);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-md);
}

.toast-notification.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Quick view modal ——— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 42, 0.55);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-full);
  background: var(--pink-50);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: none;
}

.modal-body {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
}

@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Footer ——— */
.footer {
  background: var(--wx-bg-soft);
  color: var(--wx-muted);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
  .footer {
    padding: var(--space-8) 0 var(--space-5);
  }
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

.footer-title {
  color: var(--wx-text);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  opacity: 0.85;
  margin-bottom: var(--space-3);
}

.footer-block h4 {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.footer-block ul {
  list-style: none;
}

.footer-block li {
  margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
  .footer-block li {
    margin-bottom: var(--space-2);
  }
}

.footer-block a,
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding: var(--space-1) 0;
}

.footer-block a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: var(--font-size-xs);
  opacity: 0.75;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer-payment-note {
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ——— Content pages ——— */
.page-hero {
  padding: var(--space-6) 0 var(--space-4);
  text-align: center;
  background: linear-gradient(180deg, #141414 0%, var(--color-cream) 100%);
}

@media (min-width: 768px) {
  .page-hero {
    padding: var(--space-8) 0 var(--space-5);
  }
}

.page-hero h1 {
  font-size: clamp(1.5rem, 1rem + 2.5vw, var(--font-size-3xl));
}

.page-hero p {
  color: var(--gray-600);
  max-width: 560px;
  margin: var(--space-3) auto 0;
}

/* ——— Product page (order flow) ——— */
.product-page .product-title {
  font-family: "Tajawal", "Inter", var(--font-body);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

[dir="ltr"] .product-page .product-title {
  font-family: "Inter", var(--font-body);
}

.product-price-block .price-current,
.product-price-block .price-old {
  font-size: var(--font-size-xl);
}

.product-page .product-price-block .price-old {
  color: #c62828;
  text-decoration: line-through;
}

.order-alert {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.order-alert.hidden {
  display: none;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  margin: 4px;
  cursor: pointer;
}

.option-chip input {
  position: absolute;
  opacity: 0;
}

.option-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition), background var(--transition);
}

.option-chip input:checked + span {
  border-color: var(--color-gold);
  background: rgba(200, 255, 0, 0.12);
  color: var(--wx-text);
}

.option-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hidden {
  display: none !important;
}

/* ——— Checkout thank you ——— */
[data-thank-you][hidden] {
  display: none !important;
}

/* ——— Utilities ——— */
.empty-state {
  grid-column: 1 / -1;
}

.desktop-add-btn {
  width: 100%;
  max-width: 320px;
}

/* hc-exclusive legacy (if used) */
.hc-exclusive__empty {
  text-align: center;
  color: var(--gray-600);
  padding: var(--space-6);
}

.hc-exclusive-card__media {
  position: relative;
  display: block;
}

.hc-exclusive__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: 7px 14px;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--home-gold-mid, #c9a227), var(--home-gold, #d4af37));
  color: var(--home-white, #fff);
}

[dir="rtl"] .hc-exclusive__badge {
  left: auto;
  right: var(--space-3);
}

/* Product description block (product.html) */
.pdp-desc-card {
  margin-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-4);
}

.pdp-desc-heading {
  font-family: "Tajawal", var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

[dir="ltr"] .pdp-desc-heading {
  font-family: "Inter", var(--font-body);
}

.pdp-desc-card .pdp-desc-body,
.pdp-desc-card .product-desc-text {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.75;
  color: #3d3a36;
  margin: 0;
}

body.page-home.product-page .product-form-title {
  color: #1a1a1a;
  font-family: "Tajawal", var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}

[dir="ltr"] body.page-home.product-page .product-form-title {
  font-family: "Inter", var(--font-body);
}

body.page-home.product-page .product-form-subtitle {
  color: #5c564d;
  font-weight: 400;
}

/* Product order form: field labels in black */
body.page-home.product-page .product-order-form .form-group > label {
  color: #0a0a0a;
  font-weight: 600;
}

body.page-home.product-page .product-order-form .radio-group label {
  color: #0a0a0a;
  font-weight: 500;
}

/* Product order: wilaya / commune — gold fields (custom select + native) */
body.page-home.product-page .product-order-form .select {
  background: linear-gradient(135deg, #e0c365 0%, #d2af3f 100%);
  color: #ffffff;
  border-color: rgba(122, 92, 16, 0.28);
}

body.page-home.product-page .product-order-form .select:focus {
  border-color: var(--home-gold, #c9a227);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
}

body.page-home.product-page .product-order-form .custom-select-trigger {
  background: linear-gradient(135deg, #e0c365 0%, #d2af3f 100%);
  color: #ffffff;
  border-color: rgba(122, 92, 16, 0.28);
}

body.page-home.product-page .product-order-form .custom-select-list {
  background: #fffef9;
  border-color: rgba(92, 64, 51, 0.35);
  color: var(--home-text, #2a2622);
}

body.page-home.product-page .product-order-form .custom-select-option {
  color: #2a2622;
}

body.page-home.product-page .product-order-form .custom-select-option:hover,
body.page-home.product-page .product-order-form .custom-select-option.active {
  background: rgba(201, 162, 39, 0.18);
}

body.page-home.product-page .product-order-form .qty-btn {
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-mid) 100%);
  color: var(--home-white);
  border-color: rgba(122, 92, 16, 0.4);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.22);
}

body.page-home.product-page .product-order-form .qty-btn:hover {
  filter: brightness(1.08);
}

body.page-home.product-page .confirm-order-btn,
body.page-home.product-page .product-order-submit-btn {
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-mid) 100%);
  color: var(--home-white);
  border: 1px solid rgba(122, 92, 16, 0.25);
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.3);
}

body.page-home.product-page .confirm-order-btn:hover {
  filter: brightness(1.07);
}

.related-block {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

/* Product order page layout */
.product-details-row {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 769px) {
  .product-details-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  body.page-home.product-page {
    background: #ffffff;
  }

  body.page-home.product-page::before,
  body.page-home.product-page::after {
    display: none;
  }

  body.page-home.product-page .page-main.section > .container {
    max-width: 1320px;
    padding-left: 24px;
    padding-right: 24px;
  }

  body.page-home.product-page #productInfo.product-details-row {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 26px;
    align-items: start;
  }

  body.page-home.product-page .product-main-col {
    gap: 14px;
  }

  body.page-home.product-page .product-heading-block {
    padding: 0 2px;
  }

  body.page-home.product-page .product-gallery-card,
  body.page-home.product-page .product-order-box {
    border-radius: 16px;
    padding: 18px;
  }

  body.page-home.product-page .product-order-box {
    position: sticky;
    top: calc(var(--header-home-slot) + 12px);
  }

  body.page-home.product-page .product-img-gallery {
    min-height: 560px;
  }

  body.page-home.product-page .product-img-slide img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  body.page-home.product-page .gallery.product-gallery-inline .thumbs {
    justify-content: flex-start;
    gap: 8px;
  }

  body.page-home.product-page .thumb-btn {
    width: 68px;
    height: 68px;
    border-radius: 10px;
  }

  body.page-home.product-page .product-order-form .form-group {
    margin-bottom: 12px;
  }

  body.page-home.product-page .product-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 10px;
  }

  body.page-home.product-page .product-order-form .form-group {
    margin-bottom: 0;
  }

  body.page-home.product-page .product-order-form .form-group--full,
  body.page-home.product-page .product-order-form .order-total-row,
  body.page-home.product-page .product-order-form .product-order-submit-row {
    grid-column: 1 / -1;
  }

  body.page-home.product-page .product-order-submit-row {
    margin-top: 14px;
  }
}

.product-main-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-gallery-card,
.product-order-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* ألوان المنتج تحت المعرض والمصغّرات (نفس البطاقة البيضاء) */
.pdp-colors-under-gallery {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.pdp-colors-under-gallery__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.pdp-colors-under-gallery__chips {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  align-items: stretch;
}

.pdp-colors-under-gallery__chips .option-chip {
  margin: 0;
  min-width: 0;
  display: flex;
}

.pdp-colors-under-gallery__chips .option-chip span {
  flex: 1;
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  line-height: 1.25;
  word-break: break-word;
  hyphens: auto;
}

.product-loading {
  text-align: center;
  padding: var(--space-8);
  color: var(--gray-600);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.qty-btn {
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
}

.qty-input {
  max-width: 80px;
  text-align: center;
}

.confirm-order-btn,
.product-order-submit-btn {
  width: 100%;
  padding: 16px;
  margin-top: var(--space-4);
  background: var(--color-gold);
  color: var(--wx-on-accent);
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  box-shadow: 0 12px 28px rgba(200, 255, 0, 0.2);
}

.confirm-order-btn:hover {
  filter: brightness(0.95);
}

.sticky-order-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  z-index: 40;
  display: none;
}

.product-order-submit-row,
.sticky-order-btn__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-top: var(--space-4);
}

.product-order-submit-row .confirm-order-btn,
.sticky-order-btn__row .confirm-order-btn {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

body.page-home.product-page .pdp-add-cart-bar {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  align-self: center;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-home.product-page .pdp-add-cart-bar .btn-add-cart__icon {
  width: 24px;
  height: 24px;
}

/* Product page (home theme): mobile layout & readability */
@media (max-width: 768px) {
  body.page-home.product-page .page-main.section {
    background: linear-gradient(180deg, #ffffff 0%, var(--home-champagne) 22%, var(--home-cream) 58%, #faf8f5 100%);
  }

  body.page-home.product-page .page-main.section > .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.page-home.product-page #productInfo.product-details-row {
    gap: 16px;
  }

  body.page-home.product-page .product-title {
    color: #1a1a1a;
  }

  body.page-home.product-page .product-price-block .price-current {
    color: #1a1a1a;
    font-weight: 700;
  }

  body.page-home.product-page .product-price-block .price-old {
    color: #c62828;
    font-weight: 500;
    text-decoration: line-through;
  }

  body.page-home.product-page .product-main-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  body.page-home.product-page .product-heading-block {
    order: 1;
  }

  body.page-home.product-page .pdp-desc-card {
    order: 2;
    margin-top: 0;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(42, 38, 34, 0.1);
  }

  body.page-home.product-page .pdp-desc-card.card {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 252, 248, 0.96) 100%);
    border-color: rgba(201, 162, 39, 0.16);
    box-shadow: 0 2px 20px rgba(42, 38, 34, 0.05);
  }

  body.page-home.product-page .pdp-desc-heading {
    color: #1a1a1a;
  }

  body.page-home.product-page .pdp-desc-card .pdp-desc-body,
  body.page-home.product-page .pdp-desc-card .product-desc-text {
    color: #403c36;
  }

  body.page-home.product-page .product-order-box {
    order: 3;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 252, 248, 0.97) 100%);
    border-color: rgba(201, 162, 39, 0.18);
    box-shadow: 0 4px 28px rgba(42, 38, 34, 0.06);
  }

  body.page-home.product-page .product-gallery-card {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 252, 248, 0.97) 100%);
    border-color: rgba(201, 162, 39, 0.18);
    box-shadow: 0 4px 28px rgba(42, 38, 34, 0.06);
  }

  body.page-home.product-page .gallery.product-gallery-inline {
    position: relative;
  }

  body.page-home.product-page .product-img-gallery {
    border-radius: 12px;
  }

  body.page-home.product-page .gallery.product-gallery-inline .thumbs {
    position: static;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    margin-top: 10px;
    pointer-events: auto;
  }

  body.page-home.product-page .thumb-btn {
    width: 56px;
    height: 56px;
    max-width: 70px;
    max-height: 70px;
    border-radius: 8px;
  }

  body.page-home.product-page .confirm-order-btn,
  body.page-home.product-page .product-order-submit-btn {
    border-radius: 50px;
    box-shadow: 0 8px 22px rgba(92, 64, 51, 0.2);
  }

  body.page-home.product-page .confirm-order-btn:hover {
    filter: brightness(1.06);
  }

  body.page-home.product-page.has-sticky-order .product-order-submit-row {
    display: none;
  }

  body.page-home.product-page .sticky-order-btn {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(42, 38, 34, 0.08);
    box-shadow: 0 -6px 24px rgba(42, 38, 34, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.page-home.product-page .sticky-order-btn .sticky-order-btn__row {
    margin-top: 0;
  }

  body.page-home.product-page .sticky-order-btn .confirm-order-btn {
    margin-top: 0;
  }

  body.has-sticky-order .sticky-order-btn {
    display: block;
  }

  body.has-sticky-order {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* Product details desktop: same name/price typography as mobile */
@media (min-width: 769px) {
  body.page-home.product-page .product-title {
    font-family: "Tajawal", "Inter", var(--font-body);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #1a1a1a;
  }

  [dir="ltr"] body.page-home.product-page .product-title {
    font-family: "Inter", var(--font-body);
  }

  body.page-home.product-page .product-price-block .price-current {
    font-size: var(--font-size-xl);
    color: #1a1a1a;
    font-weight: 700;
  }

  body.page-home.product-page .product-price-block .price-old {
    font-size: var(--font-size-xl);
    color: #c62828;
    font-weight: 500;
    text-decoration: line-through;
  }
}

.thank-you-card {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

@media (min-width: 768px) {
  .thank-you-card {
    padding: var(--space-8);
  }
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--pink-50);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

/* ——— Home page (index) — Sage hero + warm sections ——— */
body.page-home {
  --home-cream: #faf8f5;
  --home-white: #ffffff;
  --home-champagne: #f5efe6;
  --home-gold: #c9a227;
  --home-gold-mid: #a67c00;
  --home-gold-deep: #7a5c10;
  --home-gold-light: #e8d5a3;
  --home-text: #2a2622;
  --home-muted: #6b6458;
  --home-line: rgba(201, 162, 39, 0.32);
  --home-shadow: 0 16px 40px rgba(42, 38, 34, 0.08);
  --fur-sage: #98b0a0;
  --fur-sage-deep: #7a9484;
  --fur-sage-soft: #b4c4b8;
  --fur-ink: #0f0f0f;
  /* Hauteur réservée sous le header fixe (.header--home) */
  --header-home-slot: 88px;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff min(78vh, 880px), var(--home-champagne) min(78vh, 880px) 42%, var(--home-cream) 100%);
  color: var(--home-text);
  color-scheme: light;
}

@media (min-width: 768px) {
  body.page-home {
    --header-home-slot: 94px;
  }
}

@media (min-width: 1024px) {
  body.page-home {
    --header-home-slot: 102px;
  }
}

body.page-home::before {
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(0, 0, 0, 0.04), transparent 38%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 255, 255, 0.2), transparent 55%);
}

body.page-home::after {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* Header boutique : fixe en haut pendant le défilement */
body.page-home .header.header--home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

body.page-home #main-content {
  padding-top: var(--header-home-slot);
}

/* Accueil : le hero garde le plein écran sous la barre (comme avant en absolute) */
body.page-home.page-index #main-content > .home-hero:first-child {
  margin-top: calc(-1 * var(--header-home-slot));
}

.page-home.page-index .header--home {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding: var(--space-3) var(--space-3) 0;
}

@media (min-width: 768px) {
  .page-home.page-index .header--home {
    padding: var(--space-4) var(--space-4) 0;
  }
}

@media (min-width: 1024px) {
  .page-home.page-index .header--home {
    padding: var(--space-5) var(--space-5) 0;
  }
}

.page-home .header--home > .container.nav {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  /* backdrop-filter only ≥1024px — on mobile it traps position:fixed children inside the pill */
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.16);
  padding: 10px 16px;
  min-height: 56px;
  gap: var(--space-3);
}

body.page-home:not(.page-index) main,
body.page-home:not(.page-index) .section:first-of-type {
  scroll-margin-top: var(--header-home-slot);
}

@media (min-width: 1024px) {
  .page-home .header--home > .container.nav {
    padding: 10px 22px 10px 20px;
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
    align-items: center;
    column-gap: var(--space-5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .page-home .header--home > .container.nav .menu-toggle {
    display: none;
  }

  .page-home .header--home > .container.nav .logo {
    grid-column: 1;
    justify-self: start;
    flex: none;
    min-width: 0;
  }

  .page-home .header--home > .container.nav .nav-links {
    grid-column: 2;
    justify-self: center;
  }

  .page-home .header--home > .container.nav .nav-actions {
    grid-column: 3;
    justify-self: end;
  }
}

.page-home .logo-text {
  color: rgba(255, 255, 255, 0.96);
}

.page-home .logo-text__tagline {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.page-home .nav-links a,
.page-home .nav-links a:visited {
  color: rgba(255, 255, 255, 0.86);
  border-bottom: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  font-family: "Inter", var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.page-home .nav-links a:hover,
.page-home .nav-links a:hover:visited,
.page-home .nav-links a.active,
.page-home .nav-links a.active:visited {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-bottom: none;
}

.page-home .nav-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #2d2d2d;
  color: #fff;
  font-family: "Inter", var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.page-home .nav-cta-pill:hover {
  background: #1f1f1f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1023px) {
  .page-home .nav-cta-pill {
    display: none;
  }
}

.page-home .cart-icon-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.page-home .cart-icon-link:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
}

.page-home .cart-badge {
  background: var(--home-gold-mid);
  color: #fff;
}

.page-home .lang-toggle,
.page-home .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.page-home .lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
}

.page-home .menu-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 11px;
}

.page-home .menu-toggle span {
  background: #fff;
}

@media (max-width: 1023px) {
  .page-home .nav-drawer-close {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--home-text, #2a2622);
  }

  body.page-home:not(.page-index) .nav-drawer-close {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--home-text);
  }

  .page-home .nav-links.active {
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
      0 24px 56px rgba(42, 38, 34, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  /* Inner storefront pages: slightly whiter frosted drawer */
  body.page-home:not(.page-index) .nav-links.active {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
      0 22px 52px rgba(42, 38, 34, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .page-home .nav-links.active a {
    color: var(--home-text);
    background: transparent;
  }

  .page-home .nav-links.active a:hover {
    background: var(--home-champagne);
  }

  .page-home .nav-links.active a.active {
    background: var(--fur-sage);
    color: #fff;
  }

  /* Accueil (hero sombre / verre) : liens du tiroir en blanc, pas --home-text */
  .page-home.page-index .nav-drawer-close {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  .page-home.page-index .nav-links.active a,
  .page-home.page-index .nav-links.active a:visited {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

  .page-home.page-index .nav-links.active a:hover,
  .page-home.page-index .nav-links.active a:hover:visited {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }

  .page-home.page-index .nav-links.active a.active,
  .page-home.page-index .nav-links.active a.active:visited {
    color: #fff;
    text-shadow: none;
  }
}

.page-home .lang-menu {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.page-home .lang-menu-item:hover,
.page-home .lang-menu-item.active {
  background: var(--home-champagne);
}

.page-home a.logo:visited {
  color: rgba(255, 255, 255, 0.96);
}

.page-home a.logo:visited .logo-text__tagline {
  color: rgba(255, 255, 255, 0.82);
}

/* Accueil : après le hero (fond clair), pilule verre + texte foncé */
body.page-home.page-index .header--home > .container.nav {
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
}

body.page-home.page-index .logo-text,
body.page-home.page-index .logo-text__tagline,
body.page-home.page-index .nav-links:not(.active) a,
body.page-home.page-index .cart-icon-link,
body.page-home.page-index .lang-toggle {
  transition: color 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.page-home.page-index .header--home > .container.nav,
  body.page-home.page-index .logo-text,
  body.page-home.page-index .logo-text__tagline,
  body.page-home.page-index .nav-links:not(.active) a,
  body.page-home.page-index .cart-icon-link,
  body.page-home.page-index .lang-toggle {
    transition: none;
  }
}

/* Fond clair sous le header : verre dépoli (pas de blanc opaque) ; blur seulement ≥1024 (évite le bug du tiroir mobile) */
@media (max-width: 1023px) {
  body.page-home.page-index.header-over-light .header--home > .container.nav {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(42, 38, 34, 0.12);
    box-shadow:
      0 10px 32px rgba(42, 38, 34, 0.08),
      0 2px 8px rgba(42, 38, 34, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (min-width: 1024px) {
  body.page-home.page-index.header-over-light .header--home > .container.nav {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
      0 14px 40px rgba(42, 38, 34, 0.1),
      0 2px 12px rgba(42, 38, 34, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
  }
}

body.page-home.page-index.header-over-light .logo-text,
body.page-home.page-index.header-over-light a.logo:visited {
  color: #141414;
}

body.page-home.page-index.header-over-light .logo-text__tagline,
body.page-home.page-index.header-over-light a.logo:visited .logo-text__tagline {
  color: #5c584f;
}

body.page-home.page-index.header-over-light .nav-links:not(.active) a,
body.page-home.page-index.header-over-light .nav-links:not(.active) a:visited {
  color: rgba(26, 26, 26, 0.88);
}

body.page-home.page-index.header-over-light .nav-links:not(.active) a:hover,
body.page-home.page-index.header-over-light .nav-links:not(.active) a:hover:visited,
body.page-home.page-index.header-over-light .nav-links:not(.active) a.active,
body.page-home.page-index.header-over-light .nav-links:not(.active) a.active:visited {
  color: #141414;
  background: rgba(201, 162, 39, 0.14);
}

body.page-home.page-index.header-over-light .cart-icon-link {
  color: var(--home-text);
  border-color: rgba(42, 38, 34, 0.16);
  background: rgba(255, 255, 255, 0.28);
}

body.page-home.page-index.header-over-light .cart-icon-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(245, 239, 230, 0.72);
}

body.page-home.page-index.header-over-light .lang-toggle,
body.page-home.page-index.header-over-light .pill.lang-toggle {
  color: var(--home-text);
  border-color: rgba(42, 38, 34, 0.16);
  background: rgba(255, 255, 255, 0.28);
}

body.page-home.page-index.header-over-light .lang-toggle:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: var(--home-champagne);
}

body.page-home.page-index.header-over-light .menu-toggle {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(42, 38, 34, 0.14);
}

body.page-home.page-index.header-over-light .menu-toggle span {
  background: #2a2622;
}

/* Pages intérieures (même coque que l’accueil, texte lisible sur fond clair) */
body.page-home:not(.page-index) .header--home {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding: var(--space-3) var(--space-3) 0;
}

@media (min-width: 768px) {
  body.page-home:not(.page-index) .header--home {
    padding: var(--space-4) var(--space-4) 0;
  }
}

@media (min-width: 1024px) {
  body.page-home:not(.page-index) .header--home {
    padding: var(--space-5) var(--space-5) 0;
  }
}

body.page-home:not(.page-index) .header--home > .container.nav {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--home-line);
  box-shadow:
    0 16px 40px rgba(42, 38, 34, 0.08),
    0 2px 8px rgba(42, 38, 34, 0.04);
}

@media (min-width: 1024px) {
  body.page-home:not(.page-index) .header--home > .container.nav {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

body.page-home:not(.page-index) .logo-text {
  color: var(--home-text);
}

body.page-home:not(.page-index) .logo-text__tagline {
  color: var(--home-gold-mid);
  opacity: 1;
}

body.page-home:not(.page-index) a.logo:visited {
  color: var(--home-text);
}

body.page-home:not(.page-index) a.logo:visited .logo-text__tagline {
  color: var(--home-gold-mid);
}

body.page-home:not(.page-index) .nav-links a,
body.page-home:not(.page-index) .nav-links a:visited {
  color: var(--home-muted);
}

body.page-home:not(.page-index) .nav-links a:hover,
body.page-home:not(.page-index) .nav-links a:hover:visited,
body.page-home:not(.page-index) .nav-links a.active,
body.page-home:not(.page-index) .nav-links a.active:visited {
  color: var(--home-text);
  background: rgba(201, 162, 39, 0.14);
}

body.page-home:not(.page-index) .cart-icon-link {
  color: var(--home-text);
  border-color: var(--home-line);
  background: rgba(255, 255, 255, 0.85);
}

body.page-home:not(.page-index) .cart-icon-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: var(--home-champagne);
}

body.page-home:not(.page-index) .lang-toggle,
body.page-home:not(.page-index) .pill.lang-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--home-line);
  color: var(--home-text);
}

body.page-home:not(.page-index) .lang-toggle:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: var(--home-champagne);
}

body.page-home:not(.page-index) .menu-toggle {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--home-line);
}

body.page-home:not(.page-index) .menu-toggle span {
  background: var(--home-text);
}

.home-hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-9);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .home-hero {
    padding: var(--space-8) 0 calc(var(--space-9) + 24px);
    min-height: min(92vh, 900px);
    display: flex;
    align-items: center;
  }
}

.home-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 85% 20%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(255, 255, 255, 0.7) 0%, transparent 50%);
}

.home-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-8) var(--space-7);
  }
}

.home-hero__copy {
  max-width: 560px;
}

@media (min-width: 1024px) {
  .home-hero__copy {
    padding-right: var(--space-4);
  }

  [dir="rtl"] .home-hero__copy {
    padding-right: 0;
    padding-left: var(--space-4);
  }
}

.home-hero__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--home-gold-mid);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 0.95;
  font-weight: 400;
  color: var(--home-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__lead {
  font-size: clamp(var(--font-size-base), 1.6vw, var(--font-size-xl));
  line-height: 1.65;
  color: var(--home-muted);
  margin-bottom: var(--space-6);
  max-width: 32ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.btn-home-cta {
  padding: 16px 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--home-gold-mid) 0%, var(--home-gold) 55%, var(--home-gold-light) 160%);
  color: var(--home-white);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: 0 10px 28px rgba(122, 92, 16, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-home-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(122, 92, 16, 0.28);
}

.btn-home-secondary {
  padding: 16px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--home-line);
  background: var(--home-white);
  color: var(--home-text);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-home-secondary:hover {
  border-color: var(--home-gold);
  color: var(--home-gold-mid);
  box-shadow: var(--home-shadow);
  transform: translateY(-2px);
}

.home-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding: 0;
  margin: 0;
}

.home-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--home-muted);
  font-weight: 500;
}

.home-hero__trust-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--home-gold), var(--home-gold-light));
  flex-shrink: 0;
}

.home-hero__visual {
  position: relative;
  min-height: 320px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .home-hero__visual {
    max-width: none;
    margin: 0;
    min-height: 420px;
  }
}

.home-hero__blob {
  position: absolute;
  width: 72%;
  height: 78%;
  right: -6%;
  bottom: -4%;
  border-radius: 48% 52% 58% 42% / 42% 48% 52% 58%;
  background: linear-gradient(145deg, rgba(232, 213, 163, 0.55), rgba(255, 255, 255, 0.92));
  z-index: 0;
  filter: blur(0.5px);
}

[dir="rtl"] .home-hero__blob {
  right: auto;
  left: -6%;
}

.home-hero__frame {
  position: absolute;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--home-shadow);
  z-index: 1;
}

.home-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero__frame--primary {
  width: 78%;
  left: 0;
  top: 0;
  aspect-ratio: 4/5;
  z-index: 2;
}

.home-hero__frame--secondary {
  width: 48%;
  right: 0;
  bottom: 0;
  aspect-ratio: 5/6;
  z-index: 3;
  border: 4px solid var(--home-white);
  box-shadow: 0 20px 48px rgba(42, 38, 34, 0.12);
}

[dir="rtl"] .home-hero__frame--primary {
  left: auto;
  right: 0;
}

[dir="rtl"] .home-hero__frame--secondary {
  right: auto;
  left: 0;
}

/* — Home hero: Furdesign-inspired (sage, floating card, strip) — */
.home-hero--fur {
  position: relative;
  isolation: isolate;
  /* Must not use a vw-only middle term: on narrow screens vw is tiny and clamp sticks to ~40px. */
  padding-bottom: max(5rem, min(12vh + 2.5rem, 9rem));
  /* Extra top inset pushes headline + CTA below the floating header */
  padding-top: calc(var(--space-7) + 40px + var(--space-8));
  --hero-progress-pct: 25;
  /* Light blur on hero GIF — tune px if needed */
  --hero-bg-blur: 6px;
  /* Fallback if GIF fails to load */
  background: #1a1512;
}

@media (min-width: 768px) {
  .home-hero--fur {
    padding-top: calc(var(--space-8) + 42px + var(--space-7));
    padding-bottom: max(var(--space-8), min(8vh + 2rem, 6rem));
  }
}

.home-hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero__bg-video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(var(--hero-bg-blur, 6px));
  -webkit-filter: blur(var(--hero-bg-blur, 6px));
  transform: scale(1.03);
  transform-origin: center center;
}

@media (max-width: 768px) {
  .home-hero__bg-video-el {
    object-position: right center;
  }
}

.home-hero--fur::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__bg-gif {
    display: none;
  }
}

.home-hero--fur .home-hero__mesh {
  background:
    radial-gradient(ellipse 90% 70% at 70% 45%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(0, 0, 0, 0.04) 0%, transparent 50%);
}

.home-hero__layout--fur {
  position: relative;
  z-index: 2;
  align-items: stretch;
  justify-items: stretch;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .home-hero__layout--fur {
    gap: var(--space-5);
    margin-top: var(--space-5);
  }
}

.home-hero--fur .home-hero__side-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.home-hero--fur .home-hero__logo {
  width: clamp(210px, 64vw, 340px);
  height: auto;
  display: block;
  object-fit: contain;
}

.home-hero--fur .home-hero__boutique-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(168px, 100%);
  min-height: var(--touch-target);
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Inter", var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  margin-top: 0;
}

.home-hero--fur .home-hero__boutique-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.home-hero--fur .home-hero__boutique-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .home-hero--fur {
    min-height: min(88vh, 820px);
    padding-top: calc(var(--space-9) + 30px + var(--space-7));
    padding-bottom: 0;
  }

  .home-hero__layout--fur {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: var(--space-7) clamp(24px, 4vw, 64px);
    align-items: center;
    justify-items: stretch;
    margin-top: 0;
  }

  .home-hero--fur .home-hero__side-cta {
    width: min(72vw, 720px);
    justify-content: center;
    align-self: center;
    align-items: center;
    gap: 2px;
    margin-top: -8px;
    margin-bottom: 0;
    margin-inline-end: 0;
  }

  [dir="rtl"] .home-hero--fur .home-hero__side-cta {
    margin-inline-start: 0;
  }

  .home-hero--fur .home-hero__logo {
    width: min(72vw, 720px);
  }

  .home-hero--fur .home-hero__copy {
    max-width: min(620px, 100%);
    padding: clamp(22px, 2.2vw, 34px);
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(160deg, rgba(5, 5, 5, 0.5) 0%, rgba(8, 8, 8, 0.3) 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
  }

  .home-hero--fur .home-hero__title {
    font-size: clamp(2.2rem, 3.1vw, 3.2rem);
    line-height: 1.12;
    margin-bottom: clamp(12px, 1.2vw, 20px);
  }

  .home-hero--fur .home-hero__lead {
    font-size: clamp(1.02rem, 1.15vw, 1.24rem);
    line-height: 1.55;
    max-width: 40ch;
    margin-bottom: 0;
  }

  .home-hero--fur .home-hero__boutique-btn {
    min-width: 176px;
    padding: 14px 30px;
    font-size: calc(var(--font-size-sm) + 1px);
    font-family: "Cormorant Garamond", "Tajawal", serif;
    margin-top: 15px;
    margin-inline-start: -100px;
    border-color: rgba(224, 188, 124, 0.58);
    background: linear-gradient(160deg, rgba(201, 157, 92, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }

  .home-hero--fur .home-hero__boutique-btn:hover {
    border-color: rgba(230, 196, 138, 0.82);
    background: linear-gradient(160deg, rgba(214, 170, 104, 0.3) 0%, rgba(255, 255, 255, 0.14) 100%);
  }
}

@media (max-width: 767px) {
  .home-hero--fur .home-hero__layout--fur {
    gap: var(--space-4);
    margin-top: var(--space-4);
  }

  .home-hero--fur .home-hero__copy {
    order: 1;
  }

  .home-hero--fur .home-hero__side-cta {
    order: 2;
    margin-top: 4px;
    padding-bottom: var(--space-1);
  }

  .home-hero--fur .home-hero__logo {
    width: clamp(180px, 56vw, 260px);
  }
}

.home-hero--fur .home-hero__copy {
  max-width: min(560px, 100%);
  width: 100%;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: var(--space-4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
  .home-hero--fur .home-hero__copy {
    padding: var(--space-5);
  }
}

.home-hero--fur .home-hero__eyebrow {
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: "Inter", var(--font-body);
  text-transform: none;
  font-size: var(--font-size-sm);
}

.home-hero--fur .home-hero__title {
  font-family: "Inter", var(--font-body);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.18;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: var(--space-5);
}

.home-hero--fur .home-hero__title .home-hero__title-accent {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
}

[dir="rtl"] .home-hero--fur .home-hero__title {
  font-family: "Tajawal", var(--font-body);
}

[dir="rtl"] .home-hero--fur .home-hero__title .home-hero__title-accent {
  font-family: "Cormorant Garamond", "Tajawal", serif;
}

.home-hero--fur .home-hero__lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38ch;
  margin-bottom: var(--space-7);
  font-family: "Inter", var(--font-body);
  font-size: clamp(var(--font-size-base), 1.35vw, var(--font-size-lg));
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

[dir="rtl"] .home-hero--fur .home-hero__lead {
  font-family: "Tajawal", var(--font-body);
}

.home-hero__actions--fur {
  margin-bottom: 0;
}

.home-hero__cta-round {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: linear-gradient(160deg, #3a3a3a 0%, #1a1a1a 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-hero__cta-round:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.home-hero__cta-round__arrow {
  display: flex;
  margin-bottom: var(--space-2);
}

.home-hero__cta-round__text {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  max-width: 11em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__visual--fur {
  position: relative;
  min-height: 360px;
  max-width: none;
  margin: 0;
  padding-bottom: var(--space-8);
}

@media (min-width: 1024px) {
  .home-hero__visual--fur {
    min-height: 440px;
    padding-bottom: var(--space-9);
  }
}

.home-hero__slider-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-2);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-2);
}

@media (min-width: 1024px) {
  .home-hero__slider-ui {
    bottom: var(--space-4);
    left: 8%;
    right: auto;
    width: min(340px, 42%);
  }
}

.home-hero__slider-num {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  font-family: "Inter", var(--font-body);
}

.home-hero__slider-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.home-hero__slider-fill {
  height: 100%;
  width: calc(var(--hero-progress-pct, 25) * 1%);
  max-width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: width 0.45s ease;
}

.home-hero__figure-main {
  position: relative;
  margin: 0 auto;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 1;
}

@media (min-width: 1024px) {
  .home-hero__figure-main {
    width: 100%;
    max-width: 460px;
  }
}

.home-hero__fade-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-hero__fade-slide {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.05) translateY(14px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 44px rgba(30, 26, 22, 0.22),
    0 4px 0 rgba(0, 0, 0, 0.04);
  pointer-events: none;
  will-change: opacity, transform;
}

.home-hero__fade-slide.is-front {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 2;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__fade-slide {
    transition: opacity 0.15s ease;
    transform: none !important;
  }

  .home-hero__fade-slide.is-front {
    transform: none !important;
  }
}

.home-hero__fade-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.home-hero__float-card {
  position: relative;
  margin: var(--space-4) auto 0;
  width: min(300px, 100%);
  padding: var(--space-4);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
  .home-hero__float-card {
    position: absolute;
    left: auto;
    right: 4%;
    top: 18%;
    margin: 0;
    width: 268px;
  }

  [dir="rtl"] .home-hero__float-card {
    right: auto;
    left: 4%;
  }
}

.home-hero__float-card__img-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: var(--space-3);
  aspect-ratio: 4/3;
}

.home-hero__float-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__float-card__title {
  font-family: "Inter", var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.home-hero__float-card__desc {
  font-size: var(--font-size-sm);
  color: var(--home-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.home-hero__float-card__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.home-hero__float-card__btn {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--fur-ink);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: opacity var(--transition);
}

.home-hero__float-card__btn:hover {
  opacity: 0.9;
  color: #fff;
}

.home-hero__float-card__wish {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--home-text);
  transition: background var(--transition), border-color var(--transition);
}

.home-hero__float-card__wish:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: var(--home-champagne);
}

.home-hero__peek-card {
  display: none;
  position: absolute;
  right: -2%;
  bottom: 22%;
  width: 112px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.45;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1200px) {
  .home-hero__peek-card {
    display: block;
  }
}

[dir="rtl"] .home-hero__peek-card {
  right: auto;
  left: -2%;
}

.home-hero__peek-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__arrows {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: var(--space-2);
  z-index: 6;
}

[dir="rtl"] .home-hero__arrows {
  right: auto;
  left: 0;
}

.home-hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.home-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.home-hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: var(--space-2);
  transform: translateX(-50%);
  z-index: 3;
}

@media (max-width: 1023px) {
  .home-hero__scroll-hint {
    display: none;
  }
}

.home-hero__scroll-mouse {
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
}

.home-hero__scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
  animation: home-hero-scroll-nudge 1.8s ease-in-out infinite;
}

@keyframes home-hero-scroll-nudge {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.35;
    transform: translate(-50%, 8px);
  }
}

.home-hero__strip {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.04);
}

.home-hero__strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.home-hero__strip-thumb {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.home-hero__strip-thumb img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.home-hero__strip-go {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fur-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), opacity var(--transition);
}

.home-hero__strip-go:hover {
  transform: scale(1.05);
  color: #fff;
  opacity: 0.92;
}

.home-hero__strip-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  display: none;
}

@media (min-width: 768px) {
  .home-hero__strip-divider {
    display: block;
  }
}

.home-hero__strip-text {
  flex: 1;
  min-width: 200px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--home-muted);
  line-height: 1.55;
  font-family: "Inter", var(--font-body);
}

[dir="rtl"] .home-hero__strip-text {
  font-family: "Tajawal", var(--font-body);
}

.home-hero__strip-end {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 320px;
}

.home-hero__strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--home-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--home-text);
}

.home-hero__strip-tagline {
  font-size: var(--font-size-xs);
  color: var(--home-muted);
  line-height: 1.45;
  margin: 0;
  font-family: "Inter", var(--font-body);
}

[dir="rtl"] .home-hero__strip-tagline {
  font-family: "Tajawal", var(--font-body);
}

/* — Home sections — */
.page-home .section {
  padding: var(--section-pad-y) 0;
}

/* Stack Nouveautés / product grid above hero mesh layers (avoids overlap glitches) */
.home-section.home-latest {
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.home-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .home-section__head {
    gap: var(--space-4);
    margin-bottom: var(--space-7);
  }
}

@media (min-width: 768px) {
  .home-section__head:not(.home-section__head--center) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.home-section__head--center {
  text-align: center;
  align-items: center;
}

.home-section__head--center .home-section__desc {
  margin-left: auto;
  margin-right: auto;
}

.home-section__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  font-weight: 400;
  color: var(--home-text);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.home-section__title--display {
  font-size: clamp(var(--font-size-3xl), 4vw, 2.75rem);
}

.home-section__desc {
  font-size: var(--font-size-base);
  color: var(--home-muted);
  max-width: 520px;
  line-height: 1.6;
}

.home-section__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-target);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--home-gold-mid);
  border-bottom: 2px solid rgba(201, 162, 39, 0.45);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.home-section__link:hover {
  color: var(--home-text);
  border-bottom-color: var(--home-gold);
}

.page-home .home-product-grid .card {
  border-radius: var(--radius-xl);
  background: var(--home-white);
  border: 1px solid var(--home-line);
  box-shadow: 0 4px 20px rgba(42, 38, 34, 0.06);
}

.page-home .home-product-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
  border-color: rgba(201, 162, 39, 0.4);
}

.page-home .home-product-grid .product-card__body h4 a {
  color: var(--home-text);
}

.page-home .home-product-grid .product-card__body h4 {
  font-weight: 800;
}

.page-home .home-product-grid .price,
.page-home .home-product-grid .price-new {
  color: var(--home-gold-mid);
  font-weight: 800;
}

.page-home .home-product-grid .badge {
  background: linear-gradient(135deg, var(--home-gold-mid), var(--home-gold));
  color: var(--home-white);
  padding: 8px 16px;
  font-size: clamp(0.875rem, 1.15vw, 1rem);
}

.page-home .home-product-grid .product-card__link {
  color: var(--home-gold-mid);
}

.page-home .home-product-grid .product-card__foot-cta .btn-primary:not(.btn-add-cart--icon) {
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-mid) 100%);
  color: var(--home-white);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.22);
}

.page-home .home-product-grid .product-card__foot-cta .btn-gold {
  background: linear-gradient(135deg, var(--home-champagne) 0%, var(--home-white) 100%);
  color: var(--home-text);
  border: 1px solid var(--home-line);
}

.page-home .home-product-grid .product-card__foot-cta .btn-gold:hover {
  border-color: var(--home-gold);
}

.home-categories {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-categories-strip {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 1024px) {
  .home-categories-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-categories-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

.home-categories-strip .category-card {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  min-height: 200px;
  border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
  .home-categories-strip .category-card {
    flex: none;
    min-height: 180px;
  }
}

.home-section.home-values {
  background: linear-gradient(180deg, #fdfcfa 0%, var(--home-cream) 42%, #faf8f5 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.14);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.home-section.home-values .home-section__head--center {
  margin-bottom: var(--space-8);
}

.home-section.home-values .home-section__desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--font-size-lg);
  color: rgba(42, 38, 34, 0.68);
  line-height: 1.65;
}

.home-values-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home-values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.home-value-card {
  position: relative;
  padding: var(--space-5) var(--space-4);
  background: var(--home-white);
  border-radius: 20px;
  border: 1px solid rgba(42, 38, 34, 0.08);
  box-shadow:
    0 10px 36px rgba(42, 38, 34, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-value-card {
    padding: var(--space-7) var(--space-6);
  }
}

.home-value-card:focus-within {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  outline-offset: 3px;
}

.home-value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--home-gold-mid), var(--home-gold-light));
  opacity: 1;
}

.home-value-card:hover {
  box-shadow:
    0 18px 48px rgba(42, 38, 34, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.32);
}

.home-value-card__num {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: rgba(201, 162, 39, 0.16);
  line-height: 1;
  pointer-events: none;
  letter-spacing: 0.02em;
}

[dir="rtl"] .home-value-card__num {
  right: auto;
  left: var(--space-5);
}

.home-value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(201, 162, 39, 0.14), var(--home-champagne));
  border: 1px solid rgba(201, 162, 39, 0.22);
  color: var(--home-gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.12);
}

.home-value-card h3 {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--home-text);
}

.home-value-card p {
  font-size: var(--font-size-base);
  color: rgba(42, 38, 34, 0.72);
  line-height: 1.6;
  margin: 0;
}

.home-newsletter {
  margin-top: 0;
  padding: var(--space-6) 0;
  background: linear-gradient(160deg, #0a0a0a 0%, #121212 45%, #0d0d0d 100%);
  color: var(--home-white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .home-newsletter {
    padding: var(--space-8) 0;
  }
}

.home-newsletter::before {
  content: "";
  position: absolute;
  width: min(420px, 120vw);
  height: min(420px, 120vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 65%);
  top: -140px;
  right: -100px;
  pointer-events: none;
}

[dir="rtl"] .home-newsletter::before {
  right: auto;
  left: -100px;
}

.home-newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home-newsletter__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: end;
  }
}

.home-newsletter__copy h2 {
  font-family: var(--font-heading);
  color: var(--home-white);
  font-size: clamp(1.35rem, 0.9rem + 2vw, var(--font-size-3xl));
  margin-bottom: var(--space-2);
}

.home-newsletter__copy p {
  opacity: 0.92;
  font-size: var(--font-size-sm);
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.home-newsletter__form {
  justify-content: stretch;
  width: 100%;
}

.home-newsletter__form input {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--home-white);
  width: 100%;
}

.home-newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
  .home-newsletter__form {
    justify-content: flex-end;
    width: auto;
  }

  .home-newsletter__form input {
    width: auto;
  }
}

.page-home .home-newsletter .btn-gold {
  background: var(--home-white);
  color: #1a1816;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-home .home-newsletter .btn-gold:hover {
  filter: brightness(0.96);
}

/* Home footer: même palette que la newsletter (fond sombre + accents) */
body.page-home .footer {
  margin-top: 0;
  padding: var(--space-6) 0 var(--space-4);
  background: linear-gradient(160deg, #0a0a0a 0%, #121212 45%, #0d0d0d 100%);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  body.page-home .footer {
    padding: var(--space-8) 0 var(--space-5);
  }
}

body.page-home .footer > .container {
  position: relative;
  z-index: 1;
}

body.page-home .footer::before {
  content: "";
  position: absolute;
  width: min(420px, 120vw);
  height: min(420px, 120vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 65%);
  bottom: -160px;
  left: -120px;
  pointer-events: none;
}

[dir="rtl"] body.page-home .footer::before {
  left: auto;
  right: -120px;
}

body.page-home .footer-title {
  color: var(--home-white);
}

body.page-home .footer-tagline,
body.page-home .footer-payment-note {
  color: rgba(255, 255, 255, 0.82);
}

body.page-home .footer-block h4 {
  color: var(--home-gold-light);
}

body.page-home .footer-block a {
  color: rgba(255, 255, 255, 0.86);
}

body.page-home .footer-block a:visited {
  color: rgba(255, 255, 255, 0.86);
}

body.page-home .footer-block a:hover {
  color: var(--home-gold-light);
}

body.page-home .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

/* Inner pages: same visual shell as home (body.page-home + header--home) */
body.page-home .page-hero {
  background: linear-gradient(180deg, var(--home-champagne) 0%, var(--home-cream) 100%);
  border-bottom: 1px solid var(--home-line);
}

body.page-home .page-hero h1,
body.page-home .page-hero .section-title {
  color: var(--home-text);
}

body.page-home .page-hero p,
body.page-home .section-subtitle {
  color: var(--home-muted);
}

body.page-home .contact-hero {
  padding: var(--space-8) 0 var(--space-5);
  text-align: center;
  background: linear-gradient(180deg, var(--home-champagne) 0%, var(--home-cream) 100%);
  border-bottom: 1px solid var(--home-line);
}

body.page-home .contact-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: 400;
  color: var(--home-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

body.page-home .contact-hero-text {
  color: var(--home-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

body.page-home .input,
body.page-home .select {
  background: var(--home-white);
  color: var(--home-text);
  border-color: var(--home-line);
}

body.page-home .input:focus,
body.page-home .select:focus {
  border-color: var(--home-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

body.page-home .card {
  background: var(--home-white);
  border-color: var(--home-line);
  color: var(--home-text);
}

body.page-home .card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--home-shadow);
}

body.page-home .filters-sidebar {
  background: var(--home-white);
  border-color: var(--home-line);
  top: var(--header-home-slot);
}

body.page-home .filters-sidebar h3 {
  color: var(--home-text);
  border-bottom-color: var(--home-line);
}

body.page-home .pagination {
  border-top-color: var(--home-line);
}

body.page-home .pagination button {
  background: var(--home-white);
  border-color: var(--home-line);
  color: var(--home-text);
}

body.page-home .pagination button:hover:not(:disabled) {
  border-color: var(--home-gold);
  background: var(--home-champagne);
}

body.page-home .btn-primary:not(.btn-add-cart--icon) {
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-mid) 100%);
  color: var(--home-white);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.28);
}

body.page-home .btn-primary:not(.btn-add-cart--icon):hover {
  box-shadow: 0 16px 32px rgba(122, 92, 16, 0.22);
}

body.page-home .btn-outline {
  border-color: var(--home-line);
  color: var(--home-text);
  background: rgba(255, 255, 255, 0.5);
}

body.page-home .btn-outline:hover {
  border-color: var(--home-gold);
  color: var(--home-gold-mid);
}

body.page-home .summary {
  background: var(--home-white);
  border: 1px solid var(--home-line);
  color: var(--home-text);
}

body.page-home .cart-item {
  background: var(--home-white);
  border-color: var(--home-line);
  color: var(--home-text);
}

/* ——— Cart page layout (cart.html) — drawer-inspired, neutral + brown CTA ——— */
body.page-home.page-cart {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.page-home.page-cart .page-main--cart {
  flex: 1 0 auto;
}

body.page-home.page-cart .footer {
  margin-top: auto;
}

body.page-home.page-cart .page-main--cart {
  padding-top: var(--space-3);
  padding-bottom: var(--space-8);
  background: #f0eeeb;
}

body.page-home.page-cart .cart-page {
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 880px) {
  body.page-home.page-cart .cart-page {
    max-width: 960px;
  }
}

body.page-home.page-cart .cart-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-1) var(--space-4);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid rgba(42, 38, 34, 0.1);
}

body.page-home.page-cart .cart-page__continue {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #8a847a;
  text-decoration: none;
  white-space: nowrap;
}

body.page-home.page-cart .cart-page__continue:hover {
  color: #5c4033;
}

body.page-home.page-cart .cart-page__title {
  font-family: "Tajawal", var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #9a948a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

[dir="ltr"] body.page-home.page-cart .cart-page__title {
  font-family: "Inter", var(--font-body);
}

[dir="rtl"] body.page-home.page-cart .cart-page__header {
  flex-direction: row-reverse;
}

body.page-home.page-cart .cart-page__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: stretch;
}

@media (min-width: 880px) {
  body.page-home.page-cart .cart-page__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-6);
  }

  body.page-home.page-cart .cart-page__list {
    flex: 1;
    min-width: 0;
  }

  body.page-home.page-cart .cart-page__aside {
    width: min(100%, 340px);
    flex-shrink: 0;
    position: sticky;
    top: var(--header-home-slot);
  }
}

body.page-home.page-cart .cart-page__aside.summary {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: #fff;
  border: 1px solid rgba(42, 38, 34, 0.08);
  box-shadow: 0 4px 24px rgba(42, 38, 34, 0.06);
}

body.page-home.page-cart .cart-page__total-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid rgba(42, 38, 34, 0.1);
}

body.page-home.page-cart .cart-page__subtotal-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a948a;
}

body.page-home.page-cart .cart-page__total-line strong {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #1a1a1a;
}

body.page-home.page-cart .cart-page__hint {
  margin: 0 0 var(--space-5);
  font-size: var(--font-size-xs);
  line-height: 1.55;
  color: #9a948a;
}

body.page-home.page-cart .cart-page__checkout.btn-primary {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-mid) 100%);
  color: var(--home-white);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.28);
  border: 1px solid rgba(122, 92, 16, 0.22);
}

body.page-home.page-cart .cart-page__checkout.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(166, 124, 0, 0.32);
}

body.page-home.page-cart .cart-list {
  gap: var(--space-3);
}

body.page-home.page-cart .cart-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(42, 38, 34, 0.08);
  box-shadow: 0 2px 14px rgba(42, 38, 34, 0.04);
}

body.page-home.page-cart .cart-item__row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

body.page-home.page-cart .cart-item__thumb img {
  width: 72px;
  height: 72px;
  max-width: none;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

body.page-home.page-cart .cart-item__mid {
  min-width: 0;
}

body.page-home.page-cart .cart-item__title {
  font-family: "Tajawal", var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #2a2622;
  margin: 0 0 var(--space-3);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

body.page-home.page-cart .cart-item__qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e3e0db;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

body.page-home.page-cart .cart-qty-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  color: #2a2622;
  background: #faf9f7;
  border: none;
  border-inline-end: 1px solid #e3e0db;
  cursor: pointer;
  transition: background var(--transition);
}

body.page-home.page-cart .cart-item__qty-stepper .cart-qty-btn:last-of-type {
  border-inline-end: none;
  border-inline-start: 1px solid #e3e0db;
}

body.page-home.page-cart .cart-qty-btn:hover:not(:disabled) {
  background: #f0eeeb;
}

body.page-home.page-cart .cart-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.page-home.page-cart .cart-item__qty-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0 var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
}

body.page-home.page-cart .cart-item__price-col {
  text-align: end;
  align-self: center;
}

body.page-home.page-cart .cart-item__line-price {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

body.page-home.page-cart .cart-item__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(42, 38, 34, 0.08);
}

body.page-home.page-cart .cart-field--inline {
  flex: 1 1 140px;
  min-width: 0;
  margin: 0;
}

body.page-home.page-cart .cart-field--inline .cart-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a948a;
  margin-bottom: 6px;
}

body.page-home.page-cart .cart-item .select.select--cart {
  background: #fff;
  color: #2a2622;
  border: 1px solid #e3e0db;
  border-radius: 6px;
  font-size: var(--font-size-sm);
}

body.page-home.page-cart .cart-item .custom-select-trigger {
  background: #fff;
  color: #2a2622;
  border: 1px solid #e3e0db;
  border-radius: 6px;
  font-size: var(--font-size-sm);
}

body.page-home.page-cart .cart-item .custom-select-list {
  background: #fff;
  border-color: #e3e0db;
}

body.page-home.page-cart .cart-item .custom-select-option {
  color: #2a2622;
}

body.page-home.page-cart .cart-item .custom-select-option:hover,
body.page-home.page-cart .cart-item .custom-select-option.active {
  background: #f5f3f0;
}

[dir="rtl"] body.page-home.page-cart .cart-item .custom-select-trigger {
  text-align: right;
}

body.page-home.page-cart .cart-item__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
}

body.page-home.page-cart .cart-item__remove {
  padding: 0;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #9a948a;
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.page-home.page-cart .cart-item__remove:hover {
  color: #5c4033;
}

body.page-home.page-cart .cart-empty-msg {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: var(--home-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--home-line);
  color: #5c564d;
}

body.page-home .option-chip span {
  border-color: var(--home-line);
  color: var(--home-text);
}

body.page-home .option-chip input:checked + span {
  border-color: var(--home-gold);
  background: rgba(201, 162, 39, 0.12);
  color: var(--home-text);
}

body.page-home .product-page .product-title,
body.page-home .section-title {
  color: var(--home-text);
}

body.page-home .product-gallery-card,
body.page-home .product-order-box,
body.page-home .pdp-desc-card.card {
  border-color: var(--home-line);
  background: var(--home-white);
}

body.page-home .thank-you-card {
  background: var(--home-white);
  border: 1px solid var(--home-line);
}

.contact-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

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

body.page-home .contact-channel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-xl);
  background: var(--home-white);
  box-shadow: 0 4px 20px rgba(42, 38, 34, 0.06);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--home-text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body.page-home .contact-channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--home-shadow);
}

body.page-home .contact-channel-icon {
  color: var(--home-gold-mid);
}

body.page-home .contact-channel-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--home-muted);
}

body.page-home .contact-channel-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--home-text);
  word-break: break-word;
}

body.page-home .contact-channel-cta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--home-gold-mid);
  margin-top: var(--space-1);
}

.contact-channel-wrap {
  padding-bottom: var(--space-8);
}
