/* ==========================================================================
   Planeta Madera - nuevo diseño (cabecera, ficha de producto, categoría, pie)
   ========================================================================== */

:root {
  --pm-red: #db1836;
  --pm-red-dark: #b3122b;
  --pm-red-soft: #fdf1f3;
  --pm-text: #222;
  --pm-muted: #6b6b6b;
  --pm-border: #e6e6e6;
  --pm-bg-soft: #f7f7f7;
  --pm-radius: 8px;
  --pm-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

/* ---------- Utilidades ---------- */

.pm-pp [hidden],
.pm-cat [hidden] {
  display: none !important;
}

.pm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--pm-red);
  border-radius: 6px;
  background: #fff;
  color: var(--pm-red) !important;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .2s, color .2s;
}

.pm-btn-outline:hover,
.pm-btn-outline:focus {
  background: var(--pm-red);
  color: #fff !important;
  text-decoration: none;
}

.pm-btn-block {
  display: flex;
  width: 100%;
}

.pm-checks {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pm-checks li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 24px;
  font-size: 13px;
  color: var(--pm-muted);
}

.pm-checks li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 1px;
  font: normal normal normal 13px/1 FontAwesome;
  color: #2e9e4f;
}

/* ---------- Acordeón ---------- */

.pm-accordion {
  border-top: 1px solid var(--pm-border);
}

.pm-acc-item {
  border-bottom: 1px solid var(--pm-border);
}

.pm-acc-head {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 40px 14px 0;
  border: 0;
  background: none;
  color: var(--pm-text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.pm-acc-icon::before,
.pm-acc-icon::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--pm-text);
  transition: transform .2s;
}

.pm-acc-icon::after {
  transform: rotate(90deg);
}

.pm-acc-item.is-open .pm-acc-icon::after {
  transform: rotate(0deg);
}

.pm-acc-body {
  display: none;
  padding: 0 0 16px;
  color: var(--pm-muted);
  font-size: 14px;
}

.pm-acc-item.is-open .pm-acc-body {
  display: block;
}

/* ---------- Franja de beneficios ---------- */

.pm-beneficios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
  padding: 24px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
}

.pm-beneficio {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pm-beneficio-icon {
  flex: 0 0 auto;
  color: var(--pm-red);
  font-size: 30px;
  line-height: 1;
}

.pm-beneficio-txt strong {
  display: block;
  color: var(--pm-text);
  font-size: 14px;
}

.pm-beneficio-txt span {
  display: block;
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */

.pm-topbar {
  background: var(--pm-red);
  color: #fff;
  font-size: 12px;
}

.pm-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.pm-topbar ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-topbar li,
.pm-topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pm-topbar a,
.pm-topbar a:hover {
  color: #fff !important;
}

.pm-topbar a:hover {
  text-decoration: underline;
}

.pm-topbar .fa {
  opacity: .9;
}

.pm-topbar-center {
  font-weight: 700;
}

.pm-topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.pm-topbar-highlight {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .18);
}

.pm-header .pm-header-top {
  padding: 16px 0;
  background: #fff;
}

.pm-header #desktop_logo img {
  max-height: 64px;
  width: auto;
}

.pm-header .col-header-center {
  padding: 0 40px;
}

.pm-header #search_widget .input-group {
  display: flex;
  flex-wrap: nowrap;
}

.pm-header #search_widget .form-search-control {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--pm-border);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fff;
  font-size: 14px;
}

.pm-header #search_widget .form-search-control:focus {
  border-color: var(--pm-red);
  box-shadow: none;
}

.pm-header #search_widget .search-btn {
  position: static;
  width: 54px;
  height: 46px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--pm-red);
  color: #fff;
  font-size: 16px;
}

.pm-header #search_widget .search-btn:hover {
  background: var(--pm-red-dark);
}

.pm-header .col-header-right .header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  color: var(--pm-text);
}

.pm-header .col-header-right .header-btn .icon,
.pm-header .col-header-right .header-btn > .fa {
  font-size: 22px;
}

.pm-header .col-header-right .header-btn .title {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.pm-header .col-header-right .cart-products-count-btn {
  background: var(--pm-red);
  color: #fff;
}

.pm-menu-bar {
  border-top: 1px solid var(--pm-border);
  border-bottom: 1px solid var(--pm-border);
  background: #fff;
}

.pm-menu-bar #iqitmegamenu-horizontal,
.pm-menu-bar .cbp-hrmenu {
  background: transparent;
  box-shadow: none;
}

.pm-menu-bar .cbp-horizontal > ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  width: 100%;
}

.pm-menu-bar .cbp-horizontal > ul > li {
  flex: 0 1 auto;
  white-space: nowrap;
}

.pm-menu-bar .cbp-horizontal > ul > li > a,
.pm-menu-bar .cbp-horizontal > ul > li > a:not([href]):not([tabindex]),
.pm-menu-bar .cbp-horizontal > ul > li > .cbp-main-link,
.pm-menu-bar .cbp-horizontal > ul > li > .cbp-empty-mlink {
  padding: 12px 10px;
  color: var(--pm-text) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}

.pm-menu-bar .cbp-horizontal > ul > li:hover > a,
.pm-menu-bar .cbp-horizontal > ul > li:hover > a:not([href]):not([tabindex]),
.pm-menu-bar .cbp-horizontal > ul > li.cbp-hropen > a,
.pm-menu-bar .cbp-horizontal > ul > li.cbp-hropen > a:not([href]):not([tabindex]),
.pm-menu-bar .cbp-horizontal > ul > li.cbp-hropen > a:hover {
  background: var(--pm-red) !important;
  color: #fff !important;
}

.pm-menu-bar .cbp-horizontal .cbp-tab-title {
  font-size: 13px;
  color: inherit;
}

.pm-menu-bar .cbp-horizontal .cbp-submenu-aindicator {
  margin-left: 3px;
  font-size: 11px;
}

/* Menú fijado al scroll: enlaces en blanco sobre fondo rojo */
#iqitmegamenu-wrapper.stuck-menu .pm-menu-bar {
  background: transparent;
  border-color: transparent;
}

#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li > a,
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li > a:not([href]):not([tabindex]),
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li > .cbp-main-link,
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li > .cbp-empty-mlink,
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal .cbp-tab-title {
  color: #fff !important;
}

#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li:hover > a,
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li:hover > a:not([href]):not([tabindex]),
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li.cbp-hropen > a,
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li.cbp-hropen > a:not([href]):not([tabindex]),
#iqitmegamenu-wrapper.stuck-menu .cbp-horizontal > ul > li.cbp-hropen > a:hover {
  background: rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
}

/* ---------- Megamenú: panel común ---------- */

