/* ==========================================================================
   OkShop 사용자 화면 디자인 (spub.local.com 디자인 기준)
   - 클래스는 shop- 접두어를 사용해 기존 app.css와 겹치지 않게 한다.
   ========================================================================== */

@font-face { font-family: "Urbanist"; src: url("../fonts/urbanist/Urbanist-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/urbanist/Urbanist-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/urbanist/Urbanist-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/urbanist/Urbanist-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("../fonts/urbanist/Urbanist-Black.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
    --shop-black: #000;
    --shop-green: #48633a;
    --shop-green-dark: #3a5130;
    --shop-orange: #ffa233;
    --shop-red: #e52323;
    --shop-grey: #6b6b6b;
    --shop-grey-light: #9a9a9a;
    --shop-line: #d5dbe6;
    --shop-line-light: #e0e6f0;
    --shop-bg-soft: #f6f6f6;
    --shop-bg-footer: #f8f8f6;
    --shop-container: 1500px;
    --shop-gutter: 30px;
    --shop-header-height: 68px;
    --shop-ease: 0.3s ease;
    --shop-font: "Urbanist", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

/* ---------- 기본 ---------- */
.shop-body {
    margin: 0;
    font-family: var(--shop-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--shop-black);
    background: #fff;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.shop-body *,
.shop-body *::before,
.shop-body *::after {
    box-sizing: border-box;
}
.shop-body img {
    max-width: 100%;
    display: block;
}
.shop-body button {
    font-family: inherit;
    cursor: pointer;
}
.shop-body.is-locked {
    overflow: hidden;
}
.shop-main {
    display: block;
    min-height: 50vh;
}
.shop-container {
    width: 100%;
    max-width: var(--shop-container);
    margin: 0 auto;
    padding-left: var(--shop-gutter);
    padding-right: var(--shop-gutter);
}
.shop-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 버튼 ---------- */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    padding: 11px 20px;
    border: 1.5px solid var(--shop-green);
    border-radius: 0;
    background: var(--shop-green);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--shop-ease), border-color var(--shop-ease), color var(--shop-ease);
}
.shop-btn--outline {
    border-color: var(--shop-black);
    background: transparent;
    color: var(--shop-black);
}
.shop-btn--dark {
    border-color: var(--shop-black);
    background: var(--shop-black);
}
.shop-btn--light {
    border-color: #fff;
    background: transparent;
    color: #fff;
}
.shop-btn--block {
    display: flex;
    width: 100%;
}
.shop-btn[disabled],
.shop-btn.is-disabled {
    border-color: #e7e7e7;
    background: #e7e7e7;
    color: #7d7d7d;
    pointer-events: none;
}
@media (hover: hover) and (min-width: 1200px) {
    .shop-btn:hover,
    .shop-btn--outline:hover,
    .shop-btn--light:hover {
        border-color: var(--shop-green);
        background: var(--shop-green);
        color: #fff;
    }
    .shop-btn--dark:hover {
        border-color: var(--shop-green);
        background: var(--shop-green);
    }
}

/* ---------- 섹션 제목 ---------- */
.shop-section {
    padding: 100px 0;
}
.shop-section--soft {
    background: var(--shop-bg-soft);
}
.shop-section__head {
    margin-bottom: 48px;
    text-align: center;
}
.shop-section__title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-section__desc {
    margin: 12px 0 0;
    color: #3c3c3c;
    font-size: 16px;
}
.shop-section__more {
    margin-top: 40px;
    text-align: center;
}

/* ---------- 상단 공지 띠 ---------- */
.shop-topbar {
    background: var(--shop-green);
    color: #fff;
}
.shop-topbar[hidden] {
    display: none;
}
.shop-topbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}
/* 문구 여러 줄: 한 줄 높이 안에서 다음 문구가 위에서 내려오고 이전 문구는 아래로 사라진다(shop.js initTopbar) */
.shop-topbar__text {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}
.shop-topbar__item {
    position: absolute;
    inset: 0;
    padding: 12px 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.shop-topbar__item.is-active {
    opacity: 1;
    transform: translateY(0);
}
.shop-topbar__item.is-leaving {
    opacity: 0;
    transform: translateY(100%);
}
.shop-topbar__text a {
    color: inherit;
    text-decoration: none;
}
.shop-topbar__close {
    position: absolute;
    top: 50%;
    right: calc(var(--shop-gutter) - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    transform: translateY(-50%);
}

/* ---------- 헤더 ---------- */
.shop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 6.5px rgba(0, 0, 0, 0.06);
}
.shop-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    min-height: var(--shop-header-height);
}
.shop-header__hamburger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.shop-header__logo {
    grid-column: 2;
    display: block;
    max-width: 171px;
}
.shop-header__logo img {
    width: 100%;
    max-height: 44px;
    object-fit: contain;
}
.shop-header__icons {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 28px;
}
.shop-header__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-header__badge {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--shop-black);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.shop-header__badge[hidden] {
    display: none;
}
/* 로그인 상태 표시(회원 아이콘의 초록 점) */
.shop-header__login-dot {
    position: absolute;
    right: -3px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--shop-green);
}

/* 데스크톱 메뉴 */
.shop-nav {
    grid-column: 1;
    justify-self: start;
}
.shop-nav__list {
    display: flex;
    align-items: center;
    gap: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    color: var(--shop-black);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--shop-ease);
}
.shop-nav__chevron {
    transition: transform var(--shop-ease);
}
.shop-nav__item.is-current > .shop-nav__link {
    color: var(--shop-green);
    font-weight: 700;
}

/* 메가메뉴 */
.shop-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 24px 0 48px;
    background: #fff;
    border-top: 1px solid var(--shop-line-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--shop-ease), visibility var(--shop-ease), transform var(--shop-ease);
}
.shop-megamenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.shop-megamenu__inner {
    position: relative;
    z-index: 1;
    min-height: 320px;
    background: #fff;
}
.shop-megamenu__list {
    width: 25%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-megamenu__item + .shop-megamenu__item {
    margin-top: 16px;
}
.shop-megamenu__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--shop-black);
    font-size: 16px;
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-megamenu__panel {
    position: absolute;
    top: 0;
    left: calc(25% + var(--shop-gutter));
    right: var(--shop-gutter);
    display: flex;
    justify-content: space-between;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity var(--shop-ease), visibility var(--shop-ease), transform var(--shop-ease);
}
.shop-megamenu__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-megamenu__sublist li + li {
    margin-top: 16px;
}
.shop-megamenu__sublist a {
    color: var(--shop-black);
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-megamenu__banners {
    display: flex;
    margin-left: auto;
    gap: 24px;
    text-align: center;
}
.shop-megamenu__banner {
    display: block;
    width: 270px;
    color: var(--shop-black);
    text-decoration: none;
}
.shop-megamenu__banner img {
    width: 100%;
    aspect-ratio: 270 / 300;
    object-fit: cover;
}
.shop-megamenu__banner strong {
    display: block;
    margin-top: 24px;
    font-weight: 700;
}
.shop-megamenu__banner span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 1200px) {
    .shop-nav__item.has-submenu:hover .shop-megamenu,
    .shop-nav__item.has-submenu:focus-within .shop-megamenu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .shop-nav__item.has-submenu:hover .shop-nav__chevron {
        transform: rotate(180deg);
    }
    /* 메뉴가 열려 있을 때만 첫 번째 하위 패널을 기본으로 보여준다(닫힌 상태에서 보이면 투명한 패널이 마우스에 반응해 메뉴가 열린다).
       패널은 하위 카테고리나 메뉴 블록이 있는 항목(.has-panel)에만 있다. */
    .shop-nav__item.has-submenu:hover .shop-megamenu__item:first-child.has-panel > .shop-megamenu__panel,
    .shop-nav__item.has-submenu:focus-within .shop-megamenu__item:first-child.has-panel > .shop-megamenu__panel,
    .shop-megamenu__item.has-panel:hover > .shop-megamenu__panel {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .shop-megamenu__list:hover .shop-megamenu__item:first-child.has-panel:not(:hover) > .shop-megamenu__panel {
        opacity: 0;
        visibility: hidden;
    }
    .shop-nav__link:hover,
    .shop-megamenu__link:hover,
    .shop-megamenu__sublist a:hover,
    .shop-header__icon:hover {
        color: var(--shop-green);
    }
    .shop-megamenu__item:hover > .shop-megamenu__link {
        font-weight: 700;
    }
}

/* 회원 드롭다운 */
.shop-account {
    position: relative;
}
.shop-account__menu {
    position: absolute;
    top: calc(100% + 22px);
    right: -20px;
    min-width: 273px;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 1px 6.5px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--shop-ease), visibility var(--shop-ease), transform var(--shop-ease);
}
.shop-account.is-open .shop-account__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.shop-account__menu form {
    margin: 0;
}
.shop-account__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 16px;
    text-align: left;
    text-decoration: none;
    transition: background-color var(--shop-ease), color var(--shop-ease);
}
.shop-account__link:hover {
    background: var(--shop-bg-soft);
    color: var(--shop-green);
}

/* 검색 */
.shop-search {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 24px 0;
    border-top: 1px solid var(--shop-line-light);
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--shop-ease), visibility var(--shop-ease), transform var(--shop-ease);
}
.shop-search.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.shop-search__form {
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-search__form input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1.5px solid var(--shop-black);
    border-radius: 0;
    outline: none;
    font-family: inherit;
    font-size: 18px;
}
.shop-search__submit,
.shop-search__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.shop-search__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 16px;
    font-size: 14px;
    line-height: normal;
}
.shop-search__quick-label {
    font-weight: 700;
}
.shop-search__quick a {
    color: var(--shop-black);
    text-decoration: underline;
}
/* 모바일 서랍 메뉴 */
.shop-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
}
.shop-drawer.is-open {
    visibility: visible;
}
.shop-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--shop-ease);
}
.shop-drawer.is-open .shop-drawer__backdrop {
    opacity: 1;
}
.shop-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, 88vw);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    transform: translateX(-100%);
    transition: transform var(--shop-ease);
}
.shop-drawer.is-open .shop-drawer__panel {
    transform: none;
}
.shop-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-drawer__logo img {
    max-height: 36px;
}
.shop-drawer__close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.shop-drawer__list {
    margin: 0;
    padding: 8px 20px;
    list-style: none;
}
.shop-drawer__item {
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}
.shop-drawer__link.is-current {
    color: var(--shop-green);
}
.shop-drawer__link svg {
    transition: transform var(--shop-ease);
}
.shop-drawer__item.is-open > .shop-drawer__link svg {
    transform: rotate(180deg);
}
.shop-drawer__sublist {
    display: none;
    margin: 0;
    padding: 0 0 16px 12px;
    list-style: none;
}
.shop-drawer__item.is-open > .shop-drawer__sublist {
    display: block;
}
.shop-drawer__sublist a {
    display: block;
    padding: 8px 0;
    color: #333;
    font-size: 15px;
    text-decoration: none;
}
.shop-drawer__sublist a.is-current {
    color: var(--shop-green);
    font-weight: 700;
}
.shop-drawer__deeplist {
    margin: 0;
    padding: 0 0 4px 14px;
    list-style: none;
}
.shop-drawer__deeplist a {
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-drawer__account {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--shop-line-light);
}
.shop-drawer__account a,
.shop-drawer__account button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 15px;
    text-decoration: none;
}
.shop-drawer__account form {
    margin: 0;
}

/* ---------- 뉴스레터 구독(메인 맨 아래 블록) ---------- */
.shop-newsletter {
    border-top: 1px solid var(--shop-line);
    background: var(--shop-bg-footer);
}
.shop-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
}
.shop-newsletter__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-newsletter__desc {
    margin: 0;
    color: var(--shop-grey);
    font-size: 16px;
    line-height: 1.5;
}
.shop-newsletter__form {
    flex: 0 1 600px;
    min-width: 0;
}

