/**
 * Tema hijo: estructura tipo portal (home en bloques, ficha producto en 2 columnas con tarjeta).
 * La referencia PMFarma era solo de MAQUETACIÓN (rejilla / bloques), no de colores corporativos.
 * Colores: neutros + acento verde acorde al logo Farmadescanso.
 */
:root {
  --fd-page-bg: #f2f2f2;
  --fd-card: #ffffff;
  --fd-border: #e4e4e4;
  --fd-text: #333333;
  --fd-muted: #767676;
  --fd-heading: #1e3d2f;
  --fd-heading-soft: #2d4a3e;
  --fd-accent: #2f6f4e;
  --fd-accent-hover: #256042;
  --fd-accent-dark: #1b4332;
  --fd-link: #2a7d54;
  --fd-highlight: #7cb342;
  --fd-radius: 10px;
  --fd-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
  --fd-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fd-font-product: "Poppins", var(--fd-font);
  --fd-footer-top: #2f6f4e;
  --fd-footer-bottom: #1b4332;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fd-font);
  color: var(--fd-text);
  background-color: var(--fd-page-bg) !important;
}

#wrapper {
  background-color: var(--fd-page-bg);
}

/* ——— Cabecera: contenedor en bloque ——— */
#header {
  background: var(--fd-card);
  box-shadow: var(--fd-shadow);
  border-bottom: 1px solid var(--fd-border);
}

#header .header-nav,
#header .header-top {
  background: var(--fd-card) !important;
}

#header .header-nav {
  border-bottom: 1px solid var(--fd-border);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

#header .header-top {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ——— Home (índice): módulos como bloques tipo portal ——— */
body#index #main {
  padding-top: 0.25rem;
}

/* Carrusel / slider superior */
body#index #wrapper .carousel {
  border-radius: var(--fd-radius);
  overflow: hidden;
  box-shadow: var(--fd-shadow);
  border: 1px solid var(--fd-border);
  background: var(--fd-card);
}

/* Bloque de texto personalizado (ps_customtext) */
body#index #custom-text {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Sección productos destacados / listados en portada */
body#index section.featured-products,
body#index .featured-products {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

body#index section.featured-products .products-section-title,
body#index .featured-products .products-section-title {
  color: var(--fd-heading);
  font-weight: 700;
}

/* Separación entre bloques enganchados en displayHome (contenedores directos habituales) */
body#index #main > * {
  margin-bottom: 1.5rem;
}

body#index #main > *:last-child {
  margin-bottom: 0;
}

/* ——— Contenido general (tarjetas) ——— */
#main .page-content.card,
#main #content.page-content.card {
  background: var(--fd-card);
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
}

.page-header h1,
.page-header .h1 {
  color: var(--fd-heading);
  font-weight: 700;
  font-size: 1.65rem;
}

.breadcrumb {
  background: transparent;
  padding-left: 0;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--fd-link);
}

.breadcrumb a:hover {
  color: var(--fd-accent-dark);
}

/* ——— Listados / miniaturas ——— */
.product-miniature {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-miniature:hover {
  box-shadow: 0 4px 14px rgba(47, 111, 78, 0.15);
  transform: translateY(-2px);
}

.product-miniature .product-title a {
  color: var(--fd-heading-soft);
  font-weight: 600;
}

.product-miniature .product-title a:hover {
  color: var(--fd-accent);
}

.product-price,
.product-miniature .price {
  color: var(--fd-heading);
  font-weight: 700;
}

/* ——— Ficha de producto: tarjeta + dos columnas ——— */
#main:has(.js-product-container) {
  font-family: var(--fd-font-product);
}

.product-container.js-product-container {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .product-container.js-product-container > .row:first-child > .col-md-6:first-child {
    border-right: 1px solid var(--fd-border);
    padding-right: 1.5rem;
  }

  .product-container.js-product-container > .row:first-child > .col-md-6:last-child {
    padding-left: 1.5rem;
  }
}

