/* ==========================================================================
   ALGERIE PARFUM — Thème "Mania" (inspiré Shop Mania Perfume Mania)
   Bilingue AR (RTL) / FR (LTR) — HTML pur, aucun JS requis pour le rendu
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* Palette */
  --bg-page: #f5e6e0;          /* crème rosé poudré */
  --bg-page-2: #f8ebe6;        /* crème plus clair (sections alternées) */
  --bg-soft: #ecd6cf;          /* rose poudré header / hero */
  --bg-soft-2: #f0ddd8;        /* header / hero band */
  --bg-dark: #1f3a40;          /* vert/bleu canard foncé (titres, footer, boutons) */
  --bg-dark-2: #284b53;        /* variante bouton */
  --accent-gold: #c89464;      /* doré fin (badges "Sale", séparateurs) */
  --accent-coral: #e07a5f;     /* corail badges promo */
  --text-dark: #1f3a40;        /* titres principaux */
  --text-body: #3d4f55;        /* texte courant */
  --text-muted: #8a7e76;       /* labels, méta */
  --text-light: #f8ebe6;       /* texte sur fond foncé */
  --text-on-dark: #f8ebe6;
  --surface: #ffffff;
  --surface-alt: #fbf3ee;
  --border: rgba(31, 58, 64, 0.12);
  --border-soft: rgba(31, 58, 64, 0.06);
  --shadow-card: 0 2px 14px rgba(31, 58, 64, 0.08);
  --shadow-hover: 0 10px 26px rgba(31, 58, 64, 0.14);
  --shadow-soft: 0 4px 18px rgba(31, 58, 64, 0.06);

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", "Amiri", serif;
  --font-body: "Inter", "Tajawal", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;

  /* Scale */
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 2.85rem;
  --fs-4xl: 3.6rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 1080px;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--sp-4); }

/* --- Layout helpers ------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section { padding: var(--sp-16) 0; }
.section-tight { padding: var(--sp-12) 0; }
.text-center { text-align: center; }

/* --- Top announcement bar ------------------------------------------------- */
.topbar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 0;
  text-align: center;
}
.topbar .marquee {
  display: inline-flex;
  gap: var(--sp-8);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.topbar span { display: inline-flex; gap: var(--sp-2); align-items: center; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  background: var(--bg-soft-2);
  padding: var(--sp-5) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(31, 58, 64, 0.05);
}
.site-header .header-row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand .brand-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.brand .brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.nav-main {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-main a {
  color: var(--text-dark);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.nav-main a:hover, .nav-main a.active {
  background: rgba(31, 58, 64, 0.08);
}
.header-icons {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-dark);
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.9); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--text-dark); fill: none; stroke-width: 1.6; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Mobile nav ---------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text-dark); fill: none; stroke-width: 1.6; }

@media (max-width: 960px) {
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-soft-2);
    flex-direction: column;
    gap: 0;
    padding: var(--sp-3) 0;
    box-shadow: var(--shadow-card);
  }
  .nav-main.open { display: flex; }
  .nav-main a { width: 100%; text-align: center; padding: var(--sp-3); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
  .header-row { gap: var(--sp-3); }
  .header-icons .icon-btn:not(.lang-switch-wrap) { display: none; }
}

/* --- Hero (style Shop Mania : photo + titre serif) ----------------------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-page) 100%);
  padding: var(--sp-16) 0 var(--sp-20);
  position: relative;
  overflow: hidden;
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--sp-12);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-dark);
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-5);
}
.hero-eyebrow:before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--text-dark);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: var(--sp-5);
  font-weight: 500;
}
.hero p.lead {
  font-size: var(--fs-md);
  color: var(--text-body);
  max-width: 480px;
  margin-bottom: var(--sp-8);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 30px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.btn-primary:hover { background: var(--bg-dark-2); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}
.btn-outline:hover { background: var(--text-dark); color: var(--text-on-dark); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.hero-visual {
  position: relative;
  text-align: center;
}
.hero-visual .hero-image {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(31, 58, 64, 0.18);
  background: var(--surface);
}
.hero-visual .hero-image img {
  width: 100%; height: 540px; object-fit: cover;
}
.hero-play {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}
.hero-play .play-inner {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: var(--accent-coral);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-play svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 860px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-visual .hero-image img { height: 380px; }
  .hero-play { width: 80px; height: 80px; top: 12%; right: 6%; }
  .hero-play .play-inner { width: 44px; height: 44px; }
}

/* --- Section headings ---------------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section-tag {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--text-dark);
  margin-bottom: var(--sp-5);
  background: var(--surface);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-3);
}
.section-head p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-body);
}

/* --- Product grid -------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.product-card .card-media {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: var(--surface-alt);
  overflow: hidden;
}
.product-card .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-media img { transform: scale(1.04); }

.badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.badge-sale {
  top: 14px; left: 14px;
  background: var(--accent-coral);
  color: #fff;
  width: 48px; height: 48px;
  font-size: 0.7rem;
  font-weight: 800;
}
.badge-cart {
  top: 14px; right: 14px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  width: 36px; height: 36px;
}
.badge-cart svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.card-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card-brand {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text-dark);
  margin: 0;
  line-height: 1.25;
  font-weight: 500;
}
.card-price {
  margin-top: auto;
  font-weight: 600;
  color: var(--text-dark);
  font-size: var(--fs-md);
}
.card-price .old {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 400;
  font-size: var(--fs-sm);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.card-thumb {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Featured (large 3-col cards with photo + name + price) ------------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 960px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1.4;
  box-shadow: var(--shadow-card);
  display: flex;
}
.featured-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-5);
  background: linear-gradient(180deg, transparent 0%, rgba(31, 58, 64, 0.85) 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
}
.featured-overlay .featured-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.featured-overlay .featured-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.featured-overlay .featured-info { flex: 1; }
.featured-overlay .featured-name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; margin: 0; color: #fff; }
.featured-overlay .featured-price { font-size: var(--fs-sm); margin-top: 4px; }

/* --- Collection cards (4 vertical tiles) -------------------------------- */
.collection-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 960px) { .collection-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .collection-row { grid-template-columns: 1fr; } }

