/* Flamasats — tema hijo Classic: identidad + acento y capa visual actualizada */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --flamasats-primary: #002a5a;
  --flamasats-primary-dark: #001a38;
  --flamasats-accent: #feed00;
  --flamasats-accent-text: #002a5a;
  --flamasats-body: #1a1a1a;
  --flamasats-muted: #5c6570;
  --flamasats-transition: 0.15s ease;
  /* Classic usa 0.5s en el desplegable del menú; aquí lo acotamos */
  --flamasats-menu-dropdown: 0.12s ease;
  /* Cabecera sticky (#header): evita que #anclas queden tapadas al hacer scroll */
  --flamasats-header-scroll-offset: 9rem;
  /* Misma opacidad/blur en barra (::before) y en .popover.sub-menu. El blur de la franja no va en
     .header-top sino en ::before, para no anular backdrop-filter en Chrome en el desplegable. */
  --flamasats-glass-bg: rgba(255, 255, 255, 0.88);
  --flamasats-glass-blur: 10px;
  --flamasats-glass-saturate: 1.08;
}

@media (max-width: 767.98px) {
  :root {
    --flamasats-header-scroll-offset: 6.25rem;
  }
}

/* ——— Base ——— */
html {
  font-size: 16px;
  scroll-padding-top: var(--flamasats-header-scroll-offset);
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--flamasats-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Pie pegado al borde inferior cuando el contenido es más bajo que la ventana.
 * Classic envuelve cabecera + #wrapper + footer dentro de <main>.
 */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#wrapper {
  flex: 1 0 auto;
}

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Fondo en la fila .header-top (más abajo) para no tapar con blanco sólido;
     sin blur en #header: evita anidar capas con el .sub-menu en Chrome. */
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Fila logo + menú + buscador: cristal con blur vía ::before (el nodo .header-top sin backdrop-filter) */
#header .header-top {
  position: relative;
  z-index: 0;
  background: transparent;
  -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#header .header-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--flamasats-glass-bg);
  -webkit-backdrop-filter: blur(var(--flamasats-glass-blur)) saturate(var(--flamasats-glass-saturate));
  backdrop-filter: blur(var(--flamasats-glass-blur)) saturate(var(--flamasats-glass-saturate));
}

#header .header-top > .container {
  position: relative;
  z-index: 1;
}

/* Barra superior (contacto, idioma, cuenta, carrito): color corporativo */
#header .header-nav {
  background: var(--flamasats-primary);
  border-bottom: 3px solid var(--flamasats-accent);
}

#header .header-nav,
#header .header-nav a:not(.dropdown-item),
#header .header-nav .expand-more,
#header .header-nav #menu-icon .material-icons {
  color: rgba(255, 255, 255, 0.93) !important;
}

#header .header-nav a:not(.dropdown-item):hover,
#header .header-nav a:not(.dropdown-item):focus,
#header .header-nav .dropdown:hover > a .expand-more {
  color: var(--flamasats-accent) !important;
}

#header .header-nav .material-icons {
  color: rgba(255, 255, 255, 0.9) !important;
}

#header .header-nav .blockcart {
  background: rgba(255, 255, 255, 0.14) !important;
}

#header .header-nav .blockcart a,
#header .header-nav .blockcart .header,
#header .header-nav .cart-preview .shopping-cart,
#header .header-nav .cart-preview i {
  color: rgba(255, 255, 255, 0.95) !important;
}

#header .header-nav .blockcart a:hover {
  color: var(--flamasats-accent) !important;
}

#header .header-nav .cart-preview.active {
  background: var(--flamasats-accent) !important;
}

#header .header-nav .cart-preview.active a,
#header .header-nav .cart-preview.active i,
#header .header-nav .blockcart.active a:hover {
  color: var(--flamasats-accent-text) !important;
}

/* Nombre de cliente logueado (desktop): ancho máximo y ellipsis (ps_customersignin) */
#header .header-nav #_desktop_user_info .user-info a.account {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

