/* ==========================================================================
   css_catalogo.css – categorías y listados de productos
   ==========================================================================
   Partes modificadas:
   - Layout grid: sidebar | cabecera | toolbar | listado (solo CSS)
   - Cabecera categoría: título, descripción SEO (1.er párrafo visible)
   - Toolbar: conteo productos + ordenación
   - Grid tarjetas 3 cols, pie crema uniforme, flags rojos, wishlist
   - Menú lateral categorías, facetas (precio/extras) y banner ayuda experta
   - Márgenes laterales max-width 1460px (sin padding en .container)

   Responsive:
   - Desktop (base): grid 3 columnas
   - Tablet ≤ 991px: grid 2 cols, cabecera apilada
   - Móvil ≤ 767px: botón Filtros arriba + modal animado desde la derecha
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ----- Desktop / base ----- */

body.page-category,
body.page-search,
body.page-prices-drop,
body.page-new-products,
body.page-best-sales,
body#category,
body#search {
  background: var(--dil-cream, #faf5eb);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  color: var(--dil-ink, #151515);
}

body.page-category #wrapper,
body.page-search #wrapper,
body.page-prices-drop #wrapper,
body.page-new-products #wrapper,
body.page-best-sales #wrapper,
body.page-category #main,
body.page-search #main,
body.page-prices-drop #main,
body.page-new-products #main,
body.page-best-sales #main {
  background: transparent;
}

/*
  Reordenar solo con CSS:
  sidebar | cabecera (título + subcategorías)
  sidebar | toolbar (resultados + orden)
  sidebar | listado
*/
body.page-category #wrapper > .container,
body#category #wrapper > .container {
  display: grid;
  grid-template-columns: minmax(14rem, 22%) 1fr;
  grid-template-areas:
    'side head'
    'side toolbar'
    'side rest';
  column-gap: 1.35rem;
  row-gap: 0;
  align-items: start;
  width: 100%;
  max-width: 1460px;
}

body.page-category #wrapper > .container > .row,
body#category #wrapper > .container > .row,
body.page-category #content-wrapper,
body#category #content-wrapper,
body.page-category #main,
body#category #main {
  display: contents;
}

body.page-category #left-column,
body#category #left-column {
  grid-area: side;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0;
}

body.page-category #js-product-list-header,
body#category #js-product-list-header {
  grid-area: head;
  justify-self: start;
  align-self: start;
  width: min(58%, 42rem);
  padding-top: 0;
  z-index: 1;
}

body.page-category #subcategories,
body#category #subcategories {
  display: none;
}

body.page-category #products,
body#category #products {
  display: contents;
}

/* Toolbar entero (conteo + orden): una sola fila del grid, sin solapar la cabecera */
body.page-category #js-product-list-top,
body#category #js-product-list-top {
  grid-area: toolbar;
  float: none;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.page-category #js-product-list,
body#category #js-product-list,
body.page-category #js-product-list-bottom,
body#category #js-product-list-bottom,
body.page-category #products > .hidden-sm-down,
body#category #products > .hidden-sm-down {
  grid-area: rest;
}

body.page-category .breadcrumb,
body#category .breadcrumb {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Cualquier pie / bloque extra del main debajo del listado */
body.page-category #main > .page-footer,
body#category #main > .page-footer {
  grid-area: rest;
  display: none;
}

/* Breadcrumb */
body.page-category .breadcrumb ol,
body#category .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-category .breadcrumb li,
body#category .breadcrumb li {
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-category .breadcrumb li a,
body#category .breadcrumb li a {
  color: var(--dil-muted, #7a7a7a);
  text-decoration: none;
}

body.page-category .breadcrumb li a:hover,
body#category .breadcrumb li a:hover {
  color: var(--dil-black, #000);
}

body.page-category .breadcrumb li::after,
body#category .breadcrumb li::after {
  content: '/';
  margin-left: 0.4rem;
  color: #c4beb2;
}

body.page-category .breadcrumb li:last-child::after,
body#category .breadcrumb li:last-child::after {
  content: none;
}

/* Sidebar categorías */
body.page-category #left-column .block-categories,
body#category #left-column .block-categories {
  margin: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--dil-white, #fff);
  border: 1px solid var(--dil-line, #ddd8ce);
  box-shadow: none;
}

body.page-category .block-categories .category-top-menu > li > a.h6,
body#category .block-categories .category-top-menu > li > a.h6 {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--dil-black, #000);
  color: var(--dil-black, #000);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

body.page-category .block-categories .category-sub-menu,
body#category .block-categories .category-sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-category .block-categories .category-sub-menu > li,
body#category .block-categories .category-sub-menu > li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid var(--dil-line, #ddd8ce);
}

body.page-category .block-categories .category-sub-menu > li:last-child,
body#category .block-categories .category-sub-menu > li:last-child {
  border-bottom: 0;
}

