.browse-products-section {
    width: 100%;
    padding: 70px 20px;
    background: #f5f7fa;
}

.browse-products-header {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

 

.browse-products-header h1 {
    margin: 0 0 12px;
    color: #172033;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
}

.browse-products-header p {
    margin: 0;
    color: #677184;
    font-size: 17px;
    line-height: 1.6;
}

.product-category-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.product-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(24, 39, 75, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.product-category-card:hover {
    transform: translateY(-7px);
    border-color: #005baa;
    box-shadow: 0 18px 40px rgba(24, 39, 75, 0.15);
}

.product-category-image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #fff;
}

.product-category-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(
        to top,
        rgba(0, 91, 170, 0.08),
        transparent
    );
    pointer-events: none;
}

.product-category-image img {
    width: 100%;
    height: 100%;
    padding: 22px;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-category-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
    border-top: 1px solid #edf0f4;
}

.product-category-content h2 {
    margin: 0 0 8px;
    color: #182235;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.product-category-content p {
    margin: 0 0 22px;
    color: #778196;
    font-size: 14px;
}

.product-category-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0c6f54;
    font-size: 15px;
    font-weight: 700;
}

.product-category-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0c6f54;
    border-radius: 50%;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.product-category-card:hover .product-category-arrow {
    transform: translateX(4px);
    background: #003f78;
}

.product-category-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    color: #687387;
    background: #fff;
    border: 1px dashed #cbd3dd;
    border-radius: 15px;
    text-align: center;
    font-size: 17px;
}

/* Large tablets */

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

/* Tablets */

@media (max-width: 800px) {
    .browse-products-section {
        padding: 50px 16px;
    }

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

    .product-category-image {
        height: 200px;
    }
}

/* Mobile */

@media (max-width: 520px) {
    .browse-products-section {
        padding: 40px 2px;
    }

    .browse-products-header {
        margin-bottom: 30px;
    }

    .browse-products-header p {
        font-size: 15px;
    }

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

    .product-category-image {
        height: 220px;
    }

    .product-category-content {
        padding: 18px;
    }
}