@charset "utf-8";

:root {
    /* 컬러 */
    /* bg */
    --bg-canvas: #F8F7F4;
    --bg-soft: #F9F5F0;
    --bg-muted: #EDE8DA;
    --bg-image-placeholder: #E9E5DD;
    --bg-inverse: #33312E;

    /* text */
    --text-primary: #33312E;
    --text-strong: #252525;
    --text-secondary: #605C57;
    --text-muted: #78736D;
    --text-disabled: #A3A196;
    --text-inverse: #F8F7F4;
    --text-error: #8A4A3C;

    /* border */
    --border-subtle: #DEDAD4;
    --border-default: #C9C3BA;
    --border-strong: #33312E;

    /* action */
    --action-primary: #33312E;
    --action-primary-hover: #423A36;
    --action-disabled: #DEDAD4;

    /* status */
    --status-error: #8A4A3C;
    --status-success: #5F6A52;

    /* icon */
    --icon-primary: #33312E;
    --icon-muted: #78736D;

    /* overlay */
    --overlay-scrim: rgba(37, 37, 37, 0.42);
    --overlay-scrim-hover: rgba(37, 37, 37, 0.62);

    /* 메인 시안 토큰 */
    --bg-surface-white: #FFFFFF;
    --bg-selected: #EFECE6;
    --text-on-image: #FFFFFF;
    --border-link-strong: #000000;

    /* 알파용 RGB */
    --rgb-white: 255 255 255;
    --rgb-black: 0 0 0;

    /* 폰트 패밀리 */
    --font-family: 'Noto Sans', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-serif: 'forevs', 'Times New Roman', serif;

    /* type */
    --type-display-hero-size: clamp(2.25rem, 1.61rem + 2.61vw, 4.75rem);
    --type-display-hero-line: clamp(2.75rem, 2.11rem + 2.61vw, 5.25rem);
    --type-display-section-size: clamp(1.875rem, 1.524rem + 1.438vw, 3.25rem);
    --type-display-section-line: clamp(2.375rem, 2.024rem + 1.438vw, 3.75rem);
    --type-display-subsection-size: clamp(1.5rem, 1.341rem + 0.654vw, 2.125rem);
    --type-display-subsection-line: clamp(2rem, 1.841rem + 0.654vw, 2.625rem);
    --type-display-small-size: clamp(1.25rem, 1.186rem + 0.261vw, 1.5rem);
    --type-display-small-line: clamp(1.75rem, 1.686rem + 0.261vw, 2rem);
    --type-editorial-lead-kr-size: clamp(1rem, 0.94rem + 0.26vw, 1.25rem);
    --type-editorial-lead-kr-line: clamp(1.75rem, 1.623rem + 0.523vw, 2.25rem);
    --type-editorial-quote-kr-size: clamp(1.25rem, 1.091rem + 0.654vw, 1.875rem);
    --type-editorial-quote-kr-line: clamp(2rem, 1.745rem + 1.046vw, 3rem);
    --type-heading-kr-small-size: 1.25rem;
    --type-heading-kr-small-line: 1.5;

    /* type 메인 */
    --type-hero-title-size: 4rem;
    --type-hero-title-line: 0.906;
    --type-section-title-size: 2.625rem;
    --type-section-title-line: 1.095;

    /* 본문 글자 크기 */
    --fs-28: 1.75rem;
    --fs-16: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
    --fs-15: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
    --fs-14: 0.875rem;
    --fs-13: 0.8125rem;
    --fs-12: 0.75rem;
    --fs-9: 0.5625rem;

    /* space */
    --space-160: clamp(5rem, 3rem + 6vw, 10rem);
    --space-120: clamp(4rem, 2.5rem + 4.5vw, 7.5rem);
    --space-80: clamp(3rem, 2rem + 3vw, 5rem);
    --space-64: clamp(2.5rem, 1.8rem + 2vw, 4rem);
    --space-48: clamp(2rem, 1.6rem + 1.2vw, 3rem);
    --space-40: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
    --space-32: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
    --space-24: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --space-20: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    --space-16: 1rem;
    --space-12: 0.75rem;
    --space-8: 0.5rem;
    --space-4: 0.25rem;

    /* 컴포넌트 크기 */
    --size-56: 3.5rem;
    --size-48: 3rem;
    --size-44: 2.75rem;
    --size-40: 2.5rem;

    /* 기타 */
    --top-banner-height: 40px;
    --header-height: 80px;
    --radius: 0;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 유틸 */
.text-secondary {color: var(--text-secondary) !important;}
.text-muted {color: var(--text-muted) !important;}
.text-error {color: var(--text-error) !important;}
.weight400 {font-weight: 400 !important;}
.weight500 {font-weight: 500 !important;}

/* 타이포그래피 */
.display-hero {font-family: var(--font-serif); font-size: var(--type-display-hero-size); font-weight: 300; line-height: var(--type-display-hero-line);}
.display-section {font-family: var(--font-serif); font-size: var(--type-display-section-size); font-weight: 300; line-height: var(--type-display-section-line);}
.display-subsection {font-family: var(--font-serif); font-size: var(--type-display-subsection-size); font-weight: 300; line-height: var(--type-display-subsection-line);}
.display-small {font-family: var(--font-serif); font-size: var(--type-display-small-size); font-weight: 300; line-height: var(--type-display-small-line);}
.hero-title {font-family: var(--font-serif); font-size: var(--type-hero-title-size); font-weight: 300; line-height: var(--type-hero-title-line);}
.section-title {font-family: var(--font-serif); font-size: var(--type-section-title-size); font-weight: 300; line-height: var(--type-section-title-line);}
.editorial-lead-kr {font-size: var(--type-editorial-lead-kr-size); font-weight: 300; line-height: var(--type-editorial-lead-kr-line);}
.editorial-quote-kr {font-size: var(--type-editorial-quote-kr-size); font-weight: 300; line-height: var(--type-editorial-quote-kr-line);}
.heading-kr-large {font-size: var(--fs-28); font-weight: 500; line-height: 1.357;}
.heading-kr-small {font-size: var(--type-heading-kr-small-size); font-weight: 500; line-height: var(--type-heading-kr-small-line);}
.body-large {font-size: var(--fs-16); font-weight: 400; line-height: 1.75;}
.body-default {font-size: var(--fs-15); font-weight: 400; line-height: 1.733;}
.body-small {font-size: var(--fs-14); font-weight: 400; line-height: 1.571;}
.product-title {font-size: var(--fs-15); font-weight: 400; line-height: 1.467;}
.product-price {font-size: var(--fs-14); font-weight: 400; line-height: 1.429;}
.ui-nav {font-size: var(--fs-14); font-weight: 400; line-height: 1.429;}
.ui-button {font-size: var(--fs-14); font-weight: 500; line-height: 1.429; letter-spacing: 0.02em;}
.ui-label {font-size: var(--fs-12); font-weight: 500; line-height: 1.333; letter-spacing: 0.08em; text-transform: uppercase;}
.caption-default {font-size: var(--fs-13); font-weight: 400; line-height: 1.538;}
.caption-small {font-size: var(--fs-12); font-weight: 400; line-height: 1.5;}

/* 버튼 */
.square-btn {display: inline-flex; align-items: center; justify-content: center; column-gap: var(--space-8); min-width: 280px; height: var(--size-56); padding-inline: var(--space-24); border: 1px solid transparent; font-size: var(--fs-14); font-weight: 500; line-height: 1.429; letter-spacing: 0.02em; white-space: nowrap; transition: background-color 0.2s, color 0.2s, border-color 0.2s;}
.square-btn.small {min-width: 0; height: var(--size-40); padding-inline: var(--space-16); font-size: var(--fs-13); font-weight: 400; line-height: 1.538; letter-spacing: 0;}
.square-btn.full {width: 100%; min-width: 0;}
.square-btn.field {min-width: 0; height: var(--size-48);}
.square-btn img {flex: none; width: 20px; height: 20px;}
.main-btn {background-color: var(--action-primary); color: var(--text-inverse);}
.line-btn {border-color: var(--border-strong); background-color: transparent; color: var(--text-primary);}
.line-btn.small {border-color: var(--border-default);}
.main-btn:disabled, .main-btn.disabled {background-color: var(--action-disabled); color: var(--text-disabled); pointer-events: none;}
.line-btn:disabled, .line-btn.disabled {border-color: var(--border-subtle); color: var(--text-disabled); pointer-events: none;}
.txt-btn {display: inline-flex; align-items: center; column-gap: 6px; min-height: var(--size-44); color: var(--text-primary); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 0.2s;}
.txt-btn img {flex: none; width: 14px; height: 14px;}
.txt-btn:disabled, .txt-btn.disabled {color: var(--text-disabled); pointer-events: none;}
.ico-btn {position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: var(--size-44); height: var(--size-44); transition: opacity 0.2s;}
.ico-btn img {width: 24px; height: 24px;}
.ico-btn:disabled, .ico-btn.disabled {opacity: 0.3; pointer-events: none;}
.close-btn {width: var(--size-48); height: var(--size-48);}
.close-btn img {width: 20px; height: 20px;}
.btn-list {display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap;}

/* 텍스트 링크 */
.text-link {position: relative; display: inline-flex; align-items: center; column-gap: 10px; border-bottom: 1px solid var(--border-link-strong); font-size: var(--fs-14); line-height: 1.571; color: var(--text-primary); white-space: nowrap; transition: opacity 0.2s;}
.text-link::before {content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--size-44);}
.text-link::after {content: ''; flex: none; width: 5px; height: 8px; background: url(../img/link-arrow-ico.svg) center / contain no-repeat; transition: transform 0.2s;}
.text-link.large {font-size: var(--fs-16); line-height: 1.75;}
.text-link.white {border-color: var(--text-on-image); color: var(--text-on-image);}
.text-link.white::after {filter: brightness(0) invert(1);}

