/*
Theme Name: Olympia Brand AR
Theme URI: https://olympia-maroc.ma
Author: Olympia Brand
Description: متجر براند فاخر — Hogan Olympia — المغرب — الخلاص عند التوصيل (نسخة عربية RTL)
Version: 2.0.0-AR
License: GNU General Public License v2 or later
Text Domain: olympia-brand
Tags: woocommerce, one-product, luxury, cod, morocco
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --black:   #0B0B0A;
  --white:   #FAFAF8;
  --navy:    #1B2A45;
  --taupe:   #C8B89A;
  --wine:    #8B1A1A;
  --g1:      #F5F4F2;
  --g2:      #E8E7E5;
  --g3:      #B5B4AE;
  --g4:      #6A6965;
  --wa:      #25D366;

  --font-h:  'Amiri', 'Cormorant Garamond', Georgia, serif;
  --font-b:  'Tajawal', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:   1280px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur:     0.28s;
}

/* ============================================================
   RTL — DIRECTION ARABE
   ============================================================ */
html { direction: rtl; }
body { text-align: right; }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: opacity var(--dur) var(--ease); }
a:hover { opacity: 0.65; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--font-b); cursor: pointer; }
ul, ol { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(11,11,10,0.08);
}
.site-header.dark-hero {
  color: var(--white);
}
.site-header.dark-hero.scrolled {
  color: var(--black);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a {
  font-weight: 500;
  opacity: 0.75;
  transition: opacity var(--dur);
}
.site-nav a:hover { opacity: 1; }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}
.header-wa {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  transition: background var(--dur);
}
.site-header.dark-hero .header-wa { background: var(--white); color: var(--black); }
.site-header.dark-hero.scrolled .header-wa { background: var(--black); color: var(--white); }
.header-wa:hover { opacity: 1; background: var(--navy); color: var(--white) !important; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur), opacity var(--dur);
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  color: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--font-h);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.close-nav {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--white);
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: italic; color: var(--taupe); }
.hero-sub {
  font-size: 15px;
  color: rgba(250,250,248,0.7);
  max-width: 400px;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-primary:hover { background: var(--taupe); border-color: var(--taupe); color: var(--black); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(250,250,248,0.4);
}
.btn-outline:hover { border-color: var(--white); opacity: 1; }
.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--navy); border-color: var(--navy); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--g2);
}
.btn-ghost:hover { border-color: var(--black); opacity: 1; }
.btn-wa {
  background: var(--wa);
  color: var(--white);
  border-color: var(--wa);
  font-size: 13px;
  padding: 1rem 1.75rem;
}
.btn-wa:hover { background: #1aa252; border-color: #1aa252; opacity: 1; }
.btn-cod {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  font-size: 13px;
  padding: 1rem 1.75rem;
  width: 100%;
  justify-content: center;
}
.btn-cod:hover { background: var(--navy); border-color: var(--navy); opacity: 1; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 0.875rem var(--gutter);
  overflow: hidden;
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(250,250,248,0.8);
  white-space: nowrap;
}
.trust-item svg { opacity: 0.6; }

/* ============================================================
   COLOR SHOWCASE (Homepage)
   ============================================================ */
.color-showcase {
  padding: var(--sp-xl, 8rem) var(--gutter);
}
.cs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
}
.cs-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--g1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cs-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cs-card:hover img { transform: scale(1.04); }
.cs-info {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: linear-gradient(to top, rgba(11,11,10,0.7) 0%, transparent 100%);
  color: var(--white);
}
.cs-label { font-size: 11px; letter-spacing: 0.15em; color: var(--taupe); margin-bottom: 0.4rem; }
.cs-name { font-family: var(--font-h); font-size: 1.75rem; margin-bottom: 1rem; }
.cs-card .btn { backdrop-filter: none; }

/* ============================================================
   BRAND STORY (Homepage)
   ============================================================ */
