/**
 * Hispadrive — listado de categoría (catálogo).
 */
body.hispadrive-category #left_column,
body.hispadrive-category #right_column {
  display: none !important;
}

body.hispadrive-category #left_column .hd-category-left-hidden,
body.hispadrive-category #left_column .stbestsellers_container,
body.hispadrive-category #left_column #search_filters_brands,
body.hispadrive-category #left_column .ps_brandlist,
body.hispadrive-category #left_column .blockproducts,
body.hispadrive-category #left_column .products-block {
  display: none !important;
}

body.hispadrive-category #columns.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

body.hispadrive-category #columns.container > .row {
  margin-left: 0;
  margin-right: 0;
}

body.hispadrive-category #center_column {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.hispadrive-category .hd-page-banner,
body.hispadrive-category [id^="page_banner_container_"] {
  width: 100%;
}

body.hispadrive-category .hd-page-banner .container,
body.hispadrive-category .hd-page-banner .container-fluid {
  max-width: none;
  padding: 0;
}

body.hispadrive-category .hd-breadcrumb__container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding: 20px var(--gutter) 0;
  box-sizing: border-box;
}

body.hispadrive-category .hd-category-page {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* Cabecera */
body.hispadrive-category .hd-category-header {
  margin-top: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ececf3;
}

body.hispadrive-category .hd-category-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
}

body.hispadrive-category .hd-listing-header__row {
  align-items: flex-start;
  flex-wrap: wrap;
}

body.hispadrive-category .hd-listing-header__logo-wrap {
  flex: none;
  align-self: flex-start;
}

body.hispadrive-category .hd-listing-header__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.hispadrive-category .hd-listing-header__row .hd-category-header__copy {
  flex: 1 1 200px;
  min-width: 0;
}

body.hispadrive-category .hd-category-header__copy {
  max-width: 640px;
}

body.hispadrive-category .hd-category-header__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

body.hispadrive-category .hd-category-header__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.1;
  text-transform: none !important;
  color: var(--color-heading);
}

body.hispadrive-category .hd-category-header__desc {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-header__desc p {
  margin: 0;
}

/* Descripciones pegadas desde el back-office (Word): quitar fondos y subrayados inline */
body.hispadrive-category .hd-category-header__desc :is(p, span, a, strong, em) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit;
  line-height: inherit;
  color: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

body.hispadrive-category .hd-category-header__desc a:hover {
  color: var(--color-cta) !important;
}

body.hispadrive-category .category-description.style_content :is(p, span, a, strong, em) {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

body.hispadrive-category .hd-category-header__count {
  margin: 0;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
}

body.hispadrive-category .hd-category-subcats {
  margin-top: 24px;
}

body.hispadrive-category .hd-category-subcats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hispadrive-category .hd-category-subcats__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #d9d9e4;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

body.hispadrive-category .hd-category-subcats__link:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
}

/* Layout */
body.hispadrive-category .hd-category-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 40px 0 0;
}

body.hispadrive-category .hd-category-sidebar {
  position: sticky;
  top: 80px;
  padding: 0;
  margin: 0;
  overflow: visible;
}

body.hispadrive-category .hd-category-filters,
body.hispadrive-category .hd-category-sidebar #search_filters_wrapper,
body.hispadrive-category .hd-category-sidebar #search_filters,
body.hispadrive-category .hd-category-sidebar #search_filters .facet {
  overflow: visible;
}

body.hispadrive-category .hd-category-filters {
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
  box-sizing: border-box;
}

body.hispadrive-category .hd-category-sidebar .block,
body.hispadrive-category .hd-category-sidebar #search_filters_wrapper,
body.hispadrive-category .hd-category-sidebar #search_filters,
body.hispadrive-category .hd-category-sidebar-featured {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.hispadrive-category .hd-category-main {
  min-width: 0;
}

/* Productos destacados (sidebar desktop) */
body.hispadrive-category .hd-category-sidebar-featured {
  margin-top: 32px;
}

body.hispadrive-category .hd-category-sidebar-featured__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-sidebar-featured__list {
  display: flex;
  flex-direction: column;
}

body.hispadrive-category .hd-category-sidebar-featured__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ececf3;
  text-decoration: none;
  color: inherit;
}

body.hispadrive-category .hd-category-sidebar-featured__row:last-child {
  border-bottom: 0;
}

body.hispadrive-category .hd-category-sidebar-featured__row:hover .hd-category-sidebar-featured__name {
  color: var(--color-cta);
}

