/* ─── CATALOG — Category / Brand listing ─── */

body.category #wrapper,
body.manufacturer #wrapper,
body.search #wrapper {
  padding-top: 0 !important;
}

body.category #columns,
body.manufacturer #columns,
body.search #columns {
  padding-top: 32px !important;
}


/* Brand card */
.ss-brand-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}
.ss-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
  color: inherit !important;
}

/* Card image */
.ss-brand-card-img {
  aspect-ratio: 800 / 520;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ss-brand-card-img picture { display: contents; }
.ss-brand-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.ss-brand-card:hover .ss-brand-card-img img { transform: scale(1.05); }

/* Card body */
.ss-brand-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ss-brand-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.3;
}
.ss-brand-card-count {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* ── Category hero ── */
.ss-category-hero {
  position: relative;
  background: linear-gradient(135deg, #4fbbc9 0%, #FFFFFF 100%);
  overflow: hidden;
  padding: 52px 40px 48px;
}

.ss-category-hero--slim {
  padding: 16px 40px;
}
.ss-category-hero-bg {
  position: absolute;
  inset: 0;
  background: url('') center/cover no-repeat;
  opacity: .15;
}
.ss-category-hero--has-image .ss-category-hero-bg {
  opacity: .35;
}
.ss-category-hero-content {
  position: relative;
  z-index: 2;
}
.ss-category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.ss-category-breadcrumb a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.ss-category-breadcrumb a:hover { color: rgba(255,255,255,.8); }
.ss-category-breadcrumb span { color: rgba(255,255,255,.25); }
.ss-category-breadcrumb .ss-breadcrumb-current { color: rgba(255,255,255,.7); }
.ss-category-hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.ss-category-hero-meta {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1.5;
}

/* Eliminar espacio del breadcrumb de Panda en categoría y marca (lo ocultamos vía bloque Smarty) */
body.category .breadcrumb_spacing,
body.manufacturer .breadcrumb_spacing { display: none !important; }
body.category .page_heading.category_page_heading,
body.manufacturer .page_heading { display: none !important; }

/* Barra de filtros activos + contador */
.ss-active-filters-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}
.ss-active-filters-inner {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ss-active-filters-bar section#js-active-search-filters,
.ss-active-filters-bar #js-active-search-filters {
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

/* Ocultar el "Filter By" label dentro de nuestra barra */
.ss-active-filters-bar .active_filter_title,
.ss-active-filters-bar .active-filter-title { display: none !important; }
.ss-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Sort dropdown en la barra */
.ss-sort-wrap .products-sort-order { margin: 0 !important; }
.ss-sort-wrap .products-sort-order .dropdown_tri {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #111 !important;
  padding: 6px 10px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
.ss-sort-wrap .products-sort-order .dropdown_tri:hover { border-color: #bbb !important; }


/* Grid/List switcher en la barra */
.ss-view-switcher {
  /* display: flex !important; */
  align-items: center !important;
  gap: 2px !important;
}
.ss-view-switcher .grid,
.ss-view-switcher .list,
.ss-view-switcher .two-col {
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  color: #aaa !important;
  transition: color .15s, background .15s !important;
}
.ss-view-switcher .grid.selected,
.ss-view-switcher .list.selected,
.ss-view-switcher .two-col.selected { color: #111 !important; background: #f0f0f0 !important; }
.ss-view-switcher .grid:hover,
.ss-view-switcher .list:hover,
.ss-view-switcher .two-col:hover { color: #555 !important; }


.ss-product-count {
  flex-shrink: 0;
  font-size: 12px;
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

/* Ocultar sort bar original + su wrapper (ya está en nuestra barra) */
body.category #product-list-top-wrap,
body.manufacturer #product-list-top-wrap,
body.category #js-product-list-top.products-selection,
body.manufacturer #js-product-list-top.products-selection { display: none !important; }

/* Ocultar contador duplicado en paginación inferior */
body.category .bottom_pagination .product_count,
body.manufacturer .bottom_pagination .product_count { display: none !important; }

#center_column > #main > #products {
  padding-top: 0;
}

body.category #columns,
body.manufacturer #columns,
body.search #columns {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
@media (min-width: 1200px) {
  body.category #columns,
  body.manufacturer #columns,
  body.search #columns {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* ── Active filters bar ── */
#js-active-search-filters,
section#js-active-search-filters {
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 12px !important;
  border-radius: 0 !important;
}

section#js-active-search-filters.hide {
  display: none !important;
}

.active-filter-title,
.active_filter_title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1b2547 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* ps_facetedsearch active filter list */
section#js-active-search-filters ul {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

section#js-active-search-filters ul li.filter-block {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f4f4f4 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  color: #333 !important;
  font-weight: 500 !important;
}

section#js-active-search-filters ul li.filter-block a {
  color: #999 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

section#js-active-search-filters ul li.filter-block a i {
  font-size: 14px !important;
  color: #999 !important;
}

/* Panda theme active filter items */
.active_filter_item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f4f4f4 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: background .15s !important;
}
.active_filter_item:hover { background: #e8e8e8 !important; color: #111 !important; text-decoration: none !important; }
.active_filter_item i { font-size: 10px !important; color: #999 !important; }

/* Clear all */
.js-search-filters-clear-all,
#_desktop_search_filters_clear_all .js-search-filters-clear-all,
a.js-search-filters-clear-all {
  font-size: 12px !important;
  color: #333 !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 8px !important;
  border-radius: 0 !important;
  text-decoration: underline !important;
  margin-left: 4px !important;
  cursor: pointer !important;
}
.js-search-filters-clear-all:hover { color: #111 !important; }

#_desktop_search_filters_clear_all {
  display: inline-flex !important;
  align-items: center !important;
}
#_desktop_search_filters_clear_all .btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #333 !important;
  text-decoration: underline !important;
}
#_desktop_search_filters_clear_all .btn i { display: none !important; }

/* ── Sidebar (left column) ── */
#left_column .wrapper-sticky { top: 80px !important; }

/* Ocultar bloque de categorías del sidebar (block-categories) y bestsellers */
#left_column .block-categories,
#left_column #stbestsellers_container_c5d0995a29 { display: none !important; }

#left_column .main_column_box {
  background: #fff !important;
  border-radius: 10px !important;
  border: 1.5px solid #ddd !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
}

/* Título "Filter By" del bloque wrapper */
#search_filters_wrapper .title_block { display: none !important; }

/* ── Facets — cada sección = sidebar-section ── */
#search_filters {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#search_filters .sticky_facet_title { display: none !important; }

#search_filters .facet {
  border-bottom: 1.5px solid #ddd !important;
  padding: 20px !important;
  margin: 0 !important;
}
#search_filters .facet:last-child { border-bottom: none !important; }

/* Título de sección — h4 del mockup */
#search_filters .facet-title,
#search_filters .facet-title-mobile .facet-title-mobile-inner {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #111 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* En desktop usamos solo .facet-title, ocultar móvil */
@media (min-width: 992px) {
  #search_filters .facet-title-mobile { display: none !important; }
}

/* Dentro del drawer: ocultar título desktop, mostrar solo el toggle móvil */
#ss-filter-drawer-body .facet-title.hidden-md-down { display: none !important; }
#ss-filter-drawer-body .facet-title-mobile.hidden-lg-up { display: flex !important; }
#ss-filter-drawer-body .sticky_facet_title { display: none !important; }

/* Siempre expandido en desktop */
@media (min-width: 992px) {
  #search_filters .facet_filter_box,
  #search_filters ul.collapse { display: block !important; height: auto !important; overflow: visible !important; }
}

/* ── Filas de filtro — .filter-option del mockup ── */
#search_filters ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#search_filters .facet_filter_item_li {
  display: flex !important;
  align-items: center !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  list-style: none !important;
}