/* 구분선 */
.divider {height: 1px; border: 0; background-color: var(--border-subtle);}

/* 탭 */
.tab-list {display: flex; column-gap: var(--space-24);}
.tab-list .tab {position: relative; padding: var(--space-12) var(--space-4); font-size: var(--fs-14); line-height: 1.429; color: var(--text-muted); white-space: nowrap; transition: color 0.2s;}
.tab-list .tab::after {content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-color: var(--border-strong); transform: scaleX(0); transition: transform 0.3s var(--ease-out);}
.tab-list .tab.active {color: var(--text-primary);}
.tab-list .tab.active::after {transform: scaleX(1);}
.tab-content {display: none; padding-top: var(--space-40);}
.tab-content.active {display: block;}

/* 가로 탭 스와이퍼 */
.tab-swiper.swiper.swiper-initialized {overflow: hidden; user-select: none;}
.tab-swiper .swiper-slide {width: auto; height: auto;}

/* 브레드크럼 */
.breadcrumb ol {display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8);}
.breadcrumb li {display: flex; align-items: center; column-gap: var(--space-8); font-size: var(--fs-13); line-height: 1.538; color: var(--text-muted);}
.breadcrumb li + li::before {content: ''; width: 16px; height: 16px; background: url(../img/chevron-right-ico.svg) center / contain no-repeat;}
.breadcrumb a {transition: color 0.2s;}
.breadcrumb [aria-current="page"] {color: var(--text-primary);}

