/* ══════════════════════════════════════════════════════════
   ZAHRA HIJAB — style.css
   Palette : Pink #E91E8C  |  Blue #1565C0  |  White #FFFFFF
══════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --pink:        #E91E8C;
  --pink-soft:   #F06292;
  --pink-pale:   #FCE4EC;
  --pink-mid:    #f8d0e3;
  --blue:        #1565C0;
  --blue-soft:   #42A5F5;
  --blue-pale:   #E3F2FD;
  --white:       #FFFFFF;
  --dark:        #0f0f14;
  --dark-2:      #1c1c24;
  --gray-1:      #f5f5f8;
  --gray-2:      #e8e8f0;
  --gray-3:      #9e9eae;
  --text:        #1c1c24;
  --text-light:  #6b6b80;
  --gold:        #f0b429;
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.14);
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --nav-h:       70px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── UTILITY ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════════════════════
   SIDE DRAWER
══════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,20,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ── Le Menu qui sort de la gauche (lisser) ── */
.side-drawer {
  position: fixed;
  top: 0; 
  left: 0;
  bottom: 0; /* 👈 ZIDNA HADI: Katchedd l-menu mn l-foq tal t-teht nishan */
  
  /* On remet une largeur fixe (ex: 280px) pour qu'il ne prenne pas tout l'écran */
  width: 280px; 
  
  /* ❌ MSS7NA height: 100vh; w max-height: 100vh; Hit homa s-bab l-mochkil */
  
  overflow-y: auto; /* Garde la barre de défilement pour les réseaux sociaux */
  background: var(--white);
  z-index: 2001;
  
  /* ── C'EST ICI QUE ÇA CHANGE : Il se cache à gauche ── */
  transform: translateX(-100%); 
  
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  
  /* L'ombre est maintenant sur le côté droit */
  box-shadow: 8px 0 40px rgba(0,0,0,0.12);
  
  /* On enlève les bordures arrondies du bas car c'est un menu latéral */
  border-radius: 0; 
}

/* ── Quand le menu s'ouvre, il revient à sa position ── */
.side-drawer.open {
  transform: translateX(0);
}
.side-drawer.open { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2rem;
}
.drawer-close:hover { background: var(--pink); color: var(--white); border-color: var(--pink); }
/* ── L-Blassa dyal Logo ── */
/* ── L-Blassa dyal Logo f l-menu ── */
.drawer-logo {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  margin-top: -1.5rem; /* Ktle3 l-logo lfo9 chwiya */
  margin-bottom: 2rem;
}

/* ── Qyass dyal tswira (Sghrnaha bach mayjich kbir) ── */
.logo-img {
  width: 150px; /* <--- Hna rdinah 70px. Ila bghitih sghir kter, rediha 60px */
  height: auto;
  border-radius: 8px; 
  object-fit: contain;
  animation: floatUpDown 3s ease-in-out infinite; /* L-haraka dynamique */
}

/* ── Animation dyal L-Logo (Tl3a w hbeta khfifa w rtaba) ── */
@keyframes floatUpDown {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px); /* n9ssnaha l -8px bach tji haraka hdiya w zwina */
  }
  100% {
    transform: translateY(0px);
  }
}

/* ── L-khasaa'iss lokhrin (khelihom kima homa) ── */
.drawer-nav { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.drawer-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 500; font-size: 1.05rem;
  color: var(--text-light);
  transition: background 0.2s, color 0.2s;
}
.drawer-link i { width: 20px; text-align: center; font-size: 1rem; }
.drawer-link:hover, .drawer-link.active {
  background: var(--pink-pale);
  color: var(--pink);
}

.drawer-socials {
  display: flex; gap: 1.2rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--gray-2);
}
.drawer-socials a {
  font-size: 1.2rem;
  color: var(--gray-3);
  transition: color 0.2s;
}
.drawer-socials a:hover { color: var(--pink); }
.drawer-copy { font-size: 0.78rem; color: var(--gray-3); margin-top: 1rem; }


