/* Barra superior de la tienda. La carga la plantilla guardada en Diseño > Editor de temas (common/header).
   Colores de la paleta oficial de Handawer. */

#top.hw-top {
  --hw-negro: #111111;
  --hw-azul: #0086c9;
  --hw-linea: #e3e3e3;
  --hw-rosa: #f5a0b8;
  --hw-rosa-claro: #fde6ec;
  --hw-rosa-intenso: #ff4f9a;
  --hw-celeste: #00aeef;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--hw-linea);
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--hw-negro);
}

#top.hw-top .hw-top__in {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
}

/* Mensajes que se turnan */
#top.hw-top .hw-top__news {
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  align-self: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

#top.hw-top .hw-top__news ul {
  margin: 0;
  padding: 0;
  list-style: none;
  animation: hw-noticias 12s ease-in-out infinite;
}

#top.hw-top .hw-top__news:hover ul {
  animation-play-state: paused;
}

#top.hw-top .hw-top__news li {
  height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#top.hw-top .hw-top__news i.fa-solid {
  margin-right: 8px;
  font-size: 12px;
  color: var(--hw-azul);
}

@keyframes hw-noticias {
  0%, 44% { transform: translateY(0); }
  50%, 94% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

/* Enlaces */
#top.hw-top .hw-top__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top.hw-top .hw-top__nav > li {
  display: flex;
  align-items: stretch;
}

#top.hw-top .hw-top__nav > li > a,
#top.hw-top .dropdown > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--hw-negro);
}

#top.hw-top .hw-top__nav > li > a::after,
#top.hw-top .dropdown > a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  display: block;
  height: 3px;
  margin: 0;
  border: 0;
  background: var(--hw-rosa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

#top.hw-top .hw-top__nav > li > a:hover::after,
#top.hw-top .dropdown > a:hover::after,
#top.hw-top .dropdown.show > a::after {
  transform: scaleX(1);
}

#top.hw-top a:focus-visible {
  outline: 2px solid var(--hw-celeste);
  outline-offset: -2px;
}

#top.hw-top i.fa-solid,
#top.hw-top a:hover i.fa-solid {
  margin: 0;
  font-size: 13px;
  color: var(--hw-azul);
}

#top.hw-top i.fa-caret-down,
#top.hw-top a:hover i.fa-caret-down {
  font-size: 10px;
  color: var(--hw-negro);
}

/* Llamada a la acción */
#top.hw-top .hw-top__nav > li > a.hw-top__cta {
  margin-left: 10px;
  padding: 0 18px;
  background: var(--hw-rosa);
  font-weight: 700;
  color: var(--hw-negro);
  transition: background-color 0.15s;
}

#top.hw-top .hw-top__nav > li > a.hw-top__cta::after {
  display: none;
}

#top.hw-top .hw-top__nav > li > a.hw-top__cta:hover {
  background: var(--hw-rosa-intenso);
}

#top.hw-top a.hw-top__cta i.fa-solid,
#top.hw-top a.hw-top__cta:hover i.fa-solid {
  color: var(--hw-negro);
}

/* Moneda e idioma, solo si la tienda tiene más de uno */
#top.hw-top .hw-top__select {
  align-items: center;
  padding: 0 8px;
}

#top.hw-top .hw-top__select form {
  margin: 0;
}

/* Menú de la cuenta */
#top.hw-top .dropdown {
  display: flex;
  align-items: stretch;
}

#top.hw-top .dropdown-menu {
  top: 100%;
  right: 0;
  left: auto;
  z-index: 2100;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

#top.hw-top .dropdown-menu .dropdown-header {
  padding: 8px 10px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  color: #666666;
}

#top.hw-top .dropdown-menu .dropdown-item,
#top.hw-top .dropdown-menu .dropdown-item:hover {
  margin: 0;
  padding: 11px 10px;
  border: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: #111111 !important;
}

#top.hw-top .dropdown-menu .dropdown-item {
  background: transparent;
}

#top.hw-top .dropdown-menu .dropdown-item:hover {
  background: var(--hw-rosa-claro);
}

@media (max-width: 1199.98px) {
  #top.hw-top .hw-top__compact span {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  #top.hw-top .hw-top__nav > li > a,
  #top.hw-top .dropdown > a {
    padding: 0 12px;
  }

  #top.hw-top .hw-top__nav > li > a::after,
  #top.hw-top .dropdown > a::after {
    right: 12px;
    left: 12px;
  }

  #top.hw-top i.fa-solid {
    font-size: 15px;
  }

  #top.hw-top .fa-caret-down {
    display: none;
  }
}

@media (max-width: 575.98px) {
  #top.hw-top .hw-top__in {
    flex-direction: column;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }

  #top.hw-top .hw-top__news {
    flex: 0 0 auto;
    align-self: stretch;
    height: 18px;
    margin: 8px 16px 6px;
    text-align: center;
  }

  #top.hw-top .hw-top__nav {
    height: 44px;
    justify-content: space-between;
    border-top: 1px solid var(--hw-linea);
  }

  #top.hw-top .hw-top__nav > li {
    flex: 1 1 0;
    justify-content: center;
  }

  #top.hw-top .hw-top__nav > li > a,
  #top.hw-top .dropdown,
  #top.hw-top .dropdown > a {
    flex: 1 1 auto;
    justify-content: center;
  }

  #top.hw-top .hw-top__nav > li > a.hw-top__cta {
    margin-left: 0;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #top.hw-top .hw-top__news ul {
    animation: none;
  }

  #top.hw-top .hw-top__nav > li > a::after,
  #top.hw-top .dropdown > a::after {
    transition: none;
  }
}

/* Pie de página: sigue al contenido y, en páginas cortas, baja hasta el final de la pantalla */
body #container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body main {
  flex: 1 0 auto;
}

body #content,
body #column-left,
body #column-right {
  padding-bottom: 24px;
}

body footer {
  position: static;
  flex: 0 0 auto;
  margin-top: 24px;
  padding: 40px 0 20px;
  background: #303030;
  border: 0;
  border-top: 4px solid #f5a0b8;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ffffff;
}

body footer h5 {
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f5a0b8;
}

body footer li {
  margin-bottom: 8px;
}

body footer a {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

body footer a:hover {
  color: #f5a0b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body footer a:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: 2px;
}

body footer hr {
  margin: 20px 0 16px;
  border-color: #666666;
  opacity: 1;
}

body footer p {
  margin: 0;
  font-size: 13px;
  color: #d0d0d0;
}

body footer p a {
  font-size: 13px;
  color: #d0d0d0;
}

@media (max-width: 575.98px) {
  body footer {
    padding-top: 28px;
  }

  body footer .col-sm-3 {
    width: 50%;
    margin-bottom: 12px;
  }
}
