/* Star Products Frontend Styles */

/*
========================================
CURSOR RULES PARA STAR PRODUCTS SLIDER
========================================

REGLA INQUEBRANTABLE:
- En DESKTOP, cada card mide EXACTAMENTE 278px de ancho
- NO agregar padding a las cards
- NO cambiar el ancho a 290px o cualquier otro valor
- Mantener margin-left: 10px y margin-right: 10px para separación
- En desktop ≥1336px mostrar exactamente 4 cards completas
- En desktop 1025-1335px mostrar exactamente 3 cards completas

CONFIGURACIÓN FIJA:
- .slick-slide width: 278px !important (el ancho visual de la card)
- .star-product-item width: 278px !important (el ancho visual real)
- NO usar padding en slides
- SÍ usar margins para separación entre cards

PROBLEMA DEL LOOP:
- El loop debe desplazarse 298px (278px card + 20px márgenes)
- Este cálculo se debe hacer en JavaScript, NO en CSS
- El CSS mantiene 278px para el ancho visual correcto

ESTAS REGLAS NO DEBEN CAMBIARSE NUNCA.
========================================
*/

.star-products-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hacer que la card tenga posición relativa para el blocker */
.star-product-item {
    cursor: default;
    position: relative;
    transition: all 0.3s ease;
}

/* Permitir clicks SOLO en elementos específicos */
.star-product-item .product-title a,
.star-product-item .product-category,
.star-product-item .product-actions a,
.star-product-item .product-actions button {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 20; /* Por encima del blocker */
}

/* Elementos NO clickeables en móvil/tablet */
.star-product-item .product-image,
.star-product-item .product-image img,
.star-product-item .product-price,
.star-product-item .product-tags,
.star-product-item .product-tag,
.star-product-item .product-info {
    cursor: default;
    pointer-events: none;
}

/* Botones de acciones sí deben ser clickeables */
.star-product-item .product-actions a,
.star-product-item .product-actions button {
    cursor: pointer;
    pointer-events: auto;
}

/* Permitir hover en la card completa en desktop */
@media (min-width: 1025px) {
    .star-product-item {
        position: relative;
    }
    
    .star-product-item .product-image,
    .star-product-item .product-image img,
    .star-product-item .product-price,
    .star-product-item .product-tags,
    .star-product-item .product-tag {
        pointer-events: none; /* No clicks en estos elementos */
    }
}





/* CONFIGURACIÓN BASE PARA TODAS LAS CARDS */
.star-product-item, .star-product-slide {
    background: #F8F8F7;
    border-radius: 48px;
    overflow: hidden;
    box-sizing: border-box;
    width: 278px !important; /* REGLA FIJA: 278px en todas las resoluciones de desktop */
    height: 471px;
    max-width: 278px !important;
    max-height: 471px;
    min-width: 278px !important;
    min-height: 471px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

/* Centrar la imagen del producto en la card de forma vertical y horizontal */
.star-product-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.star-product-item .product-image,
.star-product-item img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    min-width: 120px;
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.star-product-item .product-image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}

.star-product-item .product-image img {
    background: transparent !important;
    border-radius: 0;
    width: 95%;
    height: 90%;
    max-width: 220px;
    max-height: 220px;
    min-width: 100px;
    min-height: 100px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    padding: 0;
    margin-top: 250px;
    transition: transform 0.3s ease;
}

/* Eliminar cualquier fondo blanco del contenedor de la imagen */
.star-product-item .product-image, .star-product-item .product-image a {
    background: transparent !important;
}

/* Ajustar el contenido de la card para que no sobresalga */
.star-product-item .product-info {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 15px 15px;
    border-radius: 8px;
    z-index: 10;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
}

/* Mostrar información en hover y active */
.star-product-item:hover .product-info,
.star-product-item.active .product-info {
    opacity: 1;
    transform: translateY(0);
}

/* Ocultar tags y nombre por defecto en la parte inferior */
.star-product-item .product-tags,
.star-product-item .product-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostrar tags y nombre en hover/activa, parte inferior alineados a la izquierda */
.star-product-item:hover .product-tags,
.star-product-item:hover .product-title {
    opacity: 1;
    transform: none;
}