/* 페이지네이션 */
.pagination {display: flex; align-items: center; justify-content: center; column-gap: var(--space-4); margin-top: var(--space-48);}
.pagination .pagination-list {display: flex; align-items: center; column-gap: var(--space-4);}
.pagination .pagination-num, .pagination .pagination-arrow {display: flex; align-items: center; justify-content: center; width: var(--size-40); height: var(--size-40); font-size: var(--fs-14); line-height: 1.429; color: var(--text-muted); transition: color 0.2s;}
.pagination .pagination-num[aria-current="page"] {border-bottom: 1px solid var(--border-strong); color: var(--text-primary);}
.pagination .pagination-arrow img {width: 24px; height: 24px;}
.pagination .pagination-arrow.disabled {opacity: 0.3; pointer-events: none;}

/* 폼 */
.input-item {display: flex; flex-direction: column; align-items: flex-start; row-gap: var(--space-8);}
.input-item + .input-item {margin-top: var(--space-24);}
.input-item-label {font-size: var(--fs-13); line-height: 1.538; color: var(--text-primary);}
.input-item-label.req::after {content: '*'; margin-left: 2px; color: var(--text-error);}
.custom-input, .custom-select, .custom-textarea {width: 100%; height: var(--size-48); padding: 0 var(--space-16); border: 1px solid var(--border-default); border-radius: var(--radius); background-color: transparent; font-size: max(1rem, var(--fs-14)); line-height: 1.571; color: var(--text-primary); outline: none; transition: border-color 0.2s, box-shadow 0.2s;}
.custom-textarea {display: block; height: 140px; padding: var(--space-12) var(--space-16); resize: none;}
.custom-input::placeholder, .custom-textarea::placeholder {color: var(--text-muted);}
.custom-input:focus, .custom-select:focus, .custom-textarea:focus {border-color: var(--border-strong); box-shadow: inset 0 0 0 1px var(--border-strong);}
.custom-input.error, .custom-select.error, .custom-textarea.error, [aria-invalid="true"] {border-color: var(--status-error);}
.custom-input:disabled, .custom-select:disabled, .custom-textarea:disabled {border-color: var(--border-subtle); color: var(--text-disabled);}
.custom-select {appearance: none; padding-right: calc(var(--space-16) + 32px); background: url(../img/chevron-down-ico.svg) right var(--space-16) center / 24px no-repeat; cursor: pointer;}
.input-helper {display: flex; justify-content: space-between; width: 100%; font-size: var(--fs-12); line-height: 1.5; color: var(--text-muted);}
.input-helper.error {color: var(--text-error);}

/* 검색 필드 */
.search-field {display: flex; align-items: center; column-gap: 2px; width: 100%; height: var(--size-56); padding: 0 var(--space-8) 0 14px; border: 1px solid var(--border-default); transition: border-color 0.2s;}
.search-field:focus-within {border-color: var(--border-strong);}
.search-field input {flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; font-size: max(1rem, var(--fs-14)); line-height: 1.571; color: var(--text-primary); outline: none;}
.search-field input::placeholder {color: var(--text-muted);}
.search-field input::-webkit-search-cancel-button {-webkit-appearance: none;}

/* 검증 메시지 */
.valid-msg {display: flex; align-items: flex-start; column-gap: 6px; font-size: var(--fs-13); line-height: 1.538; color: var(--text-secondary);}
.valid-msg::before {content: ''; flex: none; width: 16px; height: 16px; margin-top: 2px; background-color: currentColor; -webkit-mask: var(--valid-ico) center / contain no-repeat; mask: var(--valid-ico) center / contain no-repeat;}
.valid-msg.error {--valid-ico: url(../img/alert-ico.svg); color: var(--text-error);}
.valid-msg.info {--valid-ico: url(../img/info-ico.svg);}
.valid-msg.success {--valid-ico: url(../img/check-ico.svg);}

/* 체크박스 · 라디오 */
.check-list {display: flex; flex-wrap: wrap; column-gap: var(--space-24);}
.check-item {display: inline-flex; align-items: center; column-gap: var(--space-8);}
.check-item label {font-size: var(--fs-14); line-height: 1.571; color: var(--text-primary); cursor: pointer;}
.custom-checkbox, .custom-radio {appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--border-default); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;}
.custom-checkbox {background: var(--bg-surface-white) center / 16px no-repeat;}
.custom-checkbox:checked {border-color: var(--action-primary); background-color: var(--action-primary); background-image: url(../img/check-white-ico.svg);}
.custom-radio {border-radius: 50%; background-color: var(--bg-canvas);}
.custom-radio:checked {border-color: var(--border-strong); box-shadow: inset 0 0 0 4px var(--bg-canvas); background-color: var(--action-primary);}
.custom-checkbox:disabled, .custom-radio:disabled {border-color: var(--border-subtle); background-color: var(--border-subtle); cursor: default;}
.custom-checkbox:disabled + label, .custom-radio:disabled + label {color: var(--text-disabled);}