.pm-menu-bar .cbp-hrmenu .cbp-hrsub {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.pm-menu-bar .cbp-hrmenu .cbp-hrsub.col-3,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub.col-4,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub.col-6,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub.col-8,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* El theme pinta el submenú oscuro: lo anulamos (franjas negras) */
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner,
.pm-menu-bar .cbp-hrsub-inner {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 8px 0 0 !important;
  color: var(--pm-text) !important;
}

.pm-menu-bar .iqitmegamenu-submenu-container {
  background: #fff !important;
  color: var(--pm-text) !important;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.14);
  padding: 22px 24px;
  overflow: hidden;
}

/* El theme fuerza enlaces blancos y nowrap en .cbp-hrsub-inner a */
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner a,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner a:link,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner a:visited,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-column-title,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner a.cbp-column-title:link,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-category-title,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-list-head-title,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-promo,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-promo strong,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-promo p,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-promo-body,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-promo-body strong,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .pm-mega-promo-body p {
  color: var(--pm-text) !important;
  white-space: normal !important;
}

.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner a:hover,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-column-title:hover,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-category-title:hover {
  color: var(--pm-red) !important;
}

.pm-menu-bar .cbp-hrsub .menu_row.first_rows {
  margin: 0;
}

.pm-menu-bar .cbp-hrsub .cbp-menu-column {
  padding: 0;
}

.pm-menu-bar .cbp-hrsub .cbp-menu-column-inner {
  padding: 0;
  background: transparent !important;
}

.pm-menu-bar .cbp-hrsub .cbp-column-title,
.pm-menu-bar .cbp-hrsub .cbp-category-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-decoration: none;
}

.pm-menu-bar .cbp-hrsub .cbp-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-links a,
.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-links a:link {
  display: block;
  padding: 4px 0 4px 14px;
  position: relative;
  color: #666 !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

.pm-menu-bar .cbp-hrsub .cbp-links a::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #bbb;
  font-weight: 700;
}

.pm-menu-bar .cbp-hrmenu .cbp-hrsub-inner .cbp-links a:hover {
  color: var(--pm-red) !important;
}

/* Promo / huecos de foto */
.pm-mega-promo {
  display: flex;
  flex-direction: column;
  color: var(--pm-text) !important;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
}

.pm-mega-promo:hover {
  color: var(--pm-text) !important;
  text-decoration: none;
}

.pm-mega-promo-media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0eeeb 0%, #e4e0db 100%);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.pm-mega-promo-media::after {
  content: "Foto";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a948c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-mega-promo-media.has-image::after {
  display: none;
}

.pm-mega-promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-mega-promo-body {
  position: relative;
  display: block;
  padding: 12px 0 0;
  white-space: normal !important;
}

.pm-mega-promo-line {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 10px;
  background: var(--pm-red);
  border-radius: 2px;
}

.pm-mega-promo-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--pm-text) !important;
  line-height: 1.25;
  white-space: normal !important;
}

.pm-mega-promo-body p {
  display: inline;
  margin: 0;
  color: #888 !important;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal !important;
}

.pm-mega-promo-body .pm-mega-promo-arrow,
.pm-mega-promo-body .fa-arrow-right {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 0;
  background: none;
  color: var(--pm-red) !important;
  font-size: 13px;
  line-height: 1;
}

/* ---------- Megamenú Puertas (4 columnas) ---------- */

#cbp-hrmenu-tab-3 .iqitmegamenu-submenu-container {
  padding: 20px;
}

#cbp-hrmenu-tab-3 .menu_row.first_rows.pm-mega-puertas {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 280px);
  gap: 18px;
  align-items: start;
}

#cbp-hrmenu-tab-3 .pm-mega-puertas > .cbp-menu-column {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

#cbp-hrmenu-tab-3 .pm-mega-puertas > .cbp-menu-column.col-6 {
  flex: none;
  max-width: none;
}

#cbp-hrmenu-tab-3 .pm-mega-puertas > .pm-mega-promo {
  max-width: 280px;
}

#cbp-hrmenu-tab-3 .pm-mega-promo-media {
  aspect-ratio: auto;
  width: 100%;
  height: 280px;
  max-height: 280px;
  min-height: 0;
}

#cbp-hrmenu-tab-3 .cbp-menu-column-inner > .cbp-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  line-height: 1.25;
  color: var(--pm-text) !important;
}

#cbp-hrmenu-tab-3 .cbp-menu-column-inner > .cbp-column-title::before {
  content: none !important;
  display: none !important;
}

#cbp-hrmenu-tab-3 .pm-mega-title-icon {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--pm-red);
}

#cbp-hrmenu-tab-3 .pm-mega-title-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#cbp-hrmenu-tab-3 .pm-mega-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

#cbp-hrmenu-tab-3 .cbp-menu-column-inner > .cbp-column-title .pm-mega-accent {
  color: var(--pm-red) !important;
}

#cbp-hrmenu-tab-3 .cbp-categories-row {
  margin: 0;
}

#cbp-hrmenu-tab-3 .cbp-categories-row > [class*="col-"] {
  padding: 0;
  margin: 0;
}

#cbp-hrmenu-tab-3 .cbp-category-link-w {
  margin: 0;
  position: relative;
}

#cbp-hrmenu-tab-3 .cbp-hrmenu .cbp-hrsub-inner .cbp-category-title,
#cbp-hrmenu-tab-3 .cbp-category-title {
  display: block;
  padding: 6px 0;
  font-size: 11.5px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--pm-text) !important;
  white-space: normal !important;
}

#cbp-hrmenu-tab-3 .cbp-category-link-w:has(> ul) > .cbp-category-title,
#cbp-hrmenu-tab-3 .cbp-category-link-w:has(> ul) > a:first-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

#cbp-hrmenu-tab-3 .cbp-category-link-w > ul.cbp-links,
#cbp-hrmenu-tab-3 .cbp-category-link-w > ul.cbp-category-tree {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: auto !important;
}

/* Subniveles del theme (flyout oscuro) → lista inline */
#cbp-hrmenu-tab-3 .cbp-category-link-w > ul.cbp-hrsub-level2 {
  position: static !important;
  display: block !important;
  visibility: visible !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  z-index: auto !important;
}

#cbp-hrmenu-tab-3 .cbp-category-link-w > ul.cbp-hrsub-level2 > li,
#cbp-hrmenu-tab-3 .cbp-category-link-w > ul.cbp-category-tree > li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
}

#cbp-hrmenu-tab-3 .cbp-category-link-w > ul a {
  white-space: normal !important;
}

/* Quitar flecha de flyout del theme en ítems con subnivel */
#cbp-hrmenu-tab-3 .cbp-category-link-w > a::after,
#cbp-hrmenu-tab-3 .cbp-hrsub-level2 a::after {
  content: none !important;
  display: none !important;
}

/* ---------- Megamenú resto (1 columna + promo) ---------- */