#header .header-nav #_desktop_user_info .user-info a.account span.hidden-sm-down {
  display: block;
  min-width: 0;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logo cabecera: helpers.tpl evita width/height vacíos; esto fija altura si el SVG no aporta tamaño y evita flex-shrink a 0 en móvil */
#header .header-top .logo.img-fluid {
  height: 2.25rem;
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
}

@media (max-width: 767.98px) {
  #header .header-top {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  #header .header-top #_mobile_logo {
    min-height: 0;
  }

  #header .header-top .logo.img-fluid {
    height: 2rem;
    max-height: 2rem;
  }

  /* Una sola fila: logo a la izquierda, buscador a la derecha (el cuadro puede encoger) */
  #header .header-top .header-top-right {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  #header .header-top .header-top-right #_mobile_logo {
    flex-shrink: 0;
  }

  #header .header-top .header-top-right > .menu {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #header .header-top .header-top-right #search_widget {
    flex: 1 1 0;
    min-width: 0;
    max-width: 55%;
  }

  #header .header-top .header-top-right #search_widget form input[type="text"] {
    min-width: 0;
  }
}

/* ps_searchbar.css deja margin-bottom en #search_widget por debajo de 768px; solo en cabecera lo quitamos */
#header .header-top #search_widget {
  margin-bottom: 0;
}

/* Buscador del catálogo en cabecera: a la derecha también en anchuras intermedias (float del tema + menú) */
#header .header-top .header-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#header .header-top .header-top-right > .menu {
  margin-right: auto;
}

#header .header-top .header-top-right #search_widget {
  float: none;
  margin-left: auto;
}

/*
 * ps_searchbar: el desplegable del autocompletado lleva .ui-front (z-index: 100 en el tema).
 * Con #header sticky a z-index 1000 el menú queda pintado detrás de la cabecera al hacer scroll.
 */
.ui-autocomplete.searchbar-autocomplete {
  z-index: 1001 !important;
  transition: none !important;
}

@media (min-width: 768px) {
  .ui-autocomplete.searchbar-autocomplete {
    transform: translateY(0.375rem);
  }
}

/*
 * Classic posiciona este popover por JS en mouseenter. Si la pagina carga con
 * el puntero ya encima de INICIO, no hay mouseenter inicial y queda el top: 0
 * heredado de .popover, solapando la cabecera. Este valor es el fallback de
 * escritorio hasta que el JS del tema padre recalcula el top.
 */
@media (min-width: 768px) {
  /* Mismo cristal que .header-top; !important gana a .popover { background: #fff } de Bootstrap */
  #_desktop_top_menu .top-menu[data-depth="0"] > li > .popover.sub-menu {
    top: 100%;
    /* Aire interior del panel; el exceso que venía de .top-menu[data-depth="1"] + enlaces lo afinan las reglas de abajo */
    padding: 15px !important;
    background-color: var(--flamasats-glass-bg) !important;
    background-clip: padding-box;
    -webkit-backdrop-filter: blur(var(--flamasats-glass-blur)) saturate(var(--flamasats-glass-saturate)) !important;
    backdrop-filter: blur(var(--flamasats-glass-blur)) saturate(var(--flamasats-glass-saturate)) !important;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Classic: .top-menu[data-depth="1"]{margin:.625rem} y padding inferior en ul — hueco vacío bajo el listado (Inicio) */
  #_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] {
    margin: 0 !important;
    padding: 0 0.625rem 0 0 !important;
  }

  #_desktop_top_menu .sub-menu .top-menu[data-depth="2"] {
    margin: 0 !important;
    padding: 0 0.625rem 0 0 !important;
  }

  /* Classic: padding inferior en a[data-depth] — quitar solo bajo el último enlace hoja (sin submenú .collapse) */
  #_desktop_top_menu .popover.sub-menu .top-menu[data-depth="1"] > li:last-child:not(:has(> .collapse)) > a,
  #_desktop_top_menu .popover.sub-menu .top-menu[data-depth="2"] > li:last-child:not(:has(> .collapse)) > a {
    padding-bottom: 0 !important;
  }

  /* Classic: .sub-menu tenía transition 0.5s (opacity/visibility) y .collapsing 0.35s (height) */
  #_desktop_top_menu .sub-menu,
  #_desktop_top_menu .top-menu .sub-menu.collapse {
    -webkit-transition: opacity var(--flamasats-menu-dropdown),
      visibility var(--flamasats-menu-dropdown) !important;
    transition: opacity var(--flamasats-menu-dropdown), visibility var(--flamasats-menu-dropdown) !important;
  }

  #_desktop_top_menu .collapsing {
    -webkit-transition-duration: 0.12s !important;
    transition-duration: 0.12s !important;
  }
}

