/* ===================================
   PRODUCTS SECTION
=================================== */

.products {
    padding: 100px 8%;
    background: #f8faff;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
}

/*======================
    PRODUCT SLIDER
=======================*/

.product-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

/*======================
      PRODUCT CARD
=======================*/

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

/*======================
      PRODUCT IMAGE
=======================*/

.product-image {
    width: 100%;
    height: 300px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/*======================
      CONTENT
=======================*/

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 24px;
    color: #0b1c63;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/*======================
      BUTTON
=======================*/

.product-content a {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: #4f46e5;
    color: #fff;
    padding: 13px 28px;
    border-radius: 40px;
    transition: .3s;
    font-weight: 600;
}

.product-content a:hover {
    background: #0b1c63;
}

/*======================
    SLIDER BUTTONS
=======================*/

#prevBtn,
#nextBtn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: .3s;
}

#prevBtn:hover,
#nextBtn:hover {
    background: #0b1c63;
}

#prevBtn {
    left: -28px;
}

#nextBtn {
    right: -28px;
}

/*==================================
        LARGE TABLET
==================================*/

@media (max-width: 1200px) {

    .product-card {
        flex: 0 0 calc(50% - 15px);
    }

}

/*==================================
            TABLET
==================================*/

@media (max-width: 992px) {

    .products {
        padding: 80px 6%;
    }

    .product-image {
        height: 260px;
    }

    .product-content h3 {
        font-size: 22px;
    }

    #prevBtn,
    #nextBtn {
        width: 48px;
        height: 48px;
    }

    #prevBtn {
        left: -15px;
    }

    #nextBtn {
        right: -15px;
    }

}

/*==================================
            MOBILE
==================================*/

@media (max-width: 768px) {

    .products {
        padding: 70px 20px;
    }

    .product-card {
        flex: 0 0 100%;
    }

    .product-image {
        height: 240px;
        padding: 15px;
    }

    .product-content {
        padding: 20px;
    }

    .product-content h3 {
        font-size: 20px;
        min-height: auto;
    }

    .product-content p {
        font-size: 15px;
    }

    #prevBtn,
    #nextBtn {
        display: none;
    }

}

/*==================================
        SMALL MOBILE
==================================*/

@media (max-width: 480px) {

    .products {
        padding: 60px 15px;
    }

    .product-image {
        height: 210px;
    }

    .product-content h3 {
        font-size: 18px;
    }

    .product-content p {
        font-size: 14px;
    }

    .product-content a {
        width: 100%;
        padding: 12px;
    }

}