﻿
.player-products-showcase > .swiper {
    padding: 0 14px;
    cursor: grab;
}

    .player-products-showcase > .swiper .swiper-slide {
        max-width: min(calc((337 / 375) * 100vw), 400px);
        margin: 0;
        padding: 0;
    }
.player-products-showcase a:hover {
    color: #242424;
}

.player-products-showcase .title-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.player-products-showcase .title {
    font-weight: bold;
    line-height: 43px;
    margin: 0;
}

.player-products-showcase p.link {
    line-height: 22px;
    padding: 20px;
}

    .player-products-showcase .link svg.arrow {
        stroke: #242424;
    }

.player-products-showcase .top-section {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: -186px;
}

    .player-products-showcase .top-section .top-section-title {
        display: grid;
        grid-template-columns: 33px 57px;
        grid-template-rows: 85px 1fr;
        row-gap: 7px;
        align-items: start;
        padding-top: 23px;
    }

        .player-products-showcase .top-section .top-section-title .player-number {
            font-size: 70px;
            font-weight: bold;
            line-height: 85px;
            grid-column: 1 / span 2;
            grid-row: 1;
        }

        .player-products-showcase .top-section .top-section-title .player-name {
            writing-mode: vertical-lr;
            transform: scale(-1);
            font-size: 20px;
            font-weight: 400;
            line-height: 24px;
            grid-column: 1;
            grid-row: 2;
        }

        .player-products-showcase .top-section .top-section-title .player-surname {
            writing-mode: vertical-lr;
            transform: scale(-1);
            grid-column: 2;
            grid-row: 2;
            justify-self: start;
            margin-left: -7px;
            color: #242424;
            font-family: Roboto, sans-serif;
            font-size: 36px;
            font-weight: 500;
            line-height: 43px;
            text-transform: none;
        }

        .player-products-showcase a:hover .top-section .top-section-title .player-number,
        .player-products-showcase a:hover .top-section .top-section-title .player-name {
            color: #242424;
        }

        .player-products-showcase .top-section .player-image img {
            height: 500px;
            object-fit: cover;
        }

.player-products-showcase .products-section {
    position: relative;
    width: 100%;
}

    .player-products-showcase .products-section .product-wrapper {
        position: relative;
    }

        .player-products-showcase .products-section .product-wrapper:first-of-type {
            width: 100%;
            max-width: 53.41%;
        }

        .player-products-showcase .products-section .product-wrapper:nth-of-type(2) {
            width: 100%;
            max-width: 50.74%;
            float: right;
            margin-top: -133px;
        }

.player-products-showcase .modal-toggle {
    max-width: fit-content;
    max-width: -moz-fit-content;
    height: 50px;
    margin-top: 32.5px;
    padding: 13.5px 16px;
    border-radius: 25px;
    background: white;
    cursor: default;
    transition: width 250ms ease-in-out;
    position:relative;
}

    .player-products-showcase .modal-toggle svg {
        width: 18.32px;
        height: 24px;
        fill: #242424;
        stroke: #242424;
        margin-top: -1px;
    }

    .player-products-showcase .modal-toggle p {
        display: inline-block;
        width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        color: #c30000;
        font-family: Roboto, sans-serif;
        font-size: 16px;
        font-weight: bold;
        line-height: 22px;
        cursor: pointer;
        transition: width 250ms ease-in-out, opacity 50ms ease-in-out 110ms, padding-left 100ms ease-in-out 250ms;
        margin-left: -30px;
        position: absolute;
        top: 50%;
        left: 37.7px;
        transform: translateY(-50%);
    }

    .player-products-showcase .modal-toggle:hover {
        width: 100%;
    }

        .player-products-showcase .modal-toggle:hover svg {
            fill: #c30000;
            stroke: #c30000;
        }

        .player-products-showcase .modal-toggle:hover p {
            width: calc(100% + 120px);
            opacity: 1;
            padding-left: 37.7px;
            transition: width 250ms ease-in-out, opacity 50ms ease-in-out;
        }

.player-products-showcase .modals {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

@media (min-width: 768px) {
    .player-products-showcase > .swiper {
        padding: 0 111px;
        padding-bottom: 12px; /* safari workaround */
    }

        .player-products-showcase > .swiper .swiper-slide {
            max-width: min(calc((448 / 1366) * 100vw), 525px);
        }

    .player-products-showcase .title-wrapper {
        padding: 0 43px;
    }

    .player-products-showcase .top-section {
        column-gap: 23px;
    }

        .player-products-showcase .top-section .player-image img {
            height: 628px;
            width: min(calc((312 / 1366) * 100vw), 365px);
        }

    .player-products-showcase .products-section .product-wrapper:first-of-type {
        max-width: 55.357%;
    }

    .player-products-showcase .products-section .product-wrapper:nth-of-type(2) {
        max-width: 50%;
        margin-top: -165px;
    }

    .player-products-showcase .modal-toggle {
        margin-top: 0;
    }
}
