/* Contenedor principal del carrusel */
.woostify-products-carousel-wrapper {
    position: relative;
    padding: 30px 0;
    margin: 20px 0;
}

.woostify-products-carousel-advanced {
    margin: 0 -10px;
}

/* Item individual del producto */
.carousel-product-item {
    padding: 0 10px;
    outline: none;
}

.product-card-wrapper {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-wrapper:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #EE7623;
}

/* Imagen del producto */
.product-image-wrapper {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Marca del producto */
.product-brand {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Título del producto */
.product-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 12px;
    min-height: 40px;
    font-weight: 600;
}

.product-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0099A8;
}

/* Precios */
.product-prices {
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.product-price-per-unit {
    font-size: 12px;
    color: #666;
}

.product-subscription-price {
    background: #f0f7ff;
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-price-value {
    font-size: 16px;
    font-weight: bold;
    color: #0099A8;
}

.subscription-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
}

.subscription-tag svg {
    width: 16px;
    height: 16px;
}

/* Variaciones de producto */
.product-variations {
    margin-bottom: 15px;
}

.variation-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.variations-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-variation-btn {
    padding: 0px 10px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
    height: 28px !important;
}

.product-variation-btn:hover {
    border-color: #0099A8;
    color: #0099A8;
}

.product-variation-btn.selected {
    border-color: #0099A8;
    background: #0099A8;
    color: #fff;
}

/* Selector de cantidad */
.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.quantity-selector-wrapper {
    flex: 0 0 auto;
}

.quantity-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.quantity-minus,
.quantity-plus {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-minus:hover,
.quantity-plus:hover {
    background: #0099A8;
    color: #fff;
}

.quantity-minus.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botón agregar al carrito */
.add-to-cart-carousel {
    flex: 1;
    padding: 5px 15px;
    background: #EE7623;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-carousel:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.add-to-cart-carousel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart-carousel.added {
    background: #28a745;
}

/* Flechas del carrusel */
.woostify-products-carousel-advanced .slick-prev,
.woostify-products-carousel-advanced .slick-next {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.woostify-products-carousel-advanced .slick-prev {
    left: -22px;
}

.woostify-products-carousel-advanced .slick-next {
    right: -22px;
}

.woostify-products-carousel-advanced .slick-prev:hover,
.woostify-products-carousel-advanced .slick-next:hover {
    background: #0099A8;
    border-color: #0099A8;
}

.woostify-products-carousel-advanced .slick-prev i,
.woostify-products-carousel-advanced .slick-next i {
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease;
}

.woostify-products-carousel-advanced .slick-prev:hover i,
.woostify-products-carousel-advanced .slick-next:hover i {
    color: #fff;
}

/* Dots del carrusel */
.woostify-products-carousel-advanced .slick-dots {
    bottom: -35px;
}

.woostify-products-carousel-advanced .slick-dots li button:before {
    font-size: 10px;
    color: #0099A8;
    opacity: 0.3;
}

.woostify-products-carousel-advanced .slick-dots li.slick-active button:before {
    opacity: 1;
}

/* Input hidden para variación */
.variation-id-input {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card-wrapper {
        padding: 15px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 35px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-carousel {
        width: 100%;
    }
}