﻿:root {
  --bg: #f3f1ed;
  --bg-glass: #f3f1edf2;
  --ink: #303134;
  --muted: #77797c;
  --line: #dcdcdc;
  --dark: #3d3f42;
  --soft: #ecebea;
  --chip: #e6dfd8;
  --white: #ffffff;
  --black: #000000;
  --sans: Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1152px;
  --gutter: 16px;
  --radius-pill: 9999px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1, h2, h3 { letter-spacing: -.01em; }
h1.sr-only { font-size: 16px; }
button, select { font-family: inherit; }
svg { display: block; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top bar ---------- */
.topbar {
  height: 28px; background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden;
}
.topbar b { font-weight: 600; letter-spacing: .15em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: baseline; gap: 8px; height: 28px; line-height: 28px; white-space: nowrap; }
.logo b { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .02em; }
.logo small { font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.main-nav { display: none; gap: 32px; background: var(--bg); }
.main-nav a, .search-link {
  position: relative; font-size: 14px; line-height: 20px; letter-spacing: .15em; color: var(--muted);
}
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--ink);
}
.header-tools { display: flex; align-items: center; gap: 16px; }
.search-link { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.mobile-menu .wrap { display: block; height: auto; }
.search-link span { display: none; }
.menu-btn {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-menu { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.mobile-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); padding: 16px 0;
}
.menu-open .mobile-menu { display: block; }
.mobile-menu a {
  display: block; width: max-content; padding: 8px 0; font-size: 14px; line-height: 20px;
  letter-spacing: .2em; color: var(--muted); position: relative;
}
.mobile-menu a.is-active { color: var(--ink); }
.mobile-menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--ink);
}

@media (min-width: 640px) {
  .search-link span { display: inline; }
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .menu-btn, .mobile-menu, .menu-open .mobile-menu { display: none; }
}

/* ---------- main ---------- */
main { display: block; }
.home { display: flow-root; }
.home::after { content: ""; display: block; height: 64px; }

