/* Miniaturas Hispadrive (categoría, home, búsqueda…) */

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

/* —— Tarjeta limpia: sin parche gris, borde ni sombra —— */
.hispadrive-product-miniature .pro_outer_box,
.hispadrive-product-miniature:hover .pro_outer_box {
  border: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hispadrive-product-miniature .pro_second_box,
.hispadrive-product-miniature:hover .pro_second_box,
.hispadrive-product-miniature .pro_second_box:hover {
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hispadrive-product-miniature .product-desc,
.hispadrive-product-miniature .pro_mini_cate_name {
  background: transparent !important;
}

/* Ocultar corazones Panda fuera de la fila Comprar */
.hispadrive-product-miniature .pro_first_box .add_to_love,
.hispadrive-product-miniature .mini_name .add_to_love,
.hispadrive-product-miniature .act_box_inner .add_to_love,
.hispadrive-product-miniature .hover_fly .add_to_love,
.hispadrive-product-miniature .bottom_hover_fly .add_to_love {
  display: none !important;
}

/* Hover: zoom foto + nombre CTA */
.hispadrive-product-miniature .product_img_link {
  overflow: hidden;
  display: block;
}

.hispadrive-product-miniature .product_img_link .front-image,
.hispadrive-product-miniature .product_img_link .front_image_pic img {
  transition: transform 200ms ease;
  transform: scale(1);
  transform-origin: center center;
}

.hispadrive-product-miniature:hover .product_img_link .front-image,
.hispadrive-product-miniature:hover .product_img_link .front_image_pic img {
  transform: scale(1.03);
}

.hispadrive-product-miniature .s_title_block.hispadrive-product-name a {
  transition: color 200ms ease;
}

.hispadrive-product-miniature:hover .s_title_block.hispadrive-product-name a {
  color: var(--color-cta) !important;
}

/* Nombre completo hasta 3 líneas */
.hispadrive-product-miniature .s_title_block.hispadrive-product-name,
.hispadrive-product-miniature .s_title_block.hispadrive-product-name a,
.hispadrive-product-miniature .s_title_block.hispadrive-product-name.nohidden a,
.hispadrive-product-miniature .s_title_block.hispadrive-product-name.two_rows a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  line-height: 1.4 !important;
  max-height: none !important;
  height: auto !important;
}

.hispadrive-product-miniature .s_title_block.hispadrive-product-name {
  margin: 0;
}

/* Fila Comprar + favoritos */
.hispadrive-product-buy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
}

.hispadrive-product-buy-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hispadrive-product-buy-row__main .ajax_add_to_cart_button,
.hispadrive-product-buy-row__main .btn-full-width,
.hispadrive-product-buy-row__main > .btn {
  width: 100%;
  min-height: 44px;
}

.hispadrive-product-miniature .act_box_cart .hispadrive-product-love,
.hd-row__buy-row .hispadrive-product-love {
  flex: none;
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9d9e4;
  border-radius: 50%;
  background: #fff !important;
  color: var(--color-heading);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hispadrive-product-love:not(.st_added):hover {
  border-color: var(--color-cta);
}

.hispadrive-product-love .icon_btn,
.hispadrive-product-love .hover_fly_btn_inner {
  display: none !important;
}

.hispadrive-product-love__svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Normal: solo trazo */
.hispadrive-product-love:not(.st_added) .hispadrive-product-love__path {
  fill: none !important;
  stroke: var(--color-heading);
  stroke-width: 1.8;
}

.hispadrive-product-love.st_added,
.hispadrive-product-love.st_added:hover {
  border-color: var(--color-cta) !important;
  color: var(--color-cta);
}

.hispadrive-product-love.st_added .hispadrive-product-love__path {
  fill: var(--color-cta) !important;
  stroke: var(--color-cta);
  stroke-width: 1.8;
}

.hispadrive-product-miniature .act_box_cart .hispadrive-featured-qv {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

.hd-row__buy-row.hispadrive-product-buy-row {
  width: 100%;
  margin-top: 8px;
}

.hd-row__buy-row .hd-row__cart {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
}