/* label = .filter-option wrapper */
#search_filters .facet-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  cursor: pointer !important;
  margin: 0 !important;
}

/* Checkbox nativo visible, hide custom Panda skin */
#search_filters .custom-input-box {
  position: relative !important;
  flex-shrink: 0 !important;
  width: 14px !important;
  height: 14px !important;
}
#search_filters .custom-input {
  position: static !important;
  opacity: 1 !important;
  width: 14px !important;
  height: 14px !important;
  accent-color: #333 !important;
  cursor: pointer !important;
  margin: 0 !important;
}
#search_filters .custom-input-item { display: none !important; }

/* Texto del filtro — .filter-option label */
#search_filters .facet-label ._gray-darker {
  font-size: 13px !important;
  color: #333 !important;
  text-decoration: none !important;
  flex: 1 !important;
  font-weight: 400 !important;
}
#search_filters .facet-label ._gray-darker:hover { color: #111 !important; }

/* Activo */
#search_filters .facet-label.active ._gray-darker,
#search_filters .facet_filter_item_li.active ._gray-darker { font-weight: 600 !important; color: #111 !important; }

/* Count — .count del mockup */
#search_filters .magnitude {
  font-size: 11px !important;
  color: #999 !important;
  font-weight: 400 !important;
  margin-left: 0 !important;
}

/* Slider de precio */
#search_filters .facet_price { padding: 0 !important; }
#search_filters .facet_price > ul { padding: 0 !important; }
#search_filters .facet_price li { padding: 0 !important; list-style: none !important; }
#search_filters #facet_label_28992,
#search_filters [id^="facet_label_"] {
  font-size: 12px !important;
  color: #888 !important;
  margin-bottom: 10px !important;
}
#search_filters .ui-slider {
  margin: 10px 0 8px !important;
  height: 4px !important;
  background: #e0e0e0 !important;
  border: none !important;
  border-radius: 4px !important;
}
#search_filters .ui-slider-range {
  background: #111 !important;
  border-radius: 4px !important;
}
#search_filters .ui-slider-handle {
  background: #111 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  width: 16px !important;
  height: 16px !important;
  top: -6px !important;
  margin-left: -8px !important;
  outline: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.25) !important;
}