/* hero */
.hero {
  position: relative; overflow: hidden; background: var(--soft);
  margin: 0 calc(var(--gutter) * -1);
  aspect-ratio: 4 / 5; container-type: inline-size;
}
@media (min-width: 640px) { .hero { margin: 24px 0 0; aspect-ratio: 7 / 3; } }
.hero-inner { position: relative; height: 100%; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.hero-art { position: absolute; inset: 0; color: #2b2a28; pointer-events: none; }
.hero-art .a-brand { position: absolute; font-family: var(--serif); white-space: nowrap; }
.hero-art .a-rule { position: absolute; height: 1px; background: #4a4642; }
.hero-art .a-l1, .hero-art .a-l2 { position: absolute; white-space: nowrap; line-height: 1.1; }
.hero-art .a-l2 em { font-style: normal; font-family: var(--serif); vertical-align: -.08em; }
/* phone banner art (centred) */
.hero-art .a-brand { left: 0; right: 0; text-align: center; top: 17.5cqw; font-size: 3.6cqw; letter-spacing: .9em; padding-left: .9em; }
.hero-art .a-rule { display: none; }
.hero-art .a-l1 { left: 0; right: 0; text-align: center; top: 30.5cqw; font-size: 7.4cqw; }
.hero-art .a-l2 { left: 0; right: 0; text-align: center; top: 40.4cqw; font-size: 7.4cqw; line-height: 1; }
.hero-art .a-l2 em { font-size: 13cqw; line-height: 1; }
@media (min-width: 640px) {
  .hero-art .a-brand { left: 6.7cqw; right: auto; text-align: left; top: 8cqw; font-size: 1.75cqw; letter-spacing: .75em; padding-left: 0; }
  .hero-art .a-rule { display: block; left: 6.7cqw; top: 12.7cqw; width: 4.5cqw; }
  .hero-art .a-l1 { left: 6.6cqw; right: auto; text-align: left; top: 15.4cqw; font-size: 4.3cqw; }
  .hero-art .a-l2 { left: 6.6cqw; right: auto; text-align: left; top: 19.9cqw; font-size: 4.3cqw; line-height: 1; }
  .hero-art .a-l2 em { font-size: 7.6cqw; }
}
.hero-media { display: block; height: 100%; }
.hero-body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; color: var(--white); }
.hero-body > * { align-self: stretch; }
.hero-body > .hero-btn { align-self: flex-start; }
.hero-body p { font-size: 12px; line-height: 16px; letter-spacing: .3em; }
.hero-body h2 { margin-top: 8px; font-family: var(--serif); font-size: 30px; line-height: 36px; }
.hero-btn {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; background: var(--white); color: var(--black);
  font-size: 14px; line-height: 20px;
}
.hero-count {
  position: absolute; right: -8px; bottom: 6px; display: flex; align-items: center; gap: 12px;
  color: var(--white); font-size: 11px; line-height: 16px; font-weight: 700;
}
.hero-count i { width: 32px; height: 1px; background: rgba(255,255,255,.7); }
@media (min-width: 640px) {
  .hero-body { left: 48px; right: 48px; bottom: 48px; }
  .hero-body h2 { font-size: 48px; line-height: 48px; }
  .hero-count { right: -16px; bottom: -15px; }
}

/* notice bar */
.notice-bar {
  margin-top: 40px; display: flex; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0;
}
.notice-bar .label { flex: none; width: 52px; font-size: 12px; line-height: 16px; letter-spacing: .2em; color: var(--muted); }
.notice-bar .item {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; line-height: 20px;
}
.notice-bar .item .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-bar .item .d { flex: none; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.notice-bar .more { flex: none; }

/* section heads */
.block { margin-top: 64px; }
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .2em; color: var(--muted); }
.block-title { margin-top: 8px; font-family: var(--serif); font-size: 30px; line-height: 36px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.see-all { flex: none; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.see-all span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* category circles */
.cat-nav {
  margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px;
}
.cat-nav a {
  justify-self: center; width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: var(--radius-pill);
  background: var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 10px; line-height: 14px; letter-spacing: .15em; padding-left: .15em;
}
.cat-nav svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .cat-nav { grid-template-columns: repeat(8, 1fr); gap: 16px; }
  .cat-nav a { max-width: 96px; gap: 8px; font-size: 11px; line-height: 16px; }
}
@media (min-width: 1024px) {
  .cat-nav svg { width: 32px; height: 32px; }
}

/* product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
.block .grid { margin-top: 32px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; min-width: 0; }
.card-img { position: relative; aspect-ratio: 4 / 5; background-color: var(--soft); overflow: hidden; }
.badge {
  position: absolute; left: 12px; top: 12px; background: var(--dark); color: var(--white);
  font-size: 10px; line-height: 13px; font-weight: 500; letter-spacing: .15em; padding: 2px 8px 2px 9px;
}
.card-img .fav { position: absolute; right: 18px; bottom: 18px; width: 16px; height: 16px; color: var(--ink); opacity: 0; transition: opacity .2s; }
.card:hover .fav { opacity: 1; }
.card-meta {
  padding-top: 16px; display: flex; justify-content: space-between; gap: .12em;
  font-size: 11px; line-height: 17px; letter-spacing: .12em; color: var(--muted);
}
.card-meta span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta span:last-child { flex: none; }
.card h3 { font-family: var(--serif); font-size: 16px; line-height: 24px; }
.card .price { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.swatches { margin-top: 8px; display: flex; align-items: center; gap: 6px; height: 16px; }
.swatches i { width: 12px; height: 12px; border-radius: var(--radius-pill); border: 1px solid rgba(0,0,0,.12); }
.swatches span { margin-left: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- listing pages ---------- */
.page { padding: 40px 0; }
.crumbs { font-size: 12px; line-height: 16px; letter-spacing: .2em; color: var(--muted); }
.page .eyebrow.mt { margin-top: 24px; }
.page h1 { margin-top: 8px; font-family: var(--serif); font-size: 36px; line-height: 40px; }
.page .lead { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.tabs {
  margin-top: 32px; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 0 4px 8px; font-size: 14px; line-height: 20px; letter-spacing: .1em;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.toolbar .count { font-size: 12px; line-height: 16px; letter-spacing: .2em; color: var(--muted); }
.toolbar .controls { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.toolbar select {
  height: 28px; padding: 0 6px 0 10px; border: 1px solid #d0d0d0; border-radius: 0; background: var(--white);
  color: var(--ink); font-size: 14px;
}
.toolbar select.brand-sel { width: 100%; max-width: 160px; flex: 0 1 160px; }
.toolbar select.sort-sel { width: 94px; }
.page .grid { margin-top: 24px; }
.page.qc .grid { margin-top: 40px; }
.qc-card .qc-no { margin-top: 12px; font-size: 11px; line-height: 17px; color: var(--muted); }
.qc-card h3 { margin-top: 4px; }
.qc-card .price { margin-top: 4px; color: var(--ink); }
.empty { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* brand list */
.brand-list { margin-top: 32px; display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 768px) { .brand-list { grid-template-columns: repeat(3, 1fr); } }
.brand-list a {
  display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--muted);
}
.brand-list a.is-active { color: var(--ink); font-weight: 500; }
.brand-list a small { margin-right: 8px; font-size: 11.2px; line-height: 1; }
.brand-list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-list a.extra { display: none; }
.brands-open .brand-list a.extra { display: flex; }
.more-brands {
  margin-top: 16px; width: 100%; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: none; border: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .2em; cursor: pointer;
}
.brands-open .more-brands svg { transform: rotate(180deg); }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--white); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 48px; }
.foot-top { display: flex; flex-direction: column; gap: 32px; }
.foot-logo { display: flex; align-items: baseline; gap: 8px; line-height: 28px; }
.foot-logo b { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.foot-logo small { font-size: 11px; color: var(--muted); }
.foot-desc { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot-nav { display: flex; gap: 24px; font-size: 14px; line-height: 20px; letter-spacing: .15em; color: var(--muted); }
.copyright {
  margin-top: 48px; border-top: 1px solid var(--line); padding: 16px 0;
  font-size: 12px; line-height: 16px; color: var(--muted);
}
@media (min-width: 768px) {
  .foot-top { flex-direction: row; justify-content: space-between; gap: 32px; }
  .foot-brand { flex: 1; }
  .foot-nav { align-items: flex-start; }
}

/* ---------- floating inquiry ---------- */
.chat-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 6px;
  background: var(--dark); color: var(--white); border: 0; box-shadow: var(--shadow);
  font-size: 14px; line-height: 20px; cursor: pointer;
}
.chat-pop {
  margin: auto; width: min(92vw, 26rem); padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.chat-pop::backdrop { background: rgba(0, 0, 0, .4); }
.chat-in { padding: 24px; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; }
.chat-pop h2 { font-family: var(--serif); font-size: 24px; line-height: 32px; }
.chat-close { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.chat-box { margin-top: 24px; padding: 16px; border: 1px solid var(--line); }
.chat-box p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.chat-box .chat-box-t { margin-top: 0; font-weight: 500; color: var(--ink); }
.chat-box a { margin-top: 16px; display: inline-block; padding: 8px 16px; background: var(--dark); color: var(--white); font-size: 14px; line-height: 20px; }
.chat-note { margin-top: 16px; font-size: 14px; line-height: 20px; }
.chat-hours { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }

.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- product and QC detail pages ---------- */
.detail-post { max-width: 768px; margin: 0 auto; }
.detail-post .eyebrow.mt { margin-top: 32px; }
.detail-post h1, .product h1 { font-size: 30px; line-height: 36px; }
.page .sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.detail-price { margin-top: 16px; font-size: 20px; line-height: 28px; }
.ask-btn {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; line-height: 20px; cursor: pointer;
}
.product .ask-btn { background: var(--ink); color: var(--bg); text-decoration: none; }
.detail-photos { margin-top: 32px; display: grid; gap: 16px; }
.detail-photos figure { margin: 0; }
.detail-photos img { display: block; width: 100%; height: auto; background: var(--soft); }
.product-grid { margin-top: 32px; display: grid; gap: 40px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.product-brand { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: .15em; color: var(--muted); }
.product-brand:hover { color: var(--ink); }
.product-info h1 { margin-top: 8px; }
.product-info hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.opt-label { font-size: 12px; letter-spacing: .15em; color: var(--muted); }
.opt-label span { margin-left: 8px; color: var(--ink); letter-spacing: normal; }
.swatch-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.swatch-btn { width: 40px; height: 40px; padding: 4px; border-radius: var(--radius-pill); border: 2px solid transparent; background: none; cursor: pointer; }
.swatch-btn[aria-pressed="true"] { border-color: var(--ink); }
.swatch-btn i { display: block; width: 100%; height: 100%; border-radius: var(--radius-pill); border: 1px solid rgba(0,0,0,.12); }

