/* ==========================================================
   Skin concern → product panel (opens under the first row)
   ========================================================== */
.concern.has-panel { cursor: pointer; }
.concern.has-panel:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.concern.has-panel.is-open { box-shadow: 0 0 0 1px var(--gold), 0 30px 50px -28px rgba(42,31,40,0.45); }
.concern-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.concern-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.concern.is-open .concern-more svg { transform: rotate(180deg); }

.concern-panel { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); scroll-margin-top: 120px; }
.concern-panel[hidden] { display: none; }
.concern-panel.open { grid-template-rows: 1fr; }
.cp-wrap { overflow: hidden; min-height: 0; }
.cp-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--g-bright); opacity: 0; transform: translateY(-12px); transition: opacity 0.45s var(--ease) 0.1s, transform 0.55s var(--ease) 0.05s; }
.concern-panel.open .cp-inner { opacity: 1; transform: none; }
.cp-feature { position: relative; min-height: 100%; background: var(--g-bright); }
.cp-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-content { padding: clamp(24px, 3.2vw, 44px); display: grid; gap: 14px; align-content: start; }
.cp-eyebrow { display: flex; gap: 12px; align-items: baseline; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.cp-eyebrow [lang="ko"] { font-family: var(--font-kr); letter-spacing: 0.06em; color: var(--gold); text-transform: none; }
.cp-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; padding-right: 40px; }
.cp-title em { font-weight: 500; color: var(--gold); }
.cp-lead { color: var(--ink-soft); font-size: 0.95rem; max-width: 40em; }
.cp-products { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: 6px; }
.cp-product { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--porcelain); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.cp-product:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(42,31,40,0.5); }
.cp-img { aspect-ratio: 1; background: #fff; overflow: hidden; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cp-product:hover .cp-img img { transform: scale(1.04); }
.cp-info { padding: 14px 14px 16px; display: grid; gap: 4px; align-content: start; }
.cp-step { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.cp-info h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.cp-size { font-size: 0.75rem; color: var(--ink-soft); }
.cp-info p { font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); margin-top: 4px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cp-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cp-close:hover { background: var(--ink); color: var(--paper); }
.cp-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 900px) {
  .cp-inner { grid-template-columns: 1fr; }
  .cp-feature { min-height: 0; aspect-ratio: 16 / 9; }
  .cp-feature img { object-position: center 40%; }
  .cp-close { background: rgba(255,255,255,0.92); }
  .concern-more { font-size: 0.6rem; letter-spacing: 0.12em; margin-top: 4px; }
}
@media (max-width: 640px) {
  .cp-products { grid-template-columns: 1fr; }
  .cp-product { grid-template-columns: 110px 1fr; grid-template-rows: none; }
  .cp-img { aspect-ratio: auto; height: 100%; min-height: 110px; }
  .cp-info { padding: 12px; }
  .cp-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .concern-panel, .cp-inner, .cp-product, .cp-img img { transition: none; }
}

/* Brightening panel: photo slideshow + 4 products */
.cp-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-set { border-color: var(--gold); }
.cp-set .cp-step { color: var(--peony-deep); }
.cp-slider { overflow: hidden; background: #fff; }
.cp-track { list-style: none; position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.cp-track::-webkit-scrollbar { display: none; }
.cp-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; background: #fff; }
.cp-feature .cp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-slide.cover img { object-fit: cover; }
.cp-slide.contain img { object-fit: contain; padding: 18px; }
.cp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cp-nav:hover { background: var(--ink); color: var(--paper); }
.cp-nav.prev { left: 12px; } .cp-nav.next { right: 12px; }
.cp-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.cp-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); background: rgba(255,255,255,0.8); padding: 0; cursor: pointer; transition: width 0.3s var(--ease), background 0.3s; }
.cp-dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--ink); }
@media (max-width: 1100px) { .cp-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cp-feature.cp-slider { aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .cp-products { grid-template-columns: 1fr; } .cp-img img { object-fit: contain; background: #fff; } }
.cp-slide.grey { background: linear-gradient(180deg, #5f5c5c, #9a9796 50%, #5f5c5c); } .cp-slide.grey img { padding: 0; }

/* Brightening panel: simple numbered Centella slideshow */
.cp-inner.cp-simple { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px); text-align: center; }
.cp-simple .cp-eyebrow { justify-content: center; flex-wrap: wrap; }
.cp-simple .cp-title { padding: 0 44px; }
.cp-simple .cp-slider { position: relative; width: min(100%, 680px); aspect-ratio: 1 / 1; margin-top: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cp-simple .cp-track { position: absolute; inset: 0; }
.cp-simple .cp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cp-cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1; white-space: nowrap; background: rgba(255,255,255,0.92); border: 1px solid var(--line); padding: 4px 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 520px) { .cp-cap { font-size: 0.6rem; letter-spacing: 0.08em; } }
.cp-simple .cp-eyebrow { padding: 0 44px; }

/* Brightening card links to its own page */
.concern.has-link { position: relative; cursor: pointer; }
.concern-link { position: absolute; inset: 0; z-index: 3; }
.concern-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Centella Brightening page: big simple slideshow */
.brightening-page { padding-top: clamp(20px, 3vw, 36px); }
.bp-slider { position: relative; width: min(100%, 620px); margin: 0 auto; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.bp-slider .cp-track { position: absolute; inset: 0; }
.bp-slider .cp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brightening-page .actions { margin-top: 28px; }
.bp-photo { width: min(100%, 620px); margin: 0 auto; }
.bp-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.bp-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); max-width: 1040px; margin: 0 auto; }
.bp-line { margin: 0; display: grid; gap: 14px; }
.bp-line img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.bp-line figcaption { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; }
.bp-line figcaption span { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 4px; }
@media (max-width: 700px) { .bp-lines { grid-template-columns: 1fr; } }


/* align all View All Products links on one line */
.concern-body { flex: 1; display: flex; flex-direction: column; align-items: center; }
.concern-more { margin-top: auto; padding-top: 12px; }
