/*
 * Custom CSS for El Peque PrestaShop Theme
 * This file is loaded after the main theme CSS, allowing you to override or add styles.
 * Use specific selectors to ensure your styles apply correctly.
 */

/* --- GENERAL: Evitar desbordamiento horizontal en toda la página --- */
html,
body {
  width: 100%;
  max-width: 100%;
}
/* --- MISMA TIPOGRAFÍA PARA TODOS LOS H2 --- */
h2 {
  font-family: Jost, sans-serif;
}
/* --- MISMA TIPOGRAFÍA PARA TODOS LOS PÁRRAFOS --- */
p,
span {
  font-family: Jost, sans-serif;
}
/* --- BARRA AZUL SUPERIOR --- */
.custom-top-info-bar {
  background-color: #15a9bf;
  color: #ffffff;
  padding: 4px 0px 0px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  position: relative;
}

.custom-top-info-bar .info-text {
  display: inline-block;
  margin: 0 15px;
  white-space: nowrap;
}

.custom-top-info-bar .info-separator {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 5px;
}

.custom-top-info-bar a.info-phone {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a.info-phone:hover {
  cursor: pointer;
}

/* --- HEADER PRINCIPAL: CONTENEDORES Y ALINEACIÓN --- */
#header .container,
#header .header-container,
#header .header-top {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

#header .row {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* --- LOGO --- */
#desktop_logo {
  padding-left: 3em;
  padding-top: 1em;
  padding-bottom: 1em;
}

/* --- MENÚ PRINCIPAL (Iqit Mega Menu) --- */
#iqitmegamenu-horizontal {
  flex-grow: 1;
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  visibility: visible !important;
}

#cbp-hrmenu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  margin-left: -4vw;
}

#cbp-hrmenu > ul {
  display: flex !important;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}

#cbp-hrmenu .cbp-hrmenu-tab {
  flex-shrink: 1;
  flex-basis: auto;
  padding: 0 10px;
  position: relative !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* --- SOLUCIÓN: ELIMINAR BARRAS HORIZONTALES (ZOOM) Y VERTICALES (HOVER) --- */
#cbp-hrmenu .cbp-hrmenu-tab::after,
#cbp-hrmenu .cbp-hrmenu-tab::before {
  content: none !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  position: static !important;
}

#cbp-hrmenu .cbp-hrmenu-tab:hover {
  border-right: none !important;
  border-left: none !important;
}

/* --- SUBMENÚ DESPLEGABLE (Z-INDEX Y POSICIONAMIENTO CORRECTO) --- */
#cbp-hrmenu .cbp-hrsub {
  z-index: 999999 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 200px;
}

/* AJUSTES ADICIONALES CRUCIALES PARA EL OVERFLOW Y POSICIONAMIENTO */
#cbp-hrmenu,
#cbp-hrmenu > ul,
#cbp-hrmenu .cbp-hrmenu-tab {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}

#header .header-top,
#header .header-container {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}

/* --- ELEMENTOS DE LA DERECHA (BUSCAR, INICIAR SESIÓN, CARRITO) --- */
#header .header-top-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  padding-right: 0 !important;
}
#ps-shoppingcart-wrapper {
  padding-left: 1em;
}
#cart-toogle {
  display: flex;
}
.col-header-right {
  margin-right: 2vw;
}

#header .header-top-right > div {
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- COMPORTAMIENTO STICKY PARA EL HEADER EN DESKTOP --- */
#iqitmegamenu-wrapper {
  align-content: center;
  height: 5vh;
}
@media (min-width: 992px) {
  #header .header-top {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
}

/* --- ANIMACIÓN PARA LOS ELEMENTOS DEL MENÚ EN HOVER (LÍNEA FINA) --- */

#cbp-hrmenu .cbp-hrmenu-tab > a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  text-decoration: none;
  line-height: normal;
  
  transition: color 0.3s ease;
}

#cbp-hrmenu .cbp-hrmenu-tab > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; /* Empieza con ancho 0 */
  height: 2px; /* Grosor de la línea */
  background-color: #ef8ab8; /* Tu color principal */
  transition: width 0.3s ease-out; /* Animación de ancho suave */
}

/* Estado de hover y menú activo: la línea aparece */
#cbp-hrmenu .cbp-hrmenu-tab:hover > a::after,
#cbp-hrmenu .cbp-hrmenu-tab.current-menu-item > a::after,
#cbp-hrmenu .cbp-hrmenu-tab.current-menu-ancestor > a::after {
  width: 100%; /* La línea se expande a todo el ancho */
}

.wishlist-btn {
  margin-right: 15px;
}

.wishlist-btn i {
  color: orange;
  transition: color 0.3s;
}

.wishlist-btn:hover i {
  color: darkorange;
}
/* --- Estilos aviso cookies --- */
#iqitcookielaw {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: white;
  z-index: 9999;
  text-align: center;
  padding: 15px 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#iqitcookielaw button,
#iqitcookielaw .btn {
  margin-left: 10px;
  padding: 8px 16px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}