body.page-category .block-categories .category-sub-menu a,
body#category .block-categories .category-sub-menu a {
  display: block;
  box-sizing: border-box;
  width: calc(100% + 2.2rem);
  margin: 0 -1.1rem;
  padding: 0.7rem 1.1rem;
  color: var(--dil-ink, #151515);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.35;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

body.page-category .block-categories .category-sub-menu > li > a:hover,
body#category .block-categories .category-sub-menu > li > a:hover,
body.page-category .block-categories .category-sub-menu > li > a.is-active,
body#category .block-categories .category-sub-menu > li > a.is-active {
  background: var(--dil-cream, #faf5eb);
  color: var(--dil-black, #000);
}

body.page-category .block-categories .collapse .category-sub-menu a.category-sub-link:hover,
body#category .block-categories .collapse .category-sub-menu a.category-sub-link:hover,
body.page-category .block-categories .collapse .category-sub-menu a.category-sub-link.is-active,
body#category .block-categories .collapse .category-sub-menu a.category-sub-link.is-active {
  background: var(--dil-white, #fff);
  color: var(--dil-black, #000);
}

body.page-category .block-categories .category-sub-menu .collapse,
body#category .block-categories .category-sub-menu .collapse {
  background: var(--dil-cream, #faf5eb);
  margin: 0 -1.1rem;
  padding: 0.15rem 1.1rem 0.35rem;
}

body.page-category .block-categories .navbar-toggler,
body#category .block-categories .navbar-toggler {
  position: absolute;
  top: 0.55rem;
  right: 0;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dil-ink, #151515);
  cursor: pointer;
}

body.page-category .block-categories .navbar-toggler .material-icons,
body#category .block-categories .navbar-toggler .material-icons {
  font-size: 1.1rem;
  line-height: 1.4rem;
}

body.page-category .block-categories .category-sub-menu .category-sub-menu,
body#category .block-categories .category-sub-menu .category-sub-menu {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

body.page-category .block-categories .category-sub-menu .category-sub-menu a,
body#category .block-categories .category-sub-menu .category-sub-menu a {
  width: calc(100% + 2.2rem);
  margin: 0 -1.1rem;
  padding: 0.55rem 1.1rem 0.55rem 1.6rem;
  color: var(--dil-muted, #7a7a7a);
  font-weight: 500;
  font-size: 0.68rem;
}

/* Facetas (ps_facetedsearch) – misma tipografía/ritmo que block-categories */
body.page-category #search_filters,
body#category #search_filters,
body.page-search #search_filters,
body.page-prices-drop #search_filters,
body.page-new-products #search_filters,
body.page-best-sales #search_filters {
  margin: 1rem 0 0;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--dil-white, #fff);
  border: 1px solid var(--dil-line, #ddd8ce);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
}

body.page-category #search_filters .h6,
body#category #search_filters .h6,
body.page-search #search_filters .h6,
body.page-prices-drop #search_filters .h6,
body.page-new-products #search_filters .h6,
body.page-best-sales #search_filters .h6,
body.page-category .facet .facet-title,
body#category .facet .facet-title,
body.page-search .facet .facet-title,
body.page-prices-drop .facet .facet-title,
body.page-new-products .facet .facet-title,
body.page-best-sales .facet .facet-title {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--dil-black, #000);
  color: var(--dil-black, #000) !important;
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* Ocultar título genérico "Filtrar por" */
body.page-category #search_filters > .h6,
body#category #search_filters > .h6,
body.page-search #search_filters > .h6,
body.page-prices-drop #search_filters > .h6,
body.page-new-products #search_filters > .h6,
body.page-best-sales #search_filters > .h6,
body.page-category #search_filters > p.text-uppercase,
body#category #search_filters > p.text-uppercase,
body.page-search #search_filters > p.text-uppercase {
  display: none !important;
}

body.page-category #search_filters .facet,
body#category #search_filters .facet,
body.page-search #search_filters .facet,
body.page-prices-drop #search_filters .facet,
body.page-new-products #search_filters .facet,
body.page-best-sales #search_filters .facet,
body.page-category #left-column #search_filters .facet,
body#category #left-column #search_filters .facet {
  margin: 0 0 1rem;
  padding: 0 0 0.15rem;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.page-category #search_filters .facet:last-child,
body#category #search_filters .facet:last-child,
body.page-search #search_filters .facet:last-child,
body.page-prices-drop #search_filters .facet:last-child,
body.page-new-products #search_filters .facet:last-child,
body.page-best-sales #search_filters .facet:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

body.page-category #search_filters .facet ul,
body#category #search_filters .facet ul,
body.page-search #search_filters .facet ul,
body.page-prices-drop #search_filters .facet ul,
body.page-new-products #search_filters .facet ul,
body.page-best-sales #search_filters .facet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-category #search_filters .facet li,
body#category #search_filters .facet li,
body.page-search #search_filters .facet li,
body.page-prices-drop #search_filters .facet li,
body.page-new-products #search_filters .facet li,
body.page-best-sales #search_filters .facet li,
body.page-category #left-column #search_filters .facet ul li,
body#category #left-column #search_filters .facet ul li {
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-bottom: 0 !important;
}

body.page-category #search_filters .facet li:last-child,
body#category #search_filters .facet li:last-child,
body.page-search #search_filters .facet li:last-child,
body.page-prices-drop #search_filters .facet li:last-child,
body.page-new-products #search_filters .facet li:last-child,
body.page-best-sales #search_filters .facet li:last-child {
  border-bottom: 0 !important;
}

body.page-category #search_filters .facet .facet-label,
body#category #search_filters .facet .facet-label,
body.page-search #search_filters .facet .facet-label,
body.page-prices-drop #search_filters .facet .facet-label,
body.page-new-products #search_filters .facet .facet-label,
body.page-best-sales #search_filters .facet .facet-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  margin-left: -0.85rem;
  margin-right: -0.85rem;
  width: calc(100% + 1.7rem);
  box-sizing: border-box;
  color: var(--dil-ink, #151515);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

body.page-category #search_filters .facet .facet-label .search-link,
body#category #search_filters .facet .facet-label .search-link,
body.page-search #search_filters .facet .facet-label .search-link,
body.page-prices-drop #search_filters .facet .facet-label .search-link,
body.page-new-products #search_filters .facet .facet-label .search-link,
body.page-best-sales #search_filters .facet .facet-label .search-link,
body.page-category #search_filters .facet .facet-label a,
body#category #search_filters .facet .facet-label a,
body.page-search #search_filters .facet .facet-label a,
body.page-prices-drop #search_filters .facet .facet-label a,
body.page-new-products #search_filters .facet .facet-label a,
body.page-best-sales #search_filters .facet .facet-label a {
  flex: 1 1 auto;
  min-width: 0;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit;
  font-size: inherit !important;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none !important;
  line-height: 1.2 !important;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-category #search_filters .facet-label .magnitude,
body#category #search_filters .facet-label .magnitude,
body.page-search #search_filters .facet-label .magnitude,
body.page-prices-drop #search_filters .facet-label .magnitude,
body.page-new-products #search_filters .facet-label .magnitude,
body.page-best-sales #search_filters .facet-label .magnitude {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dil-muted, #7a7a7a);
}

body.page-category #search_filters .facet-label.active,
body#category #search_filters .facet-label.active,
body.page-search #search_filters .facet-label.active,
body.page-prices-drop #search_filters .facet-label.active,
body.page-new-products #search_filters .facet-label.active,
body.page-best-sales #search_filters .facet-label.active,
body.page-category #search_filters .facet-label:hover,
body#category #search_filters .facet-label:hover,
body.page-search #search_filters .facet-label:hover,
body.page-prices-drop #search_filters .facet-label:hover,
body.page-new-products #search_filters .facet-label:hover,
body.page-best-sales #search_filters .facet-label:hover {
  background: var(--dil-cream, #faf5eb);
  color: var(--dil-black, #000);
}

/* Anula top:-7px del módulo facetedsearch + margin-top del tema Classic */
body.page-category #search_filters .facet .facet-label .custom-checkbox,
body#category #search_filters .facet .facet-label .custom-checkbox,
body.page-search #search_filters .facet .facet-label .custom-checkbox,
body.page-prices-drop #search_filters .facet .facet-label .custom-checkbox,
body.page-new-products #search_filters .facet .facet-label .custom-checkbox,
body.page-best-sales #search_filters .facet .facet-label .custom-checkbox,
body.page-category #search_filters .facet .facet-label .custom-radio,
body#category #search_filters .facet .facet-label .custom-radio,
body.page-search #search_filters .facet .facet-label .custom-radio {
  position: relative !important;
  top: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 0.95rem;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0 !important;
  margin-right: 0 !important;
  align-self: center !important;
  line-height: 1;
  vertical-align: middle;
}

body.page-category #search_filters .custom-checkbox input[type='checkbox'],
body#category #search_filters .custom-checkbox input[type='checkbox'],
body.page-search #search_filters .custom-checkbox input[type='checkbox'] {
  position: absolute;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  margin-top: 0 !important;
}