/* ---------- 푸터 ---------- */
.shop-footer {
    margin-top: 0;
    background: var(--shop-bg-footer);
    color: var(--shop-black);
}
.shop-footer__main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--shop-line);
}
.shop-footer__col--brand { width: 25%; }
.shop-footer__col--contact { width: 25%; }
.shop-footer__col--links { width: 17%; }
.shop-footer__col--business { width: 33%; max-width: 520px; }
.shop-footer__logo {
    display: block;
    max-width: 220px;
}
.shop-footer__heading {
    display: block;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}
.shop-footer__col--brand .shop-footer__heading {
    margin-top: 24px;
}
.shop-footer__heading--large {
    margin-bottom: 8px;
    font-size: 28px;
}
.shop-footer__toggle svg {
    display: none;
}
.shop-footer__social {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--shop-line);
    border-radius: 50%;
    background: #fff;
    color: var(--shop-black);
    transition: background-color var(--shop-ease), color var(--shop-ease), border-color var(--shop-ease);
}
.shop-footer__social a:hover {
    border-color: var(--shop-green);
    background: var(--shop-green);
    color: #fff;
}
.shop-footer__info {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-footer__info li {
    display: flex;
    gap: 12px;
    color: var(--shop-green);
}
.shop-footer__info li + li {
    margin-top: 12px;
}
.shop-footer__info svg {
    flex: 0 0 auto;
}
.shop-footer__info a,
.shop-footer__info span {
    color: var(--shop-black);
    text-decoration: none;
    word-break: keep-all;
}
.shop-footer__hours {
    margin: 16px 0 0;
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-footer__links li + li {
    margin-top: 12px;
}
.shop-footer__links a {
    color: var(--shop-black);
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-footer__links a:hover {
    color: var(--shop-green);
}
.shop-footer__desc {
    margin: 0;
    color: #3c3c3c;
    word-break: keep-all;
}
.shop-footer__business {
    margin: 24px 0 0;
}
.shop-footer__business div {
    display: flex;
    gap: 12px;
    font-size: 14px;
}
.shop-footer__business div + div {
    margin-top: 6px;
}
.shop-footer__business dt {
    min-width: 96px;
    color: var(--shop-grey);
}
.shop-footer__business dd {
    margin: 0;
}
.shop-footer__copyright {
    padding: 20px 0;
    color: var(--shop-grey);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   공용 컴포넌트: 슬라이더 / 상품 카드 / 라벨
   ========================================================================== */
[data-shop-slider] {
    --slides-per-view: 1;
    --slides-gap: 0px;
    position: relative;
}
.shop-slider__viewport {
    overflow: hidden;
    touch-action: pan-y;
}
.shop-slider__track {
    display: flex;
    gap: var(--slides-gap);
    transition: transform 0.5s ease;
    will-change: transform;
}
.shop-slider__slide {
    flex: 0 0 calc((100% - (var(--slides-per-view) - 1) * var(--slides-gap)) / var(--slides-per-view));
    min-width: 0;
}
.shop-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    transform: translateY(-50%);
    transition: opacity var(--shop-ease), color var(--shop-ease);
}
.shop-slider__arrow:hover {
    color: var(--shop-green);
}
.shop-slider__arrow[disabled] {
    opacity: 0.25;
    cursor: default;
}
.shop-slider__arrow--prev { left: -64px; }
.shop-slider__arrow--next { right: -64px; }
.shop-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.shop-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    transition: background-color var(--shop-ease), width var(--shop-ease);
}
.shop-slider__dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: var(--shop-black);
}

.shop-label {
    display: inline-block;
    min-width: 60px;
    padding: 3.5px 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}
.shop-label--sale { background: #ffa236; }
.shop-label--new { background: var(--shop-green); }
.shop-label--dark { background: var(--shop-black); }

.shop-card {
    position: relative;
}
.shop-card__media {
    position: relative;
    display: flex;
    flex-direction: column;
}
.shop-card__image {
    display: block;
    aspect-ratio: 288 / 320;
    overflow: hidden;
    background: var(--shop-bg-soft);
}
.shop-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.shop-card__noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--shop-grey-light);
    font-size: 14px;
}
.shop-card__labels {
    position: absolute;
    top: 24px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}
.shop-card__wish {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    transition: color var(--shop-ease), transform var(--shop-ease);
}
.shop-card__wish.is-active {
    color: var(--shop-red);
}
.shop-card__wish.is-active path {
    fill: currentColor;
}
.shop-card__cart {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--shop-black);
    background: #fff;
    color: var(--shop-black);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--shop-ease), border-color var(--shop-ease), color var(--shop-ease);
}
.shop-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.shop-card__buy-form {
    margin: 0;
}
.shop-card__cart--dark {
    background: var(--shop-black);
    color: #fff;
}
button.shop-card__cart {
    font-family: inherit;
    cursor: pointer;
}
.shop-card__cart[disabled] {
    border-color: #e7e7e7;
    background: #e7e7e7;
    color: #7d7d7d;
    cursor: default;
}
.shop-card__info {
    text-align: center;
}
.shop-card__name {
    display: block;
    margin-top: 20px;
    color: var(--shop-black);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    word-break: keep-all;
    transition: color var(--shop-ease);
}
.shop-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 8px;
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.2;
}
.shop-card__price strong {
    font-weight: 700;
}
.shop-card__price del {
    color: var(--shop-grey-light);
    font-size: 15px;
}
.shop-card__keyinfo {
    margin-top: 8px;
    color: var(--shop-grey);
    font-size: 14px;
    line-height: 1.5;
}
.shop-card__keyinfo ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (hover: hover) and (min-width: 1200px) {
    .shop-card:hover .shop-card__image img {
        transform: scale(1.04);
    }
    .shop-card__cart:not([disabled]):hover {
        border-color: var(--shop-green);
        background: var(--shop-green);
        color: #fff;
    }
    .shop-card__name:hover,
    .shop-card__wish:hover {
        color: var(--shop-green);
    }
}

/* ==========================================================================
   메인 홈
   ========================================================================== */
.shop-hero {
    margin-bottom: 60px;
}
.shop-hero__slide {
    position: relative;
}
.shop-hero__image {
    width: 100%;
    height: clamp(420px, 40vw, 770px);
    object-fit: cover;
}
.shop-hero__content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}
.shop-hero__text {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.shop-hero__slide.is-active .shop-hero__text {
    opacity: 1;
    transform: none;
}
.shop-hero__title {
    margin: 0;
    font-size: 80px;
    font-weight: 800;
    line-height: 1.15;
}
.shop-hero__desc {
    margin: 40px 0 0;
    font-size: 24px;
    line-height: 1.2;
}
.shop-hero__text .shop-btn {
    margin-top: 40px;
}
.shop-hero .shop-slider__arrow--prev { left: 7%; }
.shop-hero .shop-slider__arrow--next { right: 7%; }
.shop-hero .shop-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
}

.shop-block.shop-section {
    padding: 60px 0;
}
.shop-block .shop-section__head {
    margin-bottom: 44px;
}

.shop-feature__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.shop-feature__banner {
    position: relative;
    overflow: hidden;
}
.shop-feature__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-feature__banner-content {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 48px 40px;
    color: #fff;
}
.shop-feature__banner-content h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
}
.shop-feature__banner-content .shop-btn {
    margin-top: 20px;
}
.shop-feature__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: start;
}

.shop-product-slider {
    --slides-per-view: 4;
    --slides-gap: 20px;
}

.shop-rows {
    padding: 60px 0;
}
.shop-rows__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.shop-rows__item.is-reverse .shop-rows__image {
    order: 2;
}
.shop-rows__image img {
    width: 100%;
    height: 100%;
    max-height: 770px;
    object-fit: cover;
}
.shop-rows__content {
    padding: 0 40px 9px;
    text-align: center;
}
.shop-rows__sub {
    display: block;
    color: var(--shop-green);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-rows__title {
    margin: 12px 0 0;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
}
.shop-rows__text {
    margin: 24px 0 0;
}
.shop-rows__content .shop-btn {
    margin-top: 60px;
}

.shop-best__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shop-testimonials {
    margin: 20px 0;
    padding: 120px 0;
    background: var(--shop-bg-footer);
}
.shop-testimonials__slider {
    max-width: 1300px;
    margin: 0 auto;
}
.shop-testimonials__slider .shop-slider__arrow--prev { left: 0; }
.shop-testimonials__slider .shop-slider__arrow--next { right: 0; }
.shop-testimonials__item {
    padding: 0 80px;
    text-align: center;
}
.shop-testimonials__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
}
.shop-testimonials__text {
    max-width: 700px;
    margin: 44px auto 0;
    word-break: keep-all;
}
.shop-testimonials__name {
    display: block;
    margin-top: 44px;
    font-size: 18px;
    font-weight: 700;
}

