.gl-latest-products {
    --gl-latest-gap: 30px;
    width: 100%;
    padding: 64px 4.5% 46px;
    overflow: hidden;
    background: #171717;
    box-sizing: border-box;
}

.gl-latest-products__heading {
    margin: 0 0 38px !important;
    color: #fff !important;
    font-size: clamp(32px, 3vw, 46px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    text-align: center !important;
}

.gl-latest-products__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gl-latest-products__viewport::-webkit-scrollbar {
    display: none;
}

.gl-latest-products__track {
    display: flex;
    gap: var(--gl-latest-gap);
    width: 100%;
    align-items: stretch;
}

.gl-latest-product-card {
    flex: 0 0 calc((100% - (var(--gl-latest-gap) * 4)) / 5);
}

.gl-latest-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    scroll-snap-align: start;
}

.gl-latest-product-card__image-link {
    display: block;
    width: 100%;
    text-decoration: none !important;
}

.gl-latest-product-card__image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 34px;
    overflow: hidden;
    background: #0b0b0b;
    box-sizing: border-box;
}

.gl-latest-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .3s ease;
}

.gl-latest-product-card__image--empty {
    background: #151515;
}

.gl-latest-product-card:hover .gl-latest-product-card__image {
    transform: scale(1.035);
}

.gl-latest-product-card__content {
    display: grid;
    flex: 1;
    grid-template-rows: 64px 56px 72px auto;
    align-items: start;
    padding: 26px 28px 28px;
}

.gl-latest-product-card__title {
    display: -webkit-box;
    max-height: 64px;
    margin: 0 0 12px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
}

.gl-latest-product-card__title a {
    color: #fff !important;
    text-decoration: none !important;
}

.gl-latest-product-card__subtitle {
    display: -webkit-box;
    max-height: 44px;
    margin: 0 0 20px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.gl-latest-product-card__intro {
    display: -webkit-box;
    max-height: 72px;
    margin: 0 0 22px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #e8e8e8 !important;
    font-size: 15px;
    line-height: 1.5;
}

.gl-latest-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 20px;
    background: #f4d78c;
    color: #111 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.gl-latest-product-card__button:hover,
.gl-latest-product-card__button:focus-visible {
    background: #c6a23a;
    transform: translateY(-1px);
}

.gl-latest-products__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 30px;
}

.gl-latest-products__arrow {
    position: relative;
    width: 24px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent !important;
    cursor: pointer;
}

.gl-latest-products__arrow span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.gl-latest-products__arrow--prev span {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.gl-latest-products__arrow--next span {
    transform: translate(-65%, -50%) rotate(45deg);
}

.gl-latest-products__arrow:hover span,
.gl-latest-products__arrow:focus-visible span {
    border-color: #c6a23a;
}

@media (max-width: 1599px) {
    .gl-latest-product-card {
        flex-basis: calc((100% - (var(--gl-latest-gap) * 3)) / 4);
    }
}

@media (max-width: 1279px) {
    .gl-latest-product-card {
        flex-basis: calc((100% - (var(--gl-latest-gap) * 2)) / 3);
    }
}

@media (max-width: 959px) {
    .gl-latest-product-card {
        flex-basis: calc((100% - var(--gl-latest-gap)) / 2);
    }
}

@media (max-width: 680px) {
    .gl-latest-products {
        --gl-latest-gap: 20px;
        padding: 48px 20px 36px;
    }

    .gl-latest-products__heading {
        margin-bottom: 28px !important;
    }

    .gl-latest-product-card {
        flex-basis: 100%;
    }

    .gl-latest-product-card__image-frame {
        padding: 28px;
    }

    .gl-latest-product-card__content {
        display: grid;
        grid-template-rows: 58px 50px 78px auto;
        align-items: start;
        min-height: 250px;
        padding: 22px;
    }

    .gl-latest-product-card__title {
        display: -webkit-box;
        max-height: 56px;
        margin: 0 0 10px !important;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    .gl-latest-product-card__subtitle {
        display: -webkit-box;
        max-height: 44px;
        margin: 0 0 14px !important;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .gl-latest-product-card__intro {
        display: -webkit-box;
        max-height: 68px;
        margin: 0 0 18px !important;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .gl-latest-product-card__subtitle.is-empty,
    .gl-latest-product-card__intro.is-empty {
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gl-latest-products__viewport {
        scroll-behavior: auto;
    }

    .gl-latest-product-card__image,
    .gl-latest-product-card__button {
        transition: none;
    }
}
