/* =====================================================================
 * 쇼핑몰 테마 - 에디토리얼 패션몰
 * Bootstrap은 그리드·오프캔버스·캐러셀 동작만 사용하고 모양은 여기서 정한다.
 * 톤: 아이보리 바탕, 먹색 글자, 세리프 영문 포인트, 할인율만 붉은색
 * ===================================================================== */
:root {
	--ink: #141414;
	--ink-2: #4a4a48;
	--ink-3: #8c8a86;
	--line: #e6e3de;
	--paper: #ffffff;
	--cream: #f5f2ec;
	--sand: #ebe6dd;
	--accent: #d9381e;
	--header-h: 72px;
	--serif: "Fraunces", "Times New Roman", serif;
	--bs-body-font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--bs-body-color: var(--ink);
	--bs-body-bg: var(--paper);
	--bs-body-font-size: 15px;
}
html, body { overflow-x: clip; }
body { letter-spacing: -0.012em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1360px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) { .container { padding-left: 16px; padding-right: 16px; } }
.page-pad { padding-top: 28px; padding-bottom: 24px; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-3); margin: 0 0 6px; letter-spacing: 0; }

/* 버튼 */
.btn-shop, .btn-shop-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 0; font-weight: 700; letter-spacing: .06em; padding: 15px 26px; font-size: 13px; transition: background .2s, color .2s; }
.btn-shop { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-shop:hover, .btn-shop:focus { background: #000; color: #fff; }
.btn-shop:hover .bi-arrow-right { transform: translateX(3px); }
.btn-shop .bi { transition: transform .2s; }
.btn-shop-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-shop-outline:hover { background: var(--ink); color: #fff; }
.btn-shop:disabled { background: var(--ink); color: #fff; border-color: var(--ink); opacity: .3; }
.btn-shop-outline:disabled { background: transparent; color: var(--ink); border-color: var(--ink); opacity: .3; }

/* 상단 안내 띠 */
.announce { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: var(--ink); color: #d6d3ce; font-size: 12px; text-align: center; padding: 9px 0; letter-spacing: .01em; }
.announce strong { color: #fff; }
.announce .bi { margin-right: 4px; }

/* 헤더 */
.shop-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.header-left { display: flex; align-items: center; }
.shop-logo { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; justify-self: center; }
.shop-logo img { max-height: 38px; width: auto; }
.shop-nav { gap: 26px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.shop-nav a { position: relative; padding: 6px 0; color: var(--ink-2); }
.shop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.shop-nav a:hover, .shop-nav a.active { color: var(--ink); }
.shop-nav a:hover::after, .shop-nav a.active::after { transform: scaleX(1); }
.shop-util { display: flex; gap: 2px; justify-self: end; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; border: 0; background: none; color: var(--ink); border-radius: 50%; transition: background .15s; }
.icon-btn:hover { background: var(--cream); }
.icon-btn.disabled { color: #c9c5be; cursor: default; background: none; }
@media (max-width: 991.98px) { :root { --header-h: 58px; } .shop-logo { font-size: 21px; } .shop-logo img { max-height: 30px; } }
.mobile-nav { border-top: 1px solid var(--line); }
.mobile-nav .container { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; padding-top: 11px; padding-bottom: 11px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); scrollbar-width: none; }
.mobile-nav .container::-webkit-scrollbar { display: none; }
.mobile-nav a.active { color: var(--ink); }
.mobile-drawer { --bs-offcanvas-width: 300px; }
.shop-logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; letter-spacing: .06em; }

.shop-main { min-height: 60vh; }

/* 메인 - 대문 */
.main-banner img { max-height: 680px; object-fit: cover; }
.hero { background: var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; min-height: 560px; padding-top: 56px; padding-bottom: 56px; }
.hero-title { font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -0.06em; line-height: .95; margin: 0 0 20px; }
.hero-text { color: var(--ink-2); font-size: 17px; margin-bottom: 32px; max-width: 360px; }
.hero-mosaic { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.hero-mosaic.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-mosaic.count-2 { grid-template-rows: 1fr; }
.mosaic-item { position: relative; overflow: hidden; background: var(--sand); }
.mosaic-item.item-0 { grid-row: 1 / span 2; }
.hero-mosaic.count-2 .mosaic-item.item-0 { grid-row: auto; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-label { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); padding: 6px 10px; font-size: 12px; font-weight: 600; }
@media (max-width: 991.98px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
	.hero-mosaic { height: 360px; }
}
@media (max-width: 575.98px) { .hero-mosaic { height: 300px; gap: 8px; } }

/* 메인 - 카테고리 띠 */
.category-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 56px; }
.category-strip a { display: flex; align-items: baseline; gap: 10px; padding: 22px 18px; border-right: 1px solid var(--line); transition: background .2s; }
.category-strip a:last-child { border-right: 0; }
.category-strip a:hover { background: var(--cream); }
.category-strip .num { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 14px; }
.category-strip .name { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.category-strip .bi { margin-left: auto; color: var(--ink-3); transition: transform .2s, color .2s; }
.category-strip a:hover .bi { color: var(--ink); transform: translate(2px, -2px); }
@media (max-width: 575.98px) { .category-strip { grid-template-columns: 1fr 1fr; } .category-strip a:nth-child(2n) { border-right: 0; } .category-strip a { border-bottom: 1px solid var(--line); padding: 16px 12px; } }

.home-section { margin: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.045em; margin: 0; }
.section-more { font-size: 12px; font-weight: 700; letter-spacing: .08em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.section-more .bi { transition: transform .2s; display: inline-block; }
.section-more:hover .bi { transform: translateX(3px); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 80px 0; }
.trust-row > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.trust-row > div:last-child { border-right: 0; }
.trust-num { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 15px; margin-bottom: 10px; }
.trust-row strong { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.trust-row span:last-child { font-size: 13px; color: var(--ink-3); }
@media (max-width: 767.98px) { .trust-row { grid-template-columns: 1fr; } .trust-row > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 4px; } }
.notice-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.notice-list li { display: flex; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.notice-pin { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.notice-date { color: var(--ink-3); font-size: 13px; }
.empty-state { text-align: center; padding: 80px 16px; color: var(--ink-3); }
.empty-state i { display: block; font-size: 36px; margin-bottom: 10px; color: #cfcac2; }

/* 상품 카드 */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 18px; }
@media (max-width: 991.98px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; } }
@media (max-width: 575.98px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; } }
.product-card { display: block; }
.product-thumb { position: relative; aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.placeholder-icon { font-size: 32px; color: #cfcac2; }
.thumb-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 4px 8px; letter-spacing: .02em; }
.product-thumb .soldout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .6); font-weight: 800; letter-spacing: .2em; font-size: 12px; }
.product-thumb .quick { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(20, 20, 20, .88); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-align: center; padding: 11px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.product-card:hover .quick { opacity: 1; transform: none; }
@media (hover: none) { .product-thumb .quick { display: none; } }
.product-meta { padding-top: 14px; }
.product-name { font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin-top: 6px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-price .rate { color: var(--accent); font-weight: 800; font-size: 15px; }
.product-price strong { font-size: 15px; font-weight: 800; }
.product-price strong::after { content: "원"; font-size: 12px; font-weight: 600; margin-left: 1px; }
.product-price del { font-size: 12px; color: var(--ink-3); }

/* 목록 */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.breadcrumb-mini { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; letter-spacing: .02em; }
.breadcrumb-mini i { font-size: 9px; }
.breadcrumb-mini a:hover { color: var(--ink); }
.page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.05em; margin: 0; line-height: 1.05; }
.page-count { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 16px; white-space: nowrap; }
.sub-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sub-categories a { padding: 8px 16px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color .15s, background .15s; }
.sub-categories a:hover { border-color: var(--ink); color: var(--ink); }
.sub-categories a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-bar { display: flex; justify-content: flex-end; align-items: center; padding: 10px 0 24px; font-size: 13px; color: var(--ink-2); }
.sort-links { display: flex; gap: 18px; }
.sort-links a { color: var(--ink-3); font-weight: 600; }
.sort-links a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.shop-pagination { display: flex; justify-content: center; gap: 2px; margin: 64px 0 16px; }
.shop-pagination a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.shop-pagination a:hover { color: var(--ink); }
.shop-pagination a.active { color: var(--ink); border-bottom: 2px solid var(--ink); }

/* 상세 - 갤러리 */
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.gallery-main { aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; display: flex; align-items: center; justify-content: center; grid-column: 2; grid-row: 1; }
.gallery.single .gallery-main { grid-column: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.empty i { font-size: 44px; color: #cfcac2; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; grid-column: 1; grid-row: 1; }
.gallery-thumbs button { width: 76px; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--cream); opacity: .5; transition: opacity .2s; position: relative; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) {
	.gallery { grid-template-columns: minmax(0, 1fr); }
	.gallery-main { grid-column: 1; }
	.gallery-thumbs { flex-direction: row; grid-row: 2; overflow-x: auto; }
	.gallery-thumbs button { width: 64px; flex-shrink: 0; }
}

/* 상세 - 구매 영역 */
@media (min-width: 992px) { .buy-panel { position: sticky; top: calc(var(--header-h) + 28px); } }
.detail-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 9px; background: var(--ink); color: #fff; margin-bottom: 14px; }
.product-title { font-size: 28px; font-weight: 800; line-height: 1.3; letter-spacing: -0.045em; margin-bottom: 10px; }
.product-summary { color: var(--ink-3); font-size: 14px; margin-bottom: 0; }
.detail-price { padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-price del { color: var(--ink-3); font-size: 14px; display: block; margin-bottom: 2px; }
.detail-price .rate { color: var(--accent); font-size: 28px; font-weight: 800; margin-right: 8px; letter-spacing: -0.03em; }
.detail-price strong { font-size: 30px; font-weight: 800; letter-spacing: -0.045em; }
.detail-price small { font-size: 17px; font-weight: 700; margin-left: 2px; }
.product-info { display: grid; grid-template-columns: 60px 1fr; gap: 12px; font-size: 14px; padding: 20px 0; margin: 0; border-bottom: 1px solid var(--line); }
.product-info dt { color: var(--ink-3); font-weight: 600; font-size: 12px; letter-spacing: .04em; padding-top: 2px; }
.product-info dd { margin: 0; color: var(--ink-2); }
.product-info dd strong { color: var(--ink); }
.option-box { padding-top: 22px; }
.option-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 8px; }
.option-select { border-radius: 0; padding: 14px 16px; margin-bottom: 14px; font-size: 14px; border-color: var(--line); background-color: #fff; }
.option-select:focus { border-color: var(--ink); box-shadow: none; }
.option-select:disabled { background-color: #faf9f7; color: var(--ink-3); }
.selected-list:empty { display: none; }
.selected-item { background: var(--cream); padding: 16px 18px; margin-bottom: 8px; font-size: 14px; }
.selected-item .name { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.qty button { border: 0; background: none; width: 34px; height: 34px; font-size: 16px; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--ink); margin-top: 10px; font-weight: 600; }
.total-row strong { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.buy-buttons { display: flex; gap: 8px; }
.btn-wish { width: 56px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 0; font-size: 19px; background: #fff; }
.prep-note { font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }
.soldout-box { margin-top: 22px; padding: 20px; background: var(--cream); text-align: center; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }

/* 상세 - 탭·본문 */
.detail-tabs { position: sticky; top: var(--header-h); z-index: 1020; display: flex; justify-content: center; gap: 4px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 80px; overflow-x: auto; }
.detail-tabs a { flex: 0 0 auto; padding: 18px 22px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); position: relative; white-space: nowrap; }
.detail-tabs a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s; }
.detail-tabs a.active, .detail-tabs a:hover { color: var(--ink); }
.detail-tabs a.active::after { transform: scaleX(1); }
@media (max-width: 991.98px) { .detail-tabs { top: calc(var(--header-h) + 41px); margin-top: 48px; justify-content: flex-start; } }
.detail-section { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 160px; max-width: 860px; margin: 0 auto; }
.detail-section h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.detail-section img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* 모바일 하단 구매 바 */
.mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
.mobile-buy-price { font-weight: 800; font-size: 16px; white-space: nowrap; letter-spacing: -0.03em; }
.mobile-buy-bar .btn-shop { padding: 14px; }
@media (max-width: 991.98px) { body:has(.mobile-buy-bar) .shop-footer { padding-bottom: 100px; } }

/* 푸터 */
.shop-footer { margin-top: 96px; padding: 56px 0 44px; background: var(--ink); color: #8f8c87; font-size: 12px; line-height: 1.8; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #2c2c2a; margin-bottom: 24px; flex-wrap: wrap; }
.footer-brand { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -0.05em; line-height: 1; }
.footer-cs { text-align: right; }
.footer-cs .label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #6d6a65; }
.footer-cs .phone { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-cs .hours { color: #b5b1aa; }
@media (max-width: 575.98px) { .footer-cs { text-align: left; } }
.footer-links { display: flex; gap: 18px; margin-bottom: 12px; font-size: 13px; color: #b5b1aa; }
.footer-links strong { color: #fff; }
.footer-company .sep { display: inline-block; width: 1px; height: 9px; background: #3d3c39; margin: 0 10px; }
.footer-copy { margin: 16px 0 0; color: #6d6a65; letter-spacing: .04em; }

/* 태블릿: 상세 이미지가 화면을 다 차지하지 않게 */
@media (min-width: 576px) and (max-width: 991.98px) {
	.gallery { max-width: 560px; margin: 0 auto; }
}

/* =====================================================================
 * 회원 (로그인·가입·찾기·마이페이지)
 * ===================================================================== */
.flash-bar { font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flash-bar.success { background: #f1f7ee; color: #2f5d23; }
.flash-bar.error { background: #fdf0ee; color: #9a2a17; }
.flash-bar .bi { margin-right: 4px; }

.member-box { max-width: 420px; margin: 56px auto 24px; }
.member-box.wide { max-width: 520px; }
.member-title { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; text-align: center; margin-bottom: 8px; }
.member-sub { text-align: center; color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.member-form { display: flex; flex-direction: column; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); margin: 18px 0 7px; }
.field-label:first-child { margin-top: 0; }
.field-label .opt, .opt { font-weight: 500; color: var(--ink-3); }
.field { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; font-size: 15px; background: #fff; transition: border-color .15s; min-width: 0; }
.field:focus { outline: none; border-color: var(--ink); }
.field[readonly], .field:disabled { background: #faf9f7; color: var(--ink-2); }
.field-wrap { position: relative; }
.field-wrap .field { padding-right: 46px; }
.field-icon { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; border: 0; background: none; color: var(--ink-3); }
.field-help { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.field-help a { text-decoration: underline; text-underline-offset: 3px; }
.input-row { display: flex; gap: 6px; }
.input-row .field { flex: 1; }
.btn-line { flex-shrink: 0; border: 1px solid var(--ink); background: #fff; padding: 0 16px; font-size: 13px; font-weight: 700; white-space: nowrap; min-height: 49px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line:disabled { opacity: .4; cursor: default; background: #fff; color: var(--ink); }
.btn-line.toggle input { accent-color: var(--ink); }
.field-msg { font-size: 13px; margin: 8px 0 0; }
.field-msg .ok { color: #2f6b1f; font-weight: 600; }
.field-msg .err { color: var(--accent); }
.field-dev { font-size: 12px; margin: 6px 0 0; padding: 8px 10px; background: #fff8e1; color: #7a5b00; border: 1px dashed #e3c46b; }
.sub-box { margin-top: 10px; padding: 16px; background: var(--cream); }

.notice { font-size: 14px; padding: 13px 16px; margin-bottom: 18px; line-height: 1.6; }
.notice.err { background: #fdf0ee; color: #9a2a17; }
.notice.ok { background: #f1f7ee; color: #2f5d23; }
.notice.info { background: var(--cream); color: var(--ink-2); }

.step { padding: 24px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step:last-of-type { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.step-title span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.check.all { padding: 14px 16px; background: var(--cream); font-weight: 700; margin-bottom: 8px; }
.check-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.check-view { font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.req { font-style: normal; color: var(--accent); font-weight: 700; }
.check .opt { font-style: normal; }
em.opt { font-style: normal; color: var(--ink-3); font-weight: 600; }

.member-links { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--ink-3); margin-top: 22px; }
.member-links a:hover { color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 32px 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; gap: 8px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 14px; font-weight: 700; }
.btn-social.kakao { background: #fee500; color: #191919; }
.btn-social.naver { background: #03c75a; color: #fff; }
.result-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.result-list li { display: flex; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.result-list span { color: var(--ink-3); font-size: 13px; }

/* 약관 */
.terms-page { max-width: 820px; margin: 0 auto; }
.terms-meta { color: var(--ink-3); font-size: 13px; margin: 10px 0 28px; }
.terms-body { border-top: 1px solid var(--ink); padding-top: 28px; line-height: 1.8; color: var(--ink-2); }

/* 마이페이지 */
.mypage { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.mypage-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.mypage-hello { padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; font-size: 18px; }
.mypage-hello strong { font-weight: 800; }
.mypage-hello span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.mypage-nav nav a, .mypage-nav nav span { display: block; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mypage-nav nav a.active, .mypage-nav nav a:hover { color: var(--ink); }
.mypage-nav nav a.active { font-weight: 800; }
.mypage-nav nav span.disabled { color: #c4bfb7; }
.mypage-nav nav small { font-size: 11px; }
.mypage-logout { border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-3); }
.mypage-body.narrow { max-width: 480px; }
.mypage-title { font-size: 28px; font-weight: 800; letter-spacing: -0.05em; margin-bottom: 24px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.summary-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--cream); }
.summary-card .label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.summary-card strong { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.summary-card small { font-size: 13px; color: var(--ink-2); }
.summary-card.link:hover { background: var(--sand); }
.info-table h2 { font-size: 17px; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.info-table dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); margin: 0 0 18px; }
.info-table dt, .info-table dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 14px; }
.info-table dt { color: var(--ink-3); font-weight: 600; }
.btn-sm-shop { padding: 10px 16px; font-size: 12px; }
.withdraw-link { margin-top: 40px; font-size: 12px; }
.withdraw-link a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.warn-box { background: var(--cream); padding: 18px 20px; margin-bottom: 8px; font-size: 14px; }
.warn-box ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.8; }
.address-list { display: grid; gap: 12px; }
.address-card { border: 1px solid var(--line); padding: 18px 20px; font-size: 14px; }
.address-card.default { border-color: var(--ink); }
.address-card p { margin: 4px 0 0; color: var(--ink-2); }
.address-card .customs { font-size: 13px; color: var(--ink-3); }
.address-head { display: flex; align-items: center; gap: 8px; }
.address-head strong { font-size: 16px; }
.tag { font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 7px; }
.address-actions { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; }
.address-actions form { margin: 0; }
.address-actions a, .address-actions button { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.address-actions .danger { color: var(--accent); }
.mobile-member { display: flex; gap: 16px; padding: 18px 0; font-size: 14px; font-weight: 700; }

@media (max-width: 767.98px) {
	.member-box { margin-top: 32px; }
	.member-title { font-size: 26px; }
	.mypage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mypage-nav { position: static; }
	.mypage-nav nav { display: flex; gap: 16px; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--line); }
	.mypage-nav nav a, .mypage-nav nav span { border: 0; padding: 10px 0; }
	.mypage-nav nav a.active { box-shadow: inset 0 -2px 0 var(--ink); }
	.mypage-nav form { margin-top: 10px !important; }
	.summary-card { padding: 16px; }
	.info-table dl { grid-template-columns: 90px minmax(0, 1fr); }
}

/* =====================================================================
 * 장바구니 · 주문서 · 주문 내역
 * ===================================================================== */
.page-heading { font-size: 30px; font-weight: 800; letter-spacing: -0.05em; margin: 8px 0 24px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; }
.cart-count[hidden] { display: none; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.order-side { position: sticky; top: calc(var(--header-h) + 20px); }
.order-section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.order-section:last-child { border-bottom: 0; }
.order-section h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 14px; }
.order-section h2 small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.section-link { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.section-link:hover { color: var(--ink); }

.cart-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.link-btn { border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.line-list { list-style: none; padding: 0; margin: 0; }
.line { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-list.compact .line { align-items: center; padding: 14px 0; }
.line-check { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); flex-shrink: 0; }
.line-thumb { width: 84px; aspect-ratio: 4 / 5; background: var(--cream); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-3); overflow: hidden; }
.compact .line-thumb { width: 60px; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; }
.line-name { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; }
.line-option { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.line-flag { display: inline-block; font-size: 11px; font-weight: 700; color: #7a5b00; background: #fff4d2; padding: 2px 7px; margin-top: 6px; }
.line-error { font-size: 13px; color: var(--accent); margin-top: 6px; }
.line.unavailable .line-thumb, .line.unavailable .line-name { opacity: .5; }
.line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.line-price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.qty-select { border: 1px solid var(--line); padding: 6px 28px 6px 10px; font-size: 13px; background: #fff; border-radius: 0; }

.sum-box { background: var(--cream); padding: 24px; }
.sum-box dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 16px; font-size: 14px; }
.sum-box dt { color: var(--ink-2); font-weight: 500; }
.sum-box dd { margin: 0; text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--ink); margin-bottom: 18px; }
.sum-total span { font-weight: 700; }
.sum-total strong { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.sum-note { font-size: 12px; color: var(--ink-3); margin: -8px 0 16px; text-align: right; }
.sum-back { display: block; text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; }
.check.agree { font-size: 13px; margin-bottom: 14px; align-items: flex-start; }

.address-pick { display: grid; gap: 10px; }
.address-option { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.address-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.address-option > input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex-shrink: 0; }
.address-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.address-body span { color: var(--ink-2); }
.address-body .address-title { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.address-body .address-title .tag { color: #fff; }
.address-body .customs { font-size: 13px; color: var(--ink-3); }
.address-option.missing .customs { color: var(--accent); }
.address-option.missing .customs a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.empty-inline { padding: 20px; background: var(--cream); font-size: 14px; margin-bottom: 10px; }
.empty-inline a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.method-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.method-option { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.method-option:has(input:checked) { border-color: var(--ink); }
.method-option input { accent-color: var(--ink); }

.pay-window { border: 1px solid var(--ink); padding: 28px; }
.pay-head { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.pay-desc { font-size: 13px; color: var(--ink-2); background: #fff8e1; padding: 10px 12px; }
.pay-info { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 14px; margin: 18px 0 22px; }
.pay-info dd { margin: 0; }
.pay-info strong { font-size: 20px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 32px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }

.order-cards { display: grid; gap: 12px; }
.order-card { display: block; border: 1px solid var(--line); padding: 4px 18px 0; transition: border-color .15s; }
.order-card:hover { border-color: var(--ink); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.order-card-head small { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.order-card .line { border-bottom: 0; }
.order-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; white-space: nowrap; }
.order-status.s-blue { background: #e9f0fb; color: #1d4f91; }
.order-status.s-ink { background: var(--ink); color: #fff; }
.order-status.s-gray { background: var(--sand); color: var(--ink-2); }
.order-status.s-red { background: #fdf0ee; color: #9a2a17; }
.back-link { display: inline-flex; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.back-link:hover { color: var(--ink); }

/* 상품 상세: 장바구니 담기 안내 */
.cart-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 1080; background: var(--ink); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

@media (max-width: 991.98px) {
	.order-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.order-side { position: static; }
}
@media (max-width: 575.98px) {
	.page-heading { font-size: 24px; }
	.line-thumb { width: 68px; }
	.compact .line-thumb { width: 52px; }
	.line-list.compact .line { flex-wrap: wrap; }
	.line-list.compact .line-info { flex-basis: calc(100% - 66px); }
	.line-list.compact .line-price { margin-left: 66px; }
	.cart-toast { bottom: 84px; }
}

/* 주문서 새 배송지 · 동의 강조 */
.address-option.new { display: block; cursor: default; }
.address-new-head { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
.address-new-head input { width: 18px; height: 18px; accent-color: var(--ink); }
.address-new-form { display: none; margin-top: 4px; padding-left: 30px; }
.address-option.new.open { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.address-option.new.open .address-new-form { display: block; }
.check.agree.need { color: var(--accent); font-weight: 700; }
.check.agree.need input { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 575.98px) { .address-new-form { padding-left: 0; } }

/* 주문 진행 단계 · 취소 사유 */
.order-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0 0 24px; counter-reset: s; }
.order-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; }
.order-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.order-steps li:first-child::before { display: none; }
.order-steps li.done::before, .order-steps li.current::before { background: var(--ink); }
.order-steps .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.order-steps li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 16px; }
.order-steps li.current .dot { border-color: var(--ink); color: var(--ink); }
.order-steps li.current { color: var(--ink); font-weight: 800; }
.reason-pick { display: grid; gap: 6px; }
.reason-option { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.reason-option:has(input:checked) { border-color: var(--ink); }
.reason-option input { accent-color: var(--ink); width: 16px; height: 16px; }
.done-notice { text-align: left; background: var(--cream); padding: 16px 18px; font-size: 14px; line-height: 1.7; margin-top: 20px; }
.done-notice p { margin: 0; }
.done-notice p + p { margin-top: 6px; }