/* Color swatches */
#search_filters .custom-input-color {
  display: none !important;
}

/* Product list top bar */
#product-list-top-wrap #product-list-top {
  border-bottom: 1px solid #e8e8e8 !important;
  padding-bottom: 16px !important;
  margin-bottom: 24px !important;
}

/* ── Reset list view — nuestros estilos solo aplican en grid ── */
body.category .products.list .ajax_block_product,
body.manufacturer .products.list .ajax_block_product,
body.search .products.list .ajax_block_product {
  display: block !important;
  flex-direction: unset !important;
}
body.category .products.list .pro_outer_box,
body.manufacturer .products.list .pro_outer_box,
body.search .products.list .pro_outer_box {
  display: block !important;
  flex-direction: unset !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px dashed #ddd !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
  width: auto !important;
  padding: 20px 0 !important;
}
body.category .products.list .pro_outer_box:hover,
body.manufacturer .products.list .pro_outer_box:hover,
body.search .products.list .pro_outer_box:hover {
  transform: none !important;
  box-shadow: none !important;
}
body.category .products.list .pro_first_box,
body.manufacturer .products.list .pro_first_box,
body.search .products.list .pro_first_box {
  aspect-ratio: 1 / 1 !important;
  width: 200px !important;
  position: relative !important;
  overflow: hidden !important;
  float: left !important;
  border-radius: 8px !important;
  background: #f0f0f0 !important;
  flex-shrink: 0 !important;
}
body.category .products.list .pro_first_box .product_img_link,
body.manufacturer .products.list .pro_first_box .product_img_link,
body.search .products.list .pro_first_box .product_img_link {
  position: absolute !important;
  inset: 0 !important;
}
body.category .products.list .pro_first_box .front-image,
body.manufacturer .products.list .pro_first_box .front-image,
body.search .products.list .pro_first_box .front-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* Wishlist y compare en list view — esquina superior derecha de la imagen */
body.category .products.list .pro_first_box .ss-card-actions,
body.manufacturer .products.list .pro_first_box .ss-card-actions,
body.search .products.list .pro_first_box .ss-card-actions {
  top: 8px !important;
  right: 8px !important;
}

/* Descripción visible en list view */
body.category .products.list .pro_second_box .product-desc,
body.manufacturer .products.list .pro_second_box .product-desc,
body.search .products.list .pro_second_box .product-desc {
  display: block !important;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.5 !important;
  margin: 8px 0 12px !important;
}

/* ── Product cards — category / manufacturer grid ── */
body.category .products.grid .ajax_block_product,
body.manufacturer .products.grid .ajax_block_product,
body.search .products.grid .ajax_block_product {
  display: flex !important;
  flex-direction: column;
  height: auto !important;
}

body.category .products.grid .pro_outer_box,
body.manufacturer .products.grid .pro_outer_box,
body.search .products.grid .pro_outer_box {
  background: #fff !important;
  border-radius: 16px !important;
  border: 1.5px solid var(--border, #ddd) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  width: 100% !important;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease !important;
}
body.category .products.grid .pro_outer_box:hover,
body.manufacturer .products.grid .pro_outer_box:hover,
body.search .products.grid .pro_outer_box:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.12) !important;
}

