/* Category Home Section Styles */
.category-home-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.category-home-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
    gap: 12px;
    width: 100%;
    max-width: 515px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.category-home-title {
    width: 100%;
    max-width: 515px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    text-align: center;
    color: #292929;
}

.category-home-divider {
    width: 466px;
    height: 9px;
    background: #ff4c4b;
    border-radius: 6px;
}

.category-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 35px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 13px 12px;
    gap: 11px;
    width: 100%;
    height: 134px;
    background: #ffffff;
    box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.25);
    border-radius: 1px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    display: flex;
    align-items: center;
    text-align: center;
    color: #000000;
}

.category-count {
    width: 131px;
    height: 20px;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    display: flex;
    align-items: center;
    color: #fb5437;
}

.view-all-categories-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 10px;
    height: 48px;
    width: fit-content;
    background: #ff4c4b;
    border-radius: 10px;
    margin: 35px auto 0;
    text-decoration: none;
}

.view-all-categories-button span {
    width: 139px;
    height: 24px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
}

.view-all-categories-button i {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 25px;
    }

    .category-home-title {
        font-size: 40px;
        line-height: 48px;
    }

    .category-home-divider {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .category-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 20px;
        padding: 0;
    }

    .category-card {
        width: 100%;
        max-width: 388px;
        margin: 0 auto;
    }

    .category-home-title {
        font-size: 32px;
        line-height: 38px;
        padding: 0 15px;
    }

    .category-home-divider {
        width: 250px;
    }
}