/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-2);
  z-index: 1000;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-left { display: flex; align-items: center; gap: 1.2rem; }

.hamburger {
  display: flex; flex-direction: column;
  gap: 5px; padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--gray-1); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HNA FIN BDDELNA L-LOGO BACH YJI F L-WEST ── */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Had jooj stoura homa li kiyjibouh l-west d-dabt */
  display: flex; 
  align-items: center; 
  text-decoration: none;
}

/* ── HADA L-QYAS DYAL TSWIRA DYAL L-LOGO ── */
.nav-logo-img {
  height: 58px; /* Tqadri tsghrih (40px) awla tkebrih (50px) mn hna */
  width: 200px;
  object-fit: contain;
}

.nav-links { display: flex; gap: 0.3rem; }
.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xl);
  font-weight: 500; font-size: 0.9rem;
  color: var(--text-light);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { color: var(--pink); background: var(--pink-pale); }
.nav-link.active { color: var(--pink); background: var(--pink-pale); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text);
  border: 1.5px solid var(--gray-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--pink-pale); color: var(--pink); border-color: var(--pink-soft); }

.badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.68rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

.btn-login {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-weight: 600; font-size: 0.88rem;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.3);
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  top: var(--nav-h); left: 0; width: 100%;
  background: var(--white);
  z-index: 999;
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, box-shadow 0.3s;
  box-shadow: none;
}
.search-overlay.open {
  max-height: 420px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 2rem;
}
.search-container { max-width: 700px; margin: 0 auto; }
.search-field {
  position: relative;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 1.2rem;
  color: var(--gray-3); font-size: 1rem;
}
#searchInput {
  width: 100%;
  padding: 1rem 3rem;
  border: 2px solid var(--gray-2);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--gray-1);
}
#searchInput:focus { border-color: var(--pink); background: var(--white); }
.search-clear {
  position: absolute; right: 1.2rem;
  color: var(--gray-3); font-size: 0.9rem;
  transition: color 0.2s;
}
.search-clear:hover { color: var(--pink); }
.search-results {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
/* 1. L-Boita li jame3a n-nata2ij (Darouriya bach i-tstfou ta7t ba3dyathom w i-khdem s-scroll) */
#searchResults {
  display: flex;
  flex-direction: column; /* Kat-sttefhom wa7ed ta7t wa7ed */
  gap: 0.5rem; /* L-msafa bin l-produits f s-search */
  max-height: 350px; /* T-toul bach i-tl3 s-scroll */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px; /* B3dhom chwiya 3la l-7achiya */
}

/* 2. L-Produit li wset s-search */
.search-result-item {
  display: flex; 
  align-items: center; 
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%; /* Hada howa l-7all: kay-khlih yakhod l-3ard kaml */
  /* 7iydna dak flex: 1 1 200px li kan m-kherbe9 d-design */
}

.search-result-item:hover { 
  border-color: var(--pink); 
  background: var(--pink-pale); 
}
.result-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--pink-pale), var(--blue-pale));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--pink);
}
.result-info strong { display: block; font-size: 0.88rem; }
.result-info span { font-size: 0.78rem; color: var(--text-light); }
.no-result { color: var(--text-light); font-size: 0.95rem; padding: 0.5rem 0; }

/* ══════════════════════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,20,0.55);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 420px;
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-light);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--pink); color: var(--white); border-color: var(--pink); }

.modal-header { text-align: center; margin-bottom: 1.5rem; }
/* ── L-Blassa dyal Logo f l-Modal (Bla background) ── */
.modal-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem; 
  
  /* ── HADO HOMA LI KI7IYDOU DAK L-LOUN W L-MRBE3 ── */
  background: none !important; 
  box-shadow: none !important;
  width: auto;
  height: auto;
}