body.hispadrive-category .hd-category-sidebar-featured__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.hispadrive-category .hd-category-sidebar-featured__thumb img {
  width: 56px;
  height: 56px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.hispadrive-category .hd-category-sidebar-featured__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

body.hispadrive-category .hd-category-sidebar-featured__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-sidebar-featured__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
}

body.hispadrive-category .hd-category-sidebar-featured__tax {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-sidebar-featured__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-cta);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
}

body.hispadrive-category .hd-category-help {
  margin-top: 24px;
  margin-left: 0;
  margin-right: 0;
  padding: 22px !important;
  border-radius: 22px;
  background: #f5f5f7;
  box-sizing: border-box;
}

body.hispadrive-category .hd-category-help__cta {
  box-sizing: border-box;
}

body.hispadrive-category .hd-category-help__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
}

body.hispadrive-category .hd-category-help__text {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-help__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: var(--color-cta);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Filtros */
body.hispadrive-category .hd-category-sidebar #search_filters_wrapper .title_block,
body.hispadrive-category .hd-category-sidebar #search_filters .sticky_facet_title,
body.hispadrive-category .hd-category-sidebar .facet-title-mobile {
  display: none !important;
}

body.hispadrive-category .hd-category-sidebar #search_filters .facet {
  margin-bottom: 28px;
}

body.hispadrive-category .hd-category-sidebar #search_filters .facet-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  border: none;
}

body.hispadrive-category .hd-category-sidebar #search_filters .facet_filter_box,
body.hispadrive-category .hd-category-sidebar #search_filters ul.facet_filter_box,
body.hispadrive-category .hd-category-filters-drawer__body .facet_filter_box {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hispadrive-category .hd-category-filters .facet_filter_box.collapse,
body.hispadrive-category .hd-category-filters-drawer__body .facet_filter_box.collapse,
body.hispadrive-category .hd-category-filters .faceted-slider.collapse,
body.hispadrive-category .hd-category-filters-drawer__body .faceted-slider.collapse {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
}

body.hispadrive-category .hd-category-sidebar #search_filters .facet-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-sidebar #search_filters .custom-input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-cta);
}

body.hispadrive-category .hd-category-sidebar #search_filters .magnitude {
  margin-left: auto;
  font-size: 13px;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-sidebar #search_filters .st-range-box input.form-control,
body.hispadrive-category .hd-category-sidebar #search_filters .facet_filter_box input[type="text"],
body.hispadrive-category .hd-category-sidebar #search_filters .facet_filter_box input[type="number"] {
  height: 40px;
  border: 1px solid #d9d9e4;
  border-radius: 12px;
  font-size: 14px;
}

body.hispadrive-category .hd-category-sidebar #search_filters .noUi-connect {
  background: var(--color-cta);
}

/* Sliders jQuery UI (ps_facetedsearch) */
body.hispadrive-category .hd-category-filters .faceted-slider,
body.hispadrive-category .hd-category-filters-drawer__body .faceted-slider {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hispadrive-category .hd-category-filters .faceted-slider > li,
body.hispadrive-category .hd-category-filters-drawer__body .faceted-slider > li {
  margin: 0;
  padding: 0;
}

body.hispadrive-category .hd-category-filters p[id^="facet_label_"],
body.hispadrive-category .hd-category-filters-drawer__body p[id^="facet_label_"] {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-filters [id^="slider-range_"],
body.hispadrive-category .hd-category-filters-drawer__body [id^="slider-range_"] {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  height: 4px !important;
  margin: 22px 0 8px;
  border: 0 !important;
  border-radius: 999px;
  background: #ececf3 !important;
  box-sizing: border-box;
}

body.hispadrive-category .hd-category-filters [id^="slider-range_"].ui-slider,
body.hispadrive-category .hd-category-filters-drawer__body [id^="slider-range_"].ui-slider {
  width: 100% !important;
}

body.hispadrive-category .hd-category-filters .ui-slider-horizontal,
body.hispadrive-category .hd-category-filters-drawer__body .ui-slider-horizontal {
  height: 4px !important;
}

body.hispadrive-category .hd-category-filters .ui-widget-header,
body.hispadrive-category .hd-category-filters-drawer__body .ui-widget-header,
body.hispadrive-category .hd-category-filters .ui-slider-range,
body.hispadrive-category .hd-category-filters-drawer__body .ui-slider-range {
  background: var(--color-cta) !important;
  border: 0 !important;
  border-radius: 999px;
}

body.hispadrive-category .hd-category-filters .ui-slider-handle,
body.hispadrive-category .hd-category-filters-drawer__body .ui-slider-handle {
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: -10px !important;
  margin-left: -10px !important;
  border: 2px solid var(--color-cta) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(43, 49, 129, 0.2);
  cursor: grab;
  outline: none;
}

body.hispadrive-category .hd-category-filters .ui-slider-handle::before,
body.hispadrive-category .hd-category-filters-drawer__body .ui-slider-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

body.hispadrive-category .hd-category-filters .ui-slider-handle:focus-visible,
body.hispadrive-category .hd-category-filters-drawer__body .ui-slider-handle:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

body.hispadrive-category .hd-category-filters .ui-slider-handle:active,
body.hispadrive-category .hd-category-filters-drawer__body .ui-slider-handle:active {
  cursor: grabbing;
}

body.hispadrive-category .hd-category-sidebar #search_filters .st-range-box .st-range-top {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

body.hispadrive-category .hd-category-sidebar #search_filters .st-range-box .st_range_inner {
  padding: 0 10px;
  margin: 0 -10px 8px;
}

body.hispadrive-category .hd-category-sidebar #search_filters .st-range-box .noUi-horizontal {
  height: 4px;
}

