/* ============================================================
   SAIID — Ivory premium design system (Astra child)
   Bone/ivory base · charcoal text · red CTA/prices · gold accents
   ============================================================ */
:root{
  --bg:#f6f2e9; --bg2:#ffffff; --bg3:#efe9db;
  --ink:#17130e; --ink2:#3a342c; --mut:#726b5f; --faint:#a49b8b;
  --line:rgba(23,19,14,.10); --line2:rgba(23,19,14,.16);
  --red:#e11d2a; --red2:#c8102e; --red-deep:#a8121c;
  --gold:#c9a35b; --gold-soft:#b8924a;
  --dark:#141210; --dark2:#1d1a16;
  --radius:16px; --radius-sm:12px; --radius-lg:24px;
  --shadow:0 18px 50px -28px rgba(23,19,14,.45);
  --shadow-sm:0 8px 26px -18px rgba(23,19,14,.4);
  --ease:cubic-bezier(.22,.61,.36,1);
  --font-d:'Sora',system-ui,sans-serif; --font-b:'Inter',system-ui,sans-serif;
  --font-k:'Reem Kufi',sans-serif; --font-ar:'Tajawal',sans-serif;
  --star:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23e11d2a'%3E%3Crect x='28' y='28' width='44' height='44'/%3E%3Crect x='28' y='28' width='44' height='44' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E");
  --star-gold:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23c9a35b'%3E%3Crect x='30' y='30' width='40' height='40'/%3E%3Crect x='30' y='30' width='40' height='40' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E");
}

html,body{background:var(--bg)!important;color:var(--ink)!important;
  font-family:var(--font-b)!important;-webkit-font-smoothing:antialiased;}
body, .ast-container, #content{background:var(--bg)!important;}
h1,h2,h3,h4,.entry-title{font-family:var(--font-d)!important;font-weight:800;letter-spacing:-.02em;color:var(--ink)!important;}
a{color:var(--ink);text-decoration:none;} a:hover{color:var(--red);}
.sd-wrap{max-width:1200px;margin:0 auto;padding:0 24px;}
.sd-red{color:var(--red);}
.price{font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1;}

/* Moroccan top hairline */
body::before{content:"";position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;
  background:linear-gradient(90deg,var(--red),var(--gold),var(--red));}

/* ---------- HEADER (ivory) ---------- */
header.site-header, .main-header-bar-wrap, .main-header-bar, .ast-primary-header-bar,
.ast-main-header-bar-alignment{
  background:var(--bg2)!important;box-shadow:none!important;}
header.site-header{border-bottom:1px solid var(--line)!important;}
header .site-title, header .site-title a, .ast-site-title-wrap a{color:var(--ink)!important;}
header .site-title a{font-family:var(--font-d)!important;font-weight:800!important;font-size:1.5rem!important;
  text-transform:uppercase;letter-spacing:.2em;display:inline-flex;align-items:center;gap:.5rem;}
header .site-title a::before{content:"";width:1.05em;height:1.05em;background:var(--star) center/contain no-repeat;display:inline-block;}
.site-header .ast-builder-layout-element a, .main-header-menu a, .ast-header-navigation-wrap a,
.site-header .menu-link{color:var(--ink2)!important;font-family:var(--font-b)!important;font-weight:600!important;}
.main-header-menu a:hover, .site-header .menu-link:hover,
.main-navigation .current-menu-item > a{color:var(--red)!important;}
.site-header .ast-site-header-cart a, .site-header .ast-icon{color:var(--ink2)!important;}
.ast-site-identity{padding:.4rem 0;}

/* ---------- BUTTONS ---------- */
.sd-btn, .button, button, input[type=submit], a.button, .single_add_to_cart_button,
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.checkout-button, .wc-proceed-to-checkout .button, .wc-block-components-button{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-b)!important;font-weight:700!important;font-size:.95rem!important;
  border:0!important;border-radius:999px!important;padding:.85rem 1.6rem!important;cursor:pointer;
  transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease)!important;text-transform:none!important;}
