/* ==========================================================================
   Moro Home — Header (moro-header.css)
   --------------------------------------------------------------------------
   Rediseño del header basado en desgine/header.html.
   Layout BEM de 2 filas: top bar + nav de categorías.
   Workaround temporal: SCSS no compilable en este entorno.
   ========================================================================== */

/* Material Symbols Outlined (header icons) — estilo de desgine/header.html */

.moro-header .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Ajustes de tamaño específicos */

.moro-header__icon-btn .material-symbols-outlined,
.moro-header__icon-btn .material-icons {
  font-size: 24px;
}

.moro-header__menu-toggle .material-symbols-outlined,
.moro-header__menu-toggle .material-icons {
  font-size: 24px;
}

.moro-search-dialog__close .material-symbols-outlined,
.moro-search-dialog__close .material-icons {
  font-size: 32px;
}

/* ================================================================
   1. Contenedor principal
   ================================================================ */

.moro-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(252, 249, 248, 0.9); /* --moro-surface / 90% */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--moro-surface-dim);
}

.moro-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px; /* px-margin-mobile */
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .moro-header__inner {
    padding: 0 64px; /* px-margin-desktop */
  }
}

/* ================================================================
   2. Fila 1 — Top bar
   ================================================================ */

.moro-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0; /* py-4 → 1rem */
  border-bottom: 1px solid var(--moro-surface-dim);
}

.moro-header--has-mega-menu .moro-header__top {
  border-bottom: 0;
}

/* ---- 2a. Izquierda: search + toggle mobile ---- */

.moro-header__left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/* Botón genérico de icono (search, account, menu toggle) */

.moro-header__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--moro-on-surface);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--moro-font-sans);
  font-size: var(--moro-fs-nav-item);
  font-weight: var(--moro-fw-nav-item);
  line-height: var(--moro-lh-nav-item);
  letter-spacing: var(--moro-ls-nav-item);
  text-decoration: none;
  transition: var(--moro-transition-color);
}

.moro-header__icon-btn:hover,
.moro-header__icon-btn:focus-visible {
  color: var(--moro-primary);
}

.moro-header__icon-btn .material-icons {
  font-size: 24px;
}

/* Label de texto junto al icono (visible solo en desktop) */

.moro-header__icon-label {
  white-space: nowrap;
}

#moro-search-toggle .moro-header__icon-label {
  font-family: var(--moro-font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--moro-on-surface);
}

/* ---- 2b. Centro: logo ---- */

.moro-header__brand {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.moro-header__h1 {
  margin: 0;
}

.moro-header__brand img,
.moro-header__brand .logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center;
}

@media (min-width: 768px) {
  .moro-header__brand img,
  .moro-header__brand .logo {
    height: 64px; /* md:h-16 */
  }
}

/* ---- 2c. Derecha: módulos (displayNav2 → header-block) ---- */

.moro-header__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

@media (min-width: 768px) {
  .moro-header__right {
    gap: 6px;
  }
}

/* ===== Iconos de acción (header-block: sign-in, cart, mobile search trigger) ===== */

.moro-header__right .header-block {
  display: flex;
  align-items: center;
  margin: 0;
}

.moro-header__right #_desktop_ps_customersignin {
  margin-right: -8px;
}

.moro-header__right .header-block__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  position: relative;
  color: var(--moro-on-surface);
  text-decoration: none;
  border: 0;
  background: transparent;
  font-family: var(--moro-font-sans);
  font-size: var(--moro-fs-nav-item);
  font-weight: var(--moro-fw-nav-item);
  line-height: var(--moro-lh-nav-item);
  letter-spacing: var(--moro-ls-nav-item);
  cursor: pointer;
  transition: var(--moro-transition-color);
}

.moro-header__right .header-block__action-btn[href]:hover,
.moro-header__right .header-block__action-btn[href]:focus,
.moro-header__right .header-block__action-btn:hover {
  color: var(--moro-primary);
}