/* ── Qyass dyal tswira f l-Modal ── */
.modal-logo-img {
  width: 200px; /* Qyas l-logo bach yji bayen */
  height: auto;
  object-fit: contain;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.modal-header p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.3rem; }

.modal-tabs {
  display: flex;
  background: var(--gray-1);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 1.5rem;
}
.modal-tab {
  flex: 1; padding: 0.55rem;
  border-radius: var(--radius-xl);
  font-weight: 600; font-size: 0.88rem;
  color: var(--text-light);
  transition: background 0.2s, color 0.2s;
}
.modal-tab.active { background: var(--white); color: var(--pink); box-shadow: var(--shadow-sm); }

.modal-form { display: flex; flex-direction: column; gap: 1.1rem; }
.modal-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.input-wrap i {
  position: absolute; left: 1rem;
  color: var(--gray-3); font-size: 0.9rem;
}
.input-wrap input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--gray-1);
}
.input-wrap input:focus { border-color: var(--pink); background: var(--white); }

.forgot-link { font-size: 0.82rem; color: var(--pink); align-self: flex-end; }
.btn-submit {
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  color: var(--white);
  border-radius: var(--radius-xl);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 0.3rem;
}
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,30,140,0.35);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  padding-left: clamp(1rem, 5%, 6rem);
  padding-right: clamp(1rem, 5%, 6rem);
  width: 100%;
  box-sizing: border-box;
}
/* Full-width background */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(145deg, #fff8fb 0%, #eff6ff 50%, #fff0f7 100%);
  z-index: -2;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.blob-1 {
  width: 450px; height: 450px;
  background: var(--pink-pale);
  top: -100px; right: -100px;
  animation: blobMove 8s ease-in-out infinite;
}
.blob-2 {
  width: 350px; height: 350px;
  background: var(--blue-pale);
  bottom: -50px; left: -50px;
  animation: blobMove 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 200px; height: 200px;
  background: var(--pink-mid);
  top: 50%; left: 45%;
  animation: blobMove 6s ease-in-out infinite 2s;
}
@keyframes blobMove {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.05); }
}

.hero-content { padding: 4rem 0; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--pink-pale);
  color: var(--pink);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.hero-content h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  color: var(--white);
  border-radius: var(--radius-xl);
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  box-shadow: 0 6px 24px rgba(233,30,140,0.3);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(233,30,140,0.4);
  filter: brightness(1.05);
}

.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius-xl);
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn-hero-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.stat span { font-size: 0.8rem; color: var(--text-light); }
.stat-divider { width: 1px; height: 40px; background: var(--gray-2); }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 1;
}
/* ── 1. L-KADR LI HAZ L-LOGO ── */
.hero-card-float {
  width: 320px; 
  height: 420px;
  background: linear-gradient(145deg, var(--pink-pale), var(--blue-pale));
  border-radius: 30px 80px 30px 80px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  animation: floatCard 4s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(233,30,140,0.1);
  overflow: hidden; /* 👈 HADI MUHIMMA! Kat7bess tswira bach matkhrejch 3la j-jnab l-m3wjin */
}

/* ── 2. L-LOGO (Tswira) ── */
.float-logo {
  width: 250%;
  height: 150%;
  object-fit: cover; /* 👈 Hadi katkhlli tswira t3mer l-kadr kamel bla mat3wej */
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-dot {
  width: 6px; height: 40px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  border-radius: 3px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ══════════════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════════════ */
.marquee-strip {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: var(--white);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marquee 25s linear infinite;
}
.marquee-track span { margin: 0 2.5rem; font-size: 0.9rem; font-weight: 500; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  background: var(--pink-pale);
  color: var(--pink);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--dark);
}
.section-header p { color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════════════════════ */
.categories-section { background: var(--gray-1); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  cursor: pointer;
  border: 1.5px solid var(--gray-2);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.category-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-card:hover::after { transform: scaleX(1); }
.category-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

.cat-icon {
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--cat-clr) 12%, transparent);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--cat-clr);
  margin-bottom: 1.2rem;
  transition: transform 0.25s;
}
.category-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.category-card h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; }
.category-card > span { font-size: 0.82rem; color: var(--text-light); }
.cat-arrow {
  margin-top: 1.2rem;
  width: 34px; height: 34px;
  background: var(--pink-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--pink);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s, transform 0.25s;
}

