.mb2b-product-archive {
    background: #FFFFFF;
}

.mb2b-product-archive__hero {
    padding: 80px 0 70px;
    background: #F8FAFC;
}

.mb2b-product-archive__eyebrow,
.mb2b-product-archive__cta-eyebrow {
    margin-bottom: 14px;
    color: #F59E0B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mb2b-product-archive__title {
    max-width: 780px;
    margin: 0;
    color: #0F172A;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 700;
}

.mb2b-product-archive__intro {
    max-width: 680px;
    margin: 24px 0 0;
    color: #64748B;
    font-size: 18px;
    line-height: 1.7;
}

.mb2b-product-archive__catalog {
    padding: 70px 0 90px;
}

.mb2b-product-archive__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
}

.mb2b-product-archive__category {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    color: #475569;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s ease;
}

.mb2b-product-archive__category:hover,
.mb2b-product-archive__category--active {
    border-color: #0F172A;
    color: #FFFFFF;
    background: #0F172A;
}

.mb2b-product-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.mb2b-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    background: #FFFFFF;
    transition: transform .25s ease, box-shadow .25s ease;
}

.mb2b-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.mb2b-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #F8FAFC;
    text-decoration: none !important;
}

.mb2b-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.mb2b-product-card:hover .mb2b-product-card__image img {
    transform: scale(1.035);
}

.mb2b-product-card__image-placeholder {
    color: #94A3B8;
    font-size: 13px;
}

.mb2b-product-card__content {
    min-width: 0;
    padding: 24px;
}

.mb2b-product-card__category {
    margin-bottom: 9px;
    color: #F59E0B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mb2b-product-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.mb2b-product-card__title a {
    color: #0F172A;
    text-decoration: none !important;
}

.mb2b-product-card__description {
    display: -webkit-box;
    margin: 12px 0 20px;
    overflow: hidden;
    color: #64748B;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mb2b-product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0F172A;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.mb2b-product-card__link:hover {
    color: #F59E0B;
}

.mb2b-product-archive__empty {
    padding: 60px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    color: #64748B;
    text-align: center;
}

/* ---------------------------------------------------------
   PRODUCT ARCHIVE — CTA
   Matches Single Product CTA visual system
   --------------------------------------------------------- */

.mb2b-product-archive__cta {
    padding: 70px 0;
    background: #F8FAFC;
}

.mb2b-product-archive__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 45px;
    border-radius: 18px;
    background: #062431;
}

.mb2b-product-archive__cta-eyebrow {
    margin-bottom: 14px;
    color: #F59E0B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mb2b-product-archive__cta h2 {
    max-width: 650px;
    margin: 0 0 12px;
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
}

.mb2b-product-archive__cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.6;
}

.mb2b-product-archive__cta .mb2b-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    background: #F59E0B;
    color: #112C62;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.mb2b-product-archive__cta .mb2b-button:hover,
.mb2b-product-archive__cta .mb2b-button:focus {
    border-color: #E59400;
    background: #E59400;
    color: #112C62;
    text-decoration: none;
    transform: translateY(-2px);
}

.mb2b-product-archive__cta .mb2b-button span {
    color: inherit;
}

@media (max-width: 767px) {
    .mb2b-product-archive__cta {
        padding: 45px 0;
    }

    .mb2b-product-archive__cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 30px 24px;
    }

    .mb2b-product-archive__cta h2 {
        font-size: 27px;
    }

    .mb2b-product-archive__cta .mb2b-button {
        width: 100%;
        justify-content: center;
    }
}

/* Hide the native Hello Elementor footer on the Product Archive.
 * The Makky B2B global footer is rendered separately.
 */
body.post-type-archive-mb2b_product footer:not(.mb2b-footer),
body.post-type-archive-mb2b_product .site-footer,
body.post-type-archive-mb2b_product #colophon {
    display: none !important;
}

/* ---------------------------------------------------------
   PRODUCT ARCHIVE — RESPONSIVE GRID
   --------------------------------------------------------- */

@media (max-width: 1024px) {
    .mb2b-product-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mb2b-product-archive__catalog {
        padding: 50px 0 60px;
    }

    .mb2b-product-archive__categories {
        margin-bottom: 30px;
    }

    .mb2b-product-archive__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .mb2b-product-card__content {
        padding: 20px;
    }
}

/* ---------------------------------------------------------
   PRODUCT ARCHIVE — PRODUCT CARD POLISH
   --------------------------------------------------------- */

@media (min-width: 1025px) {

    .mb2b-product-card__image {
        aspect-ratio: 1 / .88;
    }

    .mb2b-product-card__content {
        min-height: 270px;
        padding: 22px 24px 24px;
        display: flex;
        flex-direction: column;
    }

    .mb2b-product-card__category {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: .12em;
    }

    .mb2b-product-card__title {
        min-height: 52px;
        font-size: 20px;
        line-height: 1.3;
    }

    .mb2b-product-card__description {
        margin: 10px 0 20px;
        min-height: 69px;
        font-size: 14px;
        line-height: 1.65;
    }

    .mb2b-product-card__link {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #E2E8F0;
        width: 100%;
        justify-content: space-between;
        color: #0F172A;
    }

    .mb2b-product-card__link:hover {
        color: #F59E0B;
    }

}

@media (max-width: 1024px) {

    .mb2b-product-card__content {
        display: flex;
        flex-direction: column;
    }

    .mb2b-product-card__link {
        margin-top: auto;
    }

}

