/* ============================================
   Hanna & Nour - Modest Fashion E-Commerce
   Modern, Elegant Design System
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Primary Colors - Cream, Charcoal & Gold  (= modèle Arena) */
  --color-blush: #D4B483;
  --color-blush-light: #EFE6D8;
  --color-cream: #F8F3EC;
  --color-sage: #B78A4A;
  --color-sage-light: #E7DCC8;
  
  /* Gold Tones */
  --color-emerald: #B78A4A;
  --color-emerald-dark: #A3793B;
  --color-burgundy: #221F1C;
  --color-burgundy-light: #3D382F;
  
  /* Neutrals */
  --color-charcoal: #221F1C;
  --color-dark: #221F1C;
  --color-gray: #6F6657;
  --color-gray-light: #7A7163;
  --color-off-white: #FAF7F1;
  --color-white: #FFFFFF;
  --color-gold: #B78A4A;
  --color-gold-light: #D4B483;
  --color-cream-dark: #EFE6D8;
  
  /* Typography */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Montserrat', 'Segoe UI', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 36px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Guard: no horizontal scroll on small viewports even if a child overflows.
     `clip` (unlike `hidden`) does not turn <body> into a scroll container, so
     position:fixed/sticky children keep working. */
  overflow-x: hidden;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

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

/* ============================================
   Typography Components
   ============================================ */
.heading-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.heading-section {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-emerald);
  color: var(--color-white);
  border: 2px solid var(--color-emerald);
}

.btn-primary:hover {
  background-color: var(--color-emerald-dark);
  border-color: var(--color-emerald-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
}

.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-emerald);
  border: 2px solid var(--color-emerald);
}

.btn-outline:hover {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

.btn-tertiary {
  background-color: var(--color-blush);
  color: var(--color-charcoal);
  border: 2px solid var(--color-blush);
}

.btn-tertiary:hover {
  background-color: var(--color-blush-light);
  border-color: var(--color-blush-light);
}

.btn-burgundy {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: 2px solid var(--color-burgundy);
}

.btn-burgundy:hover {
  background-color: var(--color-burgundy-light);
  border-color: var(--color-burgundy-light);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: rgba(253, 248, 245, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-top {
  background-color: var(--color-emerald);
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-sm) 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.header-main {
  padding: var(--spacing-md) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-dark);
}

.logo-accent {
  color: var(--color-emerald);
}

/* Main Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  padding: var(--spacing-sm) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-emerald);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background-color: var(--color-blush-light);
}

.header-action-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-charcoal);
  stroke-width: 1.5;
  fill: none;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Mobile Menu Toggle — hamburger -> close
   Animation driven by body[data-menu-open]
   ============================================ */
.menu-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 4px;
  width: 20px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease,
    top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 5px; }
.menu-toggle span:nth-child(2) { top: 13px; }
.menu-toggle span:nth-child(3) { top: 21px; }

body[data-menu-open="true"] .menu-toggle span:nth-child(1) { top: 13px; transform: rotate(45deg); }
body[data-menu-open="true"] .menu-toggle span:nth-child(2) { opacity: 0; }
body[data-menu-open="true"] .menu-toggle span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

body[data-menu-open="true"] { overflow: hidden; }

/* ============================================
   Mobile Navigation — fullscreen elegant panel.
   Single source of truth: body[data-menu-open]
   ============================================ */
.nav-mobile {
  position: fixed;
  inset: 0;
  background-color: var(--color-white);
  color: var(--color-dark);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
}

body[data-menu-open="true"] .nav-mobile {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-sage-light);
}

.nav-mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-charcoal);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  gap: var(--spacing-sm);
  padding: var(--spacing-xl) 0;
}

.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-xs);
  border-bottom: 1px solid var(--color-sage-light);
  transition: color var(--transition-fast), padding var(--transition-fast);
}

.nav-mobile-link::after {
  content: '\203A';
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--color-sage);
}

.nav-mobile-link:hover,
.nav-mobile-link:focus-visible {
  color: var(--color-sage);
  padding-left: var(--spacing-sm);
}

.nav-mobile-link:focus-visible {
  outline: 2px solid var(--color-sage-light);
  outline-offset: -2px;
}

.nav-mobile-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--color-sage-light);
  padding-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.nav-mobile-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.nav-mobile-footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-align: center;
}

.nav-mobile-footer-link:hover {
  color: var(--color-sage);
}

.nav-mobile-footer-link svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-charcoal);
  stroke-width: 1.5;
  fill: none;
}

.nav-mobile-footer-link:hover svg {
  stroke: var(--color-sage);
}

.nav-mobile-footer-link .nav-mobile-cart-count {
  position: static;
  display: inline-flex;
  width: auto;
  height: auto;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 1px 7px;
}

.nav-mobile-lang {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-blush-light);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: var(--spacing-3xl) 0;
}

.hero-subtitle {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: var(--spacing-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--color-emerald);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
}

.hero-scroll {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-emerald), transparent);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* ============================================
   Featured Banner
   ============================================ */
.featured-banner {
  position: relative;
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.featured-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
}

.featured-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2xl);
}

.featured-banner-text {
  max-width: 500px;
}

.featured-banner-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.featured-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--spacing-xl);
}

.featured-banner-image {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-emerald);
  border: 2px solid var(--color-white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--color-white);
}

/* ============================================
   Product Cards
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.product-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  background-color: var(--color-blush-light);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-wishlist {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: none;
  z-index: 2;
  transition: all var(--transition-fast);
}

.product-card:hover .product-wishlist {
  opacity: 1;
  transform: translateY(0);
}

.product-wishlist svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-charcoal);
  stroke-width: 1.5;
  fill: none;
}

.product-wishlist:hover svg {
  fill: var(--color-burgundy);
  stroke: var(--color-burgundy);
}

.product-wishlist.active svg {
  fill: var(--color-burgundy);
  stroke: var(--color-burgundy);
}

.product-card-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-quick-add {
  transform: translateY(0);
}

.product-card-quick-add .btn {
  width: 100%;
}

.product-card-info {
  padding: var(--spacing-lg);
}

.product-card-category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--spacing-xs);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.product-price-current {
  font-weight: 600;
  color: var(--color-dark);
}

.product-price-original {
  font-size: 0.875rem;
  color: var(--color-gray-light);
  text-decoration: line-through;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.stars {
  display: flex;
  gap: 2px;
  font-size: 14px;
  line-height: 1;
  color: var(--color-sage);
  letter-spacing: 2px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: var(--color-sage);
}

.rating-count {
  font-size: 0.75rem;
  color: var(--color-gray);
}

/* ============================================
   Collections Grid
   ============================================ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.collection-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover img {
  transform: scale(1.08);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-xl);
}

.collection-card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.collection-card-count {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background-color: var(--color-blush-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.testimonial-card {
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--spacing-md);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-sage);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-charcoal);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-dark);
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--color-gray);
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  background: linear-gradient(135deg, var(--color-blush) 0%, var(--color-blush-light) 100%);
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2xl);
}

.newsletter-text {
  max-width: 500px;
}

.newsletter-title {
  margin-bottom: var(--spacing-md);
}

.newsletter-form {
  flex: 1;
  max-width: 500px;
}

.newsletter-form-group {
  display: flex;
  gap: var(--spacing-sm);
}

.input-group {
  flex: 1;
}

.input-group input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-emerald);
}

.input-group input::placeholder {
  color: var(--color-gray-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.footer-description {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-emerald);
  border-color: var(--color-emerald);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-emerald);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-payments img {
  height: 24px;
  opacity: 0.5;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
  background-color: var(--color-blush-light);
  text-align: center;
}

.page-header-title {
  margin-bottom: var(--spacing-md);
}

.page-header-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--color-gray);
}

.page-header-breadcrumb a:hover {
  color: var(--color-emerald);
}

.page-header-breadcrumb span {
  color: var(--color-gray-light);
}

/* ============================================
   Shop Page
   ============================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0;
}

/* Sidebar Filters */
.shop-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.filter-group {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-title svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.filter-title.collapsed svg {
  transform: rotate(-90deg);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-gray);
}