/* Una columna: panel bajo la pestaña (no a la izquierda del menú) */
.pm-menu-bar .cbp-hrmenu > ul > li.cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) {
  position: relative !important;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub.col-3,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub.col-4,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub.col-6,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub.col-8,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub.col-12 {
  top: 100% !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  right: auto !important;
  left: 0 !important;
}

/* Si no cabe a la derecha, alinear al borde derecho de la pestaña */
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3).pm-mega-align-end .cbp-hrsub,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub.cbp-notfit {
  left: auto !important;
  right: 0 !important;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .iqitmegamenu-submenu-container,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-hrsub-inner {
  width: max-content;
  max-width: min(920px, calc(100vw - 32px));
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .menu_row.first_rows.pm-mega-single {
  display: grid;
  grid-template-columns: max-content minmax(260px, 380px);
  gap: 28px;
  align-items: start;
  justify-content: start;
  width: max-content;
  max-width: 100%;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--pm-red) !important;
  flex: 0 0 28px;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list-head-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list-head-title {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--pm-red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pm-text) !important;
  line-height: 1.2;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-single > .cbp-menu-column,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list > .cbp-menu-column {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  border-bottom: 1px solid #eee;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-list > .cbp-menu-column:last-child {
  border-bottom: 0;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-menu-column-inner > .cbp-column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 0 !important;
  font-size: 13px;
  color: var(--pm-text) !important;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-menu-column-inner > .cbp-column-title::after {
  content: "\f105";
  font-family: FontAwesome;
  color: var(--pm-red);
  font-size: 14px;
  font-weight: 400;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-menu-column.has-children.is-open .cbp-menu-column-inner > .cbp-column-title::after {
  content: "\f107";
}

/* Subcategorías siempre visibles (el acordeón anterior las ocultaba) */
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-categories-row {
  display: block;
  margin: 0 0 4px;
  padding: 0 0 2px;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-category-link-w > ul.cbp-links,
.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-category-link-w > ul.cbp-category-tree {
  display: block;
  margin: 0 0 6px;
  padding: 0 0 0 14px;
  list-style: none;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-categories-row > [class*="col-"] {
  padding: 0;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-category-title {
  display: block;
  padding: 5px 0 5px 14px;
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: #666 !important;
  border: 0;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .cbp-category-title::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #bbb;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-promo {
  height: auto;
  max-width: 420px;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-promo-media {
  aspect-ratio: auto;
  width: 100%;
  height: 180px;
  max-height: 180px;
  min-height: 0;
  border-radius: 12px;
}

.pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-promo-body {
  padding: 14px 8px 8px;
}

@media (max-width: 1100px) {
  .pm-menu-bar .cbp-horizontal > ul > li > a,
  .pm-menu-bar .cbp-horizontal > ul > li > a:not([href]):not([tabindex]),
  .pm-menu-bar .cbp-horizontal > ul > li > .cbp-main-link,
  .pm-menu-bar .cbp-horizontal > ul > li > .cbp-empty-mlink {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 12px;
  }

  .pm-menu-bar .cbp-horizontal .cbp-tab-title {
    font-size: 12px;
  }

  #cbp-hrmenu-tab-3 .menu_row.first_rows.pm-mega-puertas {
    grid-template-columns: minmax(200px, 230px) minmax(0, 1fr) minmax(0, 1fr) minmax(200px, 230px);
    gap: 14px;
  }

  #cbp-hrmenu-tab-3 .pm-mega-puertas > .pm-mega-promo {
    max-width: 230px;
  }

  #cbp-hrmenu-tab-3 .pm-mega-promo-media {
    height: 230px;
    max-height: 230px;
  }

  .pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .pm-mega-promo-media {
    height: 150px;
    max-height: 150px;
  }
}

@media (max-width: 991px) {
  #cbp-hrmenu-tab-3 .menu_row.first_rows.pm-mega-puertas,
  .pm-menu-bar .cbp-hrmenu-tab:not(#cbp-hrmenu-tab-3) .menu_row.first_rows.pm-mega-single {
    display: block;
  }

  .pm-mega-promo {
    display: none;
  }
}


/* ==========================================================================
   Ficha de producto
   ========================================================================== */

.pm-pp .pm-pp-row {
  margin-bottom: 20px;
}

.pm-pp .col-product-image .product-cover,
.pm-pp .col-product-image .product-images-large {
  overflow: hidden;
  border-radius: var(--pm-radius);
}

/* Foto grande (Swiper fade):
   - Antes de init: slides apiladas → hueco enorme (CSS abajo).
   - Tras init: NO tocar position/opacity (rompe el fade).
   - El placeholder SVG lazy puede ser más alto que la foto y empujar
     las thumbs; la altura la corrige JS (syncProductCoverHeight). */
.pm-pp #product-images-large {
  position: relative;
  overflow: hidden;
}

.pm-pp #product-images-large:not(.swiper-container-initialized) .swiper-wrapper {
  position: relative;
  width: 100%;
}

.pm-pp #product-images-large:not(.swiper-container-initialized) .swiper-slide {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  margin: 0 !important;
}

.pm-pp #product-images-large:not(.swiper-container-initialized) .swiper-slide:first-child {
  position: relative !important;
}

.pm-pp .col-product-image .product-cover .expander {
  right: 14px;
  bottom: 14px;
  top: auto;
  left: auto;
}

.pm-pp .col-product-image .product-cover .expander span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--pm-shadow);
  color: var(--pm-text);
}

/* Thumbs: altura auto (sin recorte vertical) + overflow contenido
   (no invadir variantes). Anula margin negativo del tema. */
.pm-pp .col-product-image {
  overflow-x: hidden;
}

.pm-pp .col-product-image .js-qv-mask.mask,
.pm-pp .col-product-image .mask {
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
}

.pm-pp #product-images-thumbs,
.pm-pp #product-images-thumbs.swiper-container-horizontal {
  margin: 8px 0 0 !important; /* anula margin: 0 -0.5rem del tema */
  overflow: hidden !important;
  height: auto !important;
  max-width: 100%;
}

.pm-pp #product-images-thumbs .swiper-wrapper {
  height: auto !important;
  align-items: flex-start;
}

.pm-pp #product-images-thumbs .swiper-slide {
  height: auto !important;
  width: 120px !important;
  overflow: visible !important; /* borde selected visible dentro del slide */
  box-sizing: border-box;
}

/* Miniatura: foto completa, sin recorte por overflow/height fijo */
.pm-pp #product-images-thumbs .thumb-container {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  padding: 4px !important;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  line-height: 0;
}

.pm-pp #product-images-thumbs .thumb-container .thumb,
.pm-pp #product-images-thumbs .thumb-container img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 3px;
}

.pm-pp #product-images-thumbs .thumb.selected,
.pm-pp #product-images-thumbs .swiper-slide-thumb-active .thumb-container {
  border-color: var(--pm-red);
}

/* Portada principal: evitar recorte por overflow/radius */
.pm-pp .col-product-image .product-cover img,
.pm-pp .col-product-image .product-images-large img,
.pm-pp .col-product-image .product-lmage-large img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.pm-pp .product-flags .product-flag {
  border-radius: 4px;
}