.brand-story {
  padding: 8rem var(--gutter);
  background: var(--g1);
}
.bs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}
.bs-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.bs-content {}
.bs-year {
  font-family: var(--font-h);
  font-size: 6rem;
  line-height: 1;
  color: var(--g2);
  font-weight: 400;
  margin-bottom: -1rem;
}
.bs-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.bs-body { color: var(--g4); line-height: 1.8; max-width: 480px; }

/* ============================================================
   COLLECTION PAGE
   ============================================================ */
.collection-header {
  padding: 8rem var(--gutter) 4rem;
  text-align: center;
}
.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 1rem;
}
.page-title {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
}
.products-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.product-card {
  display: block;
  background: var(--white);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--g1);
  margin-bottom: 1.25rem;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
}
.product-card-info { padding: 0 0.25rem; }
.product-card-name {
  font-family: var(--font-h);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}
.product-card-sub { font-size: 12px; color: var(--g4); margin-bottom: 0.75rem; }
.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.price-current { font-size: 1.125rem; font-weight: 600; }
.price-old { font-size: 0.9rem; color: var(--g3); text-decoration: line-through; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  padding-top: 64px;
}
.product-gallery {
  position: relative;
  overflow: hidden;
  background: var(--g1);
  min-height: calc(100vh - 64px);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.gallery-track.dragging { transition: none; }
.gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}
.gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(250,250,248,0.9);
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(11,11,10,0.12);
  transition: background var(--dur), transform var(--dur);
  opacity: 0.85;
}
.gallery-arrow:hover { background: var(--white); opacity: 1; transform: translateY(-50%) scale(1.06); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

/* Dots */
.gallery-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  background: rgba(11,11,10,0.28);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(250,250,248,0.5);
  cursor: pointer;
  padding: 0;
  transition: all var(--dur);
}
.gallery-dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 4px;
}

.product-info {
  padding: 3rem 3rem 4rem;
  display: flex;
  flex-direction: column;
}
.product-brand { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--g4); margin-bottom: 0.75rem; }
.product-name {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--g2);
}
.price-main {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-original {
  font-size: 1.1rem;
  color: var(--g3);
  text-decoration: line-through;
}
.cod-badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--g1);
  color: var(--g4);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--g2);
}

/* Color selector */
.selector-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.color-swatches {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.color-swatch {
  width: 36px;
  height: 36px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--dur);
  position: relative;
  background: var(--swatch-color, #ccc);
  outline-offset: 3px;
}
.color-swatch.active {
  border-color: var(--black);
  outline: 1.5px solid var(--black);
}
.color-swatch:hover { border-color: var(--g3); }

/* Fallbacks CSS classes */
.swatch-noir-navy::after       { background: #1B2A45; }
.swatch-beige-bordeaux::after  { background: #C8B89A; }
.swatch-navy::after  { background: #1B2A45; }
.swatch-beige::after { background: #C8B89A; }
.swatch-noir::after  { background: #0B0B0A; }
.color-name {
  font-size: 13px;
  color: var(--g4);
  margin-bottom: 1.75rem;
}

/* Size selector */
.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.size-btn {
  aspect-ratio: 1;
  border: 1px solid var(--g2);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  transition: all var(--dur);
  cursor: pointer;
  border-radius: 2px;
}
.size-btn:hover { border-color: var(--black); }
.size-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }
.size-btn.unavailable { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.size-guide-link {
  font-size: 12px;
  color: var(--g4);
  text-decoration: underline;
  margin-bottom: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

/* Product CTAs */
.product-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Product meta */
.product-meta {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--g2);
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--g2);
  font-size: 13px;
  cursor: pointer;
}
.meta-row:last-child { border-bottom: none; }
.meta-row-label { font-weight: 500; }
.meta-row-val { color: var(--g4); text-align: right; max-width: 60%; }
.meta-chevron { color: var(--g4); transition: transform var(--dur); }
.meta-row.open .meta-chevron { transform: rotate(180deg); }
.meta-content {
  display: none;
  padding: 0.875rem 0 0.5rem;
  font-size: 13px;
  color: var(--g4);
  line-height: 1.7;
}
.meta-row.open + .meta-content { display: block; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  height: 70vh;
  min-height: 500px;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: 4rem var(--gutter);
  position: relative;
  overflow: hidden;
}
.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.about-hero-content { position: relative; z-index: 2; color: var(--white); max-width: var(--max-w); margin: 0 auto; width: 100%; }
.about-hero-eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--taupe); margin-bottom: 1rem; }
.about-hero-title { font-family: var(--font-h); font-size: clamp(3rem, 7vw, 6rem); font-weight: 400; line-height: 1; }

.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text { max-width: 600px; }
.about-text p { color: var(--g4); line-height: 1.9; margin-bottom: 1.5rem; }
.about-text p:first-child { font-family: var(--font-h); font-size: 1.375rem; color: var(--black); line-height: 1.6; }
.about-aside {}
.value-item { margin-bottom: 2rem; }
.value-item-num { font-size: 10px; letter-spacing: 0.2em; color: var(--taupe); margin-bottom: 0.5rem; }
.value-item-title { font-weight: 600; font-size: 13px; margin-bottom: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.value-item-body { font-size: 13px; color: var(--g4); line-height: 1.7; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10rem var(--gutter) 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info {}
.contact-title { font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; margin-bottom: 1.5rem; }
.contact-sub { color: var(--g4); margin-bottom: 3rem; line-height: 1.8; }
.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--g2);
}
.contact-channel:first-of-type { border-top: 1px solid var(--g2); }
.channel-icon {
  width: 36px;
  height: 36px;
  background: var(--g1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.channel-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g4); margin-bottom: 0.25rem; }
.channel-val { font-size: 14px; font-weight: 500; }

.contact-form { padding-top: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g4); margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--g2);
  background: var(--white);
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--black);
  border-radius: 2px;
  transition: border-color var(--dur);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--black);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   ORDER COD PAGE
   ============================================================ */
