/* ==========================================================
   STAGE 3 — MEREK YANG TERSEDIA
========================================================== */

.product-brands-stage-three {
    position: relative;
    isolation: isolate;

    width: 100%;
    padding:
        clamp(72px, 7vw, 108px) 0 clamp(84px, 8vw, 125px);

    background-color: #ffffff;
    border: 0;

    overflow: hidden;
}


/* ==========================================================
   DECORATION
========================================================== */

.product-brands-stage-decoration {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;

    width: 185px;
    height: 155px;

    background-image:
        radial-gradient(circle,
            rgba(239, 0, 0, 0.24) 1.2px,
            transparent 1.4px);

    background-position: center;
    background-size: 10px 10px;

    pointer-events: none;
}

.product-brands-stage-red-line {
    position: absolute;
    top: -24px;
    left: 60px;

    width: 18px;
    height: 105px;

    background-color: #ef0000;

    transform: rotate(32deg);
}


/* ==========================================================
   HEADER
========================================================== */

.product-brands-stage-header {
    position: relative;
    z-index: 2;

    width: 100%;
    margin-bottom: 34px;
}

.product-brands-stage-title {
    margin: 0;

    color: #090909;

    font-size: clamp(31px, 2.8vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.4px;
}


/* ==========================================================
   GRID
========================================================== */

.product-brands-stage-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    width: 100%;
}

.product-brands-stage-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;

    width: calc((100% - 24px) / 2);
}


/* ==========================================================
   CARD
========================================================== */

.product-brands-stage-card {
    display: grid;
    grid-template-columns:
        minmax(190px, 0.95fr) minmax(220px, 1.05fr);

    min-width: 0;
    min-height: 345px;

    background-color: #ffffff;
    border: 1px solid #dedede;
    border-radius: 9px;

    overflow: hidden;

    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.product-brands-stage-card:hover {
    border-color: rgba(239, 0, 0, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);

    transform: translateY(-4px);
}


/* ==========================================================
   PRODUCT IMAGE
========================================================== */

.product-brands-stage-media {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 345px;
    padding: 34px 16px 34px 30px;

    background-color: #ffffff;

    overflow: hidden;
}

.product-brands-stage-image {
    display: block;

    width: 100%;
    max-width: 250px;
    height: auto;
    max-height: 275px;

    object-fit: contain;
    object-position: center;

    transition: transform 500ms ease;
}

.product-brands-stage-card:hover .product-brands-stage-image {
    transform: scale(1.035);
}


/* ==========================================================
   CARD CONTENT
========================================================== */

.product-brands-stage-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding:
        42px 36px 42px 16px;
}

.product-brands-stage-label {
    margin: 0;

    color: #090909;

    font-size: clamp(20px, 1.55vw, 27px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-brands-stage-description {
    max-width: 300px;
    margin: 20px 0 0;

    color: #3f3f3f;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}


/* ==========================================================
   CARD BUTTON
========================================================== */

.product-brands-stage-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    width: 100%;
    max-width: 230px;
    min-height: 55px;
    margin-top: 34px;
    padding: 13px 20px;

    background-color: #ffffff;
    border: 1px solid #ef0000;
    border-radius: 6px;

    color: #ef0000;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.product-brands-stage-button svg {
    flex: 0 0 auto;

    width: 23px;
    height: 23px;

    transition: transform 180ms ease;
}

.product-brands-stage-button:hover {
    background-color: #ef0000;
    box-shadow: 0 10px 22px rgba(239, 0, 0, 0.18);

    color: #ffffff;

    transform: translateY(-2px);
}

.product-brands-stage-button:hover svg {
    transform: translateX(4px);
}


/* ==========================================================
   LARGE LAPTOP
========================================================== */

@media (max-width: 1380px) {
    .product-brands-stage-card {
        grid-template-columns:
            minmax(165px, 0.9fr) minmax(200px, 1.1fr);

        min-height: 320px;
    }

    .product-brands-stage-media {
        min-height: 320px;
        padding-left: 24px;
    }

    .product-brands-stage-image {
        max-width: 215px;
    }

    .product-brands-stage-content {
        padding:
            36px 28px 36px 14px;
    }

    .product-brands-stage-description {
        margin-top: 16px;

        font-size: 13px;
    }

    .product-brands-stage-button {
        margin-top: 26px;
    }

}


/* ==========================================================
   SMALL LAPTOP
========================================================== */

@media (max-width: 1080px) {
    .product-brands-stage-grid {
        gap: 18px;
    }

    .product-brands-stage-card:nth-child(3) {
        width: calc((100% - 18px) / 2);
    }

    .product-brands-stage-card {
        grid-template-columns: 1fr;
    }

    .product-brands-stage-media {
        min-height: 260px;
        padding:
            28px 28px 12px;
    }

    .product-brands-stage-image {
        max-width: 250px;
        max-height: 220px;
    }

    .product-brands-stage-content {
        align-items: center;

        padding:
            20px 34px 36px;

        text-align: center;
    }

    .product-brands-stage-description {
        max-width: 360px;
    }

    .product-brands-stage-button {
        justify-content: space-between;

        max-width: 260px;
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 800px) {
    .product-brands-stage-three {
        padding:
            70px 0 85px;
    }

    .product-brands-stage-grid {
        grid-template-columns: 1fr;
    }

    .product-brands-stage-card:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;

        width: 100%;
    }

    .product-brands-stage-card {
        grid-template-columns:
            minmax(190px, 0.85fr) minmax(240px, 1.15fr);

        min-height: 320px;
    }

    .product-brands-stage-media {
        min-height: 320px;
        padding:
            30px 14px 30px 28px;
    }

    .product-brands-stage-content {
        align-items: flex-start;
        min-height: 0;

        padding:
            38px 34px 38px 18px;

        text-align: left;
    }

    .product-brands-stage-button {
        max-width: 235px;
        margin-top: 28px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 560px) {
    .product-brands-stage-three {
        padding:
            54px 0 68px;
    }

    .product-brands-stage-decoration {
        width: 120px;
        height: 110px;

        background-size: 8px 8px;
    }

    .product-brands-stage-red-line {
        left: 44px;

        width: 14px;
        height: 78px;
    }

    .product-brands-stage-header {
        margin-bottom: 24px;
    }

    .product-brands-stage-title {
        max-width: 270px;

        font-size: 32px;
        letter-spacing: -1px;
    }

    .product-brands-stage-card {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    .product-brands-stage-media {
        min-height: 240px;
        padding:
            30px 25px 10px;
    }

    .product-brands-stage-image {
        max-width: 225px;
        max-height: 205px;
    }

    .product-brands-stage-content {
        align-items: flex-start;

        padding:
            24px 24px 30px;

        text-align: left;
    }

    .product-brands-stage-label {
        font-size: 22px;
    }

    .product-brands-stage-description {
        margin-top: 15px;

        font-size: 13px;
        line-height: 1.75;
    }

    .product-brands-stage-button {
        width: 100%;
        max-width: none;
        margin-top: 24px;
    }
}
