/* Zaid Express - CSS Global */

/* ═══════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --red:    #e8192c;
  --red-d:  #bf1120;
  --rnav:   #c4101e;
  --org:    #ff6b00;
  --yel:    #ffcc00;
  --bg:     #f0f0f0;
  --wh:     #ffffff;
  --tx:     #1a1a1a;
  --mu:     #888;
  --brd:    #e5e5e5;
  --sh:     0 1px 6px rgba(0,0,0,.10);
  --sh-h:   0 6px 24px rgba(0,0,0,.16);
  --r:      8px;
  --fh:     'Nunito', sans-serif;
  --fb:     'Rubik', sans-serif;
  --hero-h: 360px;   /* hauteur commune sidebar + slider */
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--fb);background:var(--bg);color:var(--tx);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{display:block}
ul{list-style:none}
button{font-family:var(--fb);cursor:pointer;border:none;outline:none}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.topbar{background:#1a1a1a;color:#888;font-size:12px;height:32px;display:flex;align-items:center}
.tw{max-width:1240px;width:100%;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center}
.tw a{color:#aaa;transition:color .15s}.tw a:hover{color:#fff}
.tw-r{display:flex;gap:18px}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header{background:var(--red);position:sticky;top:0;z-index:300;box-shadow:0 2px 12px rgba(0,0,0,.28)}

/* Wrapper interne — desktop: 1 ligne, mobile: 2 lignes */
.hd{
  max-width:1240px;margin:0 auto;padding:10px 16px;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}

/* Ligne 1 desktop = logo + search + actions en flex row */
/* Sur mobile : .hd-row1 prend toute la largeur, search passe en ligne 2 */
.hd-row1{display:flex;align-items:center;gap:10px;order:1}
.hd-search{flex:1;min-width:200px;order:2}   /* desktop : milieu */

/* ── LOGO ── */
.logo{flex-shrink:0;display:flex;align-items:flex-end;cursor:pointer;user-select:none;line-height:1}
.lz{font-family:var(--fh);font-weight:900;font-size:34px;color:var(--yel);letter-spacing:-2px;position:relative;line-height:1}
.lz::after{content:'';position:absolute;top:3px;right:-1px;width:6px;height:6px;background:var(--yel);border-radius:50%}
.la{font-family:var(--fh);font-weight:900;font-size:34px;color:#fff;padding-left:4px;line-height:1}
.lr{display:flex;flex-direction:column;justify-content:flex-end;padding-left:8px;padding-bottom:3px;gap:3px}
.le{font-family:var(--fh);font-weight:700;font-size:12px;color:rgba(255,255,255,.85);letter-spacing:3px;text-transform:uppercase;line-height:1}
.lb{height:3px;background:var(--yel);border-radius:2px}
.lt{font-size:9px;color:rgba(255,255,255,.42);letter-spacing:.5px;font-family:var(--fb)}

/* ── SEARCH ── */
.si{display:flex;border-radius:24px;overflow:hidden;background:#fff;outline:3px solid transparent;transition:outline-color .2s}
.si:focus-within{outline-color:var(--yel)}
.si select{border:none;outline:none;background:#f4f4f4;border-right:1px solid #ddd;padding:0 10px;font-size:12px;font-family:var(--fb);color:#555;cursor:pointer;flex-shrink:0}
.si input{flex:1;border:none;outline:none;padding:10px 14px;font-size:14px;font-family:var(--fb);min-width:0}
.si input::placeholder{color:#bbb}
.sbtn{background:var(--org);border:none;color:#fff;padding:0 20px;font-size:17px;transition:background .2s;display:flex;align-items:center;flex-shrink:0}
.sbtn:hover{background:var(--red-d)}

/* ── HEADER ACTIONS ── */
.ha{display:flex;gap:2px;flex-shrink:0}
.hb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 10px;border-radius:8px;color:rgba(255,255,255,.92);cursor:pointer;transition:background .15s;position:relative;min-width:50px}
.hb:hover{background:rgba(0,0,0,.15)}
.hbi{font-size:19px;line-height:1}
.hbl{font-size:10px;font-weight:600;white-space:nowrap}
.hbk{position:absolute;top:4px;right:4px;background:var(--yel);color:#111;font-size:9px;font-weight:800;min-width:15px;height:15px;border-radius:99px;padding:0 3px;display:flex;align-items:center;justify-content:center}

/* ── HAMBURGER (mobile only) ── */
.hmenu{display:none;flex-direction:column;justify-content:center;gap:5px;width:38px;height:38px;padding:6px;border-radius:8px;cursor:pointer;flex-shrink:0;transition:background .15s}
.hmenu:hover{background:rgba(0,0,0,.15)}
.hmenu span{display:block;height:2.5px;background:#fff;border-radius:2px;transition:transform .25s,opacity .25s}

/* ── MOBILE DRAWER NAV ── */
.drawer{
  display:none;
  position:fixed;inset:0;z-index:400;
}
.drawer-bg{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.drawer-panel{
  position:absolute;left:0;top:0;bottom:0;
  width:270px;background:#fff;
  overflow-y:auto;
  transform:translateX(-100%);
  transition:transform .28s ease;
  display:flex;flex-direction:column;
}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{
  background:var(--red);padding:16px;
  display:flex;align-items:center;justify-content:space-between;
}
.drawer-logo{display:flex;align-items:flex-end}
.dl-z{font-family:var(--fh);font-weight:900;font-size:26px;color:var(--yel)}
.dl-a{font-family:var(--fh);font-weight:900;font-size:26px;color:#fff;padding-left:2px}
.dl-e{font-family:var(--fh);font-weight:700;font-size:10px;color:rgba(255,255,255,.8);letter-spacing:2px;text-transform:uppercase;padding-left:5px;padding-bottom:2px}
.drawer-close{color:#fff;font-size:24px;cursor:pointer;line-height:1;background:none;border:none;padding:4px}
.drawer-cats{padding:8px 0}
.dr-item{display:flex;align-items:center;gap:12px;padding:12px 18px;font-size:13.5px;font-weight:500;cursor:pointer;border-bottom:1px solid #f5f5f5;transition:background .12s,color .12s}
.dr-item:hover{background:#fff5f5;color:var(--red)}
.dr-ico{font-size:18px;width:22px;text-align:center}

/* ── NAV ── */
.hdr-nav{background:var(--rnav);border-top:1px solid rgba(0,0,0,.12)}
.ni-wrap{max-width:1240px;margin:0 auto;padding:0 16px;display:flex;overflow-x:auto;scrollbar-width:none}
.ni-wrap::-webkit-scrollbar{display:none}
.ni{font-size:12.5px;font-weight:600;color:rgba(255,255,255,.88);padding:9px 13px;white-space:nowrap;cursor:pointer;border-bottom:3px solid transparent;transition:color .15s,border-color .15s,background .15s}
.ni:hover{color:#fff;background:rgba(0,0,0,.12)}
.ni.on{color:#fff;border-bottom-color:var(--yel)}

/* ═══════════════════════════════════════════
   PAGE BODY
═══════════════════════════════════════════ */
.pb{max-width:1240px;margin:0 auto;padding:14px 20px}

/* ═══════════════════════════════════════════
   HERO — sidebar + slider à MÊME hauteur
═══════════════════════════════════════════ */
.hero{
  display:grid;
  grid-template-columns:196px 1fr;   /* sidebar fixe | slider */
  height:var(--hero-h);              /* hauteur commune imposée */
  border-radius:var(--r);
  overflow:hidden;                   /* clip les deux enfants */
  box-shadow:var(--sh);
  margin-bottom:14px;
}

/* ── SIDEBAR ── */
.sidebar{
  background:#fff;
  height:100%;                       /* remplit exactement la grille */
  overflow:hidden;                   /* pas de scroll, items tronqués si trop */
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--brd);
}
.sb-item{
  flex:1;                            /* tous les items partagent équitablement */
  display:flex;align-items:center;gap:9px;
  padding:0 12px;
  font-size:12px;font-weight:500;
  cursor:pointer;
  border-left:3px solid transparent;
  border-bottom:1px solid #f5f5f5;
  transition:background .12s,border-color .12s,color .12s;
  min-height:0;                      /* permet le shrink en flex */
  white-space:nowrap;overflow:hidden;
}
.sb-item:last-child{border-bottom:none}
.sb-item:hover{background:#fff5f5;border-left-color:var(--red);color:var(--red)}
.sb-ico{font-size:15px;flex-shrink:0;width:18px;text-align:center}
.sb-lbl{flex:1;overflow:hidden;text-overflow:ellipsis}
.sb-arr{color:#ddd;font-size:11px;flex-shrink:0}

/* ── SLIDER ── */
.slider{
  position:relative;
  height:100%;
  overflow:hidden;
  background:#0f2137;
  flex:1;
}
/* slides */
.slide{
  position:absolute;inset:0;
  opacity:0;
  transition:opacity .8s ease;
  display:flex;align-items:center;
}
.slide.active{opacity:1;z-index:1}
/* photo background */
.slide-photo{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transition:transform 6s ease;
}
.slide.active .slide-photo{transform:scale(1.04)}
/* dark overlay */
.slide::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.25) 55%,transparent 100%);z-index:1}
/* content */
.slide-content{position:relative;z-index:2;padding:0 48px;max-width:520px}
.slide-tag{display:inline-flex;align-items:center;gap:5px;background:var(--yel);color:#111;font-family:var(--fh);font-weight:800;font-size:10.5px;letter-spacing:1.5px;text-transform:uppercase;padding:3px 10px;border-radius:4px;margin-bottom:14px}
.slide-title{font-family:var(--fh);font-weight:900;font-size:36px;line-height:1.12;color:#fff;margin-bottom:8px}
.slide-title em{font-style:normal;color:var(--yel)}
.slide-sub{font-size:13.5px;color:rgba(255,255,255,.65);margin-bottom:24px;line-height:1.6}
.slide-cta{display:inline-flex;align-items:center;gap:8px;background:var(--red);color:#fff;font-family:var(--fh);font-weight:800;font-size:14px;padding:11px 26px;border-radius:99px;box-shadow:0 4px 16px rgba(232,25,44,.45);transition:background .2s,transform .15s;cursor:pointer;border:none}
.slide-cta:hover{background:var(--org);transform:translateY(-2px)}
/* promo badge */
.slide-badge{position:absolute;top:20px;right:20px;z-index:3;background:var(--red);color:#fff;font-family:var(--fh);font-weight:900;font-size:26px;padding:12px 15px;border-radius:var(--r);text-align:center;line-height:1.1;box-shadow:0 4px 16px rgba(232,25,44,.5)}
.slide-badge small{font-size:10px;font-weight:600;display:block;letter-spacing:.5px;opacity:.85}
/* nav arrows */
.sl-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.2);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.sl-arrow:hover{background:rgba(255,255,255,.38)}
.sl-prev{left:10px}.sl-next{right:10px}
/* dots */
.sl-dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:4}
.dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35);cursor:pointer;transition:all .25s;border:none;padding:0}
.dot.on{background:var(--yel);width:24px;border-radius:4px}

/* ── BANDE CATÉGORIES MOBILE ── */
.mob-cats{
  display:none;
  overflow-x:auto;scrollbar-width:none;
  background:var(--wh);
  padding:12px 0 12px 14px;
  gap:6px;
  border-radius:var(--r);
  box-shadow:var(--sh);
  margin-bottom:12px;
}
.mob-cats::-webkit-scrollbar{display:none}
.mob-cat{
  display:flex;flex-direction:column;align-items:center;gap:5px;
  flex-shrink:0;width:60px;cursor:pointer;transition:transform .15s;
  padding-right:10px;
}
.mob-cat:hover{transform:translateY(-2px)}
.mob-cat-ico{
  width:46px;height:46px;border-radius:50%;
  background:#f5f5f5;
  display:flex;align-items:center;justify-content:center;
  font-size:21px;transition:background .15s;
}
.mob-cat:hover .mob-cat-ico{background:#ffecec}
.mob-cat-lbl{font-size:10px;font-weight:600;text-align:center;line-height:1.25;color:var(--tx)}

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust{background:var(--wh);border-radius:var(--r);box-shadow:var(--sh);display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:14px;overflow:hidden}
.ti{display:flex;align-items:center;gap:11px;padding:14px 16px;border-right:1px solid var(--brd)}
.ti:last-child{border-right:none}
.ti-i{font-size:24px;flex-shrink:0}
.ti-t{font-weight:700;font-size:12.5px;margin-bottom:1px}
.ti-s{font-size:11px;color:var(--mu)}

/* ═══════════════════════════════════════════
   SECTION HEAD
═══════════════════════════════════════════ */
.sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sec-t{font-family:var(--fh);font-weight:900;font-size:19px;display:flex;align-items:center;gap:9px}
.sec-t::before{content:'';display:block;width:4px;height:20px;background:var(--red);border-radius:2px}
.sec-a{font-size:12.5px;font-weight:600;color:var(--red);cursor:pointer;transition:opacity .15s}.sec-a:hover{opacity:.6}

/* ═══════════════════════════════════════════
   CATEGORY GRID
═══════════════════════════════════════════ */
.cat-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:9px;margin-bottom:16px}
.cc{background:var(--wh);border-radius:var(--r);padding:14px 6px 12px;text-align:center;cursor:pointer;box-shadow:var(--sh);transition:transform .18s,box-shadow .18s,background .15s}
.cc:hover{transform:translateY(-3px);box-shadow:var(--sh-h);background:#fff9f9}
.cc:hover .cc-i{transform:scale(1.2)}
.cc-i{font-size:26px;margin-bottom:7px;display:block;transition:transform .18s}
.cc-n{font-size:11px;font-weight:600;line-height:1.3}

/* ═══════════════════════════════════════════
   FLASH SALE
═══════════════════════════════════════════ */
.flash{background:var(--wh);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh);margin-bottom:16px}
.fh{background:linear-gradient(90deg,var(--red),#ff4a00);padding:12px 20px;display:flex;align-items:center;gap:16px}
.ft{font-family:var(--fh);font-weight:900;font-size:19px;color:#fff;white-space:nowrap}
.fe{font-size:12px;color:rgba(255,255,255,.75);white-space:nowrap}
.timer{display:flex;align-items:center;gap:4px}
.tb2{background:#111;color:#fff;font-family:var(--fh);font-weight:900;font-size:19px;width:38px;text-align:center;padding:4px 0;border-radius:5px;font-variant-numeric:tabular-nums}
.ts{color:rgba(255,255,255,.6);font-weight:900;font-size:17px}
.fsp{flex:1}

/* ═══════════════════════════════════════════
   PRODUCT GRID
═══════════════════════════════════════════ */
.pg{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.flash .pg,.ps .pg{border-top:1px solid var(--brd)}
.pc{background:var(--wh);cursor:pointer;position:relative;border-right:1px solid var(--brd);border-bottom:1px solid var(--brd);transition:box-shadow .18s;overflow:hidden}
.pc:nth-child(5n){border-right:none}
.pc:hover{box-shadow:var(--sh-h);z-index:2}
.pim{position:relative;padding-top:100%;overflow:hidden;background:#f5f5f5}
.pim img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.pc:hover .pim img{transform:scale(1.08)}
.rib{position:absolute;top:9px;left:0;background:var(--red);color:#fff;font-size:9.5px;font-weight:800;padding:2px 9px 2px 7px;clip-path:polygon(0 0,100% 0,88% 100%,0 100%);letter-spacing:.3px;text-transform:uppercase}
.rib.nb{background:#0066cc}.rib.tb3{background:var(--org)}
.wsh{position:absolute;top:8px;right:8px;width:27px;height:27px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--mu);opacity:0;transition:opacity .15s,color .15s,transform .15s;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.pc:hover .wsh{opacity:1}
.wsh:hover{color:var(--red);transform:scale(1.12)}
.wsh.on{opacity:1;color:var(--red)}
.pin{padding:9px 11px 12px}
.pn{font-size:12px;font-weight:500;color:#333;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:34px;margin-bottom:7px}
.pr{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin-bottom:5px}
.pp{font-family:var(--fh);font-weight:900;font-size:16px;color:var(--red)}
.pp sup{font-size:10px;font-weight:700}
.po{font-size:11px;color:#bbb;text-decoration:line-through}
.pd{font-size:10px;font-weight:800;background:#fff4e0;color:var(--org);padding:1px 5px;border-radius:3px}
.pm{display:flex;align-items:center;gap:4px;font-size:10.5px;color:var(--mu);margin-bottom:8px}
.st{color:#f5a623;letter-spacing:-1px}
.pcb{width:100%;padding:7px;background:var(--red);color:#fff;font-family:var(--fh);font-weight:800;font-size:11.5px;border-radius:99px;transition:background .15s,opacity .15s;opacity:0}
.pc:hover .pcb{opacity:1}
.pcb:hover{background:var(--red-d)}
.pcb.done{background:#22a745;opacity:1}

/* ═══════════════════════════════════════════
   PROMO STRIP
═══════════════════════════════════════════ */
.promo{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-bottom:16px}
.prc{border-radius:var(--r);display:flex;align-items:center;gap:15px;padding:16px 18px;cursor:pointer;box-shadow:var(--sh);transition:transform .18s;overflow:hidden;position:relative}
.prc:hover{transform:translateY(-3px)}
.pr1{background:linear-gradient(115deg,#fff1f1,#ffe6e6);border:1px solid #ffd0d0}
.pr2{background:linear-gradient(115deg,#f0f6ff,#e2edff);border:1px solid #c5d9f5}
.pr3{background:linear-gradient(115deg,#f0fff5,#e0faeb);border:1px solid #b5e8cc}
.pri{font-size:36px;flex-shrink:0;line-height:1}
.prt{font-family:var(--fh);font-weight:800;font-size:14px;margin-bottom:2px}
.prs{font-size:11.5px;color:var(--mu)}
.prd{position:absolute;right:-8px;bottom:-12px;font-size:64px;opacity:.07;line-height:1}

/* ═══════════════════════════════════════════
   PRODUCT SECTION WRAPPER
═══════════════════════════════════════════ */
.ps{background:var(--wh);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden;margin-bottom:16px}
.ps-h{padding:13px 18px;border-bottom:1px solid var(--brd)}

/* ═══════════════════════════════════════════
   FAB
═══════════════════════════════════════════ */
.fab{position:fixed;bottom:28px;right:26px;width:52px;height:52px;border-radius:50%;background:var(--red);color:#fff;font-size:21px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(232,25,44,.5);cursor:pointer;z-index:999;transition:transform .18s}
.fab:hover{transform:scale(1.1)}
.fb{position:absolute;top:-5px;right:-5px;background:var(--yel);color:#111;min-width:19px;height:19px;border-radius:99px;font-size:9.5px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 3px}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.ft-wrap{background:#131313;color:#888;padding:36px 0 0;margin-top:10px}
.fi{max-width:1240px;margin:0 auto;padding:0 20px 32px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.fl-logo{display:flex;align-items:flex-end;margin-bottom:12px}
.fl-z{font-family:var(--fh);font-weight:900;font-size:28px;color:var(--yel);letter-spacing:-1px}
.fl-a{font-family:var(--fh);font-weight:900;font-size:28px;color:#fff;padding-left:2px}
.fl-e{font-family:var(--fh);font-weight:700;font-size:11px;color:#e57373;letter-spacing:2px;text-transform:uppercase;padding-left:5px;padding-bottom:3px}
.fd{font-size:12.5px;line-height:1.7;margin-bottom:16px}
.soc{display:flex;gap:7px}
.sc{width:30px;height:30px;border-radius:6px;background:#222;color:#777;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s}
.sc:hover{background:var(--red);color:#fff}
.fc h5{color:#fff;font-size:12.5px;font-weight:700;margin-bottom:12px;padding-bottom:7px;border-bottom:1px solid #222}
.fc li{margin-bottom:8px}
.fc a{font-size:12.5px;color:#666;transition:color .15s}
.fc a:hover{color:#fff}
.fb-bar{border-top:1px solid #1e1e1e;padding:14px 20px;max-width:1240px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:#444}
.pays{display:flex;gap:5px}
.pay{background:#222;color:#777;font-size:10.5px;font-weight:700;padding:3px 7px;border-radius:4px}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media(max-width:1024px){
  .hero{grid-template-columns:170px 1fr}
  .cat-grid{grid-template-columns:repeat(6,1fr)}
  .pg{grid-template-columns:repeat(4,1fr)}
  .pc:nth-child(5n){border-right:1px solid var(--brd)}
  .pc:nth-child(4n){border-right:none}
}

/* ── TABLET 768px ── */
@media(max-width:768px){
.pg{grid-template-columns:repeat(3,1fr);gap:8px}
  :root{--hero-h:260px}
  .topbar{display:none}
  .tw-r{display:none}

  /* Header : logo + actions sur ligne 1, search sur ligne 2 */
  .hd{padding:8px 14px;gap:6px}
  .hd-row1{width:100%;order:1}          /* ligne 1 pleine largeur */
  .hd-search{width:100%;order:2;flex:none;min-width:0}  /* ligne 2 pleine largeur */
  /* Cache "Compte" et "Commandes", garde Favoris + Panier */
  .hb-account,.hb-orders{display:none}
  .hbl{display:none}
  .lt{display:none}

  /* Hamburger visible */
  .hmenu{display:flex}

  /* Select catégorie caché sur mobile (search simple) */
  .si select{display:none}

  .hdr-nav{display:none}             /* nav horizontale masquée → remplacée par ☰ drawer */
  .hero{grid-template-columns:1fr}
  .sidebar{display:none}
  .mob-cats{display:flex}         /* bande horizontale visible */
  .trust{grid-template-columns:repeat(2,1fr)}
  .ti{border-bottom:1px solid var(--brd)}
  .cat-grid{grid-template-columns:repeat(4,1fr)}
  .pg{grid-template-columns:repeat(2,1fr)}
  .pc:nth-child(4n){border-right:1px solid var(--brd)}
  .pc:nth-child(2n){border-right:none}
  .promo{grid-template-columns:1fr}
  .fi{grid-template-columns:1fr 1fr}
  .slide-title{font-size:26px}
  .slide-content{padding:0 24px}
  .slide-badge{top:12px;right:12px;font-size:20px;padding:9px 12px}
  /* Nav scroll horizontal — ok par défaut */
}

/* ── MOBILE 480px ── */
@media(max-width:480px){
.pg{grid-template-columns:repeat(2,1fr);gap:8px}
  .lz,.la{font-size:28px}
  .le{font-size:10.5px;letter-spacing:2px}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .fi{grid-template-columns:1fr}
  .slide-title{font-size:21px}
  .slide-tag{font-size:9.5px}
  .slide-cta{font-size:12.5px;padding:9px 18px}
  .slide-sub{display:none}
  .trust{grid-template-columns:1fr 1fr}
}

/* ═══════════════════════════════════════════
   COMPOSANTS SUPPLÉMENTAIRES
═══════════════════════════════════════════ */

/* ── Alerts ── */
.alert{padding:12px 18px;border-radius:var(--r);margin:10px auto;max-width:1240px;font-size:14px;font-weight:500}
.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}
.alert-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}
.alert-warning{background:#fff3cd;color:#856404;border:1px solid #ffeeba}
.alert-info{background:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}

/* ── Boutons ── */
.btn-primary{display:inline-block;background:var(--red);color:#fff;padding:11px 26px;border-radius:99px;font-family:var(--fh);font-weight:800;font-size:14px;border:none;cursor:pointer;transition:background .2s,transform .15s;text-decoration:none}
.btn-primary:hover{background:var(--red-d);transform:translateY(-1px)}
.btn-outline{display:inline-block;background:transparent;color:var(--red);padding:11px 26px;border-radius:99px;font-family:var(--fh);font-weight:800;font-size:14px;border:2px solid var(--red);cursor:pointer;transition:all .2s;text-decoration:none}
.btn-outline:hover{background:var(--red);color:#fff}
.btn-checkout{display:block;width:100%;background:var(--red);color:#fff;padding:14px;border-radius:var(--r);font-family:var(--fh);font-weight:800;font-size:15px;text-align:center;border:none;cursor:pointer;transition:background .2s;text-decoration:none;margin-top:14px}
.btn-checkout:hover{background:var(--red-d)}
.btn-continue{display:block;text-align:center;color:var(--mu);font-size:13px;margin-top:10px;text-decoration:none}
.btn-continue:hover{color:var(--tx)}

/* ── Page title ── */
.page-title{font-family:var(--fh);font-weight:900;font-size:24px;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid var(--brd)}

/* ── Breadcrumb ── */
.breadcrumb{font-size:13px;color:var(--mu);margin-bottom:16px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.breadcrumb a{color:var(--red);text-decoration:none}.breadcrumb a:hover{text-decoration:underline}

/* ── Formulaires ── */
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:13px;font-weight:600;margin-bottom:5px;color:var(--tx)}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1.5px solid var(--brd);border-radius:var(--r);font-size:14px;font-family:var(--fb);color:var(--tx);background:#fff;transition:border-color .2s,box-shadow .2s;outline:none}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(232,25,44,.1)}
.form-group.has-error input,.form-group.has-error select{border-color:#e74c3c}
.form-error{font-size:11.5px;color:#e74c3c;margin-top:4px;display:block}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-section{background:#fff;border-radius:var(--r);padding:20px;margin-bottom:16px;box-shadow:var(--sh)}
.form-section h3{font-family:var(--fh);font-weight:800;font-size:17px;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--brd)}

/* ── Panier ── */
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}
.cart-items{background:#fff;border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.cart-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--brd);font-weight:600;font-size:14px}
.cart-clear{color:var(--mu);font-size:13px;text-decoration:none;transition:color .15s}.cart-clear:hover{color:var(--red)}
.cart-row{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--brd);transition:background .12s}
.cart-row:hover{background:#fafafa}
.cart-img{width:70px;height:70px;object-fit:cover;border-radius:6px;flex-shrink:0}
.cart-info{flex:1;min-width:0}
.cart-name{font-size:13px;font-weight:500;color:var(--tx);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cart-name:hover{color:var(--red)}
.cart-price{font-family:var(--fh);font-weight:800;font-size:15px;color:var(--red);margin-top:4px}
.cart-qty-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;flex-shrink:0}
.cart-remove{background:none;border:none;color:#bbb;font-size:16px;cursor:pointer;transition:color .15s}.cart-remove:hover{color:var(--red)}
.cart-sub{font-family:var(--fh);font-weight:800;font-size:16px;color:var(--tx);white-space:nowrap;min-width:80px;text-align:right;flex-shrink:0}

/* ── Qty controls ── */
.qty-wrap,.cart-qty-wrap .qty-form{display:flex;align-items:center;gap:0}
.qty-btn{width:32px;height:36px;background:#f5f5f5;border:1.5px solid var(--brd);font-size:18px;font-weight:700;cursor:pointer;line-height:1;transition:background .15s}
.qty-btn:first-child{border-radius:6px 0 0 6px}
.qty-btn:last-child{border-radius:0 6px 6px 0}
.qty-btn:hover{background:#ffe0e0;border-color:var(--red);color:var(--red)}
.qty-input{width:48px;height:36px;text-align:center;border:1.5px solid var(--brd);border-left:none;border-right:none;font-size:15px;font-family:var(--fh);font-weight:700;outline:none}

/* ── Cart summary ── */
.cart-summary{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:20px;position:sticky;top:90px}
.cart-summary h3{font-family:var(--fh);font-weight:800;font-size:18px;margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--brd)}
.sum-row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:8px}
.sum-total{font-family:var(--fh);font-weight:900;font-size:18px;border-top:2px solid var(--brd);padding-top:10px;margin-top:6px}
.sum-tip{font-size:12px;color:var(--org);background:#fff8f0;padding:8px 10px;border-radius:6px;margin:8px 0;text-align:center}

/* ── Empty state ── */
.empty-state{text-align:center;padding:60px 20px;background:#fff;border-radius:var(--r);box-shadow:var(--sh)}
.empty-state h2{font-family:var(--fh);font-weight:800;font-size:22px;margin-bottom:10px}
.empty-state p{color:var(--mu);margin-bottom:20px}

/* ── Checkout ── */
.checkout-layout{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:start}
.payment-options{display:flex;flex-direction:column;gap:10px}
.pay-option{display:flex;align-items:center;gap:14px;padding:14px 16px;border:2px solid var(--brd);border-radius:var(--r);cursor:pointer;transition:border-color .2s,background .2s}
.pay-option input[type=radio]{flex-shrink:0}
.pay-option.selected{border-color:var(--red);background:#fff8f8}
.pay-option:hover{border-color:var(--red)}
.pay-ico-big{font-size:28px;flex-shrink:0}

/* ── Confirmation ── */
.confirmation-box{max-width:560px;margin:0 auto;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:40px;text-align:center}
.conf-icon{font-size:64px;margin-bottom:16px}
.confirmation-box h1{font-family:var(--fh);font-weight:900;font-size:26px;margin-bottom:8px}
.conf-ref{font-size:14px;color:var(--mu);margin-bottom:16px}
.conf-details{background:#f9f9f9;border-radius:var(--r);padding:16px;margin:20px 0;text-align:left}
.conf-row{display:flex;justify-content:space-between;font-size:13px;padding:6px 0;border-bottom:1px solid var(--brd)}
.conf-row:last-child{border-bottom:none}

/* ── Auth ── */
.auth-box{max-width:440px;margin:0 auto;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:36px}
.auth-box h1{font-family:var(--fh);font-weight:900;font-size:22px;margin-bottom:20px;text-align:center}
.auth-logo{display:flex;align-items:flex-end;justify-content:center;margin-bottom:16px}
.auth-switch{text-align:center;font-size:13px;color:var(--mu);margin-top:16px}
.auth-switch a{color:var(--red);font-weight:600}

/* ── Account dashboard ── */
.account-layout{display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:start}
.account-sidebar{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:20px;position:sticky;top:90px;text-align:center}
.account-avatar{font-size:48px;margin-bottom:8px}
.account-name{font-family:var(--fh);font-weight:800;font-size:17px}
.account-email{font-size:12px;color:var(--mu);margin-bottom:16px}
.account-nav{display:flex;flex-direction:column;gap:2px;text-align:left}
.acc-link{padding:9px 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--tx);text-decoration:none;transition:background .12s,color .12s}
.acc-link:hover,.acc-link.active{background:#fff5f5;color:var(--red)}
.account-content{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:24px}
.account-content h2{font-family:var(--fh);font-weight:900;font-size:22px;margin-bottom:16px}
.account-content h3{font-family:var(--fh);font-weight:800;font-size:17px;margin:20px 0 12px;padding-top:16px;border-top:1px solid var(--brd)}
.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.acc-stat{background:#f9f9f9;border-radius:var(--r);padding:16px;text-align:center}
.acc-stat-n{font-family:var(--fh);font-weight:900;font-size:26px;color:var(--red)}
.acc-stat-l{font-size:12px;color:var(--mu)}

/* ── Orders table ── */
.orders-table{overflow-x:auto;margin-bottom:16px}
.orders-table table{width:100%;border-collapse:collapse}
.orders-table th,.orders-table td{padding:10px 14px;text-align:left;font-size:13px;border-bottom:1px solid var(--brd)}
.orders-table th{background:#f5f5f5;font-weight:700;color:var(--mu)}
.orders-table td a{color:var(--red);font-weight:600}

/* ── Badge statut ── */
.badge-status{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:700;text-transform:capitalize}
.badge-status.pending{background:#fff3cd;color:#856404}
.badge-status.confirmed{background:#d4edda;color:#155724}
.badge-status.processing{background:#d1ecf1;color:#0c5460}
.badge-status.shipped{background:#cce5ff;color:#004085}
.badge-status.delivered{background:#d4edda;color:#155724}
.badge-status.cancelled{background:#f8d7da;color:#721c24}

/* ── Product detail ── */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:32px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:28px;margin-bottom:20px}
.pd-gallery{position:relative}
.pd-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.pd-main-img{position:relative;border-radius:var(--r);overflow:hidden;background:#f5f5f5;aspect-ratio:1}
.pd-main-img img{width:100%;height:100%;object-fit:cover}



.pd-cat{font-size:12px;color:var(--mu);text-transform:uppercase;letter-spacing:.8px;margin-bottom:6px}
.pd-title{font-family:var(--fh);font-weight:900;font-size:24px;line-height:1.3;margin-bottom:10px}
.pd-rating{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mu);margin-bottom:14px}
.pd-price-block{display:flex;align-items:baseline;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.pd-price{font-family:var(--fh);font-weight:900;font-size:30px;color:var(--red)}
.pd-price sup{font-size:14px}
.pd-old{font-size:16px;color:#bbb;text-decoration:line-through}
.pd-disc{background:#fff4e0;color:var(--org);font-size:13px;font-weight:800;padding:3px 8px;border-radius:5px}
.pd-stock{font-size:13px;font-weight:600;margin-bottom:16px;padding:8px 12px;border-radius:6px}
.pd-stock.in{background:#d4edda;color:#155724}
.pd-stock.out{background:#f8d7da;color:#721c24}
.pd-actions{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}
.btn-add-cart{background:var(--red);color:#fff;border:none;padding:12px 28px;border-radius:99px;font-family:var(--fh);font-weight:800;font-size:15px;cursor:pointer;transition:background .2s,transform .15s;flex:1}
.btn-add-cart:hover{background:var(--red-d);transform:translateY(-1px)}
.pd-delivery{background:#f9f9f9;border-radius:var(--r);padding:14px;margin-bottom:16px}
.pd-del-item{font-size:13px;padding:5px 0;border-bottom:1px solid #eee}
.pd-del-item:last-child{border-bottom:none}
.pd-desc{margin-top:16px}
.pd-desc h3{font-family:var(--fh);font-weight:800;font-size:16px;margin-bottom:8px}
.pd-desc div{font-size:14px;line-height:1.7;color:#444}

/* ── Category page ── */
.sort-bar{display:flex;align-items:center;gap:14px;background:#fff;padding:12px 18px;border-radius:var(--r);box-shadow:var(--sh);margin-bottom:16px;flex-wrap:wrap}
.sort-bar label{font-size:13px;font-weight:600}
.sort-bar select{border:1.5px solid var(--brd);border-radius:6px;padding:6px 10px;font-size:13px;font-family:var(--fb)}
.sort-bar .result-count{margin-left:auto;font-size:13px;color:var(--mu)}

/* ── Pagination ── */
.pagination{display:flex;justify-content:center;gap:6px;margin:24px 0;flex-wrap:wrap}
.pag-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;background:#fff;box-shadow:var(--sh);font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,color .15s;text-decoration:none;color:var(--tx);border:1.5px solid var(--brd)}
.pag-btn:hover,.pag-btn.active{background:var(--red);color:#fff;border-color:var(--red)}
.pag-btn.disabled{opacity:.4;cursor:not-allowed;pointer-events:none}

/* ── Errors ── */
.error-page{text-align:center;padding:80px 20px}
.error-code{font-family:var(--fh);font-weight:900;font-size:100px;color:var(--red);line-height:1}
.error-msg{font-size:20px;color:var(--mu);margin:16px 0 24px}

/* ── Admin CSS intégré dans style.css ── */
.admin-body{background:#1a1a2e}
.admin-wrap{display:flex;min-height:100vh}
.admin-sidebar{width:220px;flex-shrink:0;background:#131313;min-height:100vh;display:flex;flex-direction:column}
.admin-logo{padding:20px 18px;border-bottom:1px solid #222;display:flex;align-items:flex-end}
.admin-nav{display:flex;flex-direction:column;padding:10px 0;flex:1}
.adm-link{display:block;padding:11px 18px;font-size:13px;font-weight:500;color:#888;text-decoration:none;transition:background .12s,color .12s;border-left:3px solid transparent}
.adm-link:hover{background:rgba(255,255,255,.05);color:#fff;border-left-color:var(--red)}
.admin-main{flex:1;min-width:0;display:flex;flex-direction:column}
.admin-topbar{background:#fff;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--brd);box-shadow:0 1px 4px rgba(0,0,0,.06)}
.admin-page-title{font-family:var(--fh);font-weight:900;font-size:20px}
.admin-user{font-size:13px;color:var(--mu)}
.admin-content{padding:24px;flex:1}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.stat-card{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:20px}
.stat-num{font-family:var(--fh);font-weight:900;font-size:32px;color:var(--red)}
.stat-label{font-size:13px;color:var(--mu);margin-top:4px}
.stat-card.warning .stat-num{color:var(--org)}
.admin-table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.admin-table th,.admin-table td{padding:12px 16px;text-align:left;font-size:13px;border-bottom:1px solid var(--brd)}
.admin-table th{background:#f5f5f5;font-weight:700;color:var(--mu)}
.admin-table tr:hover td{background:#fafafa}
.admin-table .actions{display:flex;gap:8px}
.btn-sm{padding:5px 12px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;border:none;text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.btn-edit{background:#e8f4fd;color:#0066cc}
.btn-edit:hover{background:#0066cc;color:#fff}
.btn-del{background:#fde8e8;color:#cc0000}
.btn-del:hover{background:#cc0000;color:#fff}

/* ── RESPONSIVE COMPLÉMENTAIRE ── */
@media(max-width:1024px){
  .cart-layout{grid-template-columns:1fr}
  .checkout-layout{grid-template-columns:1fr}
  .product-detail{grid-template-columns:1fr}
  .account-layout{grid-template-columns:1fr}
  .account-sidebar{position:static;display:flex;align-items:center;gap:16px;text-align:left}
  .account-nav{flex-direction:row;flex-wrap:wrap}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .form-row{grid-template-columns:1fr}
  .pd-actions{flex-direction:column}
  .btn-add-cart{width:100%}
  .orders-table{font-size:12px}
  .stats-grid{grid-template-columns:1fr 1fr}
  .admin-sidebar{width:180px}
}
@media(max-width:480px){
  .cart-row{flex-wrap:wrap}
  .cart-sub{width:100%;text-align:left}
  .stats-grid{grid-template-columns:1fr}
}

/* ══ ADMIN TABLES & COMPONENTS ══ */
.admin-table{width:100%;border-collapse:collapse;font-size:13px}
.admin-table th,.admin-table td{padding:11px 14px;text-align:left;border-bottom:1px solid #f0f0f0}
.admin-table th{background:#fafafa;font-weight:700;color:#888;font-size:11.5px;text-transform:uppercase;letter-spacing:.5px}
.admin-table tr:hover td{background:#fafafa}
.admin-table a{color:var(--red);font-weight:600;text-decoration:none}
.actions{display:flex;gap:6px;flex-wrap:wrap}
.btn-sm{padding:5px 11px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;border:none;text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:all .15s}
.btn-edit{background:#e8f4fd;color:#0066cc}.btn-edit:hover{background:#0066cc;color:#fff}
.btn-del{background:#fde8e8;color:#cc0000}.btn-del:hover{background:#cc0000;color:#fff}
.btn-green{background:#e8fdf0;color:#009944}.btn-green:hover{background:#009944;color:#fff}

/* ══════════════════════════════════════════
   SYSTÈME DE MODALS ADMIN — Zaid Express
   ══════════════════════════════════════════ */

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 800;
  backdrop-filter: blur(2px);
  animation: fadeIn .18s ease;
}
.modal-overlay.open { display: flex; align-items: center; justify-content: center; padding: 20px; }

/* Box */
.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .2s ease;
  position: relative;
}
.modal-sm  { max-width: 420px; }
.modal-md  { max-width: 580px; }
.modal-lg  { max-width: 760px; }
.modal-xl  { max-width: 940px; }

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}
.modal-title {
  font-family: var(--fh);
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.modal-close:hover { background: #e8192c; color: #fff; }

/* Body & Footer */
.modal-body   { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 0 0 16px 16px;
}

/* Confirmation modal spécial */
.modal-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
}
.modal-confirm-icon.danger  { background: #fde8e8; }
.modal-confirm-icon.warning { background: #fff3cd; }
.modal-confirm-icon.info    { background: #d1ecf1; }
.modal-confirm-icon.success { background: #d4edda; }

/* Toast notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #1a1a2e;
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
  animation: slideInRight .25s ease, fadeOut .3s ease 3s forwards;
  min-width: 260px;
  max-width: 360px;
  border-left: 4px solid #555;
}
.toast.toast-success { border-left-color: #00a878; }
.toast.toast-error   { border-left-color: #e8192c; }
.toast.toast-warning { border-left-color: #ffc107; }
.toast.toast-info    { border-left-color: #0066cc; }

/* Form styles dans modal */
.modal-body .form-section {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
}
.modal-body .form-section h4 {
  font-weight: 800;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.modal-body .form-group { margin-bottom: 14px; }
.modal-body .form-group label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; color: #555; }
.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--fb);
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,25,44,.1);
  outline: none;
}
.modal-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-body .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.checkbox-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  cursor: pointer;
}

/* Delete btn rouge */
.btn-danger {
  background: #e8192c;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-danger:hover { background: #bf1120; }
.btn-outline-cancel {
  background: #f5f5f5;
  color: #555;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-outline-cancel:hover { background: #e8e8e8; }

/* Image preview */
.img-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  display: none;
}
.img-preview.show { display: block; }

/* Animations */
@keyframes fadeIn    { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp   { from { transform: translateY(30px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
@keyframes fadeOut   { from { opacity: 1 } to { opacity: 0; pointer-events: none } }

@media(max-width: 600px) {
  .modal-box { border-radius: 12px; }
  .modal-body .form-row { grid-template-columns: 1fr; }
  .modal-body .form-row.cols-3 { grid-template-columns: 1fr; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer button { width: 100%; }
}

/* ── Wishlist button sur les cartes ── */
.wish-btn{position:absolute;top:10px;right:10px;z-index:2;background:rgba(255,255,255,.9);border:none;width:32px;height:32px;border-radius:50%;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.12);transition:all .2s;line-height:1}
.wish-btn:hover{transform:scale(1.15);background:#fff}
.wish-btn.active{color:#e8192c}
.wish-btn.active::before{content:'♥';position:absolute}

/* ── Galerie admin ── */
.gallery-item { transition: transform .15s, box-shadow .15s; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.gallery-item[draggable="true"] { cursor: grab; }
.gallery-item[draggable="true"]:active { cursor: grabbing; opacity: .8; }

/* ══════════════════════════════════════════
   ESPACE CLIENT — Responsive complet
   ══════════════════════════════════════════ */

/* Layout de base */
.account-layout{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:start}
.account-sidebar{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:20px;position:sticky;top:90px}
.account-content{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:24px;min-width:0}
.account-content h2{font-family:var(--fh);font-weight:900;font-size:20px;margin-bottom:16px}
.account-content h3{font-family:var(--fh);font-weight:800;font-size:16px;margin:24px 0 12px}

/* Stats */
.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.acc-stat{background:#f9f9f9;border-radius:10px;padding:16px;text-align:center;border:1px solid #f0f0f0}
.acc-stat-n{font-family:var(--fh);font-weight:900;font-size:26px;color:var(--red)}
.acc-stat-l{font-size:12px;color:var(--mu);font-weight:500;margin-top:2px}

/* Nav sidebar */
.account-nav{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.acc-link{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:8px;font-size:13px;font-weight:500;color:var(--tx);text-decoration:none;transition:all .15s}
.acc-link:hover{background:#f5f5f5;color:var(--red)}
.acc-link.active{background:rgba(232,25,44,.08);color:var(--red);font-weight:700}

/* Table commandes */
.orders-table{overflow-x:auto;border-radius:8px;border:1px solid #f0f0f0}
.orders-table table{width:100%;border-collapse:collapse;font-size:13px;min-width:460px}
.orders-table th{background:#fafafa;padding:10px 12px;text-align:left;font-weight:700;font-size:12px;color:#888;text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #f0f0f0}
.orders-table td{padding:11px 12px;border-bottom:1px solid #f9f9f9}
.orders-table tr:last-child td{border-bottom:none}
.orders-table tr:hover td{background:#fafafa}

/* Formulaire profil */
.profile-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.profile-form .form-group{margin-bottom:14px}
.profile-form .form-group label{display:block;font-size:13px;font-weight:600;color:#555;margin-bottom:5px}
.profile-form .form-group input{width:100%;padding:9px 12px;border:1.5px solid #e0e0e0;border-radius:8px;font-size:13px;font-family:var(--fb);transition:border-color .15s}
.profile-form .form-group input:focus{border-color:var(--red);outline:none;box-shadow:0 0 0 3px rgba(232,25,44,.1)}

/* ── Tablette (768px) ── */
@media(max-width:768px){
  .account-layout{grid-template-columns:1fr;gap:16px}
  .account-sidebar{position:static;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;text-align:left}
  .account-avatar{font-size:36px;margin:0}
  .account-name{font-size:15px}
  .account-email{font-size:11px;margin-bottom:0}
  .account-nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;margin-top:12px;grid-column:1/-1}
  .acc-link{padding:7px 10px;font-size:12px;border-radius:6px;background:#f5f5f5}
  .acc-link.active{background:var(--red);color:#fff}
  .account-stats{grid-template-columns:repeat(3,1fr);gap:8px}
  .acc-stat{padding:12px 8px}
  .acc-stat-n{font-size:22px}
  .profile-form .form-row{grid-template-columns:1fr}
}

/* ── Mobile (480px) ── */
@media(max-width:480px){
  .account-sidebar{grid-template-columns:1fr;text-align:center;padding:16px}
  .account-avatar{font-size:40px;margin-bottom:4px}
  .account-nav{justify-content:center}
  .acc-link span{display:none} /* Cacher les textes longs sur très petit */
  .account-content{padding:16px}
  .account-content h2{font-size:18px}
  .account-stats{grid-template-columns:repeat(3,1fr);gap:6px}
  .acc-stat{padding:10px 6px}
  .acc-stat-n{font-size:20px}
  .acc-stat-l{font-size:11px}
  .orders-table table{min-width:360px}
  .profile-form .form-row{grid-template-columns:1fr}
}


.pd-gallery { display:flex; flex-direction:column; gap:12px; position:sticky; top:80px; }

.pd-main-img {
  border-radius:12px; overflow:hidden; background:#f8f8f8;
  position:relative; aspect-ratio:1; border:1px solid #eee;
}
.pd-main-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease; cursor:zoom-in;
}
.pd-main-img:hover img { transform:scale(1.03); }

/* Vignettes — grid responsive uniforme */





/* Flèches navigation sur l'image principale */
.gal-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.9); border:none;
  width:38px; height:38px; border-radius:50%;
  font-size:20px; cursor:pointer; z-index:2;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
  transition:all .15s; line-height:1;
}
.gal-arrow:hover { background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.2); }
.gal-prev { left:10px; }
.gal-next { right:10px; }

/* Points indicateurs */
.gal-dots {
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  display:flex; gap:5px; z-index:2;
}
.gal-dot {
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,.5);
  cursor:pointer; transition:all .2s; border:none; padding:0;
}
.gal-dot.active { background:#fff; width:18px; border-radius:4px; }

/* Lightbox */
#lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:9000; align-items:center; justify-content:center; cursor:zoom-out; }
#lightbox.open { display:flex !important; }
#lightbox img { max-width:90vw; max-height:90vh; object-fit:contain; border-radius:8px; }

/* Responsive vignettes */
@media(max-width:768px) {
  
  .gal-arrow { width:32px; height:32px; font-size:16px; }
}
@media(max-width:480px) {
  
}

/* ════════════════════════════════════════
   GALERIE PRODUIT — vignettes
   ════════════════════════════════════════ */
.pd-gallery{display:flex;flex-direction:column;gap:12px;position:sticky;top:80px}
.pd-main-img{border-radius:12px;overflow:hidden;background:#f8f8f8;position:relative;aspect-ratio:1;border:1px solid #eee}
.pd-main-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s;cursor:zoom-in}
.pd-main-img:hover img{transform:scale(1.03)}

/* Grille vignettes */
.pd-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:4px}
.pd-thumb{
  aspect-ratio:1;border-radius:8px;
  border:2.5px solid #e8e8e8;
  background-size:cover;background-position:center;background-color:#f5f5f5;
  cursor:pointer;padding:0;outline:none;
  transition:border-color .2s,transform .2s,box-shadow .2s;
  display:block;width:100%
}
.pd-thumb:hover{border-color:#bbb;transform:scale(1.05)}
.pd-thumb.active{border-color:var(--red);box-shadow:0 0 0 1px var(--red)}

/* Flèches */
.gal-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.9);border:none;width:38px;height:38px;border-radius:50%;font-size:20px;cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.15);transition:all .15s;line-height:1}
.gal-arrow:hover{background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.gal-prev{left:10px}.gal-next{right:10px}
.gal-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:2}
.gal-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:all .2s;border:none;padding:0}
.gal-dot.active{background:#fff;width:18px;border-radius:4px}

/* Lightbox */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9000;align-items:center;justify-content:center;cursor:zoom-out}
#lightbox.open{display:flex !important}
#lightbox img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px}

@media(max-width:480px){.pd-thumbs{grid-template-columns:repeat(4,1fr);gap:5px}}
