/* ==========================================================================
   DP TOPBAR — Black rotating announcement bar
   ========================================================================== */
.dp-topbar {
  position: relative;
  z-index: 10001;
  background: #000;
  color: #fff;
  height: 34px;
  overflow: hidden;
}

.dp-topbar__track {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-topbar__slide {
  position: absolute;
  white-space: nowrap;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s, transform 0.4s;
}

.dp-topbar__slide--active {
  opacity: 1;
  transform: translateY(0);
}

.dp-topbar__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 2;
}

.dp-topbar__nav[data-dir="prev"] {
  left: 16px;
}

.dp-topbar__nav[data-dir="next"] {
  right: 16px;
}

/* Language switcher in main nav */
.dp-lang-switch {
  display: flex !important;
  align-items: center;
}

.dp-lang-switch .trp-language-switcher {
  position: relative;
}

/* Current language display */
.dp-lang-switch .trp-language-switcher > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: auto !important;
  width: auto !important;
}

.dp-lang-switch .trp-language-switcher a,
.dp-lang-switch .trp-language-switcher .trp-ls-shortcode-current-language {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.48px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  padding: 6px 0 !important;
  cursor: pointer;
}

/* Inherit header text color (white on transparent, dark on scrolled) */
body.home:not(.dp-scrolled) .dp-lang-switch .trp-language-switcher a,
body.home:not(.dp-scrolled) .dp-lang-switch .trp-language-switcher .trp-ls-shortcode-current-language {
  color: #fff !important;
}

body.dp-scrolled .dp-lang-switch .trp-language-switcher a,
body.dp-scrolled .dp-lang-switch .trp-language-switcher .trp-ls-shortcode-current-language,
body:not(.home) .dp-lang-switch .trp-language-switcher a,
body:not(.home) .dp-lang-switch .trp-language-switcher .trp-ls-shortcode-current-language {
  color: #1a1a1a !important;
}

.dp-lang-switch .trp-language-switcher img {
  width: 18px !important;
  height: 13px !important;
  border-radius: 2px;
  display: inline-block !important;
}

/* Dropdown with other languages */
.dp-lang-switch .trp-language-switcher .trp-ls-shortcode-language {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  padding: 6px 0 !important;
  min-width: 120px !important;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10001;
}

.dp-lang-switch .trp-language-switcher .trp-ls-shortcode-language a {
  color: #333 !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
}

.dp-lang-switch .trp-language-switcher .trp-ls-shortcode-language a:hover {
  background: #f5f5f5 !important;
  color: #b8860b !important;
}

/* ==========================================================================
   TWO-ROW HEADER — Transparent over hero, solid on scroll
   ========================================================================== */
body #header-outer {
  transition: background 0.3s, box-shadow 0.3s;
}

/* Non-homepage: solid white header by default */
body:not(.home) #header-outer {
  background: #fff !important;
}

/* Homepage before scroll: transparent */
body.home:not(.dp-scrolled) #header-outer {
  background: transparent !important;
}

/* Homepage: header overlays hero (transparent with white text) */
body.home:not(.dp-scrolled) #header-outer {
  position: absolute !important;
  top: 34px !important; /* below the topbar */
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* Salient creates #header-space as a placeholder div to prevent content jump.
   On homepage we want the hero directly beneath the topbar, so hide it. */
body.home:not(.dp-scrolled) #header-space {
  display: none;
}

body #header-outer.dp-header-scrolled {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  position: fixed !important;
  top: 0 !important;
  width: 100%;
  z-index: 9999;
}

/* Hide topbar when scrolled to maximize header space */
body.dp-scrolled .dp-topbar {
  display: none;
}

/* Row 2 nav: ALL CAPS */
#header-outer .sf-menu > li > a .menu-title-text {
  text-transform: uppercase;
  font-size: 12px;
  font-family: 'Inter', 'Figtree', sans-serif;
  letter-spacing: 0.48px;
  font-weight: 500;
}

/* ==========================================================================
   NAV UNDERLINE HOVER
   ========================================================================== */
#header-outer .sf-menu > li > a {
  position: relative;
  overflow: visible;
}

#header-outer .sf-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

#header-outer .sf-menu > li > a:hover::after,
#header-outer .sf-menu > li.sfHover > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   TRANSPARENT/SOLID COLOR SWITCH
   ========================================================================== */
/* Homepage without scroll: white text/logo */
body.home:not(.dp-scrolled) #header-outer .sf-menu > li > a,
body.home:not(.dp-scrolled) #header-outer .sf-menu > li > a .menu-title-text {
  color: #fff !important;
}

body.home:not(.dp-scrolled) #header-outer #logo img {
  filter: brightness(0) invert(1);
}

