@charset "utf-8";

#main-index {
    min-width: 1200px;
    color: var(--main-text);
    /*font-family: "Pretendard", Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;*/
    font-size: 14px;
    letter-spacing: 0;
    background: #fff;
    word-break: keep-all;

    * {
        box-sizing: border-box;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button,
    input,
    select {
        font-family: inherit;
    }

    .main-visual {
        position: relative;
        overflow: hidden;
        border-radius: var(--default-radius);
        background: var(--main-color);

        .swiper-container,
        .swiper-wrapper,
        .swiper-slide {
            height: 100%;
        }

        a {
            display: block;
            height: 100%;
        }

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .main-image-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(0, 0, 0, .34);
        font-size: 12px;
        font-weight: 800;
        background: yellow;
    }

    .main-visual,
    .main-sub-banner,
    .main-banner {
        .swiper-container {
            position: relative;
            overflow: hidden;
        }
    }

    .main-sub-banner {
        .swiper-pagination {
            position: absolute;
            right: 0;
            bottom: 10px;
            left: 0;
            z-index: 2;
            line-height: 0;
            text-align: center;
        }

        .swiper-pagination-bullet {
            display: inline-block;
            width: 12px;
            height: 12px;
            margin: 0 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, .5);
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            background: #fff;
            width: 24px;
        }
    }

    .main-sub-banner {
        position: relative;
        margin-top: 40px;
        overflow: visible;

        .swiper-container,
        .swiper-wrapper,
        .swiper-slide {
            height: 100%;
        }

        .swiper-container {
            overflow: hidden;
            border-radius: var(--default-radius);
        }

        a {
            display: block;
            height: 100%;
        }

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .main-sub-banner-btn {
            position: absolute;
            top: 50%;
            z-index: 3;
            width: 48px;
            height: 48px;
            margin-top: -24px;
            padding: 0;
            border: 0;
            background: url('../imgs/prev-next-btn.png') no-repeat 50% 50% / 48px 48px;
            cursor: pointer;
        }

        .main-sub-banner-prev {
            left: -24px;
        }

        .main-sub-banner-next {
            right: -24px;
            transform: rotate(180deg);
        }

    }

    .main-arrow {
        position: absolute;
        z-index: 2;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: rgba(0, 0, 0, .2);
        cursor: pointer;

        &::before {
            content: "";
            position: absolute;
            top: 13px;
            left: 15px;
            width: 12px;
            height: 12px;
            border-top: 3px solid #fff;
            border-left: 3px solid #fff;
        }
    }

    .main-arrow-prev {
        left: -20px;

        &::before {
            transform: rotate(-45deg);
        }
    }

    .main-arrow-next {
        right: -20px;

        &::before {
            left: 11px;
            transform: rotate(135deg);
        }
    }

    .main-notice {
        min-height: 130px;
        margin-top: 58px;
        padding: 0 50px 0 70px;
        border: 1px solid #d9d9d9;
        border-radius: var(--default-radius);

        .widget-board-cache-list {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 126px;
            gap: 68px
        }

        .board-title {
            margin: 0;
            color: #0056a7;
            font-size: 34px;
            font-weight: 700;
            letter-spacing: -0.005em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .more-btn {
            position: absolute;
            top: 24px;
            right: 0;
            color: var(--main-color);
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
        }

        .table-list {
            display: block;
            flex: 1;
            width: 100%;
            margin: 0;
            padding-left: 40px;
            border-collapse: collapse;
            table-layout: fixed;
            border-left: 1px solid #d9d9d9;
        }

        thead {
            display: none;
        }

        tr,
        th,
        td {
            border: 0;
        }

        td {
            height: 34px;
            padding: 0;
            color: #333;
            font-size: 17px;
            line-height: 1.35;
            vertical-align: middle;
        }

        .text-left {
            padding-right: 24px;
        }

        .text-overflow-full,
        .text-overflow-full-wrap {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .text-overflow-full {
            display: flex;
            align-items: center;

            &::before {
                content: "";
                flex: 0 0 auto;
                width: 4px;
                height: 4px;
                margin-right: 11px;
                border-radius: 50%;
                background: var(--main-color);
            }
        }

        .btn-link {
            overflow: hidden;
            color: #333;
            text-decoration: none;
            white-space: nowrap;
            text-overflow: ellipsis;
            padding-left: 0;
        }

        .date {
            color: #333;
            font-size: 16px;
        }

        .no-count {
            text-align: left;
        }
    }

    .main-howto {
        margin-top: 72px;
        text-align: center;

        h2 {
            margin: 0 0 50px;
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.005em;

            span {
                color: var(--main-color);
            }
        }
    }

    .main-step-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 23px;
    }

    .main-step-card {
        position: relative;
        min-height: 360px;
        padding: 76px 30px 40px;
        border: 1px solid #0197f1;
        border-radius: var(--default-radius);
        text-align: center;

        h3 {
            margin: 28px 0 12px;
            color: #0056a7;
            font-size: 27px;
            font-weight: 700;
            letter-spacing: -0.025em;
        }

        p {
            min-height: 42px;
            margin: 0 0 26px;
            font-size: 19px;
            line-height: 26px;
            font-weight: 500;
            letter-spacing: -0.025em;
        }

        div:not(.main-step-icon) {
            position: relative;
            z-index: 0;
            height: 108px;
            padding: 21px 10px 10px;
            border-radius: var(--sub-radius);
            color: #333;
            font-size: 17px;
            line-height: 23px;
            letter-spacing: -0.025em;
            background: #d4edfd;

            &::before {
                content: "";
                position: absolute;
                top: -19px;
                left: 50%;
                width: 19px;
                height: 19px;
                margin-left: -8px;
                background: #d4edfd;
                clip-path: polygon(0 100%, 100% 0, 100% 100%);
            }
        }

        .main-btn {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            line-height: normal;
            max-width: 200px;
            height: 50px;
            border-radius: var(--sub-radius);
            background: #0056a7;
            font-size: 17px;
            font-weight: bold;
            color: #fff;
            margin: 40px auto 0;

            &::after {
                content: "";
                position: absolute;
                top: 50%;
                right: 24px;
                width: 8px;
                height: 8px;
                margin-top: -4px;
                border-top: 2px solid #fff;
                border-right: 2px solid #fff;
                transform: rotate(45deg);
            }
        }
    }

    .main-step-badge {
        position: absolute;
        top: 0;
        left: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 95px;
        height: 36px;
        border-radius: 0 0 var(--default-radius) var(--default-radius);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        background: #0197f1;
        transform: translateX(-50%);
        line-height: normal;
    }

    .main-coupon {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 230px;
        margin-top: 70px;
        padding: 0 142px 0 121px;
        overflow: hidden;
        border-radius: var(--default-radius);
        color: #fff;
        background: #8f19b0;
        position: relative;

        h2 {
            margin: 0 0 9px;
            font-size: 27px;
            font-weight: 700;
            span {
                color: #ff9966;
            }
        }

        p {
            margin: 0 0 22px;
            font-size: 15px;
            font-weight: 500;
        }

        a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 121px;
            height: 38px;
            border: 1px solid #fff;
            border-radius: var(--sub-radius);
            font-size: 15px;
            font-weight: 500;
        }

        img {
            position: absolute;
            right: 156px;
            bottom: -10px;
        }
    }

    .main-service-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 23px;
        margin-top: 82px;

        article {
            min-height: 340px;
            border-radius: var(--default-radius);
            text-align: center;
            background: #f4f4f4;

            a {
                display: block;
                height: 100%;
                padding-top: 54px;
            }
        }

        h2 {
            margin: 0 0 28px;
            font-size: 28px;
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        img {
            box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.04);
            border-radius: 50%;
        }
    }

    .main-search {
        display: block;
        margin-top: 78px;
        padding: 30px;
        border-radius: var(--default-radius);
        background: #dff3ff;

        form {
            display: flex;
            gap: 10px;
            width: 100%;
            height: 56px;
        }

        input,
        button {
            height: 56px;
            border: 1px solid var(--main-color);
            background: #fff;
        }

        .main-search-field {
            display: flex;
            flex: 1;
            min-width: 0;
        }

        .main-search-select {
            position: relative;
            flex: 0 0 180px;
            height: 56px;

            &::after {
                content: "";
                position: absolute;
                top: 50%;
                right: 19px;
                width: 8px;
                height: 8px;
                margin-top: -6px;
                border-right: 1px solid #333;
                border-bottom: 1px solid #333;
                transform: rotate(45deg);
                pointer-events: none;
            }
        }

        select {
            width: 100%;
            height: 56px;
            padding: 0 45px 0 18px;
            border: 1px solid var(--main-color);
            border-radius: var(--sub-radius);
            color: #333;
            font-size: 16px;
            font-weight: 700;
            appearance: none;
            background: #fff;
        }

        input {
            flex: 1;
            min-width: 0;
            padding: 0 24px;
            border-right: 0;
            border-radius: var(--sub-radius) 0 0 var(--sub-radius);
            color: #333;
            font-size: 15px;

            &::placeholder {
                color: #999999;
            }
        }

        button {
            position: relative;
            flex: 0 0 78px;
            border-left: 0;
            border-radius: 0 var(--sub-radius) var(--sub-radius) 0;
            background: var(--main-color);
            cursor: pointer;

            span {
                position: absolute;
                top: 50%;
                left: 50%;
                width: 21px;
                height: 21px;
                margin: -12px 0 0 -12px;
                border: 3px solid #fff;
                border-radius: 50%;

                &::after {
                    content: "";
                    position: absolute;
                    right: -8px;
                    bottom: -6px;
                    width: 11px;
                    height: 3px;
                    border-radius: 3px;
                    background: #fff;
                    transform: rotate(45deg);
                }
            }
        }
    }

    .main-store-section {
        margin-top: 73px;
        text-align: center;

        > h2 {
            margin: 0 0 39px;
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.005em;
        }
    }

    .main-store-row {
        display: grid;
        grid-template-columns: 300px 1fr;
        padding: 54px 0;
        border-top: 1px solid #ededed;

        &:last-child {
            border-bottom: 1px solid #ededed;
        }
    }

    .main-store-category {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        strong {
            margin-top: 9px;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.025em;
        }

        a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 24px;
            margin-top: 11px;
            padding: 0 18px;
            border-radius: var(--default-radius);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            background: var(--main-color);
        }
    }

    .main-category-img {
        overflow: hidden;
        border-radius: 50%;

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .main-logo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;

        a,
        > span {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 104px;
            border: 1px solid #d9d9d9;
            border-radius: var(--default-radius);
            background: #fff;
            overflow: hidden;

        }

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

    .main-official {
        position: relative;
        margin-top: 78px;
    }

    .main-section-head {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;

        h2 {
            margin: 0;
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -0.005em;
            span {
                color: var(--main-color);
            }
        }

        > a {
            position: absolute;
            right: 0;
            top: 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 82px;
            height: 28px;
            border-radius: var(--default-radius);
            color: #fff;
            font-size: 14px;
            font-weight: 500;
            background: var(--main-color);
        }
    }

    .main-official-widget {
        position: relative;

        .main-arrow {
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            background: url('../imgs/mall-prev-next-btn.png') no-repeat 50% 50% / 48px 48px;

            &::before {
                display: none;
            }
        }

        .main-arrow-next {
            transform: rotate(180deg);
        }

        .widget-shop-list {
            margin: 0;
            padding: 0;
            overflow: hidden;

            .shop-title {
                display: none;
            }

            .list-wrap {
                display: flex;
                border: 0;
            }

            .item {
                box-sizing: border-box;
                min-width: 0;
                padding: 0;
                border: 1px solid #ededed;
                border-radius: var(--default-radius);
                text-decoration: none;
                overflow: hidden;
                background: #fff;
            }

            .empty {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                min-height: 200px;
                border: 1px solid var(--border-color);
                border-radius: var(--default-radius);
                color: #8a96a3;
                font-size: 16px;
                font-weight: 700;
                background: #fff;
            }

            .thumb {
                display: flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
                height: 228px;
                padding: 0;
                position: relative;
                overflow: hidden;
                background: #f7f7f7;

                .image {
                    position: static;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;
                    overflow: hidden;
                    background: #f7f7f7;
                }

                img {
                    width: 100%;
                    height: 100%;
                    max-width: none !important;
                    max-height: none !important;
                    object-fit: cover;
                }
            }

            .no-image {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 100%;
                color: #8a96a3;
                font-weight: 800;
            }

            .info {
                min-height: 114px;
                padding: 12px 12px 15px;
            }

            .goodsname {
                display: -webkit-box;
                height: 40px;
                margin: 0;
                color: #333;
                font-size: 14px;
                line-height: 20px;
                word-break: keep-all;
                overflow: hidden;
                letter-spacing: -0.01em;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }

            .price {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                margin-top: 9px;
            }

            .now-price {
                color: #111923;
                font-size: 16px;
                font-weight: 700;
            }

            .fix-price {
                color: #111923;
                font-size: 12px;
                font-weight: 700;
            }

            .discount-title,
            .discount-rate,
            .icon-wrap {
                display: none;
            }
        }
    }

    .main-etc-info {
        display: grid;
        grid-template-columns: 1fr 492px;
        gap: 40px;
        align-items: flex-start;
        margin-top: 80px;

        .main-exchange-widget {
            min-height: 127px;
            padding: 13px 20px 20px;
            border-radius: var(--default-radius);
            color: #fff;
            background: var(--main-color);

            .board-title {
                margin: 0 0 7px;
                color: #fff;
                font-size: 18px;
                font-weight: 700;
                letter-spacing: -0.005em;
                text-align: center;
            }

            .main-exchange-box {
                display: grid;
                grid-template-columns: 1fr 1fr;
                align-items: center;
                min-height: 61px;
                border-radius: 10px;
                color: #333;
                background: #fff;

                span {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    min-height: 36px;
                    border-right: 1px solid #b9def7;
                    font-size: 16px;
                    font-weight: 700;
                    line-height: 1.35;

                    em {
                        font-size: 15px;
                        font-style: normal;
                        font-weight: 400;
                    }
                }

                strong {
                    color: #333;
                    font-size: 20px;
                    font-weight: 700;
                    text-align: center;
                }
            }
        }

        .kakao {
            border-radius: var(--default-radius);
            overflow: hidden;
            margin-top: 6px;
        }
    }

    .main-bottom-sub-banner {
        margin-top: 80px;
        overflow: hidden;
        border-radius: var(--default-radius);
        color: #fff;
        background:
            linear-gradient(135deg, rgba(255,255,255,.18) 25%, transparent 25%) 0 0 / 18px 18px,
            linear-gradient(135deg, transparent 75%, rgba(255,255,255,.18) 75%) 0 0 / 18px 18px,
            var(--main-color);

        .swiper-container,
        .swiper-wrapper,
        .swiper-slide {
            height: 100%;
        }

        a {
            display: block;
            height: 100%;
        }

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}