.moro-header__right .header-block__icon {
  font-size: 24px;
  transition: var(--moro-transition-color);
}

/* Desktop (>=768px): carrito con items. El CSS compilado del tema pinta el
   icono con var(--bs-primary) (azul PrestaShop) cuando el bloque tiene la
   clase header-block--active. Se restaura el comportamiento Moro: el icono
   hereda el color del botón (reposo = --moro-on-surface, hover = teja).
   CSS plano sin @layer: gana a la regla del bundle por cascade layers. */
@media (min-width: 768px) {
  .moro-header__right .header-block--active .header-block__icon {
    color: inherit;
  }
}

/* Solo iconos — sin texto en sign-in ni carrito (todos los viewports) */
.moro-header__right .header-block__title {
  display: none !important;
}
@media (min-width: 768px) {
  .moro-header__right .header-block__title {
    display: none !important;
  }
}

/* ---- Badge del carrito ---- */

.moro-header__right .header-block__badge {
  font-family: var(--moro-font-sans);
  font-size: 10px;
  font-weight: var(--moro-fw-label-md);
  background-color: var(--moro-primary);
  color: #fff;
  border-radius: 9999px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 2px;
  right: 0;
}

/* ---- Dropdown del sign-in ---- */

.moro-header__right .dropdown .header-block__action-btn {
  position: relative;
}

/* Ocultar caret de Bootstrap en el botón dropdown */
.moro-header__right .dropdown .header-block__action-btn::after {
  display: none;
}

/* ---- Wishlist heart icon ---- */

.moro-header__wishlist {
  order: 1;
}
.moro-header__right #_desktop_ps_languageselector,
.moro-header__right #_desktop_ps_currencyselector {
  display: none !important;
}

/* ================================================================
   3. Botón menú mobile (moro-header__menu-toggle)
   ================================================================ */

.moro-header__menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--moro-on-surface);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--moro-font-sans);
  font-size: var(--moro-fs-nav-item);
  font-weight: var(--moro-fw-nav-item);
  line-height: var(--moro-lh-nav-item);
  letter-spacing: var(--moro-ls-nav-item);
  transition: var(--moro-transition-color);
}

.moro-header__menu-toggle:hover,
.moro-header__menu-toggle:focus {
  color: var(--moro-primary);
}

.moro-header__menu-toggle .material-icons {
  font-size: 24px;
}

/* ================================================================
   4. Fila 2 — Nav de categorías (ps_mainmenu output)
   ================================================================ */

.moro-header__nav-wrapper {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

/* Ocultar el nav desktop viejo de ps_mainmenu (dropdown on-hover)
   SOLO cuando el mega menu está activo (módulo instalado).
   Si el módulo no está instalado, el nav viejo sigue visible. */
.moro-header--has-mega-menu .moro-header__nav-wrapper .ps-mainmenu--desktop {
  display: none !important;
}

.moro-header--has-mega-menu .moro-header__nav-wrapper {
  height: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

/* ---- Contenedor del menú desktop ---- */

.moro-header__nav-wrapper .ps-mainmenu {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Top-level category links ===== */

.moro-header__nav-wrapper .ps-mainmenu__tree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.moro-header__nav-wrapper .ps-mainmenu__tree-item-wrapper {
  display: flex;
  align-items: center;
}

.moro-header__nav-wrapper .ps-mainmenu__tree-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  color: var(--moro-on-surface-variant);
  font-family: var(--moro-font-sans);
  font-size: var(--moro-fs-nav-item);
  font-weight: var(--moro-fw-nav-item);
  line-height: var(--moro-lh-nav-item);
  letter-spacing: var(--moro-ls-nav-item);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--moro-transition-color), border-color 300ms ease;
}

.moro-header__nav-wrapper .ps-mainmenu__tree-link:hover,
.moro-header__nav-wrapper .ps-mainmenu__tree-link:focus {
  color: var(--moro-primary);
  border-bottom-color: var(--moro-primary);
}

/* Estado activo / página actual */
.moro-header__nav-wrapper .ps-mainmenu__tree-item.current .ps-mainmenu__tree-link {
  color: var(--moro-primary);
  border-bottom-color: var(--moro-primary);
}

/* ---- Dropdown toggle (caret) ---- */

.moro-header__nav-wrapper .ps-mainmenu__tree-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 4px;
  margin: 0;
  background: transparent;
  border: 0;
  color: var(--moro-on-surface-variant);
  font-size: 14px;
  cursor: pointer;
  transition: var(--moro-transition-color), transform 300ms ease;
}