/* ══════════════════════════════════════════════════════════
   PRODUCTS
══════════════════════════════════════════════════════════ */
.products-section { background: var(--white); }

.filter-tabs {
  display: flex; gap: 0.6rem;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-tab {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--gray-2);
  font-weight: 600; font-size: 0.87rem;
  color: var(--text-light);
  background: var(--white);
  transition: all 0.2s ease;
}
.filter-tab.active {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  box-shadow: 0 4px 16px rgba(233,30,140,0.25);
}
.filter-tab:not(.active):hover { border-color: var(--pink); color: var(--pink); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-2);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-image {
  height: 260px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,0.6);
  overflow: hidden;
}
.product-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent 60%);
}
.product-img-icon {
  z-index: 1; position: relative;
  color: rgba(255,255,255,0.5);
  font-size: 4rem;
  transition: transform 0.3s;
}
.product-card:hover .product-img-icon { transform: scale(1.08) rotate(-5deg); }

.product-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-nouveau { background: var(--blue); color: var(--white); }
.badge-promo { background: var(--pink); color: var(--white); }
.badge-bestseller { background: var(--gold); color: #5a3e00; }



.product-info { padding: 1.3rem 1.4rem; }
.product-name { font-weight: 700; font-size: 40px; margin-bottom: 0.3rem; }
.product-category { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.product-stars { color: var(--gold); font-size: 0.82rem; margin-bottom: 0.7rem; }
.product-stars span { color: var(--text-light); margin-left: 0.3rem; }

.product-pricing {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin-bottom: 1rem;
}
.price-current {
  font-size: 1.25rem; font-weight: 800;
  color: var(--pink);
}
.price-old {
  font-size: 0.88rem;
  color: var(--gray-3);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.72rem; font-weight: 700;
  background: var(--pink-pale); color: var(--pink);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xl);
}

.product-actions {
  display: flex; gap: 0.7rem;
}
.btn-add-cart {
  flex: 1;
  padding: 0.7rem;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-add-cart:hover { background: var(--blue); transform: scale(1.02); }

/* ══════════════════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════════════════ */
.promo-section {
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.promo-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--pink), #b0146a, var(--blue));
  z-index: -1;
}
.promo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.promo-text { color: var(--white); }
.promo-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.promo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 1rem;
}
.promo-text h2 em { font-style: italic; opacity: 0.9; }
.promo-text p { opacity: 0.88; margin-bottom: 2rem; font-size: 1.05rem; }
.promo-text .btn-hero-primary {
  background: var(--white);
  color: var(--pink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.promo-text .btn-hero-primary:hover { filter: brightness(0.96); }

.countdown-wrap { color: var(--white); }
.countdown-label {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; opacity: 0.8;
  margin-bottom: 1.5rem;
}
.countdown { display: flex; align-items: center; gap: 1rem; }
.cd-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: center; min-width: 80px;
}
.cd-item span {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700;
}
.cd-item small { font-size: 0.75rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.06em; }
.cd-sep { font-size: 2rem; font-weight: 700; opacity: 0.6; }

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about-section { background: var(--gray-1); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  width: 100%; 
  max-width: 420px;
  margin: 0 auto;
}

.about-img-inner {
  width: 100%;
  padding-bottom: 100%; /* 👈 Hna fin nqesna t-toul! (Kanet 120%, rddinaha 85%. Ila jak mazal twil rddiha 70%) */
  background: linear-gradient(145deg, var(--pink-pale), var(--blue-pale));
  border-radius: 40px 100px 40px 100px;
  position: relative;
  overflow: hidden;
}

/* ── NRIGLOU L-LOGO WSET L-KADR ── */
.about-img-inner img {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* 👈 Qyas dyal l-logo. Ila jak sghir rddih 75% awla 80% */
  height: 250%;
  object-fit: contain;
}
.about-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1.5px solid var(--gray-2);
}
.about-badge strong {
  display: block;
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-badge span { font-size: 0.8rem; color: var(--text-light); }

.about-text .section-tag { display: inline-block; margin-bottom: 0.8rem; }
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 1.2rem;
}
.about-text p { color: var(--text-light); margin-bottom: 2rem; }