/* Escritorio ancho: último nivel del menú con 9+ ítems en dos columnas (Classic: depth 1 o 2) */
@media (min-width: 992px) {
  #_desktop_top_menu .top-menu[data-depth="2"]:has(> li:nth-child(9)),
  #_desktop_top_menu
    .sub-menu
    .top-menu[data-depth="1"]:has(> li:nth-child(9)):not(:has(ul.top-menu[data-depth="2"])) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    -webkit-column-gap: 1.5rem;
    -moz-column-gap: 1.5rem;
    column-gap: 1.5rem;
    row-gap: 0;
    margin: 0;
    list-style: none;
    -webkit-align-content: start;
    align-content: start;
  }

  #_desktop_top_menu .top-menu[data-depth="2"]:has(> li:nth-child(9)) > li,
  #_desktop_top_menu
    .sub-menu
    .top-menu[data-depth="1"]:has(> li:nth-child(9)):not(:has(ul.top-menu[data-depth="2"]))
    > li {
    float: none !important;
    width: auto !important;
    max-width: none;
    margin: 0;
  }

  /* Menos separación vertical entre filas (Classic usa 0.625rem en .sub-menu li > a) */
  #_desktop_top_menu .top-menu[data-depth="2"]:has(> li:nth-child(9)) > li > a,
  #_desktop_top_menu
    .sub-menu
    .top-menu[data-depth="1"]:has(> li:nth-child(9)):not(:has(ul.top-menu[data-depth="2"]))
    > li
    > a {
    /* Solo vertical: no pisar el padding-left de Classic en [data-depth="2"] */
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
}

/* Listado de subcategorías en página categoría: solo texto (override subcategories.tpl) */
/* Classic usa flex + centrado (pensado para miniaturas); aquí: rejilla alineada a la izquierda. */
#subcategories.flam-subcategories--text-only .subcategories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: start;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
  text-align: left;
}

#subcategories.flam-subcategories--text-only .subcategories-list > li {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none;
  margin: 0 !important;
  text-align: left;
}

#subcategories.flam-subcategories--text-only ul li h5 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  width: 100%;
}

#subcategories.flam-subcategories--text-only ul li .subcategory-name {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ececec;
  border-radius: 4px;
  text-align: left;
  text-transform: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  -webkit-transition: border-color var(--flamasats-transition), color var(--flamasats-transition);
  transition: border-color var(--flamasats-transition), color var(--flamasats-transition);
}

#subcategories.flam-subcategories--text-only ul li:hover .subcategory-name {
  border-color: var(--flamasats-primary);
  color: var(--flamasats-primary) !important;
}

/* Checkout: barra superior blanca y línea corporativa fina abajo */
body#checkout #header .header-top {
  background-color: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-transform: none;
  transform: none;
}

body#checkout #header .header-top::before {
  display: none;
}

body#checkout #header .header-nav {
  background: #fff !important;
  border-bottom: 1px solid var(--flamasats-primary) !important;
}

