@charset "utf-8";

.shop-list-hero-rotator {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    margin-bottom: 72px;
    overflow: hidden;
    background: #e4dddc;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.shop-list-hero-rotator h2,
.shop-list-hero-rotator p,
.shop-list-hero-rotator a,
.shop-list-hero-rotator button {
    font-family: inherit;
}

.shop-list-hero-rotator__track {
    position: relative;
    min-height: 420px;
    height: min(650px, 48vw);
}

.shop-list-hero-rotator__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.shop-list-hero-rotator__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.shop-list-hero-rotator__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-list-hero-rotator__chrome {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 56px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
}

.shop-list-hero-rotator__button {
    width: 54px;
    height: 56px;
    border: 0;
    background: rgba(0, 0, 0, 0.3);
    color: inherit;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* pause 버튼과 nav 사이 구분선 */
.shop-list-hero-rotator__sep {
    display: none;
}

.shop-list-hero-rotator__button:hover,
.shop-list-hero-rotator__button:focus {
    background: rgba(0, 0, 0, 0.45);
}

.shop-list-hero-rotator__button:disabled {
    opacity: 0.45;
    cursor: default;
}

.shop-list-hero-rotator__button:disabled:hover,
.shop-list-hero-rotator__button:disabled:focus {
    background: transparent;
}

.shop-list-hero-rotator__count {
    width: 82px;
    height: 56px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 24px;
    letter-spacing: 0.048px;
    line-height: 36px;
    flex-shrink: 0;
}

.shop-list-hero-rotator__count strong {
    font-weight: 400;
}

.shop-list-hero-rotator__button svg,
.shop-list-hero-rotator__button img {
    display: block;
    width: 24px;
    height: 24px;
}

.shop-list-hero-rotator__button[data-hero-prev] {
    margin-left: 8px;
    padding-left: 20px;
    padding-right: 10px;
}

.shop-list-hero-rotator__button[data-hero-next] {
    padding-left: 10px;
    padding-right: 20px;
}

.shop-list-hero-rotator__button[data-hero-next] .shop-list-hero-rotator__icon {
    transform: rotate(180deg);
}

@media (max-width: 1280px) {
    .shop-list-hero-rotator__track {
        min-height: 360px;
        height: min(560px, 46vw);
    }
}

@media (max-width: 900px) {
    .shop-list-hero-rotator {
        margin-bottom: 48px;
    }

    .shop-list-hero-rotator__track {
        min-height: 280px;
        height: min(420px, 52vw);
    }

    .shop-list-hero-rotator__chrome {
        right: 12px;
        bottom: 12px;
    }
}

/* =========================================================
   Editorial Hero Banner (피그마 디자인: 텍스트 + 이미지 레이아웃)
   ========================================================= */

.shop-list-hero-editorial .shop-list-hero-rotator__track {
    height: min(650px, 48vw);
    min-height: 500px;
}

/* 슬라이드: 크림 배경 기본값 */
.shop-list-hero-editorial .shop-list-hero-rotator__slide {
    background: #e4dddc;
}

/* ── 배경 이미지 (우측 영역) ── */
.slhr__bg {
    position: absolute;
    inset: 0;
    left: 0;
    overflow: hidden;
    background: #e4dddc;
}

.slhr__bg--empty {
    background: #e8dfd5;
}

.slhr__bg img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
}

/* 이미지와 텍스트 사이 그라데이션 페이드 */
.slhr__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(99.7064deg, #e4dddc 11.82%, rgba(255, 255, 255, 0) 51.987%);
    z-index: 1;
    pointer-events: none;
}

/* ── 텍스트 영역 (좌측) ── */
.slhr__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slhr__copy {
    box-sizing: border-box;
    width: min(1400px, 100%);
    max-width: none;
    padding: 0 100px;
    pointer-events: auto;
}

/* 메인 제목 */
.slhr__title {
    margin: 0 0 24px;
    max-width: 1200px;
    font-size: 40px;
    font-weight: 700;
    line-height: 56px;
    color: #444444;
    letter-spacing: -0.2px;
    word-break: keep-all;
}

/* 설명 텍스트 */
.slhr__desc {
    margin: 0 0 45px;
    max-width: 1200px;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 0.048px;
    color: #444444;
    word-break: keep-all;
}

/* SHOP NOW 버튼 (pill 원형) */
.slhr__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 30px;
    border: 1px solid #262626;
    border-radius: 999px;
    background: transparent;
    color: #262626;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0.048px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    white-space: nowrap;
}