.moro-header__nav-wrapper .ps-mainmenu__tree-dropdown-toggle:hover {
  color: var(--moro-primary);
}

/* ---- Ocultar dropdown-toggle de Bootstrap ::after ya que ps_mainmenu tiene su propio caret ---- */

.moro-header__nav-wrapper .ps-mainmenu__tree-dropdown-toggle.dropdown-toggle::after {
  display: none;
}

/* ===== Submenu dropdown ===== */

.moro-header__nav-wrapper .submenu {
  background-color: var(--moro-surface);
  border: 1px solid var(--moro-surface-dim);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.moro-header__nav-wrapper .submenu__left-item {
  font-family: var(--moro-font-sans);
  font-size: var(--moro-fs-nav-item);
  font-weight: var(--moro-fw-nav-item);
  color: var(--moro-on-surface-variant);
  transition: var(--moro-transition-color);
}

.moro-header__nav-wrapper .submenu__left-item:hover,
.moro-header__nav-wrapper .submenu__left-item.active {
  color: var(--moro-primary);
}

.moro-header__nav-wrapper .menu-item {
  font-family: var(--moro-font-sans);
  font-size: var(--moro-fs-nav-item);
  font-weight: 400;
  color: var(--moro-on-surface);
  text-decoration: none;
  transition: var(--moro-transition-color);
}

.moro-header__nav-wrapper .menu-item:hover {
  color: var(--moro-primary);
}


/* ================================================================
   5. Ajustes responsive para placeholders #_mobile_*
   ================================================================ */

/* Asegurar que los placeholders mobile de sign-in y cart sean visibles
   solo en viewport < md y ocupen su espacio correctamente */

#_mobile_ps_customersignin,
#_mobile_ps_shoppingcart {
  display: none;
}

@media (max-width: 767.98px) {
  #_mobile_ps_customersignin,
  #_mobile_ps_shoppingcart {
    display: flex;
  }

  #_mobile_ps_customersignin .header-block,
  #_mobile_ps_shoppingcart .header-block {
    display: flex;
    align-items: center;
  }

  #_mobile_ps_customersignin .header-block__action-btn,
  #_mobile_ps_shoppingcart .header-block__action-btn {
    color: var(--moro-on-surface);
    padding: 8px;
    transition: var(--moro-transition-color);
  }

  #_mobile_ps_customersignin .header-block__action-btn:hover,
  #_mobile_ps_shoppingcart .header-block__action-btn:hover {
    color: var(--moro-primary);
  }

  #_mobile_ps_shoppingcart .header-block__badge {
    background-color: var(--moro-primary);
    color: #fff;
  }
}

/* ================================================================
   6. Ajustes displayNav2 utility row (si se inyecta en nav2)
   ================================================================ */

/*
   displayNav2 inyecta ps_languageselector, ps_currencyselector,
   ps_customersignin, ps_shoppingcart.
   Los envolví en .moro-header__right donde ya usamos header-block
   para sign-in y cart. Ocultamos idioma/moneda en §2c.
   Pero si hay otros elementos residuales, los ocultamos también.
*/

/* ================================================================
   7. Full-width hook (displayNavFullWidth → blockreassurance)
   ================================================================ */