body#checkout #header .header-nav,
body#checkout #header .header-nav a:not(.dropdown-item),
body#checkout #header .header-nav .expand-more,
body#checkout #header .header-nav #menu-icon .material-icons {
  color: #7a7a7a !important;
}

body#checkout #header .header-nav a:not(.dropdown-item):hover,
body#checkout #header .header-nav a:not(.dropdown-item):focus,
body#checkout #header .header-nav .dropdown:hover > a .expand-more {
  color: var(--flamasats-primary) !important;
}

body#checkout #header .header-nav .material-icons {
  color: #7a7a7a !important;
}

body#checkout #header .header-nav .blockcart {
  background: rgba(0, 42, 90, 0.06) !important;
}

body#checkout #header .header-nav .blockcart a,
body#checkout #header .header-nav .blockcart .header,
body#checkout #header .header-nav .cart-preview .shopping-cart,
body#checkout #header .header-nav .cart-preview i {
  color: #7a7a7a !important;
}

body#checkout #header .header-nav .blockcart a:hover {
  color: var(--flamasats-primary) !important;
}

body#checkout #header .header-nav .cart-preview.active {
  background: var(--flamasats-primary) !important;
}

body#checkout #header .header-nav .cart-preview.active a,
body#checkout #header .header-nav .cart-preview.active i,
body#checkout #header .header-nav .blockcart.active a:hover {
  color: #fff !important;
}

/* Checkout móvil: una sola franja de nav (menú | logo | hook | perfil | carrito); altura fija para que el carrito no “flote” */
@media (max-width: 767.98px) {
  body#checkout #header .header-nav {
    padding: 0 !important;
  }

  body#checkout #header .header-nav .checkout-nav-mobile {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    min-height: 3rem;
    max-height: 3rem;
    box-sizing: border-box;
    text-align: left;
  }

  body#checkout #header .header-nav .checkout-nav-mobile__start {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    flex: 0 1 auto;
    min-width: 0;
  }

  body#checkout #header .header-nav .checkout-nav-mobile-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
  }

  body#checkout #header .header-nav .checkout-nav-mobile-logo:empty {
    display: none;
  }

  body#checkout #header .header-nav .checkout-nav-mobile-logo .logo.img-fluid {
    height: 1.45rem;
    max-height: 1.45rem;
    width: auto;
    max-width: min(130px, 36vw);
    object-fit: contain;
    display: block;
  }

  body#checkout #header .header-nav #menu-icon {
    margin: 0 0 0 0.3rem;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  body#checkout #header .header-nav .checkout-nav-mobile #menu-icon .material-icons {
    line-height: 1;
    font-size: 1.65rem;
    color: var(--flamasats-primary) !important;
  }

  body#checkout #header .header-nav .checkout-nav-mobile__hook {
    flex: 1 1 auto;
    min-width: 0;
    max-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  body#checkout #header .header-nav .checkout-nav-mobile__hook:empty {
    display: none;
  }

  body#checkout #header .header-nav .checkout-nav-mobile__end {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0;
  }

  body#checkout #header .header-nav .checkout-nav-mobile__end .float-xs-right {
    float: none !important;
  }

  body#checkout #header .header-nav .blockcart {
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    padding: 0 0.65rem !important;
    margin-left: 0.5rem;
    margin-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  body#checkout #header .header-nav .blockcart .header {
    margin-top: 0 !important;
  }

  body#checkout #header .header-nav .user-info {
    margin-top: 0 !important;
    margin-left: 0.35rem;
    align-self: center;
  }

  body#checkout #header .header-top.hidden-md-up {
    padding-top: 0;
    padding-bottom: 0;
  }

  body#checkout #header .header-top.hidden-md-up > .container {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Títulos de bloques de producto en home */
.featured-products .products-section-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--flamasats-primary);
}

.product-miniature .product-title a {
  font-weight: 600;
  color: var(--flamasats-body);
}

.product-miniature .product-title a:hover {
  color: var(--flamasats-primary);
}

