/* GP-HEADER-STICKY-FIX v7
 * Header solo visible arriba del todo.
 * Con scroll: desaparece TODO y no vuelve hasta el top.
 * Fondo transparente (sin franja).
 */

body.page-index #header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.page-index #header .header-nav {
  display: none !important;
}

#header .header-top .header-div .sub-container {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  margin-left: clamp(24px, 4vw, 72px) !important;
  margin-right: clamp(24px, 4vw, 72px) !important;
  box-sizing: border-box;
}

#header .header-top .header-div .header-center {
  display: flex !important;
  justify-content: center !important;
  justify-self: center !important;
}

#header .header-top .header-div .header-left {
  justify-self: start !important;
}

#header .header-top .header-div .header-right {
  justify-self: end !important;
  justify-content: end !important;
}

@media (min-width: 992px) {
  #header .header-left > .container.mobile,
  #header .header-left .js-top-menu.mobile {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Hero: blanco */
body.page-index #header .header-top:not(.fixed) .header-right span.search_button,
body.page-index #header .header-top:not(.fixed) #_desktop_user_info .account .account-icon,
body.page-index #header .header-top:not(.fixed) .head-wishlist a,
body.page-index #header .header-top:not(.fixed) .head-compare a,
body.page-index #header .header-top:not(.fixed) #_desktop_cart .carthome,
body.page-index #header .header-top:not(.fixed) #_mobile_cart .carthome {
  background-color: #ffffff !important;
  filter: none !important;
}

body.page-index #header .header-top:not(.fixed) .material-icons.menu-open,
body.page-index #header .header-top:not(.fixed) .cat-title,
body.page-index #header .header-top:not(.fixed) .header-left #_top_main_menu li a[data-depth="0"],
body.page-index #header .header-top:not(.fixed) #_desktop_cart .cart {
  color: #ffffff !important;
}

/* Fijo solo como estado oculto / transición */
#header .header-top.fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 10020 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
  animation: none !important;
  transition: transform 0.28s ease, opacity 0.28s ease !important;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#header .header-top.fixed .header-div {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Con scroll: TODO oculto hasta volver arriba del todo */
#header .header-top.gp-header-away,
#header .header-top.fixed.gp-header-away {
  transform: translateY(-110%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#gp-header-placeholder {
  display: none !important;
  height: 0 !important;
}

body:not(.page-index) #header {
  background: #fff !important;
  border-bottom: 1px solid var(--gp-border, #d5e0d9) !important;
}

body:not(.page-index) #header .header-top.fixed {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 991px) {
  body.page-index #header .header-top:not(.fixed) .header-left #_top_main_menu {
    display: none !important;
  }
}

/* Menú lateral móvil */
#cp_sidevertical_menu_top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: min(327px, 88vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 10050 !important;
  background: #ffffff !important;
  color: #1b4332 !important;
}

#cp_sidevertical_menu_top.slide {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

#cp_sidevertical_menu_top .title_main_menu {
  background: #1b4332 !important;
  color: #ffffff !important;
}

#cp_sidevertical_menu_top .title_menu,
#cp_sidevertical_menu_top .menu-title,
#cp_sidevertical_menu_top .material-icons.menu-close {
  color: #ffffff !important;
}

#cp_sidevertical_menu_top a,
#cp_sidevertical_menu_top #top-menu a,
#cp_sidevertical_menu_top #top-menu a[data-depth="0"],
#cp_sidevertical_menu_top .top-menu a,
body.page-index #cp_sidevertical_menu_top a,
#header #cp_sidevertical_menu_top a {
  color: #1b4332 !important;
  opacity: 1 !important;
}

#cp_sidevertical_menu_top a:hover,
#cp_sidevertical_menu_top #top-menu a:hover {
  color: #2d6a4f !important;
  background: rgba(45, 106, 79, 0.08) !important;
}

#cp_sidevertical_menu_top .collapse-icons .material-icons {
  color: #1b4332 !important;
}
