/*
Theme Name: Birland
Theme URI: https://birland.ma
Author: Birland
Description: Thème premium pour Birland : boutique COD (paiement à la livraison), formulaire de commande direct, page Merci, landing pages et protection anti-doublons.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
Text Domain: birland
*/

/* ---------- Tokens ---------- */
:root{
  --bg:#0D0D0E;
  --bg-alt:#111113;
  --bg-deep:#0A0A0B;
  --surface:#17171A;
  --surface-2:#1E1E22;
  --line:#2A2A2E;
  --line-soft:#222226;
  --text:#F4F2EE;
  --text-2:#D6D3CD;
  --muted:#A9A6A0;
  --faint:#8E8B86;
  --silver:#C9CCD1;
  --red:#C8202F;
  --red-dark:#6E1A21;
  --ivory:#F4F2EE;
  --ink:#141416;
  --radius:20px;
  --font-display:'Montserrat',system-ui,sans-serif;
  --font-body:'IBM Plex Sans','Cairo',system-ui,sans-serif;
  --wrap:1240px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
img,video{max-width:100%;display:block}
a{color:var(--text);text-decoration:none}
a:hover{color:var(--silver)}
h1,h2,h3{margin:0;font-weight:700;line-height:1.15}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--silver);outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
[lang|=ar],[dir=rtl] .b-ar{font-family:'Cairo',var(--font-body)}