.pm-pp-stock {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.pm-pp-stock-ok {
  background: var(--pm-red-soft);
  color: var(--pm-red);
}

.pm-pp-stock-last {
  background: #fff5e0;
  color: #b36b00;
}

.pm-pp-stock-ko {
  background: #f1f1f1;
  color: var(--pm-muted);
}

.pm-pp .col-product-info .page-title {
  margin: 0 0 12px;
  color: var(--pm-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.pm-pp .col-product-info .product-description {
  color: var(--pm-muted);
  font-size: 14px;
}

.pm-pp .col-product-info .product-description ul {
  padding-left: 18px;
}

.pm-pp-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--pm-border);
  border-bottom: 1px solid var(--pm-border);
  list-style: none;
}

.pm-pp-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--pm-muted);
}

.pm-pp-highlights .fa {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--pm-red);
  font-size: 18px;
}

.pm-pp-highlights strong {
  display: block;
  color: var(--pm-text);
}

.pm-pp-highlights .entrega_estimada {
  display: block;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
}

.pm-pp-price {
  margin-bottom: 18px;
}

.pm-pp-price .product-prices {
  margin: 0;
}

.pm-pp-price .current-price-value,
.pm-pp-price .product-price {
  color: var(--pm-red);
  font-size: 30px;
  font-weight: 800;
}

.pm-pp-price .regular-price {
  display: block;
  color: var(--pm-muted);
  font-size: 14px;
  text-decoration: line-through;
}

.pm-pp-price .tax-shipping-delivery-label {
  color: var(--pm-muted);
  font-size: 12px;
}

/* Pasos de configuración */

.pm-fields-built.an-pf-fields-wrap {
  display: block;
  margin: 0;
}

.pm-steps {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pm-step {
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
}

.pm-step[hidden] {
  display: none;
}

.pm-step.is-open {
  border-color: #d5d5d5;
  box-shadow: var(--pm-shadow);
}

.pm-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: none;
  color: var(--pm-text);
  text-align: left;
  cursor: pointer;
}

.pm-step-num {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--pm-red);
  border-radius: 50%;
  color: var(--pm-red);
  font-size: 14px;
  font-weight: 800;
}

.pm-step.is-complete .pm-step-num {
  background: var(--pm-red);
  color: #fff;
}

.pm-step-txt {
  flex: 1 1 auto;
  min-width: 0;
}

.pm-step-txt strong {
  display: block;
  font-size: 15px;
}

.pm-step-txt small {
  display: block;
  color: var(--pm-muted);
  font-size: 12px;
}

.pm-step-value {
  max-width: 40%;
  overflow: hidden;
  color: var(--pm-text);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-step.is-open .pm-step-value {
  display: none;
}

.pm-step-arrow {
  color: var(--pm-muted);
  font-size: 18px;
  transition: transform .2s;
}

.pm-step.is-open .pm-step-arrow {
  transform: rotate(180deg);
}

.pm-step-body {
  display: none;
  padding: 0 16px 16px 58px;
}

.pm-step.is-open .pm-step-body {
  display: block;
}

.pm-step-body .an-pf-field {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  margin: 0 0 14px;
  padding: 0;
}

.pm-step-body .an-pf-field:last-child {
  margin-bottom: 0;
}

.pm-step-body .control-label {
  display: block;
  margin-bottom: 6px;
  color: var(--pm-text);
  font-size: 13px;
  font-weight: 700;
}

.pm-step-body .form-control,
.pm-step-body .anpf-select-dropdown-show {
  border-color: var(--pm-border);
  border-radius: 6px;
  font-size: 14px;
}

.pm-step-body div[data-apfs-field-id="8"],
.pm-step-body div[data-apfs-field-id="29"] {
  margin-top: 0;
}

/* Tu configuración */

.pm-pp-sidebar .pm-config {
  position: sticky;
  top: 20px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
  box-shadow: var(--pm-shadow);
}

/* ---------- Calculadoras (suelos / bases) ---------- */

.pm-calc {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
  box-shadow: var(--pm-shadow);
}

.pm-calc[hidden] {
  display: none !important;
}

.pm-calc-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pm-border);
}

.pm-calc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(219, 24, 54, 0.08);
  color: var(--pm-red);
  font-size: 18px;
}

.pm-calc-head-txt {
  min-width: 0;
}

.pm-calc-head-txt strong {
  display: block;
  color: var(--pm-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.pm-calc-head-txt span {
  display: block;
  margin-top: 2px;
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.35;
}

.pm-calc-form {
  margin: 0;
}

.pm-calc-label {
  display: block;
  margin: 0 0 8px;
  color: var(--pm-text);
  font-size: 13px;
  font-weight: 700;
}

.pm-calc-field {
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pm-calc-field:focus-within {
  border-color: var(--pm-red);
  box-shadow: 0 0 0 3px rgba(219, 24, 54, 0.12);
}

.pm-calc-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--pm-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
}

.pm-calc-unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--pm-border);
  background: var(--pm-bg-soft, #f7f7f7);
  color: var(--pm-muted);
  font-size: 13px;
  font-weight: 700;
}

.pm-calc-submit,
.pm-calc-cart {
  width: 100%;
  margin: 0 0 4px;
  padding: 12px 16px;
  border-radius: 6px !important; /* igual que .pm-config .add-to-cart */
  font-weight: 800;
}

.pm-calc-result {
  margin-top: 14px;
}

.pm-calc-result:empty {
  display: none;
}

.pm-calc-msg {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f4faf5;
  border: 1px solid #d8eadc;
  color: var(--pm-text);
  font-size: 14px;
  line-height: 1.4;
}

.pm-calc-msg.is-error {
  background: #fff5f5;
  border-color: #f0c9c9;
  color: #8a1f1f;
}

.pm-calc-msg strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.pm-calc-note {
  display: block;
  margin-top: 4px;
  color: var(--pm-muted);
  font-size: 12px;
}

.pm-calc-total {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.pm-calc-total em {
  color: var(--pm-red);
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
}

.pm-calc-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pm-config-title {
  margin: 0 0 10px;
  color: var(--pm-text);
  font-size: 18px;
  font-weight: 800;
}

.pm-config-empty .pm-config-title,
.pm-config-empty .pm-config-list {
  display: none;
}

.pm-config-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-config-list li {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pm-border);
}

.pm-config-item {
  min-width: 0;
}

.pm-config-label {
  display: block;
  color: var(--pm-text);
  font-size: 12px;
  font-weight: 700;
}

.pm-config-value {
  display: block;
  color: var(--pm-muted);
  font-size: 13px;
  word-break: break-word;
}

.pm-config-value.is-empty {
  font-style: italic;
}

.pm-config-change {
  flex: 0 0 auto;
  color: var(--pm-red) !important;
  font-size: 12px;
  font-weight: 700;
}

.pm-config-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 4px;
}

.pm-config-total[hidden] {
  display: none;
}

