body{overflow-x: hidden;}

main{margin-bottom: 140px;}
.discount{padding: 0 var(--padding-x); height: 100%;}

/* **********************discount*************************** */
/* 상단제목 */
.title{
    width: 100%;
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0px 20px 0px;
    border-bottom: 3px solid #C71607;
}
.title h1{font-size: 35px;}
.title a{
    color: #C71607;
    font-size: 14px;
    font-weight: 600;
}
.small-title{
    display: flex;
    flex-direction: row;
    gap: 50px;
}
.small-title span{display: flex; gap: 5px;}
.small-title span .fa-caret-right{color: #121212;}
.small-title span a{color: #727272;}
.small-title span a:hover{color: #C71607;}
.small-title span:hover .fa-caret-right{
    display: inline-block;
    color: #C71607;
}

/* 메인 할인정보 */
.main{
    width: 100%;
    margin: 0 auto;
    padding: 20px 0px;
}
.main-center{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

/* 상단배너 */
.top-img{
    width: 100%;
    overflow: hidden;
}
.top-img img{
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 슬라이드 */
.slide{
    width: 60%;
    position: relative;
    overflow: hidden;
}
.slide-container{
    position: relative;
    width: 100%;
    height: 340px;
}
.mySlides{display: none;}
.mySlides img{
    width: 100%;
    height: 340px;
    object-fit: cover;
}
.fade{
    animation: fade 1s;
}

@keyframes fade{
    from{opacity: 0.4;}
    to{opacity: 1;}
}

/* 슬라이드 화살표 */
.prev, .next{
    position: absolute;
    font-size: 50px;
    color: #f3f3f3;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
}
.prev{left: 0;}
.next{right: 0;}
.prev:hover, .next:hover{
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    cursor: pointer;
}

/* 슬라이드 점 */
.pageNation{
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.dot{
    width: 14px;
    height: 7px;
    background: #b0b0b0;
    border-radius: 20px;
    transition: background 0.3s ease;
    cursor: pointer;
}
.dot:hover,
.dot.active{
    background: #C71607;
}

/* 세로 배너 */
.vertical{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 38%;
    height: 340px;
    justify-content: flex-start;
}
.vertical-img{
    height: 340px;
    flex: 1 1 calc(19% - 20px);
}
.vertical-img img{
    width: 100%;
    object-fit: cover;
}

/* 프로모션 전체*/
.promotion{
    width: 100%;
    margin: 0 auto;
}

/* 프로모션 제목 */
.promo-title{
    width: 100%;
    border-bottom: 1px solid #727272;
}
.promo-title ul{
    display: flex;
    gap: 12px;
    padding: 0;
    list-style: none;
    /* margin-bottom: 5px; */
}
.promo-title ul li{display: inline-block; padding: 15px 0px;}
.promo-title ul li a{
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    background: #f3f3f3;
    color: #1e1e1e;
    font-weight: 600;
    transition: background 0.3s;
}
.promo-title li a:hover{
    background: #ccc;
}
.promo-title ul li a.promo-active{
    color: #C71607;
    background: #121212;
    outline: 2px solid #C71607;
    outline-offset: -2px;
    font-weight: 700;
}

/* 프로모션 배너 */
.promo-center{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px 0px 0px 0px;
}

.promo-box{
    position: relative;
    width: 100%;
    height: 320px;
    border: 1px solid #b0b0b0;

    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}
/* 보여질 때 */
.promo-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* 숨김 상태 */
.promo-box.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    display: none;
}

.promo-box a img{
    width: 100%; height: 260px;
}

.promo-box a h4{
    color: #f3f3f3;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
}

.promo-box a p{
    position: absolute;
    bottom: 0px; left: 0px;
    color: #C71607;
    font-size: 12px;
    padding: 10px;
}

/* 더보기 */
.more{
    width: 100%;
    padding: 15px 0px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #f3f3f3;
    color: #1e1e1e;
    margin: 50px 0px;
    cursor: pointer;
}
.more:hover{background: #C71607; color: #f3f3f3;}

/* ***********************반응형****************************** */
@media screen and (max-width: 1400px){
    .discount{margin-top: 100px;}
}

@media screen and (max-width: 1200px){
    .slide {
        width: 100%;
        height: auto;
    }

    .slide-container {
        height: auto;
    }

    .mySlides img {
        height: auto;
    }

    .pageNation{
        bottom: 10px;
    }

    .vertical{
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .vertical-img {
        width: calc(50% - 10px);
        height: auto;
    }

    .promo-center {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-box {
        height: auto;
    }

    .promo-box a img {
        height: auto;
    }
}

@media screen and (max-width: 768px){
    .promo-center {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .promo-box {
        height: auto;
    }

    .promo-box a img {
        height: auto;
    }

    .title h1 {
        font-size: 28px;
    }

    .small-title {
        font-size: 16px;
        gap: 10px;
    }

    .promo-title ul li a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .prev, .next{
        font-size: 30px;
    }
}

@media screen and (max-width: 575px){
    .discount .title h1{font-size: 16px;}
    .small-title span a{font-size: 10px;}
    .promo-title ul li a{
        font-size: 10px;
        padding: 8px 12px;
    }
}