/* 수량 선택 */
.qty-selector {display: inline-flex; align-items: center; justify-content: space-between; width: 120px; height: var(--size-40); padding-inline: 2px; border: 1px solid var(--border-default); border-radius: var(--radius-full);}
.qty-selector .qty-btn {display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; transition: opacity 0.2s;}
.qty-selector .qty-btn img {width: 18px; height: 18px;}
.qty-selector .qty-btn:disabled {opacity: 0.3; cursor: default;}
.qty-selector input {width: 36px; border: 0; background: none; font-size: var(--fs-14); line-height: 1.571; color: var(--text-primary); text-align: center; outline: none; -moz-appearance: textfield;}
.qty-selector input::-webkit-inner-spin-button, .qty-selector input::-webkit-outer-spin-button {-webkit-appearance: none;}

/* 드롭다운 */
.custom-dropdown {position: relative;}
.custom-dropdown-btn {display: flex; align-items: center; column-gap: 6px; min-height: var(--size-44); color: var(--text-primary);}
.custom-dropdown-btn img {flex: none; width: 16px; height: 16px; transition: transform 0.2s;}
.custom-dropdown-btn[aria-expanded="true"] img {transform: rotate(180deg);}
.custom-dropdown-menu {position: absolute; top: 100%; left: 0; z-index: 10; min-width: 100%; padding-top: var(--space-8); border: 1px solid var(--border-subtle); background-color: var(--bg-canvas); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;}
.custom-dropdown.open .custom-dropdown-menu {opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.2s, transform 0.2s, visibility 0s;}
.custom-dropdown-option {display: flex; align-items: center; column-gap: var(--space-12); width: 100%; padding: var(--space-12) var(--space-20); font-size: var(--fs-14); line-height: 1.429; color: var(--text-primary); text-align: left; white-space: nowrap; transition: background-color 0.2s;}
.custom-dropdown-option[aria-current="true"]::after {content: ''; flex: none; width: 16px; height: 16px; margin-left: auto; background: url(../img/check-ico.svg) center / contain no-repeat;}

/* 통화 메뉴 */
.currency-dropdown .custom-dropdown-menu {left: auto; right: 0; width: 240px;}
.currency-dropdown .custom-dropdown-option .currency-desc {flex: 1 1 auto; font-size: var(--fs-13); line-height: 1.538; color: var(--text-muted);}

/* 사이즈 옵션 */
.size-option-list {display: flex; flex-wrap: wrap; gap: var(--space-12);}
.size-option {position: relative; display: inline-flex;}
.size-option > input {position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0;}
.size-option > label {display: flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: var(--size-56); border: 1px solid var(--border-subtle); color: var(--text-primary); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;}
.size-option .size {font-size: var(--fs-14); line-height: 1.429;}
.size-option .size-uk {font-size: var(--fs-12); line-height: 1.5; color: var(--text-muted); transition: color 0.2s;}
.size-option > input:checked + label {border-color: var(--border-strong); background-color: var(--action-primary); color: var(--text-inverse);}
.size-option > input:checked + label .size-uk {color: inherit;}
.size-option > input:disabled + label, .size-option > input:disabled + label .size-uk {color: var(--text-disabled); cursor: default;}
.size-option > input:focus-visible + label {outline: 2px solid var(--action-primary); outline-offset: 2px;}
.size-option.sold-out > label, .size-option.sold-out > label .size-uk {color: var(--text-disabled);}
.size-option.sold-out > label .size {text-decoration: line-through;}
.size-option.sold-out > input:checked + label, .size-option.sold-out > input:checked + label .size-uk {color: var(--text-inverse);}

/* 컬러 스와치 */
.swatch-list {display: flex; flex-wrap: wrap; gap: var(--space-8);}
.swatch {position: relative; display: inline-flex;}
.swatch > input {position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0;}
.swatch > label {display: block; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: border-color 0.2s;}
.swatch > label::before {content: ''; display: block; width: 22px; height: 22px; margin: 4px; border-radius: 50%; background-color: var(--swatch, var(--action-primary));}
.swatch > input:checked + label {border-color: var(--border-strong);}
.swatch > input:disabled + label {opacity: 0.4; cursor: default;}
.swatch > input:focus-visible + label {outline: 2px solid var(--action-primary); outline-offset: 2px;}

/* 주문 상태 */
.status-txt {display: inline-flex; align-items: center; column-gap: var(--space-8); font-size: var(--fs-14); line-height: 1.429; color: var(--text-primary);}
.status-txt::before {content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background-color: var(--action-primary);}
.status-txt.done {color: var(--text-secondary);}
.status-txt.done::before {background-color: var(--border-default);}
.status-txt.closed {color: var(--text-muted);}
.status-txt.closed::before {background-color: var(--border-subtle);}
.status-txt.alert {color: var(--text-error);}
.status-txt.alert::before {background-color: var(--status-error);}

/* 이미지 자리 */
.img-placeholder {display: flex; flex-direction: column; row-gap: var(--space-4); aspect-ratio: 3 / 4; padding: var(--space-16); background-color: var(--bg-image-placeholder); font-size: var(--fs-12); line-height: 1.5; color: var(--text-muted);}