body.hispadrive-category .hd-category-sidebar #search_filters .st-range-box .noUi-connect {
  background: var(--color-cta);
}

body.hispadrive-category .hd-category-sidebar #search_filters .st-range-box .noUi-handle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-cta);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(43, 49, 129, 0.2);
  cursor: grab;
}

body.hispadrive-category .hd-category-sidebar #search_filters .facet-label .custom-input {
  flex-shrink: 0;
  margin: 0;
}

/* Filtros activos */
body.hispadrive-category .hd-category-active-filters #js-active-search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 20px;
}

body.hispadrive-category .hd-category-active-filters .active_filter_title {
  display: none;
}

body.hispadrive-category .hd-category-active-filters .active_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.hispadrive-category .hd-category-active-filters .active_filter_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9d9e4;
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  background: #fff;
}

body.hispadrive-category .hd-category-active-filters .js-search-filters-clear-all {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

/* Toolbar */
body.hispadrive-category .hd-category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
  padding: 0;
  border: 0 !important;
}

body.hispadrive-category .hd-category-toolbar::before,
body.hispadrive-category .hd-category-toolbar::after {
  display: none !important;
}

body.hispadrive-category .hd-category-toolbar.general_top_border,
body.hispadrive-category .hd-category-toolbar.general_bottom_border {
  border: 0 !important;
}