.btn {
  font-weight: 600;
  transition: background-color var(--flamasats-transition), color var(--flamasats-transition),
    border-color var(--flamasats-transition), box-shadow var(--flamasats-transition);
}

.btn-primary:focus,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 3px rgba(0, 42, 90, 0.25);
}

/* Acento amarillo: CTA secundario (usar clase en HTML/CMS si aplica) */
.btn-flamasats-accent,
.btn-flamasats-accent.disabled,
.btn-flamasats-accent:disabled {
  color: var(--flamasats-accent-text) !important;
  background-color: var(--flamasats-accent) !important;
  border-color: var(--flamasats-accent) !important;
}

.btn-flamasats-accent:hover,
.btn-flamasats-accent:focus,
.btn-flamasats-accent:active {
  color: var(--flamasats-accent-text) !important;
  background-color: #e6d600 !important;
  border-color: #e6d600 !important;
}

.btn-flamasats-accent:focus {
  box-shadow: 0 0 0 3px rgba(254, 237, 0, 0.45);
}

/* Banderolas: novedad en acento, resto en corporativo */
.product-flags li.product-flag.new {
  background: var(--flamasats-accent) !important;
  color: var(--flamasats-accent-text) !important;
  font-weight: 700;
}

/* displayFooterBefore: sin franja gris/blanca artificial (antes era un degradado CSS) */
#footer > .container:first-of-type {
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

/*
 * Classic define #footer con fondo blanco y padding (p. ej. 2.5rem arriba).
 * Eso deja una franja blanca grande entre el #wrapper gris y .footer-container.
 */
footer#footer.js-footer {
  background: transparent !important;
  padding: 0 !important;
  color: inherit;
}

/*
 * Checkout: el pie usa checkout/_partials/footer.tpl (sin .footer-container).
 * Misma línea cromática que el pie principal.
 */
body#checkout footer#footer.js-footer {
  background: linear-gradient(
    165deg,
    var(--flamasats-primary-dark) 0%,
    var(--flamasats-primary) 55%,
    #003366 100%
  ) !important;
  padding: 1.75rem 1rem 1.25rem !important;
  color: rgba(255, 255, 255, 0.92);
}

body#checkout footer#footer .text-sm-center {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

body#checkout footer#footer .text-sm-center a,
body#checkout footer#footer .js-terms a {
  color: rgba(255, 255, 255, 0.9) !important;
}

body#checkout footer#footer .text-sm-center a:hover,
body#checkout footer#footer .js-terms a:hover {
  color: var(--flamasats-accent) !important;
}

body#checkout footer#footer .js-terms {
  color: rgba(255, 255, 255, 0.88);
}

/*
 * Modal de términos (dentro del footer): heredaba color claro del pie sobre fondo blanco.
 */
body#checkout footer#footer .js-checkout-modal .modal-content {
  color: #232323 !important;
  background-color: #fff !important;
}

body#checkout footer#footer .js-checkout-modal .js-modal-content {
  color: #232323 !important;
}

body#checkout footer#footer .js-checkout-modal .js-modal-content *:not(a) {
  color: inherit !important;
}

body#checkout footer#footer .js-checkout-modal .js-modal-content p,
body#checkout footer#footer .js-checkout-modal .js-modal-content li {
  text-align: justify;
  text-justify: inter-word;
}

body#checkout footer#footer .js-checkout-modal .modal-content a {
  color: var(--flamasats-primary) !important;
}

body#checkout footer#footer .js-checkout-modal .modal-content a:hover {
  color: #001f42 !important;
}

body#checkout footer#footer .js-checkout-modal .modal-header .close {
  color: #232323 !important;
  opacity: 0.7;
}

body#checkout footer#footer .js-checkout-modal .modal-header .close:hover {
  opacity: 1;
}

/* Menos hueco gris entre la caja de contenido y el pie */
#wrapper #content {
  margin-bottom: 0;
}