/* 영상 자리 */
.video-box {position: relative; width: 100%; height: 100%; overflow: hidden; background-color: var(--bg-image-placeholder);}
.video-box video, .video-box .img-placeholder {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;}
.video-box .video-ctrl {position: absolute; right: var(--space-16); bottom: var(--space-16); z-index: 1; display: flex; column-gap: var(--space-8);}
.video-box .video-ctrl .ctrl-btn {display: flex; align-items: center; justify-content: center; width: var(--size-44); height: var(--size-44); border-radius: 50%; background-color: var(--overlay-scrim); transition: background-color 0.2s;}
.video-box .video-ctrl .ctrl-btn img {width: 20px; height: 20px;}
.video-box .video-ctrl .ctrl-btn .on-ico, .video-box .video-ctrl .ctrl-btn .pause-ico {display: none;}
.video-box .video-ctrl .ctrl-btn:disabled {cursor: default;}
.video-box .video-ctrl .ctrl-btn:focus-visible {outline: 2px solid var(--text-on-image); outline-offset: -2px;}
.video-box .video-meta {position: absolute; left: var(--space-20); bottom: var(--space-20); z-index: 1; display: flex; column-gap: var(--space-16); padding: 6px var(--space-12); background-color: var(--bg-canvas); white-space: nowrap;}
.video-box .video-meta .time {color: var(--text-secondary);}
.video-box .video-meta .sound {color: var(--text-muted);}
.video-box.sound-on .video-ctrl .ctrl-btn .off-ico, .video-box.playing .video-ctrl .ctrl-btn .play-ico {display: none;}
.video-box.sound-on .video-ctrl .ctrl-btn .on-ico, .video-box.playing .video-ctrl .ctrl-btn .pause-ico {display: block;}

/* 에디토리얼 캡션 */
.editorial-caption {display: flex; align-items: flex-start; column-gap: var(--space-16);}
.editorial-caption .fig-num {flex: none; color: var(--text-muted);}
.editorial-caption .fig-txt {flex: 1 1 auto; min-width: 0; color: var(--text-secondary);}

/* 인용문 */
.pull-quote {display: flex; flex-direction: column; row-gap: var(--space-24);}
.pull-quote blockquote {color: var(--text-strong);}
.pull-quote figcaption {color: var(--text-muted);}

/* 상품 카드 */
.product-card {position: relative; display: flex; flex-direction: column; row-gap: var(--space-16);}
.product-card .img-wrap {position: relative; display: block; flex: none; aspect-ratio: 3 / 4; overflow: hidden; background-color: var(--bg-image-placeholder);}
.product-card .img-wrap img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s;}
.product-card .img-wrap .hover-img {opacity: 0;}
.product-card .img-wrap .img-placeholder {height: 100%;}
.product-card .wish-btn {position: absolute; top: 6px; right: 6px; z-index: 1; opacity: 0; transition: opacity 0.2s;}
.product-card .wish-btn[aria-pressed="true"] {opacity: 1;}
.product-card .sold-out-tag {position: absolute; left: var(--space-16); bottom: var(--space-16); padding: 6px 10px; background-color: var(--bg-canvas); color: var(--text-secondary);}
.product-card .product-info {display: flex; flex-direction: column; align-items: flex-start; row-gap: 6px;}
.product-card .product-info .ui-label {color: var(--text-muted);}
.product-card .product-info .product-title {color: var(--text-primary);}
.product-card .product-info .product-price {color: var(--text-secondary);}
.product-card .color-list {display: flex; align-items: center; column-gap: 6px; color: var(--text-muted);}
.product-card .color-list .color-dot {width: 8px; height: 8px; border-radius: 50%; background-color: var(--swatch, var(--action-primary));}
.product-card.sold-out .product-info .product-title {color: var(--text-muted);}
.product-card.sold-out .product-info .product-price {color: var(--text-disabled);}
.product-card:focus-within .wish-btn {opacity: 1;}

/* 아코디언 */
.accordion-list .accordion-item {padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-subtle);}
.accordion-list .accordion-item .accordion-tit {display: flex; align-items: center; column-gap: var(--space-16); padding: var(--space-24) 0 var(--space-12); font-size: var(--fs-15); line-height: 1.733; color: var(--text-primary); list-style: none; cursor: pointer;}
.accordion-list .accordion-item .accordion-tit::-webkit-details-marker {display: none;}
.accordion-list .accordion-item .accordion-tit::after {content: ''; flex: none; width: 24px; height: 24px; margin-left: auto; background: url(../img/plus-ico.svg) center / contain no-repeat;}
.accordion-list .accordion-item[open]:not(.closing) .accordion-tit::after {background-image: url(../img/minus-ico.svg);}
.accordion-list .accordion-item .accordion-body {padding-bottom: var(--space-12); font-size: var(--fs-14); line-height: 1.571; color: var(--text-secondary);}

/* 모달 */
.modal {position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: var(--layout-page-margin); background-color: var(--overlay-scrim);}
.modal.active {display: flex;}
.modal .modal-inner {position: relative; width: 100%; max-width: 560px; max-height: calc(84vh / var(--page-zoom)); overflow-y: auto; padding: var(--space-40); background-color: var(--bg-canvas);}
.modal .modal-inner .modal-tit {margin-bottom: var(--space-24); padding-right: var(--space-40); color: var(--text-strong);}
.modal .modal-inner .modal-close-btn {position: absolute; top: var(--space-16); right: var(--space-16);}