.header-nav-full-width {
  background-color: var(--moro-surface-container-low);
  border-bottom: 1px solid var(--moro-surface-dim);
}

/* ================================================================
   8. Search bar — grid animation (desgine/header.html:200-212)
   ================================================================ */

/* Contenedor exterior: CSS Grid para expandir/colapsar altura */

.moro-search-dialog {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  /* minmax(0, …) deja que la fila se achique por debajo del contenido, asi el
     max-height al abrir realmente limita la altura y no clipea el boton. */
  grid-template-rows: minmax(0, 0fr);
  background: var(--moro-surface);
  border-color: var(--moro-surface-dim);
  border-style: solid;
  border-width: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: grid-template-rows 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 768px) {
  .moro-search-dialog {
    padding: 0 64px;
  }
}

/* Wrapper interior: necesario para que grid colapse correctamente */

.moro-search-dialog__grid-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Contenido de la barra: centrado, flex justify-between */

.moro-search-dialog__bar-content {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  flex-shrink: 0;
  transition: all 400ms ease-out 75ms;
}

@media (min-width: 768px) {
  .moro-search-dialog__bar-content {
    padding: 12px 0;
  }
}

/* Estado oculto inicial (fade out + slide up) */

.moro-search-dialog--hidden-content {
  opacity: 0;
  transform: translateY(-8px);
}

/* ---- Abrir: expandir grid + mostrar contenido ---- */

.moro-search-dialog.is-open {
  grid-template-rows: minmax(0, 1fr);
  border-top-width: 1px;
  /* El panel nunca debe superar el alto visible debajo del header; el scroll
     interno del listado (y no la pagina) resuelve el resto. La variable la setea
     moro-search-dialog.js midiendo el header. */
  max-height: calc(100vh - var(--moro-header-offset, 120px));
  max-height: calc(100dvh - var(--moro-header-offset, 120px));
}

.moro-search-dialog.is-open .moro-search-dialog--hidden-content {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Grupo input + icono (izquierda, flex-1) ---- */

.moro-search-dialog__input-group {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ---- Icono lupa ---- */

.moro-search-dialog__search-icon {
  font-size: 24px;
  color: var(--moro-on-surface);
  margin-right: 16px;
  flex-shrink: 0;
}

/* ---- Input ---- */

.moro-search-dialog__input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--moro-font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--moro-on-surface);
  outline: none;
  box-shadow: none;
}

.moro-search-dialog__input::placeholder {
  color: var(--moro-on-surface-variant);
  opacity: 0.3;
  font-family: var(--moro-font-serif);
  font-style: italic;
}

.moro-search-dialog__input::-webkit-search-cancel-button {
  display: none;
}

@media (min-width: 768px) {
  .moro-search-dialog__input {
    font-size: 32px;
  }
}

/* ---- Botón cerrar ---- */

.moro-search-dialog__close {
  margin-left: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--moro-on-surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 300ms ease;
}

.moro-search-dialog__close:hover {
  color: var(--moro-primary);
}

.moro-search-dialog__close .material-icons {
  font-size: 32px;
}

/* ---- Bloquear scroll ---- */

body.moro-search-dialog-open {
  overflow: hidden;
}

/* ================================================================
   9. Mega menu nav — botones de categorías (desktop ≥ xl)
   Copia de desgine/header.html:198-204
   ================================================================ */

.moro-mega-menu-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 48px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.moro-mega-menu-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  border-top: 1px solid var(--moro-surface-dim);
  transform: translateX(-50%);
}

@media (min-width: 1280px) {
  .moro-mega-menu-nav {
    display: flex;
  }
}

.moro-mega-menu-nav__btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0;
  color: var(--moro-on-surface);
  font-family: var(--moro-font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease;
}

.moro-mega-menu-nav__link {
  text-decoration: none;
}