.shop-discover__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.shop-discover__item {
    display: block;
    color: var(--shop-black);
    text-align: center;
    text-decoration: none;
}
.shop-discover__image {
    display: block;
    overflow: hidden;
}
.shop-discover__image img {
    width: 100%;
    aspect-ratio: 470 / 520;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.shop-discover__title {
    display: block;
    margin-top: 28px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    transition: color var(--shop-ease);
}
.shop-discover__item:hover img {
    transform: scale(1.04);
}
.shop-discover__item:hover .shop-discover__title {
    color: var(--shop-green);
}

.shop-services {
    padding: 60px 0 120px;
}
.shop-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.shop-services__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.shop-services__item strong {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-services__item span {
    margin-top: 6px;
    color: #7d7d7d;
    word-break: keep-all;
}

@media (max-width: 1599px) {
    .shop-product-slider .shop-slider__arrow--prev { left: -16px; }
    .shop-product-slider .shop-slider__arrow--next { right: -16px; }
    .shop-product-slider .shop-slider__arrow {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        top: 38%;
    }
}
@media (max-width: 1199px) {
    .shop-hero__title { font-size: 56px; }
    .shop-hero__desc { margin-top: 24px; font-size: 20px; }
    .shop-hero__text .shop-btn { margin-top: 28px; }
    .shop-product-slider { --slides-per-view: 3; }
    .shop-rows__title { font-size: 34px; }
    .shop-rows__sub { font-size: 22px; }
    .shop-rows__content .shop-btn { margin-top: 36px; }
    .shop-testimonials { padding: 80px 0; }
}
@media (max-width: 767px) {
    .shop-hero { margin-bottom: 32px; }
    .shop-hero__image { height: 480px; }
    .shop-hero__title { font-size: 36px; }
    .shop-hero__desc { margin-top: 16px; font-size: 16px; }
    .shop-hero__text .shop-btn { margin-top: 20px; }
    .shop-hero .shop-slider__arrow { display: none; }
    .shop-block.shop-section { padding: 40px 0; }
    .shop-block .shop-section__head { margin-bottom: 24px; }
    .shop-feature__grid { grid-template-columns: 1fr; gap: 24px; }
    .shop-feature__banner img { height: 400px; }
    .shop-feature__banner-content { padding: 0 30px 24px 20px; }
    .shop-feature__banner-content h3 { font-size: 20px; }
    .shop-feature__banner-content .shop-btn { margin-top: 14px; }
    .shop-feature__cards { gap: 12px; }
    .shop-product-slider { --slides-per-view: 1.35; --slides-gap: 16px; }
    .shop-product-slider .shop-slider__arrow { display: none; }
    .shop-card__labels { top: 12px; }
    .shop-label { min-width: 48px; font-size: 12px; }
    .shop-card__wish { top: 10px; right: 10px; }
    .shop-card__cart { font-size: 14px; padding: 8px 4px; }
    .shop-card__actions { gap: 6px; }
    .shop-card__name { margin-top: 12px; font-size: 16px; }
    .shop-card__price { font-size: 16px; }
    .shop-rows { padding: 40px 0; }
    .shop-rows__item { grid-template-columns: 1fr; }
    .shop-rows__item + .shop-rows__item { margin-top: 60px; }
    .shop-rows__item.is-reverse .shop-rows__image { order: 0; }
    .shop-rows__image img { height: 540px; }
    .shop-rows__content { padding: 12px 20px 0; text-align: left; }
    .shop-rows__sub { font-size: 14px; font-weight: 600; line-height: 1.5; }
    .shop-rows__title { margin-top: 2px; font-size: 20px; font-weight: 700; }
    .shop-rows__text { margin-top: 8px; }
    .shop-rows__text br { display: none; }
    .shop-rows__content .shop-btn { margin-top: 24px; }
    .shop-best__grid,
    .shop-discover__grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .shop-best__grid > *,
    .shop-discover__grid > * { flex: 0 0 74%; scroll-snap-align: start; }
    .shop-discover__image img { height: 300px; aspect-ratio: auto; }
    .shop-discover__title { margin-top: 16px; font-size: 18px; }
    .shop-testimonials { padding: 56px 0; }
    .shop-testimonials__item { padding: 0 50px; }
    .shop-testimonials__text { margin-top: 24px; }
    .shop-testimonials__name { margin-top: 32px; font-size: 16px; }
    .shop-services { padding: 24px 0 44px; }
    .shop-services__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
    .shop-services__item img { width: 56px; height: 56px; }
    .shop-services__item strong { font-size: 16px; }
    .shop-services__item span { font-size: 13px; }
}

/* ==========================================================================
   공용 페이지 상단 배너 / 경로
   ========================================================================== */
.shop-pagehead {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 250px;
    background: #f1f1ef var(--pagehead-image) center / cover no-repeat;
}
.shop-pagehead__inner {
    padding-top: 48px;
    padding-bottom: 48px;
}
.shop-pagehead__title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
}
.shop-pagehead__summary {
    max-width: 560px;
    margin: 12px 0 0;
    color: #3c3c3c;
    word-break: keep-all;
}
.shop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.shop-breadcrumb a {
    color: var(--shop-black);
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-breadcrumb a:hover {
    color: var(--shop-green);
}
.shop-breadcrumb strong {
    color: var(--shop-green);
    font-weight: 600;
}
.shop-page__body {
    padding-top: 40px;
    padding-bottom: 100px;
}

/* ==========================================================================
   상품 목록(카테고리·검색)
   ========================================================================== */
.shop-listing {
    position: relative;
    transition: opacity var(--shop-ease);
}
.shop-listing.is-loading {
    opacity: 0.45;
    pointer-events: none;
}
.shop-listing__count {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}
.shop-listing__count span {
    font-weight: 600;
}
.shop-filter__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: #f6f6f6;
}
.shop-filter__groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 32px;
}
.shop-filter__dropdown {
    position: relative;
}
.shop-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 16px;
}
.shop-filter__toggle svg {
    transition: transform var(--shop-ease);
}
.shop-filter__dropdown.is-open .shop-filter__toggle svg {
    transform: rotate(180deg);
}
.shop-filter__panel {
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 20;
    min-width: 240px;
    max-height: 360px;
    margin: 0;
    padding: 12px 0;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--shop-ease), visibility var(--shop-ease), transform var(--shop-ease);
}
.shop-filter__dropdown.is-open .shop-filter__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.shop-filter__panel a,
.shop-filter__panel .shop-check {
    display: flex;
    padding: 8px 16px;
    color: var(--shop-black);
    text-decoration: none;
}
.shop-filter__panel a:hover,
.shop-filter__panel a.is-active {
    color: var(--shop-green);
    font-weight: 700;
}
/* 하위 카테고리 필터: 체크박스 대신 선택한 항목을 색상(굵게)으로 표시 */
.shop-filter__toggle.is-selected {
    color: var(--shop-green);
    font-weight: 700;
}
.shop-filter__dropdown:has(.shop-filter__panel--wide) {
    position: static;
}
.shop-filter__panel--wide {
    left: 0;
    width: 100%;
    max-height: none;
    padding: 24px 24px 28px;
    overflow: visible;
    box-shadow: 0 6.5px 6.5px rgba(0, 0, 0, 0.06);
}
.shop-filter__panel--wide li + li {
    margin-top: 16px;
}
.shop-filter__panel .shop-filter__option {
    display: inline-flex;
    padding: 0;
}
.shop-filter__option {
    color: var(--shop-black);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--shop-ease);
}
.shop-filter__option--bar {
    padding: 20px 0;
}
.shop-filter__option:hover,
.shop-filter__option.is-active,
.shop-filter__option input:checked + span {
    color: var(--shop-green);
    font-weight: 700;
}
.shop-filter__option input:focus-visible + span {
    outline: 2px solid var(--shop-green);
    outline-offset: 2px;
}
.shop-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.shop-check input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--shop-green);
    cursor: pointer;
}
.shop-filter__check {
    gap: 8px;
    padding: 8px 0;
    font-size: 15px;
}
.shop-filter__check input {
    width: 22px;
    height: 22px;
    border: 1.5px solid #e0e6f0;
    border-radius: 7px;
    background: #fff;
    appearance: none;
    transition: background-color var(--shop-ease), border-color var(--shop-ease);
}
.shop-filter__check:hover input {
    border-color: var(--shop-green);
}
.shop-filter__check input:checked {
    border-color: var(--shop-green);
    background: var(--shop-green) url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.2 5.8 10 11 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.shop-filter__check input:checked + span {
    color: var(--shop-green);
    font-weight: 700;
}
.shop-filter__check input:focus-visible {
    outline: 2px solid var(--shop-green);
    outline-offset: 2px;
}
.shop-filter__checks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 28px;
}
.shop-filter__tools {
    display: flex;
    align-items: center;
    gap: 16px;
}
.shop-filter__search {
    display: flex;
    align-items: center;
    width: 280px;
    max-width: 100%;
    border-bottom: 1px solid #c9c9c9;
}
.shop-filter__search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 15px;
}
.shop-filter__search button {
    display: flex;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.shop-filter__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}
.shop-filter__total {
    margin: 0;
    color: var(--shop-grey);
}
.shop-sort__select {
    min-width: 214px;
    height: 41px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--shop-line);
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.6 7.46 11.17 12.9a1.65 1.65 0 0 1-2.34 0L3.4 7.46' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;
    color: var(--shop-black);
    font-family: inherit;
    font-size: 15px;
    appearance: none;
    cursor: pointer;
}
.shop-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
}
.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    color: var(--shop-black);
    font-size: 14px;
    text-decoration: none;
    transition: border-color var(--shop-ease);
}
.shop-chip:hover {
    border-color: var(--shop-black);
}
.shop-chips__clear {
    color: var(--shop-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 24px;
}
.shop-empty[hidden] {
    display: none;
}
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 100px 0;
    color: var(--shop-grey-light);
    text-align: center;
}
.shop-empty p {
    margin: 0;
    color: var(--shop-grey);
}

/* 페이지 번호 */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}
.shop-pagination--mobile {
    display: none;
}
.shop-pagination__number,
.shop-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid transparent;
    color: var(--shop-black);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--shop-ease), color var(--shop-ease);
}
.shop-pagination__number:hover,
.shop-pagination__arrow:hover {
    color: var(--shop-green);
}
.shop-pagination__number.is-active {
    border-color: var(--shop-black);
}
.shop-pagination__arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-filter__meta { flex-wrap: wrap; }
    .shop-filter__tools { width: 100%; }
    .shop-filter__search { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 767px) {
    .shop-pagehead { min-height: 180px; }
    .shop-pagehead__title { font-size: 28px; }
    .shop-page__body { padding-top: 24px; padding-bottom: 60px; }
    .shop-listing__count { font-size: 18px; }
    .shop-filter__groups { gap: 0 24px; }
    .shop-filter__toggle,
    .shop-filter__option--bar { padding: 14px 0; }
    .shop-filter__panel { left: 0; min-width: 200px; }
    .shop-sort__select { min-width: 160px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .shop-pagination { margin-top: 40px; }
    .shop-pagination--pc { display: none; }
    .shop-pagination--mobile { display: flex; }
}

/* ==========================================================================
   상품 상세
   ========================================================================== */
.shop-product__breadcrumb {
    margin: 0;
    padding: 20px 0 40px;
}
.shop-product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 20px 40px;
    align-items: start;
}
.shop-gallery {
    display: flex;
    gap: 20px;
    min-width: 0;
}
.shop-gallery__thumbs {
    display: flex;
    flex: 0 0 105px;
    flex-direction: column;
    gap: 12px;
    max-height: 640px;
    overflow-y: auto;
    scrollbar-width: none;
}
.shop-gallery__thumbs::-webkit-scrollbar {
    display: none;
}
.shop-gallery__thumb {
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid transparent;
    background: var(--shop-bg-soft);
    opacity: 0.6;
    transition: opacity var(--shop-ease), border-color var(--shop-ease);
}
.shop-gallery__thumb img {
    width: 100%;
    aspect-ratio: 105 / 116;
    object-fit: cover;
}
.shop-gallery__thumb.is-active,
.shop-gallery__thumb:hover {
    border-color: var(--shop-black);
    opacity: 1;
}
.shop-gallery__main {
    flex: 1;
    min-width: 0;
}
.shop-gallery__image {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--shop-bg-soft);
    cursor: zoom-in;
}
.shop-gallery__image img {
    width: 100%;
    aspect-ratio: 580 / 640;
    object-fit: cover;
}
.shop-gallery__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 580 / 640;
    color: var(--shop-grey-light);
    cursor: default;
}
.shop-gallery__main .shop-slider__arrow--prev { left: 16px; }
.shop-gallery__main .shop-slider__arrow--next { right: 16px; }

.shop-product__info {
    min-width: 0;
}
.shop-product__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.shop-product__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 28px;
}
.shop-product__tools {
    display: flex;
    gap: 16px;
}
.shop-product__tool {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    transition: color var(--shop-ease);
}
.shop-product__tool:hover {
    color: var(--shop-green);
}
.shop-product__wish.is-active {
    color: var(--shop-red);
}
.shop-product__wish.is-active path {
    fill: currentColor;
}
.shop-product__name {
    margin: 12px 0 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
}
.shop-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin: 12px 0 0;
    font-size: 24px;
    line-height: 1.2;
}
.shop-product__price strong {
    font-weight: 700;
}
.shop-product__price del {
    color: var(--shop-grey-light);
    font-size: 18px;
}
/* 가격 아래 평균 별점·리뷰 수 */
.shop-product__review {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}
.shop-product__review-count {
    color: var(--shop-grey);
    font-size: 14px;
    line-height: 20px;
}
.shop-product__summary {
    margin: 20px 0 0;
    color: var(--shop-grey);
    word-break: keep-all;
}
.shop-product__options {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.shop-product__options .shop-product__option {
    margin-top: 0;
}
.shop-product__option {
    margin-top: 24px;
}
.shop-product__option-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.shop-select {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--shop-line);
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.6 7.46 11.17 12.9a1.65 1.65 0 0 1-2.34 0L3.4 7.46' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center no-repeat;
    color: var(--shop-black);
    font-family: inherit;
    font-size: 16px;
    appearance: none;
    cursor: pointer;
}
.shop-product__buy {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}
.shop-qty {
    display: inline-flex;
    align-items: center;
    flex: 0 0 190px;
    height: 48px;
    border: 1px solid var(--shop-line);
}
.shop-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.shop-qty__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    -moz-appearance: textfield;
}
.shop-qty__input::-webkit-outer-spin-button,
.shop-qty__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
.shop-product__cart {
    flex: 1;
}
.shop-product__buynow {
    margin-top: 12px;
}
.shop-product__soldout {
    margin: 28px 0 0;
}
.shop-product__policy {
    margin: 28px 0 0;
    padding: 0 0 24px;
    list-style: none;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-product__policy li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.shop-product__policy li + li {
    margin-top: 10px;
}
.shop-product__policy a {
    margin-left: 4px;
    color: var(--shop-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 24px 0 0;
    font-size: 15px;
}
.shop-product__meta div {
    display: flex;
    gap: 4px;
}
.shop-product__meta dt {
    font-weight: 700;
}
.shop-product__meta dd {
    margin: 0;
    color: var(--shop-grey);
}

/* 탭 */
.shop-tabs {
    margin-top: 80px;
    padding-bottom: 60px;
}
.shop-tabs__nav {
    display: flex;
    gap: 56px;
    border-bottom: 1px solid var(--shop-line);
}
.shop-tabs__tab {
    position: relative;
    padding: 0 0 14px;
    border: 0;
    background: none;
    color: #666;
    font-size: 20px;
    font-weight: 500;
}
.shop-tabs__tab.is-active {
    color: var(--shop-black);
    font-weight: 700;
}
.shop-tabs__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--shop-black);
}
.shop-tabs__panel[hidden] {
    display: none;
}

