/* ============================================
   kr-shop.withelord.com — Korean commerce
   - Same design system as landing v3 (Pretendard + INK/NAVY/AMBER)
   - Premium animation + 5060 친화
   ============================================ */
:root {
  --ink: #0E1933;
  --slate: #4A5878;
  --navy: #1F3A8A;
  --blue: #2563EB;
  --amber: #FFD866;
  --cream: #FFFAEB;
  --card: #F5F8FF;
  --grey: #D9E2F5;
  --border: #E8EDF5;
  --white: #FFFFFF;
  --green: #10B981;
  --red: #EF4444;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* === Top bar === */
.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.4px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.brand-sub {
  font-size: 11px; color: var(--slate); font-weight: 600;
  background: var(--card); padding: 2px 7px; border-radius: 5px;
  letter-spacing: 0.2px;
}

.nav-mid {
  display: flex; gap: 4px;
}
.nav-mid a {
  padding: 10px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--slate);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-mid a:hover, .nav-mid a.active {
  background: var(--card); color: var(--navy);
}
@media (max-width: 720px) { .nav-mid { display: none; } }

.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--card); border-color: var(--border); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lang-btn {
  height: 38px; padding: 0 12px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--slate); font-size: 13px; font-weight: 600;
  font-family: inherit;
}
.lang-btn:hover { background: var(--card); }

/* === Promo top strip (cross-promo with landing) === */
.promo-strip {
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 60%, var(--blue) 100%);
  background-size: 200% 200%;
  animation: grad 14s ease-in-out infinite;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.promo-strip a {
  color: var(--amber); text-decoration: underline; font-weight: 700;
}
@keyframes grad {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* === Hero === */
.hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--card) 0%, #fff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
  background: var(--amber); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero-h1 {
  font-size: 38px; font-weight: 800; line-height: 1.2;
  color: var(--ink); letter-spacing: -0.8px;
  margin-bottom: 18px;
}
@media (min-width: 720px) { .hero-h1 { font-size: 52px; } }
.hero-h1 .accent {
  background: linear-gradient(180deg, transparent 60%, var(--amber) 60%);
  padding: 0 4px;
}

/* Typing animation */
.hero-h1[data-typing] {
  min-height: 1.2em;
}
.type-line {
  display: block;
}
.type-text::after { content: ''; }
.cursor {
  display: inline-block;
  color: var(--navy);
  font-weight: 200;
  margin-left: 2px;
  animation: cursor-blink 0.9s steps(2, jump-none) infinite;
  opacity: 1;
}
.cursor.is-done { animation: cursor-blink 0.9s steps(2, jump-none) infinite; }
.cursor.is-hidden { opacity: 0; animation: none; }
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-sub {
  font-size: 18px; color: var(--slate); line-height: 1.7;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  border: none; border-radius: 12px;
  letter-spacing: -0.3px;
  box-shadow: 0 10px 24px -8px rgba(31, 58, 138, 0.45);
  transition: transform 0.14s var(--ease), box-shadow 0.22s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(31, 58, 138, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 26px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 16px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--card); border-color: var(--grey); }

.hero-mockup {
  position: relative;
  aspect-ratio: 8 / 7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(14, 25, 51, 0.35);
}
.hero-mockup img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: hero-img-pulse 8s ease-in-out infinite;
}
@keyframes hero-img-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.hero-mockup::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,216,102,0.3) 0%, transparent 65%);
}
.hero-mockup-icons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  width: 80%; position: relative; z-index: 1;
}
.hero-mock-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 20px 18px;
  color: #fff;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}
.hero-mock-card:nth-child(2) { animation-delay: 0.3s; }
.hero-mock-card:nth-child(3) { animation-delay: 0.6s; }
.hero-mock-card:nth-child(4) { animation-delay: 0.9s; }
.hero-mock-card .ico { font-size: 32px; margin-bottom: 6px; }
.hero-mock-card .lab { font-size: 13px; font-weight: 600; color: var(--amber); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* === Category cards === */
.section { padding: 64px 0; }
.section-title {
  font-size: 32px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.6px; margin-bottom: 8px;
}
.section-sub {
  font-size: 16px; color: var(--slate); margin-bottom: 32px;
}

.cat-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cat-grid.two-cols { grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; } }