.moro-mega-menu-nav__btn:not(.moro-mega-menu-nav__btn--comet):hover,
.moro-mega-menu-nav__btn:not(.moro-mega-menu-nav__btn--comet)[aria-expanded="true"] {
  border-bottom-color: var(--moro-primary);
}

.moro-mega-menu-nav__btn:not(.moro-mega-menu-nav__btn--color):not(.moro-mega-menu-nav__btn--comet):hover,
.moro-mega-menu-nav__btn:not(.moro-mega-menu-nav__btn--color):not(.moro-mega-menu-nav__btn--comet)[aria-expanded="true"] {
  color: var(--moro-primary);
}

/* Estilos configurables desde el BO (módulo moromegamedia): negrita / mayúscula */
.moro-mega-menu-nav__btn--bold {
  font-weight: 700;
}

.moro-mega-menu-nav__btn--uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Colores configurables desde el BO (módulo moromegamedia) */
.moro-mega-menu-nav__btn--color-static {
  color: var(--moro-menu-c1);
}

.moro-mega-menu-nav__btn--color-anim-2 {
  animation: moro-menu-color-2 6s ease-in-out infinite;
}

.moro-mega-menu-nav__btn--color-anim-3 {
  animation: moro-menu-color-3 9s ease-in-out infinite;
}

.moro-mega-menu-nav__btn--color-speed-fast {
  animation-duration: 4s;
}

.moro-mega-menu-nav__btn--color-speed-medium {
  animation-duration: 6s;
}

.moro-mega-menu-nav__btn--color-speed-slow {
  animation-duration: 9s;
}

@keyframes moro-menu-color-2 {
  0%, 100% { color: var(--moro-menu-c1); }
  50% { color: var(--moro-menu-c2); }
}

@keyframes moro-menu-color-3 {
  0%, 100% { color: var(--moro-menu-c1); }
  33% { color: var(--moro-menu-c2); }
  66% { color: var(--moro-menu-c3); }
}

/* ================================================================
   Efecto cometa — subrayado tipo meteorito (módulo moromegamedia)
   ================================================================ */

.moro-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.moro-menu-item__icon {
  font-size: 14px;
  line-height: 1;
  text-transform: none;
}

.moro-menu-comet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.moro-menu-comet .moro-menu-item__label {
  position: relative;
  display: inline-block;
}