/*
 * ps_contactinfo / .block-contact: Classic fuerza gris (#7a7a7a) y título #232323.
 * Forzar texto e iconos claros dentro del pie (mismo criterio que linklist).
 */
.footer-container .block-contact {
  color: rgba(255, 255, 255, 0.92) !important;
}

.footer-container .block-contact .block-contact-title,
.footer-container .block-contact .h4,
.footer-container .block-contact .title .h3,
.footer-container .block-contact .navbar-toggler .material-icons {
  color: #fff !important;
}

.footer-container .block-contact .block-contact-inner,
.footer-container .block-contact .block-contact-data,
.footer-container .block-contact .block-contact-label,
.footer-container .block-contact .block,
.footer-container .block-contact #contact-infos {
  color: rgba(255, 255, 255, 0.92) !important;
}

.footer-container .block-contact .block-contact-icon .material-icons {
  color: rgba(255, 255, 255, 0.88) !important;
}

.footer-container .block-contact a,
.footer-container .block-contact a:focus {
  color: rgba(255, 255, 255, 0.95) !important;
}

.footer-container .block-contact a:hover {
  color: var(--flamasats-accent) !important;
}

/* Móvil: Classic deja #contact-infos con padding-top: 0; separar un poco del título del desplegable */
@media (max-width: 767.98px) {
  .footer-container .block-contact #contact-infos {
    padding-top: 0.75rem !important;
  }
}

/* Pie oscuro corporativo */
.footer-container {
  background: linear-gradient(
    165deg,
    var(--flamasats-primary-dark) 0%,
    var(--flamasats-primary) 55%,
    #003366 100%
  );
  color: rgba(255, 255, 255, 0.92);
  padding-top: 1.75rem;
  padding-bottom: 1rem;
}

