/* =====================================================
   BASE LAYOUT – base.twig
   ===================================================== */

/* ---------- Header fixe ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1190;
}

/* Barre 1 : texte scrollant */
.header-top {
  height: 32px;
  background: #000;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.header-info-text {
  letter-spacing: .2px;
  opacity: .9;
}

/* Barre 2 : navigation principale */
.header-middle {
  height: 64px;
  background: #f6efe8;
  border-bottom: 1px solid #e5e5e5;
}

.header-middle .container {
  height: 100%;
}

/* Logo */
.header-middle .logo img {
  max-height: 34px;
  display: block;
}

/* Actions droite */
.header-action-2 {
  display: flex;
  align-items: center;
  gap: 3px;
}

.header-action-icon-2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action-icon-2 a,
.header-action-icon-2 button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-action-icon-2 img,
.header-action-icon-2 i {
  width: 24px;
  height: 24px;
  font-size: 24px;
  display: block;
}

/* Badge compteur */
.header-action-icon-2 .pro-count {
  font-size: 10px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  padding: 0;
  top: -4px;
  right: -4px;
}

/* ---------- Navigation ---------- */
.header-nav {
  margin-left: auto;
  margin-right: 30px;
  position: relative;
  z-index: 1200; /* au-dessus des éléments du header */
}

/* éviter le clipping (très important pour dropdown) */
.header-nav,
.header-middle,
.main-nav {
  overflow: visible;
}

/* Menu principal */
.main-nav {
  list-style: none;
  margin: 0;
  padding: 20px 5px 0;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Items 1er niveau */
.main-nav > li {
  position: relative;
  white-space: nowrap;
  line-height: 1;
}

/* IMPORTANT: zone "tampon" pour éviter que le hover se coupe
   quand on descend vers le sous-menu */
.main-nav > li.has-submenu {
  padding-bottom: 10px; /* crée une zone hover sous le lien */
}

.main-nav > li > a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Soulignement */
.main-nav > li > a::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: 2px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color-dark);
  transition: width .25s ease;
}

.main-nav > li > a:hover::after,
.main-nav > li > a.active::after {
  width: calc(100% - 20px);
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--secondary-color-dark);
  font-weight: 700;
}

/* ---------- Sous-menus ---------- */
.main-nav .submenu,
.main-nav .submenu-level-2 {
  position: absolute;
  left: 0;
  top: 100%; /* collé au menu => pas de trou */
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 9999;

  /* animation propre */
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

/* Affichage hover (desktop) */
@media (min-width: 992px) {
  .main-nav > li.has-submenu:hover > .submenu,
  .submenu li.has-submenu:hover > .submenu-level-2 {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Affichage click mobile (JS ajoute .open) */
.main-nav > li.has-submenu.open > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Sous-sous-menu à droite */
.main-nav .submenu-level-2 {
  left: 100%;
  top: 0;
}

/* Liens submenu */
.main-nav .submenu li,
.main-nav .submenu-level-2 li {
  position: relative;
}

.main-nav .submenu a,
.main-nav .submenu-level-2 a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #555;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.main-nav .submenu a:hover,
.main-nav .submenu-level-2 a:hover {
  background: rgba(0,0,0,.04);
  color: var(--secondary-color-dark);
}

/* Indicateur submenu niveau 2 (optionnel) */
.submenu li.has-submenu > a::after {
  content: '›';
  font-size: 16px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
}

/* Masquer la flèche du menu principal (fi-rs-angle-down) */
.main-nav .fi-rs-angle-down,
.main-nav .fi-rs-angle-right {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .main-nav {
    display: none; /* ton menu mobile est géré ailleurs (burger) */
  }
}

/* ===== Breadcrumb minimal moderne ===== */

.breadcrumb-wrap {
    padding: 8px 0 6px 0;   /* réduit espace vertical */
    margin-bottom: 8px;     /* réduit espace avec section suivante */
}

.breadcrumb-clean {
    font-size: 0.78rem;     /* plus petit */
    font-style: italic;     /* italic */
    color: #6c757d;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 4px;       /* léger décalage à gauche */
}

.breadcrumb-clean a {
    color: #6c757d;
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb-clean a:hover {
    color: #111;
}

.breadcrumb-clean .separator {
    color: #adb5bd;
    font-size: 0.7rem;
}

.breadcrumb-clean .current {
    color: #111;
    font-weight: 400;
}

/* ===== Header search cards layout ===== */
#headerSearchBar.header-search-bar{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width: min(1320px, calc(100vw - 24px));
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:12px;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  padding:12px;
  z-index:1300;
}

#headerSearchBar.d-none{display:none !important;}
#headerSearchBar.is-open{display:block !important;}

#headerSearchBar .header-search-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}

#headerSearchBar #search{min-width:0;}

#headerSearchResults{
  margin-top:10px;
  border-top:1px solid #f0f0f0;
  padding-top:12px;
}

#headerSearchResults .hsr-products-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}

#headerSearchResults .hsr-nav{
  display:flex;
  gap:6px;
}

#headerSearchResults .hsr-nav-btn{
  width:28px;
  height:28px;
  border:1px solid #ddd;
  background:#fff;
  border-radius:6px;
  line-height:1;
  font-size:18px;
  cursor:pointer;
}



