/* ==================== WOODMART 3-TIER HEADER ==================== */
.wd-topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.wd-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wd-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wd-topbar-wa {
  color: #22c55e !important;
  font-weight: 700;
  text-decoration: none;
}

.wd-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.wd-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.wd-logo-link {
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-logo-icon {
  background: #ea580c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 1.3rem;
}

.wd-header-search {
  flex: 1;
  max-width: 580px;
}

.wd-header-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #0f172a;
}

.wd-cart-icon-wrap {
  position: relative;
  font-size: 1.3rem;
}

.wd-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ea580c;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}

/* ==================== WOODMART NAVIGATION BAR ==================== */
.wd-nav-bar {
  background: #0f172a;
  color: #fff;
  position: relative;
}

.wd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wd-categories-menu-toggle {
  position: relative;
  width: 270px;
}

.wd-cat-btn {
  width: 100%;
  background: #ea580c;
  color: #fff;
  border: none;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.wd-cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-top: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 100;
}

.wd-cat-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.wd-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease, color 0.15s ease;
}

.wd-cat-list li a:hover {
  background: #fff7ed;
  color: #ea580c;
}

.wd-main-nav .wd-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.wd-main-nav .wd-menu li a {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f8fafc;
  transition: color 0.15s ease;
}

.wd-main-nav .wd-menu li a:hover {
  color: #ea580c;
}

.wd-badge-hot {
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==================== HERO BANNER ==================== */
.wd-hero-section {
  padding: 24px 0;
}

.wd-hero-banner {
  border-radius: 12px;
  padding: 60px 48px;
  color: #fff;
}

.wd-hero-content {
  max-width: 620px;
}

.wd-hero-sub {
  color: #f97316;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.wd-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 16px;
}

.wd-hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 24px;
}

.wd-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wd-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.wd-btn-primary {
  background: #ea580c;
  color: #fff;
}

.wd-btn-primary:hover {
  background: #c2410c;
}

.wd-btn-outline {
  border: 1.5px solid #475569;
  color: #fff;
}

.wd-btn-white {
  background: #fff;
  color: #0f172a;
}

/* ==================== WOODMART CATEGORY CARDS ==================== */
.wd-categories-section {
  padding: 30px 0;
}

.wd-section-header {
  text-align: center;
  margin-bottom: 30px;
}

.wd-section-sub {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: block;
}

.wd-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 10px;
}

.wd-section-line {
  width: 60px;
  height: 3px;
  background: #ea580c;
  margin: 0 auto;
}

.wd-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.wd-cat-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wd-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: #ea580c;
}

.wd-cat-img-wrap img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.wd-cat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.wd-cat-products-count {
  font-size: 0.82rem;
  color: #64748b;
}

/* ==================== DUAL PROMO GRID ==================== */
.wd-promo-banners {
  padding: 30px 0;
}

.wd-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.wd-promo-card {
  padding: 36px 32px;
  border-radius: 12px;
  color: #fff;
}

.wd-promo-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.9;
  display: block;
}

.wd-promo-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 10px;
}

.wd-promo-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .wd-categories-menu-toggle {
    display: none;
  }
  .wd-hero-title {
    font-size: 1.8rem;
  }
  .wd-header-inner {
    flex-wrap: wrap;
  }
  .wd-header-search {
    order: 3;
    max-width: 100%;
  }
}
/* Top Bar Styling matching WoodMart Green */
.wd-topbar a:hover {
  opacity: 0.85;
}

.wd-topbar .wclpb-lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wd-topbar .wclpb-lang-switcher a {
  color: #ffffff !important;
  opacity: 0.75;
}

.wd-topbar .wclpb-lang-switcher a:hover {
  opacity: 1;
}

.wd-topbar .wclpb-lang-switcher .wclpb-lang-active {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  padding: 2px 6px;
  border-radius: 3px;
}

/* RTL adjustment for Top Bar */
[dir="rtl"] .wd-topbar-left,
[dir="rtl"] .wd-topbar-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .wd-topbar-item {
  border-right: none !important;
  border-left: 1px solid rgba(255,255,255,0.25) !important;
}

/* Mobile: hide slogan on small screens to prevent overflow */
@media (max-width: 900px) {
  .wd-topbar-slogan {
    display: none !important;
  }
  .wd-topbar-flex {
    justify-content: center !important;
    gap: 10px;
    padding: 6px 0;
  }
}
/* Dropdown interactif pour les langues du Topbar */
.topbar-lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  color: #1e293b;
  min-width: 150px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  padding: 6px 0;
}

