
/* =========================================
   BKK PRODUCTS - CONSOLIDATED DESIGN
========================================= */

/* SECTION BACKGROUND - WHITE, GREY AND CREAM MIX */

html body section#portfolio.bkk-products {
    background: linear-gradient(
        135deg,
        #f8f8f6 0%,
        #f0f2f3 45%,
        #f7f3eb 100%
    ) !important;
    background-color: #f4f4f0 !important;
    padding: 85px 0 !important;
    overflow: hidden;
}

/* Heading */

html body #portfolio.bkk-products .bkk-products-heading {
    display: block !important;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 38px;
}

html body #portfolio.bkk-products .bkk-products-eyebrow {
    display: inline-block;
    color: #245b91 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

html body #portfolio.bkk-products .bkk-products-heading h2 {
    color: #172b42 !important;
    font-size: 36px;
    font-weight: 750;
    margin: 0 0 14px;
}

html body #portfolio.bkk-products .bkk-products-heading p {
    color: #536273 !important;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 auto;
}

/* Filters */

html body #portfolio.bkk-products .bkk-product-filters {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 38px;
}

html body #portfolio.bkk-products .bkk-filter-btn {
    background: rgba(255,255,255,0.85) !important;
    color: #172b42 !important;
    border: 1px solid #d5dce3 !important;
    border-radius: 30px;
    padding: 9px 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

html body #portfolio.bkk-products .bkk-filter-btn:hover,
html body #portfolio.bkk-products .bkk-filter-btn.active {
    background: #245b91 !important;
    color: #ffffff !important;
    border-color: #245b91 !important;
}

/* Grid */

html body #portfolio.bkk-products .bkk-products-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px;
    align-items: stretch;
}

/* ALL PRODUCT CARDS: ONE IDENTICAL BACKGROUND */

html body #portfolio.bkk-products .bkk-products-grid .bkk-product-card,
html body #portfolio.bkk-products .bkk-products-grid .bkk-product-card:nth-child(n) {
    background: #eaf1f8 !important;
    background-color: #eaf1f8 !important;
    border: 1px solid #d5e0ec !important;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;
    min-height: 225px;
    padding: 15px 13px 14px;
    border-radius: 13px;

    text-align: center;
    overflow: hidden;

    box-shadow: 0 5px 16px rgba(0,0,0,0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html body #portfolio.bkk-products .bkk-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.22);
}

html body #portfolio.bkk-products .bkk-product-card > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

/* Images */

html body #portfolio.bkk-products .bkk-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 145px;
    padding: 7px;
}

html body #portfolio.bkk-products .bkk-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

html body #portfolio.bkk-products .bkk-product-card:hover img {
    transform: scale(1.045);
}

/* Names */

html body #portfolio.bkk-products .bkk-product-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 3px 2px;

    color: #172b42 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Filters */

html body #portfolio.bkk-products .bkk-product-card.bkk-product-hidden {
    display: none !important;
}

/* Tablet */

@media (max-width: 1199px) {
    html body #portfolio.bkk-products .bkk-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */

@media (max-width: 767px) {
    html body section#portfolio.bkk-products {
        padding: 60px 0 !important;
    }

    html body #portfolio.bkk-products .bkk-products-heading h2 {
        font-size: 29px;
    }

    html body #portfolio.bkk-products .bkk-products-heading p {
        font-size: 13px;
        padding: 0 8px;
    }

    html body #portfolio.bkk-products .bkk-product-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 25px;
        -webkit-overflow-scrolling: touch;
    }

    html body #portfolio.bkk-products .bkk-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 8px 13px;
    }

    html body #portfolio.bkk-products .bkk-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    html body #portfolio.bkk-products .bkk-products-grid .bkk-product-card {
        min-height: 190px;
        padding: 10px 8px;
    }

    html body #portfolio.bkk-products .bkk-product-image {
        height: 115px;
        padding: 5px;
    }

    html body #portfolio.bkk-products .bkk-product-name {
        min-height: 48px;
        padding-top: 8px;
        font-size: 11px;
        line-height: 1.35;
    }
}

@media (max-width: 360px) {
    html body #portfolio.bkk-products .bkk-products-grid {
        gap: 9px;
    }

    html body #portfolio.bkk-products .bkk-products-grid .bkk-product-card {
        min-height: 175px;
        padding: 8px 6px;
    }

    html body #portfolio.bkk-products .bkk-product-image {
        height: 105px;
    }

    html body #portfolio.bkk-products .bkk-product-name {
        font-size: 10px;
    }
}
