/* ===== Tokens ===== */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --stone: #ece8e1;
  --line: #dfd9cf;
  --ink: #1d1c1a;
  --ink-2: #4a4641;
  --muted: #8b847a;
  --accent: #8a6f4d;          /* warm bronze */
  --font-kr: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-kr); font-size: 16px; line-height: 1.7;
  letter-spacing: -0.01em; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1,h2,h3,h4,p { margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Type ===== */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.display { font-family: var(--font-en); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
.h-xl { font-size: clamp(44px, 7vw, 96px); }
.h-lg { font-size: clamp(34px, 4.6vw, 60px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.85; }
.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 28px; border: 1px solid var(--ink);
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-more { font-size: 13px; font-weight: 600; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(247,245,241,.92); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 34px; width: auto; transition: filter .35s var(--ease); }
.logo-text { font-weight: 700; font-size: 13px; letter-spacing: .14em; line-height: 1.15; }
.gnb { display: flex; gap: clamp(24px, 3.4vw, 52px); }
.gnb a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .16em; padding: 6px 0; }
.gnb a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gnb a:hover::after, .gnb a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 20px; } .menu-btn span:nth-child(3) { top: 26px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* transparent header over hero (home) */
body.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; color: #fff; }
body.has-hero .site-header:not(.is-scrolled) .logo img { filter: brightness(0) invert(1); }
body.menu-open .site-header { background: var(--bg) !important; color: var(--ink) !important; }
body.menu-open .site-header .logo img { filter: none !important; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg);
  padding: 40px var(--pad); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-nav a { font-family: var(--font-en); font-size: 40px; line-height: 1.3; }
body.menu-open .mobile-nav { opacity: 1; visibility: visible; }

/* ===== Page head (sub pages) ===== */
main { min-height: 60vh; }
.page-head { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); }
.page-head .eyebrow { margin-bottom: 18px; display: block; }
.page-head p { margin-top: 20px; max-width: 560px; }

/* ===== Hero ===== */
.hero { position: relative; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: #6f6a62; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.45) 100%); }
.hero__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(56px, 9vh, 110px); }
.hero .eyebrow { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.hero h1 { max-width: 12ch; }
.hero__bottom { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.hero__bottom p { max-width: 460px; color: rgba(255,255,255,.88); font-size: 16px; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 22px; width: 1px; height: 44px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: #fff; animation: cue 2.2s infinite var(--ease); }
@keyframes cue { to { top: 44px; } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: #f2efe9; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

/* intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.stat { padding: 24px 0 0; }
.stat strong { display: block; font-family: var(--font-en); font-size: clamp(40px, 4.6vw, 60px); font-weight: 500; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* product card */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; }
.card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.card__body { padding-top: 18px; }
.card__cat { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.card__name { margin-top: 6px; font-family: var(--font-en); font-size: 26px; font-weight: 500; line-height: 1.15; }
.card__sum { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* category band */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.cat { padding: 36px 28px 40px 0; border-right: 1px solid rgba(255,255,255,.12); transition: color .3s; }
.cat + .cat { padding-left: 28px; }
.cat:last-child { border-right: 0; }
.cat__n { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.5); }
.cat__name { margin-top: 28px; font-family: var(--font-en); font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.cat__desc { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.6); }
.cat__go { margin-top: 28px; display: inline-block; font-size: 13px; letter-spacing: .1em; transition: transform .3s var(--ease); }
.cat:hover .cat__name { color: #d9c3a3; }
.cat:hover .cat__go { transform: translateX(6px); }

/* split banner */
.split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; }
.split__media { background: var(--stone); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(40px, 7vw, 110px); background: var(--surface); }

/* ===== Products page ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { height: 40px; padding: 0 18px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .12em; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* ===== Product detail ===== */
.detail { padding: calc(var(--header-h) + 48px) 0 clamp(80px, 10vw, 140px); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumb a:hover { color: var(--ink); }
.detail__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.detail__media { aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__info { position: sticky; top: calc(var(--header-h) + 32px); }
.detail__info h1 { margin: 10px 0 14px; }
.spec { width: 100%; border-collapse: collapse; margin: 36px 0; font-size: 15px; }
.spec caption { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .2em; padding-bottom: 12px; }
.spec th, .spec td { text-align: left; padding: 15px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { width: 34%; font-weight: 500; color: var(--muted); }
.downloads { display: grid; gap: 8px; }
.dl { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 20px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color .25s; }
.dl:hover { border-color: var(--ink); }
.dl[aria-disabled="true"] { color: var(--muted); pointer-events: none; background: transparent; }
.related { margin-top: clamp(80px, 10vw, 140px); }

/* ===== About ===== */
.about-hero { aspect-ratio: 21 / 9; background: var(--stone); overflow: hidden; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.message { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 120px); }
.message__body p + p { margin-top: 1.2em; }
.sign { margin-top: 40px; font-size: 15px; }
.sign strong { font-size: 20px; margin-left: 10px; letter-spacing: .1em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--bg); padding: clamp(28px, 3.5vw, 48px); }
.value__n { font-family: var(--font-en); font-size: 18px; color: var(--accent); }
.value h3 { margin: 40px 0 12px; font-size: 20px; font-weight: 700; }
.value p { font-size: 15px; color: var(--ink-2); }

/* ===== Catalogue ===== */
.cata__cover { aspect-ratio: 3 / 4; background: var(--stone); overflow: hidden; position: relative; }
.cata__cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .9s var(--ease); }
.cata:hover .cata__cover img { transform: scale(1.04); }
.cata__cover::after { content: "PDF"; position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.cata__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.cata__meta h3 { font-family: var(--font-en); font-size: 24px; font-weight: 500; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list span { color: var(--muted); }
.map { margin-top: 32px; aspect-ratio: 4 / 3; background: var(--stone); border: 0; width: 100%; }
.map-links { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 15px; color: var(--ink); border-radius: 0; outline: none; transition: border-color .2s;
}
.field textarea { height: 180px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.agree input { margin-top: 4px; accent-color: var(--ink); }
.form-msg { font-size: 14px; min-height: 1.5em; }

/* ===== Footer ===== */
.site-footer { background: #151412; color: #bdb7ad; padding: 72px 0 40px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--font-en); font-size: 30px; color: #fff; line-height: 1; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; letter-spacing: .14em; font-weight: 600; color: #fff; }
.footer-info { padding-top: 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; line-height: 2; }
.footer-info .sep { margin: 0 10px; opacity: .3; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: #fff; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
  .scroll-cue::after { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat:nth-child(2) { border-right: 0; }
  .cat:nth-child(3) { padding-left: 0; }
  .cat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .gnb { display: none; }
  .menu-btn { display: block; }
  .intro, .message, .contact-grid, .detail__grid, .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
  .detail__info { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .about-hero { aspect-ratio: 4 / 3; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card__name { font-size: 20px; }
  .card__sum { display: none; }
  .cats { grid-template-columns: 1fr; }
  .cat, .cat + .cat { padding: 28px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .cat__name { margin-top: 12px; }
  .intro__stats { grid-template-columns: 1fr 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 84px 1fr; }
  .hero__bottom .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   제품 목록 (PLP) + 상세 필터
   ========================================================= */
.page-head--compact { padding-bottom: 32px; }
.plp { display: grid; grid-template-columns: 248px 1fr; gap: clamp(28px, 3.5vw, 56px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.plp__main { min-width: 0; }

/* sidebar */
.filter { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); display: flex; flex-direction: column; }
.filter__head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; border-bottom: 1px solid var(--ink); }
.filter__head strong { font-size: 13px; letter-spacing: .18em; }
.filter__reset { font-size: 12px; color: var(--muted); }
.filter__reset:hover { color: var(--ink); }
.filter__close, .filter__foot { display: none; }
.filter__body { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; margin-right: -6px; scrollbar-width: thin; }
.filter-dim { display: none; }

.newonly { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.newonly input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.newonly em, .check em, .swatch em, .pill em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.fgroup { border-bottom: 1px solid var(--line); }
.fgroup h3 { font-size: inherit; }
.fgroup__toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 14px; font-weight: 700; text-align: left; }
.fgroup__sel { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.fgroup__sel:empty { display: none; }
.fgroup__toggle i { margin-left: auto; width: 10px; height: 10px; position: relative; }
.fgroup__toggle i::before, .fgroup__toggle i::after { content: ""; position: absolute; left: 0; top: 4.5px; width: 10px; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
.fgroup__toggle i::after { transform: rotate(90deg); }
.fgroup.is-open .fgroup__toggle i::after { transform: rotate(0); }
.fgroup__body { display: none; padding: 0 0 18px; }
.fgroup.is-open .fgroup__body { display: block; }

.checks { display: grid; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.check input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #b9b2a7; background: #fff; display: grid; place-content: center; flex: none; cursor: pointer; }
.check input::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(1px,-1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input:checked + span { color: var(--ink); font-weight: 600; }
.check:hover span { color: var(--ink); }
.is-disabled { opacity: .35; cursor: default; }

.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .2s; }
.swatch input:checked ~ .swatch__dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.swatch input:checked ~ .swatch__label { color: var(--ink); font-weight: 600; }
.swatch input:focus-visible ~ .swatch__dot { outline: 2px solid var(--accent); outline-offset: 3px; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; font-size: 13px; background: #fff; transition: all .2s; }
.pill em { margin-left: 0; }
.pill:hover:not(:disabled) { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill[aria-pressed="true"] em { color: rgba(255,255,255,.65); }
.pill:disabled { opacity: .35; cursor: default; }
.dims { display: grid; gap: 8px; margin-top: 14px; }
.dims label { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dims select { height: 38px; padding: 0 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; color: var(--ink); }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.toolbar__filter { display: none; height: 40px; padding: 0 16px; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.toolbar__count { font-size: 14px; color: var(--ink-2); }
.toolbar__count strong { color: var(--ink); }
.toolbar__right { margin-left: auto; display: flex; gap: 8px; }
.search { position: relative; display: block; }
.search input { width: 240px; height: 40px; padding: 0 38px 0 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; border-radius: 0; outline: none; }
.search input:focus { border-color: var(--ink); }
.search svg { position: absolute; right: 12px; top: 11px; color: var(--muted); pointer-events: none; }
.sort select { height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; color: var(--ink); }

.active-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; min-height: 14px; }
.active-chips:empty { padding: 0; min-height: 0; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; background: var(--stone); font-size: 13px; transition: background .2s; }
.achip small { font-size: 11px; color: var(--muted); }
.achip:hover { background: #e2ddd4; }
.achip span[aria-hidden] { font-size: 10px; color: var(--muted); }
.achip--reset { background: none; text-decoration: underline; color: var(--muted); padding: 0 6px; }
.plp__grid { margin-top: 28px; }
.plp__empty { grid-column: 1 / -1; display: grid; gap: 20px; justify-items: center; }

/* card extras */
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; }
.card__badges .card__badge { position: static; }
.card__badge--sample { background: rgba(29,28,26,.75); color: #fff; }
.card__meta { margin-top: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile-ph { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.tile-ph span { position: absolute; inset: -2px; }
.card:hover .tile-ph { transform: scale(1.05); }
.detail__media { position: relative; }

@media (max-width: 1024px) {
  .plp { grid-template-columns: 1fr; }
  .toolbar__filter { display: inline-flex; align-items: center; gap: 4px; }
  .filter {
    position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); max-height: none;
    background: var(--bg); padding: 0 22px; transform: translateX(-100%); transition: transform .35s var(--ease);
  }
  .filter__head { height: 64px; padding: 0; border-bottom-color: var(--line); gap: 14px; }
  .filter__head strong { margin-right: auto; }
  .filter__close { display: block; font-size: 18px; width: 32px; height: 32px; }
  .filter__body { flex: 1; }
  .filter__foot { display: block; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filter__foot .btn { width: 100%; justify-content: center; }
  .filter-dim { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  body.filter-open { overflow: hidden; }
  body.filter-open .filter { transform: none; }
  body.filter-open .filter-dim { opacity: 1; visibility: visible; }
}
@media (max-width: 640px) {
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar__count { grid-column: 1 / -1; order: -1; }
  .toolbar__right { display: contents; }
  .toolbar__filter { justify-content: center; }
  .sort select { width: 100%; }
  .search { grid-column: 1 / -1; order: 5; }
  .search input { width: 100%; }
  .plp__grid.grid--3 { grid-template-columns: 1fr 1fr; }
  .card__meta { font-size: 12px; }
}

/* 홈 서비스 바로가기 */
.services { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.services a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.services__n { font-family: var(--font-en); font-size: 18px; color: var(--accent); }
.services strong { display: block; font-size: 18px; font-weight: 600; }
.services em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 2px; }
.services i { font-style: normal; font-size: 18px; transition: transform .35s var(--ease); }
.services a:hover { padding-left: 10px; }
.services a:hover i { transform: translateX(6px); color: var(--accent); }