.pm-config-total-label {
  font-weight: 700;
}

.pm-config-total-label small {
  color: var(--pm-muted);
  font-weight: 400;
}

.pm-config-total-price {
  color: var(--pm-red);
  font-size: 24px;
  font-weight: 800;
}

.pm-config .product-add-to-cart {
  padding-top: 10px !important;
}

.pm-config .product-quantity {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.pm-config .col-add-qty {
  flex: 0 0 92px;
  width: 92px;
  max-width: 92px;
  padding-right: 0 !important;
}

.pm-config .col-add-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0 !important;
}

.pm-config .product-quantity .qty {
  width: 100%;
}

/* Selector compacto: caja única con flechas integradas a la derecha */
.pm-config .product-quantity .bootstrap-touchspin {
  position: relative !important;
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  background: #fff;
}

.pm-config .product-quantity #quantity_wanted,
.pm-config .product-quantity .bootstrap-touchspin .form-control {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 34px 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 48px !important;
  text-align: center;
  background: transparent !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pm-config .product-quantity #quantity_wanted::-webkit-outer-spin-button,
.pm-config .product-quantity #quantity_wanted::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pm-config .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  z-index: 3;
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
  width: 30px !important;
  height: 100% !important;
  max-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 1px solid var(--pm-border);
  background: #fff;
}

.pm-config .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn {
  position: relative !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 50% !important;
  width: 100% !important;
  max-width: none !important;
  height: 24px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.pm-config .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .bootstrap-touchspin-up {
  border-bottom: 1px solid var(--pm-border) !important;
}

.pm-config .product-quantity .bootstrap-touchspin .input-group-btn-vertical i {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block;
  font-size: 13px;
  line-height: 1;
  color: var(--pm-text);
}

.pm-config .col-add-btn .add {
  width: 100%;
}

.pm-config .add-to-cart,
.pm-config #btPresu {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-decoration: none !important;
}

.pm-config #btPresu {
  background: var(--pm-red) !important;
  color: #fff !important;
  border: 0 !important;
  margin-top: 8px;
  cursor: pointer;
}

.pm-config #btPresu i,
.pm-config #btPresu span {
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
  vertical-align: middle;
}

.pm-config .add-to-cart .bag-icon,
.pm-config .add-to-cart .spinner-icon {
  position: static !important;
  font-size: 14px;
  line-height: 1;
}

/* Solo presupuesto: ocultar cantidad y ATC (el JS añade .pm-quote-only) */
body.pm-quote-only .pm-config .col-add-qty,
body.pm-quote-only .pm-config .product-quantity .qty,
body.pm-quote-only .pm-config .bootstrap-touchspin,
body.pm-quote-only .pm-config button.add-to-cart,
body.pm-quote-only .pm-config .add-to-cart {
  display: none !important;
}

body.pm-quote-only .pm-config .product-quantity,
body.pm-quote-only .pm-config .col-add-btn {
  width: 100%;
  flex: 1 1 100%;
  max-width: 100%;
}

body.pm-quote-only .pm-config #btPresu {
  margin-top: 0;
}

.pm-config .pm-btn-outline {
  margin-top: 10px;
}

.pm-config-obra {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #f3c2ca;
  border-radius: var(--pm-radius);
  background: var(--pm-red-soft);
  color: var(--pm-text) !important;
}

.pm-config-obra:hover {
  text-decoration: none;
  border-color: var(--pm-red);
}

.pm-config-obra .fa {
  color: var(--pm-red);
  font-size: 28px;
}

.pm-config-obra strong {
  display: block;
  color: var(--pm-red);
  font-size: 14px;
}

.pm-config-obra small {
  display: block;
  color: var(--pm-muted);
}

.pm-pp-sidebar #iqithtmlandbanners-block-1 {
  display: none;
}

.pm-pp-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #f0d0d6;
  border-radius: var(--pm-radius);
  background: linear-gradient(135deg, var(--pm-red-soft) 0%, #fff 70%);
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.35;
}

.pm-pp-help .fa {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0d0d6;
  color: var(--pm-red);
  font-size: 18px;
  box-shadow: 0 1px 4px rgba(219, 24, 54, .08);
}

.pm-pp-help span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pm-pp-help a {
  display: inline-block;
  width: fit-content;
  color: var(--pm-red) !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}

.pm-pp-help a:hover {
  color: var(--pm-red-dark) !important;
  border-bottom-color: var(--pm-red-dark);
  text-decoration: none;
}

/* Parte inferior */

.pm-pp-bottom {
  margin-top: 30px;
}

.pm-pp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid var(--pm-border);
  list-style: none;
}

.pm-pp-nav li[hidden] {
  display: none;
}

.pm-pp-nav a {
  display: block;
  margin-bottom: -1px;
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
  color: var(--pm-text);
  font-size: 14px;
  font-weight: 600;
}

.pm-pp-nav a.active,
.pm-pp-nav a:hover {
  border-bottom-color: var(--pm-red);
  color: var(--pm-red);
  text-decoration: none;
}

.pm-pp-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.pm-pp-col,
.pm-pp-faq,
.pm-pp-extra {
  scroll-margin-top: 120px;
}

.pm-pp-col + .pm-pp-col {
  padding-left: 30px;
  border-left: 1px solid var(--pm-border);
}

.pm-pp-col-title,
.pm-pp-section-title {
  margin: 0 0 14px;
  color: var(--pm-text);
  font-size: 16px;
  font-weight: 800;
}

.pm-pp-section-title {
  font-size: 20px;
}

.pm-pp-desc .rte-content {
  color: var(--pm-muted);
  font-size: 14px;
}

.pm-pp-subtitle {
  margin: 16px 0 6px;
  font-weight: 700;
}

.pm-pp-attachments ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-pp-attachments a {
  color: var(--pm-red) !important;
  font-size: 13px;
}

.pm-incluye-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-incluye-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.pm-incluye-icon {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--pm-bg-soft);
  color: var(--pm-text);
  font-size: 16px;
}

.pm-incluye-txt strong {
  display: block;
  color: var(--pm-text);
  font-size: 14px;
}