.product-container.js-product-container #content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#main:has(.js-product-container) h1.h1 {
  color: var(--fd-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

#main:has(.js-product-container) .product-information {
  color: var(--fd-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

#main:has(.js-product-container) .product-prices {
  margin-bottom: 1.25rem;
}

#main:has(.js-product-container) .current-price {
  color: var(--fd-heading);
  font-weight: 800;
  font-size: 1.85rem;
}

#main:has(.js-product-container) .product-discount .regular-price {
  color: var(--fd-muted);
}

#main:has(.js-product-container) .product-actions .add-to-cart,
#main:has(.js-product-container) .product-add-to-cart .btn-primary {
  background-color: var(--fd-accent);
  border-color: var(--fd-accent);
  border-radius: var(--fd-radius);
  font-weight: 700;
  text-transform: none;
  padding: 0.65rem 1.5rem;
  letter-spacing: 0.02em;
}

#main:has(.js-product-container) .product-actions .add-to-cart:hover,
#main:has(.js-product-container) .product-add-to-cart .btn-primary:hover {
  background-color: var(--fd-accent-hover);
  border-color: var(--fd-accent-hover);
}

#main:has(.js-product-container) .input-group.bootstrap-touchspin {
  border-radius: var(--fd-radius);
  overflow: hidden;
  border: 1px solid var(--fd-border);
}

#main:has(.js-product-container) .nav-tabs {
  border-bottom: 2px solid var(--fd-border);
}

#main:has(.js-product-container) .nav-tabs .nav-link {
  color: var(--fd-heading-soft);
  font-weight: 600;
  border: none;
  border-radius: var(--fd-radius) var(--fd-radius) 0 0;
}

#main:has(.js-product-container) .nav-tabs .nav-link.active {
  color: var(--fd-accent);
  border-bottom: 3px solid var(--fd-highlight);
  background: transparent;
}

/* Categorías → logo marca → compartir (bajo resumen) */
.product-brand-categories {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--fd-border);
}

.product-brand-categories__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.product-brand-categories__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fd-muted);
}

.product-brand-categories__value a,
.product-brand-categories__cat-link {
  color: var(--fd-link);
  font-weight: 600;
}

.product-brand-categories__value--multi {
  line-height: 1.55;
}

.product-brand-categories__sep {
  color: var(--fd-muted);
  font-weight: 400;
  padding: 0 0.15em;
}

.product-brand-categories__brand--logo-only {
  margin: 0;
  padding: 0;
}

.product-brand-categories__brand--logo-only .product-brand-categories__brand-link {
  display: inline-block;
  line-height: 0;
}

.product-brand-categories__logo {
  max-height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

#main:has(.js-product-container) .product-information > .product-additional-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fd-border);
}

/* Bloques anchos bajo la galería (descripción, relacionados, comentarios): padding + sin márgenes negativos de .row */
#main:has(.js-product-container) .product-description-fullwidth.row,
#main:has(.js-product-container) .product-accessories-fullwidth.row,
#main:has(.js-product-container) .product-extra-content-fullwidth.row {
  margin-left: 0;
  margin-right: 0;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border-top: 1px solid var(--fd-border);
}

#main:has(.js-product-container) .product-description-fullwidth.row {
  margin-top: 0.5rem;
}

#main:has(.js-product-container) .product-accessories-fullwidth .product-accessories .h5,
#main:has(.js-product-container) .product-accessories-fullwidth .product-accessories .products-section-title {
  color: var(--fd-heading);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  #main:has(.js-product-container) .product-description-fullwidth.row,
  #main:has(.js-product-container) .product-accessories-fullwidth.row,
  #main:has(.js-product-container) .product-extra-content-fullwidth.row {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
  }
}