body.hispadrive-category .hd-category-toolbar__summary {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

body.hispadrive-category .hd-category-toolbar__filters-btn {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d9d9e4;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

body.hispadrive-category .hd-category-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.hispadrive-category .hd-category-toolbar__sort-label {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
}

body.hispadrive-category .hd-category-toolbar__sort-select {
  height: 40px;
  min-width: 180px;
  padding: 0 16px;
  border: 1px solid #d9d9e4;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: #f5f5f7;
}

body.hispadrive-category .hd-category-view-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

body.hispadrive-category .hd-category-view-switch__btn.is-active {
  background: #fff;
  color: var(--color-cta);
  box-shadow: 0 2px 8px rgba(68, 69, 88, 0.12);
}

/* Grid productos (solo cuadrícula) */
body.hispadrive-category .hd-category-product-grid:not(.is-list),
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  margin: 0;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .product_list_item,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .product_list_item {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
}

body.hispadrive-category .hd-category-product-grid::before,
body.hispadrive-category .hd-category-product-grid::after,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid::before,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid::after {
  display: none !important;
}

/* Miniatura grid (misma lógica que destacados home) */
body.hispadrive-category .hd-category-product-grid:not(.is-list) .ajax_block_product,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .ajax_block_product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_outer_box,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_outer_box {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_first_box,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_first_box {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: transparent;
  box-shadow: none;
  border: 0;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .product_img_link,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .product_img_link {
  display: block;
  width: 100%;
  height: 100%;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .front-image,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .front-image {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .back-image,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .back_image_pic,
body.hispadrive-category .hd-category-product-grid:not(.is-list) img.holder,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .product-manufacturer-logo,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .hover_fly,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .bottom_hover_fly,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .add_to_love:not(.hispadrive-product-love),
body.hispadrive-category .hd-category-product-grid:not(.is-list) .act_box_inner,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .back-image,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .back_image_pic,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) img.holder,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .product-manufacturer-logo,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .hover_fly,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .bottom_hover_fly,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .add_to_love:not(.hispadrive-product-love),
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .act_box_inner {
  display: none !important;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .act_box_cart .hispadrive-product-love,
body.hispadrive-category .hd-category-product-rows .hispadrive-product-love,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .act_box_cart .hispadrive-product-love {
  display: inline-flex !important;
  visibility: visible !important;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_second_box,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_second_box {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 0;
  text-align: left !important;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_block_align_2,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_block_align_1,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_block_align_2,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_block_align_1 {
  text-align: left !important;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .product-desc,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_mini_cate_name,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .product-desc,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_mini_cate_name {
  display: none !important;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .hispadrive-featured-brand,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .hispadrive-featured-brand {
  order: 1;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .mini_name,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .mini_name {
  order: 2;
  margin: 0;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .s_title_block,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .s_title_block {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  text-align: left;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .s_title_block a,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .s_title_block a {
  color: var(--color-text);
  text-transform: none;
  text-align: left;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .hispadrive-product-miniature .s_title_block.hispadrive-product-name a,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .hispadrive-product-miniature .s_title_block.hispadrive-product-name a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  white-space: normal !important;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .pro_kuan_box,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .pro_kuan_box {
  order: 3;
  margin: 0;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .product-price-and-shipping .price,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .product-price-and-shipping .price {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .product-price-and-shipping .tax_label,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .product-price-and-shipping .tax_label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .act_box_cart,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .act_box_cart {
  order: 4;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: auto;
  width: 100%;
  padding: 0;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .hispadrive-product-buy-row__main .ajax_add_to_cart_button,
body.hispadrive-category .hd-category-product-grid:not(.is-list) .hispadrive-product-buy-row__main .btn,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .hispadrive-product-buy-row__main .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--color-cta) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

body.hispadrive-category .hd-category-product-grid:not(.is-list) .hispadrive-featured-qv,
body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .hispadrive-featured-qv {
  order: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-text);
  background: transparent;
  border: none;
}

/* Vista lista (filas propias) */
body.hispadrive-category .hd-category-listings {
  width: 100%;
}

body.hispadrive-category .hd-category-product-grid.is-list,
body#index.hispadrive-home .stfeaturedslider_container.hispadrive-featured-grid .hd-category-product-grid.is-list {
  display: none !important;
}

body.hispadrive-category .hd-category-product-rows {
  display: none;
  width: 100%;
}

body.hispadrive-category .hd-category-listings:has(.hd-category-product-grid.is-list) .hd-category-product-rows,
body#index.hispadrive-home .stfeaturedslider_container.hispadrive-featured-grid .hd-category-listings:has(.hd-category-product-grid.is-list) .hd-category-product-rows {
  display: block;
}

body.hispadrive-category .hd-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 28px 0;
  border-bottom: 1px solid #ececf3;
  box-sizing: border-box;
}

body.hispadrive-category .hd-row__img {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

body.hispadrive-category .hd-row__img-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.hispadrive-category .hd-row__info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.hispadrive-category .hd-row__brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-muted);
}

body.hispadrive-category .hd-row__name {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.hispadrive-category .hd-row__name a {
  color: var(--color-text);
  text-decoration: none;
}

body.hispadrive-category .hd-row__name a:hover {
  color: var(--color-cta);
}

body.hispadrive-category .hd-row__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.hispadrive-category .hd-row__buy {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  min-width: 0;
}

body.hispadrive-category .hd-row__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-heading);
}

body.hispadrive-category .hd-row__tax {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

body.hispadrive-category .hd-row__buy-row .hd-row__cart {
  margin-top: 0;
}

body.hispadrive-category .hd-row__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-cta) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

body.hispadrive-category .hd-row__cart .hover_fly_btn_inner,
body.hispadrive-category .hd-row__cart .icon_btn {
  display: none;
}

body.hispadrive-category .hd-row__qv {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

body.hispadrive-category .hd-row__qv .hover_fly_btn_inner,
body.hispadrive-category .hd-row__qv .icon_btn {
  display: none;
}

/* Paginación */
body.hispadrive-category .hd-category-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: 56px;
  margin-bottom: 96px;
  padding: 0;
  float: none;
  text-align: center;
  box-sizing: border-box;
}

body.hispadrive-category .hd-category-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  float: none;
  text-align: center;
}

body.hispadrive-category .hd-category-pagination__item {
  float: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hispadrive-category .hd-category-pagination__item--spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
}

body.hispadrive-category .hd-category-pagination__spacer {
  font-size: 14px;
  line-height: 1;
  color: var(--color-muted);
}

body.hispadrive-category .hd-category-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

body.hispadrive-category a.hd-category-pagination__link:hover {
  background: #f5f5f7;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-pagination__link--current {
  background: var(--color-cta);
  color: #fff;
  cursor: default;
}

body.hispadrive-category .hd-category-pagination__icon {
  display: block;
  flex-shrink: 0;
}

body.hispadrive-category .hd-category-product-grid .front-image.hispadrive-img-placeholder,
body.hispadrive-category .hd-category-product-rows .front-image.hispadrive-img-placeholder,
body.hispadrive-category .hd-row__img .hispadrive-img-placeholder {
  opacity: 0.4;
  object-fit: contain;
}

/* Panda / Bootstrap: no desplazar la paginación Hispadrive */
body.hispadrive-category #js-product-list .bottom_pagination,
body.hispadrive-category #js-product-list-bottom-wrap .bottom_pagination,
body.hispadrive-category #js-product-list nav.pagination:not(.hd-category-pagination),
body.hispadrive-category .hd-category-main .pagination.page-list,
body.hispadrive-category .hd-category-main ul.pagination:not(.hd-category-pagination__list),
body.hispadrive-category #js-product-list-top .pagination,
body.hispadrive-category #product-list-top-wrap .top-pagination,
body.hispadrive-category #product-list-top-wrap .pagination-indicator,
body.hispadrive-category .hd-category-toolbar .pagination {
  display: none !important;
}

body.hispadrive-category .hd-category-empty {
  padding: 48px 0;
  text-align: center;
}

body.hispadrive-category .hd-category-empty__message {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--color-text);
}

body.hispadrive-category .hd-category-empty__clear {
  border-radius: 999px;
}

/* Drawer filtros (tablet/móvil) */
body.hispadrive-category .hd-category-filters-drawer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}

body.hispadrive-category .hd-category-filters-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

body.hispadrive-category .hd-category-filters-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 46, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.hispadrive-category .hd-category-filters-drawer.is-open .hd-category-filters-drawer__backdrop {
  opacity: 1;
}

body.hispadrive-category .hd-category-filters-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  padding: 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: auto;
}

body.hispadrive-category .hd-category-filters-drawer.is-open .hd-category-filters-drawer__panel {
  transform: translateX(0);
}

body.hispadrive-category .hd-category-filters-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ececf3;
}

body.hispadrive-category .hd-category-filters-drawer__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
}

body.hispadrive-category .hd-category-filters-drawer__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

body.hispadrive-category .hd-category-filters-drawer__body {
  padding: 20px;
}

body.hd-category-filters-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  body.hispadrive-category .hd-category-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.hispadrive-category .hd-category-sidebar,
  body.hispadrive-category .hd-category-sidebar-featured {
    display: none;
  }

  body.hispadrive-category .hd-category-toolbar__filters-btn {
    display: inline-flex;
  }

  body.hispadrive-category .hd-category-product-grid:not(.is-list),
  body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 767px) {
  body.hispadrive-category .hd-category-header__title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  body.hispadrive-category .hd-category-header__row {
    flex-direction: column;
    align-items: flex-start;
  }

  body.hispadrive-category .hd-category-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.hispadrive-category .hd-category-toolbar__actions {
    justify-content: space-between;
  }

  body.hispadrive-category .hd-category-product-grid:not(.is-list),
  body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
  }

  body.hispadrive-category .hd-category-product-grid:not(.is-list) .act_box_cart .ajax_add_to_cart_button,
  body.hispadrive-category .hd-category-product-grid:not(.is-list) .act_box_cart .btn,
  body#product.hispadrive-product .hd-product-related .hd-category-product-grid:not(.is-list) .act_box_cart .btn {
    width: 100%;
  }

  body.hispadrive-category .hd-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 24px 0;
  }

  body.hispadrive-category .hd-row__img {
    grid-column: 1;
    grid-row: 1;
    width: 88px;
    height: 88px;
  }

  body.hispadrive-category .hd-row__info {
    grid-column: 2;
    grid-row: 1;
  }

  body.hispadrive-category .hd-row__buy {
    grid-column: 2;
    grid-row: 2;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  body.hispadrive-category .hd-row__cart {
    width: 100%;
  }

  body.hispadrive-category .hd-category-pagination {
    margin-bottom: 64px;
  }
}
