﻿/* General Styles */

html, body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}











/* Categories Section */
.categories-container {
    border-radius: 10px;
    margin-bottom: 24px;
}



.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.category {
    text-align: center;
    /*padding: 15px;*/
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .category img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .category div {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 5px;
        padding: 5px;
    }

    .category p {
        font-size: 14px;
        margin: 0;
        color: #333;
        text-align: center;
        word-wrap: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }



#subcategory {
    margin-top: 40px !important;
}

@media (min-width: 992px) {
    .category {
        text-align: center;
        padding: 17px;
        background-color: #fff;
        border-radius: 3px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        width: 255px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .category:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            background-color: #f8f9fa;
        }

        .category img {
            width: 177px;
            height: 125px;
            margin-bottom: 10px;
            border-radius: 1px;
        }


    .categories-container {
        border-radius: 10px;
        text-align: center;
        margin-left: 59px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 3px;
        grid-row-gap: 44px;
    }

    #subcategory {
        margin-top: 85px !important;
    }
}