/* 배송 국가 선택 */
.country-modal .modal-inner {display: flex; flex-direction: column; padding: var(--space-40) var(--space-48);}
.country-modal .modal-inner .modal-head {display: flex; align-items: center; justify-content: space-between; column-gap: var(--space-16);}
.country-modal .modal-inner .modal-head .heading-kr-small {color: var(--text-strong);}
.country-modal .modal-inner .country-desc {margin-top: var(--space-12); color: var(--text-secondary);}
.country-modal .modal-inner .country-form {display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin-top: var(--space-16);}
.country-modal .modal-inner .country-form .input-item-label {color: var(--text-primary);}
.country-modal .modal-inner .country-form .custom-input::-webkit-search-cancel-button {-webkit-appearance: none;}
.country-modal .modal-inner .country-form .country-list-wrap {position: relative; flex: 0 1 344px; min-height: 120px; margin-top: var(--space-16); border: 1px solid var(--border-subtle); overflow-y: auto; overscroll-behavior: contain;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list {min-width: 0; margin: 0; padding: 0; border: 0;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item {position: relative;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item:not([hidden]) ~ .country-item {border-top: 1px solid var(--border-subtle);}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > input {position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > label {display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; column-gap: var(--space-12); min-height: 52px; padding: var(--space-12) var(--space-20); cursor: pointer; transition: background-color 0.2s;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > label::after {content: ''; width: 20px; height: 20px;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item .country-name {color: var(--text-primary);}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item .country-cur {color: var(--text-muted);}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > input:checked + label {background-color: var(--bg-selected);}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > input:checked + label::after {background: url(../img/check-ico.svg) center / contain no-repeat;}
.country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > input:focus-visible + label {outline: 2px solid var(--action-primary); outline-offset: -2px;}
.country-modal .modal-inner .country-form .country-list-wrap .country-empty {display: flex; flex-direction: column; align-items: center; row-gap: var(--space-8); padding: var(--space-48) var(--space-20); text-align: center;}
.country-modal .modal-inner .country-form .country-list-wrap .country-empty[hidden] {display: none;}
.country-modal .modal-inner .country-form .country-list-wrap .country-empty .country-empty-tit {font-weight: 500; color: var(--text-strong);}
.country-modal .modal-inner .country-form .country-list-wrap .country-empty .country-empty-desc {color: var(--text-muted);}
.country-modal .modal-inner .country-form .country-notice {margin-top: var(--space-16); color: var(--text-muted);}
.country-modal .modal-inner .country-form .square-btn {flex: none; margin-top: var(--space-16);}
.country-confirm-modal {z-index: 310;}
.country-confirm-modal .modal-inner {max-width: 480px;}
.country-confirm-modal .modal-inner .country-confirm-txt {font-weight: 500; color: var(--text-primary); word-break: keep-all;}
.country-confirm-modal .modal-inner .btn-list {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-24);}
.country-confirm-modal .modal-inner .btn-list .square-btn {min-width: 0;}
.country-confirm-modal .modal-inner .btn-list .line-btn {background-color: var(--bg-surface-white);}

/* 주문 목록 */
.order-list {display: flex; flex-direction: column; row-gap: var(--space-32);}

/* 주문 헤더 */
.order-head {display: flex; align-items: center; column-gap: var(--space-24); padding: var(--space-20) 0 var(--space-16); border-top: 1px solid var(--border-strong);}
.order-head .order-date {flex: none; color: var(--text-primary);}
.order-head .order-no {flex: 1 1 auto; min-width: 0; color: var(--text-muted);}
.order-head .order-no span {white-space: nowrap;}
.order-head .order-detail-link {display: inline-flex; align-items: center; column-gap: 6px; flex: none; color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s;}
.order-head .order-detail-link img {flex: none; width: 12px; height: 12px;}

/* 주문 상품 */
.order-line-list .order-line {display: flex; align-items: flex-start; column-gap: var(--space-24); padding-block: var(--space-20); border-bottom: 1px solid var(--border-subtle);}
.order-line-list .order-line .thumb {flex: none; width: 90px;}
.order-line-list .order-line .line-info {display: flex; flex-direction: column; row-gap: var(--space-4); flex: 1 1 auto; min-width: 0;}
.order-line-list .order-line .line-info .product-title, .order-line-list .order-line .line-info .product-price {color: var(--text-primary);}
.order-line-list .order-line .line-info .caption-default {color: var(--text-muted);}
.order-line-list .order-line .line-status {display: flex; flex-direction: column; row-gap: var(--space-4); flex: none; width: 180px;}
.order-line-list .order-line .line-status .caption-small {color: var(--text-muted);}
.order-line-list .order-line .line-btn-list {display: flex; flex-direction: column; row-gap: 6px; flex: none; width: 132px;}
.order-line-list .order-line .line-btn-list .square-btn {width: 100%;}
.order-line-list .order-line.closed .thumb {opacity: 0.5;}
.order-line-list .order-line.closed .line-info .product-title {color: var(--text-muted);}
.order-line-list .order-line.closed .line-info .product-price {color: var(--text-disabled);}

/* 주문 진행 */
.order-progress {display: flex;}
.order-progress .progress-step {position: relative; display: flex; flex-direction: column; align-items: center; row-gap: var(--space-12); flex: 1 1 0; min-width: 0; color: var(--text-disabled); text-align: center;}
.order-progress .progress-step::before, .order-progress .progress-step::after {content: ''; position: absolute; top: 4.5px; height: 1px; background-color: var(--border-subtle);}
.order-progress .progress-step::before {left: 0; right: 50%;}
.order-progress .progress-step::after {left: 50%; right: 0;}
.order-progress .progress-step:first-child::before, .order-progress .progress-step:last-child::after {display: none;}
.order-progress .progress-step .dot {position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background-color: var(--border-subtle);}
.order-progress .progress-step.done {color: var(--text-secondary);}
.order-progress .progress-step.done::before, .order-progress .progress-step.done::after, .order-progress .progress-step.current::before {background-color: var(--border-strong);}
.order-progress .progress-step.done .dot {background-color: var(--action-primary);}
.order-progress .progress-step.current {color: var(--text-primary); font-weight: 700;}
.order-progress .progress-step.current .dot {border: 1px solid var(--border-strong); background-color: var(--bg-canvas);}

/* 정보 행 */
.key-value-list {display: flex; flex-direction: column; row-gap: var(--space-12);}
.key-value-list .key-value-row {display: flex; align-items: flex-start; column-gap: var(--space-24);}
.key-value-list .key-value-row dt {flex: none; width: 140px; color: var(--text-muted);}
.key-value-list .key-value-row dd {flex: 1 1 auto; min-width: 0; color: var(--text-primary);}

/* 주문 상품 요약 */
.order-item-row {display: flex; align-items: flex-start; column-gap: var(--space-16); padding-block: var(--space-12);}
.order-item-row .thumb {flex: none; width: 60px;}
.order-item-row .item-info {display: flex; flex-direction: column; row-gap: var(--space-4); flex: 1 1 auto; min-width: 0;}
.order-item-row .item-info .body-small {color: var(--text-primary);}
.order-item-row .item-info .caption-small {color: var(--text-muted);}
.order-item-row .item-price {flex: none; color: var(--text-primary);}

/* 금액 행 */
.summary-row-list {display: flex; flex-direction: column; row-gap: var(--space-12);}
.summary-row-list .summary-row {display: flex; align-items: center; justify-content: space-between; column-gap: var(--space-16);}
.summary-row-list .summary-row dt {color: var(--text-secondary);}
.summary-row-list .summary-row dd {color: var(--text-primary); text-align: right;}
.summary-row-list .summary-row.total {align-items: baseline; margin-top: var(--space-8); padding-top: var(--space-20); border-top: 1px solid var(--border-default);}
.summary-row-list .summary-row.total dt {color: var(--text-primary);}

/* 배송지 */
.address-card {display: flex; align-items: flex-start; column-gap: var(--space-32); padding-block: calc(var(--space-24) + var(--space-4)); border-bottom: 1px solid var(--border-subtle);}
.address-card .address-info {display: flex; flex-direction: column; row-gap: 6px; flex: 1 1 auto; min-width: 0; color: var(--text-primary);}
.address-card .address-info .tit-row {display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-12);}
.address-card .address-info .tit-row .default-tag {padding: 2px var(--space-8); border-radius: 999px; background-color: var(--bg-inverse); color: var(--text-inverse);}
.address-card .address-info .recipient {color: var(--text-secondary);}
.address-card .btn-list {flex: none; column-gap: 6px;}

/* 첨부파일 */
.file-attach {display: flex; flex-direction: column; row-gap: var(--space-12); width: 100%;}
.file-attach .file-upload {display: flex; flex-direction: column; align-items: center; row-gap: var(--space-12); width: 100%; padding: var(--space-32) var(--space-24); border: 1px dashed var(--border-default); text-align: center; transition: border-color 0.2s, background-color 0.2s;}
.file-attach .file-upload img {width: 24px; height: 24px;}
.file-attach .file-upload .body-small {color: var(--text-primary);}
.file-attach .file-upload .caption-small {color: var(--text-muted);}
.file-attach .file-upload input:focus-visible + .square-btn {outline: 2px solid var(--action-primary); outline-offset: 2px;}
.file-attach .file-upload.dragover {border-color: var(--border-strong); background-color: var(--bg-soft);}
.file-attach .file-upload.error {border-color: var(--status-error);}
.file-attach .file-upload.error .caption-small {color: var(--text-error);}
.file-attach .file-upload.error .square-btn {border-color: var(--status-error);}
.file-attach .file-list {display: flex; flex-direction: column; width: 100%;}
.file-attach .file-list:empty {display: none;}
.file-attach .file-list .file-item {display: flex; align-items: center; column-gap: var(--space-12); padding-left: var(--space-4); border-bottom: 1px solid var(--border-subtle);}
.file-attach .file-list .file-item .name {flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--text-primary); text-overflow: ellipsis; white-space: nowrap;}
.file-attach .file-list .file-item .size {flex: none; color: var(--text-muted);}
.file-attach .file-list .file-item .ico-btn img {width: 16px; height: 16px;}

/* 로딩 */
.loading-spinner {flex: none; display: inline-block; width: 32px; height: 32px; border: 2px solid var(--border-default); border-top-color: var(--action-primary); border-radius: 50%; animation: spin 0.8s linear infinite;}
@keyframes spin {to {transform: rotate(360deg);}}

/* 필터 칩 */
.chip-list {display: flex; flex-wrap: wrap; gap: var(--space-8);}
.chip-list .chip {display: inline-flex; align-items: center; column-gap: 6px; padding: var(--space-8) var(--space-16); border: 1px solid var(--border-default); color: var(--text-primary); transition: border-color 0.2s, background-color 0.2s, color 0.2s;}
.chip-list .chip[aria-current="true"], .chip-list .chip.active {border-color: var(--border-strong); background-color: var(--action-primary); color: var(--text-inverse);}

/* 토스트 */
.toast {position: fixed; left: 50%; bottom: var(--space-32); z-index: 400; display: flex; align-items: center; column-gap: var(--space-24); width: max-content; max-width: calc(100% - var(--layout-page-margin) * 2); padding: var(--space-12) var(--space-24); background-color: var(--bg-inverse); color: var(--text-inverse); transform: translateX(-50%);}
.toast[hidden] {display: none;}
.toast .body-small {flex: 1 1 auto; min-width: 0;}
.toast .txt-btn {flex: none; min-height: var(--size-40); color: var(--text-inverse); text-decoration: underline;}
.toast .txt-btn[hidden] {display: none;}

/* 빈 상태 */
.empty-state {display: flex; flex-direction: column; align-items: center; row-gap: var(--space-20); padding-block: var(--space-40); text-align: center;}
.empty-state .display-section {color: var(--text-strong);}
.empty-state .body-default {color: var(--text-secondary);}
.empty-state .btn-wrap {display: flex; flex-direction: column; align-items: center; row-gap: var(--space-4); padding-top: var(--space-20);}
.empty-state[hidden] {display: none;}

/* 스크롤 등장 */
[data-aos] {--aos-delay: 0s; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);}
[data-aos].aos-animate {transition-delay: var(--aos-delay);}
[data-aos-delay="100"] {--aos-delay: 0.1s;}
[data-aos-delay="200"] {--aos-delay: 0.2s;}
[data-aos-delay="300"] {--aos-delay: 0.3s;}
[data-aos].aos-init:not(.aos-animate) {opacity: 0;}
[data-aos="fade-up"].aos-init:not(.aos-animate) {transform: translateY(32px);}
[data-aos="img-reveal"] img {transition: transform 1.8s var(--ease-out);}
[data-aos="img-reveal"].aos-animate img {transition-delay: var(--aos-delay);}
[data-aos="img-reveal"].aos-init:not(.aos-animate) img {transform: scale(1.08);}

/* 호버 */
@media (hover: hover) {
    .main-btn:hover {background-color: var(--action-primary-hover);}
    .line-btn:hover {background-color: var(--bg-muted);}
    .line-btn.small:hover {border-color: var(--border-strong); background-color: transparent;}
    .txt-btn:hover {text-decoration: underline;}
    .text-link:hover::after {transform: translateX(3px);}
    .ico-btn:hover {opacity: 0.6;}
    .tab-list .tab:hover {color: var(--text-primary);}
    .breadcrumb a:hover {color: var(--text-primary);}
    .pagination .pagination-num:not([aria-current="page"]):hover, .pagination .pagination-arrow:hover {color: var(--text-primary);}
    .qty-selector .qty-btn:not(:disabled):hover {opacity: 0.6;}
    .custom-dropdown-option:hover {background-color: var(--bg-soft);}
    .size-option > input:not(:disabled):not(:checked) + label:hover {border-color: var(--border-strong);}
    .product-card:hover .img-wrap .hover-img {opacity: 1;}
    .video-box .video-ctrl .ctrl-btn:not(:disabled):hover {background-color: var(--overlay-scrim-hover);}
    .product-card:hover .wish-btn {opacity: 1;}
    .order-head .order-detail-link:hover {color: var(--text-secondary);}
    .chip-list .chip:not([aria-current="true"]):not(.active):hover {border-color: var(--border-strong);}
    .country-modal .modal-inner .country-form .country-list-wrap .country-list .country-item > input:not(:checked) + label:hover {background-color: var(--bg-soft);}
}

@media screen and (max-width: 1024px) {
    :root {--top-banner-height: 32px; --header-height: 56px;}

    /* 터치 기기 */
    .product-card .wish-btn {opacity: 1;}
}
@media screen and (max-width: 768px) {
    .square-btn:not(.small) {min-width: 0;}

    /* 배송 국가 선택 */
    .country-modal {padding: 0;}
    .country-modal .modal-inner {max-width: none; height: 100%; max-height: none; padding: var(--space-24) var(--space-20) calc(var(--space-24) + env(safe-area-inset-bottom));}
    .country-modal .modal-inner .country-form .country-list-wrap {flex: 1 1 auto;}
    .country-confirm-modal {padding-inline: var(--space-24);}
    .country-confirm-modal .modal-inner {padding: var(--space-40) var(--space-24);}
    .tab-list .tab {flex-shrink: 0;}
    .tab-swiper {overflow-x: auto; scrollbar-width: none;}
    .tab-swiper::-webkit-scrollbar {display: none;}

    /* 주문 */
    .order-head {column-gap: var(--space-16);}
    .order-line-list .order-line {display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--space-16);}
    .order-line-list .order-line .thumb {grid-row: 1 / span 3; width: 72px;}
    .order-line-list .order-line .line-status {grid-column: 2; width: auto; padding-top: var(--space-8);}
    .order-line-list .order-line .line-btn-list {grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 6px; width: auto; padding-top: 10px;}
    .order-line-list .order-line .line-btn-list .square-btn {width: auto;}
    .order-progress .progress-step {row-gap: var(--space-8); padding-inline: 2px; word-break: keep-all;}
    .key-value-list .key-value-row {column-gap: var(--space-16);}
    .key-value-list .key-value-row dt {width: 96px;}
    .address-card {flex-direction: column; row-gap: var(--space-16);}
}
@media screen and (max-width: 360px) {
    .order-head {flex-wrap: wrap; row-gap: var(--space-4);}
    .order-head .order-date {flex: 1 1 auto;}
    .order-head .order-no {order: 3; flex-basis: 100%;}
    .order-item-row {flex-wrap: wrap; row-gap: var(--space-4);}
    .order-item-row .item-price {width: 100%; padding-left: calc(60px + var(--space-16));}
}