.filter-option:hover {
  color: var(--color-dark);
}

.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-gray-light);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.filter-option.active .filter-checkbox {
  background-color: var(--color-emerald);
  border-color: var(--color-emerald);
}

.filter-option.active .filter-checkbox::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg) translateY(-1px);
}

/* Color Filter */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--color-dark);
  transform: scale(1.1);
}

.color-swatch-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.color-swatch-wrap .color-swatch {
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.color-swatch-wrap.active .color-swatch,
.color-swatch-wrap:hover .color-swatch {
  border-color: var(--color-dark);
  transform: scale(1.1);
}

.color-swatch-name {
  font-size: 0.65rem;
  color: var(--color-gray);
  text-transform: capitalize;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-swatch-wrap.active .color-swatch-name {
  color: var(--color-dark);
  font-weight: 600;
}

/* Product page wishlist (shares .product-wishlist behaviors) */
.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.product-wishlist-detail {
  position: static;
  flex: 0 0 auto;
  background-color: transparent;
  border-radius: var(--radius-full);
  opacity: 1;
  transform: none;
  z-index: auto;
  padding: var(--spacing-xs);
}

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

/* Price Range */
.price-range {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.price-input {
  width: 80px;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
}

.price-range-divider {
  color: var(--color-gray-light);
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: var(--spacing-xl);
}

.shop-results {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.shop-sort label {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.shop-sort select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background-color: var(--color-white);
  cursor: pointer;
}

.shop-view-toggle {
  display: flex;
  gap: var(--spacing-xs);
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.view-btn.active {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
}

.view-btn.active svg {
  stroke: var(--color-white);
}

.view-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gray);
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background-color: var(--color-blush-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-charcoal);
}

.filter-tag-remove {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

.filter-tag-remove:hover {
  color: var(--color-burgundy);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  padding: var(--spacing-3xl) 0;
}

.product-gallery {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.product-gallery-main {
  aspect-ratio: 3/4;
  background-color: var(--color-blush-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

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

.product-gallery-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
}

.product-thumbnail {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.product-thumbnail.active,
.product-thumbnail:hover {
  border-color: var(--color-emerald);
}

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

.product-info {
  padding: var(--spacing-xl) 0;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--spacing-sm);
}

.product-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.product-price-current {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-dark);
}

.product-price-original {
  font-size: 1.25rem;
  color: var(--color-gray-light);
  text-decoration: line-through;
}

.product-price-discount {
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.product-short-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: var(--spacing-xl);
}

/* Product Options */
.product-option-group {
  margin-bottom: var(--spacing-xl);
}

.product-option-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
}

.product-option-label span {
  font-weight: 400;
  color: var(--color-gray);
}

/* Color Options */
.color-options-detail {
  display: flex;
  gap: var(--spacing-md);
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
}

.color-option:hover,
.color-option.active {
  border-color: var(--color-dark);
}

.color-option.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
}

/* Size Options */
.size-options {
  display: flex;
  gap: var(--spacing-sm);
}

.size-option {
  min-width: 48px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
}

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

.size-option.active {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.size-option.out-of-stock {
  position: relative;
  color: var(--color-gray-light);
  border-color: var(--color-gray-light);
  cursor: not-allowed;
}

.size-option.out-of-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 36px;
  height: 2px;
  background-color: var(--color-gray-light);
}

/* Quantity */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.quantity-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-charcoal);
  transition: background-color var(--transition-fast);
}

.quantity-btn:hover {
  background-color: var(--color-blush-light);
}

.quantity-input {
  width: 60px;
  height: 48px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.quantity-input:focus {
  outline: none;
}

/* Add to Cart */
.product-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.btn-add-to-cart {
  flex: 1;
}

/* Product Meta */
.product-meta {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.product-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-meta-icon {
  width: 24px;
  height: 24px;
  color: var(--color-sage);
}

.product-meta-content {
  flex: 1;
}

.product-meta-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
}

.product-meta-text {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

/* Product Tabs */
.product-tabs {
  padding: var(--spacing-3xl) 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.tabs-nav {
  display: flex;
  gap: var(--spacing-xl);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: var(--spacing-xl);
}

.tab-btn {
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-dark);
}

.tab-btn.active {
  color: var(--color-dark);
  border-bottom-color: var(--color-emerald);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Reviews */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background-color: var(--color-blush-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xl);
}

.reviews-average {
  text-align: center;
}

.reviews-number {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
}

.reviews-total {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.reviews-bars {
  flex: 1;
}

.review-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.review-bar-label {
  font-size: 0.875rem;
  color: var(--color-gray);
  min-width: 50px;
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background-color: var(--color-sage);
  border-radius: var(--radius-full);
}

.review-card {
  padding: var(--spacing-xl);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-white);
}

.review-name {
  font-weight: 600;
  color: var(--color-dark);
}

.review-date {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.review-verified {
  font-size: 0.75rem;
  color: var(--color-emerald);
  font-weight: 500;
}

.review-text {
  color: var(--color-charcoal);
  line-height: 1.8;
}

/* ============================================
   Collections Page
   ============================================ */
.collections-hero {
  position: relative;
  padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
  background-color: var(--color-emerald);
  color: var(--color-white);
  text-align: center;
}

.collections-hero-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.collections-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
}

.collections-showcase {
  padding: var(--spacing-3xl) 0;
}

.collections-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.collection-showcase-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.collection-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-showcase-card:hover img {
  transform: scale(1.05);
}

.collection-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-2xl);
}

.collection-showcase-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.collection-showcase-desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--spacing-lg);
}

.collection-showcase-card .btn {
  width: fit-content;
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
  align-items: center;
}

.about-hero-content {
  max-width: 500px;
}

.about-hero-image {
  aspect-ratio: 4/5;
  background-color: var(--color-blush-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  padding: var(--spacing-3xl) 0;
  background-color: var(--color-blush-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.value-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-emerald);
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.value-text {
  font-size: 0.9375rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

.about-story {
  padding: var(--spacing-3xl) 0;
}

.about-story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about-story-image {
  aspect-ratio: 4/3;
  background-color: var(--color-sage-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Blog Page
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background-color: var(--color-blush-light);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: var(--spacing-lg);
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: var(--spacing-sm);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--color-gray);
  margin-bottom: var(--spacing-lg);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-gray);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.blog-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
}

/* ============================================
   Blog Post (article) Page
   ============================================ */
.blog-post-header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.blog-post-header .blog-card-category {
  display: inline-block;
}

.blog-post-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: var(--spacing-sm) 0 0;
}

.blog-post-meta {
  color: var(--color-gray);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
}

.blog-post-figure {
  max-width: 980px;
  margin: var(--spacing-2xl) auto 0;
}

.blog-post-figure img {
  width: 100%;
  border-radius: 16px;
  max-height: 520px;
  object-fit: cover;
}

.blog-post-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-dark);
}

.blog-post-body p {
  margin: 0 0 1.2em;
}

.blog-post-fallback {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-gray);
  padding: var(--spacing-3xl) 0;
}

/* ============================================
   Cart Page
   ============================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-3xl);
  padding: var(--spacing-3xl) 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  align-items: center;
}

.cart-item-image {
  aspect-ratio: 3/4;
  background-color: var(--color-blush-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-dark);
}

.cart-item-variant {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.cart-item-price {
  font-weight: 600;
  color: var(--color-dark);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.cart-item-remove {
  font-size: 0.875rem;
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

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

/* Cart Summary */
.cart-summary {
  position: sticky;
  top: 120px;
  height: fit-content;
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.cart-summary-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 0.9375rem;
}

.cart-summary-row.total {
  font-size: 1.125rem;
  font-weight: 600;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: var(--spacing-lg);
}

.cart-summary-shipping {
  font-size: 0.875rem;
  color: var(--color-emerald);
}