.future-notice {
  display: flex; gap: 18px;
  margin-top: 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--cream) 0%, #ffffff 100%);
  border: 1px dashed var(--amber);
  border-radius: 16px;
}
.future-icon { font-size: 32px; flex-shrink: 0; }
.future-h { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.future-desc { font-size: 14px; color: var(--slate); line-height: 1.65; }

.cat-card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.28s var(--ease), border-color 0.18s;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -12px rgba(31, 58, 138, 0.18);
  border-color: var(--grey);
}
.cat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(31,58,138,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cat-icon { font-size: 38px; margin-bottom: 14px; }
.cat-name { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.4px; }
.cat-desc { font-size: 14.5px; color: var(--slate); line-height: 1.6; margin-bottom: 18px; }
.cat-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-size: 14px; font-weight: 700;
}
.cat-card .kr-flag {
  position: absolute; top: 16px; right: 16px;
  background: var(--amber); color: var(--ink);
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}

/* === Product grid === */
.prod-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.16s var(--ease), box-shadow 0.22s var(--ease);
  cursor: pointer;
  position: relative;
}
.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(31, 58, 138, 0.18);
}
.prod-thumb {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--card) 0%, var(--cream) 100%);
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  position: relative;
  overflow: hidden;
}
.prod-thumb img { transition: transform 0.4s var(--ease); }
.prod-card:hover .prod-thumb img { transform: scale(1.04); }
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: var(--amber);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
  letter-spacing: 0.2px;
}
.prod-badge.new { background: var(--green); color: #fff; }
.prod-badge.soldout { background: var(--slate); color: #fff; }
.prod-title {
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  line-height: 1.45; letter-spacing: -0.2px;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.prod-sub {
  font-size: 12.5px; color: var(--slate);
  line-height: 1.45; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.prod-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prod-price {
  font-size: 18px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.4px;
}
.prod-compare {
  font-size: 13px; color: var(--slate);
  text-decoration: line-through;
}
.prod-discount {
  font-size: 12px; font-weight: 700; color: var(--red);
}

/* === Trust strip === */
.trust-strip {
  background: var(--ink); color: #fff;
  padding: 36px 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  text-align: center;
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item .icn {
  font-size: 28px; margin-bottom: 8px;
  display: block;
}
.trust-item .ttl {
  font-size: 15px; font-weight: 700;
  color: var(--amber); margin-bottom: 2px;
}
.trust-item .sub {
  font-size: 12.5px; color: rgba(255,255,255,0.7);
}

/* === Cross-promo banner (large) === */
.cross-banner {
  margin: 40px auto;
  max-width: 1200px;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 60%, var(--blue) 100%);
  background-size: 200% 200%;
  animation: grad 14s ease-in-out infinite;
  border-radius: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cross-banner::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,216,102,0.22) 0%, transparent 65%);
}
.cross-banner-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 20px;
  align-items: center;
}
@media (min-width: 760px) { .cross-banner-inner { grid-template-columns: 1.2fr auto; gap: 32px; } }
.cross-eyebrow { font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: 0.3px; margin-bottom: 6px; }
.cross-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
@media (min-width: 720px) { .cross-title { font-size: 28px; } }
.cross-desc { font-size: 14.5px; color: rgba(255,255,255,0.85); line-height: 1.65; }
.cross-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  background: var(--amber);
  color: var(--ink);
  font-size: 15px; font-weight: 700;
  border-radius: 12px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  box-shadow: 0 12px 28px -8px rgba(255,216,102,0.55);
  transition: transform 0.14s var(--ease);
}
.cross-cta:hover { transform: translateY(-2px); }

