
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid with minimum width of 250px */
    gap: 10px;
}

.product-item {
     position: relative;
    border: 1px solid #ddd; /* Soften border color for a cleaner look */
    border-radius: 8px; /* Rounded corners for a card-like appearance */
    overflow: hidden; /* Ensure content doesn't overflow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle box shadow for depth */
    transition: transform 0.3s ease; /* Smooth hover effect */
    padding: 15px;
}

.product-item:hover {
    transform: translateY(-5px); /* Lift the card on hover */
}

.product-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images behave as expected within the card */
    border-top-left-radius: 8px; /* Rounded corners only on the top */
    border-top-right-radius: 8px;
}
.product-item h3{
    font-size: 20px;
}
.read-more {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: var(--color-primary); /* Semi-transparent background for readability */
    color: #fff; /* Text color */
    text-align: center; /* Center align text */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.read-more:hover {
    background-color: rgba(0, 0, 0, 1);
    color: #fff; /* Darken background on hover */
}

.read-more span {
    margin-left: 5px; /* Space between "Read More" text and arrow */
}

.read-more:hover span {
    transform: translateX(3px); /* Move arrow slightly on hover */
}
.p-description{
    min-height: 150px;
}

@media(max-width:768px){
    .product-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    
    
}

.product-item {
    width: calc(100%;); /* Two items per row, with gap between */

    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-thumbnail {
    flex: 0 0 30%; /* Thumbnail takes 40% of item width */
    max-width: 40%;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    margin-right: 10px;
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}


.product-details h2 {
    margin-top: 0;
    font-size: 18px;
}

.read-more {
   display: none!important
}

    .product-item{
        display: flex;
    }
    .p-description{
        display: none;
    }
}



.flickity-carousel {
    width: 100%;
    margin: 0 auto;
}

.carousel-cell {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25%; /* Adjust width for 4 slides */
}

.carousel-products img{
    max-height: 150px;
    width: auto;
}
.carousel-products h3{
font-size: 18px;
}

.carousel-products .carousel-cell{
    border:1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    margin: 10px;
}
/* Flickity styles */


.flickity-page-dots {
    text-align: center;
    margin-top: 10px;
}

.flickity-page-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
}

.flickity-page-dots .dot.is-selected {
    background: #0073e6;
}

@media (max-width: 768px) {
    .carousel-cell {
        width: 50%; /* Adjust width for 2 slides on smaller screens */
    }
    
    .carousel-thumbnail {
        height: 150px; /* Adjusted height for smaller screens */
    }
}

@media (max-width: 480px) {
    .carousel-cell {
        width: 50%; /* Adjust width for 2 slides on mobile */
    }

    .carousel-thumbnail {
        height: 100px; /* Adjusted height for mobile screens */
    }
}