/* Police Cairo stockée dans le site (arabe + latin, graisses 200 à 1000) */
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/brand/fonts/cairo-arabic-wght-normal.woff2') format('woff2-variations'), url('/brand/fonts/cairo-arabic-wght-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/brand/fonts/cairo-latin-wght-normal.woff2') format('woff2-variations'), url('/brand/fonts/cairo-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f8faf9; --card: #fff; --ink: #1f2937; --muted: #6a716d; --line: #e7e4dd; --soft: #f0efe9;
  --brand: #15803d; --brand-2: #16a34a; --brand-soft: #e8f5ec; --brand-ink: #fff;
  --cta: #f97316; --cta-2: #fb923c; --danger: #c7362f; --gold: #f2b233;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,20,.05), 0 8px 28px rgba(16,24,20,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,20,.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font, 'Cairo', system-ui, sans-serif); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main.wrap { min-height: 60vh; }

/* ---------- barre d'annonce + header ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .86rem; font-weight: 600; padding: 7px 12px; }
.announce b { color: var(--gold); }
.top { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.logo-ico { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(13,107,79,.3); }
.top nav { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; }
.top nav a { text-decoration: none; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.top nav a:hover, .top nav a.on { background: var(--soft); color: var(--ink); }
.lang { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; cursor: pointer; font-weight: 800; font-size: .88rem; margin-inline-start: 4px; }
.lang:hover { border-color: var(--ink); }
@media (max-width: 520px) { .top nav a.hide-sm { display: none; } .logo span.name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

.cart-link { position: relative; font-size: 1.2rem; padding: 6px 10px !important; }
.cart-count { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--cta); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- catégories & recherche ---------- */
.shop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search input { padding-inline-start: 40px; border-radius: 999px; background: var(--card); }
.search::before { content: '🔍'; position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; font-size: .95rem; opacity: .6; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 16px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: all .15s; }
.cat:hover { border-color: var(--ink); }
.cat.on { background: var(--btn, var(--brand)); color: var(--btn-ink, #fff); border-color: var(--btn, var(--brand)); }

/* ---------- panier ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; display: flex; gap: 14px; align-items: center; font-weight: 700; box-shadow: var(--shadow-lg); animation: fade .25s; width: max-content; max-width: calc(100% - 32px); white-space: nowrap; }
.toast a { color: var(--gold); text-decoration: none; white-space: nowrap; }
body.has-sticky .toast { bottom: 92px; }
.cart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 18px 0 56px; align-items: start; }
@media (max-width: 880px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .ph { width: 72px; height: 72px; border-radius: 12px; background: var(--soft) center/cover; display: grid; place-items: center; font-size: 1.6rem; }
.cart-line h4 { margin: 0; font-size: .98rem; line-height: 1.35; }
.cart-line .vt { color: var(--muted); font-size: .85rem; }
.cart-line .qty button { width: 34px; height: 34px; font-size: 1rem; }
.cart-line .qty span { min-width: 34px; font-size: .95rem; }
.cart-line .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; font-weight: 700; padding: 4px 0; }
.cart-line .rm:hover { color: var(--danger); }
.cart-line .end { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.buy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }

/* ---------- boutons & formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 800; cursor: pointer; background: var(--brand); color: var(--brand-ink); text-decoration: none; transition: transform .12s, box-shadow .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn.cta { background: linear-gradient(135deg, var(--cta), var(--cta-2)); box-shadow: 0 6px 18px rgba(242,107,29,.35); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #c9c5bb; filter: none; }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: .88rem; border-radius: 9px; }
.btn.lg { padding: 15px 24px; font-size: 1.12rem; border-radius: 14px; }
.btn.block { width: 100%; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13,107,79,.12); }
select:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
input.invalid, select.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(199,54,47,.1); }
.field { margin-bottom: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.err { color: var(--danger); font-weight: 700; min-height: 1.2em; }
.muted { color: var(--muted); }

/* ---------- accueil ---------- */
.hero { margin: 22px 0 8px; border-radius: 24px; padding: 44px 36px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(1200px 400px at 110% -20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0b5a43 0%, #0f8a64 60%, #14a375 100%); }
.hero::after { content: ''; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; max-width: 620px; }
.hero p { margin: 0 0 20px; opacity: .92; font-size: 1.05rem; max-width: 560px; }
.hero .btn { background: #fff; color: var(--brand); }
@media (max-width: 560px) { .hero { padding: 30px 22px; border-radius: 20px; } }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
.trust div { background: var(--card); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.trust i { font-style: normal; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.25rem; }
.trust b { display: block; font-size: .95rem; line-height: 1.3; }
.trust small { color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: end; justify-content: space-between; margin: 28px 0 4px; }
.section-title h2 { margin: 0; font-size: 1.4rem; }

/* ---------- cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 14px 0 48px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .img { aspect-ratio: 1; background: var(--soft) center/cover no-repeat; position: relative; }
.card .img.noimg, .gallery .main.noimg { background-image: linear-gradient(135deg, #e9efe9, #f6f1e8) !important; display: grid; place-items: center; font-size: 3rem; color: #c6cdc7; }
.card .img .tag, .gallery .main .tag { font-size: .8rem; line-height: 1.5; }
.gallery .main .tag { font-size: .95rem; }
.card .tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--danger); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.card .tag.ship { top: auto; bottom: 10px; background: rgba(255,255,255,.95); color: var(--brand); }
.card .tag.out { background: var(--ink); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card .go { margin-top: auto; }
.price { font-weight: 800; color: var(--brand); font-size: 1.15rem; }
.price, .old, .save-pill, .summary span:last-child, .sticky-buy b { unicode-bidi: isolate; direction: ltr; display: inline-block; }
.old { color: var(--muted); text-decoration: line-through; font-size: .9rem; margin-inline-start: 6px; font-weight: 600; }
@media (max-width: 520px) { .card .body { padding: 10px; } .card h3 { font-size: .92rem; } .price { font-size: 1rem; } .card .go { padding: 8px; font-size: .9rem; } }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--soft); }
.empty { text-align: center; color: var(--muted); padding: 70px 0; }
.empty .big { font-size: 3rem; }

/* ---------- page produit ---------- */
.crumbs { padding: 16px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--brand); }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 14px 0 56px; align-items: start; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 18px; } }
.gallery { position: sticky; top: 84px; }
@media (max-width: 880px) { .gallery { position: static; } }
.gallery .main { aspect-ratio: 1; border-radius: 20px; background: var(--soft) center/cover no-repeat; box-shadow: var(--shadow); position: relative; }
.gallery .main .tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--danger); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 68px; height: 68px; border-radius: 12px; border: 2px solid transparent; background: var(--soft) center/cover; cursor: pointer; padding: 0; opacity: .75; transition: opacity .15s, border-color .15s; }
.thumbs button.on, .thumbs button:hover { border-color: var(--brand); opacity: 1; }
.panel { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
@media (max-width: 520px) { .panel { padding: 16px; border-radius: 16px; } }
.product h1 { margin: 0 0 8px; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.3; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.price-row .price { font-size: 1.7rem; }
.save-pill { background: #fdeceb; color: var(--danger); font-weight: 800; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.stock-low { color: var(--danger); font-weight: 800; font-size: .9rem; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.stock-low::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 18px; }
.perks div { background: var(--soft); border-radius: 12px; padding: 10px 8px; text-align: center; font-size: .82rem; font-weight: 700; line-height: 1.35; }
.perks i { font-style: normal; display: block; font-size: 1.2rem; margin-bottom: 2px; }
.desc-box { margin-top: 16px; }
.desc-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.desc { white-space: pre-line; color: #333; margin: 0; }
.form-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.form-head span { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.1rem; }
.form-head b { font-size: 1.05rem; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; width: max-content; background: #fff; }
.qty button { border: 0; background: var(--soft); width: 44px; height: 44px; font-size: 1.25rem; cursor: pointer; font-weight: 800; }
.qty button:hover { background: var(--line); }
.qty span { min-width: 48px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 700; background: #fff; transition: border-color .15s, background .15s; }
.seg input { width: auto; accent-color: var(--brand); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 16px; cursor: pointer; font-weight: 800; min-width: 52px; transition: all .15s; }
.opt:hover { border-color: var(--ink); }
.opts.invalid { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 12px; }
.opt.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.offers { display: grid; gap: 8px; }
.offer { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; padding-inline-start: 42px; cursor: pointer; text-align: start; transition: all .15s; }
.offer::before { content: ''; position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9c5bb; background: #fff; }
.offer.on::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 45%, #fff 50%); }
.offer b { flex: 1; font-size: 1rem; }
.offer small { width: 100%; font-weight: 800; font-size: .82rem; }
.offer .save { color: var(--danger); } .offer .ship { color: var(--brand); }
.offer.on { border-color: var(--brand); background: var(--brand-soft); }
.offer .best { position: absolute; top: -10px; inset-inline-end: 12px; background: var(--cta); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; }
.summary { background: var(--soft); border-radius: 14px; margin-top: 6px; padding: 12px 14px; }
.summary div { display: flex; justify-content: space-between; padding: 2px 0; }
.summary .total { font-weight: 800; font-size: 1.2rem; color: var(--brand); border-top: 1px dashed #d6d2c8; margin-top: 6px; padding-top: 8px; }
.cod { background: #fff6e9; border: 1px solid #f6dfb8; border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: .92rem; margin-bottom: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.trust span { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 600; color: #14532d; }
.secure { text-align: center; color: var(--muted); font-size: .82rem; margin: 10px 0 0; }

/* barre de commande fixe (mobile) */
.sticky-buy { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; box-shadow: 0 -6px 24px rgba(0,0,0,.06); }
.sticky-buy .p { line-height: 1.2; } .sticky-buy .p small { color: var(--muted); display: block; font-size: .78rem; }
.sticky-buy .btn { flex: 1; }
@media (max-width: 880px) { .sticky-buy.show { display: flex; } body.has-sticky { padding-bottom: 76px; } }

/* bouton WhatsApp flottant */
.wa { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); text-decoration: none; transition: transform .15s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; fill: #fff; }
body.has-sticky .wa { bottom: 92px; }


/* ---------- suivi / merci ---------- */
.narrow { max-width: 580px; margin: 32px auto 64px; }
.timeline { list-style: none; padding: 0; margin: 16px 0 0; }
.timeline li { position: relative; padding-inline-start: 28px; padding-bottom: 16px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 5px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.steps div { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.steps div::before { content: ''; display: block; height: 6px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps div.on { color: var(--brand); } .steps div.on::before { background: var(--brand); }
.steps.bad div.on { color: var(--danger); } .steps.bad div.on::before { background: var(--danger); }
.ok-ico { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: 2.3rem; margin: 0 auto 14px; box-shadow: 0 10px 30px rgba(13,107,79,.35); animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.order-no { display: inline-block; font-size: 1.6rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); border: 2px dashed #a9d5c1; border-radius: 14px; padding: 6px 22px; margin: 4px 0; letter-spacing: .03em; }

/* ---------- pied de page ---------- */
.foot { background: var(--ink); color: #cfd6d2; margin-top: 30px; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 36px; padding-bottom: 24px; }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.foot a { display: block; text-decoration: none; color: #cfd6d2; margin-bottom: 6px; } .foot a:hover { color: #fff; }
.foot p { margin: 0 0 6px; font-size: .92rem; }
.foot .copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 14px 16px; font-size: .84rem; color: #94a09a; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; gap: 14px; } }

/* couleurs des statuts */
.st-new { background: #e8f0ff; color: #2456b8; }
.st-confirmed { background: #f0e9ff; color: #6a3fc2; }
.st-shipped { background: #fff2dc; color: #a86608; }
.st-delivered { background: #e2f5ec; color: #15803d; }
.st-returned { background: #fde8e8; color: #b03030; }
.st-cancelled { background: #ececec; color: #666; }

/* apparition douce */
.fade { animation: fade .35s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.st-no_answer { background: #fdecec; color: #b3261e; }
.st-callback { background: #fff4e0; color: #a86608; }
/* couleurs des statuts */
.st-new { background: #e3edff; color: #1f4fb0; }
.st-confirmed { background: #e2f6ea; color: #16803c; }
.st-cancelled { background: #fde4e2; color: #b3261e; }
.st-callback { background: #efe6ff; color: #6a3fc2; }
.st-shipped { background: #fff0dc; color: #b45f06; }
.st-delivered { background: #15803d; color: #fff; }
.st-returned { background: #ececec; color: #555; }
.st-no_answer, .st-no_answer.d1 { background: #fff7c2; color: #7a6000; }
.st-no_answer.d2 { background: #ffe680; color: #6b4f00; }
.st-no_answer.d3 { background: #f5c518; color: #4a3500; }
/* Pas de réponse : orange de plus en plus foncé ; Fake order : gris foncé */
.st-no_answer, .st-no_answer.d1 { background: #ffe3c2; color: #8a4a00; }
.st-no_answer.d2 { background: #ffb366; color: #5c2e00; }
.st-no_answer.d3 { background: #e67300; color: #fff; }
.st-fake { background: #3d3d3d; color: #fff; }
.st-pending { background: #ff9800; color: #fff; }
/* fiche produit enrichie */
.pstars { color: #f5b301; letter-spacing: 1px; font-size: .95rem; display: block; margin: 2px 0 4px; }
.pstars i { color: #dcdfe0; font-style: normal; }
.product .short { color: #5b6b63; margin: 4px 0 10px; line-height: 1.5; }
.wholesale { background: #eef7f2; border: 1px solid #cfe6da; color: #15803d; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-weight: 700; font-size: .92rem; }
.desc.rich { line-height: 1.6; }
.desc.rich img { max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0; }
.desc.rich h2 { font-size: 1.25rem; margin: .8em 0 .3em; } .desc.rich h3 { font-size: 1.08rem; margin: .7em 0 .3em; }
.desc.rich p { margin: 0 0 .7em; } .desc.rich ul, .desc.rich ol { padding-inline-start: 1.3em; margin: 0 0 .7em; } .desc.rich a { color: var(--brand); }
.gallery .main video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: inherit; position: absolute; inset: 0; }
.gallery .main { position: relative; }
.thumbs button.vid { background: #263238; color: #fff; font-size: 1.1rem; }
.upsells { margin: 28px 0 10px; } .upsells h2 { font-size: 1.2rem; margin: 0 0 12px; }
/* page de vente en images : photos pleine largeur, collées les unes aux autres */
.desc.rich img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important; }
.desc.rich p:has(> img:only-child) { margin: 0; }
/* ---- mode landing page : page de vente seule ---- */
body.lp-mode .announce, body.lp-mode header.top, body.lp-mode footer.foot, body.lp-mode .crumbs { display: none !important; }
body.lp-mode main.wrap { max-width: 720px; padding-top: 0; }
.lp { padding-bottom: 20px; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; }
.lp-bar b { font-size: 1.05rem; font-weight: 800; color: var(--brand); }
.lp-title { font-size: clamp(1.35rem, 5vw, 1.9rem); line-height: 1.25; margin: 4px 0 4px; }
.lp-short { margin: 4px 0 10px; }
.lp-gal { margin: 10px 0; }
.lp-gal .main { aspect-ratio: 1; }
.lp-price { margin: 6px 0 10px; }
.lp-price .price { font-size: 1.7rem; }
.lp-form { background: #fff; border: 2px solid var(--brand); border-radius: 18px; padding: 16px; margin: 16px 0; box-shadow: 0 10px 30px rgba(13,107,79,.12); scroll-margin-top: 12px; }
.lp-fhead { display: grid; gap: 2px; text-align: center; margin-bottom: 12px; }
.lp-fhead b { font-size: 1.25rem; color: var(--brand); }
.lp-fhead small { color: var(--muted); }
.lp-offers { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.lp-desc { margin: 16px -16px; background: #fff; }
.lp-desc .desc.rich { padding: 0; }
.lp-desc .desc.rich > :not(img):not(p:has(> img:only-child)) { padding-inline: 16px; }
.lp-desc .desc:not(.rich) { padding: 16px; }
.lp-desc a { pointer-events: none; color: inherit; text-decoration: none; }
/* bouton « Commander maintenant » fixe, couleur forte, petite pulsation */
.sticky-buy.lp-sticky { display: flex !important; justify-content: center; background: transparent; border: 0; backdrop-filter: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.lp-cta { pointer-events: auto; width: min(100%, 520px); border: 0; border-radius: 999px; padding: 15px 22px; font: inherit; font-size: 1.15rem; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #ff6a00, #e53935); box-shadow: 0 10px 26px rgba(229,57,53,.45); animation: lpPulse 1.8s ease-in-out infinite; }
.lp-cta:active { transform: scale(.97); }
@keyframes lpPulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(229,57,53,.45); } 50% { transform: scale(1.04); box-shadow: 0 12px 34px rgba(229,57,53,.65); } }
@media (prefers-reduced-motion: reduce) { .lp-cta { animation: none; } }
body.lp-mode.has-sticky { padding-bottom: 86px; }
@media (max-width: 600px) { .lp-desc { margin-inline: -16px; } .lp-form { padding: 14px 12px; } .lp-form .row { grid-template-columns: 1fr; } }
.lp-out { display: block; text-align: center; margin: 30px auto; }
body.lp-mode main.wrap { padding-top: 12px; }

/* ---- formulaire unique + bouton flottant « اطلب الآن » (landing et page produit) ---- */
.sticky-buy.lp-sticky { display: flex !important; }
body.has-sticky, body.lp-mode.has-sticky { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.has-sticky .wa { bottom: calc(86px + env(safe-area-inset-bottom)); width: 50px; height: 50px; inset-inline-end: 14px; }
body.has-sticky .wa svg { width: 26px; height: 26px; }
body.has-sticky .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
.lp-cta { animation: lpPulse 1.6s ease-in-out infinite; }
.lp-form { scroll-margin-top: 12px; scroll-margin-bottom: 110px; }
.ferr { display: block; color: var(--danger); font-weight: 700; font-size: .85rem; margin-top: 4px; }
.ferr[hidden] { display: none; }
.dseg label { flex-wrap: wrap; justify-content: space-between; row-gap: 2px; }
.dseg .mtxt { flex: 1; }
.dseg .mprice { color: var(--brand); font-weight: 800; unicode-bidi: isolate; direction: ltr; }
.deskf .dinfo { display: block; color: var(--muted); margin-top: 4px; font-size: .85rem; }
.deskf[hidden] { display: none; }
.pside { display: grid; gap: 16px; align-content: start; }
.pside .lp-form { margin: 0; }
.pdesc { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.pdesc .desc-box { margin: 0; }
.pform-bottom { max-width: 720px; margin: 8px auto 0; }
.thx-sum { text-align: start; margin: 14px 0; }
.thx-sum .thx-p { max-width: 65%; text-align: end; direction: inherit !important; unicode-bidi: normal !important; }
.thx-call { font-weight: 800; color: var(--brand); font-size: 1.05rem; }
@media (max-width: 600px) { .lp-form .row { grid-template-columns: 1fr; } .dseg { grid-template-columns: 1fr !important; } }
body.form-in-view .wa { opacity: 0; pointer-events: none; transform: scale(.6); }
.wa { transition: transform .15s, opacity .2s; }
/* formulaire placé dans la description (landing, position « en haut ») */
.lp-desc .desc > form.lp-form { white-space: normal; color: var(--text, #222); }
.lp-desc .desc.rich > form.lp-form { margin: 16px 12px !important; padding: 14px 12px !important; font-size: 1rem; line-height: 1.5; }
.lp-desc .desc.rich > form.lp-form p { margin: 0; }
.lp-desc .desc.rich > form.lp-form .secure { margin-top: 8px; }
@media (max-width: 600px) { .lp-offers { grid-template-columns: 1fr; } .lp-offers .offer { padding-block: 10px; } }
body:not(.lp-mode) .lp-form { scroll-margin-top: 84px; }
.pside .lp-offers { grid-template-columns: 1fr; }
/* barre fixe : seulement le bouton « اطلب الآن », sur toute la largeur, avec une pulsation légère */
.sticky-buy.lp-sticky { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.sticky-buy.lp-sticky .lp-cta { width: 100%; max-width: none; }
@media (min-width: 881px) { .sticky-buy.lp-sticky .lp-cta { max-width: 760px; } }
/* bouton WhatsApp : au-dessus de la barre, décalé sur le côté, caché quand il passerait sur le formulaire ou les prix */
body.has-sticky .wa { bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline-end: 12px; width: 48px; height: 48px; }
body.has-sticky .wa svg { width: 25px; height: 25px; }

/* ---- apparence choisie dans Réglages ---- */
:root { --cta-ink: #fff; }
.logo-img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.lp-logo { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 0 4px; font-weight: 800; font-size: 1.1rem; }
.lp-logo .logo-img { height: 46px; }
.btn.cta, .lp-cta, .offer .best { color: var(--cta-ink) !important; }
.lp-cta { background: linear-gradient(135deg, var(--cta), var(--cta-2)) !important; }
@media (max-width: 520px) {
  .logo-img { height: 32px; max-width: 104px; }
  .logo:has(.logo-img) { gap: 6px; min-width: 0; }
  .logo:has(.logo-img) span.name { max-width: 84px; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top nav a { padding: 7px 8px; white-space: nowrap; }
}

/* logo AZ SHOP dans l'en-tête */
.top .logo .brandlogo, .top .logo .logo-img { height: 40px; width: auto; max-width: 180px; }
@media (max-width: 520px) { .top .logo .brandlogo { height: 32px; max-width: 120px; } }

/* ---------- Sélecteur de langue FR / EN / عربي ---------- */
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--soft, #fff); flex: none; }
.langs button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 800; padding: 6px 9px; color: var(--muted); cursor: pointer; min-width: 36px; }
.langs button.on { background: var(--brand); color: var(--brand-ink, #fff); }
.langs button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
@media (max-width: 520px) { .langs button { padding: 5px 7px; font-size: .74rem; min-width: 30px; } }
/* ---------- Couleurs détaillées (Réglages → Apparence) ---------- */
:where(#app, .sticky-buy, .foot) .btn { background: var(--btn, var(--brand)); color: var(--btn-ink, #fff); }
.hero .btn { background: #fff; color: var(--brand); }
.btn.cta { background: linear-gradient(135deg, var(--order, var(--cta)), var(--order-2, var(--cta-2))) !important; color: var(--order-ink, var(--cta-ink)) !important; }
.lp-cta { background: linear-gradient(135deg, var(--order, var(--cta)), var(--order-2, var(--cta-2))) !important; color: var(--order-ink, var(--cta-ink)) !important; }
main h1:not(.hero h1), main h2, .card h3, .lp-title { color: var(--heading, inherit); }
.price, .price-row .price, .lp-price .price { color: var(--price, var(--brand)); }
.card .tag:not(.ship):not(.out), .gallery .main .tag, .offer .best, .save-pill { background: var(--badge, var(--danger)) !important; color: var(--badge-ink, #fff) !important; }
.top { background: var(--header, rgba(255,255,255,.88)); }
.top .logo, .top nav a { color: var(--header-ink, inherit); }
.top .logo .brandlogo, .top .logo .logo-img, .lp-logo .logo-img { height: var(--logo-h, 40px) !important; max-width: min(60vw, calc(var(--logo-h, 40px) * 4.5)) !important; }
@media (min-width: 881px) { .top .logo .brandlogo, .top .logo .logo-img, .lp-logo .logo-img { height: var(--logo-hd, 52px) !important; max-width: calc(var(--logo-hd, 52px) * 4.5) !important; } }
select option[data-off] { color: #9a9a9a; }

/* sélection : couleur des boutons */
input[type=checkbox], input[type=radio] { accent-color: var(--btn, var(--brand)); }

/* champ anti-robot : invisible pour les clients */
.hp { position: absolute !important; inset-inline-start: 0 !important; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; } /* champ anti-robot invisible (sans décalage : évite le débordement en arabe) */
html, body { overflow-x: clip; } .lp-form, #orderForm { position: relative; }

/* ---------- Pied de page (couleur réglable) ---------- */
.foot { background: var(--footer, var(--ink)); color: var(--footer-ink, #cfd6d2); }
.foot a, .foot h4 { color: inherit; }
/* ---------- Animation des boutons « تأكيد الطلب » et « اطلب الآن » (Réglages → Apparence) ---------- */
body[data-anim] .lp-cta, body[data-anim] .lp-submit, body[data-anim] #submitBtn { animation: none; }
body[data-anim="pulse"] .lp-cta, body[data-anim="pulse"] .lp-submit, body[data-anim="pulse"] #submitBtn { animation: azPulse 1.6s ease-in-out infinite; }
body[data-anim="shake"] .lp-cta, body[data-anim="shake"] .lp-submit, body[data-anim="shake"] #submitBtn { animation: azShake 2.6s ease-in-out infinite; }
body[data-anim="bounce"] .lp-cta, body[data-anim="bounce"] .lp-submit, body[data-anim="bounce"] #submitBtn { animation: azBounce 1.8s ease-in-out infinite; }
body[data-anim="shine"] .lp-cta, body[data-anim="shine"] .lp-submit, body[data-anim="shine"] #submitBtn { position: relative; overflow: hidden; }
body[data-anim="shine"] .lp-cta::after, body[data-anim="shine"] .lp-submit::after, body[data-anim="shine"] #submitBtn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: azShine 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes azPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes azShake { 0%, 80%, 100% { transform: translateX(0) rotate(0); } 84% { transform: translateX(-4px) rotate(-1deg); } 88% { transform: translateX(4px) rotate(1deg); } 92% { transform: translateX(-3px); } 96% { transform: translateX(3px); } }
@keyframes azBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } 45% { transform: translateY(0); } 52% { transform: translateY(-2px); } }
@keyframes azShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
/* ---------- Fond animé léger : icônes e-commerce qui montent (voir bgfx.js) ---------- */
#bgfx { z-index: -1; --azfx: var(--brand); --azfxo: .16; }
@media (prefers-reduced-motion: reduce) { .lp-cta, .lp-submit, #submitBtn { animation: none !important; } .lp-cta::after, .lp-submit::after, #submitBtn::after { display: none; } }

/* chargement progressif des photos */
.lazybg { background-color: var(--soft, #f3f4f2); }
.foot a.soc { display: flex; align-items: center; gap: 6px; }
.cat .cico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* bouton « تأكيد الطلب » : couleur à part (Réglages → Apparence) */
.lp-submit, #submitBtn { background: linear-gradient(135deg, var(--confirm, var(--order, var(--cta))), var(--confirm-2, var(--order-2, var(--cta-2)))) !important; color: var(--confirm-ink, var(--order-ink, var(--cta-ink))) !important; }
/* bouton flottant « اطلب الآن » caché quand le formulaire est à l'écran */
.sticky-buy.lp-sticky { transition: transform .25s ease, opacity .25s ease; }
body.form-shown .sticky-buy.lp-sticky { transform: translateY(130%); opacity: 0; pointer-events: none; }
body.form-shown.has-sticky .wa { bottom: 20px; }

/* variantes : valeurs côte à côte, pastilles rondes pour les couleurs */
.opts { display: flex; flex-wrap: wrap; gap: 8px; } .optsel { font-weight: 600; color: var(--muted); }
.opt.swatch { width: 38px; height: 38px; padding: 3px; border-radius: 50%; display: grid; place-items: center; }
.opt.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.opt.swatch.on { outline: 2px solid var(--brand); outline-offset: 1px; }
.opt.off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
/* commande en double : message rassurant avec le numéro de la boutique */
.dupnote { background: #f0fdf4; border: 2px solid #86efac; border-radius: 16px; padding: 20px; text-align: center; margin: 14px 0; }
.dupnote b { display: block; font-size: 1.25rem; color: #166534; margin-bottom: 6px; } .dupnote p { margin: 4px 0; }
.dupbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; } .dupbtns .wa-btn { background: #1fa855; color: #fff; }
/* icônes Lucide à la place des emojis */
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; flex: none; display: inline-block; }
.trust i .ico, .perks i .ico { width: 22px; height: 22px; vertical-align: middle; }
.empty .big .ico { width: 56px; height: 56px; }