body.page-category #search_filters .custom-checkbox span,
body#category #search_filters .custom-checkbox span,
body.page-search #search_filters .custom-checkbox span,
body.page-prices-drop #search_filters .custom-checkbox span,
body.page-new-products #search_filters .custom-checkbox span,
body.page-best-sales #search_filters .custom-checkbox span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 0.95rem !important;
  height: 0.95rem !important;
  margin: 0 !important;
  border: 1px solid var(--dil-black, #000) !important;
  border-radius: 0 !important;
  background: var(--dil-white, #fff) !important;
  vertical-align: middle;
  box-sizing: border-box;
}

body.page-category #search_filters .custom-checkbox input:checked + span,
body#category #search_filters .custom-checkbox input:checked + span,
body.page-search #search_filters .custom-checkbox input:checked + span,
body.page-prices-drop #search_filters .custom-checkbox input:checked + span,
body.page-new-products #search_filters .custom-checkbox input:checked + span,
body.page-best-sales #search_filters .custom-checkbox input:checked + span {
  background: var(--dil-black, #000) !important;
  border-color: var(--dil-black, #000) !important;
  color: #fff !important;
}

body.page-category #search_filters .custom-checkbox .checkbox-checked,
body#category #search_filters .custom-checkbox .checkbox-checked,
body.page-search #search_filters .custom-checkbox .checkbox-checked {
  display: none;
  margin: 0 !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
}

body.page-category #search_filters .custom-checkbox input:checked + span .checkbox-checked,
body#category #search_filters .custom-checkbox input:checked + span .checkbox-checked,
body.page-search #search_filters .custom-checkbox input:checked + span .checkbox-checked {
  display: block;
}

body.page-category #search_filters .faceted-slider,
body#category #search_filters .faceted-slider,
body.page-search #search_filters .faceted-slider,
body.page-prices-drop #search_filters .faceted-slider,
body.page-new-products #search_filters .faceted-slider,
body.page-best-sales #search_filters .faceted-slider {
  margin: 0;
  padding: 0.25rem 0 0.55rem;
  list-style: none;
  border-bottom: 0;
}

body.page-category #search_filters .faceted-slider li,
body#category #search_filters .faceted-slider li,
body.page-search #search_filters .faceted-slider li {
  border-bottom: 0;
  padding: 0;
}

body.page-category #search_filters .faceted-slider p,
body#category #search_filters .faceted-slider p,
body.page-search #search_filters .faceted-slider p {
  margin: 0 0 0.35rem;
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.page-category #search_filters .ui-slider,
body#category #search_filters .ui-slider,
body.page-search #search_filters .ui-slider,
body.page-prices-drop #search_filters .ui-slider,
body.page-new-products #search_filters .ui-slider,
body.page-best-sales #search_filters .ui-slider {
  height: 2px;
  margin: 1rem 0 0.5rem;
  background: var(--dil-line, #ddd8ce);
  border: 0;
}

body.page-category #search_filters .ui-slider .ui-slider-range,
body#category #search_filters .ui-slider .ui-slider-range,
body.page-search #search_filters .ui-slider .ui-slider-range {
  background: var(--dil-black, #000);
}

