﻿
/*#region section1*/
.home-punchline {
    color: #E6002C;
    font-size: 16px;
    font-weight: 500;
    min-height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 26px;
}

.home-slogan {
    margin-bottom: 70px;
    text-align: center;
    line-height: 26.5px;
}

.carousel .track {
    transition: all 0.3s ease;
}

.home-topimage-carousel {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

    .home-topimage-track,
    .home-topimage-carousel .tracker {
        --gap: 20px;
        --img-width: 710px;
        --max-width: 100vw;
        --arrow-width: 40px;
        --offset: calc((var(--img-width) - (var(--max-width) - var(--img-width))/2 + var(--gap)/2) * -1);
        position: relative;
        display: flex;
        overflow: hidden;
        width: max-content;
        gap: var(--gap);
        left: var(--offset);
    }

    .home-topimage-carousel .arrows {
        --gap: 20px;
        --img-width: 710px;
        --max-width: 100vw;
        --offset: calc((var(--max-width) - var(--img-width))/2 - var(--arrow-width)/2);
        --arrow-width: 40px;
        width: calc(var(--img-width) + var(--gap) + var(--arrow-width));
        display: flex;
        justify-content: space-between;
        transform: translateX(var(--offset));
        position: absolute;
        top: calc(50% - 30px);
    }

        .home-topimage-carousel .arrows button {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            color: #FAA715;
            font-size: 24px;
            background-color: #fff;
            cursor: pointer;
            box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;            
        }

.arrows button:focus {
    outline: unset;
}

.home-topimage-carousel .arrows button:hover i {
    opacity: 0.8;
}

.home-topimage-carousel .dots {
    display: flex;
    justify-content: center;
    gap: 12.5px;
    padding-top: 20px;
}

.home-topimage-carousel .dots {
    display: flex;
    justify-content: center;
    gap: 12.5px;
    padding-top: 20px;
}

    .home-topimage-carousel .dots .dot,
    .bestseller-ctn .dots .dot {
        width: 10px;
        height: 10px;
        border: 1px solid #FAA715;
        border-radius: 50%;
    }

    .home-topimage-carousel .dots .active,
    .bestseller-ctn .dots .active {
        background-color: #FAA715;
    }

.bestseller-ctn .dots,
.bestseller-ctn .arrows {
    display: none;
}

.home-topimage-wrapper {
    width: 710px;
    height: 461px;
}

    .home-topimage-wrapper img {
        width: 100%;
        height: 100%;
    }

.bestseller-ctn {
    position: relative;
}

.arrows button {
    display: flex;
    justify-content: center;
    align-items: center;
}
/*#endregion*/

/*#region section 2*/
.section2 {
    background-color: #F6F1E3;
    padding-top: 80px;
    padding-bottom: 110px;
}

    .section2 h1 {
        font-size: 36px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        font-weight: 400;
    }

    .section2 .cat-grid {
        max-width: 1200px;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 48px;
    }

        .section2 .cat-grid .cat {
            background-color: #ffffff;
            border-radius: 40px;
            padding: 30px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: 50px;
        }

        .section2 .cat-grid .cat-img {
            max-width: 520px;
            margin: auto;
        }

            .section2 .cat-grid .cat-img img {
                width: 100%;
                height: auto;
            }

        .section2 .cat-grid .cat .cat-name {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 2px;
            margin-top: 25px;
            margin-bottom: 30px;
            font-weight: 500;
            font-size: 28px;
        }

        .section2 .cat-grid .cat .cat-desc {
            margin-bottom: 40px;
            line-height: 180%;
        }

.cat-btn-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cat-btn {
    text-align: center;
    display: block;
    padding: 20px 0;
    min-width: 260px;
    border: 2px solid;
    border-color: transparent;
    color: #ffffff !important;
    background-color: var(--text-second-color);
    border-radius: 36px;
}

    .cat-btn.outline {
        border-color: var(--text-second-color);
        background-color: #ffffff;
        color: var(--text-second-color) !important;
    }

    .cat-btn.accent {
        background-color: #FFA588;
    }

    .cat-btn:hover {
        opacity: 0.8;
    }
/*#endregion*/

/*#region section 3*/
.section3 h1 {
    font-size: 36px;
    font-weight: 400;
}

.section3 {
    background-color: #ffffff;
    padding: 80px 0;
}

.bestseller-ctn {
    margin-top: 48px;
    padding: 0 120px;
}

.bestseller .badge {
    margin-top: 20px;
    margin-bottom: 9px;
}

.bestseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    column-gap: 30px;
    row-gap: 40px;
    margin-top: 40px;
    font-size: 18px;
    line-height: 160%;
    max-width: 1200px;
    margin: auto;
}

.bestseller-img img {
    width: 100%;
    height: auto;
}

.bestseller-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.bestseller-ctn .arrows button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    color: #FAA715;
    font-size: 12px;
    background-color: #fff;
    cursor: pointer;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    opacity: 1 !important;
}

/*#endregion*/