/* 아코디언 */
.shop-accordion__item {
    border-bottom: 1px solid var(--shop-line);
}
.shop-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 24px 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}
.shop-accordion__badge {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 8px;
    background: var(--shop-bg-soft);
    color: var(--shop-green);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    vertical-align: middle;
}
.shop-accordion__icon {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.shop-accordion__icon::before,
.shop-accordion__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--shop-ease);
}
.shop-accordion__icon::after {
    transform: rotate(90deg);
}
.shop-accordion__item.is-open .shop-accordion__icon::after {
    transform: rotate(0);
}
.shop-accordion__body {
    display: none;
}
.shop-accordion__content {
    padding: 0 0 28px;
}

/* 관리자 에디터 HTML */
.shop-richtext {
    color: #222;
    line-height: 1.7;
    word-break: keep-all;
}
.shop-richtext h2,
.shop-richtext h3,
.shop-richtext h4 {
    margin: 32px 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.shop-richtext > :first-child {
    margin-top: 0;
}
.shop-richtext p {
    margin: 0 0 16px;
}
.shop-richtext ul,
.shop-richtext ol {
    margin: 0 0 16px;
    padding-left: 20px;
}
.shop-richtext ul { list-style: disc; }
.shop-richtext ol { list-style: decimal; }
.shop-richtext li { margin-bottom: 4px; }
.shop-richtext img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.shop-richtext table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--shop-black);
}
.shop-richtext th,
.shop-richtext td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--shop-line-light);
    text-align: left;
    vertical-align: top;
}
.shop-richtext th {
    width: 180px;
    background: #fafafa;
    font-weight: 600;
}
.shop-product__detail {
    margin-top: 40px;
}
.shop-product__detail p:has(> img) {
    margin-bottom: 20px;
}
.shop-product__detail-empty,
.shop-empty-text {
    padding: 60px 0;
    color: var(--shop-grey);
    text-align: center;
}
.shop-product__related {
    background: #fff;
}

/* 크게 보기 */
.shop-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--shop-ease), visibility var(--shop-ease);
}
.shop-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.shop-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.shop-lightbox__close,
.shop-lightbox__arrow {
    position: absolute;
    display: flex;
    padding: 8px;
    border: 0;
    background: none;
    color: #fff;
}
.shop-lightbox__close { top: 16px; right: 16px; }
.shop-lightbox__arrow { top: 50%; transform: translateY(-50%); }
.shop-lightbox__arrow--prev { left: 16px; }
.shop-lightbox__arrow--next { right: 16px; }
.shop-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    color: #fff;
    font-size: 14px;
    transform: translateX(-50%);
}

@media (max-width: 1199px) {
    .shop-product__layout { grid-template-columns: 1fr; }
    .shop-gallery__thumbs { flex-basis: 84px; }
    .shop-tabs { margin-top: 60px; }
}
@media (max-width: 767px) {
    .shop-product__breadcrumb { padding: 12px 0 20px; }
    .shop-gallery { flex-direction: column-reverse; gap: 12px; }
    .shop-gallery__thumbs { flex: 0 0 auto; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .shop-gallery__thumb { flex: 0 0 64px; }
    .shop-gallery__main .shop-slider__arrow { display: none; }
    .shop-product__name { font-size: 24px; }
    .shop-product__price { font-size: 20px; }
    .shop-qty { flex-basis: 132px; }
    .shop-qty__btn { width: 40px; }
    .shop-tabs { margin-top: 48px; }
    .shop-tabs__nav { gap: 32px; }
    .shop-tabs__tab { font-size: 17px; }
    .shop-accordion__head { padding: 18px 0; font-size: 16px; }
    .shop-richtext th { width: 110px; }
    .shop-lightbox { padding: 48px 8px; }
}

/* ==========================================================================
   공용 폼 필드
   ========================================================================== */
.shop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.shop-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.shop-field--full {
    grid-column: 1 / -1;
}
.shop-field > label {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}
.shop-body .required {
    color: var(--shop-red);
}
.shop-body .hint {
    color: var(--shop-grey-light);
    font-weight: 400;
}
.shop-field input[type="text"],
.shop-field input[type="email"],
.shop-field input[type="password"],
.shop-field input[type="tel"],
.shop-field input[type="number"],
.shop-field input[type="search"],
.shop-field textarea,
.shop-field select:not(.shop-select) {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--shop-line);
    border-radius: 0;
    background: #fff;
    color: var(--shop-black);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color var(--shop-ease);
}
.shop-field textarea {
    resize: vertical;
}
.shop-field input:focus,
.shop-field textarea:focus,
.shop-field select:focus {
    border-color: var(--shop-black);
}
.shop-field input[readonly] {
    background: #f6f6f6;
}
.shop-field input::placeholder,
.shop-field textarea::placeholder {
    color: #bababa;
}
/* 글자 수 표시(app.js data-char-counter): textarea 아래 오른쪽, 최대 글자 수에 도달하면 빨간색 */
.shop-field__counter {
    align-self: flex-end;
    margin-top: 6px;
    color: var(--shop-grey);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.shop-field__counter.is-full {
    color: var(--shop-red);
}
/* 입력란 아래 한 줄: 왼쪽 검증 오류 문구, 오른쪽 글자 수 */
.shop-field__foot {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.shop-field__errors {
    flex: 1;
    min-width: 0;
}
.shop-field__foot .shop-field__counter {
    flex: 0 0 auto;
    margin-left: auto;
}
/* 높이 자동 조절 textarea(app.js data-auto-resize): 스크롤 대신 내용만큼 높이가 늘어난다 */
.shop-field textarea[data-auto-resize] {
    overflow: hidden;
    resize: none;
}
.shop-field__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}
.shop-field__row input {
    flex: 1 1 0;
    min-width: 0;
}
/* 입력칸 + 버튼이 한 줄인 필드는 검증 오류 문구(JustValidate가 입력칸 바로 뒤에 추가)를 다음 줄에 표시한다 */
.shop-field__row .just-validate-error-label {
    flex: 0 0 100%;
    order: 1;
}
.shop-field__row .shop-field__button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
    white-space: nowrap;
}
.shop-body .is-invalid {
    border-color: var(--shop-red) !important;
}
.shop-body .just-validate-error-label {
    margin-top: 6px;
    color: var(--shop-red) !important;
    font-size: 13px;
}

/* ==========================================================================
   장바구니 / 바로구매
   ========================================================================== */
.shop-checkout__breadcrumb {
    margin: 0;
    padding: 20px 0 32px;
}
.shop-checkout__head {
    margin-bottom: 32px;
}
.shop-checkout__title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-checkout__desc {
    margin: 8px 0 0;
    color: var(--shop-grey);
}
.shop-checkout__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
    padding-bottom: 100px;
}
.shop-cart__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 120px 56px;
    gap: 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--shop-black);
    font-weight: 700;
}
.shop-cart__head--buy-now {
    grid-template-columns: minmax(0, 1fr) 140px 120px;
}
.shop-cart__head span:not(:first-child) {
    text-align: center;
}
.shop-cart__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 120px 56px;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-cart__item--buy-now {
    grid-template-columns: minmax(0, 1fr) 140px 120px;
}
.shop-cart__product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.shop-cart__thumb {
    flex: 0 0 90px;
    background: var(--shop-bg-soft);
}
.shop-cart__thumb img {
    width: 90px;
    height: 100px;
    object-fit: cover;
}
.shop-cart__info {
    min-width: 0;
}
.shop-cart__name {
    display: block;
    color: var(--shop-black);
    font-weight: 600;
    text-decoration: none;
    word-break: keep-all;
}
.shop-cart__name:hover {
    color: var(--shop-green);
}
.shop-cart__info .cart-item__option {
    margin: 4px 0 0;
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-cart__price {
    margin: 6px 0 0;
    font-weight: 700;
}
.shop-cart__price del {
    margin-left: 6px;
    color: var(--shop-grey-light);
    font-size: 14px;
    font-weight: 400;
}
.shop-qty.shop-cart__qty {
    flex: none;
    width: 140px;
    height: 40px;
    margin: 0;
}
.shop-cart__qty .shop-qty__btn {
    width: 40px;
}
.shop-cart__subtotal {
    margin: 0;
    font-weight: 700;
    text-align: center;
}
.shop-cart__actions {
    display: flex;
    justify-content: center;
}
.shop-cart__remove {
    display: flex;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--shop-black);
    transition: color var(--shop-ease);
}
.shop-cart__remove:hover {
    color: var(--shop-red);
}
.shop-cart__empty {
    padding: 80px 0;
    border-top: 1px solid var(--shop-black);
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-cart__empty[hidden],
.shop-cart[hidden] {
    display: none;
}
.shop-checkout-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--shop-line-light);
}
.shop-checkout-section__title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}
.shop-checkout-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.shop-checkout-section__head .shop-checkout-section__title {
    margin: 0;
}
.shop-checkout-section__head-btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