.slhr__btn::after {
    content: none;
}

.slhr__btn:hover {
    background: #262626;
    color: #fff;
    border-color: #262626;
}

/* ── 크롬 컨트롤 (피그마 일시정지+이전+카운터+다음) ── */
.shop-list-hero-editorial .shop-list-hero-rotator__chrome {
    right: 0;
    bottom: 0;
    background: transparent;
    border: 0;
}

/* ── 반응형 ── */
@media (max-width: 1280px) {
    .shop-list-hero-editorial .shop-list-hero-rotator__track {
        min-height: 440px;
        height: min(580px, 46vw);
    }
}

@media (max-width: 960px) {
    .shop-list-hero-editorial .shop-list-hero-rotator__track {
        min-height: 560px;
        height: auto;
    }

    /* 모바일: 이미지 전체 배경, 텍스트 하단 오버레이 */
    .slhr__bg {
        left: 0;
    }

    .slhr__bg img {
        object-position: 65% center;
    }

    .slhr__bg::before {
        width: 100%;
        background: linear-gradient(to top, rgba(228, 221, 220, 0.97) 0%, rgba(228, 221, 220, 0.58) 58%, rgba(228, 221, 220, 0) 100%);
        top: auto;
        bottom: 0;
        height: 76%;
    }

    .slhr__body {
        align-items: flex-end;
    }

    .slhr__copy {
        padding: 40px 24px 92px;
        max-width: 100%;
    }

    .slhr__title {
        margin-bottom: 18px;
        font-size: clamp(28px, 5vw, 36px);
        line-height: 1.35;
    }

    .slhr__desc {
        margin-bottom: 32px;
        max-width: 720px;
        font-size: 18px;
        line-height: 1.65;
    }

    .slhr__btn {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (max-width: 600px) {
    .shop-list-hero-editorial .shop-list-hero-rotator__track {
        min-height: 520px;
    }

    .slhr__bg img {
        object-position: 70% center;
    }

    .slhr__desc {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.5;
    }

    .slhr__copy {
        padding: 32px 18px 86px;
    }

    .slhr__title {
        margin-bottom: 28px;
        font-size: 28px;
        line-height: 1.35;
    }

    .slhr__btn {
        height: 44px;
        padding: 0 22px;
        font-size: 15px;
        line-height: 24px;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .shop-list-hero-rotator {
        margin-bottom: 0;
    }

    .shop-list-hero-editorial .shop-list-hero-rotator__track {
        min-height: 650px;
        height: 650px;
    }
}

@media (max-width: 767px) {
    .shop-list-hero-rotator {
        margin-bottom: 0;
    }


    .shop-list-hero-editorial .shop-list-hero-rotator__chrome {
        right: 0;
        bottom: 0;
    }

    .shop-list-hero-rotator__button {
        width: 42px;
        height: 48px;
    }

    .shop-list-hero-rotator__button svg,
    .shop-list-hero-rotator__button img {
        width: 20px;
        height: 20px;
    }

    .shop-list-hero-rotator__count {
        width: 64px;
        height: 48px;
        font-size: 18px;
        line-height: 28px;
    }
}

/* =========================================================
   장바구니 팝업 모달
   ========================================================= */

.sct-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.sct-cart-modal.is-open {
    display: block;
}

.sct-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.sct-cart-modal__dialog {
    position: relative;
    width: min(540px, calc(100% - 32px));
    margin: 8vh auto 0;
    max-height: 84vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
}

.sct-cart-modal-open {
    overflow: hidden;
}

.sct-cart-popup__head {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 30px;
    background: #f09819;
}

.sct-cart-popup__title {
    flex: 1 1 auto;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.sct-cart-popup__head-close {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sct-cart-popup__body {
    padding: 30px;
    background: #fff;
}

.sct-cart-popup__item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.sct-cart-popup__thumb {
    width: 100px;
    height: 100px;
    border: 1px solid #ededed;
    overflow: hidden;
}

.sct-cart-popup__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sct-cart-popup__meta {
    flex: 1 1 auto;
    min-width: 0;
}

.sct-cart-popup__name {
    margin: 0;
    color: #262626;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.sct-cart-popup__option-box {
    margin-top: 12px;
}

.sct-cart-popup .sit_option {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.sct-cart-popup .sit_option label {
    display: none;
}

.sct-cart-popup select.it_option {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 44px 0 20px;
    border: 1px solid #ededed;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
    background-image: none !important;
    color: #262626;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sct-cart-popup select.it_option::-ms-expand {
    display: none;
}

.sct-cart-popup select.it_option:disabled {
    color: #c9c9c9;
}

.sct-cart-popup select.it_option:focus {
    border-color: #f09819;
    outline: 0;
}

.sct-cart-popup__select {
    position: relative;
}

.sct-cart-popup__select + .sct-cart-popup__select {
    margin-top: 12px;
}

.sct-cart-popup__select::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #777;
    border-bottom: 1.5px solid #777;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.sct-cart-popup__selected {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #262626;
}

.sct-cart-popup__selected-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sct-cart-popup__selected-name,
.sct-cart-popup__selected-price {
    margin: 0;
    color: #262626;
    font-size: 14px;
    line-height: 1.6;
}

.sct-cart-popup__selected-name {
    flex: 1 1 auto;
}

.sct-cart-popup__selected-price {
    text-align: right;
    white-space: nowrap;
}

.sct-cart-popup__qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 22px;
}

.sct-cart-popup__qty-btn {
    width: 22px;
    height: 22px;
    border: 0;
    padding: 0;
    background: #fff;
    color: #777;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sct-cart-popup__qty-btn:hover,
.sct-cart-popup__qty-btn:focus {
    background: transparent;
    color: #262626;
}

.sct-cart-popup__qty-num {
    min-width: 50px;
    text-align: center;
    color: #262626;
    font-size: 14px;
    line-height: 22px;
}

.sct-cart-popup__remove {
    width: 12px;
    height: 12px;
    border: 0;
    padding: 0;
    background: #bfbfbf;
    color: #fff;
    font-size: 10px;
    line-height: 12px;
    cursor: pointer;
}

.sct-cart-popup__selected-total {
    margin: 8px 0 0;
    color: #262626;
    font-size: 14px;
    line-height: 1.6;
}

.sct-cart-popup__selected-total strong {
    font-weight: 700;
}

.sct-cart-popup__actions {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.sct-cart-popup__btn {
    flex: 1 1 0;
    height: 50px;
    border: 1px solid #f09819;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.sct-cart-popup__btn--ghost {
    background: #fff;
    color: #262626;
}

.sct-cart-popup__btn--primary {
    background: #f09819;
    color: #fff;
    border-color: #f09819;
}

@media (max-width: 900px) {
    .sct-cart-modal__dialog {
        width: calc(100% - 20px);
        margin-top: 6vh;
        max-height: 88vh;
    }

    .sct-cart-popup__head {
        padding: 0 16px;
    }

    .sct-cart-popup__body {
        padding: 16px;
    }

    .sct-cart-popup__actions {
        gap: 12px;
    }
}
