/* ============================================================================
   shop.css — 판매·주문 퍼널 (ORDER-V1, 2026-11-29)
   세 사이트가 같은 파일을 씁니다. 색·서체는 각 사이트 styles.css 의 토큰을
   그대로 받아 쓰므로, 이 파일만으로 업종별 톤이 유지됩니다.

   구성
   1) 히어로 + 9:16 샘플 즉시 재생
   2) 신뢰 띠(촬영·납기·보장)
   3) 상품 카드 (#products)
   4) 샘플·대본 (#samples)
   5) 진행 방식 아코디언 (#process)
   6) 보장 카드 (#guarantee)
   7) 주문·결제 체크아웃 (#order)
   8) 주문 완료 카드
   9) 반응형
   ========================================================================== */

/* ── 1) 히어로 ─────────────────────────────────────────────────────────── */
.shop-hero { padding-block: clamp(26px, 3.4vw, 52px) clamp(24px, 3vw, 40px); }
.shop-hero .hero-grid { display: grid; gap: clamp(24px, 3.4vw, 44px); align-items: center; }
@media (min-width: 960px) {
  .shop-hero .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.shop-hero h1 { max-width: 21ch; }
.shop-hero .lead { max-width: 46ch; color: var(--muted-foreground); font-size: var(--text-lead); }
.shop-hero .hero-copy { display: grid; gap: 18px; align-content: start; }

.hero-ticks { display: grid; gap: 7px; font-size: var(--text-small); line-height: 1.6; color: var(--muted-foreground); }
.hero-ticks li { position: relative; padding-left: 16px; }
.hero-ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--accent-foreground); }
.hero-ticks strong { color: var(--foreground); font-weight: 600; }

.btn-lg { min-height: 54px; padding: 0 24px; font-size: 0.9375rem; }
.btn-hero { min-height: 56px; font-size: 1rem; padding: 0 26px; }

.hero-video { display: grid; gap: 10px; justify-items: center; width: 100%; }
.video-frame {
  position: relative; width: min(100%, 318px); aspect-ratio: 9 / 16;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  border: 0; padding: 0; cursor: pointer; color: #fff;
  background: color-mix(in srgb, #000 30%, transparent);
  transition: background var(--duration-feedback) var(--ease-feedback);
}
.video-play .vp-icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #101418; font-size: 19px; line-height: 1; padding-left: 3px;
}
.video-play .vp-text {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; background: color-mix(in srgb, #000 55%, transparent);
  padding: 6px 11px; border-radius: 2px;
}
[data-video-box].is-playing .video-play { background: transparent; justify-content: flex-end; padding-bottom: 14px; }
[data-video-box].is-playing .video-play .vp-icon { display: none; }
.video-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: color-mix(in srgb, #000 62%, transparent); color: #fff; padding: 5px 8px; border-radius: 2px;
  pointer-events: none;
}
.video-cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted-foreground); text-align: center; }

/* ── 2) 신뢰 띠 ────────────────────────────────────────────────────────── */
.trustbar { border-block: 1px solid var(--border); background: var(--card); }
.trustbar-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.trustbar-in > div { background: var(--card); padding: 13px clamp(9px, 1.8vw, 20px); display: grid; gap: 2px; }
.trustbar b { font-family: var(--font-mono); font-size: clamp(0.8125rem, 2.6vw, 1rem); font-weight: 500; letter-spacing: -0.01em; color: var(--foreground); }
.trustbar span { font-size: clamp(0.625rem, 2.2vw, 0.75rem); line-height: 1.45; color: var(--muted-foreground); }

/* ── 3) 상품 카드 ──────────────────────────────────────────────────────── */
.products { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  }
  .products .product { border: 0; border-right: 1px solid var(--border); border-radius: 0; }
  .products .product:last-child { border-right: 0; }
}
.product {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(18px, 2.1vw, 26px); display: flex; flex-direction: column; gap: 8px;
}
.product.is-best { background: var(--tint); }
@media (min-width: 900px) {
  .product.is-best { outline: 2px solid var(--primary); outline-offset: -2px; }
}
.product .flag { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.product .tier { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); }
.product .badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--primary); color: var(--primary-foreground); padding: 3px 7px; border-radius: 2px; white-space: nowrap;
}
.product h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.02em; }
.product .p-amount { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.product .p-amount .won { font-size: 0.5em; margin-left: 2px; }
.product .p-amount .vat { font-family: var(--font-text); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); margin-left: 7px; }
.product .p-per { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--muted-foreground); }
.product ul { display: grid; gap: 6px; margin: 8px 0 10px; font-size: 0.8125rem; line-height: 1.6; color: var(--muted-foreground); }
.product ul li { position: relative; padding-left: 14px; }
.product ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 1px; background: var(--primary); }
.product ul li strong { color: var(--foreground); font-weight: 600; }
.product .btn { margin-top: auto; }
.product-link { font-size: var(--text-small); color: var(--muted-foreground); }
.product-link a { color: var(--accent-foreground); border-bottom: 1px solid currentColor; }

