/* =========================================================
   CATEGORIES SECTION
========================================================= */

.categories {
    padding: 70px 0 130px;
    background: #f5f7fb;
}


/* =========================================================
   CATEGORIES HEADER
========================================================= */

.categories-header {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 55px;
}

.categories-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px;
    line-height: 1.2;
}

.categories-header p {
    max-width: 750px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORIES GRID
========================================================= */

.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;

    min-height: 350px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   CATEGORY IMAGE
========================================================= */

.category-card img {
    width: 120px;
    height: 120px;

    object-fit: contain;

    margin-bottom: 20px;

    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}


/* =========================================================
   CATEGORY TITLE
========================================================= */

.category-card h3 {
    font-size: 23px;
    font-weight: 700;
    color: #222;

    margin: 0 0 12px;
}


/* =========================================================
   CATEGORY DESCRIPTION
========================================================= */

.category-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;

    margin: 0 0 25px;

    min-height: 55px;
}


/* =========================================================
   VIEW PRODUCTS BUTTON
========================================================= */

.category-card a {
    display: inline-block;

    padding: 12px 28px;

    background: #0d6efd;
    color: #ffffff;

    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    margin-top: auto;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.category-card a:hover {
    background: #0957d0;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.25);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .categories {
        padding: 60px 0 110px;
    }

    .categories-header {
        margin-top: 20px;
        margin-bottom: 45px;
    }

    .categories-header h2 {
        font-size: 34px;
    }

    .categories-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .category-card {
        min-height: 340px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .categories {
        padding: 50px 15px 90px;
    }

    .categories-header {
        margin-top: 15px;
        margin-bottom: 40px;
    }

    .categories-header h2 {
        font-size: 30px;
    }

    .categories-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    .categories-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        min-height: auto;
        padding: 28px 20px;
    }

    .category-card img {
        width: 105px;
        height: 105px;
    }

    .category-card h3 {
        font-size: 22px;
    }

    .category-card p {
        font-size: 14px;
        min-height: auto;
        margin-bottom: 22px;
    }

    .category-card a {
        padding: 11px 25px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .categories {
        padding: 45px 12px 80px;
    }

    .categories-header {
        margin-top: 10px;
        margin-bottom: 35px;
    }

    .categories-header h2 {
        font-size: 27px;
    }

    .categories-header p {
        font-size: 14px;
    }

    .categories-wrapper {
        gap: 18px;
    }

    .category-card {
        padding: 25px 18px;
        border-radius: 12px;
    }

    .category-card img {
        width: 95px;
        height: 95px;
    }

    .category-card h3 {
        font-size: 21px;
    }

    .category-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .category-card a {
        width: auto;
        padding: 11px 24px;
        font-size: 14px;
    }
}