.about-values { display: flex; flex-direction: column; gap: 1.2rem; }
.value-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-2);
}
.value-item > i {
  width: 38px; height: 38px;
  background: var(--pink-pale);
  color: var(--pink);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.value-item div { display: flex; flex-direction: column; gap: 0.15rem; }
.value-item strong { font-size: 0.95rem; }
.value-item span { font-size: 0.82rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.testimonial-card {
  background: var(--gray-1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid var(--gray-2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.featured-testimonial {
  background: linear-gradient(145deg, var(--pink-pale), var(--blue-pale));
  border-color: rgba(233,30,140,0.2);
}
.testimonial-card .stars {
  color: var(--gold); font-size: 1rem;
  margin-bottom: 1rem;
}
.testimonial-card p {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.9rem;
}
.author-avatar {
  width: 44px; height: 44px;
  background: color-mix(in srgb, var(--av-clr) 20%, white);
  color: var(--av-clr);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════════════════ */
.newsletter-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--blue), #0a3a7a);
  text-align: center;
  color: var(--white);
}
.newsletter-content { max-width: 600px; margin: 0 auto; }
.newsletter-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.newsletter-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.newsletter-content h2 em { font-style: italic; color: var(--pink-soft); }
.newsletter-content p { opacity: 0.8; margin-bottom: 2rem; }
.newsletter-form {
  display: flex; gap: 0.8rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; min-width: 200px;
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.6); }
.newsletter-form button {
  padding: 0.9rem 1.8rem;
  background: var(--white);
  color: var(--blue);
  border-radius: var(--radius-xl);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-form button:hover { background: var(--pink-pale); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--pink-soft); margin-bottom: 1rem; font-size: 1.3rem; }
.footer-brand p { font-size: 0.88rem; opacity: 0.7; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.8rem; }
/* ── QYAS D-DWIRA ── */
.footer-socials a {
  width: 45px !important; 
  height: 45px !important;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* ── QYAS L-ICONE L-DAKHEL (HADI LI GHADI TFORCI L-KBER) ── */
.footer-socials a i {
  font-size: 24px !important; /* Hada ghaybqa l t-téléphone */
}
.footer-socials a:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
.footer-col h4 {
  font-size: 0.88rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li a {
  font-size: 0.88rem; opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col ul li a:hover { opacity: 1; color: var(--pink-soft); }
.contact-list { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-list li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.88rem; opacity: 0.7;
}
.contact-list li i { color: var(--pink-soft); width: 16px; }

/* ── T3DILAT DYAL FOOTER BOTTOM (L-COPYRIGHT W L-WEST) ── */
.footer-bottom {
  display: flex; 
  justify-content: center; /* Bdelnaha mn space-between l center bach ddjme3 f l-west */
  align-items: center;
  flex-wrap: wrap; 
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; 
  opacity: 0.8; /* Zedt fiha d-dow chwiya bach tban */
  text-align: center;
  position: relative;
  z-index: 10; /* Bach mayghattich 3liha l-bouton d t-tlou3 */
}

/* ── STYLE DYAL DEV.101_TEAM ── */
.footer-bottom p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}
.dev-team {
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── QYAS LES ICONES F PC BO7DO (Bach yjiw anaq w maytkhesserch t-téléphone) ── */
@media (min-width: 768px) {
  .footer-socials a {
    width: 40px !important;
    height: 40px !important;
  }
  .footer-socials a i {
    font-size: 20px !important; /* L-icones ghadi ysgharo chwiya f l-PC bach yjiw mwtin */
  }
}
.payment-badges { display: flex; gap: 0.8rem; font-size: 1.6rem; opacity: 0.7; }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.8rem;
  font-weight: 600; font-size: 0.9rem;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  max-width: 340px;
  border-left: 3px solid var(--pink);
}
.toast i { color: var(--pink); font-size: 1.1rem; }
.toast.show { transform: translateX(0); }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 2rem; left: 2rem;
  width: 42px; height: 42px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(233,30,140,0.4);
  z-index: 900;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-3px); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablette large (≤1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Hero: une colonne, centré */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--nav-h) 1.5rem 3rem;
    max-width: 100%;
    min-height: auto;
  }
  .hero-content { padding: 3rem 0 2rem; }
  .hero-content p { margin: 0 auto 2rem; max-width: 540px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .hero-scroll-indicator { display: none; }

  /* About: une colonne */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { display: none; }
  .about-text { text-align: center; }
  .about-values { max-width: 500px; margin: 0 auto; }

  /* Promo: une colonne, centré */
  .promo-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .countdown { justify-content: center; }
  .promo-text .btn-hero-primary { margin: 0 auto; }

  /* Footer: 2 colonnes */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }

  /* Sections moins de padding */
  .section { padding: 4.5rem 0; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablette (≤768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* ── Navbar ── */
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }

  /* Icônes navbar : réduire l'espacement */
  .nav-actions { gap: 0.3rem; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Bouton connexion : icône seulement */
  .btn-login {
    padding: 0.45rem 0.7rem;
    font-size: 0; /* masque le texte */
    gap: 0;
  }
  .btn-login i { font-size: 0.95rem; }

  /* ── Hero ── */
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1.2rem 2.5rem; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-content p { font-size: 1rem; }
  .hero-tag { font-size: 0.75rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .stat strong { font-size: 1.3rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* ── Search overlay ── */
#searchOverlay { 
    padding: 10px !important; 
    box-sizing: border-box !important; 
  }
  
  /* 2. HADI HIYA LI KANT DAYRA MOCHKIL: L-boita li haza s-search */
  .search-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 3. L-blassa d-nata2ij (Kanjm3ouha bzzez) */
  #searchResults {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* Kat-qtel s-scroll bel-3ard */
  }

  /* 4. L-Produit wlla m-zeyer f blasto */
  .search-result-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: none !important; /* Kat-7iyed lih t-tjbida */
  }

  /* ── Catégories ── */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .category-card { padding: 1.5rem 1.2rem; }

  /* ── Produits ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Filtres : scroll horizontal */
  .filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; font-size: 0.82rem; padding: 0.5rem 1.1rem; }

  /* ── Promo countdown ── */
  .cd-item {
    min-width: 62px;
    padding: 0.9rem 0.8rem;
  }
  .cd-item span { font-size: 1.8rem; }
  .cd-sep { font-size: 1.5rem; }

  /* ── About valeurs ── */
  .value-item { align-items: flex-start; text-align: left; }

  /* ── Témoignages ── */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.2rem; max-width: 480px; margin: 0 auto; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* ── Newsletter ── */
  .newsletter-form {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .newsletter-form input {
    min-width: unset;
    width: 100%;
    max-width: 380px;
  }
  .newsletter-form button { width: 100%; max-width: 380px; justify-content: center; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer { padding: 3rem 1.2rem 1.5rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  /* ── Toast ── */
  .toast {
    left: 1rem; right: 1rem;
    bottom: 1rem;
    max-width: unset;
    transform: translateY(120%);
  }
  .toast.show { transform: translateY(0); }

  /* ── Sections ── */
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }

  /* ── Modal ── */
  .modal-card {
    padding: 2rem 1.4rem;
    border-radius: var(--radius-md);
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤480px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Navbar : encore plus compact ── */
  .navbar { padding: 0 0.8rem; }
  .nav-left { gap: 0.6rem; }
  .logo { font-size: 1.1rem; }
  .logo-icon { width: 26px; height: 26px; font-size: 0.65rem; }
  .nav-actions { gap: 0.2rem; }
  .icon-btn { width: 32px; height: 32px; font-size: 0.85rem; }
  .badge { width: 15px; height: 15px; font-size: 0.6rem; top: -4px; right: -4px; }

  /* ── Hero ── */
  .hero { padding: calc(var(--nav-h) + 1rem) 1rem 2rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); line-height: 1.25; }
  .hero-content p { font-size: 0.95rem; }
  .hero-stats { gap: 0.8rem 1.2rem; }
  .stat strong { font-size: 1.2rem; }
  .stat span { font-size: 0.72rem; }
  .stat-divider { height: 30px; }

  /* ── Blobs plus petits ── */
  .blob-1 { width: 220px; height: 220px; }
  .blob-2 { width: 180px; height: 180px; }
  .blob-3 { display: none; }

  /* ── Categories: 1 colonne ── */
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { padding: 1.2rem 1rem; }
  .cat-icon { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 0.8rem; }
  .category-card h3 { font-size: 0.95rem; }

  /* ── Produits: 1 colonne ── */
  .products-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-image { height: 200px; }

  /* ── Section padding réduit ── */
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .section-header { margin-bottom: 2rem; }

  /* ── Promo ── */
  .promo-section { padding: 3rem 1rem; }
  .promo-text h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .cd-item { min-width: 54px; padding: 0.75rem 0.65rem; }
  .cd-item span { font-size: 1.5rem; }
  .cd-item small { font-size: 0.65rem; }
  .cd-sep { font-size: 1.2rem; }
  .countdown { gap: 0.6rem; }

  /* ── Newsletter ── */
  .newsletter-section { padding: 3rem 1rem; }
  .newsletter-content h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }

  /* ── Drawer ── */
  .side-drawer { width: 270px; padding: 1.5rem 1.4rem; }

  /* ── Footer ── */
  .footer { padding: 2.5rem 1rem 1.2rem; }
  .payment-badges { font-size: 1.3rem; }

  /* ── Marquee ── */
  .marquee-track span { margin: 0 1.5rem; font-size: 0.82rem; }

  /* ── Retour haut ── */
  .back-top { bottom: 1.2rem; left: 1.2rem; width: 38px; height: 38px; font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Très petit mobile (≤360px)
══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.65rem; }
  .cd-item { min-width: 48px; padding: 0.65rem 0.5rem; }
  .cd-item span { font-size: 1.3rem; }
  .cd-sep { font-size: 1rem; }
  .btn-hero-primary, .btn-hero-outline { padding: 0.75rem 1.2rem; font-size: 0.88rem; }
  .filter-tab { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
}
/* ══════════════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,20,0.55);
  backdrop-filter: blur(4px);
  z-index: 2500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; 
  right: 0;
  bottom: 0; /* 👈 Hna fin kayna l-miziyya: katsme7 l-panier yched mn l-foq tal t-teht nishan */
  
  width: 420px; 
  /* ❌ MSS7NA: height: 100vh; */
  
  background: var(--white);
  z-index: 2501;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  display: flex; 
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1.5px solid var(--gray-2);
  flex-shrink: 0;
}
.cart-title {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 700; font-size: 1.1rem;
}
.cart-title i { color: var(--pink); }
.cart-count-label {
  font-size: 0.75rem; font-weight: 600;
  background: var(--pink-pale); color: var(--pink);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}
.cart-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-light);
  transition: background 0.2s, color 0.2s;
}
.cart-close:hover { background: var(--pink); color: var(--white); border-color: var(--pink); }

/* Empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.8rem;
  flex: 1; padding: 2rem;
  color: var(--text-light); text-align: center;
}
.cart-empty i { font-size: 3rem; color: var(--gray-2); }
.cart-empty p { font-weight: 600; font-size: 1rem; color: var(--text); }
.cart-empty small { font-size: 0.85rem; }
.cart-empty.hidden { display: none; }

/* Items list */
.cart-items {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-2) transparent;
}
.cart-items:empty + .cart-footer { display: none; }