/* 합계 박스 */
.shop-summary {
    position: sticky;
    top: calc(var(--shop-header-height) + 24px);
    padding: 24px;
    background: #f6f6f6;
}
.shop-summary__title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
}
.shop-summary__rows {
    margin: 0;
}
.shop-summary__rows div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
}
.shop-summary__rows div + div {
    margin-top: 12px;
}
.shop-summary__rows dt {
    color: #3c3c3c;
}
.shop-summary__rows dd {
    margin: 0;
    font-weight: 600;
}
.shop-summary__rows .is-discount {
    color: var(--shop-red);
}
.shop-summary__note {
    margin: 12px 0 0;
    color: var(--shop-grey);
    font-size: 13px;
    line-height: 1.5;
}
.shop-summary__note--area {
    color: var(--shop-red);
}
.shop-summary__note[hidden] {
    display: none;
}
.shop-summary__coupon {
    margin-top: 16px;
}
/* 주문서 쿠폰번호 입력칸 아래 보유 쿠폰 레이어(.shop-dropdown__menu 재사용) */
.shop-coupon-picker__menu {
    max-height: 280px;
    overflow-y: auto;
}
/* 폼 요소 샘플: 열린 레이어가 다음 영역을 가리지 않도록 아래 여백을 둔다 */
.page-form-elements__coupon-sample {
    max-width: 420px;
    padding-bottom: 210px;
}
.shop-coupon-picker__title {
    margin: 0;
    padding: 4px 16px 8px;
    color: var(--shop-grey);
    font-size: 13px;
}
.shop-dropdown__option.shop-coupon-picker__option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--shop-line-light);
}
.shop-coupon-picker__option:hover .shop-coupon-picker__name {
    color: var(--shop-green);
}
.shop-coupon-picker__name {
    font-size: 14px;
    font-weight: 700;
}
.shop-coupon-picker__meta,
.shop-coupon-picker__code {
    color: var(--shop-grey);
    font-size: 12px;
    font-weight: 400;
}
.shop-summary__coupon-message {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
}
.shop-summary__coupon-message.is-success {
    color: var(--shop-green);
}
.shop-summary__coupon-message.is-error {
    color: var(--shop-red);
}
.shop-summary__coupon-message[hidden],
.shop-summary__rows div[hidden],
.shop-summary__coupon .shop-field__button[hidden] {
    display: none;
}
.shop-summary__total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    font-size: 18px;
    font-weight: 700;
}
.shop-summary__amount {
    text-align: right;
}
.shop-summary__amount strong {
    display: block;
    font-size: 24px;
}
.shop-summary__amount small {
    color: var(--shop-grey);
    font-size: 12px;
    font-weight: 400;
}
.shop-summary__agree {
    margin-top: 20px;
}
/* 토스페이먼츠 결제위젯(결제수단·결제 약관) */
.shop-summary__payment {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.shop-summary__payment-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}
.shop-summary__payment #checkoutTossPaymentMethods,
.shop-summary__payment #checkoutTossPaymentAgreement {
    margin: 0 -12px;
}
.shop-summary__agree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}
.shop-summary__agree-row + .shop-summary__agree-row {
    margin-top: 10px;
}
.shop-summary__agree-row .shop-check input {
    width: 18px;
    height: 18px;
}
.shop-summary__agree-row a {
    color: var(--shop-grey);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-summary__submit {
    margin-top: 20px;
}

@media (max-width: 1199px) {
    .shop-checkout__layout { grid-template-columns: 1fr; }
    .shop-summary { position: static; }
}
@media (max-width: 767px) {
    .shop-checkout__breadcrumb { padding: 12px 0 20px; }
    .shop-checkout__title { font-size: 28px; }
    .shop-checkout__layout { padding-bottom: 60px; }
    .shop-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .shop-cart__head { display: none; }
    .shop-cart__item,
    .shop-cart__item--buy-now {
        position: relative;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 16px 0;
    }
    .shop-cart__product { grid-column: 1 / -1; padding-right: 32px; }
    .shop-cart__thumb { flex-basis: 72px; }
    .shop-cart__thumb img { width: 72px; height: 80px; }
    .shop-qty.shop-cart__qty { width: 120px; }
    .shop-cart__subtotal { text-align: right; }
    .shop-cart__actions { position: absolute; top: 12px; right: 0; }
    .shop-summary { padding: 20px 16px; }
}

/* ==========================================================================
   로그인 / 회원가입 / 비밀번호 찾기·재설정
   ========================================================================== */
.shop-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 720px;
}
.shop-auth__panel {
    display: flex;
    flex-direction: column;
    padding: 0 40px 80px max(var(--shop-gutter), calc((100vw - var(--shop-container)) / 2 + var(--shop-gutter)));
}
.shop-auth__breadcrumb {
    margin: 0;
    padding: 20px 0;
}
.shop-auth__box {
    width: 100%;
    max-width: 400px;
    margin: 60px auto 0;
}
.shop-auth__box--center {
    margin-top: 40px;
    margin-bottom: 100px;
}
.shop-auth__head {
    margin-bottom: 28px;
    text-align: center;
}
.shop-auth__title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
}
.shop-auth__desc {
    margin: 10px 0 0;
    color: #3c3c3c;
    font-size: 15px;
}
.shop-auth__demo-notice {
    margin: 8px 0 0;
    color: #e5484d;
    font-size: 15px;
    font-weight: 700;
}
.shop-auth__desc a,
.shop-auth__foot a {
    color: var(--shop-green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-auth__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.shop-password {
    position: relative;
}
.shop-password input {
    padding-right: 52px !important;
}
.shop-password__toggle {
    position: absolute;
    top: 24px;
    right: 12px;
    display: flex;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--shop-grey);
    transform: translateY(-50%);
}
.shop-password__toggle .icon-show,
.shop-password__toggle.is-visible .icon-hide {
    display: none;
}
.shop-password__toggle.is-visible .icon-show {
    display: block;
}
.shop-auth__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
}
.shop-auth__link {
    color: var(--shop-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-auth__code {
    margin-top: 8px;
}
.shop-auth__code[hidden] {
    display: none;
}
.shop-auth__status {
    min-height: 0;
    margin: 6px 0 0;
    color: var(--shop-green);
    font-size: 14px;
}
.shop-auth__status:empty {
    display: none;
}
.shop-auth__status.is-error {
    color: var(--shop-red);
}
.shop-auth__agree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}
.shop-auth__agree .shop-check {
    align-items: flex-start;
}
.shop-auth__agree .shop-check input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}
.shop-auth__agree a {
    color: var(--shop-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-auth__divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0;
    color: #989898;
    font-size: 14px;
}
.shop-auth__divider::before,
.shop-auth__divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--shop-line);
}
.shop-auth__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.shop-auth__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border: 1px solid var(--shop-black);
    color: var(--shop-black);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--shop-ease), color var(--shop-ease);
}
.shop-auth__social-btn:hover {
    background: var(--shop-bg-soft);
}
.shop-auth__foot {
    margin: 24px 0 0;
    color: #3c3c3c;
    font-size: 15px;
    text-align: center;
}
.shop-auth__visual {
    position: relative;
    overflow: hidden;
    background: var(--shop-bg-soft);
}
.shop-auth__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .shop-auth { grid-template-columns: 1fr; min-height: 0; }
    .shop-auth__visual { display: none; }
    .shop-auth__panel { padding-right: var(--shop-gutter); }
}
@media (max-width: 767px) {
    .shop-auth__box { margin-top: 24px; }
    .shop-auth__title { font-size: 26px; }
    .shop-auth__social { grid-template-columns: 1fr; }
}

/* ==========================================================================
   공용 모달
   ========================================================================== */
.shop-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--shop-ease), visibility var(--shop-ease);
}
.shop-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.shop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.shop-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    transform: translateY(16px);
    transition: transform var(--shop-ease);
}
.shop-modal.is-open .shop-modal__dialog {
    transform: none;
}
.shop-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
}
.shop-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}
.shop-modal__desc {
    margin: 6px 0 0;
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-modal__close {
    display: flex;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.shop-modal__body {
    padding: 24px;
}
.shop-modal__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.shop-modal__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* ==========================================================================
   마이페이지
   ========================================================================== */
.shop-mypage-head {
    background: var(--shop-bg-soft);
}
.shop-mypage-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 48px;
}
.shop-mypage-head__welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #6b6b6b;
}
.shop-mypage-head__name {
    margin-top: 4px;
    color: var(--shop-green);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-mypage-head__badge {
    margin-top: 12px;
    padding: 4px 16px;
    background: #ffa236;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.shop-mypage-head__stats {
    display: flex;
    align-items: center;
}
.shop-mypage-head__stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 48px;
    color: var(--shop-black);
    text-decoration: none;
}
.shop-mypage-head__stat + .shop-mypage-head__stat {
    border-left: 1px solid #d9d9d9;
}
.shop-mypage-head__stat:last-child {
    padding-right: 0;
}
.shop-mypage-head__stat img {
    flex: 0 0 60px;
    border-radius: 50%;
    background: #ececec;
}
.shop-mypage-head__stat em {
    display: block;
    color: #6b6b6b;
    font-size: 14px;
    font-style: normal;
}
.shop-mypage-head__stat strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.shop-mypage {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 100px;
}
.shop-mypage-nav {
    position: sticky;
    top: calc(var(--shop-header-height) + 24px);
    padding: 24px;
    background: var(--shop-bg-soft);
}
.shop-mypage-nav__group + .shop-mypage-nav__group {
    margin-top: 28px;
}
.shop-mypage-nav__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}
.shop-mypage-nav__link {
    display: block;
    padding: 6px 0;
    color: var(--shop-black);
    font-size: 15px;
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-mypage-nav__link:hover,
.shop-mypage-nav__link.is-active {
    color: var(--shop-green);
    font-weight: 700;
}
.shop-mypage-nav__logout {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #d9d9d9;
}
.shop-mypage-nav__logout button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 15px;
}
.shop-mypage__content {
    min-width: 0;
}
.shop-mypage__head {
    margin-bottom: 24px;
}
.shop-mypage__head--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.shop-mypage__head--row .shop-btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 20px;
    font-size: 15px;
    white-space: nowrap;
}
.shop-mypage__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-mypage__title > span {
    font-weight: 600;
}
.shop-mypage__desc {
    margin: 6px 0 0;
    color: var(--shop-grey);
}
.shop-mypage__section {
    margin-top: 40px;
}

/* 마이페이지 배송지 주소록 */
.shop-address-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-address-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-top: 1.5px solid var(--shop-line-light);
}
.shop-address-item:last-child {
    border-bottom: 1.5px solid var(--shop-line-light);
}
.shop-address-item__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}
.shop-address-item__name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-address-item__divider {
    width: 1px;
    height: 26px;
    background: var(--shop-line-light);
}
.shop-address-item__divider--small {
    height: 18px;
}
.shop-address-item__phone,
.shop-address-item__address {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-address-item__address {
    width: 100%;
    margin: 0;
    gap: 12px;
    word-break: keep-all;
}
.shop-address-item__address svg,
.shop-address-item__phone svg {
    flex: 0 0 auto;
}
.shop-address-item__default {
    color: var(--shop-green);
    font-weight: 600;
}
.shop-modal__dialog--wide {
    max-width: 640px;
}
.shop-address-list--select .shop-address-item {
    padding: 20px 0;
}
.shop-address-list--select .shop-address-item__name {
    font-size: 17px;
}
.shop-address-list--select .shop-address-item__actions {
    gap: 8px;
}
.shop-address-item__default[hidden],
.shop-address-item__select[hidden] {
    display: none;
}
.shop-address-item__select {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 18px;
    font-size: 14px;
    white-space: nowrap;
}
.shop-empty--compact {
    padding: 24px 0;
}
.shop-address-default-hint {
    margin: -8px 0 0;
    color: var(--shop-grey);
    font-size: 13px;
}
.shop-address-default-hint[hidden] {
    display: none;
}
.shop-address-item__date {
    color: var(--shop-grey);
}
.shop-address-item__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
}
.shop-address-item__actions form {
    margin: 0;
}
.shop-address-item__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--shop-line-light);
    border-radius: 8px;
    background: #fff;
    color: var(--shop-green);
    cursor: pointer;
    transition: background-color var(--shop-ease), border-color var(--shop-ease), color var(--shop-ease);
}
.shop-address-item__action--delete {
    color: var(--shop-black);
}
.shop-address-item__action:hover {
    border-color: var(--shop-black);
    background: var(--shop-black);
    color: #fff;
}
.shop-mypage__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.shop-mypage__subtitle {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}
.shop-mypage__section-head .shop-mypage__subtitle {
    margin: 0;
}
.shop-mypage__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}
.shop-more-link {
    color: var(--shop-grey);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-info-list {
    margin: 0;
    border-top: 1px solid var(--shop-black);
}
.shop-info-list div {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-info-list dt {
    flex: 0 0 140px;
    color: var(--shop-grey);
}
.shop-info-list dd {
    margin: 0;
    word-break: break-all;
}
/* 여러 줄 입력값(배송 요청사항 등)은 입력한 줄바꿈을 그대로 보여준다 */
.shop-info-list dd.shop-info-list__multiline {
    white-space: pre-line;
}
.shop-info-list--compact dt {
    flex-basis: 110px;
}
.shop-info-list .is-discount {
    color: var(--shop-red);
}
.shop-status-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.shop-status-tiles__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--shop-line);
    color: var(--shop-black);
    text-decoration: none;
    transition: border-color var(--shop-ease);
}
.shop-status-tiles__item:hover {
    border-color: var(--shop-black);
}
.shop-status-tiles__item span {
    color: var(--shop-grey);
}
.shop-status-tiles__item strong {
    font-size: 28px;
    font-weight: 700;
}
.shop-status-tiles__item strong span {
    margin-left: 2px;
    font-size: 16px;
    font-weight: 500;
}
.shop-history {
    border-top: 1px solid var(--shop-black);
}
.shop-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--shop-line-light);
    color: var(--shop-black);
    text-decoration: none;
}
.shop-history__item--link:hover .shop-history__title strong {
    color: var(--shop-green);
}
.shop-history__main {
    min-width: 0;
}
.shop-history__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0;
}
.shop-history__title span {
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-history__date {
    display: block;
    margin-top: 4px;
    color: var(--shop-grey-light);
    font-size: 14px;
}
.shop-history__amount {
    flex: 0 0 auto;
    text-align: right;
}
.shop-history__amount strong {
    display: block;
    font-size: 17px;
}
.shop-history__amount strong.is-plus {
    color: var(--shop-green);
}
.shop-history__amount strong.is-minus {
    color: var(--shop-red);
}
.shop-history__amount span {
    color: var(--shop-grey-light);
    font-size: 13px;
}
.shop-empty-text--left {
    padding: 24px 0;
    text-align: left;
}
.shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-tags a {
    padding: 6px 14px;
    border: 1px solid var(--shop-line);
    color: var(--shop-black);
    font-size: 14px;
    text-decoration: none;
    transition: border-color var(--shop-ease), color var(--shop-ease);
}
.shop-tags a:hover {
    border-color: var(--shop-green);
    color: var(--shop-green);
}
.shop-grid--mypage {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
}
.shop-grid--mypage[hidden] {
    display: none;
}
.shop-wish-item__meta {
    margin: 8px 0 0;
    color: var(--shop-grey-light);
    font-size: 13px;
    text-align: center;
}

/* 주문 */
.shop-order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 36px;
    border-bottom: 1px solid var(--shop-line);
}
.shop-order-tabs__tab {
    position: relative;
    padding: 0 0 12px;
    color: #666;
    font-size: 16px;
    text-decoration: none;
}
.shop-order-tabs__tab.is-active {
    color: var(--shop-black);
    font-weight: 700;
}
.shop-order-tabs__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--shop-black);
}
.shop-orders {
    margin-top: 8px;
}