.star-product-item .product-tags {
    position: absolute;
    left: 18px;
    bottom: 28px;
    transform: translateY(-15px);
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item .product-tag {
    background: #D2301E !important;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.star-product-item .product-title {
    position: absolute;
    left: 18px;
    bottom: 28px;
    width: auto;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
    padding: 0;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item .product-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Estilos de hover para elementos clickeables */
.star-product-item .product-title a:hover {
    color: #D2301E;
    text-decoration: underline;
}

.star-product-item .product-category:hover {
    background-color: #D2301E;
    color: #fff;
    transform: translateY(-1px);
}

/* Mantener hover en botones de agregar al carrito */
.star-product-item .product-actions a:hover,
.star-product-item .product-actions button:hover {
    background-color: #D2301E;
    color: #fff;
}

/* Efectos hover completos - removidos para elementos específicos */
.star-product-item {
    transition: all 0.3s ease;
}

/* Hover de la card completa en desktop */
.star-product-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

.star-product-item:hover .product-image img {
    transform: scale(1.02) !important;
}

.star-product-item:hover .product-title {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Mostrar categorías en hover de la card completa */
.star-product-item:hover .product-categories {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mostrar precio en hover de la card completa */
.star-product-item:hover .product-price {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mostrar información en hover de la card completa */
.star-product-item:hover .product-info {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mostrar tags en hover de la card completa */
.star-product-item:hover .product-tags {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mostrar categorías como tags - solo visibles en hover de elementos clickeables */
.star-product-item .product-categories {
    position: absolute;
    left: 18px;
    bottom: 55px;
    z-index: 15;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 36px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 20px;
    align-items: flex-start;
}

/* Mostrar categorías solo en hover de elementos clickeables */
.star-product-item .product-title a:hover ~ .product-categories,
.star-product-item .product-category:hover ~ .product-categories {
    opacity: 1;
    transform: translateY(0);
}

.star-product-item .product-category {
    background: #D2301E;
    color: #fff;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    line-height: 1.1;
    display: inline-block;
    margin-bottom: 2px;
}

.star-product-item .product-category:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Precio del producto - solo visible en hover de elementos clickeables */
.star-product-item .product-price {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Mostrar precio solo en hover de elementos clickeables */
.star-product-item .product-title a:hover ~ .product-price,
.star-product-item .product-category:hover ~ .product-price {
    opacity: 1;
    transform: translateY(0);
}

/* Ocultar precio completamente cuando la opción hide_price está activada */
.star-products-container.hide-price .star-product-item .product-price {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.star-product-item .product-price del {
    color: #D2301E;
    font-weight: 400;
    margin-right: 8px;
}

.star-product-item .product-price ins {
    text-decoration: none;
}









/* ========================================
   SLIDER INDEPENDIENTE PARA TABLET
   ======================================== */

/* Mostrar slider tablet solo en tablet */
@media (min-width: 375px) and (max-width: 1024px) {
    .star-products-tablet-slider {
        display: block !important;
    }
}

/* Ocultar slider tablet en mobile y desktop */
@media (max-width: 374px), (min-width: 1025px) {
    .star-products-tablet-slider {
        display: none !important;
    }
}

/* Estilos del slider de tablet */
.star-products-tablet-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.star-products-tablet-container {
    max-width: 950px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 40px;
}

.star-products-tablet-carousel {
    width: 100%;
    max-width: 100%;
}

.star-product-item-tablet {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 471px !important;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 10px;
}

.star-product-item-tablet {
    transform: translateY(-5px);
}

.star-product-item-tablet .product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 130px;
}

.star-product-item-tablet .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.star-product-item-tablet:hover .product-image img {
    transform: scale(1.05);
}

.star-product-item-tablet .product-info {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 15px 15px;
    border-radius: 8px;
    z-index: 10;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

.star-product-item-tablet .product-title {
    position: absolute;
    left: 18px;
    bottom: 28px;
    width: auto;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
    padding: 0;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.star-product-item-tablet .product-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.star-product-item-tablet .product-title a {
    color: #fff;
    text-decoration: none;
}

.star-product-item-tablet .product-title {
    opacity: 1;
    transform: none;
}

.star-product-item-tablet .product-price {
    position: absolute;
    left: 18px;
    bottom: 90px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item-tablet .product-categories {
    position: absolute;
    left: 18px;
    bottom: 60px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item-tablet .product-category {
    display: inline-block;
    background: #D2301E;
    color: #fff;
    padding: 4px 8px;
    border-radius: 25px;
    font-size: 12px;
    margin-right: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.star-product-item-tablet .product-category:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.star-product-item-tablet .product-tags {
    position: absolute;
    left: 18px;
    bottom: 28px;
    transform: translateY(-15px);
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item-tablet .product-tag {
    background: #D2301E !important;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive para tablet mediano */
@media (min-width: 768px) and (max-width: 900px) {
    .star-products-tablet-container {
        max-width: 700px;
    }
    
    .star-products-tablet-grid {
        gap: 15px;
    }
    
    .star-product-item-tablet {
        height: 420px;
    }
    
    .star-product-item-tablet .product-image {
        height: 180px;
    }
}

/* Ajuste para tablet pequeño (660px - 500px) - 1 card */
@media (min-width: 500px) and (max-width: 660px) {
    .star-products-tablet-container {
        max-width: 330px;
    }
    
    .star-product-item-tablet {
        height: 471px;
        margin: 0 auto;
        max-width: 330px;
    }
    
    .star-product-item-tablet .product-image {
        height: 220px;
        margin-top: 130px;
    }
}

/* Responsive para tablet grande */
@media (min-width: 901px) and (max-width: 1024px) {
    .star-products-tablet-container {
        max-width: 950px;
    }
    
    .star-products-tablet-grid {
        gap: 20px;
    }
    
    .star-product-item-tablet {
        height: 471px;
    }
    
    .star-product-item-tablet .product-image {
        height: 220px;
    }
}

/* Estilos para los dots del carrusel de tablet */
.star-products-tablet-carousel .slick-dots {
    bottom: -50px;
    position: absolute;
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.star-products-tablet-carousel .slick-dots li {
    margin: 0 5px;
    padding: 0;
}

.star-products-tablet-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D2301E;
    border: none;
    padding: 0;
    font-size: 0;
    line-height: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.star-products-tablet-carousel .slick-dots li.slick-active button {
    opacity: 1;
    background: #D2301E;
    transform: scale(1.2);
}

.star-products-tablet-carousel .slick-dots li:hover button {
    opacity: 0.7;
    background: #D2301E;
}

/* ===== CARRUSEL RESPONSIVE ===== */
/* Mostrar carrusel responsive solo en móvil pequeño */
@media (max-width: 374px) {
    .star-products-desktop-slider,
    .star-products-tablet-slider {
        display: none !important;
    }
    
    .star-products-responsive-slider {
        display: block !important;
    }
}

/* Ocultar carrusel responsive en otros dispositivos */
@media (min-width: 375px) {
    .star-products-responsive-slider {
        display: none !important;
    }
}

/* Contenedor del carrusel responsive */
.star-products-responsive-container {
    max-width: 330px !important;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 40px;
}

/* Carrusel responsive */
.star-products-responsive-carousel {
    width: 100%;
    margin: 0 auto;
}

/* ===== ESTILOS BASE PARA CARRUSEL RESPONSIVE ===== */
.star-product-item-responsive {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 471px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 10px;
}

.star-product-item-responsive .product-image {
    height: 220px;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 130px;
    display: flex !important;
    overflow: hidden !important;
}

.star-product-item-responsive .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.star-product-item-responsive .product-info {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 15px 15px;
    border-radius: 8px;
    z-index: 10;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

.star-product-item-responsive .product-title {
    position: absolute;
    left: 18px;
    bottom: 28px;
    width: auto;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
    padding: 0;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.star-product-item-responsive .product-title a {
    color: #fff;
    text-decoration: none;
}

.star-product-item-responsive .product-price {
    position: absolute;
    left: 18px;
    bottom: 90px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item-responsive .product-categories {
    position: absolute;
    left: 18px;
    bottom: 60px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item-responsive .product-category {
    display: inline-block;
    background: #D2301E;
    color: #fff;
    padding: 4px 8px;
    border-radius: 25px;
    font-size: 12px;
    margin-right: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.star-product-item-responsive .product-tags {
    position: absolute;
    left: 18px;
    bottom: 28px;
    transform: translateY(-15px);
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-product-item-responsive .product-tag {
    background: #D2301E !important;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Estilos para los dots del carrusel responsive */
.star-products-responsive-carousel .slick-dots {
    bottom: -30px;
    position: absolute;
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.star-products-responsive-carousel .slick-dots li {
    margin: 0 4px;
    padding: 0;
}

.star-products-responsive-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D2301E;
    border: none;
    padding: 0;
    font-size: 0;
    line-height: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.star-products-responsive-carousel .slick-dots li.slick-active button {
    opacity: 1;
    background: #D2301E;
    transform: scale(1.2);
}

.star-products-responsive-carousel .slick-dots li:hover button {
    opacity: 0.7;
    background: #D2301E;
}

/* ===== ESTILOS RESPONSIVE PARA MÓVILES PEQUEÑOS ===== */

/* Móvil pequeño (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
    .star-products-responsive-container {
        max-width: 300px;
        padding-bottom: 30px;
    }
    
    .star-product-item-responsive {
        height: 420px;
        margin: 0 10px;
    }
    
    .star-product-item-responsive .product-image {
        height: 160px;
        margin-top: 90px;
    }
    
    .star-product-item-responsive .product-title {
        font-size: 14px;
        left: 15px;
        bottom: 20px;
    }
    
    .star-product-item-responsive .product-price {
        font-size: 14px;
        left: 15px;
        bottom: 70px;
    }
    
    .star-product-item-responsive .product-categories {
        left: 15px;
        bottom: 45px;
    }
    
    .star-product-item-responsive .product-category {
        font-size: 10px;
        padding: 3px 6px;
        margin-right: 4px;
    }
    
    .star-product-item-responsive .product-tags {
        left: 15px;
        bottom: 20px;
        gap: 5px;
    }
    
    .star-product-item-responsive .product-tag {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Móvil muy pequeño (280px - 319px) */
@media (min-width: 280px) and (max-width: 319px) {
    .star-products-responsive-container {
        max-width: 280px;
        padding-bottom: 25px;
    }
    
    .star-product-item-responsive {
        height: 380px;
        margin: 0 8px;
    }
    
    .star-product-item-responsive .product-image {
        height: 140px;
        margin-top: 80px;
    }
    
    .star-product-item-responsive .product-title {
        font-size: 13px;
        left: 12px;
        bottom: 18px;
    }
    
    .star-product-item-responsive .product-price {
        font-size: 13px;
        left: 12px;
        bottom: 65px;
    }
    
    .star-product-item-responsive .product-categories {
        left: 12px;
        bottom: 40px;
    }
    
    .star-product-item-responsive .product-category {
        font-size: 9px;
        padding: 2px 5px;
        margin-right: 3px;
    }
    
    .star-product-item-responsive .product-tags {
        left: 12px;
        bottom: 18px;
        gap: 4px;
    }
    
    .star-product-item-responsive .product-tag {
        font-size: 8px;
        padding: 1px 5px;
    }
}

/* Móvil extra pequeño (240px - 279px) */
@media (min-width: 240px) and (max-width: 279px) {
    .star-products-responsive-container {
        max-width: 250px;
        padding-bottom: 20px;
    }
    
    .star-product-item-responsive {
        height: 350px;
        margin: 0 5px;
    }
    
    .star-product-item-responsive .product-image {
        height: 120px;
        margin-top: 70px;
    }
    
    .star-product-item-responsive .product-title {
        font-size: 12px;
        left: 10px;
        bottom: 15px;
    }
    
    .star-product-item-responsive .product-price {
        font-size: 12px;
        left: 10px;
        bottom: 60px;
    }
    
    .star-product-item-responsive .product-categories {
        left: 10px;
        bottom: 35px;
    }
    
    .star-product-item-responsive .product-category {
        font-size: 8px;
        padding: 2px 4px;
        margin-right: 2px;
    }
    
    .star-product-item-responsive .product-tags {
        left: 10px;
        bottom: 15px;
        gap: 3px;
    }
    
    .star-product-item-responsive .product-tag {
        font-size: 7px;
        padding: 1px 4px;
    }
}

/* Móvil mínimo (200px - 239px) */
@media (min-width: 200px) and (max-width: 239px) {
    .star-products-responsive-container {
        max-width: 220px;
        padding-bottom: 15px;
    }
    
    .star-product-item-responsive {
        height: 320px;
        margin: 0 3px;
    }
    
    .star-product-item-responsive .product-image {
        height: 100px;
        margin-top: 60px;
    }
    
    .star-product-item-responsive .product-title {
        font-size: 11px;
        left: 8px;
        bottom: 12px;
    }
    
    .star-product-item-responsive .product-price {
        font-size: 11px;
        left: 8px;
        bottom: 55px;
    }
    
    .star-product-item-responsive .product-categories {
        left: 8px;
        bottom: 30px;
    }
    
    .star-product-item-responsive .product-category {
        font-size: 7px;
        padding: 1px 3px;
        margin-right: 2px;
    }
    
    .star-product-item-responsive .product-tags {
        left: 8px;
        bottom: 12px;
        gap: 2px;
    }
    
    .star-product-item-responsive .product-tag {
        font-size: 6px;
        padding: 1px 3px;
    }
}
@media (min-width: 1025px) {
    .star-product-item, .star-product-slide {
        margin: 0 auto;
    }
}
/* Configuraciones responsive para cards */














@media (max-width: 767px) {
    .star-product-item, .star-product-slide {
        width: 240px;
        height: 420px; /* Aumentado de 350px a 420px */
        max-width: 240px;
        min-width: 240px;
        max-height: 420px; /* Aumentado de 350px a 420px */
        min-height: 420px; /* Aumentado de 350px a 420px */
    }
    
    .star-product-item .product-image,
    .star-product-item img {
        max-width: 160px; /* Aumentado de 140px a 160px */
        max-height: 160px; /* Aumentado de 140px a 160px */
    }
    
    .star-product-item .product-image img {
        margin-top: 180px; /* Aumentado de 150px a 180px */
    }
    

    
    /* Efecto hover en móvil (touch) */
    .star-product-item:hover,
    .star-product-item:active {
        transform: none;
        box-shadow: none;
    }
    
    .star-product-item:hover .product-image img,
    .star-product-item:active .product-image img {
        transform: scale(1.01);
    }
    
    /* En móvil, mostrar información siempre visible pero con hover */
    .star-product-item .product-info {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
        padding: 15px 10px 10px;
    }
    
    .star-product-item:hover .product-info {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
    }
    
    .star-product-item .product-categories {
        bottom: 45px;
        left: 15px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .star-product-item .product-title {
        bottom: 25px;
        left: 15px;
        font-size: 14px;
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 10px;
    }
    
    .star-product-item .product-price {
        font-size: 16px;
        margin-bottom: 8px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .star-product-item .product-tags {
        opacity: 1;
        transform: translateY(0);
    }
    
    .star-product-item .product-category {
        font-size: 9px;
        padding: 2px 5px;
        margin-bottom: 3px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
        word-wrap: break-word;
        line-height: 1.1;
    }
    
    .star-product-item .product-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .star-product-item, .star-product-slide {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 380px; /* Aumentado de 300px a 380px */
        max-height: 380px; /* Aumentado de 300px a 380px */
        min-height: 380px; /* Aumentado de 300px a 380px */
        margin: 0 auto;
        box-sizing: border-box;
    }

    
    .star-product-item .product-image,
    .star-product-item img {
        max-width: 140px; /* Aumentado de 120px a 140px */
        max-height: 140px; /* Aumentado de 120px a 140px */
    }
    
    .star-product-item .product-image img {
        margin-top: 160px; /* Aumentado de 120px a 160px */
    }
    

    
    /* Efecto hover en móvil pequeño */
    .star-product-item:hover,
    .star-product-item:active {
        transform: none;
        box-shadow: none;
    }
    
    .star-product-item:hover .product-image img,
    .star-product-item:active .product-image img {
        transform: scale(1.01);
    }
    
    .star-product-item .product-categories {
        bottom: 40px;
        left: 12px;
        gap: 3px;
    }
    
    .star-product-item .product-title {
        bottom: 20px;
        left: 12px;
        font-size: 13px;
    }
    
    .star-product-item .product-price {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .star-product-item .product-category {
        font-size: 8px;
        padding: 2px 4px;
        margin-bottom: 2px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
       /*  word-wrap: break-word; */
        line-height: 1.1;
    }
}

/* Ocultar precio globalmente */
.product-price {
    display: none;
}



/* Div transparente que bloquea clicks pero permite hover */
.card-click-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: none; /* Permite hover pero no clicks */
}

/* Hover completo en desktop */
@media (min-width: 1025px) {
    .star-product-item {
        transition: all 0.3s ease !important;
        position: relative;
    }
    
    .star-product-item:hover {
        transform: none !important;
    }
    
    .star-product-item:hover .product-image img {
        transform: scale(1.02) !important;
    }
    
    .star-product-item:hover .product-title {
        color: #fff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .star-product-item:hover .product-categories {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .star-product-item:hover .product-price {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .star-product-item:hover .product-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .star-product-item:hover .product-tags {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Elementos clickeables por encima del blocker */
    .star-product-item .product-title a,
    .star-product-item .product-category,
    .star-product-item .product-actions a,
    .star-product-item .product-actions button {
        position: relative;
        z-index: 20; /* Por encima del blocker */
        cursor: pointer !important;
        pointer-events: auto !important;
    }
}

/* ========================================
   NUEVO SLIDER INDEPENDIENTE PARA DESKTOP
   ======================================== */

/* Mostrar slider desktop solo en desktop */
@media (min-width: 1025px) {
    .star-products-desktop-slider {
        display: block !important;
    }
}

/* Ocultar slider desktop en tablet y mobile */
@media (max-width: 1024px) {
    .star-products-desktop-slider {
        display: none !important;
    }
}

/* Contenedor principal del slider */
.star-products-desktop-slider {
    width: 100%;
    position: relative;
    overflow: visible;
    padding: 0 20px;
}

/* Contenedor central para las cards */
.star-products-desktop-center-col {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor de las cards */
.star-products-desktop-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.3s ease;
    gap: 20px;
    padding: 0 20px;
    width: max-content;
    min-width: 100%;
}

/* Card individual */
.star-products-desktop-card {
    flex: 0 0 278px;
    width: 278px;
    height: 471px;
    background: #F8F8F7;
    border-radius: 48px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Contenido interno de la card */
.star-products-desktop-card .product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 130px;
}

.star-products-desktop-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.star-products-desktop-card .product-info {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 15px 15px;
    border-radius: 8px;
    z-index: 10;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

.star-products-desktop-card .product-title {
    position: absolute;
    left: 18px;
    bottom: 28px;
    width: auto;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
    padding: 0;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.star-products-desktop-card .product-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.star-products-desktop-card .product-price {
    position: absolute;
    left: 18px;
    bottom: 90px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-products-desktop-card .product-categories {
    position: absolute;
    left: 18px;
    bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-products-desktop-card .product-category {
    display: inline-block;
    background: #D2301E;
    color: #fff;
    padding: 4px 8px;
    border-radius: 25px;
    font-size: 12px;
    margin-right: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.star-products-desktop-card .product-category:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.star-products-desktop-card .product-tags {
    position: absolute;
    left: 18px;
    bottom: 28px;
    transform: translateY(-15px);
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.star-products-desktop-card .product-tag {
    background: #D2301E !important;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Efectos hover para las cards del slider desktop */
.star-products-desktop-card:hover {
    box-shadow: none;
}

.star-products-desktop-card:hover .product-image img {
    transform: scale(1.02);
}

.star-products-desktop-card:hover .product-info {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.star-products-desktop-card:hover .product-title {
    opacity: 1;
    transform: translateY(0);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.star-products-desktop-card:hover .product-categories {
    opacity: 1;
    transform: translateY(0);
}

.star-products-desktop-card:hover .product-price {
    opacity: 1;
    transform: translateY(0);
    color: #fff;
}

.star-products-desktop-card:hover .product-tags {
    opacity: 1;
    transform: translateY(0);
}

/* Botones de navegación */
.star-products-desktop-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #55130C;
    border: 2px solid #55130C;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.star-products-desktop-nav:hover {
    background: #fff;
    color: #55130C;
    border-color: #AA2718;
}

.star-products-desktop-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.star-products-desktop-nav.disabled:hover {
    background: #55130C;
    color: #fff;
    border-color: #55130C;
}

.star-products-desktop-nav.prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.star-products-desktop-nav.next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

/* Iconos SVG para los botones */
.star-products-desktop-nav svg {
    width: 24px;
    height: 25px;
    fill: white;
    transition: fill 0.2s ease;
}

.star-products-desktop-nav:hover svg {
    fill: #55130C;
}

/* Configuración responsive para diferentes breakpoints */
@media (min-width: 1336px) {
    .star-products-desktop-center-col {
        max-width: 1192px; /* 4 cards × 278px + 4 × 20px gaps = 1172px */
    }
}

@media (min-width: 1025px) and (max-width: 1335px) {
    .star-products-desktop-center-col {
        max-width: 914px; /* 3 cards × 278px + 3 × 20px gaps = 914px */
    }
    
    .star-products-desktop-slider {
        padding: 0 10px;
    }
    
    .star-products-desktop-nav.prev {
        left: 70px;
    }
    
    .star-products-desktop-nav.next {
        right: 70px;
    }
}