.b-wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.b-wrap--narrow{max-width:860px}
.b-section{padding:96px 0}
.b-section--alt{background:var(--bg-alt);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.b-kicker{font-family:var(--font-display);font-size:12px;letter-spacing:3px;color:var(--muted);text-transform:uppercase}
.b-h1{font-family:var(--font-display);font-size:clamp(34px,5.6vw,64px);letter-spacing:-.5px;line-height:1.12}
.b-h2{font-family:var(--font-display);font-size:clamp(28px,4vw,40px);line-height:1.2;margin-top:8px}
.b-lead{color:var(--text-2);font-size:clamp(16px,2vw,19px)}
.b-muted{color:var(--muted)}
.b-center{text-align:center}
.b-head{margin-bottom:40px}
.b-head--split{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.b-head--split p{max-width:380px;color:var(--muted)}

/* ---------- Buttons ---------- */
.b-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13px 30px;border-radius:999px;font-weight:600;font-size:16px;border:1px solid transparent;cursor:pointer;transition:transform .15s ease,background .2s ease,opacity .2s}
.b-btn:hover{transform:translateY(-1px)}
.b-btn--red{background:var(--red);color:#fff}
.b-btn--red:hover{color:#fff;background:#B01A28}
.b-btn--light{background:var(--ivory);color:var(--bg)}
.b-btn--light:hover{color:var(--bg)}
.b-btn--dark{background:var(--ink);color:var(--ivory)}
.b-btn--dark:hover{color:var(--ivory)}
.b-btn--ghost{border-color:rgba(244,242,238,.45);color:var(--text);font-weight:500}
.b-btn--lg{font-size:17px;padding:15px 34px}
.b-btn--block{width:100%}
.b-icon-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:transparent;cursor:pointer}

/* ---------- Announcement + header ---------- */
.b-announce{background:var(--surface);border-bottom:1px solid var(--line);color:var(--silver);font-size:13px;text-align:center;padding:9px 16px}
.b-announce--red{background:var(--red);color:#fff;font-weight:500;font-size:14px;border:0}
.b-header{position:sticky;top:0;z-index:50;background:rgba(13,13,14,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-soft)}
.admin-bar .b-header{top:32px}
@media (max-width:782px){.admin-bar .b-header{top:46px}}
.b-header__in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.b-logo{display:inline-flex;flex-direction:column;align-items:center;line-height:1;flex-shrink:0}
.b-notice svg,.b-trust__item svg,.b-bullets svg,.b-wa-alt svg,.b-btn svg{flex-shrink:0}
.b-logo__name{font-family:var(--font-display);font-weight:600;font-size:22px;letter-spacing:6px}
.b-logo__tag{font-family:var(--font-display);font-size:8px;letter-spacing:2.4px;color:var(--muted);margin-top:5px}
.b-logo img{max-height:44px;width:auto}
.b-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:32px;font-size:15px}
.b-header__actions{display:flex;gap:10px;align-items:center}
.b-burger{display:none}
@media (max-width:860px){
  .b-nav{display:none}
  .b-burger{display:inline-flex}
  .b-header__cta{display:none}
}
.b-drawer{position:fixed;inset:0;z-index:80;display:none}
.b-drawer.is-open{display:block}
.b-drawer__bg{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.b-drawer__panel{position:absolute;top:0;right:0;bottom:0;width:min(86vw,360px);background:var(--bg);border-left:1px solid var(--line);padding:20px 24px;display:flex;flex-direction:column;gap:8px}
.b-drawer__panel ul{list-style:none;margin:16px 0 0;padding:0}
.b-drawer__panel li a{display:block;padding:14px 0;border-bottom:1px solid var(--line-soft);font-size:18px}

/* ---------- Hero ---------- */
.b-hero{position:relative;min-height:640px;display:flex;align-items:flex-end;overflow:hidden}
.b-hero__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.b-hero__shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(13,13,14,.96) 0%,rgba(13,13,14,.55) 45%,rgba(13,13,14,.15) 100%)}
.b-hero__in{position:relative;width:100%;padding-bottom:72px}
.b-hero .b-kicker{color:var(--silver);margin-bottom:18px}
.b-hero .b-h1{max-width:780px}
.b-hero .b-lead{margin-top:20px;max-width:560px}
.b-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
@media (max-width:720px){.b-hero{min-height:560px}}

/* ---------- Trust strip ---------- */
.b-trust{background:var(--bg-alt);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.b-trust__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;padding-top:28px;padding-bottom:28px}
.b-trust__item{display:flex;gap:14px;align-items:center}
.b-trust__item strong{display:block;font-weight:600}
.b-trust__item span{font-size:14px;color:var(--muted)}

/* ---------- Cards ---------- */
.b-grid{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.b-grid--fill{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.b-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);overflow:hidden;color:var(--text);transition:border-color .2s,transform .2s}
.b-card:hover{color:var(--text);border-color:var(--line);transform:translateY(-2px)}
.b-card__media{position:relative;aspect-ratio:1/1;background:#EEEDEA;overflow:hidden}
.b-card__media img{width:100%;height:100%;object-fit:cover}
.b-badge{position:absolute;top:16px;left:16px;background:var(--red);color:#fff;font-size:13px;font-weight:600;padding:5px 12px;border-radius:999px}
.b-card__body{padding:24px 24px 28px;display:flex;flex-direction:column;gap:10px;flex:1}
.b-card__top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.b-card__name{font-size:22px;font-weight:600;font-family:var(--font-body)}
.b-card__desc{color:var(--muted);font-size:15px}
.b-card__cta{margin-top:auto;padding-top:14px}
.b-card__cta span{display:block;background:var(--ivory);color:var(--bg);font-weight:600;text-align:center;padding:13px;border-radius:999px}
.b-price{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.b-price__now{font-size:22px;font-weight:700}
.b-price__old{font-size:15px;color:var(--faint);text-decoration:line-through}
.b-dots{display:flex;gap:8px;align-items:center;margin-top:6px}
.b-dot{width:18px;height:18px;border-radius:999px;border:2px solid var(--line);background:#777}
.b-dots small{font-size:14px;color:var(--muted);margin-left:6px}

/* ---------- Split / media blocks ---------- */
.b-split{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.b-split__media{flex:999 1 520px;min-width:0;border-radius:24px;overflow:hidden;background:var(--surface)}
.b-split__media img,.b-split__media video{width:100%;height:100%;object-fit:cover}
.b-split__text{flex:1 1 340px;min-width:0}
.b-ratio-1{aspect-ratio:1/1;max-height:620px}
.b-ratio-16{aspect-ratio:16/10}

/* Color chooser (home) */
.b-colors{display:flex;flex-direction:column;gap:12px;margin-top:28px}
.b-color{display:flex;align-items:center;gap:16px;width:100%;padding:14px 18px;border-radius:16px;cursor:pointer;background:transparent;border:1px solid var(--line);text-align:left;min-height:44px}
.b-color.is-active{background:var(--surface-2);border-color:var(--silver)}
.b-color img{width:44px;height:44px;border-radius:10px;object-fit:cover}
.b-color strong{display:block;font-size:17px;font-weight:600}

/* Features */
.b-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px 32px}
.b-features h3{font-family:var(--font-body);font-size:17px;font-weight:600;margin-bottom:4px}
.b-features p{color:var(--muted);font-size:15px}
.b-features--cards{gap:20px}
.b-features--cards>div{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);padding:28px}

/* Gallery */
.b-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.b-gallery img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:18px;background:#EEEDEA}

/* Packaging */
.b-pack{display:flex;flex-wrap:wrap;align-items:stretch;background:var(--ivory);color:var(--ink);border-radius:28px;overflow:hidden}
.b-pack__img{flex:1 1 420px;min-width:0;background:#fff}
.b-pack__img img{width:100%;height:100%;object-fit:cover;min-height:340px}
.b-pack__txt{flex:1 1 380px;min-width:0;padding:56px 48px;display:flex;flex-direction:column;justify-content:center;gap:16px}
.b-pack__txt .b-kicker{color:#5E5B57}
.b-pack__txt p{color:#45433F;font-size:17px}
@media (max-width:600px){.b-pack__txt{padding:36px 24px}}

/* Reviews */
.b-reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.b-reviews img{width:100%;border-radius:18px;object-fit:cover;background:var(--surface)}

/* FAQ */
.b-faq{border-top:1px solid var(--line)}
.b-faq details{border-bottom:1px solid var(--line)}
.b-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0;font-size:18px;font-weight:600;min-height:44px}
.b-faq summary::-webkit-details-marker{display:none}
.b-faq summary::after{content:'+';font-size:24px;font-weight:300;color:var(--muted);width:24px;text-align:center;flex-shrink:0}
.b-faq details[open] summary::after{content:'−'}
.b-faq details p{color:var(--muted);padding:0 0 22px}

/* Final CTA */
.b-final{position:relative;overflow:hidden}
.b-final>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.b-final__shade{position:absolute;inset:0;background:rgba(13,13,14,.78)}
.b-final__in{position:relative;max-width:760px;margin:0 auto;padding:120px 24px;text-align:center}
.b-final__in .b-actions{justify-content:center}

/* Landing cards on home */
.b-landings{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.b-landing-card{position:relative;display:block;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;background:var(--surface)}
.b-landing-card img{width:100%;height:100%;object-fit:cover}
.b-landing-card span{position:absolute;left:0;right:0;bottom:0;padding:18px 20px;background:linear-gradient(0deg,rgba(13,13,14,.92),rgba(13,13,14,0));font-weight:600;font-size:18px}

/* ---------- Footer ---------- */
.b-footer{border-top:1px solid var(--line-soft);background:var(--bg-deep)}
.b-footer__in{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;padding-top:56px;padding-bottom:56px}
.b-footer__col{flex:1 1 180px;display:flex;flex-direction:column;gap:10px;font-size:15px}
.b-footer__col--brand{flex:1 1 260px}
.b-footer__col strong{font-weight:600;margin-bottom:4px}
.b-footer__col a,.b-footer__col p{color:var(--muted)}
.b-footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.b-footer__copy{border-top:1px solid #1C1C20;text-align:center;color:var(--faint);font-size:13px;padding:18px 18px 96px}
@media (min-width:721px){.b-footer__copy{padding-bottom:18px}}

/* ---------- Sticky mobile bar ---------- */
.b-mbar{position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(13,13,14,.96);border-top:1px solid var(--line);padding:10px 16px calc(10px + env(safe-area-inset-bottom));display:none;gap:12px;align-items:center}
.b-mbar img{width:46px;height:46px;border-radius:10px;object-fit:cover}
.b-mbar__txt{flex:1;line-height:1.3;min-width:0}
.b-mbar__txt small{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b-mbar__txt strong{font-weight:700}
.b-mbar .b-btn{min-height:44px;padding:11px 24px}
@media (max-width:720px){.b-mbar{display:flex}}
.b-mbar--always{display:flex;justify-content:center}
.b-mbar--always .b-mbar__txt{flex:0 1 260px}

/* ---------- Product page ---------- */
.b-crumbs{font-size:13px;color:var(--faint);padding-top:20px}
.b-crumbs a{color:var(--faint)}
.b-product{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start;padding-top:20px;padding-bottom:80px}
.b-pgallery{flex:999 1 540px;min-width:0;display:flex;flex-direction:column;gap:12px}
@media (min-width:1000px){.b-pgallery{position:sticky;top:96px}}
.b-pgallery__main{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:1/1;background:#EEEDEA}
.b-pgallery__main img,.b-pgallery__main video{width:100%;height:100%;object-fit:cover}
.b-pgallery__thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.b-thumb{position:relative;padding:0;aspect-ratio:1/1;border-radius:12px;overflow:hidden;cursor:pointer;background:var(--surface);background-clip:padding-box;border:2px solid transparent;opacity:.7}
.b-thumb.is-active{border-color:var(--silver);opacity:1}
.b-thumb img{width:100%;height:100%;object-fit:cover}
.b-thumb__play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(13,13,14,.35)}
.b-pinfo{flex:1 1 400px;min-width:0;display:flex;flex-direction:column;gap:18px}
.b-pinfo h1{font-family:var(--font-display);font-size:clamp(30px,4vw,40px);margin-top:-8px}
.b-pprice{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.b-pprice .b-price__now{font-size:32px}
.b-pprice .b-price__old{font-size:18px}
.b-save{font-size:14px;color:var(--silver);border:1px solid #3A3A3F;padding:2px 10px;border-radius:999px}
.b-bullets{display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--text-2);list-style:none;margin:0;padding:0}
.b-bullets li{display:flex;gap:10px;align-items:center}
.b-kit{border-top:1px solid var(--line)}
.b-kit div{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}
.b-kit span:last-child{color:var(--muted)}
.b-desc{color:var(--text-2)}
.b-desc img{border-radius:16px;margin:16px auto;height:auto}
.b-desc h2,.b-desc h3{font-family:var(--font-display);margin:28px 0 10px}
.b-desc p{margin:0 0 14px}

/* ---------- Order form ---------- */
.b-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;gap:14px}
.b-form__summary{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.b-form__summary img{width:64px;height:64px;object-fit:cover;border-radius:12px;flex-shrink:0;background:#EEEDEA}
.b-form__summary div{flex:1;line-height:1.35}
.b-form__summary small{display:block;font-size:14px;color:var(--muted)}
.b-form__title{font-weight:600;font-size:17px}
.b-swatches{display:flex;gap:12px;flex-wrap:wrap}
.b-swatch{display:flex;align-items:center;gap:10px;padding:6px 16px 6px 6px;border-radius:14px;cursor:pointer;background:transparent;border:1.5px solid var(--line);min-height:44px}
.b-swatch.is-active{background:var(--surface-2);border-color:var(--silver)}
.b-swatch img{width:44px;height:44px;object-fit:cover;border-radius:10px;background:#EEEDEA}
.b-swatch span{font-size:15px;font-weight:500}
.b-swatches--grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.b-swatches--grid .b-swatch{flex-direction:column;padding:6px 6px 8px}
.b-swatches--grid .b-swatch img{width:100%;height:auto;aspect-ratio:1/1}
.b-field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--silver)}
.b-field input{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:13px 14px;color:var(--text);font-size:16px;min-height:48px;width:100%}
.b-field input::placeholder{color:#77746F}
.b-field input:focus{outline:none;border-color:var(--silver)}
.b-field.has-error input{border-color:var(--red)}
.b-row2{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.b-submit{margin-top:4px;background:var(--red);color:#fff;border:0;border-radius:999px;padding:8px 8px 8px 22px;min-height:58px;font-weight:600;font-size:17px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.b-submit img{width:42px;height:42px;object-fit:cover;border-radius:999px;border:2px solid rgba(255,255,255,.7)}
.b-submit[disabled]{background:var(--red-dark);cursor:wait;justify-content:center;padding:8px 22px}
.b-submit .b-spin{display:none;width:22px;height:22px;border:2.4px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:999px;animation:bspin .8s linear infinite}
.b-submit[disabled] .b-spin{display:block}
.b-submit[disabled] img{display:none}
@keyframes bspin{to{transform:rotate(360deg)}}
.b-form__error{display:none;background:rgba(200,32,47,.12);border:1px solid var(--red);color:#F6C9CD;border-radius:12px;padding:10px 14px;font-size:14px}
.b-form__error.is-visible{display:block}
.b-form__trust{display:flex;justify-content:center;gap:8px 16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.b-wa-alt{display:flex;justify-content:center;align-items:center;gap:10px;border:1px solid var(--line);border-radius:999px;padding:13px;font-weight:500;min-height:48px}
.b-already{display:none;gap:12px;align-items:center;background:var(--ivory);color:var(--ink);border-radius:16px;padding:14px 16px}
.b-already.is-visible{display:flex}
.b-already:hover{color:var(--ink)}
.b-already img{width:44px;height:44px;object-fit:cover;border-radius:10px;flex-shrink:0}
.b-already span{flex:1;font-size:15px;line-height:1.4}
.b-already b{font-weight:600;font-size:14px;white-space:nowrap}
.b-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}

/* ---------- Merci ---------- */
.b-merci{max-width:760px;margin:0 auto;padding:64px 20px 96px;display:flex;flex-direction:column;gap:24px}
.b-merci__head{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.b-merci__check{width:76px;height:76px;border-radius:999px;background:var(--ivory);display:flex;align-items:center;justify-content:center}
.b-merci__head h1{font-family:var(--font-display);font-size:clamp(28px,4.4vw,40px)}
.b-merci__head p{color:var(--text-2);font-size:18px;max-width:560px}
.b-notice{background:var(--surface);border:1px solid var(--silver);border-radius:18px;padding:18px 20px;display:flex;gap:14px;align-items:flex-start}
.b-notice strong{display:block;font-weight:600;font-size:17px}
.b-notice p{color:var(--muted);font-size:15px}
.b-recap{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);overflow:hidden}
.b-recap__item{padding:20px;display:flex;gap:16px;align-items:center;border-bottom:1px solid var(--line-soft)}
.b-recap__item img{width:84px;height:84px;object-fit:cover;border-radius:14px;flex-shrink:0;background:#EEEDEA}
.b-recap__item div{flex:1;line-height:1.4}
.b-recap__item small{display:block;color:var(--muted);font-size:15px}
.b-recap__totals{padding:16px 20px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--line-soft);font-size:15px}
.b-recap__totals div{display:flex;justify-content:space-between}
.b-recap__totals .is-total{font-weight:700;font-size:17px}
.b-recap__info{padding:16px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 24px;font-size:15px}
.b-recap__info small{display:block;color:var(--faint);font-size:13px}
.b-steps{background:var(--bg-alt);border:1px solid var(--line-soft);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:16px}
.b-step{display:flex;gap:14px;align-items:flex-start}
.b-step i{font-style:normal;width:30px;height:30px;border-radius:999px;border:1px solid #3A3A3F;color:var(--silver);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.b-step.is-done i{background:var(--ivory);color:var(--bg);border-color:var(--ivory)}
.b-step strong{display:block;font-weight:600}
.b-step p{color:var(--muted);font-size:15px}

/* ---------- Boutique ---------- */
.b-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:36px}
.b-chip{font-size:15px;padding:9px 18px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;border:1px solid #3A3A3F;color:var(--silver)}
.b-chip.is-active{background:var(--ivory);color:var(--bg);border-color:var(--ivory);font-weight:600}

/* ---------- Info pages ---------- */
.b-tabs{border-bottom:1px solid var(--line-soft);overflow-x:auto}
.b-tabs ul{list-style:none;margin:0 auto;padding:0 24px;max-width:860px;display:flex;gap:6px}
.b-tabs a{display:block;padding:16px 14px;white-space:nowrap;color:var(--muted);font-size:15px}
.b-tabs a.is-active{color:var(--text);font-weight:600;box-shadow:inset 0 -2px 0 var(--silver)}
.b-page{padding:64px 0 96px}
.b-page .b-lead{margin:12px 0 40px}
.b-content h2{font-family:var(--font-body);font-size:20px;font-weight:600;border-top:1px solid var(--line-soft);padding-top:24px;margin:28px 0 8px}
.b-content p,.b-content li{color:var(--muted)}
.b-content p{margin:0 0 12px}
.b-content a{color:var(--silver);text-decoration:underline}
.b-wa-card{display:inline-flex;flex-direction:column;gap:6px;background:var(--ivory);color:var(--bg)!important;border-radius:20px;padding:24px;min-width:260px;text-decoration:none!important;margin:8px 0 24px}
.b-wa-card strong{font-size:18px}

/* ---------- 404 ---------- */
.b-404{position:relative;min-height:80vh;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.b-404>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.b-404__shade{position:absolute;inset:0;background:rgba(13,13,14,.84)}
.b-404__in{position:relative;padding:60px 24px;display:flex;flex-direction:column;align-items:center;gap:16px}
.b-404__num{font-family:var(--font-display);font-weight:700;font-size:clamp(84px,16vw,160px);line-height:1;letter-spacing:8px;color:var(--silver)}

/* ---------- Landing ---------- */
.b-lhead .b-header__in{max-width:1100px}
.b-lhero{display:flex;flex-wrap:wrap;gap:40px;align-items:center;padding-top:48px;padding-bottom:64px}
.b-lhero>div{flex:1 1 420px;min-width:0}
.b-lhero__media{border-radius:24px;overflow:hidden;aspect-ratio:1/1;background:var(--surface)}
.b-lhero__media img,.b-lhero__media video{width:100%;height:100%;object-fit:cover}
.b-pill{display:inline-flex;border:1px solid #3A3A3F;border-radius:999px;padding:5px 14px;font-size:13px;color:var(--silver);margin-bottom:20px}
.b-ba{display:flex;flex-wrap:wrap;gap:20px}
.b-ba>div{flex:1 1 300px;min-width:0;text-align:center;font-weight:600}
.b-ba img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:20px;margin-bottom:12px}
.b-how{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;text-align:center}
.b-how i{font-style:normal;width:44px;height:44px;margin:0 auto 12px;border-radius:999px;border:1px solid #3A3A3F;color:var(--silver);font-weight:700;display:flex;align-items:center;justify-content:center}
.b-how div:first-child i{background:var(--ivory);color:var(--bg);border-color:var(--ivory)}
.b-how strong{display:block}
.b-how p{color:var(--muted);font-size:15px}
.b-lform{max-width:620px;margin:0 auto}
.b-lform .b-form{border-radius:24px;padding:26px}

/* ---------- Reveal ---------- */
.b-reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.b-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.b-reveal{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}}

/* ---------- Language switch ---------- */
.b-lang{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;height:44px;padding:4px;gap:2px;font-size:14px;font-weight:600}
.b-lang a,.b-lang span{min-width:36px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:0 8px}
.b-lang a{color:var(--muted)}
.b-lang .is-active{background:var(--ivory);color:var(--bg)}
.b-lang [lang=ar],.b-lang span:last-child{font-family:'Cairo',sans-serif}
@media (max-width:480px){.b-hwa{display:none}.b-header__actions{gap:6px}.b-logo__name{font-size:19px;letter-spacing:5px}.b-logo__tag{font-size:7px;letter-spacing:1.8px}}

/* ---------- Arabic (RTL) ---------- */
html[dir=rtl] body{font-family:'Cairo','IBM Plex Sans',system-ui,sans-serif;line-height:1.8}
html[dir=rtl]{--font-display:'Cairo','Montserrat',sans-serif;--font-body:'Cairo','IBM Plex Sans',sans-serif}
html[dir=rtl] .b-kicker,html[dir=rtl] .b-h1,html[dir=rtl] .b-404__num{letter-spacing:0}
html[dir=rtl] .b-kicker{font-size:13px;font-weight:600}
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3{line-height:1.35}
html[dir=rtl] .b-badge{left:auto;right:16px}
.b-badge{direction:ltr;unicode-bidi:isolate}
.b-mbar .b-btn,.b-header__cta,.b-lhead .b-btn{white-space:nowrap}
html[dir=rtl] .b-drawer__panel{right:auto;left:0;border-left:0;border-right:1px solid var(--line)}
html[dir=rtl] .b-dots small{margin-left:0;margin-right:6px}
html[dir=rtl] .b-color,html[dir=rtl] .b-faq summary{text-align:right}
html[dir=rtl] .b-swatch{padding:6px 6px 6px 16px}
html[dir=rtl] .b-swatches--grid .b-swatch{padding:6px 6px 8px}
html[dir=rtl] .b-submit{padding:8px 22px 8px 8px}
html[dir=rtl] .b-submit[disabled]{padding:8px 22px}
html[dir=rtl] .b-field input[type=tel]{direction:ltr;text-align:right}
html[dir=rtl] .b-field input[type=tel]::placeholder{direction:ltr}
html[dir=rtl] .b-price,html[dir=rtl] .b-pprice{direction:rtl}

/* ---------- Mixed mode: French site, Arabic content, always left-to-right ---------- */
body.is-mixed{text-align:left}
body.is-mixed .b-lang,body.is-mixed .b-drawer__panel a[lang],body.is-mixed .b-footer__col a[lang]{display:none}
/* Each paragraph takes the direction of its own text (Arabic reads correctly) but stays aligned to the left. */
body.is-mixed :is(p,li,summary,h1,h2,h3,h4,label,small,strong,dd,td,th,input,textarea,.b-card__desc,.b-content){unicode-bidi:plaintext}
body.is-mixed .b-field input::placeholder{unicode-bidi:plaintext}
body.is-mixed .b-field input,body.is-mixed .b-field input::placeholder{text-align:left}
body.is-mixed [lang=ar] .b-kicker,body.is-mixed .b-kicker:lang(ar){letter-spacing:0;font-size:13px;font-weight:600}
body.is-mixed [lang=ar] :is(h1,h2,h3){letter-spacing:0;line-height:1.35}
body.is-mixed [lang=ar]{line-height:1.8}

/* Product page colors: always on one row */
.b-pinfo .b-swatches{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.b-pinfo .b-swatch{justify-content:center;gap:8px;padding:6px 10px 6px 6px;min-width:0}
.b-pinfo .b-swatch img{width:38px;height:38px;flex-shrink:0}
.b-pinfo .b-swatch span{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* WooCommerce leftovers */
.woocommerce-notices-wrapper:empty{display:none}

/* Product page form: lighter grey card */
.b-form--product{background:#2A2B2F;border-color:#55585E}
.b-form--product .b-form__summary{border-bottom-color:#43454A}
.b-form--product .b-form__title{font-size:18px}
.b-form--product .b-field input{background:#18181B;border-color:#46484E}
.b-form--product .b-field input::placeholder{color:#A4A7AD}
.b-form--product .b-field input:focus{border-color:var(--silver)}
.b-form--product .b-field.has-error input{border-color:var(--red)}
.b-form--product .b-submit{justify-content:center;position:relative;padding:8px 60px}
.b-form--product .b-submit img{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
.b-form--product .b-submit .b-spin{position:absolute;left:22px}
.b-form--product .b-form__trust{color:#B4B7BC}
/* Product page form: title and fields start from the right */
.b-form--product .b-form__title{direction:rtl;text-align:center}
body.is-mixed .b-form--product .b-field input,body.is-mixed .b-form--product .b-field input::placeholder,.b-form--product .b-field input,.b-form--product .b-field input::placeholder{direction:rtl;text-align:right}
/* Product description: edge-to-edge images on phones, no gap above */
.b-section--desc{padding-top:0}
.b-section--desc .b-desc p:has(img){margin:0}
.b-section--desc .b-desc figure{margin:0}
.b-section--desc .b-desc img{display:block;width:100%;max-width:560px;height:auto;margin:0 auto;border-radius:0}
@media (max-width:720px){
  .b-product{padding-bottom:32px}
  .b-section--desc .b-desc img{width:calc(100% + 48px);max-width:none;margin:0 -24px}
}
/* Product page: small gap between description and next section; Arabic headings in Cairo */
.b-section--desc{padding-bottom:16px}
.b-section--desc + .b-section{padding-top:40px}
body.is-mixed [lang=ar] :is(h1,h2,h3,.b-kicker){font-family:'Cairo',sans-serif}
/* Product photo swipe animation */
@keyframes bSlideL{from{transform:translateX(28%);opacity:.35}to{transform:none;opacity:1}}
@keyframes bSlideR{from{transform:translateX(-28%);opacity:.35}to{transform:none;opacity:1}}
.b-pgallery__main .b-slide-l{animation:bSlideL .28s ease-out}
.b-pgallery__main .b-slide-r{animation:bSlideR .28s ease-out}
/* WhatsApp inside the product bottom bar (replaces the floating button there) */
.b-mbar__wa{flex-shrink:0;width:46px;height:46px;border-radius:999px;background:#25D366;display:flex;align-items:center;justify-content:center;color:#fff}
.b-mbar__wa:hover{color:#fff}
.b-mbar__wa svg{width:24px;height:24px}
@media (max-width:720px){body:has(.b-mbar__wa) .b-wa-float{display:none!important}}
/* No bottom bar on the page: no extra space under the footer */
body:not(:has(.b-mbar)) .b-footer__copy{padding-bottom:18px}
