/* 팝업 */
#popParent {
    display: none;

    &.pop-parent {
        z-index: 9999;
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        padding-bottom: 40px;
        background-color: rgba(0, 0, 0, 0.35);

        .pop {
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 500px;

            .btn-toggle {
                width: 40px;
                height: 40px;
                position: relative;
                background-color: black;
                cursor: pointer;

                img {
                    width: auto;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%) rotate(-90deg);
                    transition: all 0.3s;
                }
            }
            .swiper-btn-control {
                width: 8px;
                height: 11px;
                margin-left: 16px;
                position: relative;
                top: 2px;
            }
            .btn-close {
                width: 40px;
                height: 40px;
                background-color: black;

                > i {
                    color: #fff;
                }
            }
        }
        .pop-btns {
            display: flex;
            justify-content: space-between;
            width: 100%;
            height: 40px;
            background-color: #3c3c3c;

            a {
                color: #fff;
                padding: 7px 14px;
            }
            #oneday_check {
                position: absolute;
                clip: rect(0, 0, 0, 0);
            }
            #oneday_check + label {
                display: flex;
                align-items: center;
                padding: 0 10px;
                font-size: 14px;
                color: #fff;
                cursor: pointer;
            }
            #oneday_check + label:before {
                content: "";
                display: inline-block;
                width: 12px;
                height: 12px;
                margin-right: 10px;
                border: 1px solid #fff;
            }
        }
        .popupSwiper {
            background-color: #fff;
        }
        .swiper-pagination {
            pointer-events: none;
            top: 21px;
            left: auto;
            right: 20px;
            width: fit-content;
        }
        .swiper-pagination-bullet {
            flex: 0 0 auto;
            width: 10px;
            height: 10px;
            margin: 0 5px;
            border-radius: 0;
            border: 1px solid white;
            opacity: 0.5;
            background-color: transparent;
        }
        .swiper-pagination-bullet-active {
            background-color: #fff;
            opacity: 1;
        }
        .active {
            right: -400px;

            .btn-toggle {
                transform: rotate(180deg);
            }
        }
        .m-ratioBox-wrap {
            width: 100%;
            padding-top: 100%;
            position: relative;
            overflow: hidden;

            .m-ratioBox {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-size: cover;
                background-position: center;
                background-color: var(--sub_color01);
            }
            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translateY(-50%) translateX(-50%);
                z-index: 1;
            }
            iframe {
                width: 105%;
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translateY(-50%) translateX(-50%);
                z-index: 1;
            }
        }

        /* 1279px 이하 */
        @media screen and (max-width: 1279px) {
            .pop {
                width: calc(100% - 40px);
                max-width: 500px;
            }
            &.active {
                right: calc(- (100% - 40px));
            }
        }

        /* 1023px 이하 */
        @media screen and (max-width: 1023px) {
            .floating-btns-wrap {
                bottom: 16px;
                right: 16px;
            }
        }

        /* 767px 이하 */
        @media screen and (max-width: 767px) {
            top: 50%;
            right: unset;
            left: 50%;
            transform: translate(-50%, -50%);

            .pop-btns {
                width: 100%;
                justify-content: space-between;
            }
            .pop .btn-toggle {
                display: none;
            }
            .pop .btn-close {
                display: block;
            }
        }
    }
}

/* 
=============================================================
-------------------------커스텀스타일------------------------- 
=============================================================
*/