/* === Footer === */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  font-size: 14px; line-height: 1.7;
}
.footer-cols {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin-bottom: 28px;
}
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.footer-brand { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-h { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: 0.4px; text-transform: uppercase; }
.footer-links li { padding: 4px 0; }
.footer-links a:hover { color: var(--amber); }
.footer-disclaim {
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  line-height: 1.7;
}

/* === Scroll reveal === */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up:nth-child(2).is-visible { transition-delay: 80ms; }
.reveal-up:nth-child(3).is-visible { transition-delay: 160ms; }
.reveal-up:nth-child(4).is-visible { transition-delay: 240ms; }
.reveal-up:nth-child(5).is-visible { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === FAB cart === */
.fab-cart {
  position: fixed;
  right: 16px; bottom: calc(var(--safe-bottom) + 16px);
  display: none;
  align-items: center; gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  font-size: 14px; font-weight: 700;
  border-radius: 28px;
  box-shadow: 0 12px 28px -8px rgba(31, 58, 138, 0.55);
  text-decoration: none;
  z-index: 50;
}
.fab-cart.has-items { display: inline-flex; }
.fab-cart .ct {
  background: var(--amber); color: var(--ink);
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 920px) { .fab-cart { display: none !important; } }

/* ============================================
   카테고리 페이지 + 상품 상세 + 장바구니 + 결제
   ============================================ */
.breadcrumb {
  font-size: 13px; color: var(--slate);
  padding: 20px 0 8px;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb span { color: var(--ink); font-weight: 600; }

.cat-hero {
  padding: 32px 0 56px;
  background: linear-gradient(180deg, var(--card) 0%, #fff 100%);
}
.cat-hero-grid { padding-top: 12px; }
.cat-hero-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.cat-hero-title {
  font-size: 40px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.8px; margin-bottom: 10px;
}
@media (min-width: 720px) { .cat-hero-title { font-size: 52px; } }
.cat-hero-sub {
  font-size: 17px; color: var(--slate); line-height: 1.65;
  margin-bottom: 18px;
}
.cat-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.meta-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--slate);
}

.cat-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cat-count {
  font-size: 14px; color: var(--slate);
  font-weight: 500;
}
.cat-sort {
  height: 38px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; color: var(--ink);
  font-family: inherit;
}

.opening-notice {
  display: flex; gap: 16px;
  padding: 20px 24px;
  margin-top: 20px;
  background: var(--cream);
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
}
.notice-icon { font-size: 28px; flex-shrink: 0; }
.notice-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.notice-desc { font-size: 14px; color: var(--slate); line-height: 1.65; }

/* === Product detail page === */
.prod-detail { padding: 0 0 80px; }
.prod-detail-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding-top: 8px;
}
@media (min-width: 920px) {
  .prod-detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}
.prod-detail-img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--card) 0%, var(--cream) 100%);
  border-radius: 16px;
  overflow: hidden;
  position: sticky; top: 88px;
}
@media (max-width: 919px) { .prod-detail-img { position: static; } }
.prod-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.prod-detail-info { display: flex; flex-direction: column; }
.prod-detail-eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--navy);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.prod-detail-title {
  font-size: 30px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.6px; line-height: 1.3;
  margin-bottom: 12px;
}
.prod-detail-sub {
  font-size: 16px; color: var(--slate); line-height: 1.65;
  margin-bottom: 24px;
}
.prod-detail-priceblock {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.prod-detail-price-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.prod-detail-price {
  font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.6px;
}
.prod-detail-deliv {
  font-size: 13px; color: var(--green); font-weight: 600;
}

.prod-detail-actions {
  display: flex; gap: 10px; margin: 18px 0 8px;
}
.qty-stepper {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  height: 56px;
  overflow: hidden;
  background: var(--white);
}
.qty-stepper button {
  width: 48px;
  background: transparent; border: none;
  font-size: 20px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: background 0.15s;
}
.qty-stepper button:hover { background: var(--card); }
.qty-stepper input {
  width: 56px;
  border: none;
  text-align: center;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  font-family: inherit;
  background: transparent;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input[type="number"] { -moz-appearance: textfield; }

.btn-buynow {
  width: 100%; min-height: 56px;
  background: var(--amber); color: var(--ink);
  font-size: 16px; font-weight: 700;
  border: none; border-radius: 12px;
  margin-bottom: 18px;
  transition: transform 0.14s var(--ease);
}
.btn-buynow:hover { transform: translateY(-2px); }

.prod-detail-trust {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--card);
  border-radius: 10px;
  margin-bottom: 12px;
}
.trust-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}

.prod-detail-refund {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.prod-detail-refund summary {
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
}
.prod-detail-refund summary::after { content: '+'; float: right; font-size: 18px; }
.prod-detail-refund[open] summary::after { content: '−'; }
.prod-detail-refund p {
  margin-top: 10px; font-size: 13px; color: var(--slate); line-height: 1.7;
  padding-top: 10px; border-top: 1px solid var(--border);
}

.prod-detail-desc { padding: 48px 0; }
.prod-detail-h2 {
  font-size: 22px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.4px; margin-bottom: 16px;
}
.bullet-list {
  list-style: disc; padding-left: 22px;
}
.bullet-list li { padding: 4px 0; }

/* Sticky bottom CTA (mobile) */
.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(var(--safe-bottom) + 12px);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 50;
}
.sticky-title { font-size: 13px; color: var(--slate); }
.sticky-price { font-size: 16px; font-weight: 800; color: var(--ink); }
.sticky-buy .btn-primary { min-height: 48px; padding: 0 20px; }
@media (min-width: 920px) { .sticky-buy { display: none !important; } }

