/* ========================================
   Header 영역
======================================== */

.header {
    position: relative;
    padding-top: 30px;
    background: white;

}

/* ========================================
   로고 + 로그인/장바구니 아이콘 
======================================== */

.header-top .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 48px;
}


/* 로고 */
.logo {
    flex: 0 0 158px;
}


/* Header Util */
.header-util {
    display: flex;
    gap: 16px;
}



/* ========================================
   GNB
======================================== */

.gnb {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.gnb-left,
.gnb-right {
    display: flex;
    align-items: center;
}


/* 카테고리  */

.category-menu {
    margin-right: 24px;

}

.category-button {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-18);
    font-weight: 500;
    cursor: pointer;
}


/* 햄버거 아이콘 */

.category-button__icon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 20px;
}


.category-button__icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* Open → Close 아이콘 */

.category-button.is-open .category-button__icon span:nth-child(1) {
    transform:
        translateY(7px) rotate(45deg);
}


.category-button.is-open .category-button__icon span:nth-child(2) {
    opacity: 0;
}


.category-button.is-open .category-button__icon span:nth-child(3) {
    transform:
        translateY(-7px) rotate(-45deg);
}


/* 내비 왼쪽 */

.gnb-list {
    display: flex;
    align-items: center;
    gap: 24px;

}


.gnb-list a {
    position: relative;
    font-size: var(--fs-18);
    font-weight: 500;
}


.gnb-divider {
    width: 1px;
    height: 16px;
    margin: 0 24px;
    background: #ddd;
}


.gnb-list .dot {
    position: absolute;
    top: 6px;
    right: -6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00AEFF;
}



/* 내비 오른쪽 */

.gnb-right {
    position: relative;
}



/* ========================================
  쿠폰 
======================================== */

.coupon-popup {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 20;
}


/* Coupon Link */

.coupon-link {
    display: block;
    padding: 6px 32px 6px 12px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: var(--fs-13);
    white-space: nowrap;
}


/* 말풍선 화살표 */

.coupon-popup::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #111;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}


/* Close Button */

.coupon-popup__close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}


/* X Icon */

.coupon-popup__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1px;
    background: #fff;
}


.coupon-popup__close span:first-child {
    transform:
        translate(-50%, -50%) rotate(45deg);
}


.coupon-popup__close span:last-child {
    transform:
        translate(-50%, -50%) rotate(-45deg);
}


/* 닫힘 상태 */

.coupon-popup.is-hidden {
    display: none;
}


.util-list {
    display: flex;
    gap: 16px;
    font-size: var(--fs-14);
    color: var(--color-gray);
}

.app-download {
    color: var(--color-text);
}





/* ========================================
   카테고리 드롭다운
======================================== */

.category-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}


.category-mega-menu.is-open {
    display: block;
}


.category-mega-menu .inner {
    display: flex;
    justify-content: space-between;
}

.mega-category {
    display: grid;
    grid-template-columns: 168px repeat(3, 200px);
    /* height: 360px; */


}

.mega-category ul {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;

}

.head-category {
    padding: 0;
      width: auto;


}

.sub-category {
    padding: 10px;
      width: auto;

}


.mega-category a {
    color: #505050;
    font-size: 14px;
    height: 32px;
    line-height: 32px;
    display: flex;
    padding-left: 10px;

}

.head-category a {
    height: 40px;
    padding-left: 18px;
    line-height: 40px;


}

.mega-category a:hover {
    color: var(--color-primary);
}

.head-category .is-active a {
    background: var(--color-primary);
    color: #fff;

}


.mega-banner {
    width: 397px;
    display: flex;
    gap: 30px;
    flex-direction: column;
    padding: 32px;
    border-right: 1px solid #eee;
  

}

.mega-banner .pd-img {
    display: flex;
    gap: 10px;



}

.mega-banner .pd-img a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-14);
}



/* ========================================
   이벤트 배너 슬라이드
======================================== */
.event-banner {
    width: 100%;
}


.event-banner .tit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}




.event-slider {
    position: relative;
    width: 100%;
}


.event-slider__viewport {
    width: 100%;
    overflow: hidden;
}


.event-slider__track {
    display: flex;
    transition: transform 0.5s ease;
}


.event-slide {
    flex: 0 0 100%;
    display: block;
}



/* 슬라이드 버튼 */

.event-slider__button {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: 0;

    background: rgba(0, 0, 0, 0.25);

    z-index: 2;
}


.event-slider__button span {
    width: 8px;
    height: 8px;

    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}


.event-slider__button--prev {
    left: 0;
}


.event-slider__button--prev span {
    transform: rotate(-135deg);
}


.event-slider__button--next {
    right: 0;
}


.event-slider__button--next span {
    transform: rotate(45deg);
}


.event-slider__button:hover {
    background: rgba(0, 0, 0, 0.5);
}