.pm-incluye-txt span {
  display: block;
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pm-specs-table th,
.pm-specs-table td {
  padding: 9px 12px;
  border: 1px solid var(--pm-border);
  vertical-align: top;
}

.pm-specs-table th {
  width: 45%;
  background: var(--pm-bg-soft);
  color: var(--pm-text);
  font-weight: 600;
}

.pm-specs-table td {
  color: var(--pm-muted);
}

.pm-pp-elementor,
.pm-pp-extra,
.pm-pp-faq {
  margin-top: 36px;
}

.pm-pp-faq[hidden] {
  display: none;
}

.pm-faq-intro {
  margin-bottom: 12px;
  color: var(--pm-muted);
}

/* ==========================================================================
   Categoría
   ========================================================================== */

.pm-cat-hero {
  display: flex;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: var(--pm-radius);
  background: linear-gradient(90deg, #f3efe9 0%, #f8f6f2 100%);
}

.pm-cat-hero-media {
  flex: 0 0 34%;
  max-width: 34%;
}

.pm-cat-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-cat-hero-content {
  flex: 1 1 auto;
  padding: 36px 40px;
}

.pm-cat-hero .page-title {
  margin: 0 0 12px;
  color: var(--pm-text);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.pm-cat-hero-desc {
  position: relative;
  max-height: 4.8em;
  overflow: hidden;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

.pm-cat-hero-desc p:last-child {
  margin-bottom: 0;
}

.pm-cat-hero-desc.is-open {
  max-height: none;
}

.pm-cat-hero-more {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pm-red);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pm-cat-hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pm-cat-hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--pm-muted);
  font-size: 12px;
  line-height: 1.35;
}

.pm-cat-hero-features .fa {
  flex: 0 0 auto;
  color: var(--pm-text);
  font-size: 20px;
}

.pm-cat-hero-features strong {
  display: block;
  color: var(--pm-text);
}

.pm-cat-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding: 16px 24px;
  border: 1px solid #f3c2ca;
  border-radius: var(--pm-radius);
  background: var(--pm-red-soft);
}

.pm-cat-cta-icon {
  display: flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--pm-red);
  font-size: 24px;
}

.pm-cat-cta-txt {
  flex: 1 1 auto;
}

.pm-cat-cta-txt strong {
  display: block;
  color: var(--pm-text);
  font-size: 18px;
  font-weight: 800;
}

.pm-cat-cta-txt span {
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-cat-cta-action {
  text-align: center;
}

.pm-cat-cta-action .btn {
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 800;
}

.pm-cat-cta-action small {
  display: block;
  margin-top: 4px;
  color: var(--pm-muted);
}

/* Chips horizontales: ocultos (subcats van al sidebar) */
.pm-cat-chips {
  display: none !important;
}

/* Subcategorías en sidebar (estilo facet) */
.pm-cat-subcats {
  padding: 14px 0;
  border-top: 1px solid var(--pm-border);
}

.pm-cat-filters > .pm-cat-subcats:first-of-type,
.pm-cat-filters-head + .pm-cat-subcats {
  border-top: 0;
  padding-top: 6px;
}

.pm-cat-sidebar .pm-cat-subcats .facet-title,
.pm-cat-sidebar #search_filters .facet-title {
  position: relative;
  margin: 0 0 10px;
  padding: 0 20px 0 0;
  border: 0;
  background: none;
  color: var(--pm-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.pm-cat-sidebar .pm-cat-subcats .facet-title::after,
.pm-cat-sidebar #search_filters .facet-title::after {
  content: "\f106";
  position: absolute;
  right: 0;
  top: 0;
  font: normal normal normal 16px/1 FontAwesome;
}

.pm-cat-sidebar .pm-cat-subcats.is-collapsed .facet-title,
.pm-cat-sidebar #search_filters .facet.is-collapsed .facet-title {
  margin-bottom: 0;
}

.pm-cat-sidebar .pm-cat-subcats.is-collapsed .facet-title::after,
.pm-cat-sidebar #search_filters .facet.is-collapsed .facet-title::after {
  content: "\f107";
}

.pm-cat-sidebar .pm-cat-subcats.is-collapsed > :not(.facet-title),
.pm-cat-sidebar #search_filters .facet.is-collapsed > :not(.facet-title) {
  display: none;
}

.pm-cat-subcats-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-cat-subcats-list > li {
  margin: 0 0 6px;
}

.pm-cat-subcat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555 !important;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none !important;
}

.pm-cat-subcat-link:hover {
  color: var(--pm-red) !important;
}

.pm-cat-subcat-box {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  background: #fff;
}

.pm-cat-subcat-link.is-active .pm-cat-subcat-box,
.pm-cat-subcat-link:hover .pm-cat-subcat-box {
  border-color: var(--pm-red);
}

.pm-cat-subcat-link.is-active .pm-cat-subcat-box {
  background: var(--pm-red);
  box-shadow: inset 0 0 0 2px #fff;
}

.pm-cat-subcat-label {
  flex: 1 1 auto;
  min-width: 0;
}

.pm-cat-subcat-link .magnitude {
  margin-left: auto;
  color: #999;
  font-size: 12px;
}

.pm-cat-subcat-link.is-active {
  color: var(--pm-text) !important;
  font-weight: 600;
}

/* Barra lateral */

.pm-cat-filters,
.pm-cat-help {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
}

.pm-cat-filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pm-cat-filters-title {
  color: var(--pm-text);
  font-size: 16px;
  font-weight: 800;
}

.pm-cat-clear {
  color: var(--pm-red) !important;
  font-size: 12px;
}

.pm-cat-sidebar #search_filters .facet {
  padding: 14px 0;
  border-top: 1px solid var(--pm-border);
}

.pm-cat-sidebar #search_filters .facet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-cat-sidebar #search_filters .facet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
}

.pm-cat-sidebar #search_filters .facet-label a {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  color: var(--pm-text);
}

.pm-cat-sidebar #search_filters .magnitude {
  color: var(--pm-muted);
}

.pm-cat-sidebar #search_filters .custom-checkbox input[type="checkbox"] + span {
  border-radius: 3px;
}

.pm-cat-sidebar #search_filters .facet-label.active a {
  color: var(--pm-red);
  font-weight: 700;
}

.pm-cat-sidebar .ui-slider .ui-slider-range {
  background: var(--pm-red);
}

.pm-cat-sidebar .ui-slider .ui-slider-handle {
  border-color: var(--pm-red);
  border-radius: 50%;
  background: #fff;
}

.pm-cat-help-title {
  margin: 0 0 6px;
  color: var(--pm-text);
  font-size: 16px;
  font-weight: 800;
}

.pm-cat-help p {
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-cat-help-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pm-red) !important;
  font-size: 20px;
  font-weight: 800;
}

.pm-cat-help-hours {
  display: block;
  margin: 0 0 12px 26px;
  color: var(--pm-muted);
  font-size: 12px;
}

/* Barra superior del listado */

.pm-cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 0 0 12px;
}

.pm-cat-count {
  flex: 1 1 auto;
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-cat-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-cat-sort-label {
  color: var(--pm-muted);
  font-size: 13px;
  white-space: nowrap;
}

.pm-cat-sort .products-sort-nb-dropdown .select-title {
  min-width: 150px;
  border-color: var(--pm-border);
  border-radius: 6px;
  font-size: 13px;
}

.pm-view-switcher {
  display: flex;
  gap: 6px;
}

.pm-view-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  color: var(--pm-muted);
}

.pm-view-switcher a.current,
.pm-view-switcher a:hover {
  border-color: var(--pm-red);
  color: var(--pm-red);
}

.pm-filter-toggle {
  display: none;
}

/* Tarjetas de producto */