.cart-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem;
  background: var(--gray-1);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-2);
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.cart-item-cat { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.6rem; }
.cart-item-price { font-weight: 800; font-size: 1rem; color: var(--pink); }

.cart-item-controls {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.6rem;
  flex-shrink: 0;
}
.qty-control {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-xl);
  padding: 0.2rem 0.5rem;
}
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-light);
  transition: background 0.2s, color 0.2s;
}
.qty-btn:hover { background: var(--pink); color: var(--white); }
.qty-val { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; }

.cart-item-remove {
  font-size: 0.75rem; color: var(--gray-3);
  transition: color 0.2s;
  cursor: pointer;
  background: none; border: none;
  padding: 0;
}
.cart-item-remove:hover { color: #e53935; }

/* Footer */
.cart-footer {
  padding: 1.4rem 1.6rem;
  border-top: 1.5px solid var(--gray-2);
  flex-shrink: 0;
}
.cart-footer.hidden { display: none; }

.cart-summary { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: var(--text-light);
}
.cart-free { color: #2e7d32; font-weight: 600; }
.cart-total-row {
  font-size: 1.1rem; font-weight: 800;
  color: var(--text);
  padding-top: 0.6rem;
  border-top: 1.5px solid var(--gray-2);
  margin-top: 0.3rem;
}
.cart-total-row span:last-child { color: var(--pink); }

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  color: var(--white);
  border-radius: var(--radius-xl);
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(233,30,140,0.3);
  margin-bottom: 0.8rem;
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233,30,140,0.4);
}