/* 마이페이지 쿠폰 목록 */
.shop-coupons {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.shop-coupon {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--shop-line);
    background: #fff;
}
.shop-coupon + .shop-coupon {
    margin-top: 12px;
}
.shop-coupon__benefit {
    display: flex;
    flex: 0 0 180px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    border-right: 1px dashed var(--shop-line);
    color: var(--shop-green);
    text-align: center;
}
/* 할인 영역 배경: 마이페이지 상단의 쿠폰 아이콘을 흐리게 깔고, 글자는 그 위에 둔다 */
.shop-coupon__benefit {
    position: relative;
    overflow: hidden;
}
.shop-coupon__benefit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: url("../media/shop/icons/mypage-coupon.svg") no-repeat center / contain;
    opacity: 0.12;
    transform: translate(-50%, -50%) rotate(-12deg);
    pointer-events: none;
}
.shop-coupon.is-disabled .shop-coupon__benefit::before {
    filter: grayscale(1);
}
.shop-coupon__benefit > * {
    position: relative;
}
.shop-coupon__benefit strong {
    font-size: 20px;
}
.shop-coupon__benefit span {
    color: var(--shop-grey);
    font-size: 13px;
}
.shop-coupon__info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
}
.shop-coupon__info p {
    margin: 0;
}
.shop-coupon__name {
    font-size: 16px;
    font-weight: 700;
}
.shop-coupon__code,
.shop-coupon__period {
    margin-top: 6px !important;
    color: var(--shop-grey);
    font-size: 13px;
    word-break: break-all;
}
.shop-coupon__status {
    display: flex;
    flex: 0 0 140px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    font-size: 13px;
}
.shop-coupon__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f1f1;
    color: var(--shop-grey);
    font-weight: 700;
}
.shop-coupon__badge.is-usable {
    background: var(--shop-green);
    color: #fff;
}
.shop-coupon__used {
    color: var(--shop-grey);
}
.shop-coupon__order {
    color: var(--shop-green);
}
.shop-coupon.is-disabled .shop-coupon__benefit {
    color: var(--shop-grey);
}
.shop-coupons > .shop-empty {
    list-style: none;
}
@media (max-width: 767px) {
    .shop-coupon {
        flex-wrap: wrap;
    }
    .shop-coupon__benefit {
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 1px dashed var(--shop-line);
    }
    .shop-coupon__status {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding-top: 0;
    }
}
.shop-order {
    padding: 24px 0;
    border-bottom: 1px solid var(--shop-line);
}
.shop-order--detail {
    padding-top: 0;
}
.shop-order__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.shop-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-order__meta strong {
    color: var(--shop-black);
}
.shop-order__meta a {
    color: inherit;
}
.shop-order__status {
    flex: 0 0 auto;
    color: var(--shop-grey);
    font-size: 14px;
    font-weight: 700;
}
.shop-order__status--received { color: #ffa236; }
.shop-order__status--complete { color: var(--shop-green); }
.shop-order__status--cancel { color: var(--shop-red); }
.shop-order__items {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-order__item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.shop-order__item + .shop-order__item {
    margin-top: 12px;
}
.shop-order__thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 100px;
    overflow: hidden;
    background: var(--shop-bg-soft);
}
.shop-order__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-order__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.shop-order__info strong {
    font-weight: 600;
    word-break: keep-all;
}
.shop-order__info span {
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-order__item-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-order__item-link:hover {
    color: var(--shop-green);
    text-decoration: underline;
}
.shop-order__price {
    flex: 0 0 auto;
    font-weight: 700;
    text-align: right;
}
.shop-order__price del {
    display: block;
    color: var(--shop-grey-light);
    font-size: 13px;
    font-weight: 400;
}
.shop-order__refund-amount {
    display: block;
    margin-top: 2px;
    color: var(--shop-red);
    font-size: 13px;
    font-weight: 600;
}
.shop-order__info .shop-order__refund-badge {
    align-self: flex-start;
    padding: 2px 8px;
    border: 1px solid var(--shop-red);
    border-radius: 4px;
    color: var(--shop-red);
    font-size: 12px;
    font-weight: 600;
}
.shop-order__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--shop-line-light);
    font-weight: 700;
}
.shop-order__shipping {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--shop-line-light);
    color: #3c3c3c;
    font-size: 15px;
}
.shop-order__shipping span:last-child {
    font-weight: 600;
}
.shop-order__shipping--coupon {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}
.shop-order__shipping .is-discount {
    color: var(--shop-red);
}
.shop-order__shipping--refund {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}
.shop-order__total--after-shipping {
    margin-top: 12px;
    padding-top: 12px;
}
.shop-order__total em {
    color: var(--shop-grey);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}
.shop-order__total strong {
    color: var(--shop-green);
    font-size: 22px;
}
.shop-progress {
    display: flex;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.shop-progress__step {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--shop-grey-light);
    font-size: 14px;
    text-align: center;
}
.shop-progress__step::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--shop-line);
}
.shop-progress__step:first-child::before {
    display: none;
}
.shop-progress__dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border: 2px solid var(--shop-line);
    border-radius: 50%;
    background: #fff;
}
.shop-progress__step.is-complete,
.shop-progress__step.is-active {
    color: var(--shop-black);
}
.shop-progress__step.is-complete::before,
.shop-progress__step.is-active::before {
    background: var(--shop-green);
}
.shop-progress__step.is-complete .shop-progress__dot {
    border-color: var(--shop-green);
    background: var(--shop-green);
}
.shop-progress__step.is-active .shop-progress__dot {
    border-color: var(--shop-green);
    box-shadow: inset 0 0 0 3px #fff;
    background: var(--shop-green);
}
.shop-progress__step strong {
    font-weight: 600;
}
.shop-order__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}
.shop-order__message {
    margin: 0;
    color: var(--shop-grey);
    font-size: 14px;
    word-break: keep-all;
}
.shop-order__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}
.shop-order__actions form {
    margin: 0;
}
.shop-order__actions .shop-btn {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 15px;
}
/* 입금된 가상계좌 결제 주문취소·반품의 환불계좌 입력 */
.shop-refund-account {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}
.shop-refund-account__title {
    margin: 0;
    font-weight: 700;
}
.shop-refund-account__desc {
    margin: 0;
    color: var(--shop-grey);
    font-size: 13px;
}
.shop-order__cancel-form {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
}
.shop-order__cancel-form > .shop-btn {
    justify-self: end;
    min-width: 120px;
}
.shop-order-success {
    margin-bottom: 40px;
    padding: 40px 20px;
    background: var(--shop-bg-soft);
    color: var(--shop-green);
    text-align: center;
}
.shop-order-success svg {
    margin: 0 auto;
}
.shop-order-success h1 {
    margin: 16px 0 0;
    color: var(--shop-black);
    font-size: 28px;
    font-weight: 700;
}
.shop-order-success p {
    margin: 8px 0 0;
    color: var(--shop-grey);
}
.shop-order-success strong {
    color: var(--shop-green);
}
.shop-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--shop-black);
    font-size: 15px;
    text-decoration: none;
}
.shop-table-wrap {
    overflow-x: auto;
}
.shop-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--shop-black);
    font-size: 15px;
}
.shop-table th,
.shop-table td {
    padding: 12px;
    border-bottom: 1px solid var(--shop-line-light);
    text-align: left;
    white-space: nowrap;
}
.shop-table th {
    background: #fafafa;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .shop-mypage-head__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .shop-mypage-head__stat { padding: 0 32px; }
    .shop-mypage-head__stat:first-child { padding-left: 0; }
    .shop-mypage { grid-template-columns: 1fr; gap: 24px; }
    .shop-mypage-nav { position: static; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 40px; }
    .shop-mypage-nav__group + .shop-mypage-nav__group { margin-top: 0; }
    .shop-mypage-nav__logout { margin: 0; padding: 0; border: 0; }
    .shop-grid--mypage { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .shop-mypage-head__inner { padding-top: 28px; padding-bottom: 28px; }
    .shop-mypage-head__name { font-size: 22px; }
    .shop-mypage-head__stats { width: 100%; justify-content: space-between; }
    .shop-mypage-head__stat { flex-direction: column; gap: 6px; padding: 0 8px; text-align: center; }
    .shop-mypage-head__stat img { width: 44px; height: 44px; flex-basis: auto; }
    .shop-mypage-head__stat strong { font-size: 20px; }
    .shop-mypage { padding-bottom: 60px; }
    .shop-mypage-nav { padding: 16px; gap: 12px 24px; }
    .shop-mypage-nav__title { font-size: 16px; margin-bottom: 4px; }
    .shop-mypage__title { font-size: 24px; }
    .shop-address-item { align-items: flex-start; gap: 16px; padding: 20px 0; }
    .shop-address-item__name { font-size: 18px; }
    .shop-address-item__address { gap: 8px; }
    .shop-address-item__actions { gap: 8px; }
    .shop-address-item__action { width: 40px; height: 40px; }
    .shop-mypage__columns { grid-template-columns: 1fr; }
    .shop-status-tiles { gap: 8px; }
    .shop-status-tiles__item { padding: 14px; }
    .shop-status-tiles__item strong { font-size: 22px; }
    .shop-info-list dt { flex-basis: 96px; }
    .shop-grid--mypage { grid-template-columns: repeat(2, 1fr); }
    .shop-order__thumb { flex-basis: 64px; width: 64px; height: 72px; }
    .shop-order__foot { flex-direction: column; align-items: stretch; }
    .shop-order__actions .shop-btn { flex: 1; min-width: 0; }
    .shop-order__actions form { flex: 1; }
    .shop-order__actions form .shop-btn { width: 100%; }
    .shop-modal__dialog { max-height: calc(100vh - 24px); }
}

/* ==========================================================================
   콘텐츠 페이지(공지사항·FAQ·Q&A·약관)
   ========================================================================== */
.shop-content-page {
    padding-bottom: 100px;
}
.shop-titlehead {
    padding: 20px 0 32px;
}
.shop-titlehead__breadcrumb {
    margin: 0 0 32px;
}
.shop-titlehead__title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
}
.shop-titlehead__desc {
    margin: 10px 0 0;
    color: var(--shop-grey);
}
.shop-searchbox {
    display: flex;
    align-items: center;
    max-width: 480px;
    margin-bottom: 32px;
    border-bottom: 1.5px solid var(--shop-black);
}
.shop-searchbox--end {
    max-width: 320px;
    margin-left: auto;
}
.shop-searchbox input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 16px;
}
.shop-searchbox button {
    display: flex;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--shop-black);
}

