/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =========================================================================
   AliExpress-style header  —  redumarkets.com
   Added 2026-07-09. Safe to remove this whole block to revert.
   ========================================================================= */

:root{
  --ae-blue:#1a63f0;        /* bande bleue du bas */
  --ae-pill:#f2f3f5;        /* gris clair bouton catégories */
  --ae-pill-hover:#e7e9ec;
  --ae-dark:#111111;        /* bouton recherche noir */
}

/* ---- 1) Barre de recherche : grande pill + bouton rond (desktop ET mobile) ---- */
.whb-header .wd-search-form[class*="wd-header-search-form"] .searchform{
  border:2px solid var(--ae-dark) !important;
  border-radius:999px !important;
  background:#fff !important;
  overflow:hidden;
  padding:0 4px 0 22px !important;
  display:flex;
  align-items:center;
}
.whb-header .wd-search-form .searchform .s,
.whb-header .wd-search-form .searchform input[type="text"],
.whb-header .wd-search-form .searchform input[type="search"]{
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  height:48px !important;
  flex:1 1 auto;
}
.whb-header .wd-search-form .searchform .searchsubmit,
.whb-header .wd-search-form .searchform button[type="submit"]{
  background:var(--ae-dark) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:999px !important;
  min-width:56px; height:40px;
  margin:0; padding:0 18px;
  display:flex; align-items:center; justify-content:center;
}
.whb-header .wd-search-form .searchform .searchsubmit *{ color:#fff !important; }

/* ---- 2) Bouton "Toutes les catégories" : pill gris clair + hamburger ---- */
.whb-header .menu-opener{
  background:var(--ae-pill) !important;
  color:var(--ae-dark) !important;
  border-radius:999px !important;
  padding:10px 20px !important;
  font-weight:700 !important;
  border:0 !important;
  text-transform:none !important;
}
.whb-header .menu-opener:hover{ background:var(--ae-pill-hover) !important; }
.whb-header .menu-opener *,
.whb-header .menu-open-label{
  color:var(--ae-dark) !important;
  text-transform:none !important;
}

/* ---- 3) Barre catégories (ligne du bas) -> BLANCHE façon AliExpress ---- */
.whb-header .whb-header-bottom,
.whb-header .whb-header-bottom.whb-with-bg,
.whb-header .whb-header-bottom-inner{
  background-color:#fff !important;
  background-image:none !important;
}
/* texte + icônes sombres sur la barre blanche */
.whb-header .whb-header-bottom .wd-tools-element{
  --wd-header-el-color:#222 !important;
  --wd-header-el-color-hover:rgba(0,0,0,.6) !important;
}
.whb-header .whb-header-bottom .wd-nav > li > a,
.whb-header .whb-header-bottom .wd-nav > li > a .nav-link-text{
  color:#222 !important;
  font-weight:600;
}
/* menu sur une seule ligne, compact */
.whb-header .whb-header-bottom .wd-header-nav .wd-nav{
  flex-wrap:nowrap !important;
  white-space:nowrap;
}
.whb-header .whb-header-bottom .wd-header-nav .wd-nav > li > a{
  padding-inline:6px !important;
  font-size:13px;
}

/* prix panier en sombre (au lieu du rouge accent) */
.whb-header .wd-header-cart .woocommerce-Price-amount,
.whb-header .wd-header-cart .amount,
.whb-header .wd-header-cart bdi,
.whb-header .wd-header-cart .subtotal-divider{
  color:#222 !important;
}

/* ---- 4) Ligne 1 (top-bar + general header) -> BLANCHE façon AliExpress ---- */
.whb-header .whb-top-bar,
.whb-header .whb-top-bar-inner,
.whb-header .whb-general-header,
.whb-header .whb-general-header-inner,
.whb-header .whb-general-header .whb-row{
  background-color:#fff !important;
  background-image:none !important;
}
/* texte + icônes sombres sur la ligne 1 */
.whb-header .whb-top-bar .wd-tools-element,
.whb-header .whb-general-header .wd-tools-element{
  --wd-header-el-color:#222 !important;
  --wd-header-el-color-hover:rgba(0,0,0,.6) !important;
}
.whb-header .whb-top-bar,
.whb-header .whb-top-bar a,
.whb-header .whb-general-header,
.whb-header .whb-general-header a{
  color:#222 !important;
}
/* logo couleur (attachment 1305) : aucun filtre */
.whb-header .wd-logo img,
.whb-header .whb-general-header .wd-logo img{
  filter:none !important;
}
/* icônes outils (panier, compte, wishlist) sombres — SAUF la loupe du bouton recherche */
.whb-header .wd-tools-element .wd-tools-icon:before{ color:#222 !important; }
.whb-header .wd-tools-element .wd-tools-count{ color:#fff !important; }
/* bloc Hotline (info-box) forcé en clair -> sombre */
.whb-header .wd-info-box.color-scheme-light,
.whb-header .wd-info-box.color-scheme-light *{ color:#222 !important; }
/* fine séparation sous la barre du haut */
.whb-header .whb-top-bar{ border-bottom:1px solid #ececec !important; }

/* ---- 5) Bande en bas du header ---- */
.whb-header{
  border-bottom:3px solid var(--ae-blue) !important;
}

/* =========================================================================
   6) COULEURS DE MARQUE (logo Redumarkets : vert + bleu)
   ========================================================================= */
:root{
  --brand-green:#5C9E31;
  --brand-blue:#2E6E8E;
}
/* bouton recherche -> vert (loupe blanche) */
.whb-header .wd-search-form .searchform{ border-color:var(--brand-green) !important; }
.whb-header .wd-search-form .searchform .searchsubmit,
.whb-header .wd-search-form .searchform button[type="submit"]{
  background:var(--brand-green) !important;
}
/* bande du bas -> vert du logo */
.whb-header{ border-bottom-color:var(--brand-green) !important; }
/* icônes outils (panier, compte, hotline) -> vert du logo */
.whb-header .wd-tools-element .wd-tools-icon:before{ color:var(--brand-green) !important; }
.whb-header .wd-info-box.color-scheme-light [class*="icon"]{ color:var(--brand-green) !important; }
/* pastille compteur (wishlist etc.) -> vert */
.whb-header .wd-tools-element .wd-tools-count{ background:var(--brand-green) !important; color:#fff !important; }
/* PANIER : "0 items" en texte simple, sans fond/surlignage vert */
.whb-header .wd-header-cart .wd-cart-number.wd-tools-count{
  background:transparent !important;
  color:#222 !important;
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.whb-header .wd-header-cart span:not(.wd-tools-icon){ color:#222 !important; }
/* bouton "Toutes les catégories" : texte + hamburger vert */
.whb-header .menu-opener,
.whb-header .menu-opener *{ color:var(--brand-green) !important; }
/* survol des liens du menu -> vert */
.whb-header .whb-header-bottom .wd-nav > li:hover > a,
.whb-header .whb-header-bottom .wd-nav > li:hover > a .nav-link-text{
  color:var(--brand-green) !important;
}

/* ---- 7) Indicateur "Livraison : <pays>" (type AliExpress) ---- */
.redu-delivery{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--brand-green);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  line-height:1;
}
.redu-delivery .redu-pin{ color:var(--brand-green); flex:0 0 auto; }
.redu-delivery .redu-country{ color:#333; }
.whb-header .whb-general-header .redu-delivery-wrap{ margin-inline-start:16px; display:flex; align-items:center; }
.whb-header .whb-col-mobile .redu-delivery-wrap{ margin-inline-start:8px; display:flex; align-items:center; }