.btn-continue-shopping {
  width: 100%; padding: 0.75rem;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-xl);
  font-weight: 600; font-size: 0.88rem;
  color: var(--text-light);
  transition: border-color 0.2s, color 0.2s;
}
.btn-continue-shopping:hover { border-color: var(--pink); color: var(--pink); }

/* Order modal */
.order-modal { text-align: center; }
.order-success-icon {
  font-size: 3.5rem; color: #2e7d32;
  margin-bottom: 1rem;
}
.order-modal h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 0.5rem; }
.order-modal p { color: var(--text-light); margin-bottom: 1.5rem; }
.order-recap {
  background: var(--gray-1);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  max-height: 200px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.order-recap-item {
  display: flex; justify-content: space-between;
  font-size: 0.88rem;
}
.order-recap-item span:last-child { font-weight: 700; color: var(--pink); }


/* Style l-asassi (PC) */
.responsive-img {
    width: 150%;
    height: 150%; /* Ghadi t-koun m-qadda f PC */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ─── MODIFICATION GHIR L-TÉLÉPHONE (Ecran sghira) ─── */
@media (max-width: 480px) {
    
    /* 1. Ila bghiti t-kber t-tswira dyal l-produit f l-lista */
    .responsive-img {
        height: 180% !important; /* Zedt kbertha (mn 150% l 180%) */
        width: 100% !important;
        top: 0 !important;
        object-fit: cover !important;
        object-position: top !important; /* Bach may-t-qte3ch r-rass dyal l-modele */
    }

    /* 2. L-container li fih t-tswira khass t-زيد fih 7ta hwa */
    .product-image {
        height: 250px !important; /* Hna kat-7kem f l-kariya kamla d t-tswira */
        overflow: hidden !important;
    }

    /* 3. L-panier (Cart item img) ila bghitiha t-kber f t-tool */
    .cart-item-img {
        height: 70px !important; /* Zedt liha f t-tool d l-panier */
        width: 60px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }
}
