/* =========================================================
   PRODUCTS PAGE
========================================================= */

.products-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: url("images/contacts1.jpg") center center / cover no-repeat;
}

.products-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,14,12,.84), rgba(8,14,12,.50) 45%, rgba(8,14,12,.12));
}

.products-hero-content {
    position: relative;
    z-index: 2;
}

.products-hero .section-label,
.products-page-heading .section-label,
.products-category-heading .section-label,
.products-empty-state .section-label,
.products-bottom-cta-content .section-label {
    display: block;
    color: #7ca52b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.products-hero .section-label {
    color: rgba(255,255,255,.78);
    margin-bottom: 12px;
}

.products-hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.products-hero p {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,.9);
}

.products-page-section {
    padding: 25px 0 25px;
    background: #fff;
}

.products-container {
    max-width: 1300px;
}

.products-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.products-page-heading h2,
.products-category-heading h2 {
    margin: 0;
    color: #30393a;
    line-height: 1.2;
}

.products-page-heading h2 {
    font-size: 38px;
}

.products-reset-link,
.products-category-view,
.product-card-link {
    color: #6f9627;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.products-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 65px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e3e5e1;
}

.products-category-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #dde2da;
    background: #f7f8f5;
    color: #4a534d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.products-category-link:hover,
.products-category-link.active {
    background: #7ca52b;
    border-color: #7ca52b;
    color: #fff;
}

.products-category-section {
    margin-bottom: 85px;
}

.products-category-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

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

.products-category-heading p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #6d7470;
    font-size: 15px;
    line-height: 1.7;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e5e1;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f6f3;
    text-decoration: none;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

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

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b918d;
    font-size: 13px;
}

.product-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 9px;
    background: #7ca52b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.product-card-category {
    display: block;
    margin-bottom: 8px;
    color: #7ca52b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0 0 11px;
    font-size: 20px;
    line-height: 1.25;
}

.product-card h3 a {
    color: #30393a;
    text-decoration: none;
}

.product-card h3 a:hover {
    color: #7ca52b;
}

.product-card p {
    margin: 0 0 18px;
    color: #707773;
    font-size: 14px;
    line-height: 1.6;
}

.product-card-link {
    margin-top: auto;
}

.products-empty-state {
    padding: 70px 30px;
    text-align: center;
    background: #f6f7f4;
    border: 1px solid #e5e7e2;
}

.products-empty-state h2 {
    margin: 10px 0 15px;
    color: #30393a;
    font-size: 28px;
}

.products-empty-state p {
    max-width: 560px;
    margin: 0 auto 25px;
    color: #6d7470;
    font-size: 15px;
    line-height: 1.7;
}

.products-bottom-cta {
    padding: 25px 0;
    background: #f5f6f3;
    border-top: 1px solid #e4e6e1;
}

.products-bottom-cta-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.products-bottom-cta-content h2 {
    margin: 0 0 15px;
    color: #30393a;
    font-size: 34px;
}

.products-bottom-cta-content p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: #6d7470;
    font-size: 15px;
    line-height: 1.7;
}

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

@media (max-width: 800px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-page-heading,
    .products-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .products-hero {
        min-height: 270px;
    }

    .products-hero h1 {
        font-size: 38px;
    }

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

    .products-category-link {
        width: 100%;
        justify-content: center;
    }
}