/* Image area */
body.category .products.grid .pro_first_box,
body.manufacturer .products.grid .pro_first_box,
body.search .products.grid .pro_first_box {
  aspect-ratio: 800 / 520 !important;
  width: 100% !important;
  background: #f0f0f0 !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
body.category .products.grid .pro_first_box .product_img_link,
body.manufacturer .products.grid .pro_first_box .product_img_link,
body.search .products.grid .pro_first_box .product_img_link {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}
body.category .products.grid .pro_first_box .front_image_pic,
body.manufacturer .products.grid .pro_first_box .front_image_pic,
body.search .products.grid .pro_first_box .front_image_pic {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
body.category .products.grid .pro_first_box .front-image,
body.manufacturer .products.grid .pro_first_box .front-image,
body.search .products.grid .pro_first_box .front-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform .45s ease !important;
}
body.category .products.grid .pro_outer_box:hover .front-image,
body.manufacturer .products.grid .pro_outer_box:hover .front-image,
body.search .products.grid .pro_outer_box:hover .front-image {
  transform: scale(1.05) !important;
}
body.category .products.grid .pro_first_box .holder,
body.manufacturer .products.grid .pro_first_box .holder,
body.search .products.grid .pro_first_box .holder { display: none !important; }

/* hover_fly — barra full-width en la parte inferior de la imagen */
body.category .products.grid .pro_first_box .hover_fly,
body.manufacturer .products.grid .pro_first_box .hover_fly {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: rgba(0,0,0,.55) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition: opacity .2s ease, transform .2s ease !important;
  z-index: 3 !important;
  border-radius: 0 !important;
}
body.category .products.grid .pro_outer_box:hover .hover_fly,
body.manufacturer .products.grid .pro_outer_box:hover .hover_fly {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
body.category .products.grid .bottom_hover_fly,
body.manufacturer .products.grid .bottom_hover_fly { display: none !important; }

/* Botones dentro del hover_fly */
body.category .products.grid .pro_first_box .hover_fly .hover_fly_btn,
body.manufacturer .products.grid .pro_first_box .hover_fly .hover_fly_btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-right: 1px solid rgba(255,255,255,.15) !important;
  transition: background .15s !important;
  cursor: pointer !important;
  background: transparent !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
}
body.category .products.grid .pro_first_box .hover_fly .hover_fly_btn:last-child,
body.manufacturer .products.grid .pro_first_box .hover_fly .hover_fly_btn:last-child { border-right: none !important; }
body.category .products.grid .pro_first_box .hover_fly .hover_fly_btn:hover,
body.manufacturer .products.grid .pro_first_box .hover_fly .hover_fly_btn:hover { background: rgba(255,255,255,.1) !important; }
body.category .products.grid .pro_first_box .hover_fly .icon_btn,
body.manufacturer .products.grid .pro_first_box .hover_fly .icon_btn { font-size: 14px !important; color: #fff !important; }
body.category .products.grid .pro_first_box .hover_fly .hover_fly_btn_inner,
body.manufacturer .products.grid .pro_first_box .hover_fly .hover_fly_btn_inner {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
/* Ocultar love y share del hover_fly — solo queremos quick view */
body.category .products.grid .pro_first_box .hover_fly .add_to_love,
body.manufacturer .products.grid .pro_first_box .hover_fly .add_to_love,
body.category .products.grid .pro_first_box .hover_fly .social_share_button,
body.manufacturer .products.grid .pro_first_box .hover_fly .social_share_button { display: none !important; }

/* Con un solo botón, que no tenga borde lateral */
body.category .products.grid .pro_first_box .hover_fly .quick-view,
body.manufacturer .products.grid .pro_first_box .hover_fly .quick-view { border-right: none !important; }

/* Contenedor de acciones top-right (wishlist + compare) */
.pro_first_box .ss-card-actions {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

/* Círculo compartido por wishlist y compare */
.pro_first_box .ss-wishlist,
.pro_first_box .ss-compare-btn {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255,255,255,.9) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(4px) !important;
}

/* Botón comparar */
.pro_first_box .ss-compare-btn .stcompare_add {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #999 !important;
  font-size: 14px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: color .2s !important;
}
.pro_first_box .ss-compare-btn .stcompare_add:hover,
.pro_first_box .ss-compare-btn .stcompare_add.st_added {
  color: #e63946 !important;
  background: none !important;
}
.pro_first_box .ss-wishlist .add_to_love {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #999 !important;
  font-size: 14px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: color .2s !important;
}
/* liked: visible en rojo */
.pro_first_box .ss-wishlist .add_to_love.st_added {
  color: #e63946 !important;
  background: none !important;
  display: flex !important;
}
/* hover sin like: rojo + corazón lleno */
.pro_first_box .ss-wishlist .add_to_love:not(.st_added):hover {
  color: #e63946 !important;
  background: none !important;
}
.pro_first_box .ss-wishlist .add_to_love:not(.st_added):hover .fto-heart-4:before {
  content: "\e8f6" !important;
}
/* hover con like: rojo + corazón vacío */
.pro_first_box .ss-wishlist .add_to_love.st_added:hover .fto-heart-4:before {
  content: "\e8e2" !important;
}
body.category .products.grid .pro_first_box .ss-wishlist .add_to_love .btn_text,
body.manufacturer .products.grid .pro_first_box .ss-wishlist .add_to_love .btn_text { display: none !important; }

/* act_box_inner — oculto, el hover_fly ya cubre quick view y acciones */
body.category .pro_second_box .act_box_inner,
body.manufacturer .pro_second_box .act_box_inner { display: none !important; }

/* Card body — list view reset */
body.category .products.list .pro_second_box,
body.manufacturer .products.list .pro_second_box,
body.search .products.list .pro_second_box {
  display: block !important;
  flex-direction: unset !important;
  flex: unset !important;
  margin-left: 220px !important;
  padding: 0 20px !important;
}

/* Card body — grid */
body.category .products.grid .pro_second_box,
body.manufacturer .products.grid .pro_second_box,
body.search .products.grid .pro_second_box,
body.category .pro_second_box,
body.manufacturer .pro_second_box,
body.search .pro_second_box {
  padding: 18px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* Brand name */
body.category .pro_list_manufacturer,
body.manufacturer .pro_list_manufacturer,
body.search .pro_list_manufacturer {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #888 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  background: none !important;
}

/* Product name */
body.category .s_title_block,
body.manufacturer .s_title_block,
body.search .s_title_block {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
}
body.category .s_title_block a,
body.manufacturer .s_title_block a,
body.search .s_title_block a { color: #111 !important; text-decoration: none !important; }
body.category .s_title_block a:hover,
body.manufacturer .s_title_block a:hover,
body.search .s_title_block a:hover { color: #555 !important; }

/* Spec pills (ss-specs / ss-spec already global, just ensure margin) */
body.category .ss-specs,
body.manufacturer .ss-specs { margin-bottom: 14px; }

/* Price + CTA footer */
body.category .ss-card-footer,
body.manufacturer .ss-card-footer,
body.search .ss-card-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 0 !important;
}

/* Hide Panda elements not needed in the card layout */
body.category .pro_second_box .product-desc,
body.manufacturer .pro_second_box .product-desc,
body.search .pro_second_box .product-desc,
body.category .pro_second_box .act_box_cart,
body.manufacturer .pro_second_box .act_box_cart,
body.search .pro_second_box .act_box_cart,
body.category .pro_second_box .hover_fly,
body.manufacturer .pro_second_box .hover_fly,
body.category .products.grid .bottom_hover_fly,
body.manufacturer .products.grid .bottom_hover_fly,
body.category .pro_second_box .countdown_wrap,
body.manufacturer .pro_second_box .countdown_wrap,
body.category .pro_second_box .pro_mini_cate_name,
body.manufacturer .pro_second_box .pro_mini_cate_name,
body.category .pro_second_box .pro_list_reference,
body.manufacturer .pro_second_box .pro_list_reference,
body.category .pro_second_box .product_variants,
body.manufacturer .pro_second_box .product_variants,
body.category .pro_second_box .rating-box,
body.manufacturer .pro_second_box .rating-box { display: none !important; }

/* Card footer: precio arriba, botón debajo a ancho completo */
body.category .ss-card-price,
body.manufacturer .ss-card-price,
body.search .ss-card-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  align-self: center !important;
}

body.category .ss-card-price .regular-price,
body.manufacturer .ss-card-price .regular-price,
body.search .ss-card-price .regular-price {
  align-self: center !important;
}

body.category .ss-card-footer .ss-btn-cart,
body.category .ss-card-footer .ss-btn-view,
body.manufacturer .ss-card-footer .ss-btn-cart,
body.manufacturer .ss-card-footer .ss-btn-view,
body.search .ss-card-footer .ss-btn-cart,
body.search .ss-card-footer .ss-btn-view {
  width: 100% !important;
  justify-content: center !important;
  flex-shrink: unset !important;
}

/* Standard act_box_cart — keep visible, styled as ss-btn-cart */
body.category .act_box_cart .btn-default,
body.manufacturer .act_box_cart .btn-default {
  flex-shrink: 0;
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background .2s, transform .2s !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
body.category .act_box_cart .btn-default:hover,
body.manufacturer .act_box_cart .btn-default:hover {
  background: #333 !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}



/* Ocultar bloque de valoraciones duplicado bajo el precio (ya aparecen arriba) */
.product-comments-additional-info {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   Productos relacionados en ficha de producto (.ss-related-section)
══════════════════════════════════════════════════════════════════ */

/* Section containers — reset Panda defaults */
.ss-related-section .category_products_container,
.ss-related-section .crossselling_products_container {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  width: 100%;
  max-width: none;
}
.ss-related-section .products_section,
.ss-related-section .products_slider { padding: 0; margin: 0; }
.ss-related-section .block_content {
  margin: 0;
  padding: 8px 0 16px;
  overflow: hidden;
}

/* Section title */
.ss-related-section .title_block {
  padding: 0 0 28px;
  border: none;
  background: none;
  box-shadow: none;
  justify-content: center;
}
.ss-related-section .title_block_inner {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -.3px;
  text-transform: none;
  line-height: 1.2;
  text-align: center;
  flex: none;
}
.ss-related-section .title_flex_left,
.ss-related-section .title_flex_right { display: none; }
.ss-related-section .title_block_inner::before,
.ss-related-section .title_block_inner::after { display: none; }

/* Swiper — stretch slides to equal height, allow gap to show */
.ss-related-section .swiper-container {
  padding-bottom: 12px;
  overflow: visible;
}
.ss-related-section .swiper-wrapper { align-items: stretch; }
.ss-related-section .swiper-slide {
  padding: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Card article */
.ss-related-section .ajax_block_product {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Card outer */
.ss-related-section .pro_outer_box {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--border, #ddd);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}
.ss-related-section .pro_outer_box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
}

/* Image area */
.ss-related-section .pro_first_box {
  aspect-ratio: 800 / 520;
  width: 100%;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ss-related-section .pro_first_box .product_img_link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ss-related-section .pro_first_box .front_image_pic {
  display: block;
  width: 100%;
  height: 100%;
}
.ss-related-section .pro_first_box .front-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.ss-related-section .pro_outer_box:hover .front-image { transform: scale(1.05); }
.ss-related-section .pro_first_box .holder { display: none !important; }

/* hover_fly overlay */
.ss-related-section .pro_first_box .hover_fly {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 3;
  border-radius: 0;
}
.ss-related-section .pro_outer_box:hover .hover_fly { opacity: 1; transform: translateY(0); }
.ss-related-section .bottom_hover_fly { display: none !important; }
.ss-related-section .pro_first_box .hover_fly .hover_fly_btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.15);
  border-top: none;
  border-bottom: none;
  border-left: none;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}
.ss-related-section .pro_first_box .hover_fly .hover_fly_btn:last-child { border-right: none; }
.ss-related-section .pro_first_box .hover_fly .hover_fly_btn:hover { background: rgba(255,255,255,.1); }
.ss-related-section .pro_first_box .hover_fly .add_to_love,
.ss-related-section .pro_first_box .hover_fly .social_share_button { display: none !important; }
.ss-related-section .pro_first_box .hover_fly .quick-view { border-right: none; }

/* Card actions (heart/compare icons) */
.ss-related-section .ss-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ss-related-section .ss-card-actions .ss-wishlist a,
.ss-related-section .ss-card-actions .ss-compare-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  color: #111;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.ss-related-section .ss-card-actions .ss-wishlist a:hover,
.ss-related-section .ss-card-actions .ss-compare-btn a:hover { background: #fff; }

/* Card body */
.ss-related-section .pro_second_box {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ss-related-section .pro_kuan_box { padding: 0; margin: 0; background: none; border: none; }
.ss-related-section .mini_name { display: block; margin: 0 0 4px; }
.ss-related-section .pro_list_manufacturer {
  font-size: 10px;
  font-weight: 800;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 0;
  background: none;
}
.ss-related-section .s_title_block {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.3;
}
.ss-related-section .s_title_block a { color: #111; text-decoration: none; }
.ss-related-section .s_title_block a:hover { color: #555; }
.ss-related-section .ss-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

/* Hide Panda elements we don't use — needs !important to beat Panda's own display rules */
.ss-related-section .pro_second_box .act_box_inner,
.ss-related-section .pro_second_box .product-list-reviews,
.ss-related-section .pro_second_box .product-desc,
.ss-related-section .pro_second_box .act_box_cart,
.ss-related-section .pro_second_box .hover_fly,
.ss-related-section .pro_second_box .countdown_wrap,
.ss-related-section .pro_second_box .pro_mini_cate_name,
.ss-related-section .pro_second_box .pro_list_reference,
.ss-related-section .pro_second_box .product_variants,
.ss-related-section .pro_second_box .rating-box { display: none !important; }

/* CTA buttons (our own classes — no !important needed) */
.ss-related-section .ss-btn-cart,
.ss-related-section .ss-btn-view {
  flex-shrink: 0;
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.ss-related-section .ss-btn-cart:hover,
.ss-related-section .ss-btn-view:hover {
  background: #333;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Brand + features en miniatura ── */
.ss-card-brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: 4px;
}

.ss-card-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.ss-card-feature-tag {
  display: inline-block;
  font-size: 11px;
  background: #f0f0f0;
  color: #444;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ── Product comparison page ─────────────────────────────── */

.ss-compare-wrap {
  margin: 0 auto;
  padding: 32px 2% 60px;
  box-sizing: border-box;
  width: 100%;
}

.ss-compare-wrap .stcompare_table {
  width: 100%;
  max-width: 100%;
}

.ss-compare-wrap .stcompare_table .table {
  width: 100%;
  table-layout: fixed;
}

@media (max-width: 991px) {
  .ss-compare-wrap {
    padding: 20px 16px 40px;
  }
}

/* Search: título más pequeño en el slim */
body.search .ss-category-hero--slim .ss-category-hero-title {
  font-size: 28px;
  letter-spacing: -.5px;
}

@media (max-width: 768px) {
  /* En mobile el hero slim se reduce a solo breadcrumb */
  .ss-category-hero--slim {
    padding: 8px 16px;
  }
  .ss-category-hero--slim .ss-category-breadcrumb {
    margin-bottom: 0;
  }
  .ss-category-hero--slim .ss-category-hero-meta,
  .ss-category-hero--slim .ss-category-hero-title {
    display: none;
  }
  /* Search es la excepción: mantiene título pequeño y meta */
  body.search .ss-category-hero--slim .ss-category-hero-title {
    display: block;
    font-size: 18px;
    letter-spacing: -.3px;
    margin: 4px 0 0;
  }
  body.search .ss-category-hero--slim .ss-category-hero-meta {
    display: block;
    font-size: 12px;
    margin-top: 2px;
  }

  /* ── Ocultar botón "Left column" y sidebar en mobile ── */
  #switch_left_column_wrap,
  #switch_right_column_wrap {
    display: none !important;
  }
  /* left_column oculto visualmente pero accesible para JS */
  #left_column {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    pointer-events: none !important;
  }

  /* ── Botón Filtros mobile ── */
  .ss-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #111;
    border-radius: 20px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    letter-spacing: .2px;
  }
  .ss-filter-count {
    background: #111;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
  }

  /* ── Overlay ── */
  .ss-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
  }
  .ss-filter-overlay.active { display: block; }

  /* ── Drawer ── */
  .ss-filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s ease;
  }
  .ss-filter-drawer.active { transform: translateY(0); }

  .ss-filter-drawer-header {
    display: flex;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
  }
  .ss-filter-drawer-header h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: #111;
  }
  .ss-filter-clear {
    background: none;
    border: none;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    padding: 0 12px 0 0;
    text-decoration: underline;
  }
  .ss-filter-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #111;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  .ss-filter-drawer-body {
    overflow-y: auto;
    flex: 1;
    padding: 0 20px;
  }

  /* Facetas dentro del drawer */
  .ss-filter-drawer-body #search_filters {
    border: none !important;
    padding: 0 !important;
  }
  .ss-filter-drawer-body #search_filters > p { display: none !important; }
  .ss-filter-drawer-body .facet {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 14px 0 !important;
  }
  .ss-filter-drawer-body .facet:last-child { border-bottom: none !important; }

  .ss-filter-drawer-footer {
    padding: 12px 20px 24px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
  }
  .ss-filter-apply {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
}

/* Botón filtros: oculto en desktop, visible en mobile */
.ss-filter-btn { display: none; }
.ss-filter-overlay { display: none; }
.ss-filter-drawer { display: none; }

/* Botón 2-col solo mobile */
@media (min-width: 769px) {
  .ss-view-switcher .two-col { display: none !important; }
}

@media (max-width: 768px) {
  .ss-filter-btn { display: inline-flex; }
  .ss-filter-overlay { display: none; }
  .ss-filter-drawer { display: flex; flex-direction: column; }
  .ss-product-count { display: none !important; }
  .ss-view-switcher .two-col { display: flex !important; }
  /* Ocultar el contenedor horizontal de facetas en móvil (JS los mueve al drawer) */
  #horizontal_filters_wrap { display: none !important; }
  #search_filters_wrapper { display: none !important; }

  /* Contenedor principal: padding lateral reducido */
  body.category #columns,
  body.manufacturer #columns,
  body.search #columns {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Quitar max-width de Panda en modo grid (no lista) */
  .products.product_list.grid:not(.list) .pro_outer_box {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Modo lista en mobile */
  body.category .products.list .product_list_item,
  body.manufacturer .products.list .product_list_item,
  body.search .products.list .product_list_item {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  body.category .products.list .pro_outer_box,
  body.manufacturer .products.list .pro_outer_box,
  body.search .products.list .pro_outer_box {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 0 !important;
  }
  body.category .products.list .pro_first_box,
  body.manufacturer .products.list .pro_first_box,
  body.search .products.list .pro_first_box {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    aspect-ratio: 1 / 1 !important;
    float: none !important;
    flex-shrink: 0 !important;
  }
  body.category .products.list .pro_second_box,
  body.manufacturer .products.list .pro_second_box,
  body.search .products.list .pro_second_box {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    margin-left: 12px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Ocultar descripción en lista mobile — demasiado texto */
  body.category .products.list .pro_second_box .product-desc,
  body.manufacturer .products.list .pro_second_box .product-desc,
  body.search .products.list .pro_second_box .product-desc {
    display: none !important;
  }
  /* Nombre más pequeño en lista mobile */
  body.category .products.list .pro_second_box .s_title_block,
  body.manufacturer .products.list .pro_second_box .s_title_block,
  body.search .products.list .pro_second_box .s_title_block {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  /* Sin características en modo lista mobile */
  body.category .products.list .ss-card-features,
  body.manufacturer .products.list .ss-card-features,
  body.search .products.list .ss-card-features {
    display: none !important;
  }

  /* Ocultar acciones de la imagen en modo lista mobile */
  body.category .products.list .pro_first_box .ss-card-actions,
  body.manufacturer .products.list .pro_first_box .ss-card-actions,
  body.search .products.list .pro_first_box .ss-card-actions {
    display: none !important;
  }
  /* Ocultar bloque quick view / love / share de Panda en lista mobile */
  body.category .products.list .act_box_inner,
  body.manufacturer .products.list .act_box_inner,
  body.search .products.list .act_box_inner {
    display: none !important;
  }
  /* Ocultar botones del ss-card-brand en modos NO lista */
  .products:not(.list) .ss-card-actions-list {
    display: none !important;
  }
  /* Mostrar en modo lista */
  .products.list .ss-card-actions-list {
    display: flex !important;
  }
  /* Marca + acciones en la misma línea */
  body.category .products.list .ss-card-brand,
  body.manufacturer .products.list .ss-card-brand,
  body.search .products.list .ss-card-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  /* Acciones dentro de ss-card-brand en modo lista */
  body.category .products.list .ss-card-brand .ss-card-actions,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions,
  body.search .products.list .ss-card-brand .ss-card-actions {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    gap: 4px !important;
    margin-left: auto !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body.category .products.list .ss-card-brand .ss-card-actions .ss-wishlist,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions .ss-wishlist,
  body.search .products.list .ss-card-brand .ss-card-actions .ss-wishlist,
  body.category .products.list .ss-card-brand .ss-card-actions .ss-compare-btn,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions .ss-compare-btn,
  body.search .products.list .ss-card-brand .ss-card-actions .ss-compare-btn {
    display: flex !important;
    width: 24px !important;
    height: 24px !important;
  }
  body.category .products.list .ss-card-brand .ss-card-actions a,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions a,
  body.search .products.list .ss-card-brand .ss-card-actions a {
    width: 24px !important;
    height: 24px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.12) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #bbb !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body.category .products.list .ss-card-brand .ss-card-actions .add_to_love.st_added,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions .add_to_love.st_added,
  body.search .products.list .ss-card-brand .ss-card-actions .add_to_love.st_added {
    color: #e74c3c !important;
  }
  body.category .products.list .ss-card-brand .ss-card-actions .stcompare_add.st_added,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions .stcompare_add.st_added,
  body.search .products.list .ss-card-brand .ss-card-actions .stcompare_add.st_added {
    color: #e74c3c !important;
  }
  body.category .products.list .ss-card-brand .ss-card-actions .btn_text,
  body.manufacturer .products.list .ss-card-brand .ss-card-actions .btn_text,
  body.search .products.list .ss-card-brand .ss-card-actions .btn_text {
    display: none !important;
  }

  /* Eliminar gutters Bootstrap del row (no lista) */
  .products.product_list.row:not(.list) {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Grid 1-col: cada item ocupa todo el ancho, sin padding Bootstrap */
  .products.product_list.grid:not(.list):not(.ss-grid-2col) .product_list_item,
  .products.product_list.row:not(.list):not(.ss-grid-2col) .product_list_item {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
  }

  /* Sobrescribir padding de col-* de Bootstrap en modo grid */
  .products.product_list.grid:not(.list):not(.ss-grid-2col) [class*="col-"],
  .products.product_list.row:not(.list):not(.ss-grid-2col) [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 2-col: footer en columna para que el botón no se corte */
  .products.product_list.ss-grid-2col .ss-card-features { display: none !important; }

  .products.product_list.ss-grid-2col .ss-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .products.product_list.ss-grid-2col .ss-card-price {
    text-align: center;
  }
  .products.product_list.ss-grid-2col .ss-btn-cart,
  .products.product_list.ss-grid-2col .ss-btn-view {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* 2-col: gutters pequeños */
  .products.product_list.ss-grid-2col.row {
    margin-left: -4px !important;
    margin-right: -4px !important;
  }
  .products.product_list.ss-grid-2col .product_list_item {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* ── Slider productos relacionados (ss-related-slider) ── */
.ss-related-slider-wrap { margin-top: 48px; }

.ss-related-slider-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

/* track: position:relative para las flechas, SIN overflow:hidden */
.ss-related-slider-track { position: relative; }

/* flechas absolutas dentro del track, centradas verticalmente sobre el swiper */
.ss-related-prev,
.ss-related-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  padding: 0;
  color: #111;
}
.ss-related-prev { left: -19px; }
.ss-related-next { right: -19px; }
.ss-related-prev:hover,
.ss-related-next:hover { background: #111; color: #fff; }
.ss-related-prev.swiper-button-disabled,
.ss-related-next.swiper-button-disabled { opacity: 0; pointer-events: none; }

/* ocultar corazón duplicado en la fila de marca */
#ss-related-slider .ss-card-brand .ss-card-actions { display: none !important; }

/* botón ancho completo en el slider */
#ss-related-slider .ss-card-footer { flex-direction: column; gap: 8px; }
#ss-related-slider .ss-btn-cart,
#ss-related-slider .ss-btn-view {
  width: 100%;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

/* marca y nombre centrados */
#ss-related-slider .ss-card-brand,
#ss-related-slider .ss-card-brand-name,
#ss-related-slider .mini_name,
#ss-related-slider .s_title_block { text-align: center; }

/* precio: apilado y centrado */
#ss-related-slider .ss-card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
#ss-related-slider .ss-card-price .regular-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

/* swiper tiene overflow:hidden para cortar las tarjetas */
.ss-related-swiper { overflow: hidden; }
.ss-related-swiper .swiper-wrapper { align-items: stretch; }
.ss-related-swiper .swiper-slide  { height: auto; }

@media (max-width: 767px) {
  .ss-related-slider-wrap { margin-top: 32px; }
  .ss-related-prev { left: -12px; }
  .ss-related-next { right: -12px; }
  .ss-related-prev,
  .ss-related-next { width: 32px; height: 32px; }
}