/* === Cart / Checkout === */
.cart-page, .checkout-page { padding: 0 0 80px; }
.page-h1 {
  font-size: 32px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.6px; margin-bottom: 28px;
}
.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 920px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1.5fr 1fr; }
}
.cart-list-wrap, .checkout-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.cart-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--card);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.cart-info { flex: 1; }
.cart-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cart-meta { font-size: 13px; color: var(--slate); }
.cart-del {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--slate);
  font-size: 20px; cursor: pointer;
  transition: background 0.15s;
}
.cart-del:hover { background: rgba(239,68,68,0.1); color: var(--red); border-color: var(--red); }

.cart-summary, .checkout-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  height: fit-content;
  position: sticky; top: 88px;
}
.summary-h {
  font-size: 18px; font-weight: 800; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 14px;
}
.summary-row.total {
  font-size: 16px; font-weight: 800; color: var(--ink);
  padding-top: 14px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.summary-disclaim {
  font-size: 12px; color: var(--slate); line-height: 1.6;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* === Checkout form === */
.form-section-h {
  font-size: 17px; font-weight: 800; color: var(--ink);
  margin: 24px 0 14px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-section-h:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.optional {
  font-size: 12px; color: var(--slate);
  font-weight: 500;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field {
  display: block;
  margin-bottom: 14px;
}
.field-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.field-label em { color: var(--red); font-style: normal; }
.field-hint { font-size: 12px; color: var(--slate); font-weight: 400; }
.field input, .field select {
  width: 100%; height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px; color: var(--ink);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pay-opt:hover { background: var(--card); }
.pay-opt input { margin-top: 4px; }
.pay-opt:has(input:checked) { border-color: var(--navy); background: var(--card); }
.pay-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pay-status {
  background: var(--cream); color: var(--ink);
  font-size: 11px; padding: 2px 7px; border-radius: 5px; margin-left: 6px;
}
.pay-sub { font-size: 13px; color: var(--slate); margin-top: 3px; }

.consent { border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; background: var(--card); }
.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
}
.consent-row:last-child { border-bottom: none; }
.consent-row input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); }
.consent-row.required b { color: var(--red); }
.consent-row a { color: var(--navy); text-decoration: underline; font-size: 12px; }

.form-fineprint {
  font-size: 12px; color: var(--slate); line-height: 1.65;
  text-align: center; margin-top: 12px;
}

.co-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.co-item:last-child { border-bottom: none; }

/* ============================================
   무료 진단 신청 폼 (inline section)
   ============================================ */
.apply-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--card) 0%, var(--cream) 100%);
}
.apply-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  align-items: start;
}
@media (min-width: 920px) {
  .apply-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.apply-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--amber);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.apply-title {
  font-size: 30px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.6px; line-height: 1.3;
  margin-bottom: 20px;
}
@media (min-width: 720px) { .apply-title { font-size: 38px; } }
.apply-accent {
  background: linear-gradient(180deg, transparent 60%, var(--amber) 60%);
  padding: 0 4px;
}
.apply-desc {
  font-size: 16px; color: var(--slate); line-height: 1.7;
  margin-bottom: 22px;
}
.apply-bullets li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.apply-bullets svg { flex-shrink: 0; }

.apply-form {
  background: #ffffff;
  border: 1px solid var(--grey);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px -20px rgba(31, 58, 138, 0.18);
}
.apply-form-h {
  font-size: 22px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.4px; margin-bottom: 6px;
}
.apply-form-desc {
  font-size: 14px; color: var(--slate); margin-bottom: 20px;
}
.apply-submit {
  width: 100%;
  min-height: 60px;
  font-size: 17px;
  margin-top: 8px;
}
.apply-fineprint {
  font-size: 12.5px; color: var(--slate); line-height: 1.7;
  text-align: center; margin-top: 14px;
}

.form-more {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--card);
}
.form-more summary {
  font-size: 14px; font-weight: 600; color: var(--navy);
  cursor: pointer; user-select: none;
  list-style: none;
  padding: 4px 0;
}
.form-more summary::after { content: '▾'; float: right; transition: transform 0.2s; }
.form-more[open] summary::after { transform: rotate(180deg); }
.checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.checkbox-group label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ink);
  padding: 6px 0; cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--navy);
}

/* Toast (success message after submit) */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  padding: 18px 28px;
  background: var(--ink); color: #ffffff;
  border-radius: 14px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.35);
  z-index: 999;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast .check {
  display: inline-block;
  width: 26px; height: 26px;
  background: var(--green); color: #fff;
  border-radius: 50%;
  text-align: center; line-height: 26px;
  margin-right: 10px;
  vertical-align: middle;
  font-weight: 800;
}
