/* ===================================
   PRODUCTS HERO (TIGHT + CLEAN)
=================================== */

.products-hero {
    padding: 110px 0 25px;
    text-align: center;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
}

.products-hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.products-hero p {
    font-size: 14px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}


/* ===================================
   FILTER (MORE MODERN + SMALLER)
=================================== */

.product-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;

    background: #f3f4f6;
    padding: 6px;
    border-radius: 50px;

    width: fit-content;
    margin: 0 auto;
}

.product-filter a {
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 500;

    padding: 7px 14px;
    border-radius: 50px;

    transition: all .25s ease;
}

.product-filter a:hover {
    background: rgba(227, 30, 36, 0.1);
    color: var(--primary);
}

.product-filter a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
}


/* ===================================
   PRODUCTS LIST
=================================== */

.products-list {
    background: #fff;
    padding: 40px 0 70px;
}

.products-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* FIXED 4 COLUMNS */
    gap: 22px;
}


/* ===================================
   PRODUCT CARD (MORE COMPACT)
=================================== */

/* ===================================
   PRODUCT CARD (MORE COMPACT)
=================================== */

.product-card {
    background: #f7f7f7;
    min-height: 320px;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    transition: all .3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);

    display: flex;
    flex-direction: column;
    height: 100%;

    position: relative;
    /* REQUIRED for badge */
}

/* PRODUCT BADGE */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    font-size: 11px;
    font-weight: 600;

    padding: 5px 12px;
    border-radius: 20px;

    color: #fff;
    letter-spacing: .3px;
    text-transform: capitalize;

    backdrop-filter: blur(6px);
}

/* CATEGORY COLORS */

.product-badge.industrial {
    background: #e31e24;
}

.product-badge.residential {
    background: #2563eb;
}

.product-badge.commercial {
    background: #059669;
}

.product-card img {
    height: 150px;
    object-fit: contain;
    margin: auto;
    display: block;
}

.product-card h3 {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.product-card p {
    margin: 8px 0 12px;
    min-height: 50px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.product-card a {
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    margin-top: auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 25px rgba(0, 0, 0, .08);
}


/* ===================================
   EMPTY STATE
=================================== */

.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #6B7280;
    padding: 30px 0;
}


/* ===================================
   MOBILE RESPONSIVENESS
=================================== */

@media (max-width: 768px) {

    .products-hero {
        padding: 95px 0 20px;
    }

    .products-hero h1 {
        font-size: 24px;
    }

    .products-hero p {
        font-size: 13px;
    }

    .products-grid {
        gap: 18px;
        margin-top: 25px;
    }

    .product-card {
        padding: 18px;
    }

    .product-card img {
        height: 130px;
    }

    .product-filter a {
        font-size: 8px;
    }
}


/* Extra small devices */

@media (max-width: 480px) {

    .products-hero h1 {
        font-size: 22px;
    }

    .products-hero p {
        font-size: 12.5px;
    }

    .product-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Tablet */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}