/* ── 4) 샘플·대본 ──────────────────────────────────────────────────────── */
.samples { display: grid; gap: clamp(22px, 3vw, 44px); align-items: start; }
@media (min-width: 900px) { .samples { grid-template-columns: 300px minmax(0, 1fr); } }
.samples .video-frame { width: min(100%, 280px); }

/* 아코디언 */
.acc { border-top: 1px solid var(--border); }
.acc details { border-bottom: 1px solid var(--border); }
.acc summary {
  display: flex; gap: 14px; align-items: baseline; justify-content: space-between;
  padding: 15px 2px; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent-foreground); }
.acc summary .mk { flex: none; font-family: var(--font-mono); font-size: 15px; font-weight: 400; color: var(--muted-foreground); line-height: 1; }
.acc summary .mk::before { content: "+"; }
.acc details[open] summary .mk::before { content: "\2212"; }
.acc .a { padding: 0 2px 18px; font-size: var(--text-small); line-height: 1.75; color: var(--muted-foreground); max-width: 74ch; }
.acc .a strong { color: var(--foreground); font-weight: 600; }
.acc .a p + p { margin-top: 8px; }
.acc .a .hook { display: block; margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--border); font-size: 0.8125rem; }
.acc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.acc .tags span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em; padding: 3px 7px; border: 1px solid var(--border); border-radius: 2px; background: var(--card); color: var(--secondary-foreground); }

/* ── 5) 3단 진행 ───────────────────────────────────────────────────────── */
.flow { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flow > div { background: var(--card); padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 7px; align-content: start; }
.flow .n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent-foreground); }
.flow h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.012em; }
.flow p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted-foreground); }

/* ── 6) 보장 ───────────────────────────────────────────────────────────── */
.guarantees { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guarantees > div { background: var(--card); padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 7px; align-content: start; }
.guarantees .n { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent-foreground); }
.guarantees h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.012em; }
.guarantees p { font-size: 0.8125rem; line-height: 1.7; color: var(--muted-foreground); }
.guarantees p strong { color: var(--foreground); font-weight: 600; }

/* ── 7) 체크아웃 ───────────────────────────────────────────────────────── */
.checkout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) {
  .checkout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 2.6vw, 36px); }
  .checkout-sum { position: sticky; top: calc(var(--header-h) + 14px); }
}
.co-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 2.1vw, 24px); display: grid; gap: 12px; }
.co-block + .co-block { margin-top: 12px; }
.co-block > h3 { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.0625rem; line-height: 1.4; }
.co-block > h3 .step { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--accent-foreground); }
.co-block > h3 .hint { margin-left: auto; font-family: var(--font-text); font-size: 0.75rem; font-weight: 400; color: var(--muted-foreground); }

.co-products { display: grid; gap: 8px; }
@media (min-width: 620px) { .co-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-choice {
  position: relative; display: block; border: 1px solid var(--field-border); border-radius: var(--radius);
  padding: 12px 13px; cursor: pointer; background: var(--card);
  transition: border-color var(--duration-feedback) var(--ease-feedback), background var(--duration-feedback) var(--ease-feedback);
}
.co-choice:hover { border-color: var(--primary); }
.co-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.co-choice:has(input:checked) { border-color: var(--primary); background: var(--tint); outline: 1px solid var(--primary); outline-offset: -1px; }
.co-choice:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.co-choice .cc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.co-choice .cc-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.co-choice .cc-price { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-choice .cc-desc { display: block; margin-top: 3px; font-size: 0.72rem; line-height: 1.55; color: var(--muted-foreground); }
.co-choice .cc-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-foreground); }