body.page-category #search_filters .ui-slider .ui-slider-handle,
body#category #search_filters .ui-slider .ui-slider-handle,
body.page-search #search_filters .ui-slider .ui-slider-handle {
  top: -0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0;
  border: 2px solid var(--dil-black, #000);
  background: var(--dil-white, #fff);
}

body.page-category #search_filters .clear-all-wrapper .btn,
body#category #search_filters .clear-all-wrapper .btn,
body.page-search #search_filters .clear-all-wrapper .btn {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--dil-black, #000);
  border-radius: 0;
  background: transparent;
  color: var(--dil-black, #000);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Banner ayuda experta (si_catalogbanner) */
body.page-category .si-cb,
body#category .si-cb,
body.page-search .si-cb,
body.page-prices-drop .si-cb,
body.page-new-products .si-cb,
body.page-best-sales .si-cb {
  margin: 1rem 0 0;
  padding: 1.15rem 1rem 1.2rem;
  background: var(--dil-black, #000);
  color: #fff;
  border: 1px solid var(--dil-black, #000);
}

body.page-category .si-cb__eyebrow,
body#category .si-cb__eyebrow,
body.page-search .si-cb__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--dil-yellow, #fccf27);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-category .si-cb__title,
body#category .si-cb__title,
body.page-search .si-cb__title {
  margin: 0 0 0.65rem;
  font-family: var(--dil-font-display, Oswald, Montserrat, sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

body.page-category .si-cb__text,
body#category .si-cb__text,
body.page-search .si-cb__text {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.45;
}

body.page-category .si-cb__actions,
body#category .si-cb__actions,
body.page-search .si-cb__actions,
body.page-prices-drop .si-cb__actions,
body.page-new-products .si-cb__actions,
body.page-best-sales .si-cb__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem;
}

body.page-category .si-cb__phone,
body#category .si-cb__phone,
body.page-search .si-cb__phone,
body.page-prices-drop .si-cb__phone,
body.page-new-products .si-cb__phone,
body.page-best-sales .si-cb__phone,
body.page-category .si-cb__whatsapp,
body#category .si-cb__whatsapp,
body.page-search .si-cb__whatsapp,
body.page-prices-drop .si-cb__whatsapp,
body.page-new-products .si-cb__whatsapp,
body.page-best-sales .si-cb__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-sizing: border-box;
  margin: 0;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  border: 1px solid transparent;
}

body.page-category .si-cb__phone,
body#category .si-cb__phone,
body.page-search .si-cb__phone {
  background: #fff;
  border-color: #fff;
  color: var(--dil-black, #000);
}

body.page-category .si-cb__phone:hover,
body#category .si-cb__phone:hover,
body.page-search .si-cb__phone:hover {
  background: var(--dil-yellow, #fccf27);
  border-color: var(--dil-yellow, #fccf27);
  color: var(--dil-black, #000);
}

body.page-category .si-cb__whatsapp,
body#category .si-cb__whatsapp,
body.page-search .si-cb__whatsapp,
body.page-prices-drop .si-cb__whatsapp,
body.page-new-products .si-cb__whatsapp,
body.page-best-sales .si-cb__whatsapp {
  background: var(--dil-yellow, #fccf27);
  border-color: var(--dil-yellow, #fccf27);
  color: var(--dil-black, #000) !important;
}

body.page-category .si-cb__whatsapp-icon,
body#category .si-cb__whatsapp-icon,
body.page-search .si-cb__whatsapp-icon,
body.page-category .si-cb__phone-icon,
body#category .si-cb__phone-icon,
body.page-search .si-cb__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: inherit;
  line-height: 1;
}

body.page-category .si-cb__whatsapp-icon svg,
body#category .si-cb__whatsapp-icon svg,
body.page-search .si-cb__whatsapp-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

body.page-category .si-cb__whatsapp:hover,
body#category .si-cb__whatsapp:hover,
body.page-search .si-cb__whatsapp:hover,
body.page-prices-drop .si-cb__whatsapp:hover,
body.page-new-products .si-cb__whatsapp:hover,
body.page-best-sales .si-cb__whatsapp:hover {
  background: #fff;
  border-color: #fff;
  color: var(--dil-black, #000) !important;
}

/* Cabecera categoría */
body.page-category .block-category.card,
body#category .block-category.card {
  margin: 0;
  padding: 0 0 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.page-category .block-category .h1,
body#category .block-category .h1 {
  margin: 0 0 0.85rem;
  font-family: var(--dil-font-display, Oswald, Montserrat, sans-serif);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dil-black, #000);
}

body.page-category .block-category-inner,
body#category .block-category-inner {
  position: relative;
  display: block;
}

body.page-category #category-description,
body#category #category-description {
  position: relative;
  max-width: 38rem;
  color: var(--dil-ink, #151515);
  font-size: 0.88rem;
  line-height: 1.6;
}

body.page-category #category-description p,
body#category #category-description p {
  margin: 0 0 0.85rem;
}

body.page-category #category-description p:last-child,
body#category #category-description p:last-child {
  margin-bottom: 0;
}

body.page-category #category-description a,
body#category #category-description a {
  color: var(--dil-ink, #151515);
}

body.page-category #category-description h3,
body#category #category-description h3 {
  margin: 1rem 0 0;
  color: var(--dil-black, #000);
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/*
  Solo visible: 1.er bloque de la descripción.
  El resto (párrafos, h3, etc.) y la imagen quedan en el HTML → SEO intacto.
*/
body.page-category #category-description > *:not(:first-child),
body#category #category-description > *:not(:first-child),
body.page-category .category-cover,
body#category .category-cover {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

body.page-category .category-cover img,
body#category .category-cover img {
  display: block;
  max-width: 9rem;
  height: auto;
  border: 1px solid var(--dil-line, #ddd8ce);
  background: var(--dil-white, #fff);
}

/* Eyebrow stock (cuenta de productos, sigue en HTML para SEO) */
body.page-category #js-product-list-top .total-products p,
body#category #js-product-list-top .total-products p {
  margin: 0;
  color: var(--dil-red, oklch(55% 0.19 27));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Subcategorías → botones superiores derecha (texto/enlaces en HTML) */
body.page-category #subcategories .subcategory-heading,
body#category #subcategories .subcategory-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-category #subcategories .subcategories-list,
body#category #subcategories .subcategories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-category #subcategories .subcategories-list > li,
body#category #subcategories .subcategories-list > li {
  margin: 0;
  padding: 0;
}

body.page-category #subcategories .subcategory-image,
body#category #subcategories .subcategory-image,
body.page-category #subcategories .cat_desc,
body#category #subcategories .cat_desc {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-category #subcategories h5,
body#category #subcategories h5 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body.page-category #subcategories .subcategory-name,
body#category #subcategories .subcategory-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--dil-black, #000);
  background: transparent;
  color: var(--dil-black, #000);
  font-family: var(--dil-font-display, Oswald, Montserrat, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

body.page-category #subcategories .subcategory-name:hover,
body#category #subcategories .subcategory-name:hover {
  background: var(--dil-black, #000);
  color: #fff;
}

/* Toolbar resultados / orden – anula gutters Bootstrap .row/.col */
body.page-category #js-product-list-top.products-selection,
body#category #js-product-list-top.products-selection,
body.page-category .products-selection,
body#category .products-selection {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0.75rem 0;
  border-top: 1px solid var(--dil-black, #000);
  border-bottom: 1px solid var(--dil-line, #ddd8ce);
  background: transparent;
}

body.page-category #js-product-list-top > [class*='col-'],
body#category #js-product-list-top > [class*='col-'] {
  float: none !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Conteo izquierda */
body.page-category #js-product-list-top > .total-products,
body#category #js-product-list-top > .total-products {
  flex: 1 1 auto !important;
  min-width: 0;
  margin-right: auto !important;
}

body.page-category .total-products p,
body#category .total-products p {
  margin: 0;
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Ordenar por: bloque compacto pegado al borde derecho */
body.page-category #js-product-list-top > .col-lg-7,
body#category #js-product-list-top > .col-lg-7,
body.page-category .products-selection > .col-lg-7,
body#category .products-selection > .col-lg-7 {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

body.page-category .sort-by-row,
body#category .sort-by-row,
body.page-search .sort-by-row,
body.page-prices-drop .sort-by-row,
body.page-new-products .sort-by-row,
body.page-best-sales .sort-by-row {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.75rem;
  box-sizing: border-box;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset col-* Bootstrap del label + select */
body.page-category .sort-by-row > .sort-by,
body#category .sort-by-row > .sort-by,
body.page-search .sort-by-row > .sort-by,
body.page-prices-drop .sort-by-row > .sort-by,
body.page-new-products .sort-by-row > .sort-by,
body.page-best-sales .sort-by-row > .sort-by {
  float: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: normal;
}

body.page-category .sort-by-row > .products-sort-order,
body#category .sort-by-row > .products-sort-order,
body.page-search .sort-by-row > .products-sort-order,
body.page-prices-drop .sort-by-row > .products-sort-order,
body.page-new-products .sort-by-row > .products-sort-order,
body.page-best-sales .sort-by-row > .products-sort-order {
  float: none !important;
  position: relative;
  flex: 0 0 auto !important;
  width: 14.5rem !important;
  max-width: 14.5rem !important;
  min-width: 12rem;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-category .products-sort-order .select-title,
body#category .products-sort-order .select-title,
body.page-search .products-sort-order .select-title,
body.page-prices-drop .products-sort-order .select-title,
body.page-new-products .products-sort-order .select-title,
body.page-best-sales .products-sort-order .select-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  background: var(--dil-white, #fff);
  border: 1px solid var(--dil-line, #ddd8ce);
  border-radius: 0;
  box-shadow: none;
  outline: none;
  color: var(--dil-black, #000);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.2;
}

body.page-category .products-sort-order .select-title:hover,
body#category .products-sort-order .select-title:hover,
body.page-category .products-sort-order.open .select-title,
body#category .products-sort-order.open .select-title,
body.page-category .products-sort-order .select-title:focus,
body#category .products-sort-order .select-title:focus {
  border-color: var(--dil-black, #000);
  background: var(--dil-white, #fff);
}

body.page-category .products-sort-order .select-title .material-icons,
body#category .products-sort-order .select-title .material-icons,
body.page-search .products-sort-order .select-title .material-icons,
body.page-prices-drop .products-sort-order .select-title .material-icons,
body.page-new-products .products-sort-order .select-title .material-icons,
body.page-best-sales .products-sort-order .select-title .material-icons {
  float: none !important;
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--dil-black, #000);
}

body.page-category .products-sort-order .dropdown-menu,
body#category .products-sort-order .dropdown-menu,
body.page-search .products-sort-order .dropdown-menu,
body.page-prices-drop .products-sort-order .dropdown-menu,
body.page-new-products .products-sort-order .dropdown-menu,
body.page-best-sales .products-sort-order .dropdown-menu {
  left: auto;
  right: 0;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--dil-white, #fff);
  border: 1px solid var(--dil-line, #ddd8ce);
  border-radius: 0;
  box-shadow: none;
}

body.page-category .products-sort-order .select-list,
body#category .products-sort-order .select-list,
body.page-search .products-sort-order .select-list,
body.page-prices-drop .products-sort-order .select-list,
body.page-new-products .products-sort-order .select-list,
body.page-best-sales .products-sort-order .select-list {
  padding: 0.55rem 0.75rem;
  color: var(--dil-ink, #151515);
  font-size: 0.78rem;
  text-transform: none;
}

body.page-category .products-sort-order .select-list:hover,
body#category .products-sort-order .select-list:hover,
body.page-category .products-sort-order .select-list.current,
body#category .products-sort-order .select-list.current,
body.page-search .products-sort-order .select-list:hover,
body.page-search .products-sort-order .select-list.current,
body.page-prices-drop .products-sort-order .select-list:hover,
body.page-prices-drop .products-sort-order .select-list.current,
body.page-new-products .products-sort-order .select-list:hover,
body.page-new-products .products-sort-order .select-list.current,
body.page-best-sales .products-sort-order .select-list:hover,
body.page-best-sales .products-sort-order .select-list.current {
  background: var(--dil-sand, #f7f4ee);
  color: var(--dil-black, #000);
}

/* Grid productos */
body.page-category #js-product-list .products,
body#category #js-product-list .products,
body.page-search #js-product-list .products,
body.page-prices-drop #js-product-list .products,
body.page-new-products #js-product-list .products,
body.page-best-sales #js-product-list .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  background: transparent;
  border: 0;
  gap: 0;
}

body.page-category #js-product-list .products .product,
body#category #js-product-list .products .product,
body.page-search #js-product-list .products .product,
body.page-prices-drop #js-product-list .products .product,
body.page-new-products #js-product-list .products .product,
body.page-best-sales #js-product-list .products .product,
body.page-category #js-product-list .products .product[class*='col-'],
body#category #js-product-list .products .product[class*='col-'],
body.page-search #js-product-list .products .product[class*='col-'],
body.page-prices-drop #js-product-list .products .product[class*='col-'],
body.page-new-products #js-product-list .products .product[class*='col-'],
body.page-best-sales #js-product-list .products .product[class*='col-'] {
  float: none;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  background: var(--dil-white, #fff);
  /* solapa bordes adyacentes → línea de 1px entre tarjetas */
  margin-right: -1px;
  margin-bottom: -1px;
}

body.page-category .product-miniature,
body#category .product-miniature,
body.page-search .product-miniature,
body.page-prices-drop .product-miniature,
body.page-new-products .product-miniature,
body.page-best-sales .product-miniature {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  height: auto;
}

body.page-category .product-miniature .thumbnail-container,
body#category .product-miniature .thumbnail-container,
body.page-search .product-miniature .thumbnail-container,
body.page-prices-drop .product-miniature .thumbnail-container,
body.page-new-products .product-miniature .thumbnail-container,
body.page-best-sales .product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0;
  margin: 0 !important;
  border: 1px solid var(--dil-line, #ddd8ce);
  box-shadow: none;
  overflow: visible !important;
  background: var(--dil-white, #fff);
  box-sizing: border-box;
}

body.page-category .product-miniature .thumbnail-top,
body#category .product-miniature .thumbnail-top,
body.page-search .product-miniature .thumbnail-top,
body.page-prices-drop .product-miniature .thumbnail-top,
body.page-new-products .product-miniature .thumbnail-top,
body.page-best-sales .product-miniature .thumbnail-top {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  z-index: 1;
  background: var(--dil-white, #fff);
}

body.page-category .product-miniature .product-thumbnail,
body#category .product-miniature .product-thumbnail,
body.page-search .product-miniature .product-thumbnail,
body.page-prices-drop .product-miniature .product-thumbnail,
body.page-new-products .product-miniature .product-thumbnail,
body.page-best-sales .product-miniature .product-thumbnail {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  height: auto !important;
  padding: 1rem;
  box-sizing: border-box;
}

body.page-category .product-miniature .product-thumbnail img,
body#category .product-miniature .product-thumbnail img,
body.page-search .product-miniature .product-thumbnail img,
body.page-prices-drop .product-miniature .product-thumbnail img,
body.page-new-products .product-miniature .product-thumbnail img,
body.page-best-sales .product-miniature .product-thumbnail img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

body.page-category .product-miniature .highlighted-informations,
body#category .product-miniature .highlighted-informations,
body.page-search .product-miniature .highlighted-informations,
body.page-prices-drop .product-miniature .highlighted-informations,
body.page-new-products .product-miniature .highlighted-informations,
body.page-best-sales .product-miniature .highlighted-informations {
  display: none !important;
}

body.page-category .product-miniature .quick-view,
body#category .product-miniature .quick-view,
body.page-search .product-miniature .quick-view,
body.page-prices-drop .product-miniature .quick-view,
body.page-new-products .product-miniature .quick-view,
body.page-best-sales .product-miniature .quick-view {
  color: var(--dil-ink, #151515);
  font-size: 0;
}

body.page-category .product-miniature .quick-view .material-icons,
body#category .product-miniature .quick-view .material-icons {
  font-size: 1.2rem;
}

/* Wishlist: estilo unificado en css_base (como home). Solo posición aquí. */
body.page-category .product-miniature .wishlist-button,
body#category .product-miniature .wishlist-button,
body.page-search .product-miniature .wishlist-button,
body.page-prices-drop .product-miniature .wishlist-button,
body.page-new-products .product-miniature .wishlist-button,
body.page-best-sales .product-miniature .wishlist-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
}

/* Flags / dto – sobre la imagen, sin recorte ni ancho colapsado */
body.page-category .product-miniature .product-flags,
body#category .product-miniature .product-flags,
body.page-search .product-miniature .product-flags,
body.page-prices-drop .product-miniature .product-flags,
body.page-new-products .product-miniature .product-flags,
body.page-best-sales .product-miniature .product-flags,
body.page-category .product-flags,
body#category .product-flags,
body.page-search .product-flags,
body.page-prices-drop .product-flags,
body.page-new-products .product-flags,
body.page-best-sales .product-flags {
  position: absolute !important;
  top: 0.55rem !important;
  left: 0.55rem !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 6 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: auto !important;
  max-width: calc(100% - 3.5rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.2rem;
  overflow: visible !important;
  pointer-events: none;
}

body.page-category .product-miniature .product-flags .product-flag,
body#category .product-miniature .product-flags .product-flag,
body.page-search .product-miniature .product-flags .product-flag,
body.page-prices-drop .product-miniature .product-flags .product-flag,
body.page-new-products .product-miniature .product-flags .product-flag,
body.page-best-sales .product-miniature .product-flags .product-flag,
body.page-category .product-flag,
body#category .product-flag,
body.page-search .product-flag,
body.page-prices-drop .product-flag,
body.page-new-products .product-flag,
body.page-best-sales .product-flag,
body.page-category .product-miniature .product-flags li.product-flag,
body#category .product-miniature .product-flags li.product-flag,
body.page-search .product-miniature .product-flags li.product-flag,
body.page-prices-drop .product-miniature .product-flags li.product-flag,
body.page-new-products .product-miniature .product-flags li.product-flag,
body.page-best-sales .product-miniature .product-flags li.product-flag,
body.page-category .discount-percentage,
body#category .discount-percentage,
body.page-category .discount-product,
body#category .discount-product {
  display: inline-flex !important;
  align-items: center;
  pointer-events: auto;
  margin: 0 !important;
  background: var(--dil-red, #d01b1b) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.35rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  line-height: 1.15;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow: visible !important;
}

/* Classic pone on-sale a width:100% y choca con el wishlist */
body.page-category .product-flag.on-sale,
body#category .product-flag.on-sale,
body.page-search .product-flag.on-sale,
body.page-prices-drop .product-flag.on-sale,
body.page-new-products .product-flag.on-sale,
body.page-best-sales .product-flag.on-sale,
body.page-category .product-flags li.product-flag.on-sale,
body#category .product-flags li.product-flag.on-sale,
body.page-search .product-flags li.product-flag.on-sale,
body.page-prices-drop .product-flags li.product-flag.on-sale,
body.page-new-products .product-flags li.product-flag.on-sale,
body.page-best-sales .product-flags li.product-flag.on-sale,
body.page-category .product-flags li.product-flag.out-of-stock,
body#category .product-flags li.product-flag.out-of-stock,
body.page-search .product-flags li.product-flag.out-of-stock,
body.page-prices-drop .product-flags li.product-flag.out-of-stock,
body.page-new-products .product-flags li.product-flag.out-of-stock,
body.page-best-sales .product-flags li.product-flag.out-of-stock {
  width: auto !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  text-align: left !important;
  white-space: nowrap;
  order: 0 !important;
}

/* Pie tarjeta */
body.page-category .product-miniature .product-description,
body#category .product-miniature .product-description,
body.page-search .product-miniature .product-description,
body.page-prices-drop .product-miniature .product-description,
body.page-new-products .product-miniature .product-description,
body.page-best-sales .product-miniature .product-description {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  min-height: 7.25rem;
  margin: 0;
  padding: 0.9rem 0.95rem 1rem;
  background: var(--dil-sand, #f7f4ee);
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  bottom: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

body.page-category .product-miniature .product-title,
body#category .product-miniature .product-title,
body.page-search .product-miniature .product-title,
body.page-prices-drop .product-miniature .product-title,
body.page-new-products .product-miniature .product-title,
body.page-best-sales .product-miniature .product-title {
  margin: 0 0 0.75rem;
  height: 2.6em;
  font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.page-category .product-miniature .product-title a,
body#category .product-miniature .product-title a,
body.page-search .product-miniature .product-title a,
body.page-prices-drop .product-miniature .product-title a,
body.page-new-products .product-miniature .product-title a,
body.page-best-sales .product-miniature .product-title a {
  color: var(--dil-ink, #151515);
  text-decoration: none;
}

body.page-category .product-miniature .product-title a:hover,
body#category .product-miniature .product-title a:hover {
  color: var(--dil-red, #d01b1b);
}

body.page-category .product-miniature .product-price-and-shipping,
body#category .product-miniature .product-price-and-shipping,
body.page-search .product-miniature .product-price-and-shipping,
body.page-prices-drop .product-miniature .product-price-and-shipping,
body.page-new-products .product-miniature .product-price-and-shipping,
body.page-best-sales .product-miniature .product-price-and-shipping {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.65rem;
  text-align: left;
}

body.page-category .product-miniature .price,
body#category .product-miniature .price,
body.page-search .product-miniature .price,
body.page-prices-drop .product-miniature .price,
body.page-new-products .product-miniature .price,
body.page-best-sales .product-miniature .price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dil-ink, #151515);
}

body.page-category .product-miniature .regular-price,
body#category .product-miniature .regular-price,
body.page-search .product-miniature .regular-price,
body.page-prices-drop .product-miniature .regular-price,
body.page-new-products .product-miniature .regular-price,
body.page-best-sales .product-miniature .regular-price {
  color: #9a9488;
  font-size: 0.78rem;
  text-decoration: line-through;
}

body.page-category .product-list-reviews,
body#category .product-list-reviews {
  display: none;
}

/* Paginación */
body.page-category .pagination,
body#category .pagination,
body.page-search .pagination,
body.page-prices-drop .pagination,
body.page-new-products .pagination,
body.page-best-sales .pagination {
  margin-top: 1.35rem;
  align-items: center;
}

body.page-category .pagination > div:first-child,
body#category .pagination > div:first-child,
body.page-search .pagination > div:first-child,
body.page-prices-drop .pagination > div:first-child,
body.page-new-products .pagination > div:first-child,
body.page-best-sales .pagination > div:first-child {
  color: var(--dil-muted, #7a7a7a);
  font-size: 0.78rem;
}

body.page-category .pagination .page-list,
body#category .pagination .page-list,
body.page-search .pagination .page-list,
body.page-prices-drop .pagination .page-list,
body.page-new-products .pagination .page-list,
body.page-best-sales .pagination .page-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem 0.65rem !important;
  background: var(--dil-white, #fff);
  border: 1px solid var(--dil-line, #ddd8ce);
}

body.page-category .pagination .page-list li,
body#category .pagination .page-list li,
body.page-search .pagination .page-list li,
body.page-prices-drop .pagination .page-list li,
body.page-new-products .pagination .page-list li,
body.page-best-sales .pagination .page-list li {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

body.page-category .pagination .page-list a,
body#category .pagination .page-list a,
body.page-search .pagination .page-list a,
body.page-prices-drop .pagination .page-list a,
body.page-new-products .pagination .page-list a,
body.page-best-sales .pagination .page-list a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem !important;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--dil-ink, #151515) !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

body.page-category .pagination .page-list a:hover:not(.disabled),
body#category .pagination .page-list a:hover:not(.disabled),
body.page-search .pagination .page-list a:hover:not(.disabled),
body.page-prices-drop .pagination .page-list a:hover:not(.disabled),
body.page-new-products .pagination .page-list a:hover:not(.disabled),
body.page-best-sales .pagination .page-list a:hover:not(.disabled) {
  border-color: var(--dil-line, #ddd8ce);
  background: var(--dil-sand, #f7f4ee);
  color: var(--dil-black, #000) !important;
}

body.page-category .pagination .page-list li.current a,
body#category .pagination .page-list li.current a,
body.page-search .pagination .page-list li.current a,
body.page-prices-drop .pagination .page-list li.current a,
body.page-new-products .pagination .page-list li.current a,
body.page-best-sales .pagination .page-list li.current a,
body.page-category .pagination .current a.disabled,
body#category .pagination .current a.disabled {
  min-width: 2.1rem;
  min-height: 2.1rem;
  background: var(--dil-black, #000) !important;
  border: 1px solid var(--dil-black, #000) !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
  cursor: default;
  pointer-events: none;
}

body.page-category .pagination .page-list a.next,
body#category .pagination .page-list a.next,
body.page-search .pagination .page-list a.next,
body.page-prices-drop .pagination .page-list a.next,
body.page-new-products .pagination .page-list a.next,
body.page-best-sales .pagination .page-list a.next,
body.page-category .pagination .page-list a.previous,
body#category .pagination .page-list a.previous,
body.page-search .pagination .page-list a.previous,
body.page-prices-drop .pagination .page-list a.previous,
body.page-new-products .pagination .page-list a.previous,
body.page-best-sales .pagination .page-list a.previous {
  float: none !important;
  min-width: auto;
  padding: 0.35rem 0.65rem !important;
  letter-spacing: 0 !important;
  text-transform: none;
}

body.page-category .pagination .page-list a.next .material-icons,
body#category .pagination .page-list a.next .material-icons,
body.page-category .pagination .page-list a.previous .material-icons,
body#category .pagination .page-list a.previous .material-icons {
  font-size: 1.1rem;
  line-height: 1;
}

body.page-category .pagination .page-list .spacer,
body#category .pagination .page-list .spacer,
body.page-search .pagination .page-list .spacer,
body.page-prices-drop .pagination .page-list .spacer,
body.page-new-products .pagination .page-list .spacer,
body.page-best-sales .pagination .page-list .spacer {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.25rem;
  color: var(--dil-muted, #7a7a7a);
}

/* Listados sin sidebar (search, etc.) */
body.page-search #wrapper > .container,
body.page-prices-drop #wrapper > .container,
body.page-new-products #wrapper > .container,
body.page-best-sales #wrapper > .container {
  width: 100%;
  max-width: 1460px;
}

body.page-search .breadcrumb,
body.page-prices-drop .breadcrumb,
body.page-new-products .breadcrumb,
body.page-best-sales .breadcrumb {
  margin-bottom: 1rem;
}

body.page-search .page-header h1,
body.page-prices-drop .page-header h1,
body.page-new-products .page-header h1,
body.page-best-sales .page-header h1 {
  font-family: var(--dil-font-display, Oswald, Montserrat, sans-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ==========================================================================
   Tablet ≤ 991px
   ========================================================================== */

@media (max-width: 991px) {
  body.page-category #wrapper > .container,
  body#category #wrapper > .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      'head'
      'toolbar'
      'side'
      'rest';
    column-gap: 0;
    row-gap: 0.75rem;
  }

  body.page-category #js-product-list-header,
  body#category #js-product-list-header,
  body.page-category #subcategories,
  body#category #subcategories {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  body.page-category #subcategories,
  body#category #subcategories {
    padding-top: 0.35rem;
  }

  body.page-category #subcategories .subcategories-list,
  body#category #subcategories .subcategories-list {
    justify-content: flex-start;
  }

  body.page-category #left-column,
  body#category #left-column {
    margin-bottom: 0.25rem;
  }

  body.page-category #js-product-list .products,
  body#category #js-product-list .products,
  body.page-search #js-product-list .products,
  body.page-prices-drop #js-product-list .products,
  body.page-new-products #js-product-list .products,
  body.page-best-sales #js-product-list .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-category #js-product-list .products .product,
  body#category #js-product-list .products .product,
  body.page-search #js-product-list .products .product,
  body.page-prices-drop #js-product-list .products .product,
  body.page-new-products #js-product-list .products .product,
  body.page-best-sales #js-product-list .products .product {
    width: auto;
  }

  body.page-category .block-category-inner,
  body#category .block-category-inner {
    flex-direction: column;
  }

  body.page-category .category-cover img,
  body#category .category-cover img {
    max-width: 7.5rem;
  }

  body.page-category .block-category .h1,
  body#category .block-category .h1 {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   Móvil ≤ 767px
   ========================================================================== */

@media (max-width: 767px) {
  body.page-category #wrapper > .container,
  body#category #wrapper > .container {
    grid-template-areas:
      'toolbar'
      'head'
      'rest'
      'side';
  }

  /* Toolbar: columna (el desktop usa .products-selection row+nowrap con más peso) */
  body.page-category #js-product-list-top.products-selection,
  body#category #js-product-list-top.products-selection,
  body.page-category .products-selection,
  body#category .products-selection,
  body.page-search #js-product-list-top,
  body.page-prices-drop #js-product-list-top,
  body.page-new-products #js-product-list-top,
  body.page-best-sales #js-product-list-top {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.65rem;
    margin-bottom: 0.85rem !important;
  }

  body.page-category #js-product-list-top > .col-lg-7,
  body#category #js-product-list-top > .col-lg-7,
  body.page-search #js-product-list-top > .col-lg-7,
  body.page-prices-drop #js-product-list-top > .col-lg-7,
  body.page-new-products #js-product-list-top > .col-lg-7,
  body.page-best-sales #js-product-list-top > .col-lg-7 {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    justify-content: stretch;
  }

  /* «Mostrando…» debajo de filtros/ordenar, ancho completo */
  body.page-category #js-product-list-top > .showing,
  body#category #js-product-list-top > .showing,
  body.page-search #js-product-list-top > .showing,
  body.page-prices-drop #js-product-list-top > .showing,
  body.page-new-products #js-product-list-top > .showing,
  body.page-best-sales #js-product-list-top > .showing {
    float: none !important;
    flex: 0 0 auto !important;
    order: 2;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--dil-muted, #7a7a7a);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
  }

  body.page-category #js-product-list .products,
  body#category #js-product-list .products,
  body.page-search #js-product-list .products,
  body.page-prices-drop #js-product-list .products,
  body.page-new-products #js-product-list .products,
  body.page-best-sales #js-product-list .products {
    grid-template-columns: 1fr;
  }

  body.page-category #js-product-list .products .product,
  body#category #js-product-list .products .product,
  body.page-search #js-product-list .products .product,
  body.page-prices-drop #js-product-list .products .product,
  body.page-new-products #js-product-list .products .product,
  body.page-best-sales #js-product-list .products .product {
    width: auto;
  }

  body.page-category .sort-by-row,
  body#category .sort-by-row,
  body.page-search .sort-by-row,
  body.page-prices-drop .sort-by-row,
  body.page-new-products .sort-by-row,
  body.page-best-sales .sort-by-row {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.55rem;
    width: 100% !important;
  }

  body.page-category .sort-by-row > .products-sort-order,
  body#category .sort-by-row > .products-sort-order,
  body.page-search .sort-by-row > .products-sort-order,
  body.page-prices-drop .sort-by-row > .products-sort-order,
  body.page-new-products .sort-by-row > .products-sort-order,
  body.page-best-sales .sort-by-row > .products-sort-order {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }

  /* Botón Filtros arriba del todo (ancho completo) */
  body.page-category .sort-by-row > .filter-button,
  body#category .sort-by-row > .filter-button,
  body.page-search .sort-by-row > .filter-button,
  body.page-prices-drop .sort-by-row > .filter-button,
  body.page-new-products .sort-by-row > .filter-button,
  body.page-best-sales .sort-by-row > .filter-button {
    order: -1;
    float: none !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-category #search_filter_toggler,
  body#category #search_filter_toggler,
  body.page-search #search_filter_toggler,
  body.page-prices-drop #search_filter_toggler,
  body.page-new-products #search_filter_toggler,
  body.page-best-sales #search_filter_toggler,
  body.page-category .js-search-toggler,
  body#category .js-search-toggler,
  body.page-search .js-search-toggler,
  body.page-prices-drop .js-search-toggler,
  body.page-new-products .js-search-toggler,
  body.page-best-sales .js-search-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.7rem 1rem;
    background: var(--dil-black, #000) !important;
    border: 1px solid var(--dil-black, #000) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--dil-font, Montserrat, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: none !important;
  }

  body.page-category #search_filter_toggler:hover,
  body#category #search_filter_toggler:hover,
  body.page-search #search_filter_toggler:hover,
  body.page-prices-drop #search_filter_toggler:hover,
  body.page-new-products #search_filter_toggler:hover,
  body.page-best-sales #search_filter_toggler:hover,
  body.page-category .js-search-toggler:hover,
  body#category .js-search-toggler:hover,
  body.page-search .js-search-toggler:hover,
  body.page-prices-drop .js-search-toggler:hover,
  body.page-new-products .js-search-toggler:hover,
  body.page-best-sales .js-search-toggler:hover {
    background: var(--dil-yellow, #fccf27) !important;
    border-color: var(--dil-yellow, #fccf27) !important;
    color: var(--dil-black, #000) !important;
  }

  body.page-category .sort-by-row > .products-sort-order,
  body#category .sort-by-row > .products-sort-order,
  body.page-search .sort-by-row > .products-sort-order,
  body.page-prices-drop .sort-by-row > .products-sort-order,
  body.page-new-products .sort-by-row > .products-sort-order,
  body.page-best-sales .sort-by-row > .products-sort-order {
    flex: 1 1 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  /* Modal filtros: pantalla completa, entra desde la derecha */
  body.page-category #search_filters_wrapper,
  body#category #search_filters_wrapper,
  body.page-search #search_filters_wrapper,
  body.page-prices-drop #search_filters_wrapper,
  body.page-new-products #search_filters_wrapper,
  body.page-best-sales #search_filters_wrapper {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10020;
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
    width: 100vw !important;
    width: 100dvw !important;
    max-width: none !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--dil-cream, #faf5eb) !important;
    border: 0 !important;
    box-shadow: none;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
  }

  body.page-category #search_filters_wrapper.hidden-sm-down,
  body#category #search_filters_wrapper.hidden-sm-down,
  body.page-search #search_filters_wrapper.hidden-sm-down,
  body.page-prices-drop #search_filters_wrapper.hidden-sm-down,
  body.page-new-products #search_filters_wrapper.hidden-sm-down,
  body.page-best-sales #search_filters_wrapper.hidden-sm-down {
    display: flex !important;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
  }

  body.page-category #search_filters_wrapper:not(.hidden-sm-down),
  body#category #search_filters_wrapper:not(.hidden-sm-down),
  body.page-search #search_filters_wrapper:not(.hidden-sm-down),
  body.page-prices-drop #search_filters_wrapper:not(.hidden-sm-down),
  body.page-new-products #search_filters_wrapper:not(.hidden-sm-down),
  body.page-best-sales #search_filters_wrapper:not(.hidden-sm-down) {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  body.page-category #search_filter_controls,
  body#category #search_filter_controls,
  body.page-search #search_filter_controls,
  body.page-prices-drop #search_filter_controls,
  body.page-new-products #search_filter_controls,
  body.page-best-sales #search_filter_controls {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex: 0 0 auto;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    background: var(--dil-white, #fff);
    border-bottom: 1px solid var(--dil-line, #ddd8ce);
  }

  body.page-category #search_filter_controls::before,
  body#category #search_filter_controls::before,
  body.page-search #search_filter_controls::before,
  body.page-prices-drop #search_filter_controls::before,
  body.page-new-products #search_filter_controls::before,
  body.page-best-sales #search_filter_controls::before {
    content: 'Filtros';
    margin-right: auto;
    color: var(--dil-black, #000);
    font-family: var(--dil-font-display, Oswald, Montserrat, sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
  }

  body.page-category #search_filter_controls .btn.ok,
  body#category #search_filter_controls .btn.ok,
  body.page-search #search_filter_controls .btn.ok,
  body.page-prices-drop #search_filter_controls .btn.ok,
  body.page-new-products #search_filter_controls .btn.ok,
  body.page-best-sales #search_filter_controls .btn.ok {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  body.page-category #search_filter_controls .dil-filters-close,
  body#category #search_filter_controls .dil-filters-close,
  body.page-search #search_filter_controls .dil-filters-close,
  body.page-prices-drop #search_filter_controls .dil-filters-close,
  body.page-new-products #search_filter_controls .dil-filters-close,
  body.page-best-sales #search_filter_controls .dil-filters-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--dil-red, #d01b1b);
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
  }

  body.page-category #search_filter_controls .dil-filters-close:hover,
  body#category #search_filter_controls .dil-filters-close:hover,
  body.page-search #search_filter_controls .dil-filters-close:hover,
  body.page-prices-drop #search_filter_controls .dil-filters-close:hover,
  body.page-new-products #search_filter_controls .dil-filters-close:hover,
  body.page-best-sales #search_filter_controls .dil-filters-close:hover,
  body.page-category #search_filter_controls .dil-filters-close:focus,
  body#category #search_filter_controls .dil-filters-close:focus,
  body.page-search #search_filter_controls .dil-filters-close:focus,
  body.page-prices-drop #search_filter_controls .dil-filters-close:focus,
  body.page-new-products #search_filter_controls .dil-filters-close:focus,
  body.page-best-sales #search_filter_controls .dil-filters-close:focus {
    background: transparent;
    color: var(--dil-red, #d01b1b);
    outline: 0;
    opacity: 0.75;
  }

  body.page-category #search_filter_controls .dil-filters-close__x,
  body#category #search_filter_controls .dil-filters-close__x,
  body.page-search #search_filter_controls .dil-filters-close__x,
  body.page-prices-drop #search_filter_controls .dil-filters-close__x,
  body.page-new-products #search_filter_controls .dil-filters-close__x,
  body.page-best-sales #search_filter_controls .dil-filters-close__x {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: inherit;
  }

  body.page-category #search_filter_controls .dil-filters-close .material-icons,
  body#category #search_filter_controls .dil-filters-close .material-icons,
  body.page-search #search_filter_controls .dil-filters-close .material-icons,
  body.page-prices-drop #search_filter_controls .dil-filters-close .material-icons,
  body.page-new-products #search_filter_controls .dil-filters-close .material-icons,
  body.page-best-sales #search_filter_controls .dil-filters-close .material-icons {
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
  }

  body.page-category #search_filters_wrapper #search_filters,
  body#category #search_filters_wrapper #search_filters,
  body.page-search #search_filters_wrapper #search_filters,
  body.page-prices-drop #search_filters_wrapper #search_filters,
  body.page-new-products #search_filters_wrapper #search_filters,
  body.page-best-sales #search_filters_wrapper #search_filters {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 1rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: transparent;
    border: 0;
  }

  body:has(#search_filters_wrapper:not(.hidden-sm-down)) {
    overflow: hidden;
  }

  body.page-category .block-category .h1,
  body#category .block-category .h1 {
    font-size: 1.45rem;
  }

  body.page-category #category-description,
  body#category #category-description {
    font-size: 0.84rem;
  }

  body.page-category .category-cover,
  body#category .category-cover {
    align-self: flex-start;
  }
}
