/* =========================================================
   PBM PRODUCTS PAGE
   Product-specific styling only
========================================================= */


/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

.pbm-products-page {
    background: #f5f7f6;
    color: #18251f;
}


/* ---------------------------------------------------------
   PRODUCTS HERO
--------------------------------------------------------- */

.pbm-products-hero {
    background: #0d5735;
    color: #ffffff;

    padding: 95px 30px;

    display: flex;
    justify-content: center;
}

.pbm-products-hero-inner {
    width: min(1100px, 100%);
    margin: 0 auto;

    text-align: center;
}

.pbm-products-hero h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;

    font-weight: 800;

    text-align: center;
}

.pbm-products-hero p {
    max-width: 900px;

    margin: 0 auto;

    color: #ffffff;

    font-size: 19px;
    line-height: 1.7;

    text-align: center;
}

/* ---------------------------------------------------------
   INTRO
--------------------------------------------------------- */

.pbm-products-intro {
    background: #ffffff;
    padding: 70px 30px;
}

.pbm-products-intro-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    text-align: center;
}

.pbm-products-intro h2 {
    margin: 0 0 18px;
    color: #0d5735;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}

.pbm-products-intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: #46534d;
}


/* ---------------------------------------------------------
   CATALOG
--------------------------------------------------------- */

.pbm-catalog {
    padding: 30px 30px 90px;
    background: #f5f7f6;
}

.pbm-catalog-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}


/* ---------------------------------------------------------
   PRODUCT CARD
--------------------------------------------------------- */

.pbm-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 70px;

    background: #ffffff;

    padding: 58px 62px;
    margin-bottom: 45px;

    border-radius: 24px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.055);

    overflow: hidden;
}


/*
 * Reverse alternating products.
 */

.pbm-product-row-reverse .pbm-product-media {
    order: 2;
}

.pbm-product-row-reverse .pbm-product-info {
    order: 1;
}


/* ---------------------------------------------------------
   PRODUCT IMAGE
--------------------------------------------------------- */

.pbm-product-media {
    min-width: 0;
}

.pbm-product-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.pbm-product-image {
    display: block;

    width: 100%;
    height: 360px;

    object-fit: cover;

    border-radius: 18px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.pbm-product-image-link:hover .pbm-product-image {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.12);
}


/* No image */

.pbm-product-image-placeholder {
    width: 100%;
    height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf0ee;
    color: #7a8580;

    border-radius: 18px;

    font-size: 16px;
}


/* ---------------------------------------------------------
   PRODUCT INFORMATION
--------------------------------------------------------- */

.pbm-product-info {
    min-width: 0;
}


/* ---------------------------------------------------------
   PRODUCT TITLE
--------------------------------------------------------- */

.pbm-product-name {
    margin: 0 0 30px;
    padding: 0;

    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;

    text-align: left;
}


/* Green title pill */
.pbm-product-name span {
    display: inline-block;

    background: #0d5735;
    color: #ffffff;

    padding: 12px 26px;

    border-radius: 999px;

    border-bottom: 3px solid #24c875;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


/* Prevent old decorative lines */
.pbm-product-name::before,
.pbm-product-name::after,
.pbm-product-name span::before,
.pbm-product-name span::after {
    content: none !important;
    display: none !important;
}
.pbm-product-info {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.pbm-product-summary,
.pbm-product-features,
.pbm-product-actions {
    text-align: left;
}

/* ---------------------------------------------------------
   SHORT DESCRIPTION
--------------------------------------------------------- */

.pbm-product-summary {
    margin-bottom: 26px;

    color: #34423c;

    font-size: 18px;
    line-height: 1.75;
}

.pbm-product-summary p {
    margin: 0 0 12px;
}

.pbm-product-summary p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   FEATURES
--------------------------------------------------------- */

.pbm-product-features {
    list-style: none !important;

    margin: 0 0 32px !important;
    padding: 0 !important;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pbm-product-features li {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin: 0 !important;
    padding: 0 !important;

    color: #26362f;

    font-size: 17px;
    line-height: 1.5;
}


/*
 * IMPORTANT:
 * PHP already outputs the ✓.
 *
 * Therefore CSS must NEVER generate another one.
 */

.pbm-product-features li::before,
.pbm-product-features li::after {
    content: none !important;
    display: none !important;
}


/*
 * The ONE checkmark generated by page-products.php.
 */

.pbm-feature-check {
    flex: 0 0 auto;

    color: #0d6a3e;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.25;
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.pbm-product-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 8px;
}

.pbm-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 28px;

    border-radius: 999px;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.pbm-product-btn:hover {
    transform: translateY(-2px);
}


/* View Product */

.pbm-product-btn-primary {
    background: #0d5735;
    color: #ffffff !important;
}

.pbm-product-btn-primary:hover {
    background: #083f27;
}


/* Enquire Now */

.pbm-product-btn-secondary {
    background: transparent;

    color: #0d5735 !important;

    border: 2px solid #0d5735;
}

.pbm-product-btn-secondary:hover {
    background: #0d5735;
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   EMPTY CATALOG
--------------------------------------------------------- */

.pbm-empty-catalog {
    background: #ffffff;

    padding: 60px 30px;

    border-radius: 22px;

    text-align: center;
}

.pbm-empty-catalog h2 {
    margin-top: 0;
    color: #0d5735;
}


/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */

.pbm-products-cta {
    background: #0d5735;
    color: #ffffff;

    padding: 80px 30px;
}

.pbm-products-cta-inner {
    width: min(1000px, 100%);
    margin: 0 auto;

    text-align: center;
}

.pbm-products-cta h2 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
}

.pbm-products-cta p {
    max-width: 760px;

    margin: 0 auto 30px;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.7;
}

.pbm-products-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px;
}

.pbm-cta-primary,
.pbm-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 30px;

    border-radius: 999px;

    font-weight: 700;

    text-decoration: none !important;
}

.pbm-cta-primary {
    background: #ffffff;
    color: #0d5735 !important;
}

.pbm-cta-secondary {
    border: 2px solid #ffffff;
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1000px) {

    .pbm-product-row {
        gap: 42px;
        padding: 45px;
    }

    .pbm-product-image,
    .pbm-product-image-placeholder {
        height: 320px;
    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 760px) {

    .pbm-products-hero {
        padding: 65px 22px;
    }

    .pbm-products-intro {
        padding: 55px 22px;
    }

    .pbm-catalog {
        padding:
            20px
            16px
            65px;
    }


    .pbm-product-row {
        grid-template-columns: 1fr;

        gap: 32px;

        padding: 22px;

        margin-bottom: 28px;

        border-radius: 18px;
    }


    /*
     * Disable alternating layout on mobile.
     * Image always first.
     */

    .pbm-product-row-reverse .pbm-product-media {
        order: 1;
    }

    .pbm-product-row-reverse .pbm-product-info {
        order: 2;
    }


    .pbm-product-image,
    .pbm-product-image-placeholder {
        height: 260px;
        border-radius: 14px;
    }


    .pbm-product-name {
        margin-bottom: 26px;

        font-size: 29px;
    }


    .pbm-product-summary {
        font-size: 16px;
    }


    .pbm-product-features li {
        font-size: 16px;
    }


    .pbm-product-btn {
        min-height: 48px;
        padding: 0 24px;
    }


    .pbm-products-cta {
        padding: 65px 22px;
    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 480px) {

    .pbm-product-row {
        padding: 16px;
    }

    .pbm-product-image,
    .pbm-product-image-placeholder {
        height: 220px;
    }

    .pbm-product-actions {
        flex-direction: column;
    }

    .pbm-product-btn {
        width: 100%;
    }

}