﻿/* ============================================
   CHEMICAL LABORATORY PRODUCT CAROUSEL STYLES
   ============================================ */

/* Swiper Container */
.swiperProduct {
    position: relative;
    padding: 20px 50px;
    margin: 0 auto;
    max-width: 1400px;
}

/* Swiper Slide */
.swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
}

    .swiper-slide:hover {
        transform: translateY(-5px);
    }

/* Card Base Styling */
.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

    .card:hover {
        box-shadow: 0 8px 24px rgba(81, 102, 188, 0.2);
    }

.card-overlay {
    position: relative;
    overflow: hidden;
}

    /* Image Styling */
    .card-overlay img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .card-overlay:hover img {
        transform: scale(1.08);
    }

    /* Gradient Overlay */
    .card-overlay .position-absolute {
        background: linear-gradient( to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.75) 100% ) !important;
        z-index: 2;
        transition: background 0.3s ease;
    }

    .card-overlay:hover .position-absolute {
        background: linear-gradient( to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.85) 100% ) !important;
    }

    /* Product Title */
    .card-overlay h5 {
        font-family: 'Segoe UI', 'Arial', sans-serif;
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        margin-bottom: 0.75rem;
        transition: transform 0.3s ease;
        text-align:center;
    }

    .card-overlay:hover h5 {
        transform: translateY(-3px);
    }

/* Button Styling */
.btn-accent-outline {
    background: #3A6FCA !important;
    color: #ffffff !important;
    border: 2px solid transparent !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 32px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(81, 102, 188, 0.3);
    display: inline-block;
    text-decoration: none;
}

    .btn-accent-outline:hover {
        background: #0A2E55 !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 20px rgba(81, 102, 188, 0.5);
        color: white !important;
    }

    .btn-accent-outline:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(81, 102, 188, 0.4);
    }

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 20px;
        font-weight: bold;
        color: #5166BC;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: #5166BC;
        box-shadow: 0 6px 20px rgba(81, 102, 188, 0.4);
    }

        .swiper-button-next:hover:after,
        .swiper-button-prev:hover:after {
            color: #ffffff;
        }

/* Pagination Bullets (if you add them) */
.swiper-pagination-bullet {
    background: #5166BC;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .swiperProduct {
        padding: 20px 40px;
    }

    .card-overlay img {
        height: 350px;
    }

    .card-overlay h5 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .swiperProduct {
        padding: 15px 30px;
    }

    .card-overlay img {
        height: 300px;
    }

    .card-overlay h5 {
        font-size: 2.6rem;
    }

    .btn-accent-outline {
        padding: 10px 24px !important;
        font-size: 0.85rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 16px;
        }
}

@media (max-width: 576px) {
    .swiperProduct {
        padding: 10px 20px;
    }

    .card-overlay img {
        height: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 14px;
        }
}

/* Loading Animation */
.swiper-slide {
    opacity: 0;
    animation: fadeInSlide 0.6s ease forwards;
}

    .swiper-slide:nth-child(1) {
        animation-delay: 0.1s;
    }

    .swiper-slide:nth-child(2) {
        animation-delay: 0.2s;
    }

    .swiper-slide:nth-child(3) {
        animation-delay: 0.3s;
    }

    .swiper-slide:nth-child(4) {
        animation-delay: 0.4s;
    }

    .swiper-slide:nth-child(5) {
        animation-delay: 0.5s;
    }

    .swiper-slide:nth-child(6) {
        animation-delay: 0.6s;
    }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Touch - Border Accent */
.card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5166BC 0%, #7a8dd4 100%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-overlay:hover::before {
    opacity: 1;
}
