.category-image img:hover {
    transform: scale(1.03);
}


.category-image {
    height: 460px;
    flex: 1;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}


.category-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-categories .col-lg-4 {
    width: 31% !important;
    float: left !important;
    margin: 0rem 0.5rem 0rem 0.5rem !important;
}


.product-categories .row {
    display: flex;
    flex-wrap: wrap;
}


.category-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-content {
    padding: 25px 0 15px;
    font-family: "Vazirmatn";
    text-align: center;
    color: #001E4B;
    font-size: 35px;
    font-weight: 700;
}

.category-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.product-categories {
    padding: 40px 0;
}


.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {


    .category-box {
        margin-bottom: 20px;
    }

    .category-content {
        padding: 15px;
    }

    .category-content h3 {
        font-size: 16px;
    }

    .product-categories {
        padding: 20px 0;
    }

    .category-image {
        max-height: 300px;
    }



}

/* Ensure images don't overflow on small screens */
@media (max-width: 575px) {
    .product-categories .col-lg-4 {
        width: 45% !important;
    }

    .category-content h3 {
        font-size: 12px;
    }

    .category-image {
        max-height: 200px;
    }
}