.moro-menu-comet .moro-menu-item__label::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: clamp(32px, 55%, 90px);
  height: 2px;
  background: var(--moro-comet-color, #d46211);
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--moro-comet-color, #d46211) 0%, transparent),
    color-mix(in srgb, var(--moro-comet-color, #d46211) 45%, transparent),
    var(--moro-comet-color, #d46211)
  );
  filter: drop-shadow(0 0 6px var(--moro-comet-color, #d46211));
  animation: moro-meteor-streak 2s linear infinite;
  pointer-events: none;
}

.moro-menu-comet .moro-menu-item__icon {
  color: var(--moro-comet-color, #d46211);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--moro-comet-color, #d46211) 70%, transparent));
  animation: moro-comet-pulse 2s ease-in-out infinite;
}

@keyframes moro-meteor-streak {
  0% {
    left: -50px;
    transform: scaleX(0.2);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: scaleX(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 100%;
    transform: scaleX(0.1);
    opacity: 0;
  }
}

@keyframes moro-comet-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ================================================================
   10. Mega menu panel — grid animation (copia de desgine/header.html:206-211)
   ================================================================ */

.moro-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  background: var(--moro-surface);
  border-color: var(--moro-surface-dim);
  border-style: solid;
  border-width: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: grid-template-rows 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 768px) {
  .moro-mega-menu {
    padding: 0 64px;
  }
}

.moro-mega-menu__grid-inner {
  min-height: 0;
  overflow: hidden;
}

/* Panel activo: grid expande a 1fr + border-top aparece */
.moro-mega-menu.is-open {
  grid-template-rows: 1fr;
}

/* ---- Contenido de cada panel (1 por categoría) ---- */

.moro-mega-menu__panel-content {
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  transition: opacity 400ms ease-out 75ms, transform 400ms ease-out 75ms;
}

.moro-mega-menu--hidden-content {
  opacity: 0;
  transform: translateY(-8px);
}

/* ---- Layout interno del panel: flex-col en mobile, flex-row en md+ ---- */

.moro-mega-menu__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .moro-mega-menu__content {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
  }
}

/* ---- Columna izquierda: links ---- */

.moro-mega-menu__links {
  display: flex;
  gap: 24px;
}

@media (min-width: 768px) {
  .moro-mega-menu__links {
    width: 280px;
    flex-shrink: 0;
    flex-direction: column;
  }
}

.moro-mega-menu__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moro-mega-menu__group-title {
  font-family: var(--moro-font-serif);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--moro-on-surface);
  opacity: 1;
  margin: 0 0 4px 0;
}

.moro-mega-menu__sublink {
  font-family: var(--moro-font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--moro-on-surface-variant);
  text-decoration: none;
  transition: color 300ms ease;
}

.moro-mega-menu__sublink:hover,
.moro-mega-menu__sublink:focus {
  color: var(--moro-primary);
}

.moro-mega-menu__sublink--all {
  color: var(--moro-on-surface);
  font-weight: 400;
}

/* ---- Columna derecha: media (cards con imagen) ---- */

.moro-mega-menu__media {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .moro-mega-menu__media {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 480px;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .moro-mega-menu__media {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    max-width: 720px;
  }
}

.moro-mega-menu__card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.moro-mega-menu__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0 0 12px 0;
}

.moro-mega-menu__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.moro-mega-menu__card:hover .moro-mega-menu__image,
.moro-mega-menu__card:focus-visible .moro-mega-menu__image {
  transform: scale(1.05);
}

.moro-mega-menu__card-label {
  font-family: var(--moro-font-serif, "Newsreader", Georgia, serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: var(--moro-on-surface);
  margin: 0;
  transition: color 300ms ease;
}

.moro-mega-menu__card:hover .moro-mega-menu__card-label,
.moro-mega-menu__card:focus-visible .moro-mega-menu__card-label {
  color: var(--moro-primary);
}

/* ---- Bloquear scroll del body cuando mega menu abierto ---- */

body.moro-mega-menu-open {
  overflow: hidden;
}

/* ================================================================
   7. Correccion breakpoint menu toggle: oculto a 1280px+ (mismo punto que el mega menu nav)
   ================================================================ */

@media (min-width: 1280px) {
  .moro-header__menu-toggle {
    display: none !important;
  }
}

/* ================================================================
   8. Mobile Drawer (moro-mobile-drawer)
   Copia de desgine/header.html:329-350
   ================================================================ */

/* ---- Overlay ---- */

.moro-mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(28, 27, 27, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.moro-mobile-drawer__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Drawer ---- */

.moro-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  height: 100%;
  width: 85%;
  max-width: 380px;
  background: var(--moro-surface);
  transform: translateX(-100%);
  transition: transform 400ms cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
}

.moro-mobile-drawer.is-open {
  transform: translateX(0);
}

/* ---- Header con bot�n cerrar ---- */

.moro-mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 20px;
  border-bottom: 1px solid #b8b3b1;
  flex-shrink: 0;
}

.moro-mobile-drawer__close {
  background: transparent;
  border: 0;
  color: var(--moro-on-surface);
  cursor: pointer;
  padding: 8px;
  transition: color 300ms ease;
}

.moro-mobile-drawer__close:hover {
  color: var(--moro-primary);
}

.moro-mobile-drawer__close .material-symbols-outlined {
  font-size: 24px;
}

/* ---- Contenedor de paneles (main + sub) ---- */

.moro-mobile-drawer__panels {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* ---- Panel principal ---- */

.moro-mobile-drawer__main {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity 350ms ease;
}

.moro-mobile-drawer__main.is-pushed {
  transform: translateX(-30%);
  opacity: 0.4;
  pointer-events: none;
}

/* ---- Lista de categor�as ---- */

.moro-mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.moro-mobile-drawer__item {
  border-bottom: 1px solid #b8b3b1;
  opacity: 0;
  transform: translateY(8px);
}

.moro-mobile-drawer.is-open .moro-mobile-drawer__item {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Links del panel principal ---- */

.moro-mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  color: var(--moro-on-surface);
  font-family: var(--moro-font-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: color 300ms ease;
}

.moro-mobile-drawer__link:not(.moro-mobile-drawer__link--color):not(.moro-mobile-drawer__link--comet):hover,
.moro-mobile-drawer__link:not(.moro-mobile-drawer__link--color):not(.moro-mobile-drawer__link--comet):focus {
  color: var(--moro-primary);
}

/* Estilos configurables desde el BO (módulo moromegamedia): negrita / mayúscula */
.moro-mobile-drawer__link--bold {
  font-weight: 700;
}

.moro-mobile-drawer__link--uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Colores configurables desde el BO (módulo moromegamedia) */
.moro-mobile-drawer__link--color-static {
  color: var(--moro-menu-c1);
}

.moro-mobile-drawer__link--color-anim-2 {
  animation: moro-menu-color-2 6s ease-in-out infinite;
}

.moro-mobile-drawer__link--color-anim-3 {
  animation: moro-menu-color-3 9s ease-in-out infinite;
}

.moro-mobile-drawer__link--color-speed-fast {
  animation-duration: 4s;
}

.moro-mobile-drawer__link--color-speed-medium {
  animation-duration: 6s;
}

.moro-mobile-drawer__link--color-speed-slow {
  animation-duration: 9s;
}

/* Accesibilidad: sin animación si el usuario la redujo */
@media (prefers-reduced-motion: reduce) {
  .moro-mega-menu-nav__btn--color-anim-2,
  .moro-mega-menu-nav__btn--color-anim-3,
  .moro-mobile-drawer__link--color-anim-2,
  .moro-mobile-drawer__link--color-anim-3 {
    animation: none;
    color: var(--moro-menu-c1);
  }

  .moro-menu-comet .moro-menu-item__label::after {
    animation: none;
    left: 0;
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .moro-menu-comet .moro-menu-item__icon {
    animation: none;
  }
}

.moro-mobile-drawer__link .material-symbols-outlined {
  font-size: 18px;
  color: var(--moro-on-surface);
}

/* Icono del ítem (label): hereda el color del texto y no el del chevron */
.moro-mobile-drawer__link .moro-menu-item__icon {
  font-size: 16px;
  color: inherit;
}

.moro-mobile-drawer__link .moro-menu-comet .moro-menu-item__icon {
  color: var(--moro-comet-color, #d46211);
}

/* ---- Sub-panel ---- */

.moro-mobile-drawer__sub {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--moro-surface);
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
}

.moro-mobile-drawer__sub.is-open {
  transform: translateX(0);
}

/* ---- Bot�n volver ---- */

.moro-mobile-drawer__back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b8b3b1;
  color: var(--moro-on-surface);
  font-family: var(--moro-font-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  text-align: left;
  transition: color 300ms ease;
  flex-shrink: 0;
}

.moro-mobile-drawer__back:hover {
  color: var(--moro-primary);
}

.moro-mobile-drawer__back .material-symbols-outlined {
  font-size: 18px;
  color: var(--moro-on-surface);
}

/* ---- Contenido del sub-panel ---- */

.moro-mobile-drawer__sub-content {
  padding: 24px 20px;
  flex: 1;
  overflow-y: auto;
}

.moro-mobile-drawer__sub-group {
  margin-bottom: 32px;
}

.moro-mobile-drawer__sub-group:last-child {
  margin-bottom: 0;
}

.moro-mobile-drawer__sub-group-title {
  font-family: var(--moro-font-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--moro-on-surface-variant);
  margin: 0 0 12px;
  padding: 0;
}

.moro-mobile-drawer__sub-link {
  display: block;
  padding: 8px 0;
  color: var(--moro-on-surface-variant);
  font-family: var(--moro-font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 300ms ease;
}

.moro-mobile-drawer__sub-link:hover,
.moro-mobile-drawer__sub-link:focus {
  color: var(--moro-primary);
}

.moro-mobile-drawer__sub-link--all {
  color: var(--moro-on-surface);
}

/* ---- Im�genes en sub-panel ---- */

.moro-mobile-drawer__sub-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.moro-mobile-drawer__sub-card {
  text-decoration: none;
  display: block;
}

.moro-mobile-drawer__sub-image-wrap {
  overflow: hidden;
}

.moro-mobile-drawer__sub-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.moro-mobile-drawer__sub-card:hover .moro-mobile-drawer__sub-image {
  transform: scale(1.05);
}

.moro-mobile-drawer__sub-card-label {
  font-family: var(--moro-font-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: var(--moro-on-surface);
  margin: 8px 0 0;
  transition: color 300ms ease;
}

.moro-mobile-drawer__sub-card:hover .moro-mobile-drawer__sub-card-label {
  color: var(--moro-primary);
}

/* ---- Scroll lock ---- */

/* ---- Iconos Material Symbols dentro del drawer (fuera del header) ---- */

.moro-mobile-drawer .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Asegurar que [hidden] funcione en el drawer (CSS propio compite con UA stylesheet) */

.moro-mobile-drawer[hidden],
.moro-mobile-drawer__overlay[hidden],
.moro-mobile-drawer__sub[hidden] {
  display: none !important;
}

/* ---- Scroll lock ---- */

body.moro-mobile-drawer-open {
  overflow: hidden;
}

/* ---- Ocultar drawer en desktop ---- */

@media (min-width: 1280px) {
  .moro-mobile-drawer,
  .moro-mobile-drawer__overlay {
    display: none !important;
  }
}


/* ================================================================
   9. Icono wishlist: oculto en responsive (< 1280px). Cart ocupa su lugar.
   ================================================================ */

@media (max-width: 1279.98px) {
  .moro-header__wishlist {
    display: none !important;
  }
}
/* ================================================================
   9. Phone (< 768px): solo cart en header bar. Person y wishlist ocultos.
   ================================================================ */

@media (max-width: 767.98px) {
  .moro-header__wishlist {
    display: none !important;
  }
  #_desktop_ps_customersignin {
    display: none !important;
  }
}
/* ================================================================
   9. Phone (< 768px): solo cart en header bar, nada abajo.
   ================================================================ */

@media (max-width: 767.98px) {
  #_mobile_ps_customersignin,
  .moro-header__wishlist {
    display: none !important;
  }
}

/* ================================================================
   10. Mega menu — tipografía en negrita en mobile y tablet (< 1280px).
   El drawer solo es visible bajo 1280px; en desktop no aplica.
   Se mantiene familia, tamaño, color y espaciado actuales.
   ================================================================ */

@media (max-width: 1279.98px) {
  .moro-mobile-drawer__link,
  .moro-mobile-drawer__back,
  .moro-mobile-drawer__sub-link,
  .moro-mobile-drawer__sub-card-label {
    font-weight: bold;
  }
}

/* Chevron (chevron_right) de los links del drawer: el color ya era el más oscuro
   (--moro-on-surface); se lee "clarito" por el trazo hairline (wght 100) global de
   los iconos. Trazo a wght 300 solo en este icono: presente pero fino, sin ser grueso. */
.moro-mobile-drawer__link .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