#headerSearchResults .hsr-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap:18px;
  align-items:start;
}

#headerSearchResults .hsr-products-col{
  min-width:0;
}

#headerSearchResults .hsr-cats-col{
  border-left:1px solid #ececec;
  padding-left:14px;
}

#headerSearchResults .hsr-title{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#222;
  margin:0 0 10px;
}

/* zone cards produits */

#headerSearchResults .hsr-products-grid{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns: minmax(190px, 190px);
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
#headerSearchResults .hsr-products-grid::-webkit-scrollbar{
  display:none;
}



#headerSearchResults .hsr-product-card{
  text-decoration:none !important;
  color:#111 !important;
  display:block;
}

#headerSearchResults .hsr-card-image-wrap{
  width: 100%;
  aspect-ratio: var(--hsr-card-ratio, 0.8);
  height: auto;
  background: #f5f5f5;
  overflow: hidden;
}


#headerSearchResults .hsr-card-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

#headerSearchResults .hsr-card-name{
  margin-top:8px;
  font-size:11px;
  line-height:1.25;
  text-transform:uppercase;
  color:#333;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#headerSearchResults .hsr-card-price{
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  color:#111;
}

/* suggestions */
#headerSearchResults .hsr-cats-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

#headerSearchResults .hsr-cats-list .hsr-cat{
  font-size:13px;
  color:#222;
  text-decoration:none;
  padding:2px 0;
  border:none;
  background:transparent;
}

#headerSearchResults .hsr-cats-list .hsr-cat:hover{
  text-decoration:underline;
}

#headerSearchResults .hsr-empty{
  font-size:13px;
  color:#777;
  padding:10px 0;
}

#headerSearchResults .hsr-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #f0f0f0;
}

@media (max-width: 1200px){
  #headerSearchResults .hsr-products-grid{
    grid-template-columns:repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 992px){
  #headerSearchResults .hsr-grid{
    grid-template-columns:1fr;
  }
  #headerSearchResults .hsr-cats-col{
    border-left:none;
    padding-left:0;
    border-top:1px solid #ececec;
    padding-top:10px;
  }
  #headerSearchResults .hsr-products-grid{
    grid-template-columns:repeat(2, minmax(120px, 1fr));
  }
}

/* promo pricing in header search cards */
#headerSearchResults .hsr-price-current{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
}

#headerSearchResults .hsr-price-new{
  font-size:12px;
  font-weight:700;
  color:#111;
  white-space:nowrap;
}

#headerSearchResults .hsr-price-meta{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

#headerSearchResults .hsr-price-old{
  font-size: 11px;
  color: #888;
  text-decoration: line-through;
  white-space: nowrap;
}

#headerSearchResults .hsr-discount-flag{
  font-size: 10px;         /* plus petit */
  line-height: 1.1;
  padding: 1px 5px;
  border-radius: 10px;
  background: #fbe9e9;
  color: #b42318;
  max-width: 72px;         /* évite de dépasser */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}







.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .6rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}


.wishlist-btn{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  z-index:5;
}

.wishlist-btn.is-active{
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
}