.co-opts { display: grid; gap: 6px; }
.co-opt {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer;
  transition: border-color var(--duration-feedback) var(--ease-feedback), background var(--duration-feedback) var(--ease-feedback);
}
.co-opt:hover { border-color: var(--field-border); }
.co-opt:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.co-opt .ol { display: flex; gap: 9px; align-items: flex-start; }
.co-opt input { margin: 0.28em 0 0; width: 15px; height: 15px; accent-color: var(--primary); flex: none; }
.co-opt .on { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.45; }
.co-opt .os { display: block; font-size: 0.72rem; line-height: 1.5; color: var(--muted-foreground); }
.co-opt .op { font-size: 0.8125rem; white-space: nowrap; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.co-opt:has(input:checked) .op { color: var(--foreground); }
.co-opt.is-disabled { opacity: 0.42; pointer-events: none; }

.pay { display: grid; gap: 8px; }
@media (min-width: 620px) { .pay { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay label {
  display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--field-border);
  border-radius: var(--radius); padding: 11px 12px; cursor: pointer; position: relative;
}
.pay label:has(input:checked) { border-color: var(--primary); background: var(--tint); outline: 1px solid var(--primary); outline-offset: -1px; }
.pay input { margin: 0.28em 0 0; width: 15px; height: 15px; accent-color: var(--primary); flex: none; }
.pay strong { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
.pay small { display: block; font-size: 0.72rem; line-height: 1.5; color: var(--muted-foreground); }

.checkout-sum { display: grid; gap: 12px; }
.sum { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.1vw, 24px); display: grid; gap: 12px; }
.sum > .label { color: var(--muted-foreground); }
.sum-lines { display: grid; gap: 6px; font-size: 0.8125rem; line-height: 1.5; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-foreground); }
.sum-lines li b { font-weight: 500; color: var(--foreground); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-rows { display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 0.8125rem; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.sum-rows dt { color: var(--muted-foreground); }
.sum-rows dd { font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 2px; }
.sum-total .t { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.sum-total .v { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum-total .v span { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); margin-left: 4px; }
.sum-due { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.8125rem; background: var(--tint); color: var(--tint-foreground); padding: 9px 11px; border-radius: 2px; }
.sum-due b { font-weight: 600; white-space: nowrap; }
.sum-note { font-size: 0.72rem; line-height: 1.6; color: var(--muted-foreground); }

.order-aside { display: grid; gap: 8px; }
.order-aside .form-msg { min-height: 1.2em; }
.order-trust { display: grid; gap: 6px; font-size: 0.75rem; color: var(--muted-foreground); }
.order-trust li { position: relative; padding-left: 14px; }
.order-trust li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 1px; background: var(--primary); }

/* ── 8) 주문 완료 카드 ─────────────────────────────────────────────────── */
.order-done[hidden] { display: none; }
.order-done {
  border: 1px solid var(--primary); border-radius: var(--radius); background: var(--tint);
  padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 10px; scroll-margin-top: calc(var(--header-h) + 16px);
}
.order-done .od-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.order-done .od-t { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint-foreground); }
.order-done .od-no { font-family: var(--font-mono); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); letter-spacing: 0.05em; }
.order-done h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.1875rem; line-height: 1.4; }
.order-done p { font-size: 0.8125rem; line-height: 1.7; color: var(--tint-foreground); }
.order-done dl { display: grid; gap: 5px; font-size: 0.8125rem; }
.order-done dl > div { display: flex; justify-content: space-between; gap: 12px; }
.order-done dt { color: var(--tint-foreground); opacity: 0.85; }
.order-done dd { text-align: right; font-variant-numeric: tabular-nums; }
.order-done .od-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.order-done .od-actions .btn { flex: 1 1 auto; }
.order-done .od-hint { font-size: 0.75rem; line-height: 1.6; }

/* ── 9) 반응형 ─────────────────────────────────────────────────────────── */
@media (max-width: 559px) {
  .shop-hero .hero-grid { gap: 20px; }
  .shop-hero .hero-copy { gap: 14px; }
  .btn-hero, .shop-hero .cluster .btn { width: 100%; }
  .shop-hero .cluster { gap: 8px; }
  .video-frame { width: min(100%, 250px); }
  .product .p-amount { font-size: 1.9rem; }
  .co-block { padding: 15px 14px; }
  .sum { padding:  16px 14px; }
  .order-done .od-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .video-play, .co-choice, .co-opt { transition: none; }
}