/* El padding lo lleva la fila; la col-12 no suma otro gutter */
#main:has(.js-product-container) .product-description-fullwidth.row > [class*="col-"],
#main:has(.js-product-container) .product-accessories-fullwidth.row > [class*="col-"],
#main:has(.js-product-container) .product-extra-content-fullwidth.row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

#main:has(.js-product-container) .product-description--below {
  color: var(--fd-text);
  font-size: 1rem;
  line-height: 1.65;
}

#main:has(.js-product-container) .product-description--below h2,
#main:has(.js-product-container) .product-description--below h3,
#main:has(.js-product-container) .product-description--below h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

#main:has(.js-product-container) .product-description--below h2:first-child,
#main:has(.js-product-container) .product-description--below h3:first-child {
  margin-top: 0;
}

.product-attachments--below,
.product-extra-content--below {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--fd-border);
}

/* ——— Botones globales ——— */
.btn-primary {
  background-color: var(--fd-accent);
  border-color: var(--fd-accent);
  border-radius: var(--fd-radius);
  font-weight: 600;
  text-transform: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--fd-accent-hover);
  border-color: var(--fd-accent-hover);
}

.btn-secondary,
.btn-outline-primary {
  border-radius: var(--fd-radius);
  font-weight: 600;
}

/* ——— Footer ——— */
#footer {
  background: linear-gradient(180deg, var(--fd-footer-top) 0%, var(--fd-footer-bottom) 100%);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2rem;
  border-top: none;
}

#footer a {
  color: rgba(255, 255, 255, 0.92);
}

#footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Una sola línea: © año · Tema diseñado por Obsessive Solutions */
#footer .fd-footer-legal-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

#footer .fd-footer-sep {
  opacity: 0.65;
  user-select: none;
}

#footer .fd-theme-credit-inline a {
  font-weight: 600;
}

#footer .footer-container {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

/* Primera fila = hook displayFooter (columnas tipo col-lg-3). Con 3 bloques queda hueco a la derecha;
   justify-content: center agrupa y centra. Con 4 bloques ocupan ~100% y el reparto se ve como siempre. */
#footer .footer-container > .container > .row:first-of-type {
  justify-content: center;
  row-gap: 1.5rem;
}

/* Información de la tienda / columnas del pie: el Classic usa gris poco legible sobre verde */
#footer .footer-container .h3,
#footer .footer-container .h4,
#footer .footer-container h2,
#footer .footer-container h3,
#footer .footer-container h4,
#footer .footer-container .title,
#footer .footer-container .block-title,
#footer .footer-container .block_title {
  color: #fff !important;
}

#footer .footer-container p,
#footer .footer-container li,
#footer .footer-container dd,
#footer .footer-container dt,
#footer .footer-container .block-contact,
#footer .footer-container .block-contact p,
#footer .footer-container .block-content,
#footer .footer-container .block-content p,
#footer .footer-container #contact-infos,
#footer .footer-container #contact-infos p,
#footer .footer-container .text-muted {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Móvil: acordeones .collapse del pie (ps_linklist, ps_contactinfo) con fondo claro — texto oscuro legible */
@media (max-width: 767.98px) {
  #footer .footer-container .collapse {
    background-color: #eef2ef !important;
    padding: 0.65rem 1rem 0.85rem;
  }

  #footer .footer-container ul.collapse li,
  #footer .footer-container ul.collapse li a {
    color: #1b4332 !important;
  }

  #footer .footer-container ul.collapse li a:hover,
  #footer .footer-container ul.collapse li a:focus {
    color: var(--fd-accent) !important;
  }

  #footer .footer-container #contact-infos,
  #footer .footer-container #contact-infos p,
  #footer .footer-container #contact-infos span,
  #footer .footer-container #contact-infos a {
    color: #1b4332 !important;
  }

  #footer .footer-container #contact-infos a:hover,
  #footer .footer-container #contact-infos a:focus {
    color: var(--fd-accent) !important;
  }
}

/* ——— Newsletter (hook displayFooterBefore, Classic: .block_newsletter) ———
   Quita el “cajón blanco” y lo integra en el verde del pie. */
