/* WooCommerce Products Slider Styles */

.bsftslide-woo-products {
    /* Inherit base slider styles */
}

.bsftslide-woo-products .bsftslide {

}

.bsftslide-woo-products .bsftslide:hover {

}

.bsftslide-woo-products .bsftslide a {
    display: flex;
flex-wrap:wrap;
    height: 100%;
    text-decoration: none;
    color: inherit;
	align-content: baseline;
}

/* Product Image Container */
.bsftslide-product-image {
    position: relative;
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsftslide-product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bsftslide-woo-products .bsftslide:hover .bsftslide-product-image img {
    transform: scale(1.05);
}

/* Product Badges */
.bsftslide-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.bsftslide-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Info */
.bsftslide-product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bsftslide-product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    transition: color 0.3s ease;
}

.bsftslide-woo-products .bsftslide:hover .bsftslide-product-name {
    color: #007cba;
}

/* Product Rating */
.bsftslide-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.bsftslide-stars {
    display: flex;
    gap: 1px;
}

.bsftslide-stars .star {
    font-size: 14px;
    line-height: 1;
}

.bsftslide-stars .star.full {
    color: #f39c12;
}

.bsftslide-stars .star.half {
    color: #f39c12;
}

.bsftslide-stars .star.empty {
    color: #ddd;
}

.bsftslide-rating-count {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Product Price */
.bsftslide-product-price {
    margin-top: auto;
    font-weight: 700;
    font-size: 16px;
}

.bsftslide-product-price .woocommerce-Price-amount {
    color: #27ae60;
}

.bsftslide-product-price del {
    color: #95a5a6;
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
}

.bsftslide-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Currency symbols */
.bsftslide-product-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
}

/* Error messages */
.bsftslide-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: 14px;
    text-align: center;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bsftslide-product-image {
        min-height: 140px;
        padding: 10px;
    }
    
    .bsftslide-product-image img {
        max-height: 120px;
    }
    
    .bsftslide-product-info {
        padding: 12px;
        gap: 6px;
    }
    
    .bsftslide-product-name {
        font-size: 13px;
        min-height: 36px;
    }
    
    .bsftslide-product-price {
        font-size: 15px;
    }
    
    .bsftslide-sale-badge,
    .bsftslide-stock-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .bsftslide-product-image {
        min-height: 120px;
        padding: 8px;
    }
    
    .bsftslide-product-image img {
        max-height: 100px;
    }
    
    .bsftslide-product-info {
        padding: 10px;
        gap: 4px;
    }
    
    .bsftslide-product-name {
        font-size: 12px;
        min-height: 32px;
    }
    
    .bsftslide-product-price {
        font-size: 14px;
    }
    
    .bsftslide-stars .star {
        font-size: 12px;
    }
    
    .bsftslide-rating-count {
        font-size: 10px;
    }
}

/* Loading state */
.bsftslide-woo-products.loading .bsftslide {
    animation: productPulse 1.5s ease-in-out infinite;
}

@keyframes productPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Special hover effects */
.bsftslide-woo-products .bsftslide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 124, 186, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.bsftslide-woo-products .bsftslide:hover::before {
    opacity: 1;
}

/* Ensure content is above overlay */
.bsftslide-woo-products .bsftslide a {
    position: relative;
    z-index: 2;
}

/* Grid layout optimizations */
.bsftslide-woo-products .bsftslide {
    min-height: 280px;
}

@media (max-width: 768px) {
    .bsftslide-woo-products .bsftslide {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .bsftslide-woo-products .bsftslide {
        min-height: 200px;
    }
}

/* Enhanced sale badge animation */
.bsftslide-sale-badge {
    animation: saleBadgePulse 2s ease-in-out infinite;
}

@keyframes saleBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Product unavailable state */
.bsftslide-woo-products .bsftslide.out-of-stock {
    opacity: 0.7;
}

.bsftslide-woo-products .bsftslide.out-of-stock .bsftslide-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* Focus states for accessibility */
.bsftslide-woo-products .bsftslide a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.bsftslide-woo-products .bsftslide a:focus .bsftslide-product-name {
    color: #007cba;
}

.onsale {
	right: 0;
	left: auto !important;
	margin: -.5em -.5em 0 0 !important;
}

.bsftslide .product {
	background: #fff;
}