/* ==========================================================
   Shop by Category
   Costa Power Industries Pvt Ltd
========================================================== */

.category-section {
    position: relative;
    padding: 72px 0;
    background: #f5f8fc;
}

.category-container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.category-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.category-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #0067a8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.category-heading h2 {
    margin: 0 0 14px;
    color: #12304a;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
}

.category-heading p {
    margin: 0;
    color: #627486;
    font-size: 16px;
    line-height: 1.7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #e4ebf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(22, 55, 82, 0.08);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    border-color: #0b70b5;
    box-shadow: 0 20px 42px rgba(10, 80, 128, 0.17);
}

.category-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, #ffffff 0%, #eef5fb 100%);
}

.category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.category-card:hover .category-image {
    transform: scale(1.07);
}

.category-content {
    position: relative;
    padding: 20px 20px 22px;
    border-top: 1px solid #edf1f5;
    text-align: center;
}

.category-content h3 {
    margin: 0 0 9px;
    color: #17364f;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.category-content span {
    color: #076cae;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.category-card:hover .category-content span {
    color: #d69b00;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .category-section {
        padding: 58px 0;
    }

    .category-heading {
        margin-bottom: 32px;
    }

    .category-heading h2 {
        font-size: 34px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .category-image-wrap {
        height: 190px;
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .category-section {
        padding: 46px 0;
    }

    .category-container {
        width: 92%;
    }

    .category-heading h2 {
        font-size: 29px;
    }

    .category-heading p {
        font-size: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-image-wrap {
        height: 210px;
    }
}