.topbar-dropdown-wrap:hover .topbar-lang-dropdown {
  display: block;
}

.topbar-lang-dropdown a {
  display: block;
  padding: 8px 14px;
  color: #334155 !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.topbar-lang-dropdown a:hover {
  background: #f8fafc;
  color: #7ca82b !important;
}

/* Sur mobile : masque les éléments secondaires pour garder un bandeau propre */
@media (max-width: 900px) {
  .wd-topbar-slogan,
  .wd-topbar-socials {
    display: none !important;
  }
}


/* ==================== WOODMART HERO & MEGA MENU ==================== */
.wd-hero-layout-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  position: relative;
  min-height: 480px;
}

/* Menu vertical gauche */
.wd-hero-cat-sidebar {
  width: 270px;
  flex-shrink: 0;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
}

.wd-cat-menu-tree {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.wd-cat-item {
  position: relative;
}

.wd-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: #1e293b;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease, color 0.15s ease;
}

.wd-cat-name-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-cat-chevron {
  font-size: 16px;
  color: #94a3b8;
}

.wd-cat-item:hover > .wd-cat-link {
  background: #f8fafc;
  color: #7ca82b;
}

.wd-cat-item:hover > .wd-cat-link .wd-cat-chevron {
  color: #7ca82b;
}

/* ==================== LE MÉGA-MENU DÉROULANT (Captures 1 & 2) ==================== */
.wd-mega-menu-flyout {
  display: none;
  position: absolute;
  top: 0;
  left: 270px;
  width: calc(100% - 270px);
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  padding: 30px 35px;
  box-shadow: 15px 0 35px rgba(0,0,0,0.08);
  overflow-y: auto;
  box-sizing: border-box;
}

.wd-cat-item.has-mega-menu:hover .wd-mega-menu-flyout {
  display: block;
}

/* Grille 4 colonnes fidèle à WoodMart */
.wd-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.wd-mega-col {
  display: flex;
  flex-direction: column;
}

/* Photo au-dessus de la colonne (Capture 1) */
.wd-mega-img-link {
  display: block;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
}

.wd-mega-img-link img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.wd-mega-img-link:hover img {
  transform: scale(1.05);
}

/* Titre en gras de la colonne (Captures 1 & 2) */
.wd-mega-col-title {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wd-mega-col-title a {
  color: #0f172a;
  text-decoration: none;
}

.wd-mega-col-title a:hover {
  color: #7ca82b;
}

/* Liens enfants */
.wd-mega-sublinks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wd-mega-sublinks li {
  margin-bottom: 7px;
}

.wd-mega-sublinks li a {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease, padding 0.15s ease;
}

.wd-mega-sublinks li a:hover {
  color: #0f172a;
  padding-left: 4px;
}

/* ==================== PRODUIT VEDETTE HERO ==================== */
.wd-hero-product-showcase {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 50px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.wd-hero-prod-content {
  max-width: 460px;
}

.wd-hero-badge {
  display: inline-block;
  background: #ea580c;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.wd-hero-prod-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 12px;
}

.wd-hero-prod-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.wd-hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.wd-hero-price-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.wd-hero-price-val {
  font-size: 2rem;
  font-weight: 900;
  color: #7ca82b;
}

.wd-hero-buy-btn {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wd-hero-buy-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

.wd-hero-view-all {
  display: inline-block;
  margin-left: 15px;
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.wd-hero-prod-image img {
  max-width: 320px;
  max-height: 340px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.wd-hero-prod-image:hover img {
  transform: scale(1.04);
}

/* ==================== BANDEAU RASSURANCE BAS ==================== */
.wd-strip-reassurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 20px;
  margin: 25px 0 40px;
}

.wd-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wd-strip-icon {
  font-size: 1.8rem;
}

.wd-strip-item strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.wd-strip-item span {
  font-size: 0.78rem;
  color: #64748b;
}

/* Responsive Tablette & Smartphone */
@media (max-width: 992px) {
  .wd-hero-cat-sidebar { display: none !important; }
  .wd-hero-product-showcase { flex-direction: column-reverse; text-align: center; padding: 30px 20px; }
  .wd-hero-prod-image img { margin-bottom: 20px; max-width: 220px; }
  .wd-strip-reassurance { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}