.pm-cat .products-grid,
#products .products-grid,
.elementor-products .products-grid,
body#index .products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
}

.pm-cat .products-grid > .js-product-miniature-wrapper,
.elementor-products .products-grid > .js-product-miniature-wrapper,
body#index .products-grid > .js-product-miniature-wrapper {
  flex: 0 0 calc((100% - 24px) / 4);
  max-width: calc((100% - 24px) / 4);
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.products-grid .product-miniature-layout-1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
  transition: box-shadow .2s;
}

.products-grid .product-miniature-layout-1:hover {
  box-shadow: var(--pm-shadow);
}

.products-grid .product-miniature-layout-1 .thumbnail-container {
  margin-bottom: 0;
}

.products-grid .product-miniature-layout-1 .product-flags .product-flag {
  border-radius: 4px;
  font-size: 11px;
}

.products-grid .product-miniature-layout-1 .product-description {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 14px 14px;
  text-align: left;
}

.products-grid .product-miniature-layout-1 .product-category-name,
.products-grid .product-miniature-layout-1 .product-reference,
.products-grid .product-miniature-layout-1 .product-description-short {
  display: none;
}

.products-grid .product-miniature-layout-1 .product-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.products-grid .product-miniature-layout-1 .product-title a {
  color: var(--pm-text);
}

.products-grid .product-miniature-layout-1 .product-price-and-shipping {
  margin-bottom: 10px;
}

.products-grid .product-miniature-layout-1 .product-price {
  color: var(--pm-text);
  font-size: 17px;
  font-weight: 800;
}

.products-grid .product-miniature-layout-1 .product-add-cart,
.products-grid .product-miniature-layout-1 .pm-btn-card,
.products-grid .product-miniature-layout-1 .boton-mas-informacion {
  margin-top: auto;
}

.products-grid .product-miniature-layout-1 .pm-btn-card,
.products-grid .product-miniature-layout-1 .boton-mas-informacion {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
}

.products-grid .product-miniature-layout-1 .boton-mas-informacion {
  border: 1px solid var(--pm-text);
  background: #fff;
  color: var(--pm-text) !important;
}

.products-grid .product-miniature-layout-1 .boton-mas-informacion i {
  margin: 0 !important;
}

.products-grid .product-miniature-layout-1 .product-add-cart,
.products-grid .product-miniature-layout-1 .product-add-cart form,
.products-grid .product-miniature-layout-1 .input-group-add-cart {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  gap: 0;
  align-self: stretch;
}

.products-grid .product-miniature-layout-1 .input-group-add-cart .input-qty {
  display: none !important;
}

.products-grid .product-miniature-layout-1 .btn-product-list {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 6px !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}

/* Paginación */

.pm-cat .pagination .page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pm-cat .pagination .page-list li a,
.pm-cat .pagination .page-list li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  color: var(--pm-text);
  font-weight: 600;
}

.pm-cat .pagination .page-list li.current a {
  border-color: var(--pm-red);
  background: var(--pm-red);
  color: #fff;
}

/* Bloques inferiores */

.pm-cat-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.pm-cat-seo {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  background: #fff;
}

.pm-cat-seo-head h2 {
  margin: 0 0 8px;
  color: var(--pm-text);
  font-size: 20px;
  font-weight: 800;
}

.pm-cat-seo-head h2::first-letter {
  text-transform: uppercase;
}

.pm-cat-seo-head p {
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-cat-seo #pm-cat-seo-source {
  margin-bottom: 12px;
  color: var(--pm-muted);
  font-size: 14px;
}

.pm-cat-doubts {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid #f3c2ca;
  border-radius: var(--pm-radius);
  background: var(--pm-red-soft);
}

.pm-cat-doubts-icon {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--pm-red);
  border-radius: 50%;
  background: #fff;
  color: var(--pm-red);
  font-size: 24px;
}

.pm-cat-doubts-title {
  margin: 0 0 8px;
  color: var(--pm-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.pm-cat-doubts p {
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-cat-doubts .btn {
  border-radius: 6px;
  font-weight: 800;
}

.pm-cat-doubts .pm-checks {
  margin-top: 16px;
}

/* ==========================================================================
   Pie
   ========================================================================== */

.pm-footer {
  padding: 40px 0 10px;
  border-top: 1px solid var(--pm-border);
  background: #fff;
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-footer .pm-footer-row > .block-iqithtmlandbanners-html {
  order: -1;
  flex: 0 0 34%;
  max-width: 34%;
}

/* Gana a #footer #iqithtmlandbanners-block-2 { text-align: center } del tema */
#footer #iqithtmlandbanners-block-2,
.pm-footer #iqithtmlandbanners-block-2,
#footer #iqithtmlandbanners-block-2 .rte-content,
#footer #iqithtmlandbanners-block-2 p,
#footer #iqithtmlandbanners-block-2 .block-content {
  text-align: left !important;
}

.pm-footer #iqithtmlandbanners-block-2 {
  padding: 0 15px;
  border-radius: 0;
  background: transparent;
}

#footer #iqithtmlandbanners-block-2 img,
.pm-footer #iqithtmlandbanners-block-2 img {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 0 0 8px;
}

.pm-footer .block-title {
  margin-bottom: 14px;
  color: var(--pm-text);
  font-size: 15px;
  font-weight: 800;
  text-transform: none;
}

.pm-footer .block-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-footer .block-content li {
  margin-bottom: 6px;
}

.pm-footer a {
  color: var(--pm-muted);
}

.pm-footer a:hover {
  color: var(--pm-red);
}

.pm-footer .block-iqitcontactpage .fa,
.pm-footer .block-iqitcontactpage i {
  color: var(--pm-red);
}

.pm-footer-social {
  padding: 10px 0 20px;
}

.pm-footer-social .social-links {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-footer-social .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pm-text);
  color: #fff !important;
}

.pm-footer-social .social-links a:hover {
  background: var(--pm-red);
}

#footer-copyrights {
  border-top: 1px solid var(--pm-border);
  background: #fff;
  color: var(--pm-muted);
  font-size: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
  .pm-cat .products-grid > .js-product-miniature-wrapper,
  .elementor-products .products-grid > .js-product-miniature-wrapper,
  body#index .products-grid > .js-product-miniature-wrapper {
    flex: 0 0 calc((100% - 16px) / 3);
    max-width: calc((100% - 16px) / 3);
  }

  .pm-cat-hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-header .col-header-center {
    padding: 0 20px;
  }
}