#footer > .container:first-of-type {
  background: transparent !important;
}

#footer .block_newsletter {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1.75rem 0 2.25rem;
  margin-bottom: 0 !important;
  max-width: 100%;
}

#footer .block_newsletter.card {
  background: transparent !important;
  border: none !important;
}

#footer .block_newsletter > .row {
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

#footer .block_newsletter p,
#footer .block_newsletter .title,
#footer .block_newsletter h1,
#footer .block_newsletter h2,
#footer .block_newsletter h3,
#footer .block_newsletter h4,
#footer .block_newsletter h5 {
  color: rgba(255, 255, 255, 0.96) !important;
  margin-bottom: 0.5rem;
}

#footer .block_newsletter > .row > [class*="col-"] {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  #footer .block_newsletter > .row > [class*="col-"] {
    margin-bottom: 0;
  }
}

#footer .block_newsletter input[type="email"],
#footer .block_newsletter input[type="text"],
#footer .block_newsletter .form-control {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: var(--fd-radius) !important;
  color: #fff !important;
  padding: 0.65rem 1rem !important;
  height: auto !important;
}

#footer .block_newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

#footer .block_newsletter input:focus {
  border-color: rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Botón suscripción: contraste sobre verde (no verde sobre verde) */
#footer .block_newsletter .btn.btn-primary,
#footer .block_newsletter button[type="submit"],
#footer .block_newsletter input[type="submit"] {
  background: #fff !important;
  color: var(--fd-footer-bottom) !important;
  border: 2px solid #fff !important;
  border-radius: var(--fd-radius) !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.35rem !important;
  text-transform: none !important;
}

#footer .block_newsletter .btn.btn-primary:hover,
#footer .block_newsletter button[type="submit"]:hover,
#footer .block_newsletter input[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--fd-footer-bottom) !important;
  border-color: #fff !important;
}

#footer .block_newsletter .alert,
#footer .block_newsletter small,
#footer .block_newsletter .condition,
#footer .block_newsletter .page-subheading {
  color: rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
  border: none !important;
  padding: 0.35rem 0 0 !important;
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Consentimiento GDPR (psgdpr) en el newsletter: el label suele ir en gris sobre el verde del pie */
#footer .block_newsletter .custom-checkbox label,
#footer .block_newsletter .custom-checkbox span,
#footer .email_subscription .custom-checkbox label,
#footer .email_subscription .custom-checkbox span {
  color: rgba(255, 255, 255, 0.95) !important;
}

#footer .block_newsletter .custom-checkbox label a,
#footer .email_subscription .custom-checkbox label a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
}

#footer .block_newsletter .custom-checkbox label a:hover,
#footer .email_subscription .custom-checkbox label a:hover {
  color: #fff !important;
  opacity: 0.92;
}

#footer .block_newsletter form label:has([id^="psgdpr_consent_checkbox"]),
#footer .block_newsletter form label:has([class*="gdpr_module_"]) {
  color: rgba(255, 255, 255, 0.95) !important;
}

#footer .block_newsletter form label:has([id^="psgdpr_consent_checkbox"]) a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
}

#footer .block_newsletter .input-group {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  #footer .block_newsletter .input-group {
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

/* ——— Formularios ——— */
.form-control {
  border-radius: var(--fd-radius);
  border-color: #ccc;
}

.form-control:focus {
  border-color: var(--fd-accent);
  box-shadow: 0 0 0 0.15rem rgba(47, 111, 78, 0.22);
}

/* ——— Listados tipo tienda: Novedades (.fd-new-products-page) y Categorías (.fd-category-page) ——— */
.fd-new-products-page,
.fd-category-page {
  font-family: var(--fd-font-product);
}

.fd-new-products-page #main,
.fd-category-page #main {
  padding-top: 0.35rem;
}