.cod-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 10rem var(--gutter) 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cod-info {}
.cod-title { font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: 0.75rem; }
.cod-sub { color: var(--g4); margin-bottom: 2rem; }
.cod-guarantee {
  background: var(--g1);
  padding: 1.25rem;
  border-left: 2px solid var(--taupe);
}
.cod-guarantee p { font-size: 13px; color: var(--g4); line-height: 1.7; }
.cod-guarantee strong { color: var(--black); }

.cod-steps { margin-top: 2rem; }
.cod-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--g2); align-items: flex-start; }
.cod-step:last-child { border-bottom: none; }
.cod-step-num {
  width: 28px;
  height: 28px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  border-radius: 50%;
}
.cod-step-text { font-size: 13px; color: var(--g4); line-height: 1.6; }
.cod-step-text strong { color: var(--black); font-weight: 500; }

.cod-form { background: var(--g1); padding: 2rem; }
.cod-form-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }

/* ============================================================
   STICKY WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: var(--wa);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  font-size: 1.5rem;
  transition: transform var(--dur) var(--ease);
  text-decoration: none;
  opacity: 1;
}
.wa-float:hover { transform: scale(1.1); opacity: 1; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem var(--gutter) 2.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250,250,248,0.1);
  margin-bottom: 2rem;
}
.footer-brand-name { font-family: var(--font-h); font-size: 1.5rem; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-brand-desc { font-size: 13px; color: rgba(250,250,248,0.5); line-height: 1.7; }
.footer-col-title { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(250,250,248,0.4); margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(250,250,248,0.7); margin-bottom: 0.75rem; }
.footer-col a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250,250,248,0.3);
}

/* ============================================================
   SIZE GUIDE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,11,10,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  max-width: 540px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--g4);
  cursor: pointer;
  line-height: 1;
}
.modal h3 { font-family: var(--font-h); font-size: 1.75rem; margin-bottom: 1.5rem; font-weight: 400; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-table th, .size-table td { padding: 0.6rem 0.75rem; text-align: center; border-bottom: 1px solid var(--g2); }
.size-table th { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g4); }
.size-table tr:last-child td { border-bottom: none; }
.size-note { font-size: 12px; color: var(--g4); margin-top: 1rem; padding: 0.875rem; background: var(--g1); line-height: 1.6; }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  text-align: center;
}
.success-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.success-title { font-family: var(--font-h); font-size: 2.5rem; margin-bottom: 1rem; font-weight: 400; }
.success-sub { color: var(--g4); max-width: 400px; margin: 0 auto 2rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { height: 1px; background: var(--g2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery {
    position: relative;
    min-height: auto;
    height: auto;
    aspect-ratio: 4/5;
    max-height: 640px;
    width: 100%;
  }
  .gallery-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .about-body { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .cs-inner { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .bs-inner { grid-template-columns: 1fr; gap: 2rem; }
  .bs-label { writing-mode: horizontal-tb; transform: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .cod-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .product-info { padding: 1.75rem 1.25rem 3rem; }
  .size-grid { grid-template-columns: repeat(4, 1fr); }
  .header-wa { display: none; }

  /* Gallery mobile refinements */
  .product-gallery { aspect-ratio: 1/1; max-height: 480px; min-height: auto; }
  .gallery-arrow { display: none; } /* mobile = swipe only */
  .gallery-dots { bottom: 0.85rem; }

  /* Product info mobile */
  .product-name { font-size: 1.6rem; }
  .price-main { font-size: 1.5rem; }
  .product-price-block { flex-wrap: wrap; gap: 0.6rem; }
  .color-swatch { width: 44px; height: 44px; } /* larger tap target */
  .size-btn { min-height: 48px; font-size: 14px; } /* comfortable tapping */
  .btn-cod, .btn-wa { padding: 1.1rem 1.5rem; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   RTL FIXES — Corrections spécifiques direction arabe
   ============================================================ */
/* Header actions flip */
.header-actions { justify-content: flex-start; }

/* Gallery arrows flip (‹ › swap meaning in RTL) */
.gallery-prev { left: auto; right: 1rem; }
.gallery-next { right: auto; left: 1rem; }

/* Brand story vertical label */
.bs-label { writing-mode: vertical-rl; transform: rotate(0deg); }

/* Product meta chevron & alignment */
.meta-row-val { text-align: left; }
.size-guide-link { text-align: right; }

/* Guarantee / step borders flip */
.cod-guarantee { border-left: none; border-right: 2px solid var(--taupe); }
.size-note { text-align: right; }

/* Close button position in modal */
.modal-close { right: auto; left: 1.25rem; }

/* Mobile nav close */
.close-nav { right: auto; left: var(--gutter); }

/* WhatsApp float — keep on left for RTL */
.wa-float { right: auto; left: 1.75rem; }

/* Numbers stay LTR (prices, sizes, phone) */
.price-main, .price-original, .price-current, .price-old,
.size-btn, .size-table td, .size-table th,
.hero-title, .bs-year {
  direction: ltr;
  unicode-bidi: embed;
}
.product-price-block { justify-content: flex-end; }

/* Footer columns text align */
.footer-col a, .footer-brand-desc, .footer-col-title { text-align: right; }

/* About aside — value numbers stay readable */
.value-item-num { direction: ltr; text-align: right; }

/* Fix flex-start alignments that assumed LTR */
.trust-item, .contact-channel, .cod-step { text-align: right; }

/* ============================================================
   DETAIL STRIP (Homepage — Close-up + Top-down)
   ============================================================ */
.detail-strip {
  padding: 0 var(--gutter) 8rem;
}
.ds-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
}
.ds-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--g1);
  margin: 0;
}
.ds-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.ds-item:hover img { transform: scale(1.04); }
.ds-item figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 2rem 1.75rem 1.5rem;
  background: linear-gradient(to top, rgba(11,11,10,0.65) 0%, transparent 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}
@media (max-width: 768px) {
  .detail-strip { padding-bottom: 4rem; }
  .ds-inner { grid-template-columns: 1fr; gap: 1.5px; }
  .ds-item { aspect-ratio: 16/10; }
}