.sd-btn--red,.button,button,input[type=submit],a.button,.single_add_to_cart_button,
.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit,
.checkout-button,.wc-proceed-to-checkout .button{
  background:var(--red)!important;color:#fff!important;box-shadow:0 12px 26px -14px rgba(225,29,42,.75)!important;}
.sd-btn--red:hover,.button:hover,button:hover,a.button:hover,.single_add_to_cart_button:hover,
.woocommerce a.button:hover,.checkout-button:hover{background:var(--red2)!important;transform:translateY(-2px)!important;color:#fff!important;}
.sd-btn--ghost{background:transparent!important;color:var(--ink)!important;border:1.5px solid var(--gold)!important;box-shadow:none!important;}
.sd-btn--ghost:hover{background:var(--gold)!important;color:#1a1407!important;}
.sd-btn--ghost-light{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.5)!important;}
.sd-btn--ghost-light:hover{background:#fff!important;color:var(--ink)!important;}

/* ---------- KICKERS / HEADINGS ---------- */
.sd-kicker{font-family:var(--font-k);text-transform:uppercase;letter-spacing:.22em;font-size:.72rem;color:var(--mut);}
.sd-kicker--gold{color:var(--gold-soft);}
.sd-h2{font-size:clamp(1.7rem,3.6vw,2.6rem);margin:.4rem 0 0;}
.sd-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 1.2rem;margin-bottom:2rem;}
.sd-head .sd-link{margin-left:auto;color:var(--red);font-weight:700;}
.sd-section{padding:72px 0;}
.sd-section--alt{background:var(--bg3);}

/* ---------- HERO (dark, continuous with header) ---------- */
.sd-hero{position:relative;background:var(--dark);color:#f6f2e9;overflow:hidden;}
.sd-hero__bg{position:absolute;inset:0;
  background:radial-gradient(110% 80% at 75% 20%,rgba(225,29,42,.16),transparent 55%),
            radial-gradient(80% 70% at 10% 90%,rgba(201,163,91,.10),transparent 60%);}
.sd-hero__bg::after{content:"";position:absolute;inset:0;background:var(--star-gold);background-size:200px;opacity:.04;}
.sd-hero__inner{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;
  padding:84px 24px;}
.sd-hero__title{font-size:clamp(2.6rem,6vw,4.6rem);line-height:1;color:#fff!important;margin:.6rem 0 0;}
.sd-hero__sub{color:#cdc6b8;font-size:1.1rem;line-height:1.6;max-width:30rem;margin:1.2rem 0 0;}
.sd-hero__cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:1.8rem;}
.sd-hero__points{list-style:none;display:flex;flex-wrap:wrap;gap:1.2rem;margin:1.8rem 0 0;padding:0;
  font-size:.85rem;color:#b7b0a2;}
.sd-hero__media{position:relative;display:flex;align-items:center;justify-content:center;min-height:320px;}
.sd-hero__img{max-width:100%;height:auto;border-radius:var(--radius-lg);position:relative;z-index:2;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.7);}
.sd-hero__halo{position:absolute;width:78%;height:78%;border-radius:50%;
  background:radial-gradient(circle,rgba(225,29,42,.35),transparent 65%);filter:blur(30px);z-index:1;}

/* ---------- TRUST STRIP ---------- */
.sd-trust{background:var(--dark2);color:#f6f2e9;border-top:1px solid rgba(255,255,255,.06);}
.sd-trust__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;padding:0;}
.sd-trust__item{padding:22px 18px;display:flex;flex-direction:column;gap:2px;text-align:center;
  border-left:1px solid rgba(255,255,255,.06);}
.sd-trust__item:first-child{border-left:0;}
.sd-trust__item b{font-family:var(--font-d);font-size:.98rem;color:#fff;}
.sd-trust__item span{color:#a59e90;font-size:.78rem;}

/* ---------- CATEGORIES ---------- */
.sd-cats{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;}
.sd-cat{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--line);
  background:var(--bg2);min-height:260px;display:flex;align-items:flex-end;transition:transform .35s var(--ease),box-shadow .35s var(--ease);}
.sd-cat:hover{transform:translateY(-4px);box-shadow:var(--shadow);}
.sd-cat__img{position:absolute;inset:0;background-size:cover;background-position:center;
  filter:saturate(1.02);}
.sd-cat::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(20,18,16,.82));}
.sd-cat__label{position:relative;z-index:2;padding:24px;color:#fff;display:flex;flex-direction:column;gap:2px;}
.sd-cat__label b{font-family:var(--font-d);font-size:1.5rem;}
.sd-cat__count{color:var(--gold);font-weight:600;font-size:.9rem;}

/* ---------- WHY ---------- */
.sd-why{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.sd-why__item{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:24px;}
.sd-why__n{font-family:var(--font-d);font-weight:800;color:var(--gold);font-size:.9rem;}
.sd-why__item h3{font-size:1.1rem;margin:.6rem 0 .4rem;}
.sd-why__item p{color:var(--mut);font-size:.92rem;line-height:1.55;margin:0;}

/* ---------- CTA BAND ---------- */
.sd-band{background:var(--dark);color:#fff;}
.sd-band__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding:54px 24px;}
.sd-band__title{font-size:clamp(1.6rem,4vw,2.4rem);color:#fff!important;margin:0;}
.sd-band__sub{color:#cdc6b8;margin:.5rem 0 0;}
.sd-band__cta{display:flex;gap:12px;}

/* ---------- PRODUCT CARDS (Woo loop) ---------- */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:22px!important;margin:0!important;}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:var(--bg2)!important;
  border:1px solid var(--line);border-radius:var(--radius)!important;padding:14px!important;
  transition:transform .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease);display:flex;flex-direction:column;}
.woocommerce ul.products li.product:hover{transform:translateY(-5px);border-color:var(--gold-soft);box-shadow:var(--shadow);}
.woocommerce ul.products li.product a img{border-radius:10px!important;margin-bottom:12px!important;aspect-ratio:4/3;object-fit:cover;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--font-d)!important;font-size:1.02rem!important;
  font-weight:700!important;color:var(--ink)!important;padding:0!important;}
.woocommerce ul.products li.product .price{color:var(--red)!important;font-weight:800!important;font-size:1.15rem!important;}
.woocommerce ul.products li.product .price del{color:var(--faint)!important;font-weight:500!important;font-size:.85rem;opacity:1;}
.woocommerce ul.products li.product .price ins{text-decoration:none!important;}
.woocommerce ul.products li.product .button{margin-top:auto!important;width:100%;}
.woocommerce .star-rating span{color:var(--gold)!important;}

/* Sale badge -XX% */
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{background:var(--red)!important;color:#fff!important;
  border-radius:999px!important;font-family:var(--font-d)!important;font-weight:800!important;min-height:0!important;
  min-width:0!important;padding:4px 10px!important;line-height:1.2!important;top:18px!important;left:18px!important;
  box-shadow:0 8px 18px -8px rgba(225,29,42,.8)!important;}

/* ---------- SINGLE PRODUCT ---------- */
.single-product div.product .price,.single-product div.product .price ins{color:var(--red)!important;font-weight:800!important;}
.single-product div.product .price del{color:var(--faint)!important;}
.single-product .product_title{font-size:clamp(1.6rem,4vw,2.4rem)!important;}
/* Guarantee the product gallery image is visible even if its JS lags */
.woocommerce-product-gallery{opacity:1!important;}
.woocommerce-tabs ul.tabs li.active{background:var(--bg2)!important;border-color:var(--line)!important;}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--ink)!important;}

/* ---------- FORMS / CART / CHECKOUT (light) ---------- */
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=search],
textarea,select,.select2-container--default .select2-selection--single{
  background:var(--bg2)!important;border:1px solid var(--line2)!important;color:var(--ink)!important;border-radius:10px!important;}
