@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --soft: #f5f4f1;
  --accent: #c43c2b;
  --side: 260px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Pretendard", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Sidebar ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  padding: 28px 28px 100px; overflow-y: auto; z-index: 20; background: var(--bg);
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; line-height: 1.15; }
.logo small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.side .util { margin-top: 36px; font-size: 12px; font-weight: 600; line-height: 1.8; }
.side .util a:hover, .side .nav a:hover { text-decoration: underline; }
.side .nav { margin-top: 40px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.side .nav a.on { text-decoration: underline; }
.side .nav .sale { color: var(--accent); }
.side .nav .gap { height: 14px; }
.menu-btn { display: none; }

.cart-pill {
  position: fixed; left: 28px; bottom: 28px; z-index: 30;
  background: var(--fg); color: #fff; border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 15px;
}

/* ---------- Main ---------- */
.main { margin-left: var(--side); padding: 28px 28px 0 0; min-height: 100vh; }
.sec { margin-bottom: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sec-title { font-size: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sec-more { font-size: 22px; line-height: 1; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 8px; height: 78vh; min-height: 460px; margin-bottom: 72px; }
.hero .cell { display: block; min-height: 0; position: relative; overflow: hidden; background: var(--soft); }
.hero .stack { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; gap: 8px; }
.hero .copy { position: absolute; left: 24px; bottom: 22px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero .copy b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero .copy span { font-size: 13px; font-weight: 500; }

/* Horizontal row */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.row::-webkit-scrollbar { height: 4px; }
.row::-webkit-scrollbar-thumb { background: var(--line); }
.row .card { scroll-snap-align: start; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 8px; }

/* Product card */
.card .thumb { aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); position: relative; }
.card .thumb img { transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card .badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; background: #fff; padding: 2px 6px; }
.card .meta { padding: 8px 2px 0; font-size: 13px; }
.card .name { font-weight: 600; }
.price { font-weight: 600; }
.price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price .pct { color: var(--accent); margin-right: 4px; }

/* Lookbook */
.look { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.look figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.look figcaption { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }

/* Notice band */
.band { background: var(--soft); padding: 40px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.band h4 { font-size: 14px; margin-bottom: 6px; }
.band p { color: #555; font-size: 13px; }

/* Shop page */
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 28px; }
.filter { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; font-weight: 600; }
.filter a { color: var(--muted); }
.filter a.on { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 80px; }
.pd .gallery { aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; }
.pd .info { position: sticky; top: 28px; align-self: start; max-width: 440px; }
.pd .crumb { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.pd h1 { font-size: 22px; font-weight: 700; }
.pd .en { color: var(--muted); margin-bottom: 14px; }
.pd .price { font-size: 18px; margin-bottom: 24px; }
.pd .desc { color: #333; margin-bottom: 24px; }
.opt { margin-bottom: 16px; }
.opt label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); padding: 7px 14px; font-size: 13px; }
.chips button.on { border-color: var(--fg); background: var(--fg); color: #fff; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 34px; height: 34px; }
.qty span { width: 40px; display: grid; place-items: center; }
.btn { display: block; width: 100%; text-align: center; padding: 15px; font-weight: 700; font-size: 14px; }
.btn-dark { background: var(--fg); color: #fff; }
.btn-line { border: 1px solid var(--fg); margin-top: 8px; }
.spec { margin-top: 28px; border-top: 1px solid var(--line); }
.spec details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.spec summary { font-weight: 700; cursor: pointer; list-style: none; }
.spec summary::-webkit-details-marker { display: none; }
.spec summary::after { content: "+"; float: right; }
.spec details[open] summary::after { content: "\2013"; }
.spec p, .spec li { color: #555; font-size: 13px; margin-top: 8px; }
.spec ul { padding-left: 16px; }

/* Cart */
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-bottom: 80px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { aspect-ratio: 3/4; background: var(--soft); }
.cart-item .opt-txt { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.cart-item .rm { color: var(--muted); font-size: 12px; text-decoration: underline; }
.summary { background: var(--soft); padding: 24px; align-self: start; }
.summary .line { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary .total { font-size: 17px; font-weight: 800; border-top: 1px solid #ddd; padding-top: 14px; margin-top: 14px; }
.empty { padding: 60px 0; color: var(--muted); }

/* Text pages */
.doc { max-width: 760px; margin-bottom: 80px; }
.doc h2 { font-size: 16px; margin: 28px 0 8px; }
.doc p, .doc li { color: #444; font-size: 13.5px; margin-bottom: 6px; }
.doc ol, .doc ul { padding-left: 18px; }
.about-hero { aspect-ratio: 16/7; background: var(--soft); overflow: hidden; margin-bottom: 40px; }
.about-copy { font-size: 20px; font-weight: 600; line-height: 1.6; max-width: 640px; margin-bottom: 40px; }

/* Modal & toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; place-items: center; z-index: 50; padding: 16px; }
.modal.show { display: grid; }
.modal .box { background: #fff; max-width: 420px; width: 100%; padding: 28px; }
.modal h3 { font-size: 17px; margin-bottom: 10px; }
.modal p { color: #444; font-size: 13.5px; margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--fg); color: #fff; padding: 10px 18px; font-size: 13px; opacity: 0; transition: opacity .3s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; }

/* Footer */
.foot { margin: 40px 0 0; padding: 36px 0 120px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.8; }
.foot .links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--fg); font-weight: 600; margin-bottom: 14px; }
.foot b { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  :root { --side: 0px; }
  .side { position: sticky; top: 0; width: 100%; height: auto; padding: 14px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); overflow: visible; }
  .logo small { display: none; }
  .menu-btn { display: block; font-weight: 700; }
  .side .util, .side .nav { display: none; width: 100%; }
  .side.open .util, .side.open .nav { display: block; }
  .side.open .util { margin-top: 18px; }
  .side.open .nav { margin-top: 16px; padding-bottom: 12px; }
  .main { margin-left: 0; padding: 16px 16px 0; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; }
  .hero > .cell { aspect-ratio: 4/5; }
  .hero .stack { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 6px; }
  .row { grid-auto-columns: 46%; }
  .look { grid-template-columns: 1fr 1fr; }
  .look figure:nth-child(3) { display: none; }
  .band { grid-template-columns: 1fr; padding: 28px 20px; }
  .pd, .cart-wrap { grid-template-columns: 1fr; gap: 24px; }
  .pd .info { position: static; }
  .cart-pill { left: 16px; bottom: 16px; }
}
