﻿.bm-product-listing {
    padding: 70px 20px;
    background: #f7f9fc;
    font-family: Arial, Helvetica, sans-serif;
    color: #17212b;
}

.bm-product-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */

.bm-product-header {
    text-align: center;
    margin-bottom: 35px;
}

.bm-product-label {
    display: inline-block;
    color: #1d6f42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.bm-product-header h2 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.2;
}

.bm-product-header p {
    max-width: 750px;
    margin: auto;
    color: #68737e;
    line-height: 1.7;
    font-size: 16px;
}

/* Filters */

.bm-product-filters {
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(23, 33, 43, 0.05);
}

.bm-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bm-filter-field label {
    font-size: 13px;
    font-weight: 700;
    color: #17212b;
}

.bm-filter-field input,
.bm-filter-field select {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dfe5e9;
    border-radius: 7px;
    background: #fff;
    font-size: 14px;
    color: #17212b;
    outline: none;
}

.bm-filter-field input:focus,
.bm-filter-field select:focus {
    border-color: #1d6f42;
}

/* Filter Buttons */

.bm-product-filter-buttons {
    display: flex;
    align-items: end;
    gap: 10px;
}

.bm-product-filter-buttons button {
    height: 44px;
    border: none;
    border-radius: 7px;
    padding: 0 18px;
    background: #1d6f42;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.bm-product-filter-buttons button:hover {
    background: #258653;
}

.bm-product-filter-buttons .bm-product-reset {
    background: #17212b;
}

.bm-product-filter-buttons .bm-product-reset:hover {
    background: #263642;
}

/* Results Top */

.bm-product-results-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #68737e;
    font-size: 14px;
}

.bm-product-results-top strong {
    color: #17212b;
}

.bm-product-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-product-sort select {
    height: 38px;
    border: 1px solid #dfe5e9;
    border-radius: 6px;
    padding: 0 10px;
    background: #fff;
}

/* Product Grid */

.bm-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.bm-product-card {
    background: #fff;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.bm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(23, 33, 43, 0.10);
}

/* Product Image */

.bm-product-image {
    position: relative;
    height: 210px;
    background: #eef2f4;
    overflow: hidden;
}

.bm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1d6f42;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

/* Product Content */

.bm-product-content {
    padding: 18px;
}

.bm-product-category {
    color: #1d6f42;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bm-product-content h3 {
    margin: 7px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.bm-product-code {
    margin: 0 0 8px;
    color: #68737e;
    font-size: 12px;
}

.bm-product-business {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 700;
}

.bm-product-location {
    color: #68737e;
    font-size: 12px;
    margin-bottom: 16px;
}

.bm-product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9edef;
    padding-top: 14px;
}

.bm-product-bottom strong {
    color: #1d6f42;
    font-size: 16px;
}

.bm-product-bottom a {
    color: #17212b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.bm-product-bottom a:hover {
    color: #1d6f42;
}

/* No Results */

.bm-product-no-results {
    display: none;
    background: #fff;
    border: 1px solid #e2e7eb;
    padding: 35px;
    text-align: center;
    color: #68737e;
    border-radius: 10px;
    margin-top: 20px;
}

/* Pagination */

.bm-product-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 35px;
}

.bm-product-pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dfe5e9;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #17212b;
}

.bm-product-pagination button:hover,
.bm-product-pagination button.active {
    background: #1d6f42;
    border-color: #1d6f42;
    color: #fff;
}

/* CTA */

.bm-product-cta {
    margin-top: 55px;
    padding: 40px 25px;
    text-align: center;
    background: #17212b;
    border-radius: 12px;
    color: #fff;
}

.bm-product-cta h3 {
    margin: 0 0 10px;
    font-size: 26px;
}

.bm-product-cta p {
    margin: 0 auto 22px;
    max-width: 650px;
    color: #c7d0d7;
    line-height: 1.6;
}

.bm-product-cta a {
    display: inline-block;
    background: #1d6f42;
    color: #fff;
    padding: 12px 24px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.bm-product-cta a:hover {
    background: #258653;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1050px) {

    .bm-product-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {

    .bm-product-header h2 {
        font-size: 30px;
    }

    .bm-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-product-results-top {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .bm-product-listing {
        padding: 50px 15px;
    }

    .bm-product-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .bm-product-filter-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .bm-product-filter-buttons button {
        width: 100%;
    }

    .bm-product-grid {
        grid-template-columns: 1fr;
    }

    .bm-product-header h2 {
        font-size: 26px;
    }

    .bm-product-cta h3 {
        font-size: 22px;
    }
}