input:focus,textarea:focus,select:focus{border-color:var(--red)!important;outline:none!important;box-shadow:0 0 0 3px rgba(225,29,42,.12)!important;}
.woocommerce table.shop_table,.cart_totals table,#order_review,.woocommerce-checkout #payment{
  background:var(--bg2)!important;border:1px solid var(--line)!important;border-radius:var(--radius)!important;color:var(--ink)!important;}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--line)!important;color:var(--ink)!important;}
.woocommerce-info,.woocommerce-message{background:var(--bg2)!important;border-top:3px solid var(--gold)!important;color:var(--ink)!important;border-radius:10px;}
.woocommerce-info::before,.woocommerce-message::before{color:var(--gold-soft)!important;}
#payment div.payment_box{background:var(--bg3)!important;color:var(--ink2)!important;}
#payment div.payment_box::before{border-bottom-color:var(--bg3)!important;}

/* ---------- FOOTER ---------- */
.site-footer,.ast-small-footer,footer.site-footer,.site-below-footer-wrap,.ast-footer-overlay{
  background:var(--dark)!important;color:#a59e90!important;border-top:3px solid var(--red)!important;}
.site-footer a{color:#cdc6b8!important;} .site-footer a:hover{color:var(--red)!important;}
/* Replace Astra builder copyright ("Powered by Astra") with our FR credit */
.ast-footer-copyright p{display:none!important;}
.ast-footer-copyright::after{content:"© 2026 Saiid — Vélos & trottinettes électriques au Maroc · WhatsApp 0632459357";
  color:#a59e90;font-size:.82rem;}

/* ---------- ANNOUNCEMENT BAR ---------- */
#saiid-bar{background:linear-gradient(90deg,var(--red-deep),var(--red));color:#fff;
  font:600 .8rem/1 var(--font-b);text-align:center;padding:.6rem 1rem;letter-spacing:.01em;
  display:flex;gap:1.3rem;justify-content:center;align-items:center;flex-wrap:wrap;}
#saiid-bar a{color:#fff;}
#saiid-bar b{font-weight:800;}
#saiid-bar .sep{width:13px;height:13px;background:var(--star-gold);background-size:contain;opacity:.85;}

/* ---------- WHATSAPP FLOAT ---------- */
#saiid-wa{position:fixed;right:18px;bottom:18px;z-index:9998;width:58px;height:58px;border-radius:50%;
  background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px -8px rgba(0,0,0,.4);transition:transform .25s var(--ease);}
#saiid-wa:hover{transform:scale(1.08);} #saiid-wa svg{width:32px;height:32px;fill:#fff;}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  .sd-hero__inner{grid-template-columns:1fr;padding:54px 24px;}
  .sd-hero__media{order:-1;min-height:auto;}
  .sd-trust__grid{grid-template-columns:repeat(2,1fr);}
  .sd-trust__item:nth-child(odd){border-left:0;}
  .sd-cats{grid-template-columns:1fr;}
  .sd-why{grid-template-columns:repeat(2,1fr);}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important;}
}
@media(max-width:560px){
  .sd-why{grid-template-columns:1fr;}
  .woocommerce ul.products{grid-template-columns:1fr!important;}
  header .site-title a{font-size:1.2rem!important;letter-spacing:.14em;}
}