.collection-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
  aspect-ratio: 1 / 1.25;
  box-shadow: var(--shadow-card);
  display: flex;
}
.collection-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.5s; }
.collection-card:hover img { transform: scale(1.06); }
.collection-card .collection-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.collection-card h3 {
  color: #fff;
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: var(--fs-lg);
}
.collection-card p { font-size: var(--fs-sm); color: rgba(255,255,255,0.9); margin: 0; }
.collection-card .collection-cta {
  margin-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* --- Discover (Refined Scents) grid ------------------------------------- */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 960px) { .discover-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .discover-grid { grid-template-columns: 1fr; } }

.discover-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
}
.discover-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.discover-card:hover img { transform: scale(1.06); }
.discover-card .discover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 58, 64, 0.7) 0%, rgba(31, 58, 64, 0.85) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--sp-5);
  text-align: center;
}
.discover-card .discover-overlay h3 {
  color: #fff;
  font-family: var(--font-display);
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-xl);
  font-weight: 500;
}
.discover-card .discover-overlay p {
  font-size: var(--fs-sm);
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* --- Immersive video section -------------------------------------------- */
.video-section {
  padding: var(--sp-20) 0;
  background: var(--bg-page-2);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: var(--shadow-hover);
}
.video-frame img, .video-frame video { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video-frame .play-large {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}
.video-frame .play-large:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-frame video + .play-large {
  opacity: 0;
  pointer-events: none;
}
.video-frame video + .play-large:hover {
  opacity: 1;
}
.video-frame .play-large span {
  width: 60px; height: 60px;
  border-radius: var(--radius-pill);
  background: var(--accent-coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.video-frame .play-large svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Testimonials -------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 860px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--sp-8);
  border-radius: var(--radius-md);
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent-coral);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.testimonial-card p { color: rgba(255,255,255,0.9); }
.testimonial-card .author {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--sp-16) 0 var(--sp-6);
  margin-top: var(--sp-16);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}
@media (max-width: 860px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: var(--sp-2); font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--accent-coral); }
.footer-brand .brand-mark { color: #fff; font-size: 2.4rem; }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: var(--sp-2); font-size: var(--fs-sm); }
.footer-brand .brand-tag { color: rgba(255,255,255,0.6); }
.social-row { display: inline-flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-row a:hover { background: var(--accent-coral); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* --- Form & input -------------------------------------------------------- */
.search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-pill);
  padding: 4px;
  max-width: 360px;
}
.search-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  color: var(--text-dark);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.search-form svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --- Filter pills -------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-8);
}
.filter-bar a {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-dark);
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
}
.filter-bar a.active, .filter-bar a:hover {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}

/* --- Trust badges row ---------------------------------------------------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-8) 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  margin: var(--sp-10) 0;
}
@media (max-width: 720px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}
.trust-item {
  text-align: center;
  padding: var(--sp-4);
  border-inline-end: 1px solid var(--border);
}
.trust-item:last-child { border-inline-end: 0; }
.trust-item .icon {
  width: 44px; height: 44px;
  margin: 0 auto var(--sp-3);
  border-radius: var(--radius-pill);
  background: rgba(31, 58, 64, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-dark);
}
.trust-item .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.trust-item h4 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  margin: 0 0 4px;
  color: var(--text-dark);
  font-weight: 700;
}
.trust-item p { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }

/* --- Forms (commande) --------------------------------------------------- */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  box-shadow: var(--shadow-card);
  max-width: 720px;
  margin: 0 auto;
}
.form-row { margin-bottom: var(--sp-5); }
.form-row label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  color: var(--text-dark);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--bg-dark);
}
.form-row textarea { border-radius: var(--radius-md); resize: vertical; min-height: 80px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Floating WhatsApp button ------------------------------------------- */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 40;
}
.fab-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

/* --- Page-specific helpers ---------------------------------------------- */
.breadcrumbs {
  padding: var(--sp-5) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-dark); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  padding: var(--sp-8) 0 var(--sp-12);
}
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .gallery {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
}
.product-detail .gallery img { width: 100%; height: 520px; object-fit: contain; }
.product-detail .info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.product-detail .info .price-big { font-size: var(--fs-3xl); font-weight: 600; color: var(--text-dark); margin: var(--sp-4) 0; }
.product-detail .info .price-big .old { color: var(--text-muted); text-decoration: line-through; margin-inline-start: 12px; font-size: var(--fs-lg); font-weight: 400; }
.product-detail .qty-row { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0; }
.qty-input { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-pill); }
.qty-input button {
  width: 38px; height: 38px;
  font-size: var(--fs-md);
  color: var(--text-dark);
  font-weight: 700;
}
.qty-input input {
  width: 50px; height: 38px;
  text-align: center;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- RTL adjustments ----------------------------------------------------- */
[dir="rtl"] body { font-family: var(--font-body), "Tajawal", sans-serif; }
[dir="rtl"] .hero-eyebrow:before { display: none; }
[dir="rtl"] .hero-eyebrow:after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--text-dark);
  margin-inline-start: var(--sp-3);
}

/* --- Utility classes ----------------------------------------------------- */
.muted { color: var(--text-muted); }
.hide-mobile { display: inline-flex; }
.show-mobile { display: none; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }
}
