/* ════════════════════════════════════════════════════════════════
   KOREA GLOW · Beauty Catalog · style.css
   기존 koreaglow-sis 사이트의 디자인 토큰을 그대로 계승
   ════════════════════════════════════════════════════════════════ */
:root{
  --burgundy:#7D2A45; --burgundy-dark:#5A1E33; --dusty-pink:#F3D9DC;
  --ivory:#FAF6F0; --gold:#C9A15A; --ink:#2B2226; --ink-soft:#6E5A5F;
  --white:#FFFFFF; --shadow:0 8px 24px rgba(90,30,51,0.10);
  --sold-gray:#8A8A85; --sold-bg:#E5E1DA; --success:#2A9D5F;
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body{ background:var(--ivory); color:var(--ink); font-family:'Noto Sans KR','Noto Sans Lao','Noto Sans Thai',sans-serif; -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
/* 버튼/입력창은 브라우저가 기본적으로 font-family를 상속하지 않는다 — 이 때문에 언어버튼(ລາວ 등)이
   Arial로 렌더링되어 라오어 글자가 빈 박스로 뜨는 버그가 있었다. 2026-09-11 수정. */
button,input,select,textarea{ font-family:inherit; }
h1,h2,h3,.serif{ font-family:'Noto Serif KR', serif; }

header{ background:linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 100%); color:var(--white); padding:22px 20px 34px; position:relative; overflow:hidden; }
header::after{ content:""; position:absolute; right:-40px; top:-40px; width:180px; height:180px; background:radial-gradient(circle, rgba(243,217,220,0.18) 0%, transparent 70%); }

.lang-switch{ display:flex; flex-wrap:wrap; gap:6px; position:relative; z-index:2; margin-bottom:16px; }
.lang-btn{ flex:1 1 27%; min-width:56px; text-align:center; padding:7px 6px; border-radius:10px; font-size:12px; font-weight:600; background:rgba(255,255,255,0.12); color:rgba(255,255,255,0.75); border:1px solid rgba(255,255,255,0.22); cursor:pointer; white-space:nowrap; }
.lang-btn.active{ background:var(--white); color:var(--burgundy-dark); border-color:var(--white); }

.brand-row{ display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
.brand-logo{ width:52px; height:52px; border-radius:50%; object-fit:cover; flex-shrink:0; box-shadow:0 2px 8px rgba(0,0,0,0.18); }
.brand-name{ font-size:22px; font-weight:600; letter-spacing:0.5px; }
.brand-sub{ font-size:11.5px; color:var(--dusty-pink); letter-spacing:0.5px; margin-top:1px; }
.header-tagline{ margin-top:16px; font-size:14px; line-height:1.65; color:rgba(255,255,255,0.88); position:relative; z-index:1; max-width:340px; }
.partner-badge{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; padding:6px 14px; background:rgba(255,255,255,0.14); border:1px solid rgba(255,255,255,0.35); border-radius:100px; font-size:12px; letter-spacing:0.3px; position:relative; z-index:1; }
.partner-badge::before{ content:"●"; color:#8FD3A6; font-size:8px; }

.hero-featured{ display:none; }
@media (min-width:900px){
  header{ display:flex; align-items:center; gap:40px; padding:36px 48px; }
  .hero-left{ flex:0 0 auto; }
  .header-tagline{ max-width:420px; }
  .hero-featured{ display:flex; flex-direction:column; gap:10px; flex:1; position:relative; z-index:1; }
  .hero-feat-row{ display:flex; gap:14px; }
  .hero-feat-card{ flex:1; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.18); border-radius:16px;
    padding:12px; text-decoration:none; color:#fff; transition:background 0.15s; }
  .hero-feat-card:hover{ background:rgba(255,255,255,0.16); }
  .hero-feat-thumb{ width:100%; aspect-ratio:1/1; border-radius:10px; overflow:hidden; background:rgba(255,255,255,0.12); margin-bottom:10px; }
  .hero-feat-thumb img{ width:100%; height:100%; object-fit:contain; }
  .hero-feat-label{ font-size:10.5px; color:var(--dusty-pink); font-weight:700; letter-spacing:0.5px; margin-bottom:8px; }
  .hero-feat-brand{ font-size:11px; font-weight:700; color:var(--gold); letter-spacing:0.3px; margin-bottom:3px; }
  .hero-feat-name{ margin-bottom:6px; min-height:2.7em; }
  .hero-feat-name .nm-lo{ font-size:12.5px; font-weight:700; line-height:1.3; color:#fff; }
  .hero-feat-name .nm-en{ font-size:10.5px; font-weight:600; line-height:1.25; color:#fff; margin-top:1px; opacity:.9; }
  .hero-feat-name .nm-ko{ font-size:9px; font-weight:500; line-height:1.25; color:#fff; margin-top:1px; opacity:.65; }
  .hero-feat-price{ font-size:14px; font-weight:700; color:#fff; }
  .hero-feat-price .kip{ font-size:11px; font-weight:500; }
  .hero-feat-rating{ font-size:11px; color:var(--gold); margin-top:3px; }
}

.cart-fab{ position:fixed; right:16px; bottom:16px; z-index:30; background:var(--burgundy); color:#fff; border:none; border-radius:100px; padding:14px 20px; box-shadow:0 8px 24px rgba(90,30,51,0.35); font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px; cursor:pointer; }
.cart-fab .count{ background:var(--gold); color:#412402; border-radius:100px; padding:2px 8px; font-size:12px; }

.search-wrap{ display:flex; align-items:center; gap:8px; margin:14px 16px 0; padding:11px 14px; background:var(--white);
  border:1px solid rgba(125,42,69,0.15); border-radius:100px; box-shadow:0 2px 8px rgba(90,30,51,0.06); }
.search-icon{ font-size:14px; flex-shrink:0; opacity:0.7; }
.search-input{ flex:1; min-width:0; border:none; outline:none; background:none; font-size:14px; color:var(--ink); font-family:inherit; }
.search-input::placeholder{ color:var(--ink-soft); }
.search-clear{ flex-shrink:0; border:none; background:rgba(125,42,69,0.1); color:var(--burgundy); width:20px; height:20px;
  border-radius:50%; font-size:11px; cursor:pointer; line-height:1; }

.cat-icon-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:8px 0; padding:20px 6px 10px; background:var(--white); }
.cat-icon-btn{ display:flex; flex-direction:column; align-items:center; gap:6px; background:none; border:none; padding:6px 1px; cursor:pointer; }
.cat-icon-emoji{ width:50px; height:50px; border-radius:50%; background:var(--dusty-pink); display:flex; align-items:center; justify-content:center; font-size:23px; }
.cat-icon-label{ font-size:12px; color:var(--ink); font-weight:600; text-align:center; line-height:1.2; }

.rating-row{ display:flex; align-items:center; gap:4px; margin-bottom:4px; }
.rating-row .stars{ color:var(--gold); font-size:11px; letter-spacing:1px; }
.rating-row .rating-num{ font-size:10.5px; color:var(--ink-soft); font-weight:600; }
.rating-row .review-count{ font-size:9.5px; color:var(--ink-soft); }
.card-name-link{ text-decoration:none; color:inherit; display:block; }

.filter-wrap{ position:sticky; top:0; z-index:10; background:var(--ivory); padding:16px 0 10px; border-bottom:1px solid rgba(125,42,69,0.08); display:flex; align-items:center; gap:8px; }
.filter-wrap .filter-scroll{ flex:1; min-width:0; }
.sort-select{ flex-shrink:0; margin-right:16px; padding:8px 10px; border-radius:100px; background:var(--white); color:var(--burgundy); font-size:12px; font-weight:600; border:1px solid rgba(125,42,69,0.18); cursor:pointer; max-width:120px; }
.filter-scroll{ display:flex; gap:8px; overflow-x:auto; padding:0 16px 4px; scrollbar-width:none; }
.filter-scroll::-webkit-scrollbar{ display:none; }
.chip{ flex-shrink:0; padding:8px 16px; border-radius:100px; background:var(--white); color:var(--burgundy); font-size:13px; font-weight:500; border:1px solid rgba(125,42,69,0.18); cursor:pointer; white-space:nowrap; }
.chip.active{ background:var(--burgundy); color:white; border-color:var(--burgundy); }

.source-scroll{ display:flex; gap:8px; overflow-x:auto; padding:8px 16px 0; scrollbar-width:none; }
.source-scroll::-webkit-scrollbar{ display:none; }
.chip.source{ background:var(--dusty-pink); color:var(--burgundy-dark); border-color:transparent; font-size:11.5px; }
.chip.source.active{ background:var(--gold); color:#412402; }

main{ padding:8px 16px 96px; }
.cat-section{ margin-top:26px; scroll-margin-top:120px; }
.cat-title{ display:flex; align-items:baseline; gap:8px; font-size:17px; font-weight:600; color:var(--burgundy-dark); margin-bottom:10px; padding-left:2px; }
.cat-title .count{ font-size:11px; color:var(--gold); font-weight:600; }

.product-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.product-card{ background:var(--white); border-radius:16px; overflow:hidden; box-shadow:var(--shadow); border:1px solid rgba(125,42,69,0.06); display:flex; flex-direction:column; }
.product-card.preorder{ border:2px solid var(--gold); }
.product-card.soldout{ opacity:0.6; }

.thumb{ width:100%; aspect-ratio:4/3.2; background:var(--dusty-pink); display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0; }
.product-card.soldout .thumb{ background:var(--sold-bg); }
.thumb img{ width:100%; height:100%; object-fit:contain; }
.thumb-placeholder{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; width:100%; height:100%; opacity:0.55; }
.thumb-placeholder .tp-logo{ width:34px; height:34px; border-radius:50%; object-fit:cover; opacity:0.7; }
.thumb-placeholder .tp-text{ font-size:11px; color:var(--burgundy-dark); }

.stock-badge{ position:absolute; top:8px; left:8px; font-size:9px; font-weight:700; padding:4px 9px; border-radius:100px; letter-spacing:0.2px; }
.stock-badge.low{ background:var(--gold); color:#412402; }
.stock-badge.sold{ background:var(--sold-gray); color:#FFFFFF; }
.preorder-badge{ position:absolute; top:8px; right:8px; background:var(--burgundy); color:var(--dusty-pink); font-size:9px; font-weight:700; padding:4px 8px; border-radius:100px; }
.source-badge{ position:absolute; bottom:8px; left:8px; background:rgba(43,34,38,0.65); color:#fff; font-size:8px; font-weight:600; padding:3px 7px; border-radius:100px; letter-spacing:0.3px; }

.card-body{ padding:10px 12px 12px; display:flex; flex-direction:column; flex:1; }
.card-cat{ font-size:11px; color:var(--gold); letter-spacing:1px; font-weight:700; margin-bottom:3px; }
.card-brand{ font-size:12.5px; color:var(--ink-soft); font-weight:600; }
.card-name{ margin:3px 0 8px; min-height:2.6em; }
/* 2026-09-11 대표이사 지시 — 라오어(크게)·영어(중간)·한국어(작게) 세 줄을 항상 같이 보여준다 */
.card-name-lo{ font-size:16px; font-weight:700; color:var(--ink); line-height:1.3; }
.card-name-en{ font-size:12.5px; font-weight:600; color:var(--ink); line-height:1.3; margin-top:1px; }
.card-name-ko{ font-size:10.5px; font-weight:500; color:var(--ink-soft); line-height:1.3; margin-top:1px; }
.card-desc{ font-size:12px; color:var(--ink-soft); line-height:1.45; margin-bottom:8px; }

.variant-row{ display:flex; flex-direction:column; gap:5px; margin-top:auto; }
.variant-price-badge{ display:flex; align-items:center; justify-content:space-between; gap:6px; background:var(--burgundy); border-radius:10px; padding:7px 10px; cursor:pointer; border:none; width:100%; }
.product-card.soldout .variant-price-badge{ background:var(--sold-gray); cursor:not-allowed; }
.variant-price-badge .vlabel{ font-size:11.5px; color:var(--dusty-pink); }
.product-card.soldout .variant-price-badge .vlabel{ color:#F0F0EC; }
.variant-price-badge .vprice{ font-size:17px; font-weight:700; color:#FFFFFF; }
.variant-price-badge .vprice .kip{ font-size:12px; font-weight:500; margin-left:1px; }
.sold-text{ font-size:12px; font-weight:700; color:#FFFFFF; text-align:center; width:100%; }

footer{ margin-top:20px; padding:26px 20px 34px; text-align:center; background:var(--burgundy-dark); color:rgba(255,255,255,0.85); }
footer .f-logo{ font-family:'Noto Serif KR'; font-size:16px; color:white; margin-bottom:6px; }
footer .f-logo-img{ width:44px; height:44px; border-radius:50%; object-fit:cover; margin:0 auto 8px; display:block; box-shadow:0 2px 8px rgba(0,0,0,0.2); }
footer .f-line{ font-size:11.5px; line-height:1.8; color:rgba(255,255,255,0.65); }
footer .f-note{ margin-top:14px; font-size:10.5px; color:rgba(243,217,220,0.7); border-top:1px solid rgba(255,255,255,0.15); padding-top:14px; }

.social-links-wrap{ margin-top:16px; }
.social-links-label{ font-size:10.5px; color:rgba(243,217,220,0.75); letter-spacing:0.5px; margin-bottom:8px; }
.social-links{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.social-links a{ display:inline-block; padding:6px 14px; border-radius:20px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.22); color:#fff; text-decoration:none; font-size:11.5px; font-weight:600; }
.social-links a:hover{ background:rgba(255,255,255,0.2); }

/* 추천 피부타입 태그 — 성분·사용법과 함께 상세페이지에 노출 */
.skin-tag-row{ display:flex; flex-wrap:wrap; gap:7px; }
.skin-tag{
  display:inline-block;
  padding:6px 13px;
  background:var(--dusty-pink);
  color:var(--burgundy);
  border-radius:999px;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:0.2px;
}

/* 상품 고유번호 — 라오스 고객이 WhatsApp으로 번호만 보내 주문할 수 있게 */
.card-code{
  display:inline-block;
  font-size:12px; font-weight:800; letter-spacing:0.5px;
  color:var(--burgundy); background:var(--dusty-pink);
  padding:2px 7px; border-radius:5px; margin-bottom:5px;
}
.cart-item-code{ font-size:11.5px; font-weight:800; color:var(--burgundy); letter-spacing:0.4px; }
.pd-code{
  display:inline-flex; align-items:center; gap:8px;
  margin:2px 0 14px; padding:6px 12px;
  background:var(--dusty-pink); border-radius:8px;
}
.pd-code-label{ font-size:12px; color:var(--burgundy); opacity:0.75; }
.pd-code-value{ font-size:19px; font-weight:800; color:var(--burgundy); letter-spacing:1.5px; }

/* 첫 화면 배너 슬라이드쇼 — 사진이 부드럽게 교차 페이드 */
.hero-slideshow{
  position:relative;
  width:100%;
  aspect-ratio:1/1;              /* 모바일: 정사각 (원본 사진 비율) */
  max-height:60vh;
  overflow:hidden;
  background:var(--ivory);
}
.hero-slide{
  position:absolute; inset:0;
  width:100%; height:100%;
  /* ★ 2026-09-08 대표이사 지시 — "Hero page 사진이 잘려 나온다."
     object-fit:cover 는 상자에 꽉 채우려고 사진을 «잘라낸다». 제품 사진은 제품이
     잘리면 안 되므로 contain 으로 바꿔 사진 전체가 항상 보이게 한다(여백은 배경색으로 채움). */
  object-fit:contain;
  background:var(--ivory);
  opacity:0;
  transition:opacity 1.4s ease-in-out;   /* 부드러운 페이드 */
}
.hero-slide.active{ opacity:1; }

@media (min-width:600px){
  .hero-slideshow{ aspect-ratio:21/9; max-height:none; }  /* 넓은 화면: 와이드 배너 */
}
@media (prefers-reduced-motion: reduce){
  .hero-slide{ transition:none; }
}

/* 상단 공지 배너 — homepage.json 으로 문구·표시여부 관리 */
.announce-bar{
  background:linear-gradient(90deg, var(--burgundy), #9c3d59);
  color:var(--dusty-pink);
  padding:11px 16px;
  font-size:13.5px;
  font-weight:600;
  text-align:center;
  letter-spacing:0.2px;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.announce-bar .announce-icon{ font-size:15px; }
@media (min-width:900px){
  .announce-bar{ font-size:14.5px; padding:13px 20px; }
}

/* 주문 완료 후 WhatsApp 인계 블록 (라오스는 메신저 확정 습관이 강함) */
.wa-order-block{ margin-top:18px; padding:16px; background:#E8F7EE; border:1px solid #25D36633; border-radius:14px; text-align:center; }
.wa-order-hint{ font-size:13.5px; line-height:1.6; color:var(--burgundy); margin-bottom:12px; }
.wa-order-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px;
  width:100%; padding:14px 18px; background:#25D366; color:#fff; font-size:16px; font-weight:700;
  border-radius:12px; text-decoration:none; box-shadow:0 2px 8px rgba(37,211,102,0.3); }
.wa-order-btn:hover{ background:#1FBB5A; }

.payment-qr-block{ margin-top:16px; padding:16px; background:var(--ivory); border-radius:14px; text-align:center; }
.payment-qr-label{ font-size:12px; font-weight:700; color:var(--burgundy); margin-bottom:10px; }
.payment-qr-img{ width:150px; height:150px; object-fit:contain; border-radius:8px; border:1px solid rgba(125,42,69,0.15); background:#fff; padding:6px; }
.payment-qr-note{ font-size:11px; color:var(--ink); opacity:0.75; margin-top:10px; line-height:1.5; }

/* ── 회사소개 ────────────────────────────────────────────── */
.about-main{ max-width:560px; margin:0 auto; padding:24px 20px 60px; }
.about-main > h1{ font-family:'Noto Serif KR'; font-size:22px; color:var(--burgundy); margin-bottom:22px; }
.about-block{ margin-bottom:22px; }
.about-block h2{ font-family:'Noto Serif KR'; font-size:15.5px; color:var(--burgundy-dark); margin-bottom:8px; }
.about-block p{ font-size:13.5px; line-height:1.7; color:var(--ink); }
.about-contact{ margin-top:30px; padding:20px; background:var(--white); border:1px solid rgba(125,42,69,0.12); border-radius:16px; text-align:center; }
.about-contact p{ font-size:13px; color:var(--ink-soft); margin-bottom:14px; }

/* ── WhatsApp 플로팅 버튼 ───────────────────────────────────── */
.whatsapp-fab{ position:fixed; right:16px; bottom:76px; z-index:29; background:#25D366; color:#fff; border:none;
  border-radius:100px; padding:14px 18px; box-shadow:0 8px 24px rgba(37,211,102,0.4); font-size:14px; font-weight:700;
  display:flex; align-items:center; gap:7px; text-decoration:none; }

/* ── 장바구니 / 주문서 모달 ─────────────────────────────────── */
.overlay{ position:fixed; inset:0; background:rgba(43,34,38,0.55); z-index:40; display:none; }
.overlay.open{ display:block; }
.sheet{ position:fixed; left:0; right:0; bottom:0; max-height:86vh; background:var(--white); border-radius:20px 20px 0 0; z-index:41; display:flex; flex-direction:column; transform:translateY(100%); transition:transform .25s ease; }
.sheet.open{ transform:translateY(0); }
.sheet-header{ padding:16px 18px 10px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(125,42,69,0.1); }
.sheet-title{ font-family:'Noto Serif KR'; font-size:17px; font-weight:700; color:var(--burgundy-dark); }
.sheet-close{ background:none; border:none; font-size:20px; color:var(--ink-soft); cursor:pointer; }
.sheet-body{ padding:12px 18px; overflow-y:auto; flex:1; }
.sheet-footer{ padding:14px 18px 22px; border-top:1px solid rgba(125,42,69,0.1); }

.cart-item{ display:flex; gap:10px; padding:10px 0; border-bottom:1px solid rgba(125,42,69,0.06); align-items:center; }
.cart-item img{ width:52px; height:52px; border-radius:10px; object-fit:cover; background:var(--dusty-pink); flex-shrink:0; }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-name{ font-size:12.5px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-item-meta{ font-size:11px; color:var(--ink-soft); margin-top:2px; }
.cart-item-delivery{ font-size:10.5px; margin-top:3px; font-weight:600; }
.cart-item-delivery.instock{ color:#2A9D5F; }
.cart-item-delivery.preorder{ color:var(--gold); }
.qty-control{ display:flex; align-items:center; gap:8px; }
.qty-btn{ width:26px; height:26px; border-radius:8px; border:1px solid rgba(125,42,69,0.2); background:var(--white); color:var(--burgundy); font-size:14px; cursor:pointer; }
.qty-num{ font-size:13px; font-weight:600; min-width:16px; text-align:center; }
.cart-remove{ font-size:11px; color:var(--ink-soft); text-decoration:underline; background:none; border:none; cursor:pointer; margin-left:8px; }

.cart-total-row{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.cart-info-note{ background:var(--ivory); border-radius:12px; padding:12px 14px; margin-bottom:12px; font-size:11.5px; color:var(--ink); line-height:1.6; }
.cart-info-note > div{ display:flex; align-items:flex-start; gap:6px; margin-bottom:4px; }
.cart-info-icon{ flex-shrink:0; }
.cart-info-link{ display:inline-block; margin-top:2px; font-size:11.5px; font-weight:700; color:var(--burgundy); text-decoration:none; }
.cart-total-label{ font-size:13px; color:var(--ink-soft); }
.cart-total-value{ font-size:19px; font-weight:700; color:var(--burgundy-dark); }
.btn-primary{ width:100%; background:var(--burgundy); color:#fff; border:none; border-radius:14px; padding:14px; font-size:14.5px; font-weight:700; cursor:pointer; }
.btn-primary:disabled{ background:var(--sold-gray); cursor:not-allowed; }
.about-wa-btn{ display:block; background:#25D366; text-decoration:none; text-align:center; }

.form-field{ margin-bottom:12px; }
.form-field label{ display:block; font-size:12px; color:var(--ink-soft); margin-bottom:5px; font-weight:600; }
.form-field input, .form-field textarea{ width:100%; border:1px solid rgba(125,42,69,0.2); border-radius:10px; padding:10px 12px; font-size:13.5px; font-family:inherit; background:var(--ivory); }
.form-field textarea{ resize:vertical; min-height:60px; }

.order-success{ text-align:center; padding:30px 10px; }
.order-success .icon{ font-size:40px; margin-bottom:10px; }
.order-success h3{ color:var(--burgundy-dark); margin-bottom:8px; }
.order-success p{ font-size:13px; color:var(--ink-soft); line-height:1.6; }

.empty-cart{ text-align:center; padding:40px 10px; color:var(--ink-soft); font-size:13px; }

/* ── 배송 예정일 안내 ──────────────────────────────────────── */
.delivery-box{ border-radius:14px; padding:12px 14px; margin-bottom:18px; border:1px solid; }
.delivery-box.instock{ background:#EAF6EF; border-color:rgba(42,157,95,0.3); }
.delivery-box.preorder{ background:var(--mist,#F3EFE6); background:#FBF3E6; border-color:rgba(201,161,90,0.4); }
.delivery-label{ font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:3px; }
.delivery-detail{ font-size:11.5px; color:var(--ink-soft); margin-bottom:4px; }
.delivery-date{ font-size:12.5px; font-weight:700; color:var(--burgundy-dark); }

/* ── 안내 팝업(최소재고·선주문 모델) ──────────────────────── */
.intro-banner{ display:flex; align-items:center; gap:8px; background:var(--dusty-pink); padding:9px 14px; margin:0; }
.intro-banner-btn{ flex:1; display:flex; align-items:center; gap:7px; background:none; border:none; text-align:left; font-size:13px; font-weight:600; color:var(--burgundy-dark); padding:2px 0; cursor:pointer; min-height:32px; }
.intro-banner-close{ background:none; border:none; color:var(--burgundy); opacity:0.6; font-size:14px; padding:6px 8px; cursor:pointer; min-width:32px; min-height:32px; }
.intro-modal-overlay{ position:fixed; inset:0; background:rgba(43,34,38,0.6); z-index:60; display:flex; align-items:flex-end; justify-content:center; }
.intro-modal{ background:var(--white); border-radius:20px 20px 0 0; padding:26px 20px 22px; max-width:480px; width:100%; box-shadow:0 -10px 30px rgba(0,0,0,0.2); }
.intro-modal h3{ font-family:'Noto Serif KR'; font-size:18px; color:var(--burgundy-dark); margin-bottom:12px; }
.intro-modal .intro-row{ display:flex; gap:10px; margin-bottom:12px; align-items:flex-start; }
.intro-modal .intro-icon{ font-size:20px; flex-shrink:0; }
.intro-modal .intro-text{ font-size:13px; line-height:1.6; color:var(--ink); }
.intro-modal .intro-text b{ color:var(--burgundy); }
.intro-modal .intro-check{ display:flex; align-items:center; gap:8px; margin:14px 0; font-size:12.5px; color:var(--ink-soft); }
.intro-modal button.btn-primary{ margin-top:4px; }

/* ── 상품 상세 페이지 ──────────────────────────────────────── */
.pd-back{ position:sticky; top:0; z-index:10; background:var(--ivory); padding:12px 16px; display:flex; align-items:center; gap:8px; border-bottom:1px solid rgba(125,42,69,0.08); }
.pd-back a{ color:var(--burgundy); text-decoration:none; font-size:14px; font-weight:600; display:flex; align-items:center; gap:6px; }
.pd-lang-switch{ margin-bottom:0; margin-left:10px; }
.pd-lang-switch .lang-btn{ padding:4px 8px; font-size:11px; background:rgba(125,42,69,0.08); color:var(--burgundy); border-color:rgba(125,42,69,0.18); }
.pd-lang-switch .lang-btn.active{ background:var(--burgundy); color:var(--white); border-color:var(--burgundy); }

.pd-gallery{ position:relative; background:var(--dusty-pink); }
.pd-gallery img{ width:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.pd-gallery .source-badge{ position:absolute; bottom:10px; left:10px; }
.pd-thumbs{ display:flex; gap:8px; padding:10px 16px; overflow-x:auto; }
.pd-thumbs img{ width:56px; height:56px; border-radius:10px; object-fit:cover; border:2px solid transparent; cursor:pointer; flex-shrink:0; }
.pd-thumbs img.active{ border-color:var(--burgundy); }

.pd-body{ padding:18px 16px 40px; }
.pd-cat{ font-size:11px; color:var(--gold); letter-spacing:1px; font-weight:700; margin-bottom:6px; }
.pd-brand{ font-size:13px; color:var(--ink-soft); font-weight:600; margin-bottom:4px; }
.pd-name{ font-family:'Noto Serif KR'; font-size:20px; font-weight:700; color:var(--ink); line-height:1.35; margin-bottom:10px; }
.pd-badges{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.pd-price-box{ background:var(--white); border-radius:16px; padding:16px; box-shadow:var(--shadow); margin-bottom:18px; }
.pd-price{ font-size:26px; font-weight:800; color:var(--burgundy-dark); }
.pd-price .kip{ font-size:15px; font-weight:600; margin-left:2px; }
.pd-volume{ font-size:12.5px; color:var(--ink-soft); margin-top:4px; }
.pd-stock-note{ font-size:12px; margin-top:8px; font-weight:600; }
.pd-stock-note.low{ color:var(--gold); }
.pd-stock-note.sold{ color:var(--sold-gray); }

.pd-section{ margin-bottom:22px; }
.pd-section-title{ font-family:'Noto Serif KR'; font-size:15px; font-weight:700; color:var(--burgundy-dark); margin-bottom:8px; padding-bottom:6px; border-bottom:1px solid rgba(125,42,69,0.12); }
.pd-desc{ font-size:13.5px; line-height:1.7; color:var(--ink); white-space:pre-line; }
.pd-desc.empty{ color:var(--ink-soft); font-style:italic; }
.pd-no-photo{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--ink-soft); font-size:13px; }

/* ── 피부타입 적합도 섹션 (KG 카탈로그 · 2026-09-11 신설) ──────────────
   근거: automation/skin_fit.py 가 성분 상식을 조합해 계산 — 임상 판정이 아니다.
   색: 기존 재고배지 색을 그대로 재사용한다(신규 색 도입 금지) —
       적합=--success(재입고 표시와 같은 초록) · 주의=--gold(품절임박과 같은 골드) ·
       정보없음=--ink-soft(회색, 눈에 띄지 않게). */
.pd-skinfit-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pd-skinfit-cell{ display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:10px 12px; border-radius:12px; background:var(--ivory); border:1px solid rgba(125,42,69,0.10); }
.pd-skinfit-type{ font-size:13px; font-weight:700; color:var(--ink); }
.pd-skinfit-verdict{ font-size:12px; font-weight:700; padding:3px 9px; border-radius:100px; white-space:nowrap; }
.pd-skinfit-verdict.good{ background:rgba(42,157,95,0.14); color:var(--success); }
.pd-skinfit-verdict.caution{ background:rgba(201,161,90,0.22); color:#8A6A28; }
.pd-skinfit-verdict.unknown{ background:rgba(110,90,95,0.10); color:var(--ink-soft); }
.pd-skinfit-caution-title{ font-size:12px; font-weight:700; color:var(--ink-soft); margin-top:14px; margin-bottom:6px; letter-spacing:0.2px; }
.pd-skinfit-caution-box{ margin-top:10px; padding:11px 13px; border-radius:12px;
  background:rgba(201,161,90,0.14); border:1px solid rgba(201,161,90,0.35);
  font-size:12.5px; line-height:1.6; color:#5C4419; }
.pd-skinfit-caution-box.none{ background:var(--ivory); border-color:rgba(125,42,69,0.10); color:var(--ink-soft); font-style:italic; }
.pd-skinfit-caution-icon{ margin-right:4px; }
.pd-skinfit-disclaimer{ margin-top:10px; font-size:11px; line-height:1.6; color:var(--ink-soft); }
.pd-skinfit-link{ display:inline-block; margin-top:8px; font-size:12.5px; font-weight:700; color:var(--burgundy); text-decoration:underline; }

/* ── 고민 태그 · 핵심 성분 강조 (KG 카탈로그 · 2026-09-11 신설) ──────────
   대표이사 지시: "이 화장품은 기미에 좋다"를 손님이 한눈에 알도록.
   색은 새로 만들지 않고 기존 토큰만 재사용한다(위 피부타입 섹션과 같은 원칙). */
.concern-tag{ background:var(--burgundy); color:#fff; }
.core-ings{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.ing-chip{ display:inline-block; background:var(--gold); color:#412402; font-size:12.5px; font-weight:700; padding:5px 12px; border-radius:8px; }
.ing-toggle{ font-size:12.5px; font-weight:700; color:var(--burgundy); cursor:pointer; user-select:none; margin-bottom:4px; }
.ing-toggle::before{ content:"▸ "; }
.ing-toggle.open::before{ content:"▾ "; }
.ing-detail{ display:none; }
.ing-detail.open{ display:block; }
.ing-row{ margin-bottom:5px; }
.ing-cta{ display:inline-block; margin-top:10px; font-size:12.5px; font-weight:700; color:var(--burgundy); text-decoration:underline; }

@media (min-width:900px){
  .pd-skinfit-type{ font-size:14px; }
  .pd-skinfit-verdict{ font-size:13px; }
  .pd-skinfit-caution-box{ font-size:13.5px; }
  .pd-skinfit-disclaimer{ font-size:12px; }
  .pd-skinfit-link{ font-size:13.5px; }
}

.pd-add-bar{ position:fixed; left:0; right:0; bottom:0; background:var(--white); padding:12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow:0 -6px 20px rgba(90,30,51,0.12); display:flex; gap:10px; z-index:20; }
.pd-qty{ display:flex; align-items:center; gap:10px; background:var(--ivory); border-radius:12px; padding:0 10px; }
.pd-qty button{ width:32px; height:44px; border:none; background:none; font-size:18px; color:var(--burgundy); cursor:pointer; }
.pd-qty span{ font-weight:700; min-width:18px; text-align:center; }

@media (min-width:600px) and (max-width:899px){
  .pd-gallery img{ max-width:520px; margin:0 auto; }
  .pd-add-bar{ max-width:520px; left:50%; transform:translateX(-50%); border-radius:16px 16px 0 0; }
}

/* ── 상품 상세 · 데스크탑 2단 레이아웃 (다이소몰식: 왼쪽 사진 / 오른쪽 정보) ── */
@media (min-width:900px){
  body{ padding-bottom:0 !important; }
  .pd-back{ padding:16px 40px; }
  .pd-layout{ display:flex; align-items:flex-start; gap:48px; max-width:1160px; margin:0 auto; padding:32px 40px 60px; }
  .pd-media{ flex:0 0 480px; position:sticky; top:76px; }
  .pd-gallery{ border-radius:18px; overflow:hidden; }
  .pd-gallery img{ max-width:none; aspect-ratio:1/1; }
  .pd-thumbs{ padding:12px 0 0; }
  .pd-thumbs img{ width:72px; height:72px; }
  .pd-info{ flex:1; min-width:0; max-width:560px; }
  .pd-body{ padding:0; }
  .pd-cat{ font-size:13px; }
  .pd-brand{ font-size:15px; }
  .pd-name{ font-size:28px; margin-bottom:14px; }
  .pd-price{ font-size:34px; }
  .pd-price .kip{ font-size:19px; }
  .pd-volume{ font-size:14px; }
  .pd-stock-note{ font-size:13.5px; }
  .pd-section-title{ font-size:17px; }
  .pd-desc{ font-size:15px; line-height:1.8; }
  .pd-section-title, .delivery-label{ font-size:17px; }
  .delivery-detail, .delivery-date{ font-size:14px; }
  .pd-add-bar{ position:static; max-width:none; left:auto; right:auto; bottom:auto; transform:none;
    box-shadow:none; border-radius:14px; padding:0; margin-top:24px; background:none; }
  .pd-qty{ height:52px; }
  .pd-qty button{ height:52px; font-size:20px; }
  .pd-add-bar #addCartBtn{ font-size:16px; padding:16px; }
}

@media (min-width:600px){
  .product-grid{ grid-template-columns:1fr 1fr 1fr; }
  .sheet{ left:50%; right:auto; width:420px; margin-left:-210px; border-radius:20px; bottom:20px; max-height:80vh; }
}

/* ── 브랜드별 보기 (09_COS 지시 260820 §1) ─────────────────────────
   브랜드가 94개라 접어 둔다. 폰에서 가로로 미는 것보다 한 번 눌러 펴는 편이 빠르다.
   손가락 탭 영역은 44px 이상으로 잡는다 — 라오스 손님 대부분이 폰이다. */
.brand-wrap{ padding:0 16px 10px; }
.brand-toggle{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; min-height:44px; padding:11px 16px;
  background:var(--white); color:var(--burgundy);
  border:1px solid rgba(125,42,69,0.18); border-radius:100px;
  font-size:14px; font-weight:600; font-family:inherit; cursor:pointer;
  text-align:left;
}
.brand-toggle:hover{ border-color:rgba(125,42,69,0.42); }
.brand-toggle:focus-visible{ outline:2px solid var(--burgundy); outline-offset:2px; }
.brand-toggle.picked{ background:var(--burgundy); color:#fff; border-color:var(--burgundy); }
.brand-caret{ flex:0 0 auto; transition:transform .18s ease; font-size:12px; }
@media (prefers-reduced-motion:reduce){ .brand-caret{ transition:none; } }
.brand-toggle.open .brand-caret{ transform:rotate(180deg); }
.brand-panel{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top:10px; padding:12px;
  background:var(--cream,#FBF1E3); border-radius:14px;
  max-height:46vh; overflow-y:auto;
}
.brand-panel[hidden]{ display:none; }
.brand-panel .chip{ min-height:38px; display:flex; align-items:center; }

/* ★ 2026-09-08 밤 — 담은 뒤 사용법 + 다른 카테고리 추천 (대표이사 지시) */
#crossSellBox{ display:none; margin-top:14px; }
#crossSellBox.open{ display:block; animation:csFade .25s ease; }
@keyframes csFade{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }
.cs-how{ background:var(--dusty-pink); border-radius:12px; padding:12px 14px; margin-bottom:14px; }
.cs-how-ttl{ font-size:12.5px; font-weight:700; color:var(--burgundy-dark); margin-bottom:4px; }
.cs-how-txt{ font-size:13px; color:var(--burgundy-dark); line-height:1.5; white-space:pre-line; }
.cs-ttl{ font-size:13.5px; font-weight:700; color:var(--burgundy-dark); margin-bottom:8px; }
.cs-row{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.cs-card{ flex:0 0 110px; text-decoration:none; color:inherit; }
.cs-card img, .cs-noimg{ width:110px; height:110px; object-fit:cover; border-radius:10px; background:var(--dusty-pink); display:block; }
.cs-name{ font-size:11.5px; color:var(--burgundy-dark); margin-top:6px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cs-price{ font-size:12px; font-weight:700; color:var(--burgundy); margin-top:2px; }
