.custom-product-card-carousel {
    visibility: hidden; /* Hide carousel until Slick is initialized */
}

.slick-initialized.custom-product-card-carousel {
    visibility: visible; /* Reveal carousel after Slick is ready */
}

/* Ensure responsive adjustments based on screen size */
@media (max-width: 1024px) {
    .custom-product-card-carousel {
        grid-template-columns: repeat(3, 1fr); /* 2 items per row on medium screens */
    }
}

@media (max-width: 767px) {
    .custom-product-card-carousel {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on smaller screens */
        gap: 15px; /* Smaller gap for smaller screens */
    }
}

@media (max-width: 500px) {
    .custom-product-card-carousel {
        grid-template-columns: 1fr; /* 1 item per row on very small screens */
        gap: 10px; /* Even smaller gap on very small screens */
    }
}

/* Styling for individual product cards */
.custom-product-card-carousel .product-card {
    background-color: #fff;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-right: 18px;
}

.custom-product-card-carousel .product-image {
    border: 1px solid rgb(233, 235, 237);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 30px;
}

/* Ensure card width adjusts and maintains its structure on resize */
.custom-product-card-carousel .product-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.product-card-content {
    margin-bottom: 15px;
}

/* Styling for the price section */
.custom-product-card-carousel .product-card .product-price {
    margin-top: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
}

.custom-product-card-carousel .product-card .product-price .regular-price {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.custom-product-card-carousel .product-card .product-price .sale-price {
    font-size: 14px;
    color: #d9534f;
    font-weight: 600;
}

.custom-product-card-carousel .product-card .product-price .sale-percentage {
    font-size: 11px;
    padding: 0 6px;
    border-radius: 5px;
    color: white;
    background-color: green;
}

.product-action-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    margin-top: 10px;
    border-radius: 5px;
}

.product-action-button:hover {
    background-color: #0056b3;
}


.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 5px;
    background-color: #df3030;
    color: #ffffff;
    font-size: 11px;
    padding: 0 6px;
    z-index: 10;
    word-break: break-word;
}

.product-card {
    position: relative;
}

.product-card .product-heading {
    font-size: 15px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    color: black;
    text-align: left;
    text-transform: capitalize;
    font-weight: 600;
    height: 40px;
    transition: all 0.3s ease;
}

.product-card .product-heading:hover {
    color: #0587ea !important;
}

.product-card .btn-wrapper .button {
    padding: 10px 22px !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 20px;
    width: 100%;
    background-color: #edf4f6 !important;
    color: black;
    transition: all 0.3s ease;
}

.product-card:hover .btn-wrapper .button {
    background-color: #0587ea !important;
    color: white !important;
}

.price-green {
    color: green !important;
}

.strike {
    text-decoration: line-through;
}

.slick-next {
    right: 12px;
}

.slick-prev {
    left: -32px;
    z-index: 1;
}

.slick-arrow {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 16px;
}

.slick-arrow:before {
    color: #0587ea;
    font-size: 32px !important;
    opacity: 0;
    transition: all 0.3s ease;
}

.slick-carousel:hover .slick-arrow:before {
    opacity: 1 !important;
}