.footer-container .h3,
.footer-container .title .h3 {
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-container .title .material-icons {
  color: rgba(255, 255, 255, 0.85);
}

.footer-container a,
.footer-container a:focus {
  color: rgba(255, 255, 255, 0.88) !important;
}

.footer-container li a:hover,
.footer-container a:hover {
  color: var(--flamasats-accent) !important;
}

/*
 * Móvil (collapse): Classic pone fondo #f6f6f6 en .links ul; con los enlaces del pie
 * en color claro el texto queda ilegible y parece un “parche” sobre el degradado.
 */
.footer-container .links ul {
  background-color: transparent !important;
}

.footer-container .links ul > li {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.footer-container .links .title {
  border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

.footer-container .text-sm-center {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body a.your-acount-footer-header {
  color: rgba(255, 255, 255, 0.95) !important;
}

body a.your-acount-footer-header:hover {
  color: var(--flamasats-accent) !important;
}

/* Redes: hook suele estar en la franja clara sobre el pie */
#footer > .container .block-social ul li {
  background-color: rgba(0, 42, 90, 0.1) !important;
  transition: background-color var(--flamasats-transition);
}

#footer > .container .block-social ul li:hover {
  background-color: var(--flamasats-accent) !important;
}

#footer > .container .block-social ul li:hover a {
  color: var(--flamasats-accent-text) !important;
}

.footer-container .block-social ul li {
  background-color: rgba(255, 255, 255, 0.12) !important;
  transition: background-color var(--flamasats-transition);
}

.footer-container .block-social ul li:hover {
  background-color: var(--flamasats-accent) !important;
}

.footer-container .block-social ul li:hover a,
.footer-container .block-social a:hover {
  color: var(--flamasats-accent-text) !important;
}

/* ——— Color corporativo #002a5a (sustituye #24b9d7 del Classic) ——— */

body a,
body a:hover,
body a:focus {
  color: var(--flamasats-primary);
}

.btn-primary,
.btn-primary:hover,
.btn-primary.disabled,
.btn-primary.disabled:hover,
.btn-primary:disabled,
.btn-primary:disabled:hover {
  background-color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.btn-outline-primary {
  color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  color: #fff !important;
  background-color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.btn-link {
  color: var(--flamasats-primary) !important;
}

.text-primary {
  color: var(--flamasats-primary) !important;
}

.bg-primary {
  background-color: var(--flamasats-primary) !important;
}

.border-primary,
.card-outline-primary {
  border-color: var(--flamasats-primary) !important;
}

.card-primary {
  background-color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
  color: var(--flamasats-primary) !important;
}

.dropdown-item.active,
.dropdown-item.active:focus,
.dropdown-item.active:hover {
  color: #fff !important;
  background-color: var(--flamasats-primary) !important;
}

.nav-pills .nav-link.active {
  background-color: var(--flamasats-primary) !important;
}

.page-link {
  color: var(--flamasats-primary) !important;
}

.page-item.active .page-link {
  background-color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.list-group-item.active {
  background-color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.tag-primary {
  background-color: var(--flamasats-primary) !important;
}

.form-control:focus,
.search-widget form input[type="text"]:focus,
.block_newsletter form input[type="text"]:focus,
.block_newsletter form input[type="email"]:focus,
.product-customization .product-message:focus {
  outline-color: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
}

.input-group.focus {
  outline-color: var(--flamasats-primary) !important;
}

.custom-radio input[type="radio"]:checked + span {
  background-color: var(--flamasats-primary) !important;
}

/* Solo la zona blanca (logo + menú + buscador): enlaces oscuros */
body #header .header-top a {
  color: #232323;
}

body #header .header-top a:hover,
body #header .top-menu a[data-depth="0"]:hover,
body #header .header-top .blockcart a:hover {
  color: var(--flamasats-primary);
}

.block_newsletter form input[type="text"]:focus + button .search,
.btn-unstyle:focus .expand-more,
.search-widget form button[type="submit"] .search:hover,
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i,
.dropdown:hover .expand-more,
.page-my-account #content .links a:hover i,
.top-menu .sub-menu a:hover {
  color: var(--flamasats-primary) !important;
}

.group-span-filestyle .btn-touchspin,
.group-span-filestyle .btn-default,
.brands-sort .select-list:hover,
.products-sort-order .select-list:hover,
.suppliers-sort .select-list:hover,
.facet-dropdown .select-list:hover {
  background: var(--flamasats-primary) !important;
}

.facet-dropdown.open > .select-title {
  border-color: var(--flamasats-primary) !important;
}

body#checkout section.checkout-step .address-item.selected {
  border-color: var(--flamasats-primary) !important;
}

.product-miniature .highlighted-informations .quick-view:hover,
.product-price,
#blockcart-modal .product-name {
  color: var(--flamasats-primary) !important;
}

.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover,
#product-modal .modal-content .modal-body .product-images img:hover,
#subcategories ul li:hover .subcategory-image a {
  border-color: var(--flamasats-primary) !important;
}

.product-flags li.product-flag:not(.new) {
  background: var(--flamasats-primary) !important;
}

/*
 * Cabecera de categoría (listado): Classic fuerza min-height: 13.75rem en escritorio
 * para cuadrar con la imagen; con solo título o descripción corta queda un bloque vacío.
 */
#js-product-list-header .block-category {
  min-height: 0 !important;
}

.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover {
  color: var(--flamasats-primary) !important;
  border-bottom-color: var(--flamasats-primary) !important;
}

.account-list a:hover {
  color: var(--flamasats-primary) !important;
}

.block-promo .promo-input + button {
  border-color: var(--flamasats-primary) !important;
}

.block-promo .promo-code-button.cancel-promo {
  color: var(--flamasats-primary) !important;
}

#subcategories ul li .subcategory-name:hover,
.block-categories .arrows .arrow-down:hover,
.block-categories .arrows .arrow-right:hover,
.block-categories .collapse-icons .add:hover,
.block-categories .collapse-icons .remove:hover,
.cart-grid-body a.label:hover {
  color: var(--flamasats-primary) !important;
}

