/* Page-specific styles. */
.muted { color: var(--muted); }

/* ---------- Home: hero ---------- */

/* ---------- Home: feature banners & lines ---------- */
.feature-banner { position: relative; display: block; overflow: hidden; background: var(--surface); }
.feature-banner img { width: 100%; height: clamp(240px, 24vw, 340px); object-fit: cover; object-position: right center; transition: transform 1.2s var(--ease); }
.feature-banner:hover img { transform: scale(1.02); }
.feature-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 64px; }
.feature-copy h2 { font-size: 28px; font-weight: 300; line-height: 1.4; letter-spacing: -0.02em; }
.feature-copy h2 strong { font-weight: 500; }
.feature-copy p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.feature-copy .link-more { text-decoration: none; margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.feature-pharmacy .feature-copy { align-items: center; text-align: center; color: #fff; background: rgba(20,20,20,.42); }
.feature-pharmacy .feature-copy .link-more { color: #fff; border-color: #fff; }
.feature-pharmacy img { object-position: center; }
@media (max-width: 1023px) {
  .feature-banner img { height: 280px; object-position: 78% center; }
  .feature-copy { padding: 0 24px; }
  .feature-copy h2 { font-size: 21px; }
}

@keyframes fade { from { opacity: 0; } }

/* ---------- Product list ---------- */
.chip svg { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }
.type-filter { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.type-filter::-webkit-scrollbar { display: none; }
.type-filter button { flex-shrink: 0; font-size: 14px; color: var(--muted); transition: color .2s; }
.type-filter button:hover { color: var(--ink); }
.type-filter [aria-pressed="true"] { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: start; }
.pdp-image { aspect-ratio: 1; background: var(--surface); }
/* Desktop: image + info sit together in the center; the square never gets taller than the screen. */
/* The info column scrolls with the page; the photo stays put until the product tabs arrive.
   The photo is capped so the info column is always taller than it (otherwise there is nothing to pin),
   and the gap above the tabs is padding on the info column so the photo's column reaches the tabs. */
@media (min-width: 1024px) {
  .pdp { display: flex; justify-content: center; align-items: stretch; }
  .pdp-gallery { flex: 0 1 min(calc(100svh - var(--header-h) - 120px), 560px); min-width: 0; }
  .pdp-image { position: sticky; top: calc(var(--header-h) + 56px); } /* stays where it starts (header + .page-product .pdp padding-top); no shift when the header hides/shows */
  .pdp-info { flex: 0 0 460px; padding-bottom: 120px; }
  .page-product .pdp-tabs { margin-top: 0; } /* beats the base rule further down */
}
.pdp-image img { width: 100%; height: 100%; object-fit: contain; }
/* Prev/next product arrows, fixed at the screen's left/right edges while scrolling; same circle as .rail-nav. */
.pdp-step { position: fixed; z-index: 20; top: 50%; translate: 0 -50%; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.9); transition: border-color .2s; }
.pdp-step:hover { border-color: var(--ink); }
.pdp-step svg { width: 18px; height: 18px; }
.pdp-step-prev { left: 24px; }
.pdp-step-next { right: 24px; }
@media (max-width: 1023px) { .pdp-step { width: 36px; height: 36px; } .pdp-step svg { width: 14px; height: 14px; } .pdp-step-prev { left: 8px; } .pdp-step-next { right: 8px; } }
.pdp-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pdp-title { font-size: 26px; font-weight: 500; line-height: 1.4; letter-spacing: -0.025em; }
.pdp-summary { margin-top: 14px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.pdp-rating .num { font-weight: 500; }
.pdp-rating-count { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pdp-price { margin-top: 24px; font-size: 26px; }
.pdp-price .price { font-weight: 600; }
/* Sold out: badge beside the price (as Shopify's default theme does); the buy button turns into the restock alert. */
.pdp-price { display: flex; align-items: center; gap: 12px; }
/* Clinic line: a short note where the price would be; the only action is the clinic finder. */
.pdp-offline { margin-top: 24px; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.pdp-offline b { color: var(--brand); font-size: 13px; font-weight: 600; }
.pdp-find { margin-top: 20px; }
.pdp-find .btn { width: 100%; height: 56px; }
.buybar-actions > :only-child { grid-column: 1 / -1; }
.pdp-soldout { padding: 4px 10px; border: 1px solid var(--brand); color: var(--brand); font-size: 13px; font-weight: 600; line-height: 1.4; }
.pdp-specs { margin-top: 20px; font-size: 14px; }
.pdp-specs div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pdp-specs dt { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pdp-specs dt::before { content: ''; width: 9px; height: 9px; border: 1px solid currentColor; }
.pdp-specs dd { text-align: right; color: var(--ink-2); }
.pdp-specs + .pdp-facts { border-top: 0; padding-top: 0; }
.pdp-facts { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; }
.pdp-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.pdp-facts dt { color: var(--muted); }
.pdp-facts dd { color: var(--ink-2); line-height: 1.6; }
.pdp-qty, .pdp-total { display: flex; align-items: center; justify-content: space-between; }
.pdp-qty > span, .pdp-total > span { font-size: 14px; color: var(--ink-2); }
.pdp-total { margin-top: 16px; }
.pdp-cta { display: grid; gap: 8px; margin-top: 28px; }
.pdp-cta .btn { height: 56px; }
.pdp-international { width: 100%; margin-top: 8px; }
/* Quantity and total sit above the cart/buy pair; the pharmacy finder spans the row below. */
.pdp-cta .buy-panel { padding: 20px 0 0; border-top: 1px solid var(--line); }
.pdp-cta .buy-panel .pdp-actions { margin-top: 20px; }
.pdp-cta .buy-panel .pdp-actions .btn { height: 56px; }
.modal .buy-panel { margin: 0; padding: 0; }
.pdp-total strong { font-size: 22px; }
.pdp-total .price { font-weight: 600; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.pdp-actions .btn { height: 52px; }
.pdp-tabs { position: sticky; top: var(--header-offset); transition: top .3s var(--ease); z-index: 20; margin-top: 120px; background: #fff; border-bottom: 1px solid var(--line); }
.pdp-tabs .tabs { justify-content: center; gap: 0; border-bottom: 0; }
.pdp-tabs .tabs { overflow-x: auto; scrollbar-width: none; }
.pdp-tabs .tabs a { flex: 1 0 auto; max-width: 240px; text-align: center; padding: 18px 12px; white-space: nowrap; }
/* Tab jumps land the heading just under the sticky tabs instead of under 96px of section padding. */
.pdp-section { padding-top: 96px; scroll-margin-top: -40px; }
.pdp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.pdp-section-head h2 { font-size: 21px; font-weight: 500; }
.pdp-section-note { padding: 16px 0; font-size: 13px; color: var(--muted); }
.pdp-detail { position: relative; max-width: 840px; margin: 56px auto 0; }
/* Detail art sits right under the tabs bar; scroll-margin = the gap other sections show under the bar. */
#details { padding-top: 0; scroll-margin-top: 56px; }
#details .pdp-detail { margin-top: 0; }
.pdp-detail img { width: 100%; }
.pdp-detail.is-collapsed { max-height: 1600px; overflow: hidden; }
.pdp-detail-more { display: flex; justify-content: center; padding-top: 40px; }
.pdp-detail.is-collapsed .pdp-detail-more { position: absolute; left: 0; right: 0; bottom: 0; padding: 160px 0 0; background: linear-gradient(rgba(255,255,255,0), #fff 70%); }
.pdp-detail-more .btn { min-width: 320px; background: #fff; }
.pdp-detail-more .btn svg { width: 16px; height: 16px; }
.pdp-accordion { max-width: 840px; margin: 72px auto 0; border-top: 1px solid var(--ink); }
.info-table { display: grid; font-size: 14px; }
.info-table div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.info-table dt { color: var(--muted); }
.info-table dd { color: var(--ink-2); line-height: 1.7; }
.review-summary { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.review-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.review-score strong { font-size: 44px; font-weight: 500; line-height: 1; }
.review-score > span:last-child { font-size: 13px; color: var(--muted); }
.review-bars { display: grid; gap: 8px; max-width: 420px; }
.review-bars li { display: grid; grid-template-columns: 32px 1fr 24px; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.review-bars i { height: 4px; background: var(--line-soft); }
.review-bars b { display: block; height: 100%; background: var(--ink); }
.review-toolbar { display: flex; justify-content: flex-end; padding: 20px 0 4px; }
.review { padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-meta { font-size: 12px; color: var(--muted); }
.review-title { display: block; margin-top: 12px; font-size: 15px; font-weight: 500; }
.review-body { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.review-photos img { width: 88px; height: 88px; object-fit: cover; background: var(--surface); }
.photo-input { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb, .photo-add { position: relative; width: 80px; height: 80px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.photo-thumb button svg { width: 12px; height: 12px; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed #c9c9c9; color: var(--muted); font-size: 12px; cursor: pointer; }
.photo-add:hover, .photo-add:focus-within { border-color: var(--ink); color: var(--ink); }
.photo-add svg { width: 20px; height: 20px; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-add[hidden] { display: none; }
.qna-list li { border-bottom: 1px solid var(--line-soft); }
.qna-list summary { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-size: 14px; }
.qna-list summary::-webkit-details-marker { display: none; }
.qna-status { font-size: 12px; color: var(--muted); }
.qna-status.is-done { color: var(--ink); font-weight: 500; }
.qna-meta { font-size: 12px; color: var(--muted); }
.qna-body { padding: 0 0 24px 88px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.qna-body p + p { margin-top: 12px; }
.qna-answer { padding: 16px 20px; background: var(--surface-2); }
.pdp-related .product-grid { margin-top: 32px; }
.modal-product { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.modal-product img { width: 56px; height: 56px; object-fit: contain; background: var(--surface); }
.rating-input { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rating-input legend { width: 100%; }
.rating-input label { cursor: pointer; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input span { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); font-size: 13px; letter-spacing: 1px; color: var(--ink-2); }
.rating-input input:checked + span { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.rating-input input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Buy bar (appears when the main buy box scrolls away) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.04); transform: translateY(calc(100% + 32px)); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.buybar.is-visible { transform: none; }
body:has(main.page-product) { padding-bottom: 80px; } /* room for the buy bar so it never covers the footer */
.buybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.buybar-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.buybar-product img { width: 52px; height: 52px; object-fit: contain; background: var(--surface); }
.buybar-product strong { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }
.buybar-product span { font-size: 14px; }
.buybar-actions { display: grid; grid-template-columns: 160px 160px; gap: 8px; }

@media (max-width: 1023px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-image { margin: 0 calc(var(--gutter) * -1); aspect-ratio: auto; background: none; height: min(100vw, calc(100svh - var(--header-h) - 120px)); }
  .pdp-title { font-size: 21px; }
  .pdp-price { font-size: 22px; margin-top: 18px; }
  .pdp-tabs { margin-top: 72px; }
  .pdp-tabs .container { padding: 0; }
  .pdp-tabs .tabs { padding: 0 var(--gutter); }
  .pdp-tabs .tabs a { font-size: 14px; padding: 15px 10px; }
  .pdp-tabs .count { display: none; }
  .pdp-section { padding-top: 64px; scroll-margin-top: -16px; }
  .pdp-detail { margin: 32px calc(var(--gutter) * -1) 0; }
  #details { scroll-margin-top: 48px; }
  #details .pdp-detail { margin-top: 0; }
  .pdp-detail.is-collapsed { max-height: 1100px; }
  .pdp-detail-more .btn { min-width: 0; width: calc(100% - var(--gutter) * 2); }
  .info-table div { grid-template-columns: 1fr; gap: 4px; }
  .review-summary { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .review-bars { max-width: none; }
  .qna-list summary { grid-template-columns: 1fr; gap: 4px; }
  .qna-body { padding-left: 0; }
  .buybar-inner { height: 72px; }
  .buybar-product { display: none; }
  .pdp-cta, .page-product .buy-panel { display: none; }
  body:has(main.page-product) { padding-bottom: 72px; }
  .buybar-actions { flex: 1; grid-template-columns: 1fr 1fr; }
}

/* ---------- Cart & checkout ---------- */
.checkout-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 24px; margin-bottom: 40px; }
.head-count { font-size: 20px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.order-summary { position: sticky; top: calc(var(--header-offset) + 24px); transition: top .3s var(--ease); }
.summary-card { padding: 32px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.summary-card h2 { font-size: 17px; font-weight: 500; margin-bottom: 24px; }
.summary-cta { margin-top: 24px; height: 56px; }
.summary-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.cart-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-remove-selected { font-size: 13px; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); }
.cart-remove-selected:disabled { color: var(--subtle); cursor: default; }
.cart-item { position: relative; display: grid; grid-template-columns: 28px 120px 1fr; gap: 20px; padding: 28px 48px 28px 0; border-bottom: 1px solid var(--line-soft); }
.cart-check { padding-top: 2px; }
.cart-thumb img { width: 120px; height: 120px; object-fit: contain; background: var(--surface); }
.cart-name { font-size: 15px; line-height: 1.5; }
.cart-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-unit { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cart-unit b { color: var(--brand); font-weight: 500; }
/* Sold out / more than the stock left: the line says so and the order button waits. */
.cart-issue { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--danger); }
.cart-item.is-unavailable .cart-thumb img { opacity: .5; }
.cart-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.cart-line-total { font-size: 16px; }
.cart-line-total .price { font-weight: 600; }
.cart-delete { position: absolute; top: 20px; right: 0; color: var(--muted); }
.cart-delete svg { width: 18px; height: 18px; }
.cart-continue { margin-top: 24px; }
.mobile-cta { display: none; }
@media (max-width: 1023px) {
  .checkout-head { margin-bottom: 24px; padding-bottom: 16px; }
  .checkout-head .steps { font-size: 12px; gap: 8px; }
  .checkout-head .steps li { gap: 8px; }
  .checkout-head .steps li + li::before { width: 12px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .order-summary { position: static; }
  .summary-card { padding: 24px 20px; }
  .order-summary:not([data-international-form]) .summary-cta { display: none; }
  .cart-item { grid-template-columns: 24px 88px 1fr; gap: 14px; padding: 20px 36px 20px 0; }
  .cart-thumb img { width: 88px; height: 88px; }
  .cart-name { font-size: 14px; }
  .cart-row { margin-top: 12px; }
  .cart-line-total { font-size: 14px; }
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-cta > div { flex: 1; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
  .mobile-cta strong { font-size: 18px; color: var(--ink); }
  .mobile-cta .btn { flex: 1.3; }
  body:has(.mobile-cta) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.mobile-cta) #toast-root { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

.member-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; margin-bottom: 40px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.member-banner b { color: var(--ink); font-weight: 500; }
.checkout-country { max-width: 320px; margin-bottom: 28px; }
.checkout-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line-soft); }
.checkout-section:last-child { border-bottom: 0; }
.checkout-section h2 { display: flex; align-items: baseline; gap: 12px; font-size: 19px; font-weight: 500; margin-bottom: 24px; }
.checkout-section h2 .num { font-size: 13px; color: var(--subtle); font-weight: 500; }
.checkout-section h2 small { font-size: 13px; color: var(--muted); font-weight: 400; }
.section-desc, .section-sub { margin: -12px 0 20px; font-size: 13px; color: var(--muted); }
.section-sub { margin: 6px 0 0; }
.same-check { margin-bottom: 20px; }
.order-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.order-items li:first-child { padding-top: 0; }
.checkout-section:has(.order-items) { border-bottom: 0; } /* the last item's own line closes the section */
.order-items img { width: 64px; height: 64px; object-fit: contain; background: var(--surface); }
.order-items strong { display: block; font-weight: 400; line-height: 1.5; }
.order-items span { font-size: 12px; color: var(--muted); }
.pay-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.qna-lock { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; color: var(--muted); }
.verify-banner { margin-top: -16px; }
.stock-alert { padding: 16px 20px; margin-bottom: 32px; border: 1px solid var(--danger); background: #fdf3f3; font-size: 14px; color: var(--ink-2); }
.stock-alert b { color: var(--danger); font-weight: 500; }
.stock-alert ul { margin: 8px 0 10px; padding-left: 18px; list-style: disc; }
.checkout-region-note { margin-bottom: 24px; }
/* Kakao address search layer */
.postcode-layer { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); }
.postcode-box { display: flex; flex-direction: column; width: min(520px, 100%); height: min(560px, calc(100dvh - 32px)); background: #fff; }
.postcode-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.postcode-head strong { font-weight: 500; }
.postcode-frame { flex: 1; min-height: 0; }
/* Toss Payments widget: its iframes bring their own padding, so the box stays flat. */
.toss-box { margin-bottom: 16px; }
.toss-box[hidden] { display: none; }
.toss-state { padding: 24px 0; font-size: 13px; color: var(--muted); text-align: center; }
.toss-state.is-error { color: var(--danger); }
.pay-option { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; text-align: center; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.pay-options:has(> .pay-option:only-child) { grid-template-columns: 1fr; }
.pay-option.is-disabled { color: var(--subtle); background: var(--surface-2); cursor: not-allowed; }
.pay-option small { display: block; font-size: 11px; }
.checkout-section.agree-section { padding: 24px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.checkout-section.agree-section.is-invalid { border-color: var(--danger); }
.agree-error { display: none; margin-top: 12px; font-size: 13px; color: var(--danger); }
.is-invalid > .agree-error, .agree-box > .agree-error { display: block; }
.summary-preorder { margin: 16px 0 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.agree-all { padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); width: 100%; }
.agree-all b { font-weight: 500; }
.agree-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.agree-list .check { font-size: 13px; }
.agree-list .text-link { font-size: 12px; color: var(--muted); flex-shrink: 0; }
@media (max-width: 1023px) {
  .member-banner { flex-direction: column; align-items: flex-start; padding: 16px; margin-bottom: 28px; }
  .checkout-section { padding-bottom: 32px; margin-bottom: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .pay-options { grid-template-columns: 1fr; }
  .checkout-section.agree-section { padding: 20px 16px; }
}

/* ---------- Order complete / detail ---------- */
.complete-hero { padding: 40px 0 48px; text-align: center; }
.complete-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--ink); color: #fff; }
.complete-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.complete-hero h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.complete-hero > p { margin-top: 8px; color: var(--muted); }
.complete-no { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 20px; border: 1px solid var(--line); font-size: 14px; }
.complete-no b { font-weight: 600; }
.complete-guest { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.copy-btn { font-size: 12px; color: var(--muted); }
.bank-box { padding: 28px 32px; margin-bottom: 48px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.bank-box dl { display: grid; gap: 8px; margin: 14px 0 16px; font-size: 14px; }
.bank-box dl div { display: grid; grid-template-columns: minmax(80px, max-content) 1fr; column-gap: 20px; }
.bank-box dt { color: var(--muted); }
.bank-box strong { font-family: var(--font-en); font-size: 17px; font-weight: 600; }
.bank-box > p { font-size: 13px; color: var(--ink-2); }
.order-block { margin-bottom: 48px; }
.order-block h2 { font-size: 17px; font-weight: 500; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--ink); }
.complete-actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.complete-actions .btn { min-width: 200px; }
.order-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 16px 0 32px; }
.order-head h1 { font-size: 26px; font-weight: 500; margin-top: 6px; }
.order-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* A status, not a button: outlined text chip so it never reads as "주문 취소" action. */
.order-status-label { padding: 4px 10px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.order-status-label.is-cancelled { background: #fbeeee; color: var(--danger); }
.status-track { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 48px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; color: var(--subtle); text-align: center; }
.status-track li::before { content: ''; position: absolute; top: 5px; left: -50%; right: 50%; height: 1px; background: var(--line); }
.status-track li:first-child::before { display: none; }
.status-track i { position: relative; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.status-track .is-done, .status-track .is-current { color: var(--ink); }
.status-track .is-done::before, .status-track .is-current::before { background: var(--ink); }
.status-track .is-done i { background: var(--ink); border-color: var(--ink); }
.status-track .is-current i { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,.12); }
.status-track .is-current span { font-weight: 500; }
.order-cancelled { padding: 20px 24px; margin-bottom: 40px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
/* Cancel / return / exchange: request summary on the order page and the request form. */
.claim-box { padding: 24px 28px; margin-bottom: 40px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 14px; }
.claim-box h3 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.claim-box dl { display: grid; gap: 8px; }
.claim-box dl div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.claim-box dt { color: var(--muted); }
.claim-box p { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.claim-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.claim-form fieldset > .check { display: flex; margin-top: 10px; }
.claim-item { align-items: center !important; }
.claim-item img { width: 44px; height: 44px; object-fit: contain; background: var(--surface); }
.claim-hint { margin: 4px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.claim-estimate { margin-top: 4px; }
.claim-estimate .summary-rows { padding-top: 12px; border-top: 1px solid var(--line-soft); }
@media (max-width: 767px) { .claim-box { padding: 20px; } .claim-box dl div { grid-template-columns: 80px 1fr; } }
.status-track.is-short { grid-template-columns: repeat(4, 1fr); }
/* Back from Toss: confirming, failed, cancelled */
.pay-progress { padding: 96px 0; text-align: center; }
.pay-progress h1, .pay-result h1 { font-size: 19px; font-weight: 500; }
.pay-progress h1 { margin-top: 24px; }
.pay-progress p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pay-result .pay-detail { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.pay-result .complete-actions { margin-top: 28px; }
.pay-result .complete-actions .btn { margin-top: 0; }
.spinner { display: inline-block; width: 36px; height: 36px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1023px) {
  .complete-hero h1 { font-size: 22px; }
  .complete-no { flex-wrap: wrap; justify-content: center; }
  .bank-box { padding: 20px; margin: 0 0 40px; }
  .complete-actions { flex-direction: column-reverse; }
  .complete-actions .btn { width: 100%; }
  .order-head h1 { font-size: 20px; }
  .status-track { padding: 24px 0; }
  .status-track li { font-size: 11px; gap: 8px; }
}

/* ---------- Auth ---------- */
.auth-wrap { padding-top: 72px; padding-bottom: 40px; max-width: calc(440px + var(--gutter) * 2); }
.auth-head { text-align: center; margin-bottom: 40px; }
.auth-head h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.auth-head p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.auth-wrap .btn { height: 54px; }
.auth-links { display: flex; justify-content: space-between; margin: -4px 0 24px; font-size: 13px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; font-size: 13px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--ink); }
.agree-box { margin: 28px 0 24px; padding: 20px; border: 1px solid var(--line); }
@media (max-width: 1023px) {
  .auth-wrap { padding-top: 40px; }
  .auth-head { margin-bottom: 28px; }
  .auth-head h1 { font-size: 23px; }
}

/* ---------- Account ---------- */
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 56px 0 32px; }
.account-head h1 { font-size: 28px; font-weight: 500; margin-top: 8px; letter-spacing: -0.02em; }
.account-head p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.account-stats { display: grid; grid-template-columns: repeat(6, 1fr); padding: 28px 0; margin-bottom: 40px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.account-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; border-left: 1px solid var(--line); }
.account-stats li:first-child { border-left: 0; }
.account-stats strong { font-size: 24px; font-weight: 500; }
.account-stats span { font-size: 12px; color: var(--muted); }
.account-tabs { margin-bottom: 8px; }
.account-tools { display: flex; justify-content: flex-end; padding: 20px 0 8px; }
.order-row a { display: block; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.order-row-head { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); }
.order-row-status { margin-left: auto; color: var(--ink); font-weight: 500; }
.order-row-body { display: grid; grid-template-columns: 72px 1fr 20px; gap: 20px; align-items: center; margin-top: 14px; }
.order-row-body img { width: 72px; height: 72px; object-fit: contain; background: var(--surface); }
.order-row-body strong { display: block; font-size: 15px; font-weight: 400; margin-bottom: 4px; }
.order-row-body svg { width: 18px; height: 18px; color: var(--subtle); }
.order-row a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.profile-form { max-width: 640px; padding-top: 32px; }
.profile-form h2 { font-size: 17px; font-weight: 500; margin: 0 0 20px; }
.profile-form h2:not(:first-child) { margin-top: 40px; }
.profile-actions { display: flex; justify-content: flex-end; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-actions .btn { min-width: 160px; }
@media (max-width: 767px) { .profile-actions .btn { flex: 1; } }
/* 회원 탈퇴: a quiet link under the form, not a button next to 저장하기. */
.withdraw-row { max-width: 640px; margin-top: 48px; text-align: right; }
.withdraw-link { padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.withdraw-link:hover { color: var(--ink); }
.withdraw-link:disabled { cursor: default; opacity: .5; }
@media (max-width: 1023px) {
  .account-head { padding: 32px 0 24px; }
  .account-head h1 { font-size: 21px; }
  .account-stats { padding: 20px 0; margin-bottom: 28px; }
  .account-stats strong { font-size: 19px; }
  .account-stats span { font-size: 10px; text-align: center; }
  .order-row-head { flex-wrap: wrap; }
  .order-row-head .order-row-no { order: 3; flex-basis: 100%; font-size: 12px; color: var(--muted); }
}

/* ---------- Support & policy ---------- */
.support-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.support-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 12px; border: 1px solid var(--line); font-size: 14px; transition: border-color .2s; }
.support-shortcuts a:hover { border-color: var(--ink); }
.support-shortcuts svg { width: 26px; height: 26px; stroke-width: 1.2; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list summary > span { display: flex; gap: 16px; align-items: baseline; font-weight: 400; }
.faq-cat { flex-shrink: 0; width: 72px; font-style: normal; font-size: 12px; color: var(--muted); }
.faq-list .accordion-body { padding-left: 88px; }
.inquiry-form { max-width: 720px; }
.login-required { padding: 32px; background: var(--surface-2); border: 1px solid var(--line-soft); text-align: center; }
.login-required p { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-bottom: 20px; }
.policy-doc section { padding-bottom: 56px; }
.policy-doc h2 { font-size: 19px; font-weight: 500; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); }
.policy-doc p { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin-bottom: 12px; }
@media (max-width: 1023px) {
  .support-shortcuts { grid-template-columns: 1fr 1fr; }
  .support-shortcuts a { padding: 20px 8px; font-size: 13px; }
  .faq-list summary > span { flex-direction: column; gap: 2px; }
  .faq-list .accordion-body { padding-left: 0; }
}

/* ---------- Home: brand intro & where to buy ---------- */
.feature-pharmacy img { height: clamp(300px, 28vw, 380px); }
.feature-actions { display: flex; gap: 8px; margin-top: 28px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--surface); border-color: var(--surface); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
@media (max-width: 1023px) {
  .feature-pharmacy img { height: 340px; }
  .feature-actions { flex-direction: column; width: 100%; max-width: 280px; }
}

/* ---------- Home: brand film & story ---------- */
body.is-home .site-header { position: fixed; left: 0; right: 0; }
.site-header.is-over-film { background: transparent; backdrop-filter: none; border-bottom-color: transparent; color: #fff; }
.site-header.is-over-film .header-logo img { filter: brightness(0) invert(1); }
.site-header.is-over-film .header-nav > a, .site-header.is-over-film .nav-drop > button, .site-header.is-over-film .header-lang, .site-header.is-over-film .icon-btn { color: #fff; }
.site-header.is-over-film .header-nav > a::after { background: #fff; }
.site-header.is-over-film .nav-sep { background: rgba(255,255,255,.4); }
.site-header { transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.home-film { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: #111; overflow: hidden; }
.home-film video { width: 100%; height: 100%; object-fit: cover; }
.home-film::after { content: ''; position: absolute; inset: 0 0 auto; height: 160px; background: linear-gradient(rgba(0,0,0,.35), transparent); pointer-events: none; }
/* The whole film opens YouTube in a new tab (nothing shows on hover). */
.film-link { position: absolute; inset: 0; z-index: 0; }

/* Brand statement = pyderin.com's second hero (.main-slider2 in public/css/sections/hero-slider.css and
   main-style.css): same photo with no overlay, same type, copy 150px from the left, lines rising in. */
.home-statement { position: relative; height: 910px; min-height: 500px; max-height: 100vh; color: #fff; overflow: hidden; }
.home-statement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statement-copy { position: absolute; top: 50%; left: 150px; right: var(--gutter); z-index: 1; max-width: 800px; transform: translateY(-50%); }
.statement-copy h1, .statement-copy p { overflow: hidden; }
.statement-copy h1 { margin-bottom: 40px; font-size: 50px; font-weight: 700; line-height: 1.5; letter-spacing: -2px; }
.statement-copy p { font-size: 32px; font-weight: 400; line-height: 1.5; letter-spacing: -1.28px; }
.statement-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; padding-bottom: 6px; border-bottom: 1px solid #fff; font-size: 14px; font-weight: 500; }
.statement-link svg { width: 16px; height: 16px; }
.statement-line { display: block; }
/* The link (not on pyderin.com) rises in after the last line. */
.statement-line, .statement-link { opacity: 0; transform: translateY(100%); }
.statement-copy.is-in :is(.statement-line, .statement-link) { opacity: 1; transform: none; transition: transform 1.2s ease-out var(--delay), opacity 1.2s ease-out var(--delay); }
@media (min-width: 2560px) {
  .home-statement { height: calc(100vw / 1.78); max-height: 1200px; }
}
/* Phones: portrait photo, smaller type, no animation (as on pyderin.com). */
@media (max-width: 768px) {
  .home-statement { height: 700px; }
  .statement-copy { left: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; }
  .statement-copy h1 { margin-bottom: 0; font-size: 24px; letter-spacing: -0.96px; }
  .statement-copy p { font-size: 15px; letter-spacing: -0.6px; }
  .statement-link { align-self: flex-start; margin-top: 30px; }
  .statement-line, .statement-link { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .statement-line, .statement-link { opacity: 1; transform: none; }
}
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } /* full container width, same side margins as the other sections */
.story-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.story-grid li:nth-child(2) { transition-delay: .12s; }
.story-grid li:nth-child(3) { transition-delay: .24s; }
/* Three columns: pyderin.com's brand story motion (initBrandStoryAnimation in public/js/main.js) instead
   of the fade. Out of view the middle card sits 50px above and the others 50px below; in view all three
   slide 0.8s into their places. Same movement as pyderin.com, ending where the cards always were. */
@media (min-width: 1024px) {
  .js .story-grid li.reveal { opacity: 1; transform: translateY(50px); transition: transform .8s ease-out; }
  .js .story-grid li.reveal:nth-child(2) { transform: translateY(-50px); }
  .js .story-grid.is-aligned li.reveal { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .story-grid li.reveal:nth-child(n) { transform: none; transition: none; }
}
.news-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px * 2) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.news-grid::-webkit-scrollbar { display: none; }
.news-grid > li { scroll-snap-align: start; }
.news-grid a { display: block; }
.news-thumb { display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; margin-bottom: 18px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-grid a:hover .news-thumb img { transform: scale(1.04); }
.news-grid strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 500; line-height: 1.55; }
.news-date { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.home-partners { text-align: center; padding-bottom: 96px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 60s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 1023px) {
  .story-grid { grid-template-columns: 1fr; gap: 12px; max-width: 420px; margin-inline: auto; }
  .news-grid { grid-auto-columns: 100%; gap: 12px; }
  .marquee ul { gap: 36px; padding-right: 36px; }
  .marquee img { height: 30px; }
}
/* Phones: portrait film at its own 4:5 ratio (like pyderin.com), researchers in frame, story cards as a sideways banner,
   only the latest press item. */
@media (max-width: 767px) {
  .home-film { height: auto; min-height: 0; aspect-ratio: 1080 / 1350; }
  .home-statement { height: 600px; }
  .home-statement img { object-position: 84% center; }
  .statement-copy { justify-content: flex-start; padding-top: 72px; }
  /* Story cards: an endless drifting strip (drift() in home.js), ~1.5 cards per screen so the next one is
     always coming in; still large enough to read the text in the images. No snap: it would fight the drift. */
  .home-story { padding-inline: 0; }
  .story-grid { display: flex; gap: 10px; max-width: none; overflow-x: auto; scrollbar-width: none; }
  .story-grid::-webkit-scrollbar { display: none; }
  .story-grid li { flex: none; width: 66vw; }
  .story-grid img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
  .story-grid img { aspect-ratio: 2 / 3; }
}

/* ---------- Carried-over brand pages (legacy snapshots) ---------- */
/* The old pages padded for a fixed 80px header; ours is in the flow, so remove that offset. */
.page-legacy .legacy { padding-top: 0 !important; position: relative; z-index: 0; isolation: isolate; } /* keeps old z-indexes (up to 999999) below the header */
.page-legacy .legacy:has(.page-hero) { padding-top: 0 !important; } /* the snapshot adds 80px again on pages with a hero (company): hero meets the header */
.page-legacy .legacy > .news-list-section, .page-legacy .legacy > .privacy-section, .page-legacy .legacy > .news-detail-section { padding-top: 80px; }
.page-legacy .legacy > .contact-section { padding-top: 100px; }
.page-legacy .legacy > .store-finder-container { padding-top: 0; }
/* Company: the old CSS only gave side margins below 769px, so 769–1290px screens ran edge to edge.
   Keep the 1291px content width and add the site gutter on both sides; the colour chart shrinks to fit. */
@media (min-width: 769px) {
  .page-legacy .legacy .new-container { max-width: calc(1291px + var(--gutter) * 2); padding-inline: var(--gutter); }
}
.page-legacy .legacy .color-image img { max-width: 100%; height: auto !important; max-height: 306px; } /* beats the inline height */
.legacy #map { position: relative; }
/* The shop's scroll-padding already clears the header; the guide's own offset would double it. */
.page-legacy .legacy .ga [id] { scroll-margin-top: 0; } /* beats legacy.css, which loads later */
.legacy .news-nav-btn.disabled { opacity: .35; pointer-events: none; }
.legacy .news-empty { padding: 64px 0; text-align: center; color: var(--muted); font-size: 14px; }
.legacy .contact-privacy-group.is-invalid .contact-checkbox-custom { border-color: var(--danger) !important; }
.legacy .contact-privacy-group.is-invalid .contact-privacy-text { color: var(--danger); }
.legacy-map-note { position: absolute; inset: 0; z-index: 1000; min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--surface); text-align: center; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* Press pages: square edges, filled thumbnails */
/* .legacy.legacy: outranks the snapshot CSS, which has the same selectors and loads later. */
.legacy.legacy .news-item-badge, .legacy.legacy .news-nav-list { border-radius: 0; }
/* One 1px line between items (the snapshot draws a 2px top plus a 1px bottom, so lines read 3px).
   Widths only: on phones the snapshot sets border: none for its card look, which this keeps. */
.legacy.legacy .news-list-item { border-top-width: 0; border-bottom-width: 1px; }
.legacy.legacy .news-list-item:first-child { border-top-width: 1px; }
/* The title/content select is gone, so on phones the search box takes the full row (snapshot capped it at 223px). */
@media (max-width: 768px) { .legacy.legacy .news-search-box { max-width: none; } }
/* Search text starts at the box's own 15px padding (the input added 16px more, so it sat ~32px in). */
.legacy.legacy #news-search { padding-left: 0; }
.legacy.legacy .news-item-image { position: relative; isolation: isolate; background: var(--surface); }
/* Blurred, enlarged copy of the same photo fills the 16:9 frame; the sharp photo stays whole on top. */
.legacy .news-item-image::before { content: ''; position: absolute; inset: -24px; z-index: -1; background: var(--thumb) center / cover no-repeat; filter: blur(18px) brightness(.92); }
.legacy .news-item-image img { position: relative; object-fit: contain; object-position: center; }
@media (max-width: 1023px) {
  .legacy.legacy .news-list-item { border-radius: 0; }
}
/* Contact form selects: the thin chevron from base.css .select instead of the browser's default arrow. */
.legacy.legacy .contact-form-group select { -webkit-appearance: none; appearance: none; padding-right: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px; }

/* Product list: a banner, then the grid. */
/* Empty frame until the store banner image is in: set background-image here (PC and the mobile rule below). */
.list-banner { background: #e4e4e4 right center / cover no-repeat; }
.list-banner .container { position: relative; display: flex; align-items: center; min-height: 240px; }
.list-banner .container::after { content: "배너 이미지"; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); color: #9a9a9a; font-size: 13px; }
.list-banner-copy { max-width: 520px; padding: 36px 0; }
.list-banner h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; line-height: 1.15; margin-bottom: 12px; }
.list-banner p { font-size: clamp(13px, 1.2vw, 15px); line-height: 1.7; color: var(--ink-2); }
.list-grid { margin-top: 48px; }
.list-filter-note + .list-grid { margin-top: 32px; }
@media (max-width: 767px) {
  .list-banner .container { min-height: 160px; }
  .list-banner-copy { max-width: 48%; padding: 28px 0; }
  .list-banner h1 { font-size: 24px; }
  .list-banner p { font-size: 12px; line-height: 1.55; }
  .list-grid { margin-top: 32px; }
}
.product-card-offline { margin-top: 6px; font-size: 13px; color: var(--muted); }
.list-filter-note { display: flex; align-items: center; gap: 16px; margin-top: 32px; font-size: 14px; }
.list-filter-note span { font-weight: 500; }
.list-filter-note a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.list-filter-note a svg { width: 12px; height: 12px; }
@media (max-width: 1023px) { .list-filter-note { margin-top: 20px; } }

.search-label { margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.bank-box h3 { font-size: 15px; font-weight: 500; }
.page-product .pdp { padding-top: 56px; }
@media (max-width: 1023px) { .page-product .pdp { padding-top: 0; } }

/* Offline line landing (/clinic) — scroll story after medicube.us/pages/brandstory. --p (0..1) comes from
   clinic.js bindScrub; everything that moves is a calc() on it. Sizes: desktop / mobile. */
.cl-ph { display: flex; align-items: flex-end; justify-content: flex-end; padding: 16px; width: 100%; background: #e4e4e4; color: #9a9a9a; font-size: 12px; }
.cl-wrap { max-width: calc(1144px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.cl-h2 { font-size: 38px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.cl-sub { margin-top: 16px; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.cl-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cl-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* 1. Editorial hero with a portrait 9:16 brand film. */
.cl-hero { background: #f7f6f2; color: #242421; }
.cl-hero-layout { min-height: 100svh; padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.cl-hero-copy { max-width: 620px; padding-top: 0; }
.cl-hero-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .18em; color: #77766f; }
.cl-hero-title { margin-top: 0; font-size: clamp(36px, 3.8vw, 64px); font-weight: 300; line-height: 1.35; letter-spacing: -.055em; word-break: keep-all; }
.cl-hero-desc { margin-top: 28px; color: #75746e; font-size: 15px; font-weight: 300; line-height: 1.9; word-break: keep-all; }
.cl-hero-link { display: inline-flex; align-items: center; gap: 32px; margin-top: 40px; padding-bottom: 12px; border-bottom: 1px solid #97958c; font-size: 13px; }
.cl-hero-link svg { width: 22px; height: 22px; transition: transform .3s; }
.cl-hero-link:hover svg { transform: translateX(5px); }
.cl-hero-footnote { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 80px; padding-top: 20px; border-top: 1px solid #dcdad2; font-size: 9px; letter-spacing: .13em; color: #8a887e; }
.cl-hero-film { width: min(100%, 48svh); justify-self: center; }
.cl-hero-video { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: linear-gradient(145deg, #dad8d0, #b9b7ae 55%, #d0cec5); color: #f8f7f3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 32px 16px 24px; }
.cl-hero-film-brand { font-size: 24px; letter-spacing: -.04em; font-weight: 600; }
.cl-hero-film-brand sup { font-size: 10px; vertical-align: super; }
.cl-hero-film-center { text-align: center; }
.cl-hero-film-line { display: block; width: 1px; height: 64px; background: rgb(255 255 255 / 55%); margin: 0 auto 28px; }
.cl-hero-film-center p { font-size: 12px; letter-spacing: .16em; }
.cl-hero-film-center > span:last-child { display: block; margin-top: 12px; font-size: 11px; font-weight: 300; }
.cl-hero-film-caption { font-size: 8px; letter-spacing: .12em; }
.cl-hero-film-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 8px; letter-spacing: .1em; color: #8a887e; }

/* 2. Story: inset frame expands to the viewport while the copy rises into view. */
.cl-story { --story-accent: #000; height: calc(100svh + var(--n) * 65svh); background: var(--story-accent); color: #fff; }
.cl-story .cl-sticky {
  --expand: clamp(0, calc(var(--p, 0) * 1.65), 1);
  --frame-radius: calc((1 - var(--expand)) * 30px);
  --frame-inset: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: grid; place-items: center; background: var(--story-accent);
}
.cl-story-frame {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #777;
  clip-path: inset(calc((1 - var(--expand)) * 9svh) calc((1 - var(--expand)) * var(--frame-inset)) round var(--frame-radius));
}
.cl-story-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-story-frame::before { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 60%); z-index: 1; pointer-events: none; }
.cl-story-frame::after {
  content: ''; position: absolute;
  inset: calc((1 - var(--expand)) * 9svh) calc((1 - var(--expand)) * var(--frame-inset));
  border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--frame-radius); pointer-events: none;
}
.cl-story-lines { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter); text-align: center; color: #fff; font-size: clamp(28px, 3.7vw, 56px); font-weight: 300; line-height: 1.5; letter-spacing: -.03em; perspective: 900px; transform: translateY(calc(var(--p, 0) * -3svh)); }
.cl-story-lines b { font-weight: 600; }
.cl-story-lines > span {
  display: block; opacity: var(--clarity, 0);
  transform: translateY(calc((1 - var(--rise, 0)) * 160px)) rotateX(calc((1 - var(--rise, 0)) * 16deg)) scale(calc(.92 + var(--rise, 0) * .08));
  filter: blur(calc((1 - var(--clarity, 0)) * 10px));
  transform-origin: center bottom; will-change: transform, opacity, filter;
}
.cl-story-lines > span:not(:last-child) { font-size: .86em; line-height: 1.35; color: rgb(255 255 255 / calc(1 - var(--final, 0) * .35)); }
.cl-story-lines > span:last-child { margin-top: 18px; font-size: 1.08em; text-shadow: 0 2px 24px rgb(0 0 0 / 20%); }
@media (max-width: 767px) {
  .cl-story-lines { font-size: clamp(20px, 4.8vw, 28px); }
  .cl-story-lines > span:last-child { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-story { height: 100svh; }
  .cl-story-lines, .cl-story-lines > span { transform: none; opacity: 1; filter: none; will-change: auto; }
}

/* 3. Clinic → home: two tall panels fly in from both sides and grow to full size. */

/* 4. Ingredients: title stays on the left while the list scrolls by. */
.cl-ingr { text-align: center; }
.cl-ingr-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cl-ingr-list li { padding: 48px 24px; }
.cl-ingr-list li + li { border-left: 1px solid var(--line); }
.cl-ingr-list h3 { font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
.cl-ingr-list p { margin-top: 10px; font-size: 16px; font-weight: 300; color: var(--ink-2); }

/* 5. Offline line gallery: four equal frames in the original image ratio. */
.cl-gallery { margin-top: 140px; }
.cl-gallery-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cl-gallery-frame { width: 100%; min-width: 0; aspect-ratio: 9 / 16; overflow: hidden; background: #000; border: 0; outline: 0; box-shadow: none; }

/* 6. All offline-line products: the store grid; cards show "오프라인 판매" instead of a price. */
.cl-products { margin-top: 160px; padding-bottom: 120px; }
.cl-products .cl-h2 { margin-top: 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; }
.cl-products .product-grid { margin-top: 48px; }

@media (max-width: 1023px) {
  .cl-h2 { font-size: 24px; }
  .cl-sub { font-size: 14px; }
  .cl-ingr-list { grid-template-columns: 1fr; margin-top: 28px; }
  .cl-ingr-list li { padding: 24px 0; }
  .cl-ingr-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .cl-ingr-list h3 { font-size: 22px; }
  .cl-ingr-list p { font-size: 14px; }
  .cl-gallery { margin-top: 96px; }
  .cl-gallery-track { gap: 8px; }
  .cl-products { margin-top: 96px; padding-bottom: 80px; }
  .cl-products .product-grid { margin-top: 28px; }
}

/* Story product carousel, four visible products at every viewport width. */
.cl-carousel { margin-top: 48px; margin-bottom: 48px; }
.cl-carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cl-carousel-title { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.cl-carousel-arrows { display: flex; gap: 8px; }
.cl-carousel-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; }
.cl-carousel-arrow svg { width: 20px; height: 20px; }
.cl-carousel-arrow:hover { background: var(--surface); }
.cl-carousel-window { overflow: hidden; }
.cl-carousel-track { --carousel-gap: 24px; display: flex; gap: var(--carousel-gap); }
.cl-carousel-track > .product-card { flex: 0 0 calc((100% - 3 * var(--carousel-gap)) / 4); min-width: 0; }
@media (max-width: 1023px) {
  .cl-carousel { margin-top: 28px; margin-bottom: 28px; }
  .cl-carousel-track { --carousel-gap: 8px; }
  .cl-carousel .product-card-body { padding-top: 10px; }
  .cl-carousel .product-card-name { font-size: 11px; }
  .cl-carousel .product-card-meta, .cl-carousel .product-card-offline { font-size: 10px; }
}

.cl-carousel-heading { display: flex; align-items: center; gap: 20px; }
#cl-all-products { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 600px) {
  .cl-carousel-controls { flex-wrap: wrap; gap: 16px; }
  .cl-carousel-heading { gap: 12px; }
  .cl-carousel-title { font-size: 21px; }
  .cl-carousel-arrow { width: 32px; height: 32px; }
  .cl-carousel-controls > .link-more { margin-left: auto; }
}

@media (max-width: 767px) {
  .cl-hero-layout { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding-top: calc(var(--header-h) + 48px); padding-bottom: 40px; }
  .cl-hero-copy { padding-top: 0; max-width: none; }
  .cl-hero-title { margin-top: 0; font-size: clamp(32px, 7vw, 46px); }
  .cl-hero-desc { margin-top: 20px; font-size: 14px; }
  .cl-hero-link { margin-top: 28px; }
  .cl-hero-footnote { margin-top: 32px; }
  .cl-hero-film { width: min(100%, 420px); justify-self: center; }
}

video.cl-hero-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; padding: 0; }

/* Title-only clinic hero. */
.cl-hero-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; }
.cl-hero-copy { width: 100%; max-width: none; }
@media (max-width: 767px) {
  .cl-hero-layout { min-height: 100svh; }
}

/* Full-bleed cream film behind the centered clinic title. */
.cl-hero { position: relative; isolation: isolate; overflow: hidden; }
.cl-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.cl-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / 18%); pointer-events: none; }
.cl-hero-layout { position: relative; }

/* Clinic headline follows the US hero typography and lower-left placement. */
.cl-hero::before { background: radial-gradient(ellipse 85% 75% at 0 100%, rgba(18,14,16,.4), rgba(18,14,16,.15) 50%, transparent 75%); }
.cl-hero-layout { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 100svh; padding-top: var(--header-h); padding-bottom: clamp(160px, 22svh, 240px); text-align: left; }
.cl-hero-title { font-size: clamp(36px, 4vw, 60px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; color: #fff; margin: 0 0 18px; text-shadow: none; }
.cl-hero .cl-hero-eyebrow { margin: 0 0 6px; font-size: 17px; font-weight: 500; letter-spacing: .02em; color: rgb(255 255 255 / 85%); }
@media (max-width: 767px) {
  .cl-hero { display: flex; flex-direction: column; background: #fff; }
  .cl-hero-bg { position: relative; inset: auto; height: 62vw; min-height: 240px; object-position: 78% 50%; z-index: auto; }
  .cl-hero::before { display: none; }
  .cl-hero-layout { min-height: 0; padding-top: 28px; padding-bottom: 36px; }
  .cl-hero-title { font-size: 30px; line-height: 1.22; color: var(--ink); }
  .cl-hero .cl-hero-eyebrow { margin-bottom: 6px; font-size: 13px; color: var(--ink-2); }
}

.cl-gallery-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; outline: 0; box-shadow: none; transform: scale(1.01); }

/* Alternating square video + copy rows (replaces the clinic/home split). */
.cl-feature { display: grid; gap: clamp(64px, 9vw, 140px); padding-block: clamp(80px, 10vw, 160px); }
.cl-feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.cl-feature-row.is-rev .cl-feature-media { order: 2; }
.cl-feature-media { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; }
.cl-feature-copy { display: flex; flex-direction: column; align-items: center; text-align: center; word-break: keep-all; }
.cl-feature-lead { font-size: clamp(15px, 1.4vw, 19px); font-weight: 400; color: #555; }
.cl-feature-title { margin-top: clamp(24px, 3vw, 44px); font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; line-height: 1.55; letter-spacing: -.02em; }
.cl-feature-cta { margin-top: clamp(28px, 3vw, 44px); }
@media (max-width: 767px) {
  .cl-feature-row { grid-template-columns: 1fr; gap: 24px; }
  .cl-feature-row.is-rev .cl-feature-media { order: 0; }
}

.cl-hero-cta.btn-outline, .cl-hero-cta.btn-outline:hover { border-color: transparent; background: #fff; color: var(--ink); }

/* Equal spacing above and below the hero headline. */
.cl-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cl-hero .cl-hero-copy > .cl-hero-eyebrow,
.cl-hero .cl-hero-copy > .cl-hero-title,
.cl-hero .cl-hero-copy > .cl-hero-cta { margin: 0; }
.cl-hero .cl-hero-eyebrow { line-height: 1; }
/* Optical: measured glyph gaps were 22px above the title, 16px below; a solid button reads closer, so it gets a bit more. */
.cl-hero .cl-hero-copy { gap: 0; }
.cl-hero .cl-hero-copy > .cl-hero-eyebrow { margin-bottom: 12px; }
.cl-hero .cl-hero-copy > .cl-hero-cta { margin-top: 22px; }

/* Brand differentiation and short films share one continuous black background. */
.cl-proof-band { background: #000; color: #fff; padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); }
.cl-difference { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.cl-difference-intro h2 { font-size: clamp(32px, 3.5vw, 54px); line-height: 1.2; font-weight: 600; letter-spacing: -.045em; word-break: keep-all; }
.cl-difference-intro h2 span:not(.cl-fit-line) { color: #e9a0b5; background: linear-gradient(135deg, #f8cbd8 0%, #df799c 45%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cl-difference-list { list-style: none; padding: 0; margin: 0; }
.cl-difference-list li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; }
.cl-difference-list li:first-child { padding-top: 0; }
.cl-difference-label { margin-top: 2px; font-size: 14px; color: #999; }
.cl-difference-list h3 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; word-break: keep-all; }
.cl-proof-band .cl-gallery { margin-top: clamp(64px, 8vw, 120px); }
@media (max-width: 767px) {
  .cl-difference { grid-template-columns: 1fr; gap: 48px; }
  .cl-difference-list li { padding-block: 10px; }
}

/* Subtle text separation over the hero film. */
.cl-hero .cl-hero-eyebrow, .cl-hero .cl-hero-title { text-shadow: 0 1px 8px rgb(0 0 0 / 16%); }
@media (max-width: 767px) {
  .cl-hero .cl-hero-eyebrow, .cl-hero .cl-hero-title { text-shadow: 0 1px 6px rgb(0 0 0 / 14%); }
}

.cl-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.cl-hero-btns .cl-hero-cta { margin: 0; }
.cl-hero-btns .cl-hero-cta.is-ghost { background: transparent; border-color: #fff; color: #fff; }
.cl-hero-btns .cl-hero-cta.is-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 767px) {
  .cl-hero-btns { gap: 12px; }
  .cl-hero-btns .cl-hero-cta.is-ghost { border-color: var(--ink); color: var(--ink); }
  .cl-hero-btns .cl-hero-cta.is-ghost:hover { background: var(--ink); color: #fff; }
}

.cl-feature-toner-image { height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }

.cl-feature-cream-image { height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; }

/* Keep the store banner headline on one line. */
.page-products .list-banner-copy { max-width: 680px; }
.page-products .list-banner h1 { font-size: clamp(26px, 2.7vw, 36px); white-space: nowrap; }
@media (max-width: 767px) {
  .page-products .list-banner-copy { max-width: 100%; }
  .page-products .list-banner h1 { font-size: clamp(16px, 4.7vw, 28px); }
}

/* Store banner: full-width video (letterbox cropped, 1600x614) with the copy at the lower left. */
.list-banner.has-video { position: relative; overflow: hidden; background: #000; color: #fff; }
.list-banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.list-banner.has-video::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(0 0 0 / 55%), transparent 60%); pointer-events: none; }
.list-banner.has-video .container { z-index: 2; align-items: flex-end; min-height: 0; aspect-ratio: 1600 / 614; max-height: 70svh; }
.list-banner.has-video .container::after { content: none; }
.list-banner.has-video .list-banner-copy { padding: 0 0 clamp(24px, 3.5vw, 48px); }
.list-banner.has-video p { color: rgb(255 255 255 / 85%); }
@media (max-width: 767px) {
  .list-banner.has-video .container { aspect-ratio: auto; min-height: 240px; }
}

/* Clinic hero matches the store banner (.list-banner.has-video): same 1600:614 frame, lower-left copy, same type sizes. */
.cl-hero { display: block; background: #000; }
.cl-hero .cl-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.cl-hero::before { display: block; background: linear-gradient(to top, rgb(0 0 0 / 55%), transparent 60%); }
.cl-hero .cl-hero-layout { min-height: 0; aspect-ratio: 1600 / 614; max-height: 70svh; padding-top: 0; padding-bottom: clamp(24px, 3.5vw, 48px); justify-content: flex-end; }
.cl-hero .cl-hero-title { font-size: clamp(26px, 2.7vw, 36px); font-weight: 500; line-height: 1.15; color: #fff; }
.cl-hero .cl-hero-eyebrow { font-size: clamp(13px, 1.2vw, 15px); font-weight: 500; color: rgb(255 255 255 / 85%); }
.cl-hero .cl-hero-btns { margin-top: 18px; }
.cl-hero .cl-hero-btns .btn { height: 40px; padding: 0 18px; font-size: 13px; }
@media (max-width: 767px) {
  .cl-hero .cl-hero-layout { aspect-ratio: auto; min-height: 240px; padding-top: 24px; }
  .cl-hero .cl-hero-title { font-size: clamp(16px, 4.7vw, 28px); color: #fff; }
  .cl-hero .cl-hero-eyebrow { font-size: 12px; color: rgb(255 255 255 / 85%); }
  .cl-hero .cl-hero-btns .cl-hero-cta.is-ghost { border-color: #fff; color: #fff; }
}

/* Feature copy rises in sequence as each row enters the viewport. */
.js .cl-feature-copy.reveal { opacity: 1; transform: none; transition: none; }
.js .cl-feature-copy.reveal > * {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity .85s ease, transform 1s cubic-bezier(.22, 1, .36, 1);
}
.js .cl-feature-copy.reveal > .cl-feature-title { transition-delay: .12s; }
.js .cl-feature-copy.reveal > .cl-feature-cta { transition-delay: .24s; }
.js .cl-feature-copy.reveal.is-visible > * { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .js .cl-feature-copy.reveal > * { opacity: 1; transform: none; transition: none; }
}

/* Scroll entrances for the proof points and all-products heading. */
.js .cl-difference-intro.reveal,
.js .cl-difference-list > li.reveal,
.js #cl-products-title.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity .9s ease, transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.js .cl-difference-list > li.reveal:nth-child(1) { transition-delay: .12s; }
.js .cl-difference-list > li.reveal:nth-child(2) { transition-delay: .24s; }
.js .cl-difference-list > li.reveal:nth-child(3) { transition-delay: .36s; }
.js .cl-difference-intro.reveal.is-visible,
.js .cl-difference-list > li.reveal.is-visible,
.js #cl-products-title.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .js .cl-difference-intro.reveal,
    .js .cl-difference-list > li.reveal,
    .js #cl-products-title.reveal { opacity: 1; transform: none; transition: none; }
}

/* Phones have no hover: the "장바구니 담기" button sits under the product info, full width (PC keeps the hover button). */
@media (max-width: 767px) {
  .product-card .product-card-cart { position: static; order: 1; width: auto; height: 38px; margin-top: 12px; border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font-size: 12px; opacity: 1; transform: none; }
  .product-card .product-card-cart span { display: inline; }
  .product-card .product-card-cart svg { width: 14px; height: 14px; }
  .product-card .product-card-cart:active { background: var(--ink); color: #fff; }
  .product-card-body { flex: 1; }
}

/* Phones: offline carousel shows 2 products per view (same auto-slide and arrows). */
@media (max-width: 767px) {
  .cl-carousel-track { --carousel-gap: 12px; }
  .cl-carousel-track > .product-card { flex-basis: calc((100% - var(--carousel-gap)) / 2); }
  .cl-carousel .product-card-name { font-size: 13px; line-height: 1.4; }
  .cl-carousel .product-card-meta, .cl-carousel .product-card-offline { font-size: 12px; }
}

/* Phones: larger story lines. */
@media (max-width: 767px) {
  .cl-story-lines { font-size: clamp(22px, 6.4vw, 28px); word-break: keep-all; }
}

/* Phones: 3 short-form clips per view, scrolling sideways forever (track = 2 copies, moves by one copy). */
@media (max-width: 767px) {
  .cl-gallery { overflow: hidden; padding-inline: 0; }
  .cl-gallery-track.is-marquee { display: flex; gap: 0; width: max-content; animation: cl-marquee 28s linear infinite; }
  .cl-gallery-track.is-marquee .cl-gallery-frame { flex: none; width: calc((100vw - 16px) / 3); margin-right: 8px; }
}
@keyframes cl-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cl-gallery-track.is-marquee { animation: none; } }
/* Sold out: grey disabled button, shown on hover like the cart buttons (always shown on phones/touch). */
.product-card-cart:disabled { background: #767676; cursor: default; }
@media (max-width: 767px) {
  .product-card .product-card-cart:disabled { border-color: var(--line); background: var(--surface); color: var(--muted); }
}
@media (max-width: 767px) {
  /* Korean glyphs sit low in the font box: tight line box + 2px bottom padding centres the label optically. */
  .product-card .product-card-cart { line-height: 1; padding: 0 0 2px; }
  .product-card .product-card-cart span { line-height: 1; }
}

/* Keep the clinic product heading in two explicit lines on mobile. */
@media (max-width: 767px) {
  #cl-products-title:has(.cl-products-line) { font-size: clamp(16px, 5.4vw, 24px); line-height: 1.35; }
  #cl-products-title .cl-products-line { display: block; white-space: nowrap; }
}

/* Fit translated headings without accidental extra lines inside authored phrases. */
.cl-feature-copy, .cl-difference-intro { min-width: 0; }
.cl-fit-heading { width: 100%; }
.cl-fit-heading > .cl-fit-line { display: block; width: max-content; white-space: nowrap; }
.cl-feature-title.cl-fit-heading > .cl-fit-line { margin-inline: auto; }
