/* =========================================================
   shop 테마 — 의류·패션 쇼핑몰용
   색상은 theme.css(company.json colors)에서 --primary / --accent / --ink 로 들어옴
   ========================================================= */
:root {
  --text: #333;
  --muted: #888;
  --line: #e8e8e8;
  --gray: #f6f6f4;
  --hd-h: 72px;
  --wrap: 1400px;
  --gutter: 40px;
  --sec-y: 100px;
  --latin: "Jost", "Pretendard Variable", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 1024px) { :root { --hd-h: 58px; --gutter: 20px; --sec-y: 72px; } }
@media (max-width: 640px)  { :root { --gutter: 14px; --sec-y: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 15px; line-height: 1.6; color: var(--text); background: #fff; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 18px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border: 1px solid transparent; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-dark:disabled { background: #bbb; cursor: not-allowed; }
.btn-line { border-color: var(--ink); background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--gray); }

.sec { padding: var(--sec-y) 0; }
.sec-gray { background: var(--gray); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-title { font-family: var(--latin); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: .06em; color: var(--ink); line-height: 1.2; }
.sec-title small { display: block; margin-top: 6px; font-family: "Pretendard Variable", sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--latin); font-size: 13px; letter-spacing: .1em; color: var(--ink); }

/* ---------- 헤더 ---------- */
.topbar { padding: 9px var(--gutter); background: var(--ink); color: #fff; text-align: center; font-size: 13px; letter-spacing: .02em; }
.hd { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.hd.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.hd-bar { display: flex; align-items: center; gap: 36px; height: var(--hd-h); max-width: none; }
.logo { font-family: var(--latin); font-size: 26px; font-weight: 600; letter-spacing: .18em; color: var(--ink); flex: none; }
.gnb { flex: 1; }
.gnb ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.gnb a { font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.gnb a:hover, .gnb a[aria-current] { border-color: var(--ink); }
.gnb li:first-child a, .gnb li:nth-child(2) a, .gnb li:last-child a { font-family: var(--latin); letter-spacing: .06em; }
.gnb li:nth-child(2) a { color: var(--accent); }
.hd-icons { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hd-icons > a { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); }
.hd-icons .ico { width: 23px; height: 23px; }
.badge { position: absolute; right: -4px; top: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.hd-search { display: flex; align-items: center; width: 200px; height: 38px; padding: 0 4px 0 14px; border-bottom: 1px solid var(--ink); }
.hd-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; }
.hd-search button { display: grid; place-items: center; width: 30px; height: 30px; }
.menu-btn { display: none; place-items: center; width: 36px; height: 36px; color: var(--ink); }
.menu-btn .ico { width: 24px; height: 24px; }
@media (max-width: 1200px) { .hd-search { display: none; } }
@media (max-width: 1024px) {
  .gnb { display: none; }
  .menu-btn { display: grid; }
  .hd-bar { gap: 10px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 22px; }
  .hd-cs { display: none !important; }
}

.sitemap { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); }
.sitemap-box { position: relative; width: min(360px, 88vw); height: 100%; overflow-y: auto; background: #fff; padding: 70px 24px 30px; animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } }
.sitemap-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; }
.sitemap-close .ico { width: 24px; height: 24px; }
.sm-search { display: flex; height: 44px; border-bottom: 1px solid var(--ink); }
.sm-search input { flex: 1; min-width: 0; border: 0; outline: none; }
.sm-list { margin-top: 18px; }
.sm-list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; color: var(--ink); }
.sm-sub { display: flex; gap: 16px; margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- 메인 배너 ---------- */
.hero { position: relative; height: clamp(480px, 74vh, 760px); overflow: hidden; background: #ddd; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 55%); }
.hero-copy { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 18%; z-index: 1; display: flex; flex-direction: column; color: #fff; max-width: 520px; }
.hero-copy small { font-family: var(--latin); font-size: 14px; letter-spacing: .22em; }
.hero-copy b { margin-top: 14px; font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
.hero-copy > span { margin-top: 12px; font-size: 16px; }
.hero-copy i { align-self: flex-start; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid #fff; font-family: var(--latin); font-style: normal; font-size: 13px; letter-spacing: .2em; }
.hero-ctrl { position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 36px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 4px; background: rgba(255,255,255,.9); }
.hero-ctrl button { display: grid; place-items: center; width: 34px; height: 34px; }
.hero-count { min-width: 50px; text-align: center; font-family: var(--latin); font-size: 14px; }
@media (max-width: 640px) { .hero { height: 70svh; min-height: 440px; } .hero-copy { bottom: 90px; right: var(--gutter); } .hero-ctrl { left: var(--gutter); right: auto; bottom: 24px; } }

.cat-row { padding-top: 50px; }
.cat-row ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-row a { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cat-row a > span { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--gray); }
.cat-row img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s var(--ease); }
.cat-row a:hover img { transform: scale(1.08); }
@media (max-width: 640px) { .cat-row ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; } .cat-row a > span { width: 72px; height: 72px; } .cat-row a { font-size: 13px; } }

/* ---------- 상품 카드 ---------- */
.pc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 16px; }
.pc { position: relative; }
.pc-link { display: block; }
.pc-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--gray); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pc-link:hover .pc-img img { transform: scale(1.04); }
.pc-badge { position: absolute; left: 0; top: 0; padding: 4px 10px; font-family: var(--latin); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: #fff; background: var(--ink); }
.b-BEST { background: var(--accent); }
.pc-colors { display: flex; gap: 4px; margin-top: 12px; height: 10px; }
.pc-colors i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pc-name { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.pc-price em { font-style: normal; font-weight: 700; color: var(--accent); }
.pc-price strong { font-weight: 700; color: var(--ink); }
.pc-price del { font-size: 13px; color: #aaa; }
.pc-rv { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.pc-wish { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); }
.pc-wish .ico, .btn-wish .ico { width: 20px; height: 20px; }
.pc-wish[aria-pressed="true"], .btn-wish[aria-pressed="true"] { color: var(--accent); }
.pc-wish[aria-pressed="true"] .ico, .btn-wish[aria-pressed="true"] .ico { fill: currentColor; }
.best-list { counter-reset: none; }
.best-list .pc::before { content: attr(data-rank); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: #fff; font-family: var(--latin); font-weight: 600; }
.best-list .pc-badge { display: none; }
@media (max-width: 1024px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; } .pc-name { font-size: 13px; } }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs button { height: 34px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); }
.tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 760px) { .sec-head .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .tabs button { flex: none; } }

.mid-banner { padding: 0 0 var(--sec-y); background: var(--gray); }
.mid-in { position: relative; display: block; height: 380px; overflow: hidden; color: #fff; }
.mid-in img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.mid-in::after { content: ""; position: absolute; inset: 0 var(--gutter); background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 70%); }
.mid-in > span { position: absolute; left: calc(var(--gutter) + 50px); top: 50%; z-index: 1; transform: translateY(-50%); display: flex; flex-direction: column; }
.mid-in small { font-family: var(--latin); letter-spacing: .2em; }
.mid-in b { margin: 10px 0 20px; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; }
.mid-in i { font-style: normal; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .mid-in { height: 280px; } .mid-in > span { left: calc(var(--gutter) + 20px); } }

.lb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lb-row a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.lb-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lb-row a:hover img { transform: scale(1.04); }
.lb-row span { position: absolute; left: 20px; bottom: 18px; font-family: var(--latin); font-size: 20px; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
@media (max-width: 760px) { .lb-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; } .lb-row li { scroll-snap-align: start; } }

.rv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rv-grid a { display: flex; flex-direction: column; height: 100%; background: #fff; }
.rv-img { aspect-ratio: 1; overflow: hidden; }
.rv-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.rv-stars { padding: 14px 16px 0; color: var(--ink); letter-spacing: 2px; font-size: 13px; }
.rv-text { flex: 1; padding: 6px 16px 10px; font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-meta { padding: 0 16px; font-size: 12px; color: var(--muted); }
.rv-prod { display: flex; align-items: center; gap: 8px; margin: 12px 16px 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.rv-prod img { width: 34px; height: 44px; object-fit: cover; }
@media (max-width: 1024px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.insta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.insta a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: #fff; }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.insta .ico { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; }
.insta a:hover img { opacity: .7; }
.insta a:hover .ico { opacity: 1; }
@media (max-width: 760px) { .insta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 서브 공통 ---------- */
.sub { padding-bottom: var(--sec-y); }
.sub-head { padding: 50px 0 34px; text-align: center; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.sub-head .crumb { justify-content: center; margin-bottom: 14px; }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.sub-title { font-family: var(--latin); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: .08em; color: var(--ink); }
.sub-lead { margin-top: 8px; color: var(--muted); }

.shop-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.shop-cats button { padding: 6px 0; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.shop-cats button[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.shop-bar { display: flex; align-items: center; gap: 8px; margin: 20px 0 26px; }
.shop-count { margin-right: auto; font-size: 13px; color: var(--muted); }
.shop-count b { color: var(--ink); }
.shop-bar select { height: 38px; padding: 0 10px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .shop-cats { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 20px; } .shop-cats button { flex: none; } .shop-bar select { max-width: 120px; } }

/* 상품 상세 */
.pd { padding-top: 20px; padding-bottom: var(--sec-y); }
.pd > .crumb { margin-bottom: 20px; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--hd-h) + 20px); display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
.pd-main { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 4; background: var(--gray); overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 8px; align-content: start; }
.pd-thumbs button { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; opacity: .5; }
.pd-thumbs button[aria-current] { opacity: 1; outline: 1px solid var(--ink); outline-offset: -1px; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery:not(:has(.pd-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.pd-gallery:not(:has(.pd-thumbs)) .pd-main { grid-column: 1; }
.pd-badge { display: inline-block; padding: 2px 10px; font-family: var(--latin); font-size: 12px; letter-spacing: .1em; color: #fff; background: var(--ink); }
.pd-name { margin-top: 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--ink); line-height: 1.4; }
.pd-rv { margin-top: 6px; font-size: 14px; color: var(--ink); }
.pd-rv span { color: var(--muted); text-decoration: underline; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pd-price em { font-style: normal; font-size: 22px; font-weight: 700; color: var(--accent); }
.pd-price strong { font-size: 24px; font-weight: 700; color: var(--ink); }
.pd-price del { color: #aaa; }
.pd-meta div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 13px; }
.pd-meta dt { color: var(--muted); }
.opt { margin-top: 22px; }
.opt legend { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.opt legend span { font-weight: 400; color: var(--muted); margin-left: 6px; margin-right: auto; }
.sg-open { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; font-weight: 400; color: var(--muted); text-decoration: underline; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sw, .sz { position: relative; cursor: pointer; }
.sw input, .sz input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); outline: 1px solid transparent; outline-offset: 3px; }
.sw input:checked + i { outline-color: var(--ink); }
.sw input:focus-visible + i, .sz input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.sz span { display: grid; place-items: center; min-width: 56px; height: 42px; padding: 0 12px; border: 1px solid var(--line); font-size: 14px; }
.sz input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt-help { margin-top: 10px; font-size: 12px; color: var(--muted); }
.picked { margin-top: 14px; display: grid; gap: 6px; }
.picked li, .cart-list li { display: grid; align-items: center; gap: 12px; }
.picked li { grid-template-columns: minmax(0, 1fr) auto auto 24px; padding: 12px 14px; background: var(--gray); font-size: 14px; }
.picked b { min-width: 80px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.qty button { width: 30px; height: 30px; }
.qty output { width: 32px; text-align: center; font-size: 14px; }
.rm { width: 24px; height: 24px; color: var(--muted); }
.pd-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink); font-weight: 600; color: var(--ink); }
.pd-total strong b { font-size: 26px; }
.pd-msg { min-height: 1.4em; margin: 6px 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.pd-btns { display: grid; grid-template-columns: 1fr 1fr 52px; gap: 6px; }
.btn-wish { display: grid; place-items: center; height: 52px; border: 1px solid var(--line); color: var(--ink); }
.pd-model { display: flex; gap: 6px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .pd-top { grid-template-columns: minmax(0, 1fr); gap: 26px; } .pd-gallery { position: static; grid-template-columns: minmax(0, 1fr); } .pd-main { grid-column: 1; } .pd-thumbs { grid-column: 1; grid-row: 2; grid-template-columns: repeat(5, 60px); } }
.pd-tabs { position: sticky; top: var(--hd-h); z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; background: #fff; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pd-tabs a { padding: 16px 6px; text-align: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.pd-tabs a:hover { background: var(--gray); }
@media (max-width: 560px) { .pd-tabs a { font-size: 12px; padding: 13px 2px; } }
.pd-sec { max-width: 860px; margin: 0 auto; padding-top: 70px; }
.pd-sec:last-child { max-width: none; }
.pd-h { margin-bottom: 20px; font-family: var(--latin); font-size: 20px; font-weight: 500; letter-spacing: .08em; color: var(--ink); }
.pd-h small { margin-left: 8px; font-family: "Pretendard Variable", sans-serif; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.pd-desc { font-size: 16px; line-height: 1.9; text-align: center; color: var(--ink); }
.pd-detail-img { width: 100%; max-width: 640px; margin: 30px auto; }
.pd-spec { border-top: 1px solid var(--ink); }
.pd-spec div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-spec dt { color: var(--muted); }
.tbl { font-size: 14px; text-align: center; }
.tbl th, .tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.tbl thead th { border-top: 1px solid var(--ink); background: var(--gray); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.pd-reviews li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-reviews .rv-stars { padding: 0; }
.pd-reviews .rv-meta { padding: 0; margin: 4px 0 8px; }
.pd-reviews .rv-meta b { color: var(--ink); font-weight: 500; }
.pd-reviews img { width: 120px; aspect-ratio: 1; object-fit: cover; margin-top: 10px; }
.policy-dl { border-top: 1px solid var(--ink); }
.policy-dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.policy-dl dt { font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .policy-dl div, .pd-spec div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* 장바구니 */
.cart-tabs { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.cart-tabs button { padding: 10px 0; font-size: 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cart-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.cart-tabs b { font-family: var(--latin); color: var(--accent); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.free-bar { padding: 16px 18px; background: var(--gray); font-size: 14px; }
.free-bar b { color: var(--accent); }
.free-bar span { display: block; height: 4px; margin-top: 10px; background: #e2e2de; }
.free-bar i { display: block; height: 100%; background: var(--ink); transition: width .4s var(--ease); }
.cart-list li { grid-template-columns: 80px minmax(0, 1fr) auto 90px 30px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-list img { width: 80px; aspect-ratio: 3 / 4; object-fit: cover; }
.cl-info { display: flex; flex-direction: column; font-size: 14px; }
.cl-info b { font-weight: 500; color: var(--ink); }
.cl-info span { font-size: 13px; color: var(--muted); }
.cl-sum { text-align: right; color: var(--ink); }
.cart-list .rm .ico { width: 18px; height: 18px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 0; color: var(--muted); text-align: center; }
.cart-empty .ico { width: 44px; height: 44px; color: #ccc; }
.cart-sum { position: sticky; top: calc(var(--hd-h) + 20px); padding: 28px; border: 1px solid var(--ink); }
.cart-sum h2 { font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.cart-sum dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-sum dt { color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.cart-total strong { font-size: 24px; }
[data-order-msg].is-on { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: minmax(0, 1fr); } .cart-sum { position: static; } }
@media (max-width: 560px) { .cart-list li { grid-template-columns: 64px minmax(0, 1fr) 26px; gap: 8px 12px; } .cart-list img { width: 64px; grid-row: span 2; } .cart-list .qty { grid-column: 2; justify-self: start; } .cl-sum { grid-column: 2; grid-row: 3; text-align: left; } .cart-list .rm { grid-column: 3; grid-row: 1; } }

/* 룩북 */
.lookbook { display: grid; gap: 80px; }
.look { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.look:nth-child(even) > img { order: 2; }
.look > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.look-no { font-family: var(--latin); letter-spacing: .2em; color: var(--muted); }
.look h2 { margin: 6px 0 24px; font-family: var(--latin); font-size: clamp(28px, 3vw, 40px); font-weight: 500; color: var(--ink); }
.look-items { display: grid; gap: 10px; }
.look-items a { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); font-size: 14px; transition: border-color .2s; }
.look-items a:hover { border-color: var(--ink); }
.look-items img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; }
.look-items b { display: block; font-weight: 500; color: var(--ink); }
@media (max-width: 800px) { .look { grid-template-columns: minmax(0, 1fr); gap: 24px; } .look:nth-child(even) > img { order: 0; } .lookbook { gap: 60px; } }

/* 고객센터 */
.cs-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-box { padding: 30px; background: var(--gray); font-size: 13px; color: var(--muted); }
.cs-box .btn { height: 42px; margin: 8px 0; }
.cs-tel { display: block; margin: 4px 0; font-family: var(--latin); font-size: 30px; font-weight: 500; color: var(--ink); }
.cs-mail { margin: 10px 0; font-size: 17px; color: var(--ink); font-weight: 600; }
@media (max-width: 800px) { .cs-top { grid-template-columns: minmax(0, 1fr); } }
.cs-sec { max-width: 900px; margin: 0 auto; padding-top: 60px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 4px; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; }
.faq details[open] .ico { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; font-size: 14px; color: var(--muted); }
.form { padding: 30px; border: 1px solid var(--line); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: #fff; }
.field textarea { height: auto; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.is-invalid { border-color: var(--accent) !important; }
.agree { display: flex; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.agree a { text-decoration: underline; }
.agree:has(.is-invalid) { color: var(--accent); }
.form-msg { min-height: 1.4em; margin: 8px 0 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.form-msg.is-ok { color: var(--ink); }
@media (max-width: 640px) { .form { padding: 20px 14px; } .field-row { grid-template-columns: minmax(0, 1fr); } }
.policy h2 { margin: 30px 0 10px; font-size: 18px; color: var(--ink); }
.policy-date { margin-top: 30px; color: var(--muted); }

/* ---------- 푸터 ---------- */
.ft { padding: 60px 0 40px; border-top: 1px solid var(--line); background: #fafaf8; font-size: 13px; color: var(--muted); }
.ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.ft-h { margin-bottom: 10px; font-family: var(--latin); font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.ft-tel { display: block; font-family: var(--latin); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.ft-btn { display: inline-block; margin-top: 10px; padding: 6px 14px; border: 1px solid var(--ink); color: var(--ink); }
.ft-grid a:not(.ft-btn):not(.ft-tel) { text-decoration: underline; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ft-links a { text-decoration: none !important; }
.ft-links b { color: var(--ink); }
.sns { display: flex; gap: 6px; margin-top: 16px; }
.sns a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); text-decoration: none !important; }
.ft-info { padding-top: 24px; line-height: 2; }
.ft-info span + span::before { content: "|"; margin: 0 8px; opacity: .4; }
.ft-check { margin-left: 4px; padding: 1px 6px; border: 1px solid var(--line); font-size: 11px; }
.ft-escrow { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.copy { margin-top: 10px; font-family: var(--latin); letter-spacing: .06em; }
@media (max-width: 800px) { .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } .ft-escrow { align-items: flex-start; } }

/* 알림 · 맨 위로 */
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 300; transform: translateX(-50%); padding: 14px 22px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toastIn .25s var(--ease); white-space: nowrap; }
.toast a { margin-left: 10px; text-decoration: underline; color: #fff; font-weight: 600; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.top-btn { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.top-btn.is-on { opacity: 1; visibility: visible; }
@media (max-width: 640px) { .toast { bottom: 76px; white-space: normal; width: calc(100% - 28px); text-align: center; } }
.pd-look { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.pd-look img { width: 44px; height: 58px; object-fit: cover; }
.pd-look:hover { border-color: var(--ink); }