.cart-promo {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.cart-promo input {
  flex: 1;
  padding: var(--spacing-md);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.cart-promo .btn {
  white-space: nowrap;
}

.cart-checkout .btn {
  width: 100%;
  margin-bottom: var(--spacing-md);
}

.cart-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--color-gray);
  text-align: center;
}

/* ============================================
   Checkout Page
   ============================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: var(--spacing-3xl);
  padding: var(--spacing-3xl) 0;
}

.checkout-section {
  margin-bottom: var(--spacing-2xl);
}

.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.form-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-emerald);
}

.form-select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  background-size: 16px;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method:hover {
  border-color: var(--color-emerald);
}

.payment-method.selected {
  border-color: var(--color-emerald);
  background-color: rgba(45, 106, 79, 0.05);
}

.payment-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method.selected .payment-radio {
  border-color: var(--color-emerald);
}

.payment-method.selected .payment-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--color-emerald);
  border-radius: var(--radius-full);
}

.payment-icon {
  width: 48px;
  height: 32px;
  background-color: var(--color-blush-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.payment-details {
  flex: 1;
}

.payment-name {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
}

.payment-desc {
  font-size: 0.875rem;
  color: var(--color-gray);
}

/* ============================================
   Account Page
   ============================================ */
.account-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) 0;
}

.account-sidebar {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  height: fit-content;
}

.account-user {
  text-align: center;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: var(--spacing-lg);
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 auto var(--spacing-md);
}

.account-name {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
}

.account-email {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-charcoal);
  transition: all var(--transition-fast);
}

.account-nav-link:hover {
  background-color: var(--color-blush-light);
}

.account-nav-link.active {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

.account-nav-link svg {
  width: 20px;
  height: 20px;
}

/* Account Content */
.account-content {
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
}

.account-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.account-content-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

/* Order History */
.order-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  background-color: var(--color-blush-light);
}

.order-number {
  font-weight: 600;
  color: var(--color-dark);
}