/* ---------- Front page: let custom sections go full-width ---------- */
.home #content,.home .site-content,.home #primary,.home .ast-container{
  max-width:100%!important;padding:0!important;margin:0!important;}
.home .entry-header,.home .ast-archive-header,.home #content .entry-content{margin:0!important;}
.home .site-content{padding-top:0!important;}
#saiid-front .sd-section:first-child{margin-top:0;}

/* ============ v1.4 — CLEAN · grandma-easy · high-ticket ============ */
body{font-size:17px!important;line-height:1.7!important;}
.sd-section{padding:88px 0;}
.sd-btn,.button,button,input[type=submit],a.button,.single_add_to_cart_button,
.woocommerce a.button,.woocommerce button.button,.checkout-button,.wc-proceed-to-checkout .button{
  min-height:54px;font-size:1.02rem!important;padding:.95rem 1.9rem!important;}
.main-header-menu a,.site-header .menu-link{font-size:1rem!important;}
/* product cards: bigger, calmer */
.woocommerce ul.products li.product{padding:16px!important;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.12rem!important;margin:.25rem 0 .15rem;}
.woocommerce ul.products li.product .price{font-size:1.32rem!important;}
.woocommerce ul.products li.product .button{font-size:1.02rem!important;min-height:52px;}
/* single product: big price + one full-width action */
.single-product div.product p.price,.single-product div.product .price{font-size:1.9rem!important;}
.single-product .single_add_to_cart_button{width:100%;font-size:1.2rem!important;min-height:62px;}
.single-product .woocommerce-product-details__short-description{font-size:1.08rem;color:var(--ink2);line-height:1.7;}
.single-product div.product form.cart .quantity{margin-bottom:.6rem;}

/* Reassurance block under the buy button */
.sd-reassure{list-style:none;margin:1.5rem 0 0;padding:1.1rem 1.2rem;display:grid;gap:.75rem;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);}
.sd-reassure li{display:flex;gap:.7rem;align-items:center;font-size:1rem;color:var(--ink2);margin:0;line-height:1.4;}
.sd-reassure li span{font-size:1.2rem;width:1.7rem;text-align:center;flex:none;}

/* Sticky mobile order bar (one obvious tap) */
#sd-sticky{display:none;}
@media(max-width:768px){
  #sd-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9999;align-items:center;gap:12px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line2);
    box-shadow:0 -12px 30px -16px rgba(0,0,0,.3);}
  #sd-sticky .sd-sticky__price{font-family:var(--font-d);font-weight:800;color:var(--red);font-size:1.15rem;flex:1;white-space:nowrap;}
  #sd-sticky .sd-sticky__price del{display:none;}
  #sd-sticky .sd-sticky__btn{background:var(--red);color:#fff;border:0;border-radius:999px;font-family:var(--font-b);
    font-weight:800;font-size:1.05rem;padding:.9rem 1.7rem;min-height:52px;}
  #saiid-wa{bottom:80px;}
  body.single-product{padding-bottom:76px;}
}
@media(max-width:560px){ body{font-size:16.5px!important;} .sd-section{padding:56px 0;} }

/* ---------- RTL (Arabe) ---------- */
[dir=rtl] body,[lang=ar] body{font-family:var(--font-ar)!important;}
[dir=rtl] .sd-head .sd-link{margin-left:0;margin-right:auto;}
[dir=rtl] .sd-trust__item{border-left:0;border-right:1px solid rgba(255,255,255,.06);}
[dir=rtl] .sd-trust__item:first-child{border-right:0;}