/* Header icons (search, cart, etc.) white on transparent homepage header */
body.home:not(.dp-scrolled) #header-outer .icon-salient-search,
body.home:not(.dp-scrolled) #header-outer .icon-salient-cart,
body.home:not(.dp-scrolled) #header-outer .icon-salient-m-user,
body.home:not(.dp-scrolled) #header-outer i,
body.home:not(.dp-scrolled) #header-outer .cart-menu-btn span,
body.home:not(.dp-scrolled) #header-outer .nectar-header-text-content {
  color: #fff !important;
}

/* Scrolled state: dark text */
body.dp-scrolled #header-outer .sf-menu > li > a .menu-title-text {
  color: #1a1a1a !important;
}

/* ==========================================================================
   M004/S01: Mega menu full-width fix for centered-menu-bottom-bar header
   --------------------------------------------------------------------------
   Salient's megamenuFullwidth() JS excludes nav.left-side / nav.right-side,
   so mega menus in the split-nav layout get constrained to the narrow nav
   container. This CSS repositions them to span the viewport.
   ========================================================================== */
#header-outer .sf-menu > li.nectar-megamenu-menu-item > .nectar-global-section-megamenu {
  position: fixed !important;
  left: 0 !important;
  width: 100vw !important;
  box-sizing: border-box !important;
  padding: 24px 40px !important;
  background: #fff !important;
  z-index: 10000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
}

/* Column headings inside mega menus */
#header-outer .nectar-global-section-megamenu h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #222;
}

/* Links inside mega menus */
#header-outer .nectar-global-section-megamenu a {
  color: #444;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
}

#header-outer .nectar-global-section-megamenu a:hover {
  color: #c8a97e;
}

/* Product count styling */
#header-outer .nectar-global-section-megamenu .count {
  color: #999;
  font-size: 12px;
}

/* "Toutes les marques" link */
#header-outer .nectar-global-section-megamenu .all-brands {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

#header-outer .nectar-global-section-megamenu .all-brands a {
  font-weight: 600;
  color: #222;
}

/* Mega menu list resets */
#header-outer .nectar-global-section-megamenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   NATIVE MEGA MENU — "Nos produits" (Salient sub-menu based)
   ========================================================================== */

/* The native mega menu dropdown container */
#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu {
  background: #fff !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  border-radius: 0 0 8px 8px;
  padding: 28px 32px !important;
  min-width: 700px;
  left: 50% !important;
  transform: translateX(-50%);
}

/* 3-column layout: direct children of sub-menu are columns */
#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li {
  list-style: none;
  vertical-align: top;
  padding: 0 20px;
}

/* Column 1 (promo) — wider, with background image */
#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li:first-child {
  min-width: 200px;
  max-width: 240px;
  background: linear-gradient(135deg, #f5efe6 0%, #e8dcc8 100%);
  border-radius: 8px;
  padding: 24px !important;
  margin-right: 8px;
  display: flex;
  align-items: flex-end;
}

#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li:first-child > a {
  color: #2c1810 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none;
}

#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li:first-child > a .menu-title-text {
  color: #2c1810 !important;
  text-transform: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* Hide "Section 2" and "Section 3" column header text */
#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li > a[href="#"] .menu-title-text,
#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li > a[href="#"] {
  font-size: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  display: none !important;
}

/* Sub-items inside columns (Bestsellers, Eau de parfum, etc.) */
#header-outer .sf-menu > li.nectar-megamenu-menu-item ul.sub-menu ul.sub-menu {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
  transform: none;
}

#header-outer .sf-menu > li.nectar-megamenu-menu-item ul.sub-menu ul.sub-menu > li {
  list-style: none;
  padding: 8px 0;
}

#header-outer .sf-menu > li.nectar-megamenu-menu-item ul.sub-menu ul.sub-menu > li > a {
  text-decoration: none;
  display: block;
}

#header-outer .sf-menu > li.nectar-megamenu-menu-item ul.sub-menu ul.sub-menu > li > a .menu-title-text {
  color: #1a1a1a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: block;
}

/* Description text under each item */
#header-outer .sf-menu > li.nectar-megamenu-menu-item ul.sub-menu li .menu-desc {
  color: #888;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.3;
}

/* Salient puts descriptions in .item-desc or post_excerpt — force display */
#header-outer .sf-menu > li.nectar-megamenu-menu-item .sf-with-ul::after {
  display: none !important; /* hide dropdown arrows inside mega menu */
}

/* Description text under each item (injected from title attr) */
#header-outer .sf-menu > li.nectar-megamenu-menu-item .mm-desc {
  display: block;
  color: #999;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.3;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Promo column description */
#header-outer .sf-menu > li.nectar-megamenu-menu-item > ul.sub-menu > li:first-child .mm-desc {
  color: #5c4a3a;
  font-size: 13px;
  font-style: italic;
}

/* Hover on sub-items */
#header-outer .sf-menu > li.nectar-megamenu-menu-item ul.sub-menu ul.sub-menu > li > a:hover .menu-title-text {
  color: #b8860b !important;
}