/* 헤더 */
#header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    font-weight: bold;
    z-index: 1000;
    transition: transform 0.4s;

    #header-top {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: space-between;
        color: black;
        background-color: white;
        z-index: 20;
        transition: all 0.25s;

        #logo-box {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    #header-bottom {
        position: absolute;
        width: 100%;
        height: 0;
        background-color: white;
        border-top: 1px solid;
        border-color: var(--color-gray-200) !important;
        z-index: 10;
        transition: all 0.4s;

        &.active {
            height: 300px;
            border-bottom: 1px solid;
            border-color: var(--color-gray-200) !important;
        }
    }

    &.nav-up {
        transform: translateY(-100%);
    }
    &.nav-down {
        transform: translateY(0);
    }

    @media screen and (min-width: 1400px) {
        font-size: 18px;
        height: 120px;

        #header-top {
            position: relative;
            min-height: 120px;
            padding: 0 60px;
            box-shadow: none;

            &.active {
                box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.05);
            }

            &.scroll {
                &::after {
                    content: "";
                    position: absolute;
                    top: 119px;
                    left: 0;
                    display: block;
                    width: 100vw;
                    height: 1px;
                    background-color: var(--color-gray-200);
                }
            }

            #logo-box {
                width: 100px;
                height: 120px;
            }

            #nav {
                width: 700px;
                display: flex;
                justify-content: space-between;
                text-align: center;

                li {
                    display: flex;
                    flex-direction: column;
                    align-items: center;

                    div {
                        height: 120px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                    ul {
                        max-width: 60px;
                        text-wrap: nowrap;
                        text-align: center;
                        padding: 40px 0;
                        display: none;
                        flex-direction: column;
                        align-items: center;
                        gap: 16px;
                        font-weight: normal;
                        transition: all 0.4s;

                        &.active {
                            display: flex;
                        }

                        li {
                            min-width: 180px;
                            max-width: 180px;

                            a {
                                width: fit-content;
                                text-wrap: wrap;
                                line-height: 1.15;
                                word-break: break-all; 
                            }
                        }
                    }
                }

                li:hover {
                    div > span,
                    div > a {
                        color: var(--color-sky-500);
                        cursor: pointer;
                    }

                    ul {
                        li {
                            a:hover {
                                color: var(--color-sky-500);
                                transition: color 0.2s;
                            }
                        }
                    }
                }
            }

            #rental-program {
                width: 148px;
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 25px;
                color: #fff;
                background-color: var(--color-sky-500);
                transition: background-color 0.2s;

                &:hover {
                    background-color: var(--color-sky-800);
                }
            }

            #mobile-btn {
                display: none;
            }
        }

        #header-mobile {
            display: none;
        }
    }

    @media screen and (max-width: 1401px) {
        font-size: 16px;
        height: 75px;

        #header-top {
            height: 75px;
            padding: 0 16px;

            #logo-box {
                height: 30px;
            }

            #nav {
                display: none;
            }

            #mobile-btn {
                display: block;
                width: 24px;
                height: 24px;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            #logo-box {
                width: 72px;
                height: 75px;
            }
        }

        #header-bottom {
            display: none;
        }

        #header-mobile {
            position: fixed;
            display: block;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            background-color: #fff;
            z-index: 2000;
            overflow-y: scroll;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            transition: height 0.6s;

            &::-webkit-scrollbar {
                display: none; /* Chrome, Safari, Opera */
            }

            &.active {
                height: 100vh;
            }

            #header-mobile-top {
                position: sticky;
                top: 0;
                left: 0;
                width: 100%;
                height: 75px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 16px;
                background-color: #fff;

                #mobile-logo-box {
                    width: auto;
                    height: 30px;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                    }
                }

                #mobile-close-btn {
                    width: 24px;
                    height: 24px;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                    }
                }
            }

            #header-mobile-nav {
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 40px;
                padding: 40px 16px;
                color: black;

                details {
                    summary {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        font-size: 18px;
                        font-weight: bold;
                        cursor: pointer;
                        transition: color 0.2s;

                        @media screen and (min-width: 1025px) {
                            &:hover {
                                color: var(--color-sky-500);
                            }
                        }
                    }

                    ul {
                        font-size: 16px;
                        font-weight: normal;

                        li > a {
                            margin: 32px 16px 0;
                            width: fit-content;
                            transition: color 0.2s;

                            &:hover {
                                color: var(--color-sky-500);
                            }
                        }
                    }
                }
            }
        }

        #rental-program {
            width: 110px;
            height: 38px;
            padding-top: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            border-radius: 20px;
            color: #fff;
            background-color: var(--color-sky-500);
        }
    }
}