@media (max-width: 991.98px) {
  .pm-pp-sidebar .pm-config {
    position: static;
  }

  .pm-pp-col + .pm-pp-col {
    padding-left: 0;
    border-left: 0;
  }

  .pm-beneficios {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-cat-sidebar {
    display: none;
  }

  .pm-cat-sidebar.is-open {
    display: block;
  }

  .pm-filter-toggle {
    display: inline-flex;
  }

  .pm-cat-info,
  .pm-cat-seo {
    grid-template-columns: 1fr;
  }

  .pm-footer .pm-footer-row > .block-iqithtmlandbanners-html {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .pm-topbar-inner {
    justify-content: center;
  }

  .pm-pp .col-product-info .page-title {
    font-size: 22px;
  }

  .pm-pp-highlights {
    grid-template-columns: 1fr;
  }

  .pm-step-body {
    padding-left: 16px;
  }

  .pm-cat-hero {
    flex-direction: column;
  }

  .pm-cat-hero-media {
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 200px;
  }

  .pm-cat-hero-content {
    padding: 22px 18px;
  }

  .pm-cat-hero .page-title {
    font-size: 24px;
  }

  .pm-cat-cta {
    flex-wrap: wrap;
    padding: 16px;
  }

  .pm-cat-cta-action {
    width: 100%;
  }

  .pm-cat-cta-action .btn {
    width: 100%;
  }

  .pm-cat .products-grid > .js-product-miniature-wrapper,
  .elementor-products .products-grid > .js-product-miniature-wrapper,
  body#index .products-grid > .js-product-miniature-wrapper {
    flex: 0 0 calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }

  .pm-cat-count {
    flex-basis: 100%;
    order: 3;
  }
}

@media (max-width: 575.98px) {
  .pm-beneficios {
    grid-template-columns: 1fr;
  }

  .pm-cat-hero-features {
    grid-template-columns: 1fr;
  }

  .pm-topbar-highlight {
    padding: 2px 8px;
  }
}

/* ---------- Acabados cajoneras: 3 por fila ---------- */

body.product-id-category-15 .anfield-radio-vertical-list,
body.product-id-category-15 .anfield-checkbox-vertical-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.product-id-category-15 .anfield-radio-vertical,
body.product-id-category-15 .anfield-checkbox-vertical {
  flex: 0 0 calc((100% - 16px) / 3);
  max-width: calc((100% - 16px) / 3);
}

body.product-id-category-15 .anfield-radio-vertical .anfield-radio-vertical-inner,
body.product-id-category-15 .anfield-checkbox-vertical .anfield-checkbox-vertical-inner {
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
}

body.product-id-category-15 .anfield-radio-vertical-img-wrap,
body.product-id-category-15 .anfield-checkbox-vertical-img-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

body.product-id-category-15 .anfield-radio-vertical-img-wrap img,
body.product-id-category-15 .anfield-checkbox-vertical-img-wrap img,
body.product-id-category-15 .anfield-radio-vertical-img-wrap a,
body.product-id-category-15 .anfield-checkbox-vertical-img-wrap a {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.product-id-category-15 .js-anpf-field.an-pf-field.an-pf-field-type-radio_vertical {
  max-height: 380px;
}

/* Toggle acabados: dentro del cuadro de opciones, debajo del grid */
.pm-step-body .toggle-acabados,
.toggle-acabados {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  background: #f7f7f7;
  color: var(--pm-text) !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.pm-step-body .toggle-acabados:hover,
.toggle-acabados:hover {
  border-color: #cfcfcf;
  background: #fff;
}

.pm-step-body .toggle-acabados::before,
.toggle-acabados::before {
  content: "▾";
  font-size: 12px;
  line-height: 1;
}

.pm-step-body .toggle-acabados.is-expanded::before,
.toggle-acabados.is-expanded::before {
  content: "▴";
}

@media (max-width: 767.98px) {
  body.product-id-category-15 .anfield-radio-vertical,
  body.product-id-category-15 .anfield-checkbox-vertical {
    flex: 0 0 calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }
}

/* ---------- Tabla de descuentos ---------- */

.pm-config .product-discounts,
.pm-config .js-product-discounts {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
  overflow: hidden;
}

.pm-config .table-product-discounts {
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  table-layout: fixed;
  font-size: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.pm-config .table-product-discounts th,
.pm-config .table-product-discounts td {
  padding: 8px 6px !important;
  vertical-align: middle;
  word-break: break-word;
  white-space: normal;
}

.pm-config .table-product-discounts thead th {
  background: var(--pm-bg-soft);
  font-weight: 700;
  color: var(--pm-text);
}

/* ---------- Formulario pedir presupuesto (nueva imagen) ---------- */

#cubreFondo {
  background: rgba(34, 34, 34, 0.55) !important;
  backdrop-filter: blur(2px);
}

#popupPresupuesto {
  max-width: 720px !important;
  width: calc(100% - 32px) !important;
  top: 8% !important;
  transform: translate(-50%, 0) !important;
  padding: 28px 28px 24px !important;
  background: #fff !important;
  border: 1px solid var(--pm-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18) !important;
}

#popupPresupuesto .tituloPres {
  font-size: 22px !important;
  color: var(--pm-red) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

#popupPresupuesto .tituloPres:after {
  background: var(--pm-red) !important;
  width: 40px !important;
  height: 3px !important;
  border-radius: 2px !important;
}

#btCerrar {
  margin-top: -8px !important;
  margin-right: -8px !important;
}

#btCerrar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--pm-muted) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

#btCerrar a:hover {
  background: var(--pm-bg-soft);
  color: var(--pm-red) !important;
}

#popupPresupuesto .txtPresup {
  font-size: 14px !important;
  margin-top: 18px !important;
  color: var(--pm-text);
  font-weight: 700;
}

#popupPresupuesto ul {
  text-align: left !important;
  padding: 0;
  margin: 0;
  list-style: none;
}

#popupPresupuesto ul li {
  margin: 0 0 8px;
}

#popupPresupuesto .liNomProducto,
#popupPresupuesto .descPresup {
  padding: 12px 14px;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  background: var(--pm-bg-soft);
}

#popupPresupuesto input[type="text"],
#popupPresupuesto input[type="email"],
#popupPresupuesto textarea,
#popupPresupuesto select {
  border: 1px solid var(--pm-border) !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#popupPresupuesto input[type="text"]:focus,
#popupPresupuesto input[type="email"]:focus,
#popupPresupuesto textarea:focus,
#popupPresupuesto select:focus {
  border-color: var(--pm-red) !important;
  box-shadow: 0 0 0 3px rgba(219, 24, 54, 0.12);
  outline: none;
}

#popupPresupuesto textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

#popupPresupuesto .labelContacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#popupPresupuesto ul li.medio {
  width: 100% !important;
  display: block !important;
}

#popupPresupuesto .labelContacto label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-text);
}

#popupPresupuesto .labelContacto input {
  width: 100%;
}

#popupPresupuesto #botonEnviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px !important;
  background: var(--pm-red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}

#popupPresupuesto #botonEnviar:hover {
  background: var(--pm-red-dark);
}

#popupPresupuesto #botonEnviar:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 767.98px) {
  #popupPresupuesto {
    top: 4% !important;
    padding: 20px 16px !important;
  }

  #popupPresupuesto .labelContacto {
    grid-template-columns: 1fr;
  }
}