@media only screen and (max-width: 1439px) {
    /*#region section3*/
    .section3 .bestseller-ctn {
        padding: 0;
    }

    /*#endregion*/
}

@media only screen and (max-width: 1199px) {
    .section2 .cat-grid .cat {
        grid-template-columns: repeat(auto-fill, minmax(303px, 1fr));
        column-gap: 50px;
    }

    .section2 {
        padding: 60px 20px;
    }

    .section3 {
        padding: 60px 0;
    }
}

@media only screen and (max-width: 800px) {
    /*#region section1*/
    .home-punchline {
        padding: 10px 20px;
    }

    .home-topimage-carousel {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .home-topimage-track .home-topimage-wrapper {
        width: 335px;
        height: 216px;
    }

    .home-topimage-track,
    .home-topimage-carousel .tracker {
        --img-width: 335px;
        --arrow-width: 24px;
        --offset: calc((var(--img-width) - (var(--max-width) - var(--img-width))/2 + var(--gap)) * -1);
    }

    .home-topimage-carousel .arrows {
        --img-width: 335px;
        --arrow-width: 24px;
        --offset: calc((var(--max-width) - var(--img-width))/2 - var(--arrow-width)/2);
        width: calc(var(--img-width) + var(--arrow-width));
        top: calc(50% - 25px);
    }

        .home-topimage-carousel .arrows button {
            width: 24px;
            height: 24px;
            font-size: 12px;
        }

    .home-slogan {
        margin-bottom: 40px;
        text-align: left;
    }
    /*#endregion*/

    /*#region section2*/
    .section2 h1 {
        font-size: 28px;
        line-height: 160%;
    }

    .section2 .cat-grid {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

        .section2 .cat-grid .cat {
            background-color: #ffffff;
            border-radius: 20px;
            padding: 16px 16px 40px 16px;
        }

            .section2 .cat-grid .cat .cat-name {
                font-size: 26px;
                text-align: center;
                flex-direction: column;
                align-items: center;
            }

            .section2 .cat-grid .cat .cat-desc {
                font-size: 14px;
                line-height: 22.4px;
            }
    /*#endregion*/

    /*#region section3*/

    .section3 h1 {
        font-weight: 400;
        margin-bottom: 40px;
    }

    .section3 > p {
        margin-bottom: 0;
    }

    .section3 .bestseller-ctn .carousel {
        overflow: hidden;
    }

        .section3 .bestseller-ctn .carousel .track,
        .section3 .bestseller-ctn .carousel .tracker {
            --gap: 20px;
            --img-width: 335px;
            --max-width: calc(100vw - 40px);
            --arrow-width: 24px;
            --offset: calc((var(--img-width) - (var(--max-width) - var(--img-width))/2 + var(--gap)/2) * -1);
            position: relative;
            display: flex;
            overflow: hidden;
            width: max-content;
            gap: 0 20px;
            margin-top: 0;
            left: var(--offset);
        }

        .section3 .bestseller-ctn .carousel .arrows {
            --gap: 20px;
            --img-width: 335px;
            --max-width: calc(100vw - 40px);
            --offset: calc((var(--max-width) - var(--img-width))/2);
            --arrow-width: 24px;
            width: calc(var(--img-width) + var(--arrow-width));
            display: flex;
            justify-content: space-between;
            transform: translateX(var(--offset));
            position: absolute;
            top: calc((100% - 180px)/2);
        }

    .section3 .bestseller-grid .bestseller {
        width: calc(100vw - 40px);
        max-width: 335px;
    }

    .section3 .bestseller-grid .bestseller-img {
        min-width: 335px;
    }

    .bestseller-ctn .dots {
        display: flex;
        justify-content: center;
        gap: 12.5px;
        padding-top: 20px;
    }

    .bestseller-grid {
        max-width: unset;
    }

    /*#endregion*/
}

@media only screen and (max-width: 500px) {
    /*#region section 3*/
    .section3 .bestseller-ctn .carousel .track,
    .section3 .bestseller-ctn .carousel .tracker {
        --offset: var(--gap);
    }

    .section3 .bestseller-ctn .carousel .arrows {
        --img-width: calc(100vw - 40px);
        --offset: calc(var(--gap) / 2);
    }

    .section3 .bestseller-grid .bestseller {
        min-width: 335px;
        max-width: calc(100vw - 40px);
    }

    .section3 .bestseller-grid .bestseller-img {
        min-width: 335px;
        max-width: 100%;
        max-height: max-content;
    }

    .bestseller-ctn .dots {
        display: flex;
        justify-content: center;
        gap: 11.5px;
        padding-top: 20px;
    }

    .bestseller-grid {
        max-width: unset;
    }

    /*#endregion*/
}


@media screen and (max-width: 500px) {
    #carousel-mobile {
        min-height: 420.61px;
    }

        #carousel-mobile .bestseller-grid {
            margin: unset;
        }

        #carousel-mobile .arrows {
            top: 125px;
        }

        #carousel-mobile .dots {
            margin: 0;
        }
}
