 /* Category Starts */
 body {
    font-family: 'kumbh sans';
    color: rgba(104, 37, 29, 1)
}

.category {
    width: 100vw;
    font-size: 400;
    text-align: center;
    margin: 10% 0;
    margin-top: 0rem;
}

/* .category .h1_cat {
    font-weight: 800;
    color: #78362A;
    font-size: 20rem;
    margin-top: 100px;
    margin-bottom: 50px;
} */

.categorygrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Four columns for larger screens */
    gap: 1rem;
    /* margin-bottom: 20px; */
    justify-content: space-evenly;
    font-weight: 600;
}

.all_cat {
    /* font-size: 14px; */
    /* color: rgba(104, 37, 29, 1); */
    color: white;
    font-size: 2rem;
    background-color: #78362A;
    padding: 5px 0;
    border-radius: 8px;

}

.shop-cat {
    /* margin-top: 100px; */
    color: rgba(104, 37, 29, 1);
    text-align: center;
    font-size: 3rem;

    /* Text overflow handling */
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    /* Hide overflowing text */
    text-overflow: ellipsis;
    /* Add "..." at the end of the visible text */
}


.head-line {
    padding: 0.2rem;
    width: 150px;
    border: none;
    border-radius: 2rem;
    background-color: rgba(170, 108, 83, 0.5);
    margin: 0 auto;
    margin-top: 5px;
    margin-bottom: 30px;
}


.head-pro {
    color: rgba(104, 37, 29, 1);
    margin-top: 12px;
    margin-left: 0px;
    font-size: 20px;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f1f1f1;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a.active {
    background-color: #333;
    color: white;
}

.pagination a:hover {
    background-color: #ddd;
}

@media screen and (max-width: 300px) {
    .categorygrid {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        /* Four columns for larger screens */
        gap: 1rem;
        justify-content: space-evenly;
        font-weight: 600;
    }
}

@media only screen and (max-width: 400px) {
    .categorygrid {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        /* Four columns for larger screens */
        gap: 1rem;
        justify-content: space-evenly;
        font-weight: 600;
    }

    .categorygrid>div {
        /* flex: 0 0 66.33%; */
        /* Two items per row */
        max-width: 200px;
        /* Adjust width for mobile screens */
        box-sizing: border-box;
        margin-bottom: 1rem;
        /* Space between rows */
    }

    .categorygrid img {
        width: 100%;
        height: 25rem;
        /* Maintain aspect ratio */
        border-radius: 1rem;

    }
}

/* Mobile screens (up to 800px) */
@media only screen and (max-width: 800px) {
    .categorygrid {
        margin-left: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Four columns for larger screens */
        gap: 1rem;
        justify-content: space-evenly;
        font-weight: 600;
    }

    .categorygrid>div {
        /* flex: 0 0 66.33%; */
        /* Two items per row */
        max-width: 200px;
        /* Adjust width for mobile screens */
        box-sizing: border-box;
        margin-bottom: 1rem;
        /* Space between rows */
    }

    .categorygrid img {
        width: 100%;
        height: 25rem;
        /* Maintain aspect ratio */
        border-radius: 1rem;

    }
}

/* Tablet screens (between 800px and 1200px) */
@media only screen and (min-width: 801px) and (max-width: 1200px) {
    .categorygrid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* Four columns for larger screens */
        gap: 1rem;
        justify-content: space-evenly;
        font-weight: 600;
    }

    .categorygrid>div {
        flex: 0 0 33.33%;
        /* Three items per row */
        max-width: 180px;
        /* Adjust width for tablet screens */
    }

    .categorygrid img {
        margin: 1rem 0;
        width: 100%;
        height: 25rem;
        /* Maintain aspect ratio */
        border-radius: 1rem;
    }
}

/* Larger screens (1200px and above) */
@media only screen and (min-width: 1201px) {
    .categorygrid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* Four columns for larger screens */
        gap: 1rem;
        justify-content: space-evenly;
        font-weight: 600;
    }

    .categorygrid>div {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        /* Rounded corners for a modern look */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /* Subtle shadow for depth */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        /* Smooth transition for hover effects */
    }

    .categorygrid>div:hover {
        transform: translateY(-10px);
        /* Slight lift effect */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        /* Enhanced shadow on hover */
    }

    .categorygrid img {
        width: 100%;
        height: 250px;
        /* Fixed height to maintain uniformity */
        object-fit: cover;
        /* Cover the container */
        display: block;
        border-radius: 10px 10px 0 0;
        /* Round top corners of the image */
    }

    .categorygrid .all_cat {
        margin: 0;
        padding: 1rem;
        /* background-color: #f5f5f5; */
        /* Light background for text */
        border-radius: 0 0 10px 10px;

        /* font-size: 14px; */
        /* color: rgba(104, 37, 29, 1); */
        color: white;
        font-size: 2rem;
        background-color: #78362A;
        /* padding:5px 0; */
        /* border-radius:8px; */

    }

    a {
        text-decoration: none;
    }
}


/* Category ends */