.fd-new-products-page #js-product-list-header {
  font-family: var(--fd-font);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--fd-heading);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--fd-highlight);
}

.fd-category-page .block-category h1.h1 {
  font-family: var(--fd-font);
  font-size: clamp(1.05rem, 2.6vw, 1.42rem);
  font-weight: 800;
  color: var(--fd-heading);
  letter-spacing: 0.03em;
  margin-bottom: 0;
  padding-bottom: 0.42rem;
  border-bottom: 2px solid var(--fd-highlight);
}

.fd-category-page .block-category {
  /* Classic theme fija min-height: 13.75rem y deja mucho hueco sin descripción/imagen */
  min-height: 0 !important;
  margin-bottom: 0.5rem;
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 0.5rem 0.85rem 0.55rem;
}

.fd-category-page .block-category .block-category-inner {
  min-height: 0;
}

.fd-category-page .block-category.card {
  border: 1px solid var(--fd-border) !important;
}

.fd-category-page #category-description {
  color: var(--fd-muted) !important;
  line-height: 1.5;
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: clamp(0.8125rem, 2.2vw, 0.9rem);
}

.fd-category-page .block-category .category-cover img {
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
}

.fd-new-products-page #products,
.fd-category-page #products {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 1.15rem 0.85rem 1.5rem;
  margin-top: 0.65rem;
}

@media (min-width: 768px) {
  .fd-new-products-page #products,
  .fd-category-page #products {
    padding: 1.35rem 1.25rem 1.65rem;
  }
}

.fd-new-products-page #products .products-selection,
.fd-category-page #products .products-selection {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--fd-border);
}

.fd-new-products-page .total-products,
.fd-category-page .total-products {
  color: var(--fd-muted);
  font-size: 0.9375rem;
}

.fd-new-products-page .products-sort-order select,
.fd-new-products-page .products-sort-order .custom-select,
.fd-category-page .products-sort-order select,
.fd-category-page .products-sort-order .custom-select {
  border-radius: var(--fd-radius);
  border-color: var(--fd-border);
  font-weight: 500;
}

.fd-new-products-page #products .products.row,
.fd-category-page #products .products.row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.fd-new-products-page #products .products.row > [class*="col-"],
.fd-category-page #products .products.row > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.fd-new-products-page .product-miniature .thumbnail-container,
.fd-category-page .product-miniature .thumbnail-container {
  background: linear-gradient(180deg, #fafafa 0%, #ececec 100%);
  border-radius: calc(var(--fd-radius) - 2px) calc(var(--fd-radius) - 2px) 0 0;
}

.fd-new-products-page .product-miniature .product-title,
.fd-category-page .product-miniature .product-title {
  min-height: 2.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0.35rem 0.35rem;
}

.fd-new-products-page .product-miniature .product-title a,
.fd-category-page .product-miniature .product-title a {
  line-height: 1.35;
  font-size: 0.95rem;
}

.fd-new-products-page .product-flags .new,
.fd-new-products-page ul.product-flags li.product-flag.new,
.fd-category-page .product-flags .new,
.fd-category-page ul.product-flags li.product-flag.new {
  background: var(--fd-accent) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 5px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
}

.fd-new-products-page .pagination,
.fd-category-page .pagination {
  margin-top: 0.5rem;
}

.fd-new-products-page .pagination a,
.fd-new-products-page .pagination span,
.fd-category-page .pagination a,
.fd-category-page .pagination span {
  border-radius: var(--fd-radius);
}

/* Novedades: ocultar filtros facetados (módulo ps_facetedsearch / «Filtrar por»). No afecta la página categoría. */
body#new-products #search_filters_wrapper,
body#new_products #search_filters_wrapper {
  display: none !important;
}

/* Columna izquierda: fuera del bloque `content` (layout Classic), se apunta por body#new-products */
body#new-products #left-column .block,
body#new_products #left-column .block {
  background: var(--fd-card);
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  margin-bottom: 1.15rem;
  overflow: visible;
}

