/* =========================================================
   C안 — CLEAN STUDIO
   웜화이트 + 차콜 모노톤, 포인트는 샌드(세라믹 소지 색) 한 가지
   Manrope(영문) + Pretendard(한글), 대소문자 혼용·좌측 정렬, 번호 라벨로 섹션 구분
   ========================================================= */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --stone: #efece7;
  --gray: #f4f2ee;
  --line: #e4e0d9;
  --ink: #1c1c1b;
  --ink-2: #55524d;
  --muted: #8f8a82;
  --accent: #1c1c1b;   /* 버튼·선택 상태 = 차콜 */
  --sand: #a8916f;     /* 번호·라벨 등 작은 포인트 */
  --font-en: "Manrope", "Pretendard", sans-serif;
  --max: 1360px;
  --radius: 2px;
}
body { background: var(--bg); color: var(--ink); }
::selection { background: var(--ink); color: #fff; }
.display { font-family: var(--font-en); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
.eyebrow { font-family: var(--font-en); color: var(--sand); letter-spacing: .02em; font-weight: 600; font-size: 13px; text-transform: none; }
.lead { color: var(--ink-2); }

/* 섹션 머리: 번호 + 제목 + 우측 링크 */
.idx { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 22px; margin-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.idx__n { display: block; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--sand); margin-bottom: 12px; }
.idx__t { font-family: var(--font-en); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.idx__t small { display: block; margin-top: 10px; font-family: var(--font-kr); font-size: 15px; font-weight: 400; letter-spacing: -0.01em; color: var(--muted); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.arrow-link::after { content: "→"; transition: transform .3s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* buttons */
.btn { height: 50px; padding: 0 24px; border-radius: var(--radius); border-color: var(--ink); font-weight: 600; letter-spacing: 0; font-size: 14px; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #3a3936; border-color: #3a3936; }
.link-more { font-family: var(--font-en); letter-spacing: 0; font-weight: 600; font-size: 14px; }

/* header — 흰 바 + 우측 문의 버튼 */
.site-header { background: rgba(251,250,248,.94); border-bottom-color: var(--line); }
.gnb { gap: clamp(22px, 2.6vw, 40px); align-items: center; }
.gnb a { font-family: var(--font-en); font-weight: 500; letter-spacing: 0; font-size: 14px; text-transform: capitalize; }
.gnb a::after { height: 1.5px; bottom: -2px; }
.gnb a[href="contact.html"] { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; }
.gnb a[href="contact.html"]::after { display: none; }
.gnb a[href="contact.html"]:hover, .gnb a[href="contact.html"][aria-current="page"] { background: var(--ink); color: #fff; }
.logo img { height: 36px; }
.mobile-nav a { font-family: var(--font-en); font-weight: 500; letter-spacing: -0.03em; }

/* 서브페이지 헤드 — 흰 바탕, 좌측 라벨 + 큰 제목 + 하단 라인 */
.page-head { background: none; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(36px, 4vw, 56px); }
.page-head .eyebrow { display: block; margin-bottom: 16px; }
.page-head .h-xl { font-size: clamp(44px, 6vw, 88px); text-transform: none; }
.page-head--compact { margin-bottom: 32px; }

/* 카드 */
.card { background: none; border: 0; }
.card__media { border-radius: var(--radius); }
.card__cat { color: var(--sand); letter-spacing: 0; font-family: var(--font-en); font-weight: 600; font-size: 12px; }
.card__name { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-transform: none; }
.card__badge { background: var(--ink); color: #fff; border-radius: var(--radius); letter-spacing: .04em; }
.card__badge--sample { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* 필터 */
.filter__head { border-bottom-color: var(--ink); }
.filter__head strong { letter-spacing: 0; font-size: 15px; }
.toolbar { border-bottom-color: var(--ink); }
.check input { border-radius: 3px; }
.check input:checked, .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.fgroup__sel { background: var(--sand); }
.achip { background: var(--stone); border-radius: 999px; }
.achip:hover { background: #e5e1da; }
.search input, .sort select { border-radius: var(--radius); }
.checks-sub + .checks-sub { margin-top: 14px; }
.checks-sub__title { font-size: 12px; font-weight: 600; color: var(--sand); margin-bottom: 4px; }

/* 상세·기타 */
.spec caption { color: var(--ink); letter-spacing: .14em; }
.dl { border-radius: var(--radius); }
.dl:hover { border-color: var(--ink); }
.cata__cover::after { background: var(--ink); border-radius: var(--radius); }
.cata__meta h3 { font-family: var(--font-en); font-weight: 600; letter-spacing: -0.02em; font-size: 20px; }
.value__n { color: var(--sand); font-family: var(--font-en); font-weight: 600; }
.section--stone { background: var(--gray); }
.info-list span { color: var(--sand); }

/* 푸터 — 밝은 톤 */
.site-footer { background: var(--gray); color: var(--ink-2); border-top: 1px solid var(--line); }
.footer-top { border-bottom-color: var(--line); }
.footer-brand { font-family: var(--font-en); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.footer-nav { color: var(--ink); font-family: var(--font-en); font-weight: 500; letter-spacing: 0; }
.footer-legal a:hover { color: var(--ink); }

/* =========================================================
   홈 — 섹션마다 연출을 다르게: 풀블리드 공간 → 모자이크 → 스타일 탭 → 실제 비율 → 브랜드 → 축척 → 상담
   ========================================================= */
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.x-story .btn--white:hover { color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
body.has-hero .site-header:not(.is-scrolled) .gnb a[href="contact.html"] { border-color: rgba(255,255,255,.7); }

/* 섹션 머리 — 영문 작은 라벨 + 한글 제목 */
.x-sec { padding: clamp(80px, 10vw, 140px) 0; }
.x-sec--gray { background: var(--gray); }
.x-sec--tight { padding-top: clamp(40px, 5vw, 64px); }
.x-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.x-head__en { display: block; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--sand); margin-bottom: 10px; letter-spacing: .02em; }
.x-head__kr { font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.25; }
.x-head__note { font-size: 13px; color: var(--muted); }

/* 1. 히어로 — 풀블리드 공간 사진 */
.x-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: #3d3a36; }
.x-hero__bg, .x-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-hero__img { object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 7s linear; }
.x-hero__img.is-on { opacity: 1; transform: scale(1); }
.x-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.x-hero__inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 104px; }
.x-hero__sub { font-family: var(--font-en); font-size: 15px; font-weight: 500; opacity: .9; margin-bottom: 18px; }
.x-hero__title { font-size: clamp(40px, 5.4vw, 80px); font-weight: 700; line-height: 1.16; letter-spacing: -0.05em; }
.x-hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.x-hero__tag { flex: none; display: flex; align-items: center; gap: 14px; width: 340px; padding: 12px 16px 12px 12px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: var(--radius); backdrop-filter: blur(8px); transition: transform .3s var(--ease); }
.x-hero__tag:hover { transform: translateY(-3px); }
.x-hero__tagimg { position: relative; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.x-hero__tagimg img { width: 100%; height: 100%; object-fit: cover; }
.x-hero__tag small { display: block; font-family: var(--font-en); font-size: 11px; font-weight: 600; color: var(--sand); }
.x-hero__tag b { display: block; margin-top: 2px; font-family: var(--font-en); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.x-hero__tag em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.x-hero__tag i { margin-left: auto; font-style: normal; }
.x-hero__bars { position: absolute; z-index: 2; left: 0; right: 0; bottom: 32px; display: flex; gap: 12px; }
.x-hero__bars button { flex: 1; max-width: 220px; text-align: left; color: rgba(255,255,255,.65); font-family: var(--font-en); font-size: 12px; font-weight: 600; }
.x-hero__bars button span { position: relative; display: block; height: 2px; background: rgba(255,255,255,.3); margin-bottom: 10px; overflow: hidden; }
.x-hero__bars button span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.x-hero__bars button.is-on { color: #fff; }
.x-hero__bars button.is-on span::after { transform: scaleX(1); }
.x-hero__bars button.is-run span::after { transform: scaleX(0); animation: barfill 6.5s linear forwards; }
@keyframes barfill { to { transform: scaleX(1); } }
.x-hero__bars em { font-style: normal; }

/* 2. 품목 모자이크 */
.x-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 300px 300px; gap: 12px; }
.x-tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); color: #fff; }
.x-tile--1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.x-tile--2 { grid-column: 3 / span 2; }
.x-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.x-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); }
.x-tile:hover img { transform: scale(1.05); }
.x-tile__txt { position: absolute; z-index: 1; left: 24px; bottom: 22px; }
.x-tile__txt b { display: block; font-family: var(--font-en); font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.03em; }
.x-tile--1 .x-tile__txt b { font-size: clamp(30px, 3.4vw, 48px); }
.x-tile__txt em { font-style: normal; font-size: 13px; opacity: .85; }
.x-tile__go { position: absolute; z-index: 1; right: 20px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.x-tile:hover .x-tile__go { background: #fff; color: var(--ink); }
.x-catlist { margin-top: 36px; border-top: 1px solid var(--line); }
.x-catlist__grp { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.x-catlist__grp > span { font-size: 14px; font-weight: 700; padding-top: 7px; }
.x-catlist__grp > div { display: flex; flex-wrap: wrap; gap: 6px; }
.x-catlist__grp a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface); transition: all .2s; }
.x-catlist__grp a em { font-style: normal; font-family: var(--font-en); font-size: 11px; color: var(--muted); }
.x-catlist__grp a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.x-catlist__grp a:hover em { color: rgba(255,255,255,.6); }

/* 3. 스타일 제안 */
.x-tabs { display: flex; gap: clamp(20px, 3vw, 44px); margin-bottom: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.x-tabs button { position: relative; flex: none; padding: 0 0 16px; font-family: var(--font-en); font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; color: #b9b3aa; transition: color .25s; }
.x-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.x-tabs button:hover { color: var(--ink-2); }
.x-tabs button[aria-selected="true"] { color: var(--ink); }
.x-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.x-style { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.x-style.is-in .x-style__img img { animation: fadeUp .7s var(--ease) both; }
.x-style.is-in .x-style__txt { animation: fadeUp .7s .1s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.x-style__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.x-style__img img { width: 100%; height: 100%; object-fit: cover; }
.x-style__txt h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.35; }
.x-style__txt > p { margin-top: 16px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.x-style__txt > p.x-style__used { margin-top: 32px; font-size: 13px; font-weight: 700; color: var(--ink); }
.x-style__list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.x-style__list a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.x-style__list a:hover { padding-left: 8px; }
.x-style__thumb { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.x-style__thumb > img, .x-style__thumb > .tile-ph { position: relative; inset: auto; height: 56px; width: calc(56px * var(--ar)); max-width: 56px; max-height: calc(56px / var(--ar)); object-fit: cover; border-radius: 1px; }
.x-style__list b { display: block; font-family: var(--font-en); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.x-style__list em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.x-style__list i { margin-left: auto; font-style: normal; color: var(--muted); }
.x-style__list a:hover i { color: var(--ink); }

/* 4. 신제품 — 소개 + 실제 비율 줄 */
.x-new { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.x-new__intro p { margin: 16px 0 24px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.x-new__row { min-width: 0; }
.h-new__item { flex: none; display: block; }
.h-new__media { position: relative; height: var(--h); width: calc(var(--h) * var(--ar)); min-width: 48px; overflow: hidden; border-radius: var(--radius); background: var(--stone); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.h-new__media img, .h-new__media .tile-ph { width: 100%; height: 100%; object-fit: cover; }
.h-new__item:hover .h-new__media { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.12); }
.h-new__meta { margin-top: 14px; max-width: max(calc(var(--h) * var(--ar)), 140px); }
.h-new__meta b { display: block; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.h-new__meta span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.x-new__row { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; padding: 8px 0 6px; scrollbar-width: none; --h: clamp(220px, 24vw, 320px); }
.x-new__row::-webkit-scrollbar { display: none; }

/* 5. 브랜드 스토리 — 풀블리드 */
.x-story { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #3d3a36; }
.x-story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-story::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,19,17,.72) 0%, rgba(20,19,17,.45) 45%, rgba(20,19,17,0) 75%); }
.x-story__inner { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 100px; }
.x-story .x-head__en { color: #d8c6a8; }
.x-story__title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.3; }
.x-story__desc { margin-top: 20px; max-width: 480px; font-size: 16px; line-height: 1.85; opacity: .88; }
.x-story__figs { display: flex; gap: clamp(28px, 4vw, 56px); margin: 40px 0 40px; }
.x-story__figs b { display: block; font-family: var(--font-en); font-size: clamp(32px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.x-story__figs span { display: block; margin-top: 8px; font-family: var(--font-en); font-size: 12px; opacity: .7; }

/* 6. 사이즈 — 같은 축척 실루엣 */
.h-sizes { --unit: 150px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.h-size { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .4s var(--ease); }
.h-size:hover { border-color: var(--ink); transform: translateY(-3px); }
.h-size__shape { height: 170px; display: flex; align-items: flex-end; margin-bottom: 22px; }
.h-size__shape i { display: block; width: max(6px, calc(var(--unit) * var(--w) / var(--max))); height: max(6px, calc(var(--unit) * var(--h) / var(--max))); border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(168,145,111,.2) 7px 8px); transition: background-color .3s; }
.h-size:hover .h-size__shape i { background-color: var(--stone); }
.h-size b { font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.h-size b small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.h-size span { margin-top: 4px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }

.x-sizeall { margin-top: 24px; border-top: 1px solid var(--line); }
.x-sizeall a { font-family: var(--font-en); }

/* 7. 상담·샘플 CTA */
.x-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x-cta__card { display: flex; flex-direction: column; min-height: 300px; padding: clamp(28px, 3.5vw, 48px); border-radius: var(--radius); transition: transform .4s var(--ease); }
.x-cta__card:hover { transform: translateY(-4px); }
.x-cta__card--sand { background: #e9e2d6; }
.x-cta__card--ink { background: var(--ink); color: #fff; }
.x-cta__card--ink .x-head__en { color: #d8c6a8; }
.x-cta__card strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.35; }
.x-cta__card p { margin-top: 14px; max-width: 420px; font-size: 15px; line-height: 1.8; opacity: .8; }
.x-cta__go { margin-top: auto; padding-top: 28px; font-weight: 700; font-size: 15px; }
.x-info { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.x-info b { font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--sand); margin-right: 10px; }

@media (max-width: 960px) {
  .x-hero__inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 96px; }
  .x-hero__tag { width: 100%; max-width: 380px; }
  .x-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .x-tile--1 { grid-column: 1 / -1; grid-row: auto; }
  .x-tile--2 { grid-column: 1 / -1; }
  .x-style, .x-new { grid-template-columns: 1fr; }
  .x-cta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .x-hero__title { font-size: 38px; }
  .x-tile--3 .x-tile__go, .x-tile--4 .x-tile__go { display: none; }
  .x-tile__txt { left: 18px; bottom: 16px; }
  .x-hero__bars { gap: 8px; }
  .x-hero__bars em { display: none; }
  .x-head { flex-direction: column; align-items: flex-start; }
  .x-catlist__grp { grid-template-columns: 1fr; gap: 10px; }
  .x-catlist__grp > span { padding-top: 0; }
  .x-new__row { --h: 220px; }
  .h-sizes { --unit: 100px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .h-size { padding: 16px; }
  .h-size__shape { height: 110px; }
  .h-size b { font-size: 17px; }
  .x-story { min-height: 560px; }
  .x-story::before { background: linear-gradient(180deg, rgba(20,19,17,.25), rgba(20,19,17,.75)); }
  .x-story__inner { align-self: flex-end; padding-bottom: 56px; }
}

/* =========================================================
   제품 목록 — 사이즈별 그룹 + 제품 비율 박스
   ========================================================= */
.plp__groups { --hmax: 420px; --wmax: 300px; --s: 1; margin-top: 8px; }
.size-group { padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.size-group:last-child { border-bottom: 0; }
.size-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.size-group__title { font-family: var(--font-en); font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.size-group__title i { font-style: normal; color: var(--sand); font-size: .7em; padding: 0 .12em; }
.size-group__title small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.size-group__count { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--muted); }
.size-group__grid {
  --col: clamp(140px, calc(var(--ar) * 440px * var(--s)), calc(240px * var(--s)));
  display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--col), 1fr));
  gap: 40px 24px; align-items: start;
}
.size-group .card { display: flex; flex-direction: column; }
.size-group .card__media { width: min(100%, calc(var(--hmax) * var(--ar) * var(--s)), calc(var(--wmax) * var(--s))); height: auto; background: #fff; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.size-group .card:hover .card__media { box-shadow: 0 12px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.size-group .card:hover .card__media img { transform: none; }
.size-group .card__body { padding: 14px 0 0; }
.size-group .card__name { font-size: 16px; }
.size-group .card__badges { top: 8px; left: 8px; flex-direction: column; align-items: flex-start; }
.size-group .card__badge { font-size: 10px; padding: 3px 7px; }
@media (max-width: 640px) {
  .plp__groups { --hmax: 300px; --wmax: 100%; }
  .size-group { padding: 30px 0 40px; }
  .size-group__grid { --col: clamp(120px, calc(var(--ar) * 320px * var(--s)), 44%); gap: 28px 14px; }
  .size-group .card__name { font-size: 15px; }
}

/* 필터 사이드바 스크롤바 — 커스텀 레일 */
.filter__body { scrollbar-width: none; padding-right: 14px; margin-right: 0; }
.filter__body::-webkit-scrollbar { display: none; }
.filter__body.has-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.frail { position: absolute; right: 0; width: 9px; display: flex; justify-content: center; opacity: 0; transition: opacity .3s; z-index: 2; }
.frail.is-on { opacity: .5; }
.filter:hover .frail.is-on, .frail.is-active { opacity: 1; }
.frail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.frail__thumb { position: absolute; top: 0; width: 3px; border-radius: 3px; background: var(--ink); cursor: grab; transition: width .2s; touch-action: none; }
.frail__thumb:hover, .frail.is-active .frail__thumb { width: 5px; }
@media (max-width: 1024px) { .frail { right: 8px; } }

/* =========================================================
   제품 상세 — 갤러리 / 패턴 / 패킹
   ========================================================= */
.detail__gallery { min-width: 0; }
.gal__main { position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; text-align: left; }
.gal__frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.gal__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal__main:hover .gal__frame img { transform: scale(1.03); }
.gal__frame[data-kind="pattern"] img { object-fit: contain; padding: 7%; }
.gal__cap { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.94); font-family: var(--font-en); font-size: 12px; font-weight: 600; color: var(--ink); }
.gal__zoom { position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: background .3s, color .3s; }
.gal__main:hover .gal__zoom { background: var(--ink); color: #fff; }
.gal__main:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gal__main .card__badges { position: absolute; top: 14px; left: 14px; }

.gal__tabs { display: flex; gap: 24px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.gal__tabs button { position: relative; padding: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s; }
.gal__tabs button em { font-style: normal; font-family: var(--font-en); font-weight: 600; margin-left: 4px; color: var(--sand); }
.gal__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.gal__tabs button[aria-selected="true"] { color: var(--ink); }
.gal__tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.gal__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; margin-top: 16px; }
.gal__thumbs[data-kind="mockup"] { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gal__thumb { display: block; padding: 0; text-align: left; }
.gal__tframe { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--stone); outline: 1.5px solid transparent; outline-offset: 3px; transition: outline-color .25s; }
.gal__thumbs[data-kind="mockup"] .gal__tframe { aspect-ratio: 4 / 3; }
.gal__tframe img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal__thumb:hover .gal__tframe img { transform: scale(1.05); }
.gal__thumb.is-on .gal__tframe { outline-color: var(--ink); }
.gal__tlabel { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.gal__tlabel b { display: block; font-family: var(--font-en); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.gal__thumb.is-on .gal__tlabel b { color: var(--ink); }

.pattern-now { margin: -2px 0 14px; font-size: 14px; color: var(--muted); }
.pattern-now b { margin-left: 8px; font-family: var(--font-en); font-weight: 600; color: var(--ink); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }

.spec--packing { margin-top: -8px; }
.spec--packing .spec__sub th { width: auto; padding: 18px 0 8px; border-top: 0; font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: .1em; color: var(--sand); }
.spec--packing .spec__sub + tr > * { border-top-color: var(--ink); }
.spec--packing td:last-child { font-variant-numeric: tabular-nums; }

/* 확대 모달 — 밝은 톤 */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto auto; background: rgba(251,250,248,.985); color: var(--ink); opacity: 0; transition: opacity .25s var(--ease); }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__top { display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.lb__title { display: flex; align-items: baseline; gap: 14px; min-width: 0; margin-right: auto; }
.lb__name { font-family: var(--font-en); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.lb__label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__count { font-family: var(--font-en); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; transition: all .25s; }
.lb__close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.lb__stage { position: relative; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; min-height: 0; padding: 20px 0; }
.lb__view { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lb__zoom { position: relative; max-width: 100%; max-height: 100%; height: 100%; display: grid; place-items: center; cursor: zoom-in; transition: transform .35s var(--ease); }
.lb__zoom img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb__zoom.is-ph { height: auto; width: min(100%, calc(68vh * var(--r))); aspect-ratio: var(--r); box-shadow: 0 0 0 1px var(--line); }
.lb__view.is-zoomed .lb__zoom { transform: scale(2.2); cursor: zoom-out; }
.lb__nav { justify-self: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; background: #fff; transition: all .25s; }
.lb__nav:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.lb__hint { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 12px; }
.lb__thumbs { display: flex; justify-content: center; gap: 10px; padding: 0 20px 22px; overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; opacity: .5; transition: opacity .25s; outline: 1.5px solid transparent; outline-offset: 3px; border-radius: var(--radius); }
.lb__thumbs button span { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumbs button:hover { opacity: .85; }
.lb__thumbs button.is-on { opacity: 1; outline-color: var(--ink); }
.lb.is-single .lb__nav, .lb.is-single .lb__thumbs { visibility: hidden; }
@media (max-width: 860px) {
  .lb__stage { grid-template-columns: 1fr; padding: 12px 0; }
  .lb__nav { position: absolute; z-index: 2; bottom: 12px; width: 44px; height: 44px; }
  .lb__nav--prev { left: 16px; } .lb__nav--next { right: 16px; }
  .lb__name { font-size: 17px; }
  .lb__label, .lb__hint { display: none; }
  .lb__thumbs { justify-content: flex-start; }
  .lb__thumbs button { width: 52px; height: 52px; }
  .gal__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .gal__thumbs[data-kind="mockup"] { grid-template-columns: repeat(2, 1fr); }
}

/* 욕실 품목 — 제품 사진 전체가 보이도록, 흰 배경 */
.card--bath .card__media { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.card--bath .card__media img { object-fit: contain; padding: 8%; }
.size-group--bath .size-group__grid { --col: 200px; }
.size-group--bath .card__media { width: 100%; }
.size-group__title small { margin-left: 10px; }

/* 제품 목록·상세: 흰 배경 (제품 이미지가 흰 바탕 JPG라 경계가 보이지 않도록) */
.page-products, .page-product { background: #fff; }
.page-products .site-header, .page-product .site-header { background: rgba(255,255,255,.96); }
.page-products .page-head, .page-product .page-head { background: #fff; }
.page-products .card__media, .page-product .card__media, .page-product .gal__frame,
.page-product .gal__tframe, .page-products .filter, .page-products .achip { background: #fff; }
.page-products .achip { box-shadow: inset 0 0 0 1px var(--line); }
.page-products .tile-ph, .page-product .tile-ph { background: #fff; }
.page-product .gal__frame { box-shadow: inset 0 0 0 1px var(--line); }
.page-product .gal__frame img { mix-blend-mode: multiply; }
