/* Modern Product Slider Styles */

/* Main slider container */
.ajax-product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Product slide styling - now handled by .keen-slider__slide */

/* Product box styling */
.product-box {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Product image wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* Prevent zoom effects on product images only */
.product-image,
.ajax-product-slider .product-box img {
    object-fit: cover;
    /* Prevent zoom effects */
    transform: none !important;
    transition: none !important;
    scale: 1 !important;
}

/* Prevent hover zoom effects */
.product-box:hover .product-image,
.ajax-product-slider .product-box:hover img {
    transform: none !important;
    scale: 1 !important;
}

/* Wishlist icon styling */
.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wishlist-icon i {
    color: #dc3545;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 5px;
    transition: all 0.3s ease;
}

.wishlist-icon i:hover {
    transform: scale(1.1);
    background: #fff;
}

/* Product name styling */
.product-name {
    flex-grow: 1;
    margin: 10px 0;
}

.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: #007bff;
}

/* Product price styling */
.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
}

.product-price span {
    font-size: 1.1em;
}

/* Review stars styling */
.review-stars {
    color: #ffc107;
    text-decoration: none;
}

.review-stars i.sad {
    color: #dee2e6;
}

.review-stars:hover {
    color: #ffc107;
}

/* Quick view button styling */
.showQuickView {
    background: #007bff;
    color: white;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.showQuickView:hover {
    background: #0056b3;
    transform: scale(1.1);
    color: white;
}

/* Label wrapper for badges */
.label-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.badge-standard {
    background: #28a745;
    color: white;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.badge-standard.bg-danger {
    background: #dc3545;
}

/* Keen slider specific styles */
.keen-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.keen-slider {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    transition: transform 0.3s ease;
    /* Ensure proper width calculation */
    width: auto;
}

.keen-slider__slide {
    flex-shrink: 0;
    position: relative;
    /* Exact width to prevent partial visibility */
    width: 361.502px;
    min-width: 361.502px;
    max-width: 361.502px;
    padding: 0 5px;
    box-sizing: border-box;
}

/* Navigation styles */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn i {
    color: #333;
    font-size: 14px;
}

/* Slide indicators */
.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #999;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator.active::before {
    background: #007bff;
}

.indicator:hover::before {
    background: #007bff;
    opacity: 0.7;
}

.indicator:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-slide {
        min-width: 280px;
        max-width: 280px;
    }
    
    .product-name a {
        font-size: 0.9em;
    }
    
    .product-price {
        font-size: 1em;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .product-slide {
        min-width: 250px;
        max-width: 250px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .nav-btn i {
        font-size: 10px;
    }
}

/* Loading state */
.custom-loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.custom-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