body#new-products #left-column .block .block-title,
body#new-products #left-column .block .h6,
body#new_products #left-column .block .block-title,
body#new_products #left-column .block .h6 {
  background: linear-gradient(135deg, var(--fd-heading) 0%, var(--fd-accent) 100%);
  color: #fff !important;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: -1px -1px 0 -1px;
  border-radius: calc(var(--fd-radius) - 1px) calc(var(--fd-radius) - 1px) 0 0;
}

body#new-products #left-column .block .block-content,
body#new_products #left-column .block .block-content {
  padding: 0.85rem 1rem 1rem;
}

body#new-products .facet .facet-label,
body#new-products .facet-label a,
body#new-products .facet .custom-checkbox label,
body#new_products .facet .facet-label,
body#new_products .facet-label a,
body#new_products .facet .custom-checkbox label {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4 !important;
  hyphens: auto;
  word-break: break-word;
}

body#new-products .facet .custom-checkbox label,
body#new_products .facet .custom-checkbox label {
  align-items: flex-start;
}

body#new-products #search_filters .ui-slider-horizontal,
body#new_products #search_filters .ui-slider-horizontal {
  background: var(--fd-border);
}

body#new-products #search_filters .ui-slider .ui-slider-range,
body#new_products #search_filters .ui-slider .ui-slider-range {
  background: var(--fd-accent);
}

body#new-products #search_filters .ui-slider .ui-slider-handle,
body#new_products #search_filters .ui-slider .ui-slider-handle {
  border-color: var(--fd-accent);
  background: #fff;
}

/* ——— Categorías: columna filtros (mismo criterio que Novedades; body id suele ser «category») ——— */
body#category #left-column .block {
  background: var(--fd-card);
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  margin-bottom: 1.15rem;
  overflow: visible;
}

body#category #left-column .block .block-title,
body#category #left-column .block .h6 {
  background: linear-gradient(135deg, var(--fd-heading) 0%, var(--fd-accent) 100%);
  color: #fff !important;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: -1px -1px 0 -1px;
  border-radius: calc(var(--fd-radius) - 1px) calc(var(--fd-radius) - 1px) 0 0;
}

body#category #left-column .block .block-content {
  padding: 0.85rem 1rem 1rem;
}

body#category .facet .facet-label,
body#category .facet-label a,
body#category .facet .custom-checkbox label {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.4 !important;
  hyphens: auto;
  word-break: break-word;
}

body#category .facet .custom-checkbox label {
  align-items: flex-start;
}

body#category #search_filters .ui-slider-horizontal {
  background: var(--fd-border);
}

body#category #search_filters .ui-slider .ui-slider-range {
  background: var(--fd-accent);
}

body#category #search_filters .ui-slider .ui-slider-handle {
  border-color: var(--fd-accent);
  background: #fff;
}

@media (max-width: 575.98px) {
  .fd-category-page .block-category {
    padding: 0.5rem 0.75rem 0.6rem;
  }

  .fd-category-page .block-category h1.h1 {
    margin-bottom: 0.2rem;
    padding-bottom: 0.32rem;
  }
}

/* Árbol de categorías (ps_categorytree override): tipografía compacta + iconos SVG */
.fd-cat-tree-sidebar .fd-cat-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-cat-tree-sidebar .fd-cat-tree-item--wrap-children > .fd-cat-tree-list {
  margin-top: 0.12rem;
}

.fd-cat-tree-sidebar .fd-cat-tree-item--wrap-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-cat-tree-sidebar .fd-cat-tree-item {
  margin: 0;
}

.fd-cat-tree-sidebar .fd-cat-tree-link {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: clamp(0.72rem, 2.1vw, 0.8rem);
  font-weight: 600;
  line-height: 1.32;
  padding: 0.22rem 0;
  color: var(--fd-heading);
  text-decoration: none;
  word-break: break-word;
}