/* 게시판 목록 */
.shop-board {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--shop-black);
}
.shop-board li {
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-board__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 8px;
    color: var(--shop-black);
    text-decoration: none;
    transition: background-color var(--shop-ease);
}
.shop-board__link:hover {
    background: #fafafa;
}
.shop-board__link:hover .shop-board__title {
    color: var(--shop-green);
}
.shop-board__badge {
    flex: 0 0 auto;
    display: inline-block;
    padding: 2px 10px;
    background: var(--shop-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}
.shop-board__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--shop-ease);
}
.shop-board__link.is-pinned .shop-board__title {
    font-weight: 700;
}
.shop-board__file {
    display: flex;
    flex: 0 0 auto;
    color: var(--shop-grey);
}
.shop-board__file svg {
    width: 18px;
    height: 18px;
}
.shop-board__date {
    flex: 0 0 auto;
    min-width: 5.6em;
    color: var(--shop-grey-light);
    font-family: "Inter", var(--shop-font);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* 게시글 상세 */
.shop-article {
    border-top: 1px solid var(--shop-black);
}
.shop-article__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-article__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}
.shop-article__title .shop-board__badge {
    margin-right: 8px;
}
.shop-article__date {
    flex: 0 0 auto;
    color: var(--shop-grey-light);
}
.shop-article__body {
    padding: 40px 0;
}
.shop-article__files {
    padding: 20px 24px;
    background: var(--shop-bg-soft);
}
.shop-article__files p {
    margin: 0 0 8px;
    font-weight: 700;
}
.shop-article__files ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-article__files a {
    color: var(--shop-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-article__files span {
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-article__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--shop-line-light);
}

/* FAQ */
.shop-faq {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.shop-faq__tabs {
    position: sticky;
    top: calc(var(--shop-header-height) + 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-faq__tabs a {
    display: block;
    padding: 8px 0;
    color: #666;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--shop-ease);
}
.shop-faq__tabs a:hover,
.shop-faq__tabs a.active {
    color: var(--shop-black);
    font-weight: 700;
}
.shop-faq__tabs a.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}
.shop-faq__main .shop-searchbox {
    max-width: none;
}
.shop-faq__list {
    border-top: 1px solid var(--shop-black);
}
.page-faq-item {
    border-bottom: 1px solid var(--shop-line);
}
.page-faq-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.page-faq-item__question {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}
.page-faq-item__question mark {
    background: #fff1c2;
    color: inherit;
}
.page-faq-item.active .shop-accordion__icon::after {
    transform: rotate(0);
}
.page-faq-item__content {
    display: none;
    padding: 0 0 24px;
}
.page-faq-item.is-loading .page-faq-item__header {
    opacity: 0.6;
}
.shop-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 80px;
    padding: 40px 48px;
    background: var(--shop-bg-soft);
}
.shop-cta__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}
.shop-cta__desc {
    margin: 8px 0 0;
    color: var(--shop-grey);
}

/* 약관 */
.shop-terms__tabs {
    margin-bottom: 32px;
}
.shop-terms {
    max-width: 1100px;
}

/* Q&A */
.shop-qna {
    max-width: 900px;
    margin: 16px auto 0;
}
.shop-qna > .shop-checkout-section__title {
    text-align: center;
}
.shop-qna__submit {
    display: flex;
    justify-content: flex-end;
}
.shop-dropdown {
    position: relative;
}
.shop-dropdown__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--shop-line);
    background: #fff;
    color: #9a9a9a;
    font-size: 15px;
    text-align: left;
}
.shop-dropdown.has-value .shop-dropdown__title {
    color: var(--shop-black);
}
.shop-dropdown__title svg {
    flex: 0 0 auto;
    color: var(--shop-black);
    transition: transform var(--shop-ease);
}
.shop-dropdown.is-open .shop-dropdown__title {
    border-color: var(--shop-black);
}
.shop-dropdown.is-open .shop-dropdown__title svg {
    transform: rotate(180deg);
}
.shop-dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.shop-dropdown.is-open .shop-dropdown__menu {
    display: block;
}
.shop-dropdown__option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 15px;
    text-align: left;
}
.shop-dropdown__option:hover,
.shop-dropdown__option.is-selected {
    color: var(--shop-green);
    font-weight: 700;
}

.shop-check a {
    color: var(--shop-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 라디오 */
.shop-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-height: 48px;
    align-items: center;
}
.shop-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.shop-radio input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--shop-green);
    cursor: pointer;
}

/* 파일 첨부 */
.shop-upload {
    display: flex;
    gap: 8px;
}
.shop-upload__zone {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    border: 1px dashed var(--shop-line);
    background: #fff;
    color: var(--shop-grey);
    font-size: 15px;
    text-align: left;
}
.shop-upload__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-upload__text.has-file {
    color: var(--shop-black);
}
.shop-upload__button {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 20px;
}
.shop-upload__input {
    display: none;
}
.shop-upload,
.shop-choice-list {
    flex-wrap: wrap;
}
.shop-upload .just-validate-error-label,
.shop-choice-list .just-validate-error-label {
    flex-basis: 100%;
    margin-top: 0;
}
/* 여러 장 파일 첨부(app.js data-multi-upload): 선택한 사진을 미리보기로 쌓고 개별 삭제할 수 있다 */
.shop-upload__previews {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-upload__previews:empty {
    display: none;
}
.shop-upload__preview {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--shop-line-light);
    background: var(--shop-bg-soft);
}
.shop-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-upload__preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* 환불 신청 팝업: 환불 상품 선택 */
.shop-refund-items {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--shop-black);
    list-style: none;
}
/* 환불 상품: 1줄째 상품명(한 줄, 넘치면 말줄임), 2줄째 수량·금액(우측 정렬) */
.shop-refund-items__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-refund-items__item .shop-check {
    width: 100%;
    min-width: 0;
}
.shop-refund-items__item.is-disabled {
    color: var(--shop-grey-light);
}
.shop-refund-items__item.is-disabled .shop-check {
    cursor: default;
}
.shop-refund-items__name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.shop-refund-items__amount {
    flex: 0 0 auto;
    font-weight: 600;
    text-align: right;
}
.shop-refund-items__requested {
    margin-right: auto;
    color: var(--shop-grey-light);
    font-size: 13px;
}
.shop-refund-items__side {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}
.shop-refund-items__side .shop-refund-items__amount {
    min-width: 88px;
}
.shop-select.shop-refund-items__qty {
    width: 96px;
    height: 40px;
    padding: 0 36px 0 12px;
    background-position: right 10px center;
    font-size: 14px;
}
.shop-select.shop-refund-items__qty:disabled {
    color: var(--shop-grey-light);
    background-color: var(--shop-line-light);
    cursor: default;
}
.shop-refund-items__total {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 0;
    font-weight: 600;
}
.shop-refund-items__total strong {
    color: var(--shop-green);
}
#orderRefundItems + .just-validate-error-label {
    margin-top: 8px;
}

/* 주문 상세: 환불 신청 이력 */
.shop-refund-history {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-refund-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-refund-history__date strong {
    color: var(--shop-black);
}
.shop-refund-history__product {
    display: block;
}
.shop-refund-history__images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-refund-history__images a {
    display: block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--shop-line-light);
}
.shop-refund-history__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-refund-history__timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-refund-history__step {
    position: relative;
    padding-left: 16px;
}
.shop-refund-history__step::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--shop-green);
    content: "";
}
.shop-refund-history__step-head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
}
.shop-refund-history__step-head span {
    color: var(--shop-grey-light);
    font-size: 13px;
}
.shop-refund-history__step-answer {
    display: block;
    margin-top: 4px;
    color: var(--shop-grey);
    white-space: pre-line;
}

/* 폼 요소 샘플 페이지 */
.shop-sample-form__group + .shop-sample-form__group {
    margin-top: 48px;
}
.shop-sample-form__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-sample-form__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--shop-line-light);
}

/* ==========================================================================
   공용 레이어(알림창·공지 팝업·스크롤 버튼·주소 검색)
   ========================================================================== */
.swal2-container {
    z-index: 1300 !important;
}
.swal2-popup {
    padding: 32px 24px 24px !important;
    border-radius: 0 !important;
    font-family: var(--shop-font) !important;
}
.swal2-html-container {
    margin: 0 !important;
    color: var(--shop-black) !important;
    font-size: 16px !important;
    white-space: pre-line;
}
.swal-btn-primary,
.swal-btn-danger,
.swal-btn-cancel {
    min-width: 110px;
    padding: 10px 24px !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.swal-btn-primary { background: var(--shop-green) !important; color: #fff !important; }
.swal-btn-danger { background: var(--shop-red) !important; color: #fff !important; }
.swal-btn-cancel { border: 1px solid var(--shop-black) !important; background: #fff !important; color: var(--shop-black) !important; }

.user-scrollnav {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.user-scrollnav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    background: var(--shop-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(58, 81, 48, 0.3);
    transition: transform 0.2s ease, background-color var(--shop-ease);
}
.user-scrollnav__link:hover {
    background: var(--shop-green-dark);
    color: #fff;
    transform: translateY(-2px);
}
.user-scrollnav__inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 24px;
    border: 2px solid #fff;
    border-radius: 26px;
    background: var(--shop-black);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    animation: user-scrollnav-inquiry-pulse 2s ease-out infinite;
    transition: transform 0.2s ease;
}
.user-scrollnav__inquiry svg {
    width: 20px;
    height: 20px;
}
.user-scrollnav__inquiry:hover {
    color: #fff;
    transform: translateY(-2px);
    animation-play-state: paused;
}
@keyframes user-scrollnav-inquiry-pulse {
    0% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(0, 0, 0, 0.45); }
    70% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .user-scrollnav__inquiry { animation: none; }
}
.user-scrollnav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--shop-black);
    border-radius: 50%;
    background: #fff;
    color: var(--shop-black);
    transition: background-color var(--shop-ease), color var(--shop-ease);
}
.user-scrollnav__btn:hover {
    background: var(--shop-black);
    color: #fff;
}

.user-popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.user-popup.is-open {
    display: flex;
}
.user-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.user-popup__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
}
.user-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}
.user-popup__image img {
    display: block;
    width: 100%;
}
.user-popup__footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--shop-line-light);
    background: #fff;
}
.user-popup__hide-today,
.user-popup__close-text {
    padding: 12px 16px;
    border: 0;
    background: none;
    color: var(--shop-black);
    font-size: 14px;
}

