/* GHome Product Promo Banners */
.ghm-product-promo-banners-section {
    width: 100vw;
    max-width: 100vw;
    padding: 38px max(16px, env(safe-area-inset-left)) 34px max(16px, env(safe-area-inset-right));
    margin-top: 0;
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
    box-sizing: border-box;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .ghm-product-promo-banners-section {
        overflow-x: hidden;
    }
}

@supports (width: 100dvw) {
    .ghm-product-promo-banners-section {
        width: 100dvw;
        max-width: 100dvw;
        margin-left: calc(50% - 50dvw);
        margin-right: calc(50% - 50dvw);
    }
}

.ghm-product-promo-banners-section *,
.ghm-product-promo-banners-section *::before,
.ghm-product-promo-banners-section *::after {
    box-sizing: border-box;
}

.ghm-product-promo-banners-section__inner {
    width: 100%;
    max-width: min(100%, var(--ghm-ppb-max-width, 1400px));
    margin: 0 auto;
}

.ghm-product-promo-banners-section__header {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}

.ghm-product-promo-banners-section__title {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #2b2f36;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
}

.ghm-product-promo-banners-section__title::after {
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 86px;
    height: 4px;
    border-radius: 999px;
    background: #2563eb;
    content: "";
    transform: translateX(-50%);
}

.ghm-product-promo-banners-section__subtitle {
    margin: 20px 0 0;
    color: #526071;
    font-size: 15px;
    line-height: 1.6;
}

.ghm-product-promo-banners {
    display: grid;
    grid-template-columns: repeat(var(--ghm-ppb-columns-desktop, 2), minmax(0, 1fr));
    gap: var(--ghm-ppb-gap, 16px);
    align-items: stretch;
}

.ghm-product-promo-banner {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: var(--ghm-ppb-border-radius, 4px);
    box-shadow: none;
    transform: translate3d(0, 0, 0);
    transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
    aspect-ratio: 692 / 220.13;
    isolation: isolate;
    will-change: transform;
}

.ghm-product-promo-banner:hover,
.ghm-product-promo-banner:focus-within {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
    transform: translate3d(0, -8px, 0);
}

.ghm-product-promo-banner__image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--ghm-ppb-image-fit, cover);
    object-position: center center;
    transform: scale(1);
    transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.ghm-product-promo-banner:hover .ghm-product-promo-banner__image,
.ghm-product-promo-banner:focus-within .ghm-product-promo-banner__image {
    transform: scale(1.08);
}

.ghm-product-promo-banner__button {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 44px;
    padding: 13px 26px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    background: #000000;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    transition: transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1), background-color 180ms ease;
}

.ghm-product-promo-banner__button:hover,
.ghm-product-promo-banner__button:focus {
    color: #ffffff;
    text-decoration: none;
    background: #000000;
    outline: none;
}

.ghm-product-promo-banner__button:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.28);
    outline-offset: 3px;
}

.ghm-product-promo-banners-section--button-center .ghm-product-promo-banner__button {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ghm-product-promo-banners-section--button-center .ghm-product-promo-banner__button:hover,
.ghm-product-promo-banners-section--button-center .ghm-product-promo-banner__button:focus {
    transform: translate(-50%, -50%) scale(1.04);
}

.ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button {
    top: 50%;
    right: 13%;
    transform: translateY(-50%);
}

.ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button:hover,
.ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button:focus {
    transform: translateY(-50%) scale(1.04);
}

.ghm-product-promo-banners-section--button-bottom-right .ghm-product-promo-banner__button {
    right: 8%;
    bottom: 14%;
}

.ghm-product-promo-banners-section--button-bottom-left .ghm-product-promo-banner__button {
    left: 8%;
    bottom: 14%;
}

@media (max-width: 1024px) {
    .ghm-product-promo-banners {
        grid-template-columns: repeat(var(--ghm-ppb-columns-tablet, 2), minmax(0, 1fr));
    }

    .ghm-product-promo-banner {
        min-height: 150px;
    }

    .ghm-product-promo-banner__button {
        min-width: 104px;
        min-height: 38px;
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .ghm-product-promo-banners-section {
        padding: 30px 14px 28px;
    }

    .ghm-product-promo-banners-section__header {
        margin-bottom: 28px;
    }

    .ghm-product-promo-banners-section__title {
        font-size: clamp(22px, 6.4vw, 27px);
    }

    .ghm-product-promo-banners-section__title::after {
        bottom: -10px;
        width: 68px;
        height: 3px;
    }

    .ghm-product-promo-banners {
        grid-template-columns: repeat(var(--ghm-ppb-columns-mobile, 1), minmax(0, 1fr));
        gap: min(var(--ghm-ppb-gap, 16px), 18px);
    }

    .ghm-product-promo-banner {
        min-height: 116px;
        aspect-ratio: 3.05 / 1;
    }

    .ghm-product-promo-banner:hover,
    .ghm-product-promo-banner:focus-within {
        transform: translate3d(0, -5px, 0);
    }

    .ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button,
    .ghm-product-promo-banners-section--button-bottom-right .ghm-product-promo-banner__button {
        right: 7%;
    }

    .ghm-product-promo-banners-section--button-bottom-left .ghm-product-promo-banner__button {
        left: 7%;
    }

    .ghm-product-promo-banner__button {
        min-width: 92px;
        min-height: 34px;
        padding: 9px 16px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .ghm-product-promo-banner__button {
        min-width: 82px;
        min-height: 32px;
        padding: 8px 13px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ghm-product-promo-banner,
    .ghm-product-promo-banner__image,
    .ghm-product-promo-banner__button {
        transition: none;
        will-change: auto;
    }

    .ghm-product-promo-banner:hover,
    .ghm-product-promo-banner:focus-within {
        transform: none;
    }

    .ghm-product-promo-banner:hover .ghm-product-promo-banner__image,
    .ghm-product-promo-banner:focus-within .ghm-product-promo-banner__image {
        transform: none;
    }

    .ghm-product-promo-banners-section--button-center .ghm-product-promo-banner__button,
    .ghm-product-promo-banners-section--button-center .ghm-product-promo-banner__button:hover,
    .ghm-product-promo-banners-section--button-center .ghm-product-promo-banner__button:focus {
        transform: translate(-50%, -50%);
    }

    .ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button,
    .ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button:hover,
    .ghm-product-promo-banners-section--button-center-right .ghm-product-promo-banner__button:focus {
        transform: translateY(-50%);
    }
}

/* v2.5.40 refined promo banners */
.ghm-product-promo-banners-section {
    padding-top: clamp(34px, 4vw, 52px);
    padding-bottom: clamp(34px, 4vw, 52px);
}

.ghm-product-promo-banners-section__title {
    color: #111827;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.ghm-product-promo-banners-section__title::after {
    width: 58px;
    height: 3px;
    background: #1f4ed8;
}

.ghm-product-promo-banners-section__subtitle {
    color: #667085;
    font-weight: 500;
}

.ghm-product-promo-banner {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: max(var(--ghm-ppb-border-radius, 0px), 22px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.ghm-product-promo-banner:hover,
.ghm-product-promo-banner:focus-within {
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.13);
    transform: translate3d(0, -5px, 0);
}

.ghm-product-promo-banner__button {
    background: #111827;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.2);
}

.ghm-product-promo-banner__button:hover,
.ghm-product-promo-banner__button:focus {
    background: #1f4ed8;
    box-shadow: 0 16px 32px rgba(31, 78, 216, 0.22);
}

@media (max-width: 640px) {
    .ghm-product-promo-banner {
        border-radius: 18px;
    }
}