.fd-cat-tree-sidebar .fd-cat-tree-link:hover,
.fd-cat-tree-sidebar .fd-cat-tree-link:focus {
  color: var(--fd-accent);
}

.fd-cat-tree-sidebar .fd-cat-tree-ico {
  flex-shrink: 0;
  margin-top: 0.1em;
  line-height: 0;
  color: var(--fd-accent);
  opacity: 0.9;
}

.fd-cat-tree-sidebar .fd-cat-tree-link--root .fd-cat-tree-ico {
  color: var(--fd-heading);
  opacity: 0.85;
}

.fd-cat-tree-sidebar .fd-cat-tree-svg {
  display: block;
  vertical-align: middle;
}

.fd-cat-tree-sidebar .fd-cat-tree-branch:empty {
  display: none;
}

.fd-cat-tree-sidebar .fd-cat-tree-branch > ul {
  margin: 0.1rem 0 0.15rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--fd-border);
}

@media (max-width: 575.98px) {
  .fd-cat-tree-sidebar .fd-cat-tree-link {
    padding: 0.18rem 0;
    gap: 0.3rem;
  }

  .fd-cat-tree-sidebar .fd-cat-tree-branch > ul {
    padding-left: 0.45rem;
  }
}

/* Sin override del módulo: lista más pequeña y marcador visual */
#left-column .category-tree:not(.fd-cat-tree-sidebar) ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

#left-column .category-tree:not(.fd-cat-tree-sidebar) ul ul {
  padding-left: 0.5rem;
  margin-top: 0.15rem;
}

#left-column .category-tree:not(.fd-cat-tree-sidebar) a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: clamp(0.72rem, 2.1vw, 0.8rem);
  font-weight: 600;
  line-height: 1.32;
  padding: 0.2rem 0;
}

#left-column .category-tree:not(.fd-cat-tree-sidebar) li > a::before {
  content: "›";
  font-weight: 700;
  opacity: 0.55;
  flex-shrink: 0;
}

#left-column .category-tree:not(.fd-cat-tree-sidebar) ul ul li > a::before {
  content: "·";
  font-weight: 800;
}

/* Blog y categorías en columna: misma card (título + borde verde) */
#left-column .fd-simpleblog-sidebar-card,
#left-column .fd-category-sidebar-card {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  box-shadow: var(--fd-shadow);
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 1rem;
}

#left-column .fd-simpleblog-sidebar-card .block-title,
#left-column .fd-category-sidebar-card .block-title {
  font-family: var(--fd-font);
  font-size: clamp(0.72rem, 2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fd-heading);
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--fd-highlight);
}

#left-column .fd-simpleblog-sidebar-card ul li {
  margin-bottom: 0.4rem;
}

#left-column .fd-simpleblog-sidebar-card ul li:last-child {
  margin-bottom: 0;
}

#left-column .fd-simpleblog-sidebar-card a {
  font-size: clamp(0.78rem, 2.2vw, 0.875rem);
  font-weight: 500;
}

#left-column .fd-simpleblog-sidebar-card .mb-2 {
  margin-bottom: 0.4rem !important;
}

@media (max-width: 575.98px) {
  #left-column .fd-simpleblog-sidebar-card,
  #left-column .fd-category-sidebar-card {
    padding: 0.75rem 0.85rem 0.9rem;
  }
}

/* Si el tema envuelve ps_categorytree en .block, quitar caja duplicada y título repetido */
#left-column .block:has(.fd-category-sidebar-card) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
}

#left-column .block:has(.fd-category-sidebar-card) > .block-title,
#left-column .block:has(.fd-category-sidebar-card) > .h6,
#left-column .block:has(.fd-category-sidebar-card) > p.title_block {
  display: none !important;
}

#left-column .block:has(.fd-category-sidebar-card) .block-content,
#left-column .block:has(.fd-category-sidebar-card) .block_content {
  padding: 0 !important;
  background: transparent;
}