.user-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.user-modal.is-open {
    display: flex;
}
.user-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.user-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    background: #fff;
}
.user-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--shop-line-light);
}
.user-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}
.user-modal__close {
    display: flex;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--shop-black);
}
.user-modal__body {
    flex: 1;
    overflow: auto;
}
.user-modal__address-layer {
    height: 480px;
}
/* 주소 검색 팝업: 다음 우편번호 화면 폭(약 500px)에 맞춰 너비를 줄여 우측 여백을 없애고, 높이는 화면 안에서 최대 640px까지 키운다 */
.user-modal--address .user-modal__dialog {
    max-width: 500px;
}
.user-modal--address .user-modal__address-layer {
    height: min(640px, calc(100vh - 120px));
}
.user-modal__address-layer iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .shop-faq { grid-template-columns: 1fr; gap: 20px; }
    .shop-faq__tabs { position: static; display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--shop-line); }
    .shop-faq__tabs a { padding: 0 0 10px; font-size: 16px; }
}
@media (max-width: 767px) {
    .shop-content-page { padding-bottom: 60px; }
    .shop-titlehead { padding-bottom: 24px; }
    .shop-titlehead__breadcrumb { margin-bottom: 20px; }
    .shop-titlehead__title { font-size: 28px; }
    .shop-board__link { flex-wrap: wrap; gap: 6px 10px; padding: 16px 4px; }
    .shop-board__title { flex-basis: 100%; order: 2; white-space: normal; }
    .shop-board__date { order: 3; }
    .shop-article__head { flex-direction: column; gap: 8px; }
    .shop-article__title { font-size: 20px; }
    .shop-article__nav .shop-btn { min-width: 0; flex: 1; }
    .page-faq-item__header { font-size: 16px; padding: 18px 0; }
    .shop-cta { flex-direction: column; align-items: flex-start; padding: 28px 20px; margin-top: 56px; }
    .shop-cta__title { font-size: 20px; }
    .user-scrollnav { right: 12px; bottom: 12px; }
    .user-scrollnav__btn { width: 40px; height: 40px; }
    .user-scrollnav__link { height: 40px; padding: 0 16px; font-size: 13px; }
    .user-scrollnav__inquiry { height: 46px; padding: 0 18px; font-size: 14px; }
    .user-modal__address-layer { height: 420px; }
    .user-modal--address .user-modal__address-layer { height: min(560px, calc(100vh - 110px)); }
}

/* ==========================================================================
   오류 페이지(404·419·500)
   ========================================================================== */
.page-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 20px;
    text-align: center;
}
.page-error__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
}
.page-error__code {
    color: var(--shop-green);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
}
.page-error__title {
    margin: 24px 0 0;
    font-size: 32px;
    font-weight: 700;
    word-break: keep-all;
}
.page-error__subtitle {
    margin-top: 8px;
    color: var(--shop-grey-light);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.page-error__description {
    margin: 16px 0 0;
    color: var(--shop-grey);
    word-break: keep-all;
}
.page-error__button {
    margin-top: 32px;
}
@media (max-width: 767px) {
    .page-error__code { font-size: 84px; }
    .page-error__title { font-size: 24px; }
}

/* ---------- 스크롤 등장 애니메이션 ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .shop-topbar__item {
        transition: none;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- 반응형: 태블릿 이하(메뉴 → 서랍) ---------- */
@media (max-width: 1199px) {
    :root {
        --shop-gutter: 20px;
        --shop-header-height: 60px;
    }
    .shop-header__inner {
        gap: 16px;
    }
    .shop-header__hamburger {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        grid-column: 1;
    }
    .shop-nav {
        display: none;
    }
    .shop-header__logo {
        max-width: 130px;
    }
    .shop-header__icons {
        gap: 20px;
    }
    .shop-section {
        padding: 72px 0;
    }
    .shop-section__title {
        font-size: 32px;
    }
    .shop-footer__main {
        flex-wrap: wrap;
        gap: 40px 24px;
    }
    .shop-footer__col--brand,
    .shop-footer__col--contact,
    .shop-footer__col--links {
        width: calc(33.333% - 16px);
    }
    .shop-footer__col--business {
        width: 100%;
        max-width: none;
    }
}

/* ---------- 반응형: 모바일 ---------- */
@media (max-width: 767px) {
    :root {
        --shop-gutter: 16px;
    }
    .shop-newsletter__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .shop-newsletter__title {
        font-size: 22px;
    }
    .shop-newsletter__desc {
        font-size: 14px;
    }
    .shop-newsletter__form {
        flex-basis: auto;
    }
    .shop-topbar__text {
        height: 44px;
        font-size: 13px;
        line-height: 20px;
    }
    .shop-header__icons {
        gap: 16px;
    }
    .shop-account,
    .shop-header__icon--wishlist {
        display: none;
    }
    .shop-account__menu {
        right: -60px;
    }
    .shop-section {
        padding: 56px 0;
    }
    .shop-section__head {
        margin-bottom: 28px;
    }
    .shop-section__title {
        font-size: 26px;
    }
    .shop-btn {
        min-width: 120px;
        font-size: 15px;
    }
    .shop-footer__main {
        flex-direction: column;
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 32px;
    }
    .shop-footer__col--brand,
    .shop-footer__col--contact,
    .shop-footer__col--links,
    .shop-footer__col--business {
        width: 100%;
    }
    .shop-footer__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 0;
    }
    .shop-footer__toggle svg {
        display: block;
        transition: transform var(--shop-ease);
    }
    .shop-footer__col--links.is-open .shop-footer__toggle svg {
        transform: rotate(180deg);
    }
    .shop-footer__links {
        display: none;
        padding-top: 16px;
    }
    .shop-footer__col--links.is-open .shop-footer__links {
        display: block;
    }
    .shop-footer__heading--large {
        font-size: 22px;
    }
}

/* ==========================================================================
   상품 리뷰(상품 상세 리뷰 탭 · 마이페이지 리뷰)
   ========================================================================== */
.shop-review-stars,
.shop-review-rating {
    display: inline-flex;
    align-items: center;
}
.shop-review-star {
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4.2165L11.3078 7.80385L11.404 8.06759L11.6845 8.07754L15.5004 8.2128L12.4928 10.5652L12.2717 10.7381L12.3489 11.008L13.3995 14.679L10.2328 12.5454L10 12.3886L9.76718 12.5454L6.60054 14.679L7.65108 11.008L7.72832 10.7381L7.50719 10.5652L4.49956 8.2128L8.31547 8.07754L8.59602 8.06759L8.69218 7.80385L10 4.2165Z' stroke='black' stroke-width='0.833333'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.shop-review-star.is-on {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L11.6993 7.66113L16.6574 7.83688L12.7495 10.8934L14.1145 15.6631L10 12.891L5.8855 15.6631L7.2505 10.8934L3.3426 7.83688L8.30071 7.66113L10 3Z' fill='black'/%3E%3C/svg%3E");
}
.shop-review-star.is-half {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.0002 3.00009L10.0002 3L8.30088 7.66113L3.34277 7.83688L7.25066 10.8934L5.88567 15.6631L10.0002 12.891L10.0002 12.891V3.00009Z' fill='black'/%3E%3Cpath d='M10 4.2165L11.3078 7.80385L11.404 8.06759L11.6845 8.07754L15.5004 8.2128L12.4928 10.5652L12.2717 10.7381L12.3489 11.008L13.3995 14.679L10.2328 12.5454L10 12.3886L9.76718 12.5454L6.60054 14.679L7.65108 11.008L7.72832 10.7381L7.50719 10.5652L4.49956 8.2128L8.31547 8.07754L8.59602 8.06759L8.69218 7.80385L10 4.2165Z' stroke='black' stroke-width='0.833333'/%3E%3C/svg%3E");
}
/* 별점 선택(작성 폼) */
.shop-review-rating {
    flex-wrap: wrap;
}
.shop-review-rating .shop-review-star {
    width: 44px;
    height: 44px;
    cursor: pointer;
}
.shop-review-rating .just-validate-error-label {
    flex: 0 0 100%;
}
.shop-review-form__saved-images {
    margin-bottom: 8px;
}
.shop-review-form__saved-images[hidden] {
    display: none;
}

/* 리뷰 사진: 정사각형 썸네일을 한 줄에 이어 놓고, 누르면 레이어로 크게 본다 */
.shop-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.shop-review-images__item {
    display: block;
    padding: 0;
    border: 0;
    background: var(--shop-bg-soft);
    cursor: zoom-in;
}
.shop-review-images__item img {
    display: block;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}
.shop-review-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.shop-review-actions form {
    margin: 0;
}
.shop-review-actions .shop-btn {
    min-width: 0;
    padding: 6px 16px;
    font-size: 14px;
}

/* 상품 상세 리뷰 탭 */
.shop-product-reviews__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 44px 0 28px;
}
.shop-product-reviews__title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}
.shop-product-reviews__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--shop-grey);
    font-size: 14px;
}
.shop-product-reviews__form {
    margin-bottom: 28px;
    padding: 28px 0;
    border-top: 1px solid var(--shop-line-light);
}
.shop-product-reviews__form[hidden] {
    display: none;
}
.shop-product-reviews__form-actions {
    display: flex;
    gap: 12px;
}
.shop-product-reviews__form-actions .shop-btn {
    min-width: 200px;
}
.shop-product-reviews__list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.shop-product-review {
    padding: 24px 0;
    border-top: 1px solid var(--shop-line-light);
}
/* 별점 아래에 작성자, 오른쪽에 작성일(spub 리뷰 목록 배치) */
.shop-product-review__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.shop-product-review__author .shop-review-stars {
    display: flex;
}
.shop-product-review__name {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}
.shop-product-review__date {
    color: var(--shop-grey);
    font-size: 14px;
    line-height: normal;
}
.shop-product-review__body {
    margin: 12px 0 0;
    word-break: break-all;
}

/* 마이페이지 리뷰 */
.shop-customer-review + .shop-customer-review {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 4px solid rgba(106, 120, 99, 0.06);
}
.shop-customer-review__entry + .shop-customer-review__entry {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--shop-line-light);
}
.shop-customer-review__entry .shop-review-actions {
    margin-top: 12px;
}
.shop-customer-review__head {
    display: flex;
    align-items: center;
}
.shop-customer-review__head .shop-review-star {
    width: 24px;
    height: 24px;
}
.shop-customer-review__date {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--shop-line-light);
    color: var(--shop-grey);
    font-size: 14px;
    line-height: 1.2;
}
.shop-customer-review__pending {
    display: inline-block;
    padding: 4px 10px;
    background: var(--shop-bg-soft);
    color: var(--shop-grey);
    font-size: 14px;
    font-weight: 600;
}
.shop-customer-review__body {
    margin: 8px 0 0;
    word-break: break-all;
}
/* 카드 맨 위: 리뷰를 쓴 상품, 아래 줄과 구분선 */
.shop-customer-review__product {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--shop-line-light);
}
.shop-customer-review__order {
    color: var(--shop-grey);
    font-size: 13px;
}
.shop-customer-review__order a {
    color: inherit;
}
.shop-customer-review__thumb {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    background: var(--shop-bg-soft);
}
.shop-customer-review__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-customer-review__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.shop-customer-review__name {
    color: var(--shop-black);
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
}
.shop-customer-review__option {
    color: var(--shop-grey);
    font-size: 14px;
}

@media (max-width: 767px) {
    .shop-product__review {
        margin-top: 8px;
    }
    .shop-mypage__head--row .shop-sort__select {
        min-width: 0;
    }
    .shop-review-images__item img {
        width: calc(50vw - 33px);
        max-width: 240px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .shop-review-rating .shop-review-star {
        width: 36px;
        height: 36px;
    }
    .shop-product-reviews__head {
        flex-direction: column;
        align-items: stretch;
        margin: 0 0 24px;
    }
    .shop-product-review__meta {
        justify-content: flex-start;
        gap: 0;
    }
    .shop-product-review__date {
        height: 20px;
        margin-left: 6px;
        padding-left: 6px;
        border-left: 1px solid var(--shop-line-light);
        font-size: 12px;
        line-height: 20px;
    }
    .shop-product-reviews__form-actions .shop-btn {
        flex: 1;
        min-width: 0;
    }
    .shop-customer-review__date {
        font-size: 12px;
    }
    .shop-customer-review__thumb {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }
    .shop-customer-review__name {
        font-size: 16px;
    }
}