/* 배너 바 */
.bar_wrap {
    .bar {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .back {
        display: inline-block;
        width: 0%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* 배너 애니메이션 */
.animation {
    animation: 4s start linear;
}
@keyframes start {
    0% {
        width: 0%;
    }
    75% {
        width: 100%;
    }
    100% {
        width: 100%;
    }
}

/* 배너 페이지네이션 */
.page-pagination {
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    span {
        width: 20px;
        text-align: center;
    }
}

/* 마스크 박스 */
.mask_box {
    .mask_txt {
        display: block;
    }
    @media screen and (min-width: 821px) {
        .m_txt {
            background-image: linear-gradient(#000, #000);
            background-repeat: no-repeat;
            background-size: 0% 100%;
            background-position: left bottom;
            -webkit-background-clip: text;
            -webkit-text-fill-color: rgba(0, 0, 0, 0.2);
        }
    }
}

/* 모바일 스크롤바 */
@media screen and (max-width: 820px) {
    .scrollBar {
        overflow-x: scroll;
        padding: 0 16px 40px;
        cursor: grab;

        &::-webkit-scrollbar {
            /* 스크롤바의 너비 */
            width: 4px;
        }
        &::-webkit-scrollbar-thumb {
            /* 스크롤바의 색상 */
            background: var(--color-sky-500);
            border-radius: 10px;
        }

        &::-webkit-scrollbar-track {
            /*스크롤바 뒷 배경 색상*/
            background: rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            margin: 0 16px;
        }

        /* 스크롤바를 잡았을 때 커서 변경 */
        &:active {
            cursor: grabbing !important;
        }
    }
}

/* 투명한 이미지 부분만 그림자 주는 스타일 */
.shadow-filter {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.productDetailSwiper-pagination {
    .swiper-pagination-bullet {
        background: rgba(0, 0, 0, 0.1);
        opacity: 1;
    }
    .swiper-pagination-bullet-active {
        background: var(--color-sky-500);
    }
}

/* 제품 스토리 박스 스타일 */
.list-container {
    width: calc(100% - 32px);
    max-width: 1400px;
    margin: 0 auto;

    .list {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: space-between;

        .item {
            flex: 0 0 21.5%;
            transition: all ease 0.6s;

            .box {
                position: relative;
                height: 600px;
                color: #fff;
                background-color: #222;
                background-repeat: no-repeat;
                background-position: center;
                background-size: cover;
                border-radius: 16px;
                overflow: hidden;

                .background {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    opacity: 0.5;
                    transition: opacity ease 2s;
                }

                .order {
                    position: absolute;
                    bottom: 48px;
                    right: 32px;
                    transform: rotate(90deg);
                    transition: opacity ease 0.3s;
                }

                .heading {
                    position: absolute;
                    top: 48px;
                    left: 32px;
                    width: 32px;
                    text-wrap: nowrap;
                    transform: rotate(90deg);
                    transition: opacity ease 0.3s;
                }

                .contents-box {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    padding: 48px 40px 88px;
                    visibility: hidden;
                    opacity: 0;
                    color: #fff;
                    transition: opacity ease 0.3s;

                    .context {
                        width: 100%;
                        height: 100%;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;

                        .text-box {
                            width: 100%;
                            display: flex;
                            flex-direction: column;
                            justify-content: space-between;
                            gap: 12px;
                        }
                    }
                }
            }

            &.on {
                flex: 0 0 53.8%;

                .contents-box {
                    visibility: visible;
                    opacity: 1;
                    transition-duration: 2s;
                }

                .order,
                .heading {
                    opacity: 0;
                }

                .background {
                    opacity: 0.5;
                }
            }
        }
    }

    @media screen and (max-width: 1024px) {
        .list {
            flex-direction: column;
            gap: 16px;

            .item {
                .box {
                    height: 250px;

                    .background {
                        opacity: 0.5;
                    }

                    .order,
                    .heading {
                        display: none;
                    }

                    .contents-box {
                        position: relative;
                        padding: 24px;
                        visibility: visible;
                        opacity: 1;

                        .number {
                            position: absolute;
                            top: 24px;
                            right: 24px;
                        }

                        .context {
                            .text-box {
                                gap: 12px;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* marquee */
.marquee-style {
    white-space: nowrap;

    .animate-marquee {
        display: flex;
        width: max-content;
        animation: marquee linear infinite;
        will-change: transform;

        > .marquee-content > p {
            position: relative;
            padding-inline: 50px;

            color: transparent;
            -webkit-text-stroke: 0.5px var(--color-coral-500);

            &::after {
                content: "��";
                position: absolute;
                display: block;
                top: 0;
                right: 0;
                transform: translateX(50%);
            }
        }
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stats-grid {
    .card {
        padding: 32px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    @media screen and (min-width: 1401px) {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr 1fr 1fr;
        transition: grid-template-columns 300ms ease;

        &:has(.card-1:hover) {
            grid-template-columns: 1.2fr 0.8fr 1fr;
        }
        &:has(.card-2:hover) {
            grid-template-columns: 0.8fr 1.2fr 1fr;
        }
        &:has(.card-3:hover) {
            grid-template-columns: 0.9fr 0.9fr 1.2fr;
        }
    }
    @media screen and (max-width: 1400px) and (min-width: 641px) {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr 1fr;
    }
    @media screen and (max-width: 640px) {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