.order-date {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.order-status {
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.delivered {
  background-color: var(--color-sage-light);
  color: var(--color-burgundy);
}

.order-status.shipped {
  background-color: var(--color-blush);
  color: var(--color-burgundy);
}

.order-items {
  padding: var(--spacing-lg);
}

.order-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 60px;
  height: 80px;
  background-color: var(--color-blush-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
}

.order-item-variant {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.order-item-price {
  font-weight: 600;
}

/* ============================================
   Size Guide Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-blush-light);
}

.modal-body {
  padding: var(--spacing-xl);
}

/* Size Guide Table */
.size-table {
  width: 100%;
  border-collapse: collapse;
}

.size-table th,
.size-table td {
  padding: var(--spacing-md);
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.size-table th {
  background-color: var(--color-blush-light);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-table td {
  font-size: 0.9375rem;
}

.size-table tr:hover td {
  background-color: rgba(156, 175, 136, 0.1);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  transform: translateX(120%);
  transition: transform var(--transition-normal);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon.success {
  background-color: var(--color-sage-light);
  color: var(--color-emerald);
}

.toast-icon.error {
  background-color: #FFE0E0;
  color: var(--color-burgundy);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
}

.toast-message {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--color-dark);
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-blush-light) 25%, var(--color-cream) 50%, var(--color-blush-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .menu-toggle {
    display: flex;
  }
}

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

  .nav-mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .nav-mobile,
  .nav-mobile-link::after,
  .nav-mobile-link:hover::after,
  .nav-mobile-link:focus-visible::after {
    transition: none;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
  }
  
  .hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: var(--spacing-xl);
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .shop-layout {
    grid-template-columns: 1fr;
  }
  
  .shop-sidebar {
    position: static;
    display: none;
  }
  
  .shop-sidebar.active {
    display: block;
  }

  #filterToggle {
    display: inline-flex !important;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .product-gallery {
    position: static;
  }
  
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    max-width: 100%;
  }
  
  .about-hero {
    grid-template-columns: 1fr;
  }
  
  .about-story-content {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cart-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
  
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  
  .account-layout {
    grid-template-columns: 1fr;
  }
  
  .account-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .featured-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .featured-banner-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-top: var(--spacing-lg);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .collections-grid {
    grid-template-columns: 1fr;
  }
  
  .collections-showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-md);
  }
  
  .cart-item-actions {
    grid-column: span 2;
    justify-content: space-between;
    margin-top: var(--spacing-md);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card-info {
    padding: var(--spacing-md);
  }
  
  .product-gallery-thumbnails {
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }
  
  .tabs-nav {
    overflow-x: auto;
    gap: var(--spacing-md);
  }
  
  .tab-btn {
    white-space: nowrap;
  }
  
  .newsletter-form-group {
    flex-direction: column;
  }
  
  .size-options {
    flex-wrap: wrap;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slideUp {
  animation: slideUp 0.6s ease forwards;
}

.animate-slideIn {
  animation: slideIn 0.6s ease forwards;
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Language Switcher
   ============================================ */
.lang-switcher {
  padding: 6px 10px;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E675C' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 12px;
  padding-right: 24px;
  transition: border-color var(--transition-fast);
  min-width: 70px;
}

.lang-switcher:focus {
  outline: none;
  border-color: var(--color-sage);
}

.lang-switcher:hover {
  border-color: var(--color-sage);
}

/* ============================================
   RTL Support
   ============================================ */
html[dir="rtl"] .lang-switcher {
  background-position: left 6px center;
  padding-right: 10px;
  padding-left: 24px;
}

html[dir="rtl"] .hero-image {
  left: 0;
  right: auto;
}

html[dir="rtl"] .hero-image img {
  object-position: left center;
}

html[dir="rtl"] .toast-container {
  right: auto;
  left: var(--spacing-xl);
}

html[dir="rtl"] .toast {
  transform: translateX(-120%);
}

html[dir="rtl"] .toast.show {
  transform: translateX(0);
}

html[dir="rtl"] .collection-showcase-overlay {
  background: linear-gradient(to left, rgba(0,0,0,0.7) 0%, transparent 100%);
}

html[dir="rtl"] .cart-item {
  direction: rtl;
}

html[dir="rtl"] .form-select {
  background-position: left var(--spacing-md) center;
}

html[dir="rtl"] .account-nav-link svg {
  margin-right: 0;
  margin-left: var(--spacing-md);
}

html[dir="rtl"] .text-left {
  text-align: right;
}

html[dir="rtl"] .text-right {
  text-align: left;
}

html[lang="ar"] body {
  font-family: 'Cairo', var(--font-body), sans-serif;
}

html[lang="ar"] .logo,
html[lang="ar"] .footer-logo,
html[lang="ar"] .footer-title,
html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] .product-title,
html[lang="ar"] .cart-summary-title,
html[lang="ar"] .modal-title {
  font-family: 'Cairo', var(--font-display), sans-serif;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header,
  .footer,
  .newsletter,
  .btn,
  .cart-summary {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Contact page
   ============================================ */
.contact-section {
  padding: var(--spacing-section) 0 var(--spacing-2xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 var(--spacing-md);
}

.contact-info p {
  color: var(--color-gray);
  margin: 0 0 var(--spacing-md);
}

.contact-form {
  background: var(--color-cream);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.contact-form .form-group {
  margin-bottom: var(--spacing-md);
}

.contact-status {
  margin: var(--spacing-md) 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.1em;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* ============================================
   Font Overrides - CLS fix
   Reserve font metrics: if the webfont isn't
   ready at first paint it is skipped (no swap
   reflow). Declared after fonts/fonts.css so
   these rules win.
   ============================================ */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: optional; src: url(../fonts/cormorant-italic-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: optional; src: url(../fonts/cormorant-italic-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: optional; src: url(../fonts/cormorant-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: optional; src: url(../fonts/cormorant-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: optional; src: url(../fonts/cormorant-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: optional; src: url(../fonts/cormorant-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: optional; src: url(../fonts/montserrat-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: optional; src: url(../fonts/montserrat-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: optional; src: url(../fonts/montserrat-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: optional; src: url(../fonts/montserrat-normal-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: optional; src: url(../fonts/montserrat-normal-300-latin.woff2) format('woff2'); }

/* ============================================
   Responsive & mobile polish
   ============================================ */
@media (max-width: 992px) {
  .header-main { padding: var(--spacing-sm) 0; }
  .header-inner { gap: var(--spacing-sm); }
  .logo { font-size: 1.6rem; }
  .header-action-btn { width: 36px; height: 36px; }
  .header-action-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 768px) {
  .header-actions { gap: var(--spacing-xs); }
  .logo { font-size: 1.4rem; letter-spacing: 0.08em; }
  .product-info { padding-top: var(--spacing-lg); }
  .toast { max-width: calc(100vw - 40px); }
}

@media (max-width: 480px) {
  .header-main .container { padding: 0 var(--spacing-sm); }
  .logo { font-size: 1.2rem; }
  .header-action-btn { width: 32px; height: 32px; }
  .nav-mobile { padding: var(--spacing-md); }
  .nav-mobile-link { font-size: 1.6rem; }
  .nav-mobile-links { gap: var(--spacing-sm); }
}

@media (max-height: 640px) {
  .nav-mobile { padding: var(--spacing-lg); }
  .nav-mobile-link { font-size: 2rem; }
  .nav-mobile-links { gap: var(--spacing-md); }
}

/* ============================================
   Search Modal (injected by js/main.js)
   ============================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.55);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh var(--spacing-lg) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  transform: translateY(-12px);
  transition: transform var(--transition-normal);
}

.search-overlay.active .search-box {
  transform: translateY(0);
}

.search-box-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.search-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--color-gray);
}

.search-input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 1rem;
  padding: var(--spacing-sm) 0;
  background: transparent;
  color: var(--color-charcoal);
}

.search-input::placeholder {
  color: var(--color-gray-light);
}

.search-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  color: var(--color-gray);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.search-close:hover {
  background-color: var(--color-blush-light);
  color: var(--color-charcoal);
}

.search-results {
  overflow-y: auto;
  padding: var(--spacing-xs) 0;
}

.search-result {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: background-color var(--transition-fast);
}

.search-result:hover {
  background-color: var(--color-blush-light);
}

.search-result-img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
  background-color: var(--color-blush-light);
}

.search-result-body {
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  color: var(--color-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.875rem;
  color: var(--color-emerald);
  margin-top: 2px;
}

.search-result-empty {
  padding: var(--spacing-xl) var(--spacing-lg);
  color: var(--color-gray);
  font-size: 0.95rem;
}

html[lang="ar"] .search-result-body {
  text-align: right;
}

@media (max-width: 480px) {
  .search-overlay { padding-top: 8vh; }
  .search-box { max-height: 78vh; }
}

/* Auth panel (account page) */
.auth-panel {
  border: 1px solid var(--color-sage, #e6dcc8);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--spacing-md);
}
.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-sage, #e6dcc8);
  border-radius: 8px;
  background: transparent;
  color: var(--color-charcoal, #2b2b2b);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-tab.is-active {
  background: var(--color-charcoal, #2b2b2b);
  border-color: var(--color-charcoal, #2b2b2b);
  color: #fff;
}
.auth-intro {
  color: var(--color-gray, #6b6b6b);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.auth-error {
  margin: var(--spacing-sm) 0 0;
  color: var(--color-burgundy, #8a2a2a);
  font-size: 0.9rem;
}
.account-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-sage, #e6dcc8);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* ================================================================
   SKIN « MODÈLE » — Hanna & Nour (Arena) : crème, charbon, or,
   Playfair Display italique + Inter. Appliqué sur tout le site.
   ================================================================ */

.container { max-width: 1280px; }

h1, h2, h3 { font-style: italic; font-weight: 500; }

.subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
}

.heading-section { font-style: italic; color: var(--color-dark); }

/* ---- Buttons : pilules ---- */
.btn { border-radius: 999px; letter-spacing: 0.09em; font-weight: 600; }
.btn-primary {
  background-color: var(--color-charcoal);
  color: #F8F3EC;
  border: 2px solid var(--color-charcoal);
}
.btn-primary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(183,138,74,0.25);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
}
.btn-secondary:hover { background-color: var(--color-charcoal); color: #F8F3EC; }
.btn-outline {
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.btn-outline:hover { background-color: var(--color-gold); color: #fff; }
.btn-white {
  background-color: var(--color-charcoal);
  color: #F8F3EC;
  border: 2px solid var(--color-charcoal);
}
.btn-white:hover { background-color: var(--color-gold); border-color: var(--color-gold); }

/* ---- Header ---- */
.header { background-color: rgba(248,243,236,0.92); }
.header-top {
  background-color: #221F1C;
  color: #D4B483;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0;
}
.logo { font-size: 1.9rem; letter-spacing: 0.08em; color: var(--color-charcoal); }
.logo-accent { color: var(--color-gold); }
.nav-desktop { gap: var(--spacing-xl); }
.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(34,31,28,0.72);
}
.nav-link::after { background-color: var(--color-gold); }
.nav-link:hover, .nav-link.active { color: var(--color-charcoal); }
.header-action-btn:hover { background-color: var(--color-cream-dark); }
.header-action-btn svg { stroke: var(--color-charcoal); }
.cart-count { background-color: var(--color-gold); }
.lang-switcher {
  border: 1px solid #E0D6C4;
  border-radius: 999px;
  background: #fff;
  color: var(--color-charcoal);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Hero (modèle : sombre, image plein écran) ---- */
.hero { background-color: #221F1C; min-height: calc(100vh - 0px); }
.hero-title { color: #F8F3EC; font-size: clamp(2.9rem, 7vw, 5.4rem); }
.hero-title em { color: #D4B483; font-style: italic; }
.hero-subtitle {
  background: rgba(255,255,255,0.06);
  color: #D4B483;
  border: 1px solid rgba(212,180,131,0.4);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  margin-bottom: var(--spacing-lg);
}
.hero-description { color: rgba(248,243,236,0.78); font-size: 1.1rem; }
.hero-actions .btn {
  border: 1px solid rgba(248,243,236,0.4);
  color: #F8F3EC;
  background: transparent;
}
.hero-actions .btn:hover { background: rgba(248,243,236,0.12); border-color: rgba(248,243,236,0.6); }
.hero-actions .btn.btn-hero-fill { background: #F8F3EC; color: #221F1C; border-color: #F8F3EC; }
.hero-actions .btn.btn-hero-fill:hover { background: #D4B483; border-color: #D4B483; color: #221F1C; }
.hero-scroll { color: rgba(248,243,236,0.7); }
.hero-scroll-line { background: linear-gradient(to bottom, #D4B483, transparent); }
.hero-glow {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #221F1C 0%, rgba(34,31,28,0.55) 40%, rgba(34,31,28,0.25) 100%),
              linear-gradient(to right, rgba(34,31,28,0.75), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ---- Story / Featured banner (crème) ---- */
.featured-banner {
  background: linear-gradient(135deg, #F8F3EC 0%, #EFE6D8 100%);
  color: var(--color-charcoal);
}
.featured-banner::before { display: none; }
.featured-banner-content { flex-direction: row-reverse; }
.featured-banner-text { max-width: 560px; color: var(--color-charcoal); }
.featured-banner .subtitle { color: var(--color-gold); }
.featured-banner-title { color: var(--color-charcoal); font-size: clamp(2rem, 4.5vw, 3.4rem); }
.featured-banner p { color: rgba(34,31,28,0.7); }
.featured-banner-image {
  width: 480px;
  height: 560px;
  border-radius: 28px;
  background: #EFE6D8;
}
.featured-banner-image img { border-radius: 28px; }
.featured-banner .btn-white { background-color: var(--color-charcoal); color: #F8F3EC; }

/* ---- Collections / Eid tiles ---- */
.section[bg-cream-dark] { background-color: #EFE6D8; }
.collections-grid { grid-template-columns: repeat(3, 1fr); }
.collection-card { border-radius: 28px; aspect-ratio: 4/5; }
.collection-card-overlay { background: linear-gradient(to top, rgba(34,31,28,0.85), rgba(34,31,28,0.08) 55%, transparent); }
.collection-card-title { font-style: italic; font-size: 1.6rem; }
.collection-card-count { color: rgba(248,243,236,0.75); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Product cards ---- */
.products-grid { grid-template-columns: repeat(4, 1fr); gap: var(--spacing-xl); }
.product-card { border-radius: 20px; background: #EFE6D8; box-shadow: 0 4px 14px rgba(34,31,28,0.04); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(34,31,28,0.12); }
.product-card-image { aspect-ratio: 3/4; background: #EFE6D8; }
.product-card-image img { transition: transform 0.7s ease; }
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-badge {
  border-radius: 999px;
  background: #221F1C;
  color: #F8F3EC;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
.product-card-quick-add { padding: var(--spacing-md); }
.product-card-quick-add .btn { border-radius: 999px; }
.product-card-category { color: var(--color-gold); font-size: 0.7rem; letter-spacing: 0.14em; }
.product-card-title { font-style: italic; font-size: 1.15rem; font-weight: 500; }
.product-price-current { font-size: 1.05rem; font-weight: 600; }
.product-price-original { color: rgba(34,31,28,0.4); }
.stars { color: var(--color-gold); }
.stars svg { fill: var(--color-gold); }

/* ---- Testimonials (sombre) ---- */
.testimonials { background-color: #221F1C; }
.testimonials .heading-section { color: #F8F3EC; }
.testimonials .subtitle { color: #D4B483; }
.testimonial-card {
  background: rgba(248,243,236,0.05);
  border: 1px solid rgba(248,243,236,0.12);
  border-radius: 24px;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.testimonial-stars svg { fill: #D4B483; }
.testimonial-text { color: rgba(248,243,236,0.82); }
.testimonial-name { color: #F8F3EC; }
.testimonial-location { color: rgba(248,243,236,0.5); }
.testimonial-avatar { background-color: var(--color-gold); color: #fff; font-weight: 600; }

/* ---- Newsletter ---- */
.newsletter { background: #EFE6D8; }
.newsletter-content { justify-content: center; text-align: center; flex-direction: column; }
.newsletter-text { max-width: 560px; }
.newsletter-title { font-style: italic; color: var(--color-charcoal); }
.newsletter .subtitle { color: var(--color-gold); }
.newsletter-form { max-width: 480px; }
.input-group input { border-radius: 999px; }
.newsletter-form-group .btn { border-radius: 999px; }

/* ---- Footer ---- */
.footer { background-color: #221F1C; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--spacing-2xl); }
.footer-logo { font-size: 1.9rem; letter-spacing: 0.08em; }
.footer-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D4B483;
  font-style: normal;
}
.footer-link:hover { color: #D4B483; }
.footer-bottom { justify-content: space-between; }
.footer-payments span { border-radius: 8px; }

/* ---- Pages internes ---- */
.page-header { background-color: #F0E7D9; }
.page-header-title { font-style: italic; }
.page-header-breadcrumb { color: rgba(34,31,28,0.55); }

/* Forms & champs */
.form-input, .form-select, .price-input, .shop-sort select,
.cart-promo input, .filter-title, .quantity-selector {
  border-radius: 12px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-gold) !important;
  outline: none;
}

/* ---- Responsive du skin ---- */
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-banner-content { flex-direction: column; }
  .featured-banner-image { width: 100%; max-width: 480px; height: auto; aspect-ratio: 4/5; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); }
  .collections-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 140px 0 90px; }
  .hero-title { font-size: 2.5rem; }
}

/* Arabe : Cairo partout, titre non italique */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .product-card-title, html[dir="rtl"] .heading-section,
html[dir="rtl"] .hero-title, html[dir="rtl"] .featured-banner-title,
html[dir="rtl"] .collection-card-title, html[dir="rtl"] .page-header-title,
html[dir="rtl"] .newsletter-title, html[dir="rtl"] .footer-logo,
html[dir="rtl"] .logo {
  font-style: normal;
}

/* ---- Badges de confiance (footer) ---- */
.footer-trust { display: flex; flex-direction: column; gap: 10px; margin-top: var(--spacing-lg); }
.footer-trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: rgba(248,243,236,0.75);
}
.footer-trust-item svg { width: 18px; height: 18px; color: #D4B483; flex-shrink: 0; }

/* Badges de paiement : pilules cohérentes avec le modèle */
.footer-bottom .footer-payments span { border-radius: 999px !important; }

/* Titres de section en Playfair (pages éditoriales) */
.heading-display { font-style: italic; }

/* ============================================
   Footer Modèle — copie du site de référence
   ============================================ */
.footer.model-footer { padding: 0; }

.footer-wrap {
  position: relative;
  background-color: #221F1C;
  padding: 96px 0 44px;
}

.footer-scroll-top {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 3;
}
.footer-scroll-top:hover { background: #D4B483; transform: translateX(-50%) translateY(-3px); }
.footer-scroll-top svg { width: 20px; height: 20px; }

.model-footer .footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px 28px;
  margin-bottom: 0;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248, 243, 236, 0.1);
  text-align: left;
}
html[dir="rtl"] .model-footer .footer-grid { text-align: right; }

.model-footer .footer-brand {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
html[dir="rtl"] .model-footer .footer-brand { align-items: flex-end; text-align: right; }
.model-footer .footer-logo { margin-bottom: 16px; line-height: 1.2; }
.model-footer .footer-description {
  color: rgba(248, 243, 236, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(248, 243, 236, 0.6);
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: #D4B483; }
.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #D4B483;
}

.footer-social { margin-top: 22px; display: flex; gap: 12px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248, 243, 236, 0.15);
  color: rgba(248, 243, 236, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.footer-social a:hover { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: none; }
.footer-social svg.footer-icon-fill { fill: currentColor; stroke: none; }

.model-footer .footer-title {
  color: #F8F3EC;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-style: normal;
  margin-bottom: 20px;
}
.model-footer .footer-links { gap: 12px; }
.model-footer .footer-link { color: rgba(248, 243, 236, 0.6); font-size: 0.86rem; }

/* Colonnes : accordéons sur mobile (comme le modèle) */
.footer-col-desktop { display: block; }
.footer-col-acc { display: none; }

@media (max-width: 992px) {
  .model-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-col-desktop { display: none; }
  .footer-col-acc { display: block; border-bottom: 1px solid rgba(248, 243, 236, 0.08); }
  .footer-col-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin-bottom: 0;
  }
  .footer-col-acc summary::-webkit-details-marker { display: none; }
  .footer-col-acc summary svg { width: 16px; height: 16px; color: #D4B483; transition: transform 0.25s ease; }
  .footer-col-acc[open] summary svg { transform: rotate(180deg); }
  .footer-col-acc .footer-links { padding-bottom: 16px; gap: 11px; }
}

/* Rangée confiance : chips paiement + camion / retour / cadenas / code */
.footer-trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  padding: 30px 0;
  border-bottom: 1px solid rgba(248, 243, 236, 0.1);
}
.footer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-chips span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(248, 243, 236, 0.15);
  background: rgba(248, 243, 236, 0.06);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(248, 243, 236, 0.7);
}
.footer-trust {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin-top: 0;
}
.footer-trust-item { font-size: 0.8rem; color: rgba(248, 243, 236, 0.75); }
.footer-trust-item svg { width: 18px; height: 18px; color: #D4B483; flex-shrink: 0; }
.footer-trust-item.trust-highlight {
  background: rgba(212, 180, 131, 0.12);
  border: 1px solid rgba(212, 180, 131, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Légal : copyright à gauche + liens (Confidentialité / CGV / Cookies) */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 30px;
}
.model-footer .footer-copyright { font-size: 0.8rem; color: rgba(248, 243, 236, 0.5); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-legal-links a { font-size: 0.8rem; color: rgba(248, 243, 236, 0.5); transition: color 0.2s ease; }
.footer-legal-links a:hover { color: #D4B483; }

@media (max-width: 600px) {
  .model-footer .footer-grid { grid-template-columns: 1fr; }
  .model-footer .footer-wrap { padding-top: 88px; }
  .footer-trust-row { align-items: flex-start; flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
}


/* ---- Header overlay (home : transparent sur la photo, normal au scroll) ---- */
.header.header-overlay {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.header.header-overlay .header-top {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.header.header-overlay .logo,
.header.header-overlay .nav-link {
  color: #F8F3EC;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
.header.header-overlay .logo-accent { color: #D4B483; }
.header.header-overlay .nav-link::after { background-color: #D4B483; }
.header.header-overlay .header-action-btn svg { stroke: #F8F3EC; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4)); }
.header.header-overlay .header-action-btn:hover { background: rgba(248, 243, 236, 0.14); }
.header.header-overlay .lang-switcher {
  background-color: rgba(34, 31, 28, 0.35);
  border-color: rgba(248, 243, 236, 0.45);
  color: #F8F3EC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F8F3EC' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
}
.header.header-overlay .cart-count { box-shadow: 0 0 0 2px rgba(34, 31, 28, 0.35); }

/* Scrolled : redevient normal (crème, flou, séparé de la photo) */
.header.header-overlay.scrolled {
  background-color: rgba(253, 248, 245, 0.98);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}
.header.header-overlay.scrolled .header-top {
  max-height: 48px;
  opacity: 1;
  padding: var(--spacing-sm) 0;
}
.header.header-overlay.scrolled .logo,
.header.header-overlay.scrolled .nav-link {
  color: var(--color-charcoal);
  text-shadow: none;
}
.header.header-overlay.scrolled .logo-accent { color: var(--color-emerald); }
.header.header-overlay.scrolled .nav-link::after { background-color: var(--color-emerald); }
.header.header-overlay.scrolled .header-action-btn svg { stroke: var(--color-charcoal); filter: none; }
.header.header-overlay.scrolled .header-action-btn:hover { background-color: var(--color-cream-dark); }
.header.header-overlay.scrolled .lang-switcher {
  background-color: #fff;
  border-color: #E0D6C4;
  color: var(--color-charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E675C' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
}

.header.header-overlay .menu-toggle span { background-color: #F8F3EC; }
.header.header-overlay.scrolled .menu-toggle span { background-color: var(--color-charcoal); }

/* ---- Home 100% modele : hero pleine page, section Eid 2 colonnes, tuiles ---- */
#eid,
#collections,
#bestsellers { scroll-margin-top: 120px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.hero-glow { background: linear-gradient(to top, #221F1C 0%, rgba(34,31,28,0.4) 40%, rgba(34,31,28,0.1) 100%); }
.hero-glow-right { position: absolute; inset: 0; background: linear-gradient(to right, rgba(34,31,28,0.7), transparent 60%); z-index: 1; pointer-events: none; }
.hero-scroll { bottom: 2rem; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.3em; }
.hero-scroll-arrow { width: 1rem; height: 1rem; animation: scrollArrow 2s ease-in-out infinite; }
@keyframes scrollArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero-actions .btn.btn-hero-fill { background: #D4B483; border-color: #D4B483; color: #fff; box-shadow: 0 10px 30px rgba(212,180,131,0.25); }
.hero-actions .btn.btn-hero-fill:hover { background: #E2C69A; border-color: #E2C69A; color: #fff; transform: translateY(-2px); }

.eid-section { background-color: #F8F3EC; }
.eid-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.eid-image { order: 2; border-radius: 24px; overflow: hidden; }
.eid-image img { width: 100%; height: clamp(340px, 60vw, 520px); object-fit: cover; transition: transform 0.7s ease; }
.eid-image:hover img { transform: scale(1.05); }
.eid-content { order: 1; }
.eid-content .heading-section { margin-top: 1rem; }
.eid-content p { margin-top: 1.25rem; max-width: 480px; color: rgba(34,31,28,0.7); line-height: 1.9; }
.btn-charcoal { background: #221F1C; border: 1px solid #221F1C; color: #F8F3EC; }
.btn-charcoal:hover { background: #D4B483; border-color: #D4B483; color: #fff; }
@media (min-width: 1024px) {
  .eid-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .eid-image { order: 1; }
  .eid-content { order: 2; }
  html[dir="rtl"] .eid-image { order: 2; }
  html[dir="rtl"] .eid-content { order: 1; }
}
.collection-card-desc { margin-top: 0.4rem; font-size: 0.9rem; color: rgba(248,243,236,0.78); }
.collection-card-more { display: inline-block; margin-top: 1rem; border-bottom: 1px solid #D4B483; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #D4B483; opacity: 0; transition: opacity 0.3s ease; }
.collection-card:hover .collection-card-more { opacity: 1; }

/* ---- Retouches header (client) : logo/liens noirs, & doré, langue sans flèche ---- */
.logo { color: #141414; }
.logo-accent { color: #D4B483; }

.header-overlay .logo,
.header-overlay .nav-link { color: #141414; text-shadow: none; }
.header-overlay .logo-accent { color: #D4B483; }
.header-overlay .nav-link:hover,
.header-overlay .nav-link.active { color: #D4B483; }
.header-overlay .header-action-btn svg { stroke: #141414; filter: none; }
.header-overlay .header-action-btn:hover { background: rgba(34,31,28,0.06); }
.header-overlay .menu-toggle span { background-color: #141414; }
.header-overlay.scrolled .menu-toggle span { background-color: #141414; }
.header-overlay.scrolled .logo-accent { color: #D4B483; }

.lang-switcher,
.header-overlay .lang-switcher,
.header-overlay.scrolled .lang-switcher {
  background-image: none;
  padding-right: 0.75rem;
}
.header-overlay .lang-switcher {
  background-color: #fff;
  border-color: #E0D6C4;
  color: #141414;
}

/* ---- Mobile : logo + panier + hamburger à droite (le reste est dans le menu) ---- */
@media (max-width: 767.98px) {
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-actions .lang-switcher,
  .header-action-btn[aria-label="Search"],
  .header-action-btn[aria-label="Account"],
  .header-action-btn[aria-label="Wishlist"] { display: none; }
  .menu-toggle { display: flex; order: 6; }
}

/* ---- Menu mobile : Recherche (+ séparateur) ---- */
.nav-mobile-divider {
  height: 1px;
  background: var(--color-sage-light);
  margin: var(--spacing-sm) 0;
}
.nav-mobile-action {
  justify-content: flex-start;
  gap: 0.75rem;
}
.nav-mobile-action::after { content: none; }
.nav-mobile-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ---- Header : fond solide crème au top (plus de texture photo derrière les boutons) ---- */
.header.header-overlay,
.header.header-overlay.scrolled {
  background-color: rgba(253, 248, 245, 0.98);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}
.header.header-overlay .header-top,
.header.header-overlay.scrolled .header-top {
  max-height: 48px;
  opacity: 1;
  padding: var(--spacing-sm) 0;
}

/* ---- Sélecteur de langue : aucune flèche (native ou SVG), pilule blanche propre ---- */
select.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}
.header.header-overlay .lang-switcher,
.header.header-overlay.scrolled .lang-switcher {
  background-color: #fff;
  border-color: #E0D6C4;
  color: #141414;
}

/* ---- Header home : retour transparent intégré à la photo (le solide était cassé) ---- */
.header.header-overlay {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.header.header-overlay .header-top {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
}
.header.header-overlay.scrolled {
  background-color: rgba(253, 248, 245, 0.98);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}
.header.header-overlay.scrolled .header-top {
  max-height: 48px;
  opacity: 1;
  padding: var(--spacing-sm) 0;
}
.header.header-overlay .lang-switcher {
  background-color: #fff;
  border-color: #E0D6C4;
  color: #141414;
}

/* ---- Menu mobile redesign : 5 actions avant les liens, liens plus petits, logo noir ---- */
.nav-mobile-actions {
  display: flex;
  gap: 8px;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-sage-light);
}
.nav-mobile-action-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 2px;
  background: #fff;
  border: 1px solid #E7DDCB;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: #141414;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.nav-mobile-action-btn:hover {
  border-color: #D4B483;
  background: #FBF6EE;
}
.nav-mobile-action-icon { display: inline-flex; }
.nav-mobile-action-icon svg { width: 20px; height: 20px; }
.nav-mobile-action-lang { padding: 8px 2px; }
.nav-mobile-action-lang .lang-switcher {
  width: 100%;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: #141414;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.nav-mobile-link { font-size: 1.5rem; }
.nav-mobile-header .logo { color: #141414; }

/* ---- Forcer logo & liens header/drawer en noir (l'ancien bloc cream #F8F3EC gagnait) ---- */
.header .logo,
.header .nav-link,
.header.header-overlay .logo,
.header.header-overlay .nav-link,
.header.header-overlay.scrolled .logo,
.header.header-overlay.scrolled .nav-link {
  color: #141414 !important;
  text-shadow: none !important;
}
.header .nav-link:hover,
.header.header-overlay .nav-link:hover {
  color: #D4B483 !important;
}
.header .logo-accent,
.header.header-overlay .logo-accent,
.header.header-overlay.scrolled .logo-accent {
  color: #D4B483 !important;
}

/* ---- Liens du menu : remontés juste sous la barre d'actions ---- */
.nav-mobile-links {
  justify-content: flex-start;
  flex: 1 1 auto;
}

/* ---- Badge panier du menu : petite bulle au coin qui ne cache pas l'icone ---- */
.nav-mobile-action-btn .nav-mobile-cart-count {
  top: -7px;
  right: -9px;
  width: 17px;
  height: 17px;
  font-size: 0.6rem;
  z-index: 2;
}

/* ---- Menu mobile : espace entre la ligne du haut et les 5 boutons ---- */
.nav-mobile-actions { margin-top: var(--spacing-md); }

/* ---- Header home : blanc quand intégré à la photo, noir au scroll ---- */
.header.header-overlay:not(.scrolled) .logo,
.header.header-overlay:not(.scrolled) .nav-link {
  color: #F8F3EC !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4) !important;
}
.header.header-overlay:not(.scrolled) .nav-link:hover,
.header.header-overlay:not(.scrolled) .nav-link.active {
  color: #D4B483 !important;
}
.header.header-overlay:not(.scrolled) .logo-accent {
  color: #D4B483 !important;
}
.header.header-overlay:not(.scrolled) .header-action-btn svg {
  stroke: #F8F3EC !important;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4));
}
.header.header-overlay:not(.scrolled) .menu-toggle span {
  background-color: #F8F3EC !important;
}

/* Logo : taille et lettrage du modele (text-2xl 24px + tracking-wide 0.025em) */
.logo {
  font-size: 1.5rem;
  letter-spacing: 0.025em;
}


/* Auth : lien mot de passe oublie + messages du formulaire de recuperation */
.auth-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: var(--spacing-sm);
  font: inherit;
  font-size: 0.85rem;
  color: var(--color-emerald);
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
}
.auth-link:hover { color: var(--color-dark); }
.auth-msg {
  font-size: 0.85rem;
  color: var(--color-emerald);
  margin-top: var(--spacing-sm);
}
.auth-msg-error { color: var(--color-burgundy); }


/* Page reset mot de passe : carte centree, cohérente avec le design du site */
.page-reset {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}
.reset-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--color-white);
  border: 1px solid var(--color-sage, #e6dcc8);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.reset-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}
.reset-lock {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-blush-light);
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reset-lock svg { width: 20px; height: 20px; }
.reset-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-dark);
}
.reset-msg {
  text-align: center;
  color: var(--color-gray);
}
.reset-msg .btn-primary {
  display: inline-block;
  margin-top: var(--spacing-lg);
}
.reset-help {
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
}
.reset-help a { color: var(--color-emerald); text-decoration: underline; }

/* ================================================================
   MODE SOMBRE — bascule lune/soleil (html[data-theme="dark"])
   Partagé admin + site (clé localStorage : hn-theme). Le skin clair
   repose sur des variables crème/charbon/or : on bascule les variables
   de surface/texte, puis on surcharge les composants codés en dur.
   ================================================================ */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-cream: #16130F;
  --color-blush-light: #201C16;
  --color-sage-light: #3A3327;
  --color-cream-dark: #262119;
  --color-off-white: #1A1610;
  --color-charcoal: #EDE6DA;
  --color-dark: #EDE6DA;
  --color-gray: #A89A82;
  --color-gray-light: #C9BEAA;
  --color-gold: #C79B54;
  --color-sage: #C79B54;
  --color-emerald: #C79B54;
  --color-emerald-dark: #D3A75C;
}

/* ---- Surfaces blanches : cartes, paniers, formulaires, modales ---- */
html[data-theme="dark"] .nav-mobile,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .cart-summary,
html[data-theme="dark"] .account-sidebar,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .reset-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .value-icon,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .shop-sort select,
html[data-theme="dark"] .input-group input,
html[data-theme="dark"] .nav-mobile-action-btn {
  background-color: #201C16;
  color: #EDE6DA;
}

/* ---- Sections crème / cartes du skin ---- */
html[data-theme="dark"] .section[bg-cream-dark],
html[data-theme="dark"] .newsletter,
html[data-theme="dark"] .about-values,
html[data-theme="dark"] .reviews-summary {
  background-color: #201C16;
}
html[data-theme="dark"] .featured-banner {
  background: linear-gradient(135deg, #262119 0%, #1C1812 100%);
}
html[data-theme="dark"] .featured-banner-text,
html[data-theme="dark"] .featured-banner-title {
  color: #EDE6DA;
}
html[data-theme="dark"] .featured-banner p {
  color: rgba(237, 230, 218, 0.7);
}
html[data-theme="dark"] .featured-banner-image {
  background: #1A1610;
}
html[data-theme="dark"] .featured-banner .btn-white {
  background-color: #C79B54;
  border-color: #C79B54;
  color: #16130F;
}
html[data-theme="dark"] .featured-banner .btn-white:hover {
  background-color: #DDBA7E;
  border-color: #DDBA7E;
  color: #16130F;
}

/* ---- Page header / breadcrumb ---- */
html[data-theme="dark"] .page-header {
  background-color: #201C16;
}
html[data-theme="dark"] .page-header-breadcrumb {
  color: rgba(237, 230, 218, 0.6);
}

/* ---- Header : fond crème -> sombre, texte noir -> crème ---- */
html[data-theme="dark"] .header:not(.header-overlay),
html[data-theme="dark"] .header.header-overlay.scrolled {
  background-color: rgba(22, 19, 15, 0.95);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .header.header-overlay.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .header .logo,
html[data-theme="dark"] .header .nav-link {
  color: #EDE6DA !important;
  text-shadow: none !important;
}
html[data-theme="dark"] .header.header-overlay.scrolled .logo,
html[data-theme="dark"] .header.header-overlay.scrolled .nav-link {
  color: #EDE6DA !important;
  text-shadow: none !important;
}
html[data-theme="dark"] .header:not(.header-overlay) .header-action-btn svg,
html[data-theme="dark"] .header.header-overlay.scrolled .header-action-btn svg {
  stroke: #EDE6DA;
}
html[data-theme="dark"] .header:not(.header-overlay) .menu-toggle span {
  background-color: #EDE6DA;
}
html[data-theme="dark"] .header:not(.header-overlay) .lang-switcher,
html[data-theme="dark"] .header.header-overlay .lang-switcher,
html[data-theme="dark"] .lang-switcher {
  background-color: #201C16;
  border-color: #3A3327;
  color: #EDE6DA;
}

/* ---- Menu mobile ---- */
html[data-theme="dark"] .nav-mobile-header .logo,
html[data-theme="dark"] .nav-mobile-action-lang .lang-switcher {
  color: #EDE6DA;
}
html[data-theme="dark"] .nav-mobile-action-btn {
  border-color: #3A3327;
}
html[data-theme="dark"] .nav-mobile-action-btn:hover {
  background: #262119;
  border-color: #C79B54;
}

/* ---- Boutons : charbon -> or, fonds sombres réaffirmés ---- */
html[data-theme="dark"] .btn-primary {
  background-color: #C79B54;
  border-color: #C79B54;
  color: #16130F;
}
html[data-theme="dark"] .btn-primary:hover {
  background-color: #DDBA7E;
  border-color: #DDBA7E;
  color: #16130F;
}
html[data-theme="dark"] .btn-secondary:hover {
  background-color: #C79B54;
  border-color: #C79B54;
  color: #16130F;
}
html[data-theme="dark"] .btn-white {
  background-color: #2A251E;
  border-color: #2A251E;
  color: #EDE6DA;
}
html[data-theme="dark"] .btn-white:hover {
  background-color: #C79B54;
  border-color: #C79B54;
  color: #16130F;
}
html[data-theme="dark"] .auth-tab.is-active {
  background-color: #C79B54;
  border-color: #C79B54;
  color: #16130F;
}
html[data-theme="dark"] .view-btn.active,
html[data-theme="dark"] .size-option.active {
  background-color: #C79B54;
  border-color: #C79B54;
  color: #16130F;
}

/* ---- Cartes produit ---- */
html[data-theme="dark"] .product-card {
  background: #201C16;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .product-card:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .product-card-image {
  background: #1A1610;
}
html[data-theme="dark"] .product-badge,
html[data-theme="dark"] .product-price-discount {
  background-color: #C79B54;
  color: #16130F;
}
html[data-theme="dark"] .product-price-original {
  color: rgba(237, 230, 218, 0.45);
}
html[data-theme="dark"] .product-wishlist {
  background-color: rgba(22, 19, 15, 0.9);
}
html[data-theme="dark"] .product-wishlist svg {
  stroke: #EDE6DA;
}
html[data-theme="dark"] .product-wishlist:hover svg,
html[data-theme="dark"] .product-wishlist.active svg {
  fill: #D4B483;
  stroke: #D4B483;
}

/* ---- Erreurs / liens danger (burgundy reste sombre) ---- */
html[data-theme="dark"] .auth-error,
html[data-theme="dark"] .auth-msg-error {
  color: #F0A59C;
}
html[data-theme="dark"] .filter-tag-remove:hover,
html[data-theme="dark"] .cart-item-remove:hover {
  color: #D4B483;
}

/* ---- Séparateurs : noirs translucides -> blancs translucides ---- */
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .tabs-nav,
html[data-theme="dark"] .product-tabs,
html[data-theme="dark"] .product-meta,
html[data-theme="dark"] .review-card {
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .cart-summary-title {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .cart-summary-row.total {
  border-top-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .size-table th,
html[data-theme="dark"] .size-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---- Divers ---- */
html[data-theme="dark"] .review-bar-track {
  background-color: #3A3327;
}
html[data-theme="dark"] .payment-method.selected {
  background-color: rgba(199, 155, 84, 0.12);
}
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer.model-footer .footer-wrap {
  background-color: #1B1814;
}

/* ---- Recherche, toasts, compte, section eid ---- */
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .account-content,
html[data-theme="dark"] .toast {
  background-color: #201C16;
}
html[data-theme="dark"] .search-box-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .toast-icon.error {
  background-color: #4A2828;
  color: #F0A59C;
}
html[data-theme="dark"] .eid-section {
  background-color: #201C16;
}
html[data-theme="dark"] .eid-content p {
  color: rgba(237, 230, 218, 0.7);
}
html[data-theme="dark"] .btn-charcoal {
  background-color: #2A251E;
  border-color: #2A251E;
  color: #EDE6DA;
}

/* ============================================================
   Chatbot flottant (.hn-chat) — bouton + panneau, bas de page
   Placement logique : suit la direction (RTL inclus).
   ============================================================ */
.hn-chat {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  z-index: 9000;
  font-family: inherit;
}
.hn-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #A67C00;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(90, 70, 40, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.hn-chat-toggle:hover { transform: translateY(-2px); background: #8f6a00; }
.hn-chat-toggle svg { width: 26px; height: 26px; }
.hn-chat-panel {
  position: absolute;
  inset-block-end: 66px;
  inset-inline-end: 0;
  width: min(360px, calc(100vw - 24px));
  background: #fffdf8;
  border: 1px solid #E7DECC;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(60, 45, 20, 0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.hn-chat--open .hn-chat-panel { display: flex; }
.hn-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #A67C00;
  color: #fff;
}
.hn-chat-title { font-weight: 700; font-size: 15px; font-family: 'Playfair Display', Georgia, serif; }
.hn-chat-sub { font-size: 11px; opacity: 0.9; }
.hn-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hn-chat-close svg { width: 15px; height: 15px; }
.hn-chat-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hn-chat-msg {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.hn-chat-msg--bot {
  align-self: flex-start;
  background: #F2EAD9;
  color: #3f3a2f;
  border-start-start-radius: 4px;
}
.hn-chat-msg--user {
  align-self: flex-end;
  background: #A67C00;
  color: #fff;
  border-end-end-radius: 4px;
}
.hn-chat-msg-txt:empty::before { content: '\00a0'; }
.hn-chat-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.hn-chat-link {
  font-size: 12px;
  color: #A67C00;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hn-chat-msg--user .hn-chat-link { color: #fff; }
.hn-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
}
.hn-chat-chip {
  border: 1px solid #E2D8C5;
  background: #fffdf8;
  color: #6b5d4a;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.hn-chat-chip:hover { border-color: #A67C00; color: #A67C00; }
.hn-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #E7DECC;
  background: #fffdf8;
}
.hn-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E2D8C5;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13.5px;
  background: #fff;
  color: #3f3a2f;
}
.hn-chat-input:focus { outline: none; border-color: #A67C00; }
.hn-chat-send {
  border: none;
  background: #A67C00;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hn-chat-send svg { width: 18px; height: 18px; }
.hn-chat-send:disabled { opacity: 0.6; cursor: default; }

/* Mode sombre */
html[data-theme="dark"] .hn-chat-toggle { background: #C79B54; color: #1B1814; }
html[data-theme="dark"] .hn-chat-toggle:hover { background: #d9ab64; }
html[data-theme="dark"] .hn-chat-panel {
  background: #201C16;
  border-color: #3A3327;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .hn-chat-head { background: #2A251E; color: #EDE6DA; }
html[data-theme="dark"] .hn-chat-close { background: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .hn-chat-msg--bot { background: #2A251E; color: #E9E1D2; }
html[data-theme="dark"] .hn-chat-msg--user { background: #C79B54; color: #1B1814; }
html[data-theme="dark"] .hn-chat-msg--user .hn-chat-link { color: #1B1814; }
html[data-theme="dark"] .hn-chat-link { color: #D3A75C; }
html[data-theme="dark"] .hn-chat-chips,
html[data-theme="dark"] .hn-chat-form { background: #201C16; border-color: #3A3327; }
html[data-theme="dark"] .hn-chat-chip {
  background: #1A1610;
  border-color: #3E3629;
  color: #C9BEAA;
}
html[data-theme="dark"] .hn-chat-chip:hover { border-color: #C79B54; color: #D3A75C; }
html[data-theme="dark"] .hn-chat-input {
  background: #1A1610;
  border-color: #3E3629;
  color: #EDE6DA;
}
html[data-theme="dark"] .hn-chat-input:focus { border-color: #C79B54; }
html[data-theme="dark"] .hn-chat-send { background: #C79B54; color: #1B1814; }
