/* ========================================
  메인 영역
======================================== */
.main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}




/* 슬라이드 이미지 공통 */

.mini-slide img,
.main-slide img,
.promo-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* ========================================
   빌보드
======================================== */

.billboard-grid {
    display: grid;
    grid-template-columns: 252px 756px 252px;
    gap: 10px;
    justify-content: space-between;
}


/* 빌보드 좌/중앙 */
.mini-slider,
.main-slider {
    height: 360px;
}



/* 미니 슬라이드 */

.mini-slider {
    position: relative;
    overflow: hidden;
}

.mini-slider__viewport {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.mini-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.mini-slide {
    flex: 0 0 100%;
    height: 360px;
}

.mini-slide a,
.mini-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.mini-slide img {
    object-fit: cover;
}



/* 좌우 버튼 */

.mini-slider__button {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}



.mini-slider__button span {
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}


.mini-slider__button--prev {
    left: 0;
}


.mini-slider__button--prev span {
    transform: rotate(-135deg);
}


.mini-slider__button--next {
    right: 0;
}


.mini-slider__button--next span {
    transform: rotate(45deg);
}


.mini-slider__button:hover {
    background: rgba(0, 0, 0, 0.5);
}




.mini-pagination {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}


.mini-pagination button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
}


.mini-pagination button.is-active {
    background: rgba(0, 0, 0, 0.5);
}





/* 메인 슬라이드 */

.main-slider {
    height: 360px;
    position: relative;
    overflow: hidden;
    background: #111;
}


.main-slider__viewport {
    width: 100%;
    height: 324px;
    overflow: hidden;
}


.main-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}


.main-slide {
    flex: 0 0 100%;
    position: relative;
}



.main-slide .cont {
    position: absolute;
    width: 100%;
    padding: 40px 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.main-slide .cont p {
    font-size: var(--fs-18);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}


.main-slider__tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.main-slider__tabs button {
    border: 0;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
    background: #fff;
    color: var(--color-gray);
    font-size: var(--fs-15);
    font-weight: 500;
    color: #999;


}


.main-slider__tabs button:last-child {
    border-right: 1px solid #eee;
}


.main-slider__tabs button.is-active {
    border-color: var(--color-primary);

    background: var(--color-primary);
    color: #fff;
}




/* 오른쪽 상품 3개 */

.billboard-side-list {
    display: flex;
    flex-direction: column;
    height: 360px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.billboard-side-item {
    flex: 0 0 120px;
    height: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    background: linear-gradient(to bottom, #FFFFFF, #F1F3F5);
}

.billboard-side-item:last-child {
    border-bottom: 0;
}


.billboard-side-text {
    padding-left: 20px;
    padding-top: 0;
}





/* ========================================
  여기부터 섹션
======================================== */


/* 타이틀 공통 */

.section-tit {
    font-size: var(--fs-24);
    margin-bottom: 16px;
}



/* 상품 텍스트 공통 */

.pd-txt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
}


.pd-txt p {
    overflow: hidden;
    color: var(--color-gray);
    font-size: var(--fs-14);
    white-space: nowrap;
    text-overflow: ellipsis;
}



/* ========================================
  요즘 주목 받는 상품 +MD's PICK 추천 상품 공통
======================================== */

.main .pd-section .pd-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}


/* ========================================
  띠배너
======================================== */

.band-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;

}


/* ========================================
   베스트 카테고리 상품
======================================== */

.best-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}


.best-category {
    position: relative;

}

.best-category:not(:last-child)::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    background: #eee;
    right: -20px;
    top: 0;

}

.best-category__main {
    display: block;
}


.best-category__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
}


.best-category__title p {
    font-size: var(--fs-15);

}



/* 제품이미지 */

.best-category__sub-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
}


.best-category__sub-item {
    display: flex;
    align-items: center;
    gap: 14px;

}


.best-category__sub-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.best-category__sub-text p {
    overflow: hidden;
    font-size: var(--fs-15);
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.best-category__sub-text span {
    overflow: hidden;
    font-size: var(--fs-13);
    color: var(--color-gray);
    white-space: nowrap;
    text-overflow: ellipsis;
}



/* ========================================
   기획전+구매후기+공지사항
======================================== */


.board-section .inner {
    display: grid;
    grid-template-columns: 320px 420px 1fr;
    gap: 60px;
}



.board-section_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}




/* 진행중인 기획전 */

.board-section--promo .promo-slider {
    position: relative;
    width: 100%;

}

.promo-slider__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.promo-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}


.promo-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}


.promo-slide .cont {
    position: absolute;
    width: 100%;
    padding: 24px 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.promo-slide .cont p {
    font-size: var(--fs-14);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}



.promo-slider__button {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;

}


.promo-slider__button span {
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}



.promo-slider__button--prev {
    left: 0;
}


.promo-slider__button--next {
    right: 0;
}


.promo-slider__button--prev span {
    transform: rotate(-135deg);
}


.promo-slider__button--next span {
    transform: rotate(45deg);
}


.promo-slider__button:hover {
    background: rgba(0, 0, 0, 0.5);
}




/* 구매후기 */

.board-section--review .review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.review-item {
    display: flex;
    align-items: center;
    gap: 14px;
}


.review-item__image {
    flex: 0 0 98px;

}


.review-item__image img {
    object-fit: cover;
}


.review-item__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.review-item__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: var(--fs-15);
}


.review-item__meta {
    font-size: var(--fs-14);
    color: var(--color-gray);
    display: flex;
    gap: 8px;
    align-items: center;
}




/* 공지사항 */

.board-section--notice {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}


.notice-list a {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.notice-date {
    font-size: var(--fs-14);
    color: var(--color-gray);
}


.notice-text {
    overflow: hidden;
    font-size: var(--fs-15);
    white-space: nowrap;
    text-overflow: ellipsis;
}




/* 적용환율 */

.exchange-rate {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border: 1px solid #ddd;

}


.exchange-rate__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: var(--fs-15);
    font-weight: 600;
}


.exchange-rate__notice {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.exchange-rate__notice>img {
    cursor: help;
}



.exchange-rate__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 340px;
    padding: 12px 14px;

    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);

    color: #505050;
    font-size: var(--fs-13);
    font-weight: 400;


    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 10;
}



.exchange-rate__tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
}



.exchange-rate__notice:hover .exchange-rate__tooltip {
    opacity: 1;
    visibility: visible;
}



.exchange-rate__list {
    display: flex;
    align-items: center;
    gap: 20px;

}

.exchange-rate__item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gray);
    font-size: var(--fs-15);
}


.exchange-rate__item strong {
    margin-left: 4px;
    color: #333;
}