/**
*   Slider Kipsta
*   This script initializes a slider for Kipsta products on the website.
*/

#main-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

.wrapper-slider {
    background: #f5f5f5;
    display: flex;
    width: 360px;
    align-items: flex-start;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.catalog-container {
    position: relative;
    background: white;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.page {
    flex: 1;
    width: 360px;
    height: 580px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 15px 15px 25px 15px;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
}

.page.column {
    flex: 1;
    width: 360px;
    height: 580px;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 15px 15px 25px 15px;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    gap: 0 20px;
}

.page-number {
    font-family: 'Decathlon Brand', sans-serif;
    position: absolute;
    bottom: 0;
    font-size: 15px;
    color: #000;
    font-weight: 400;
    letter-spacing: 0.03em;
    width: 100px;
}

.page-number::after {
    content: '';
    display: block;
    margin-top: 0.4em;
    height: 2px;
    background-color: #3643BA;
}

.page.left .page-number {
    left: 0;
    text-align: right;
}

.page.right .page-number {
    right: 0;
    text-align: left;
}

@media (min-width:980px) and (max-width:1339px) {
    .page-number {
        width: 9.25vw;
    }
}

@media (min-width:1440px) {
    .page-number {
        width: 5.25vw;
    }
}

.page.right.page8 .page-number,
.page.left.page7 .page-number,
.page.left.page5 .page-number {
    /* color: #fff;
    bottom: 30px; */
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.control-btn {
    background: transparent;
    color: #000;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    font-weight: normal;
    transition: all 0.3s ease;
}

.control-btn svg {
    width: 30px;
}

.control-btn:hover {
    /* background: #f5f5f5; */
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    /* background: white; */
}


.page-indicator {
    background: #f5f5f5;
    padding: 8px 16px;
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
}

#prevBtn {
    display: none;
}

#nextBtn {
    display: none;
}

@media (min-width:980px) and (max-width:1439px) {
    .wrapper-slider {
        width: 980px;
    }

    .page {
        width: 490px;
        height: 612px;
        padding: 20px 20px 30px 20px;
    }

    .page.column {
        width: 490px;
        height: 612px;
        padding: 20px 20px 30px 20px;
    }

    #prevBtn {
        display: block;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 2vw;
    }

    #nextBtn {
        display: block;
        transition: all 0.3s ease;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 2vw;
    }
}

@media (min-width: 1440px) {
    .wrapper-slider {
        width: 1152px;
    }

    .page {
        width: 576px;
        height: 720px;
        padding: 20px 20px 30px 20px;
    }

    .page.column {
        width: 576px;
        height: 720px;
        padding: 20px 20px 30px 20px;
    }

    #prevBtn {
        display: block;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 8vw;
    }

    #nextBtn {
        display: block;
        transition: all 0.3s ease;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 8vw;
    }
}