/* =========================================================================
   ecommbase — Categoría / búsqueda / listados
   -------------------------------------------------------------------------
   Ámbito: category, search, prices-drop, new-products, best-sales, manufacturer
   theme.css sigue siendo la base global; aquí van SOLO las customizaciones
   específicas de esta página/sección (sobrescribe la base por especificidad
   y orden de carga definidos en config/theme.yml).
   ========================================================================= */

/* ===== Extraido automaticamente de theme.css (reglas 100% de esta pagina) ===== */

.block-category
  .block-category-inner
  #category-description
  .page-content.page-cms
  ul,
.block-category .block-category-inner #category-description p,
.page-content.page-cms
  .block-category
  .block-category-inner
  #category-description
  ul {
  font-weight: 400;
  margin-bottom: 0;
  color: #232323;
  word-break: break-word;
}
.block-category .block-category-inner #category-description strong {
  font-weight: 400;
  color: #7a7a7a;
}
.block-category
  .block-category-inner
  #category-description
  .page-content.page-cms
  ul:first-child,
.block-category .block-category-inner #category-description p:first-child,
.page-content.page-cms
  .block-category
  .block-category-inner
  #category-description
  ul:first-child {
  margin-bottom: 1.25rem;
}
#manufacturer #main ul .brand {
  position: relative;
  width: calc(20% - 10px);
  min-width: 210px;
  padding: 10px;
  margin: 5px;
  text-align: center;
  background: #fff;
  -webkit-transition: 0.4s ease-out;
  transition: 0.4s ease-out;
}
#manufacturer #main ul .brand-products {
  display: none;
}
#manufacturer #main ul .brand-img {
  position: relative;
  width: 200px;
  margin: auto;
}
.block-category {
  min-height: initial;
  margin: 40px 0px;
}

.block-category h1 {
  font-weight: 100;
  font-size: 45px !important;
}
#amazzing_filter .compact-toggle.sticky {
    background: var(--color3);
}

button.btn-unstyle.select-title {
  border-radius: 25px;
  padding: 10px 17px;
}
body#category section#wrapper {
  background: white;
}
.af-slider .pointer {
  position: absolute;
  top: -5px;
  margin-left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 100%;
  background: var(--color3);
  cursor: pointer;
  z-index: 2;
  border: 5px solid var(--color3);
  touch-action: none;
}
.paginationextrainfo {
  margin-top: 40px;
}
.af-slider .selected-bar {
  position: absolute;
  height: 100%;
  background: var(--color3);
}
.af-slider .slider-bar {
  position: relative;
  margin: 5px 8px 14px;
  height: 4px;
  background: #EEE;
  border-radius: 5px;
  clear: both;
}
.d-flex {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.brands-sort .select-list:hover, .products-sort-order .select-list:hover, .suppliers-sort .select-list:hover {
  color: #fff;
  text-decoration: none;
  background: var(--color3);
}
#ecommgridlistcategory .show_list:hover:before, #ecommgridlistcategory .show_list.active:before, #ecommgridlistcategory .show_grid:hover:before, #ecommgridlistcategory .show_grid.active:before {
  background-color: var(--color3)!important;
}
.products-selection .sort-by {
  word-break: break-word;
  white-space: nowrap;
}
.products-sort-order {
  width: 250px;
}

/* Bloque "Descubre también" separado del listado */
#category #subcategories {
  clear: both;
  margin: 3rem 0 1rem;
  padding: 2rem 1.5rem;
  background: #f7f3ed;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
#category #subcategories .subcategory-heading {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--color3);
}
#category #subcategories ul {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
#category #subcategories ul li h3 {
  margin: 0;
  font-size: 0.875rem;
}
#category #subcategories ul li a {
  display: inline-block;
  padding: 8px 18px;
  color: var(--color3);
  background: #fff;
  border: 1px solid var(--color3);
  border-radius: 30px;
  transition: background-color .2s, color .2s;
}
#category #subcategories ul li a:hover {
  color: #fff;
  background: var(--color3);
}

/* Listado sin productos (p. ej. Ofertas cuando no hay ninguna): sin la columna lateral vacía, y título y aviso centrados */
#wrapper .row:has(#js-product-list > .page-not-found) > #left-column {
  display: none;
}
#wrapper .row:has(#js-product-list > .page-not-found) > #content-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
#main:has(#js-product-list > .page-not-found) #js-product-list-header {
  text-align: center;
}
#js-product-list > .page-not-found {
  max-width: 560px;
  margin: 1.5rem auto 3rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(26, 35, 64, .06);
}
#js-product-list > .page-not-found #search_widget {
  margin: 1.25rem auto 0;
}

/* Títulos de página (categoría, marca, ofertas, más vendidos...) en azul corporativo */
#category #main h1,
#manufacturer #main h1,
#search #main h1,
#prices-drop #main h1,
#new-products #main h1,
#best-sales #main h1,
.block-category h1 {
  color: #1a2340;
}
