/* THE MULTISHOP — sample design system
   tone: quiet luxury · ivory/ink/gold · serif display (Cormorant) + Pretendard */
:root {
  --bg: #f6f4ef;
  --bg2: #efece5;
  --ink: #17150f;
  --ink2: #5b564a;
  --gold: #a8854d;
  --gold-d: #8d6e3d;
  --line: rgba(23, 21, 15, 0.14);
  --line2: rgba(23, 21, 15, 0.08);
  --dark: #12100d;
  --serif: 'Cormorant Garamond', 'Nanum Myeongjo', 'Apple Myungjo', 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }
.w100 { width: 100%; }

/* top bar */
.topbar { background: var(--dark); color: rgba(255, 255, 255, 0.72); font-size: 11.5px; letter-spacing: 0.06em; text-align: center; padding: 8px 16px; }

/* header */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-mark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.14em; }
.chip { font-size: 9.5px; letter-spacing: 0.12em; border: 1px solid var(--gold); color: var(--gold-d); padding: 2px 7px; border-radius: 999px; transform: translateY(-1px); }
.gnb { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.gnb::-webkit-scrollbar { display: none; }
.gnb a { font-size: 13.5px; letter-spacing: 0.04em; color: var(--ink2); white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; }
.gnb a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.hd-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hd-actions svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.cart-link { position: relative; }
.cart-badge { position: absolute; top: -7px; right: -9px; background: var(--gold); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* hero */
.hero { background: var(--dark) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800"><circle cx="640" cy="180" r="260" fill="none" stroke="%23a8854d" stroke-opacity=".18"/><circle cx="640" cy="180" r="330" fill="none" stroke="%23a8854d" stroke-opacity=".1"/></svg>') right -80px top -60px no-repeat; color: #f3efe6; }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 108px 24px 116px; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.32em; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.06; font-weight: 500; }
.hero .sub { margin: 22px 0 36px; color: rgba(243, 239, 230, 0.75); font-size: 16px; max-width: 460px; }
.btn-gold { display: inline-block; background: var(--gold); color: #fff; padding: 14px 38px; font-size: 13.5px; letter-spacing: 0.14em; transition: background 0.2s; }
.btn-gold:hover { background: var(--gold-d); }

/* sections */
.sec { max-width: 1240px; margin: 0 auto; padding: 84px 24px; }
.sec-tint { max-width: none; background: var(--bg2); }
.sec-tint > * { max-width: 1192px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-head h2 { font-size: 34px; font-weight: 500; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cat-card { text-align: center; }
.cat-card img { width: 100%; aspect-ratio: 5/6; object-fit: cover; border: 1px solid var(--line2); transition: transform 0.25s; }
.cat-card:hover img { transform: translateY(-4px); }
.cat-name { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.cat-en { display: block; font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink2); margin-top: 2px; }

/* product cards */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.pcard-img { position: relative; display: block; overflow: hidden; border: 1px solid var(--line2); }
.pcard-img img { width: 100%; transition: transform 0.3s; aspect-ratio: 3/4; object-fit: cover; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--dark); color: #fff; font-style: normal; font-size: 10px; letter-spacing: 0.14em; padding: 4px 9px; }
.pcard-cat { display: block; margin-top: 12px; font-size: 11px; letter-spacing: 0.14em; color: var(--ink2); }
.pcard-name { display: block; font-size: 14.5px; margin-top: 3px; }
.pcard-price { display: block; margin-top: 5px; font-size: 14.5px; font-weight: 650; }

/* editorial band */
.edit { background: var(--dark); color: #f3efe6; text-align: center; }
.edit-in { max-width: 760px; margin: 0 auto; padding: 76px 24px; }
.edit-in p { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.35; font-style: italic; }
.edit-in span { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }

/* trust */
.trust { border-top: 1px solid var(--line); background: var(--bg); }
.trust-in { max-width: 1240px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.trust h3 { font-size: 15.5px; letter-spacing: 0.04em; margin-bottom: 8px; }
.trust p { font-size: 13px; color: var(--ink2); }

/* page head / breadcrumb */
.page-head { max-width: 1240px; margin: 0 auto; padding: 52px 24px 0; }
.page-head h1 { font-size: 36px; font-weight: 500; }
.page-head .en { font-size: 13px; letter-spacing: 0.24em; color: var(--gold-d); margin-left: 10px; }
.crumb { font-size: 12.5px; color: var(--ink2); margin-bottom: 10px; }
.crumb a:hover { color: var(--ink); }
.sec-list { padding-top: 36px; }
.list-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 13px; color: var(--ink2); }
.list-tools select { font-family: inherit; font-size: 13px; border: 1px solid var(--line); background: transparent; padding: 8px 12px; color: var(--ink); }

/* product detail */
.pd { max-width: 1240px; margin: 0 auto; padding: 48px 24px 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; }
.pd-img img { width: 100%; border: 1px solid var(--line2); position: sticky; top: 88px; }
.pd-info h1 { font-size: 26px; font-weight: 650; margin: 6px 0 10px; line-height: 1.35; }
.pd-price { font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.pd-opt, .pd-qty { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line2); }
.pd-opt label, .pd-qty label { font-size: 13px; color: var(--ink2); width: 40px; }
.chips { display: flex; gap: 8px; }
.chips button { border: 1px solid var(--line); background: transparent; padding: 8px 16px; font-size: 13px; }
.chips button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 16px; }
.qty span { width: 40px; text-align: center; font-size: 14px; }
.pd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 30px; }
.btn, .btn-line, .btn-dark, .btn-kakao { padding: 15px 20px; font-size: 14px; letter-spacing: 0.06em; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: 0.2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-kakao { background: #fee500; border-color: #fee500; color: #191600; margin-top: 8px; }
.pd-info details { border-top: 1px solid var(--line2); padding: 14px 0; }
.pd-info summary { font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pd-info summary::after { content: '+'; color: var(--ink2); }
.pd-info details[open] summary::after { content: '−'; }
.pd-info details p { margin-top: 10px; font-size: 13.5px; color: var(--ink2); }

/* cart */
.sec-narrow { max-width: 820px; padding-top: 36px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line2); }
.cart-item img { border: 1px solid var(--line2); }
.cart-item .ci-cat { font-size: 11px; letter-spacing: 0.12em; color: var(--ink2); }
.cart-item .ci-name { font-size: 14.5px; margin: 2px 0 4px; }
.cart-item .ci-price { font-size: 14px; font-weight: 650; }
.ci-del { border: 0; background: none; color: var(--ink2); font-size: 12.5px; text-decoration: underline; }
.cart-sum { margin-top: 28px; border: 1px solid var(--line); padding: 26px; }
.cart-sum > div { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.cart-sum .tot { border-top: 1px solid var(--line2); padding-top: 14px; font-size: 16px; }
.cart-sum button { margin-top: 8px; }
.cart-empty { text-align: center; padding: 70px 0; }
.cart-empty p { color: var(--ink2); margin-bottom: 20px; }
.cart-empty a { display: inline-block; }

/* auth */
.auth { max-width: 400px; margin: 0 auto; padding: 80px 24px 110px; }
.auth h1 { font-size: 32px; text-align: center; margin-bottom: 34px; font-weight: 500; }
.auth input { width: 100%; border: 1px solid var(--line); background: #fff; padding: 14px 16px; font-size: 14px; font-family: inherit; margin-bottom: 10px; }
.auth input:focus { outline: none; border-color: var(--ink); }
.auth form .btn-dark { margin-top: 8px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink2); }
.auth-foot a { text-decoration: underline; }

/* my / admin */
.my-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 14.5px; }
.my-tabs b { padding: 12px 2px; border-bottom: 2px solid var(--ink); }
.my-tabs span { padding: 12px 2px; color: var(--ink2); }
.adm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; }
.adm-cards > div { border: 1px solid var(--line); padding: 18px 20px; background: #fff; }
.adm-cards span { font-size: 12px; color: var(--ink2); display: block; margin-bottom: 6px; }
.adm-cards b { font-size: 22px; }
.adm-table-wrap { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--line); background: #fff; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.adm-table th { text-align: left; font-size: 12px; color: var(--ink2); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.tag.on { font-size: 11.5px; color: #2c6e49; background: rgba(44, 110, 73, 0.1); padding: 3px 9px; border-radius: 999px; }

/* footer */
.ft { background: var(--dark); color: rgba(243, 239, 230, 0.68); margin-top: 90px; }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 64px 24px 44px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
.ft-brand .brand-mark { color: #f3efe6; font-size: 19px; margin-bottom: 14px; }
.ft-brand p { font-size: 13px; line-height: 1.8; }
.ft-col h4 { color: var(--gold); font-size: 11px; letter-spacing: 0.22em; margin-bottom: 14px; font-weight: 600; }
.ft-col a { display: block; font-size: 13px; padding: 4px 0; }
.ft-col a:hover { color: #fff; }
.ft-legal { border-top: 1px solid rgba(243, 239, 230, 0.12); text-align: center; font-size: 11.5px; padding: 18px 24px; letter-spacing: 0.04em; }

/* floating SNS */
.sns-float { position: fixed; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.sns-float a { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: 0 4px 14px rgba(23, 21, 15, 0.1); transition: 0.2s; }
.sns-float a:hover { transform: translateY(-3px); }
.sns-float a:first-child { background: #fee500; border-color: #fee500; }
.sns-float svg { width: 21px; height: 21px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(18, 16, 13, 0.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg); max-width: 380px; width: 100%; padding: 34px 30px 26px; text-align: center; }
.modal-card p { font-size: 14.5px; line-height: 1.7; margin-bottom: 22px; }
.modal-card .btn { min-width: 120px; }

/* responsive */
@media (max-width: 920px) {
  .cat-grid, .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: 1fr; gap: 30px; }
  .pd-img img { position: static; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .adm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hd-in { gap: 16px; height: 58px; padding: 0 16px; }
  .brand-mark { font-size: 17px; }
  .hero-in { padding: 72px 20px 80px; }
  .sec { padding: 56px 18px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .trust-in { grid-template-columns: 1fr; gap: 30px; }
  .pd-btns { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item .ci-del-cell { grid-column: 2 / -1; text-align: right; }
}