.blockreassurance_product .item-product svg.replaced-svg path {
  fill: var(--flamasats-primary) !important;
}

a.select-list:hover,
#_desktop_cart a:hover,
.btn-primary:hover {
  color: #e3e3e3 !important;
}

.btn-flamasats-accent:hover,
.footer-container .btn-flamasats-accent:hover {
  color: var(--flamasats-accent-text) !important;
}

/* ——— Paginación: anula .pagination .page-list { background: #fff } de Classic (no la pisábamos al no poner “background” en el hijo) ——— */
#products .pagination,
#js-product-list .pagination {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding: 0.35rem 0;
  background: transparent !important;
  box-shadow: none;
  border: none;
}

#products .pagination [class*="col-"],
#js-product-list .pagination [class*="col-"] {
  background: transparent;
}

#products .pagination .page-list,
#js-product-list .pagination .page-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0.35rem;
  max-width: 100%;
  /* Classic theme.css: .pagination .page-list { background: #fff } */
  background: transparent !important;
  box-shadow: none;
}

#products .pagination .page-list > li,
#js-product-list .pagination .page-list > li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  flex: 0 0 auto;
  background: transparent;
}

#products .pagination .page-list a,
#js-product-list .pagination .page-list a,
#products .pagination .page-list .spacer,
#js-product-list .pagination .page-list .spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0.2rem 0.4rem;
  box-sizing: border-box;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: var(--flamasats-body);
  /* Sin fondo opaco: el “bloque blanco” venía de #fff en cada enlace */
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.2rem;
  transition: color var(--flamasats-transition), background var(--flamasats-transition),
    border-color var(--flamasats-transition);
}

#products .pagination .page-list .spacer,
#js-product-list .pagination .page-list .spacer {
  min-width: 1.1rem;
  color: var(--flamasats-muted);
  background: transparent;
  border: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: default;
}

#products .pagination .page-list a i.material-icons,
#js-product-list .pagination .page-list a i.material-icons {
  font-size: 0.95rem;
  line-height: 1;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0 0.1rem;
  vertical-align: middle;
  flex-shrink: 0;
}

#products .pagination .page-list a:hover:not(.disabled),
#js-product-list .pagination .page-list a:hover:not(.disabled) {
  color: var(--flamasats-primary);
  border-color: rgba(0, 42, 90, 0.35);
  background: rgba(0, 42, 90, 0.06);
}

#products .pagination .page-list a.disabled,
#js-product-list .pagination .page-list a.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

#products .pagination .page-list li.current a,
#js-product-list .pagination .page-list li.current a {
  /* Classic: .pagination .current a { font-size: 1.25rem; color: #24b9d7 } */
  color: #fff !important;
  background: var(--flamasats-primary) !important;
  border-color: var(--flamasats-primary) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: normal !important;
}

#products .pagination .page-list li.current a:hover,
#js-product-list .pagination .page-list li.current a:hover {
  color: #fff !important;
  background: var(--flamasats-primary-dark) !important;
  border-color: var(--flamasats-primary-dark) !important;
}


#products .pagination > div:first-child {
  line-height: 1.50;
}

@media (min-width: 769px) {
  #products .pagination .page-list,
  #js-product-list .pagination .page-list {
    justify-content: right;
  }
}

@media (max-width: 1200px) {
  #products .pagination .page-list a.next,
  #products .pagination .page-list a.previous,
  #js-product-list .pagination .page-list a.next,
  #js-product-list .pagination .page-list a.previous {
    /* Oculta solo el texto, no el icono/hijo */
    font-size: 0;
  }
  #products .pagination .page-list a.next > *,
  #products .pagination .page-list a.previous > *,
  #js-product-list .pagination .page-list a.next > *,
  #js-product-list .pagination .page-list a.previous > * {
    font-size: 1rem;
  }
}
#js-product-list .pagination .page-list .spacer {
  padding: 0.2rem 0.15rem;
}