/* Ferretería Gran Vía - ajustes tema hijo */

/* Logo cabecera escritorio */
.header-bottom__logo {
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-bottom__logo .logo,
.header-bottom__logo img.logo,
.header-bottom__logo img {
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: none !important;
}

/* Logo cabecera móvil */
@media (max-width: 767.98px) {
  .header-bottom__logo .logo,
  .header-bottom__logo img.logo,
  .header-bottom__logo img {
    width: 155px !important;
    max-width: 155px !important;
    height: auto !important;
  }
}

/* Ficha de producto: al quitar el bloque de políticas, usar todo el ancho */
.product__bottom {
  display: block !important;
}

.product__bottom-left {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.product__bottom-right {
  display: none !important;
}

/* Mejor lectura de descripción y características */
.product__accordion,
.product__description,
.js-product-details {
  width: 100% !important;
  max-width: 100% !important;
}

/* Ficha de producto: compactar bloque de imagen principal y miniaturas */
.product__left {
  align-self: flex-start !important;
}

.product__left .product-cover,
.product__left .product__cover,
.product__left .product-cover-thumbnails,
.product__left .images-container {
  margin-bottom: 12px !important;
}

/* Limitar altura visual de la imagen principal en escritorio */
.product__left img,
.product__left .product-cover img,
.product__left .product__cover img,
.product__left .js-qv-product-cover {
  max-height: 520px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Reducir separaciones internas del bloque de miniaturas */
.product__left .product-images,
.product__left .product-thumbnails,
.product__left .thumb-container,
.product__left .js-qv-mask {
  margin-top: 12px !important;
}

/* Miniaturas algo más compactas */
.product__left .thumb,
.product__left .thumb-container img {
  max-height: 90px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Ajuste para pantallas medianas */
@media (max-width: 991.98px) {
  .product__left img,
  .product__left .product-cover img,
  .product__left .product__cover img,
  .product__left .js-qv-product-cover {
    max-height: 420px !important;
  }
}

/* Ajuste para móvil */
@media (max-width: 767.98px) {
  .product__left img,
  .product__left .product-cover img,
  .product__left .product__cover img,
  .product__left .js-qv-product-cover {
    max-height: 340px !important;
  }

  .product__left .product-images,
  .product__left .product-thumbnails,
  .product__left .thumb-container,
  .product__left .js-qv-mask {
    margin-top: 8px !important;
  }
}

/* Ficha de producto: reducir espacio entre imagen principal y miniaturas */
.page-product .product__left .product__carousel,
.page-product .product__left .carousel-inner,
.page-product .product__left .carousel-item,
.page-product .product__left .product-cover {
  max-height: 470px !important;
}

.page-product .product__left .carousel-item {
  text-align: center !important;
}

.page-product .product__left .product-cover {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-product .product__left .js-qv-product-cover {
  max-height: 460px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Acercar miniaturas a la imagen principal */
.page-product .product__thumbnails {
  margin-top: 10px !important;
}

.page-product .product__thumbnails-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Miniaturas proporcionadas */
.page-product .product__thumbnail-image {
  max-height: 88px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Ajuste para pantallas medianas */
@media (max-width: 991.98px) {
  .page-product .product__left .product__carousel,
  .page-product .product__left .carousel-inner,
  .page-product .product__left .carousel-item,
  .page-product .product__left .product-cover {
    max-height: 400px !important;
  }

  .page-product .product__left .js-qv-product-cover {
    max-height: 390px !important;
  }
}

/* Ficha de producto: evitar que imágenes verticales queden cortadas */
.page-product .product__left .product__carousel,
.page-product .product__left .carousel-inner,
.page-product .product__left .carousel-item,
.page-product .product__left .product-cover {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.page-product .product__left .product-cover {
  min-height: 0 !important;
}

.page-product .product__left .js-qv-product-cover {
  max-height: 500px !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Página de marca: descripción corta arriba y descripción larga después de productos */
.manufacturer__short-description {
  margin-bottom: 1.5rem;
}

.manufacturer__long-description {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Página general de marcas: /marcas */
.brands-page-intro {
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.brands-page-intro p {
  margin-bottom: 0;
}

.brands-page-description {
  margin-top: 2.5rem;
  max-width: 1000px;
}

.brands-page-description h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.brands-page-description p {
  margin-bottom: 1rem;
}

/* Página de novedades: /novedades */
.listing-page-intro--new-products {
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.listing-page-intro--new-products p {
  margin-bottom: 0;
}

.listing-page-description--new-products {
  margin-top: 2.5rem;
  max-width: 1000px;
}

.listing-page-description--new-products h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.listing-page-description--new-products p {
  margin-bottom: 1rem;
}
/* ==========================================================
   Accesibilidad: avisos amarillos de disponibilidad de producto
   Corrige contraste insuficiente detectado por PageSpeed
   ========================================================== */

#product .product__availability-status.text-warning,
#product .product__availability-status.text-warning *,
.product__availability .product__availability-status.text-warning,
.product__availability .product__availability-status.text-warning * {
  color: #B71C1C !important;
  fill: #B71C1C !important;
  font-weight: 600;
}
/* Accesibilidad: estructura correcta de miniaturas de producto */
.product__thumbnails-list {
  list-style: none;
  padding-left: 0;
}

.product__thumbnail-item {
  margin: 0;
  padding: 0;
}

/* ==========================================================
   Home Ferretería Gran Vía - bloque principal ligero
   ========================================================== */

.fgv-home-hero {
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 55%, #f1f1f1 100%);
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  margin: 0 0 2rem 0;
  padding: 2rem 1.25rem;
}

.fgv-home-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.fgv-home-hero__eyebrow {
  color: #B71C1C;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.fgv-home-hero h1 {
  color: #222;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.fgv-home-hero__text {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 1.5rem auto;
  max-width: 720px;
}

.fgv-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .fgv-home-hero {
    border-radius: 14px;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .fgv-home-hero__text {
    font-size: 1rem;
  }

  .fgv-home-hero__actions .btn {
    width: 100%;
  }
}

/* ==========================================================
   Home hero con imagen de fondo cocina
   ========================================================== */

.fgv-home-hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.28)
    ),
    url("../img/fgv-hero-cocina.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.fgv-home-hero__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 575.98px) {
  .fgv-home-hero {
    min-height: 300px;
    background-position: center;
  }
}

/* ==========================================================
   Home - categorías principales
   ========================================================== */

.fgv-home-categories {
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.fgv-home-categories__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.fgv-home-categories h2 {
  color: #222;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .4rem;
  text-align: center;
}

.fgv-home-categories__intro {
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

.fgv-home-categories__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fgv-home-category-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  color: #222;
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 92px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.fgv-home-category-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  color: #0d6efd;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .fgv-home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fgv-home-category-card {
    min-height: 82px;
  }
}

/* FGV - Estilo limpio para páginas CMS legales */
.fgv-legal {
  max-width: 1100px;
  line-height: 1.65;
  font-size: 16px;
}

.fgv-legal h2 {
  color: #0056b3;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid #b7cfee;
}

.fgv-legal h3 {
  color: #0056b3;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}

.fgv-legal p {
  margin-bottom: 1rem;
}

.fgv-legal ul {
  margin-top: .75rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.fgv-legal li {
  margin-bottom: .55rem;
}

/* Título principal de las páginas CMS */
.page-cms h1,
.page-cms .page-title,
.cms-page h1 {
  color: #0056b3;
  font-weight: 700;
}

/* ==========================================================
   Cabecera Ferretería Gran Vía - diseño superior + categorías
   ========================================================== */

.fgv-header-main {
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
}

.fgv-header-main__row {
  min-height: 74px;
}

.fgv-header-main__logo {
  margin-right: 1rem;
}

.fgv-header-main__contact {
  color: #222;
  font-size: .95rem;
  white-space: nowrap;
}

.fgv-header-main__search {
  justify-content: center;
}

.fgv-header-main__search .ps-searchbar {
  max-width: 430px;
  width: 100%;
}

.fgv-header-main__account {
  align-items: center;
  gap: .75rem;
  justify-content: flex-end;
}

.fgv-header-main__account .header-block__action-btn {
  color: #111;
  font-weight: 500;
  text-decoration: none;
}

.fgv-header-categories {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: .55rem 0;
}

.fgv-header-categories .ps-mainmenu {
  width: 100%;
}

.fgv-header-categories .ps-mainmenu__desktop {
  width: 100%;
}

.fgv-header-categories .ps-mainmenu__tree {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.fgv-header-categories .ps-mainmenu__tree-item {
  margin: 0;
}

.fgv-header-categories .ps-mainmenu__tree-item-wrapper {
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  padding: .15rem .55rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.fgv-header-categories .ps-mainmenu__tree-link {
  color: #222;
  font-weight: 600;
  padding: .35rem .25rem;
  text-decoration: none;
}

.fgv-header-categories .ps-mainmenu__tree-dropdown-toggle {
  color: #222;
}

.fgv-header-categories .ps-mainmenu__tree-item-wrapper:hover {
  background: #f7f9ff;
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.fgv-header-categories .ps-mainmenu__tree-item-wrapper:hover .ps-mainmenu__tree-link {
  color: #0d6efd;
}

@media (max-width: 991.98px) {
  .fgv-header-main__row {
    min-height: 64px;
  }
}

@media (max-width: 767.98px) {
  .fgv-header-categories {
    display: none;
  }
}


/* ==========================================================
   Cabecera compacta - ajuste de alturas
   ========================================================== */

.fgv-header-main__row {
  min-height: 54px !important;
}

.fgv-header-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.fgv-header-main__logo {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.fgv-header-main__contact,
.fgv-header-main__account {
  font-size: .9rem;
}

.fgv-header-main__search .ps-searchbar__form {
  min-height: 34px;
}

.fgv-header-main__search .ps-searchbar__input {
  min-height: 34px;
  padding-top: .35rem;
  padding-bottom: .35rem;
}

.fgv-header-categories {
  padding: .25rem 0 !important;
}

.fgv-header-categories .ps-mainmenu__tree {
  gap: .35rem;
}

.fgv-header-categories .ps-mainmenu__tree-item-wrapper {
  padding: .05rem .45rem !important;
}

.fgv-header-categories .ps-mainmenu__tree-link {
  font-size: .9rem;
  padding: .22rem .2rem !important;
}

.fgv-header-categories .ps-mainmenu__tree-dropdown-toggle {
  padding-top: .2rem !important;
  padding-bottom: .2rem !important;
}


/* Ajuste fino: botones de categorías un poco más anchos */
.fgv-header-categories .ps-mainmenu__tree-item-wrapper {
  padding-left: .75rem !important;
  padding-right: .75rem !important;
}

.fgv-header-categories .ps-mainmenu__tree-link {
  padding-left: .35rem !important;
  padding-right: .35rem !important;
}


/* Ajuste fino: fila de categorías un poco más ancha */
.fgv-header-categories .container-md {
  max-width: 1180px !important;
}


/* Ajuste fino: un poco más de altura en la fila de categorías */
.fgv-header-categories {
  padding-top: .38rem !important;
  padding-bottom: .38rem !important;
}

.fgv-header-categories .ps-mainmenu__tree-item-wrapper {
  padding-top: .12rem !important;
  padding-bottom: .12rem !important;
}

.fgv-header-categories .ps-mainmenu__tree-link {
  padding-top: .32rem !important;
  padding-bottom: .32rem !important;
}


/* Ajuste fino: menú alineado con el inicio del logo y más ancho hacia la derecha */
@media (min-width: 768px) {
  .fgv-header-categories .container-md {
    max-width: none !important;
    width: auto !important;
    margin-left: calc((100vw - 960px) / 2) !important;
    margin-right: 1rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (min-width: 1200px) {
  .fgv-header-categories .container-md {
    margin-left: calc((100vw - 960px) / 2) !important;
  }
}


/* Ajuste fino: alinear fila de categorías con el logo */
@media (min-width: 768px) {
  .fgv-header-categories .container-md {
    max-width: 980px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .fgv-header-categories .ps-mainmenu {
    width: 100% !important;
  }

  .fgv-header-categories .ps-mainmenu__tree {
    justify-content: flex-start !important;
  }
}


/* Ajuste fino: desplazar menú de categorías hacia el inicio del logo */
@media (min-width: 768px) {
  .fgv-header-categories .ps-mainmenu {
    margin-left: -130px !important;
  }

  .fgv-header-categories .ps-mainmenu__tree {
    justify-content: flex-start !important;
  }
}


/* Ajuste fino: intentar mantener categorías en una sola línea en escritorio */
@media (min-width: 1200px) {
  .fgv-header-categories .container-md {
    max-width: none !important;
    width: calc(100% - 360px) !important;
    margin-left: 320px !important;
    margin-right: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .fgv-header-categories .ps-mainmenu {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .fgv-header-categories .ps-mainmenu__tree {
    flex-wrap: nowrap !important;
    gap: .35rem !important;
  }

  .fgv-header-categories .ps-mainmenu__tree-item-wrapper {
    padding-left: .55rem !important;
    padding-right: .55rem !important;
  }

  .fgv-header-categories .ps-mainmenu__tree-link {
    font-size: .88rem !important;
    padding-left: .22rem !important;
    padding-right: .22rem !important;
    white-space: nowrap !important;
  }
}


/* ==========================================================
   Home - imágenes de fondo en categorías principales
   ========================================================== */

.fgv-home-category-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: #dddddd;
}

.fgv-home-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .62);
  z-index: 0;
  transition: background .15s ease;
}

.fgv-home-category-card span {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .78);
  border-radius: 999px;
  color: #111;
  padding: .35rem .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.fgv-home-category-card:hover::before {
  background: rgba(255, 255, 255, .48);
}

.fgv-home-category-card:hover span {
  color: #0d6efd;
}

.fgv-cat-menaje {
  background-image: url("../img/categorias/cat-menaje.jpg");
}

.fgv-cat-jardin {
  background-image: url("../img/categorias/cat-jardin.jpg");
}

.fgv-cat-pintura {
  background-image: url("../img/categorias/cat-pintura.jpg");
}

.fgv-cat-coccion {
  background-image: url("../img/categorias/cat-coccion.jpg");
}

.fgv-cat-sartenes {
  background-image: url("../img/categorias/cat-sartenes.jpg");
}

.fgv-cat-ollas {
  background-image: url("../img/categorias/cat-ollas.jpg");
}

@media (max-width: 767.98px) {
  .fgv-home-category-card {
    min-height: 100px;
  }

  .fgv-home-category-card span {
    padding: .3rem .65rem;
  }
}


/* Ajuste fino: texto de categorías más integrado y translúcido */
.fgv-home-category-card::before {
  background: rgba(255, 255, 255, .48) !important;
}

.fgv-home-category-card span {
  background: rgba(255, 255, 255, .54) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, .45);
}

.fgv-home-category-card:hover::before {
  background: rgba(255, 255, 255, .36) !important;
}

.fgv-home-category-card:hover span {
  background: rgba(255, 255, 255, .62) !important;
}


/* Ajuste fino: óvalo del texto de categorías más transparente */
.fgv-home-category-card span {
  background: rgba(255, 255, 255, .40) !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
}

.fgv-home-category-card:hover span {
  background: rgba(255, 255, 255, .50) !important;
}

/* FGV - iconos/formas de pago en footer */
.fgv-footer-payments {
  margin: 2rem 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.fgv-footer-payments__title {
  margin-bottom: .75rem;
  font-weight: 700;
  color: #fff;
}

.fgv-footer-payments__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.fgv-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 .85rem;
  border-radius: 6px;
  background: #fff;
  color: #1d2327;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.fgv-pay-badge--visa {
  color: #1434cb;
  letter-spacing: .04em;
}

.fgv-pay-badge--mastercard {
  color: #222;
}

.fgv-pay-badge--paypal {
  color: #003087;
}

.fgv-footer-payments__secure {
  margin-top: .65rem;
  font-size: .85rem;
  color: rgba(255,255,255,.78);
}


/* FGV - Hero visual para categorías con imagen de portada */
.fgv-category-hero {
  position: relative;
  min-height: 240px;
  margin: 0 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.fgv-category-hero__overlay {
  min-height: 240px;
  display: flex;
  align-items: center;
  padding: 2.25rem;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 48%, rgba(255,255,255,.35) 100%);
}

.fgv-category-hero__content {
  max-width: 760px;
}

.fgv-category-hero .page-title-section,
.fgv-category-hero .page-title-section__title,
.fgv-category-hero h1 {
  margin-top: 0;
  margin-bottom: .75rem;
}

.fgv-category-hero__description h2 {
  margin-top: 0;
  margin-bottom: .75rem;
  font-size: 1.5rem;
}

.fgv-category-hero__description p:last-child {
  margin-bottom: 0;
}

.category__additional-description {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

@media (max-width: 767px) {
  .fgv-category-hero {
    min-height: 190px;
    border-radius: 10px;
  }

  .fgv-category-hero__overlay {
    min-height: 190px;
    padding: 1.25rem;
    background: rgba(255,255,255,.86);
  }

  .fgv-category-hero__description h2 {
    font-size: 1.25rem;
  }
}

/* FGV - Ajuste visual hero categorías */
.fgv-category-hero {
  min-height: 285px;
  margin: 0 0 2.25rem;
  border-radius: 14px;
  background-position: center center;
}

.fgv-category-hero__overlay {
  min-height: 285px;
  padding: 2.75rem 3.25rem;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.94) 0%,
    rgba(255,255,255,.86) 45%,
    rgba(255,255,255,.42) 100%
  );
}

.fgv-category-hero__content {
  max-width: 820px;
  padding-left: .75rem;
}

.fgv-category-hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
}

.fgv-category-hero__description h2 {
  font-size: 1.55rem;
  line-height: 1.25;
}

.fgv-category-hero__description p {
  font-size: 1.02rem;
  line-height: 1.55;
}

/* En pantallas grandes, el hero gana presencia dentro de la zona central */
@media (min-width: 992px) {
  .fgv-category-hero {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (max-width: 767px) {
  .fgv-category-hero {
    min-height: 230px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .fgv-category-hero__overlay {
    min-height: 230px;
    padding: 1.5rem;
    background: rgba(255,255,255,.88);
  }

  .fgv-category-hero__content {
    padding-left: 0;
  }

  .fgv-category-hero h1 {
    font-size: 1.8rem;
  }

  .fgv-category-hero__description h2 {
    font-size: 1.25rem;
  }
}

/* FGV - Franja superior suave para menú de categorías */
.fgv-header-categories {
  background: #f3f6fb;
  border-top: 1px solid #e3e8f2;
  border-bottom: 1px solid #dbe3ef;
  padding: .45rem 0;
}

/* Botón/desplegable de categoría dentro de la franja */
.fgv-header-categories .ps-mainmenu__desktop,
.fgv-header-categories .ps-mainmenu,
.fgv-header-categories .dropdown,
.fgv-header-categories button,
.fgv-header-categories .btn {
  margin-bottom: 0;
}

/* Enlaces y botones del menú principal de categorías */
.fgv-header-categories a,
.fgv-header-categories button {
  color: #1b2f6b;
}

/* Caja del selector para que destaque un poco sobre la franja */
.fgv-header-categories .dropdown-toggle,
.fgv-header-categories .ps-mainmenu__item-link,
.fgv-header-categories .ps-mainmenu__link {
  background: #ffffff;
  border: 1px solid #d9e1ef;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

/* Móvil: mantenerlo discreto */
@media (max-width: 767px) {
  .fgv-header-categories {
    padding: .35rem 0;
  }
}

/* FGV - Ocultar flecha del selector de categorías superior */
.fgv-header-categories .dropdown-toggle::after,
.fgv-header-categories button::after,
.fgv-header-categories .ps-mainmenu__item-link::after,
.fgv-header-categories .ps-mainmenu__link::after {
  display: none !important;
}

.fgv-header-categories .dropdown-toggle,
.fgv-header-categories button {
  padding-right: 1rem;
}

/* FGV - Menú superior de categorías como texto, sin óvalo */
.fgv-header-categories .dropdown-toggle,
.fgv-header-categories .ps-mainmenu__item-link,
.fgv-header-categories .ps-mainmenu__link,
.fgv-header-categories button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Quitar resto visual de flecha/indicador */
.fgv-header-categories .dropdown-toggle::after,
.fgv-header-categories button::after,
.fgv-header-categories .ps-mainmenu__item-link::after,
.fgv-header-categories .ps-mainmenu__link::after {
  display: none !important;
  content: none !important;
}

/* Mantener solo texto limpio */
.fgv-header-categories a,
.fgv-header-categories button {
  font-weight: 600;
  color: #1b2f6b !important;
  text-decoration: none;
}

/* Hover suave, sin botón */
.fgv-header-categories a:hover,
.fgv-header-categories button:hover {
  color: #0045c7 !important;
  text-decoration: underline;
}

/* FGV - Categorías: sin columna izquierda fija */
body#category #left-column,
body.page-category #left-column {
  display: none !important;
}

body#category #center-column,
body.page-category #center-column {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* FGV - Hero de categoría a ancho completo, estilo home */
body#category .fgv-category-hero,
body.page-category .fgv-category-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  min-height: 260px;
  margin-bottom: 2.25rem;
  background-position: center center;
  background-size: cover;
}

body#category .fgv-category-hero__overlay,
body.page-category .fgv-category-hero__overlay {
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.92) 0%,
    rgba(255,255,255,.82) 42%,
    rgba(255,255,255,.40) 72%,
    rgba(255,255,255,.18) 100%
  );
}

body#category .fgv-category-hero__content,
body.page-category .fgv-category-hero__content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

body#category .fgv-category-hero h1,
body.page-category .fgv-category-hero h1 {
  margin-top: 0;
  margin-bottom: .6rem;
  font-size: 2.35rem;
  line-height: 1.15;
}

body#category .fgv-category-hero__description,
body.page-category .fgv-category-hero__description {
  max-width: 760px;
}

body#category .fgv-category-hero__description h2,
body.page-category .fgv-category-hero__description h2 {
  margin-top: 0;
  margin-bottom: .75rem;
  font-size: 1.55rem;
  line-height: 1.25;
}

body#category .fgv-category-hero__description p,
body.page-category .fgv-category-hero__description p {
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Descripción SEO inferior */
body#category .category__additional-description,
body.page-category .category__additional-description {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

@media (max-width: 767px) {
  body#category .fgv-category-hero,
  body.page-category .fgv-category-hero {
    min-height: 220px;
  }

  body#category .fgv-category-hero__overlay,
  body.page-category .fgv-category-hero__overlay {
    min-height: 220px;
    padding: 1.5rem 0;
    background: rgba(255,255,255,.86);
  }

  body#category .fgv-category-hero h1,
  body.page-category .fgv-category-hero h1 {
    font-size: 1.85rem;
  }

  body#category .fgv-category-hero__description h2,
  body.page-category .fgv-category-hero__description h2 {
    font-size: 1.25rem;
  }
}

/* FGV - Hero categoría centrado, estilo home */
body#category .fgv-category-hero__overlay,
body.page-category .fgv-category-hero__overlay {
  justify-content: center;
  text-align: center;
}

body#category .fgv-category-hero__content,
body.page-category .fgv-category-hero__content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

body#category .fgv-category-hero__description,
body.page-category .fgv-category-hero__description {
  max-width: 820px;
  margin: 0 auto;
}

body#category .fgv-category-hero__description p,
body.page-category .fgv-category-hero__description p {
  margin-left: auto;
  margin-right: auto;
}

/* FGV - Rejilla de productos en categorías: 4 por fila en escritorio */
@media (min-width: 1200px) {
  body#category #js-product-list .products,
  body.page-category #js-product-list .products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.75rem;
    align-items: start;
  }

  body#category #js-product-list .product-miniature,
  body.page-category #js-product-list .product-miniature {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
  }
}

/* 3 por fila en tablet / portátil */
@media (min-width: 768px) and (max-width: 1199px) {
  body#category #js-product-list .products,
  body.page-category #js-product-list .products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
    align-items: start;
  }

  body#category #js-product-list .product-miniature,
  body.page-category #js-product-list .product-miniature {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
  }
}

/* 2 por fila en móvil */
@media (max-width: 767px) {
  body#category #js-product-list .products,
  body.page-category #js-product-list .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    align-items: start;
  }

  body#category #js-product-list .product-miniature,
  body.page-category #js-product-list .product-miniature {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
  }
}

/* 1 por fila en móvil muy estrecho */
@media (max-width: 420px) {
  body#category #js-product-list .products,
  body.page-category #js-product-list .products {
    grid-template-columns: 1fr;
  }
}

/* FGV - Categorías sin imagen: cabecera centrada */
body#category .category__header,
body.page-category .category__header {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1rem .5rem;
}

body#category .category__header .category__description,
body.page-category .category__header .category__description {
  max-width: 920px;
  margin: 0 auto;
}

body#category .category__header .category__description p,
body.page-category .category__header .category__description p {
  margin-left: auto;
  margin-right: auto;
}
