/* 셀픽마켓 B안 (v2) 공통 스타일 */
:root {
  --page: #0a0a0a;
  --black: #1a1a2e;
  --black-2: #16213e;
  --cream: #f5f0e8;
  --cream-muted: #b0a898;
  --gold: #ff6b35;
  --gold-light: #ff8f66;
  --gold-dark: #d4470f;
  --gold-soft: rgba(255,107,53,0.14);
  --line: rgba(255,107,53,0.22);
  --line-subtle: rgba(255,255,255,0.1);
  --white: #ffffff;
  --shop-bg: #f4f2ec;
  --img-bg: #f0ede5;
  --card-border: #e8e4da;
  --divider-light: #eeeeee;
  --text-gray: #666666;
  --text-gray-light: #888888;
  --live: #e53e3e;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 16px 40px rgba(255,107,53,0.15);
  --shadow-btn-hover: 0 8px 24px rgba(255,107,53,0.35);
  --stripe: repeating-linear-gradient(135deg, #1e2a3a 0 14px, #243040 14px 28px);
  --font-sans: "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0; font-family: var(--font-sans); background: var(--shop-bg); color: var(--black);
  word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.gold { color: var(--gold-dark); }
.muted { color: var(--text-gray); }

/* 로고 */
.logo { display: inline-flex; align-items: center; line-height: 1; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.04em; color: var(--black); }
.logo span { color: var(--gold-dark); }
.logo.on-dark { color: var(--cream); }
.logo.on-dark span { color: var(--gold); }
.logo .logo-seal { width: 48px; height: 48px; margin-right: 10px; flex: none; transition: transform 0.3s ease; }
.logo:hover .logo-seal { transform: rotate(-8deg) scale(1.05); }
.site-footer .logo { font-size: 1.9rem; }
.site-footer .logo .logo-seal { width: 64px; height: 64px; margin-right: 14px; }

/* 상단 메뉴 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,242,236,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--card-border); }
.site-header .wrap { height: 80px; display: flex; align-items: center; gap: 48px; }
.main-nav { display: flex; gap: 6px; flex-grow: 1; }
.main-nav a { padding: 11px 18px; border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.main-nav a:hover { background: rgba(26,26,46,0.06); }
.main-nav a[aria-current="page"]:hover { background: var(--black); }
.main-nav a[aria-current="page"] { background: var(--black); color: var(--cream); font-weight: 700; }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn-line, .btn-solid {
  height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer;
}
.btn-line { border: 1.5px solid var(--black); font-weight: 600; background: transparent; color: var(--black); }
.btn-solid { background: var(--black); color: var(--cream); font-weight: 700; border: 1.5px solid var(--black); }
.btn-solid:hover { color: var(--gold-light); }
.btn-gold { height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 700; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer; background: var(--gold); color: var(--black); border: 1.5px solid var(--gold); transition: all 0.25s ease; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: var(--shadow-btn-hover); }
.btn-line:hover { background: var(--black); color: var(--cream); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--black); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.mobile-menu { display: none; }

/* 큰 버튼 */
.btn-xl {
  height: 60px; padding: 0 36px; border-radius: 999px; font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; cursor: pointer;
}
.btn-xl.dark { background: var(--black); color: var(--cream); border: 2px solid var(--black); }
.btn-xl.dark:hover { color: var(--gold-light); }
.btn-xl.outline { border: 2px solid var(--black); color: var(--black); background: transparent; }
.btn-xl.gold { background: var(--gold); color: var(--black); border: 2px solid var(--gold); }
.btn-xl.gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); box-shadow: var(--shadow-btn-hover); transform: translateY(-2px); }
.btn-xl, .btn-line, .btn-solid { transition: all 0.25s ease; }

/* 공통 섹션 제목 */
.display-h1 { margin: 24px 0 0; font-size: clamp(56px, 9.6vw, 140px); line-height: 0.98; font-weight: 900; letter-spacing: -0.055em; }
.display-h2 { margin: 0; font-size: clamp(44px, 6vw, 88px); line-height: 1; font-weight: 900; letter-spacing: -0.05em; }
.section-h2 { margin: 0; font-size: 48px; line-height: 1; font-weight: 900; letter-spacing: -0.045em; }

/* 세로 방송 카드 (9:16) */
.reel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.reel {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: var(--stripe); color: var(--cream);
}
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.reel:hover img { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 50%, rgba(10,10,10,0.9) 100%); }
.reel-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,0.55); color: var(--cream); }
.reel-badge.live { background: var(--live); color: #fff; }
.reel-info { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.reel-celeb { font-size: 13px; font-weight: 600; color: var(--gold-light); }
.reel-title { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: var(--cream); }
.reel-price { font-size: 17px; font-weight: 900; color: var(--cream); margin-top: 4px; }
.reel:hover .reel-title { color: var(--gold-light); }

/* 상품 카드 */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shop-grid > .feature { grid-column: span 2; grid-row: span 2; }
.p-card { display: block; background: var(--white); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.p-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); color: inherit; }
.p-card-img { aspect-ratio: 5 / 4; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.p-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s; }
.p-card:hover .p-card-img img { transform: scale(1.05); }
.p-card-info { padding: 14px 16px 16px; }
.p-card-celeb { font-size: 12px; font-weight: 700; color: var(--gold-dark); letter-spacing: 0.03em; margin-bottom: 4px; }
.p-code { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; color: #9a9187; }
.p-card-name { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-price { font-size: 17px; font-weight: 900; margin-top: 8px; }
.p-card.sold-out { opacity: 0.6; }
.img-fallback { font-size: 40px; }
.lock-price { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--gold-dark); white-space: nowrap; letter-spacing: 0; vertical-align: middle; }
.lock-price svg { flex: none; }
.reel .lock-price, .stage .lock-price { color: var(--gold-light); }

.feature { background: var(--white); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.feature-img { position: relative; flex-grow: 1; min-height: 320px; background: #fff; display: flex; align-items: center; justify-content: center; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.feature-body { padding: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.feature-celeb { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; color: var(--gold-dark); }
.feature-name { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; margin-top: 6px; }
.feature-price { font-size: 22px; font-weight: 800; margin-top: 4px; }

.badge-live { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; background: var(--live); border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-card { padding: 40px 36px; border-radius: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 400px; }
.how-card .num { font-size: 96px; font-weight: 900; letter-spacing: -0.06em; line-height: 0.9; }
.how-card h3 { margin: 24px 0 0; font-size: 32px; font-weight: 900; letter-spacing: -0.035em; }
.how-card p { margin: 0; font-size: 16px; line-height: 1.7; }
.how-card ul { margin: auto 0 0; padding: 20px 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.how-card li { font-size: 15px; font-weight: 600; }
.how-card.c1 { background: var(--gold); color: var(--black); }
.how-card.c1 ul { border-top: 1px solid rgba(26,26,46,0.25); }
.how-card.c2 { background: var(--black); color: var(--cream); }
.how-card.c2 ul { border-top: 1px solid rgba(255,107,53,0.3); }
.how-card.c3 { background: var(--white); color: var(--black); border: 1px solid var(--card-border); }
.how-card.c3 ul { border-top: 1px solid var(--divider-light); }
.how-card { transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s, border-color 0.35s; }
.how-card .num { transition: color 0.35s, transform 0.35s; transform-origin: left bottom; }
.how-card:hover, .how-card:active { transform: translateY(-12px); box-shadow: 0 28px 56px rgba(26,26,46,0.22); }
.how-card:hover .num, .how-card:active .num { transform: scale(1.08); }
.how-card.c1:hover { box-shadow: 0 28px 56px rgba(255,107,53,0.45); }
.how-card.c1:hover .num { color: var(--white); }
.how-card.c2:hover .num { color: var(--gold); }
.how-card.c3:hover { border-color: var(--gold); }
.how-card.c3:hover .num { color: var(--gold-dark); }
@media (prefers-reduced-motion: reduce) {
  .how-card, .how-card .num { transition: none; }
  .how-card:hover, .how-card:active, .how-card:hover .num { transform: none; }
}

/* 스튜디오 */
.studio-band { position: relative; height: 640px; background: var(--stripe); color: var(--cream); overflow: hidden; }
.studio-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.05) 80%); }
.studio-band .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--gold-soft); color: var(--cream); font-size: 14px; font-weight: 600; }

/* CTA 2분할 */
.cta-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cta-split > div { padding: 120px 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-split h2 { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 900; letter-spacing: -0.045em; }
.cta-split p { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.7; }
/* 마우스를 올린 칸: 구석에서 빛이 번지고, 내용이 살짝 떠오르며, 버튼이 빛남 */
.cta-split > div { position: relative; overflow: hidden; }
.cta-split > div::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -180px; top: -200px;
  opacity: 0; transform: scale(0.6); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.4,0,0.2,1); pointer-events: none;
}
.cta-brand::before { background: radial-gradient(circle, rgba(255,107,53,0.32) 0%, rgba(255,107,53,0) 70%); }
.cta-celeb::before { background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 70%); }
.cta-split > div > * { position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.35s; }
.cta-split > div:hover::before, .cta-split > div:active::before { opacity: 1; transform: scale(1); }
.cta-split > div:hover > *, .cta-split > div:active > * { transform: translateY(-8px); }
.cta-brand:hover h2 { color: var(--gold); }
.cta-celeb:hover h2 { color: var(--white); }
.cta-split .btn-xl { transition: transform 0.35s, box-shadow 0.35s, background 0.35s, color 0.35s; }
.cta-split > div:hover .btn-xl { transform: translateY(-8px) scale(1.05); }
.cta-brand:hover .btn-xl { box-shadow: 0 10px 30px rgba(255,107,53,0.45); }
.cta-celeb:hover .btn-xl { box-shadow: 0 10px 30px rgba(26,26,46,0.35); }
.cta-split .btn-xl { gap: 0; }
.cta-arrow { display: inline-block; max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; transform: translateX(-6px); transition: max-width 0.35s, margin-left 0.35s, opacity 0.35s, transform 0.35s; }
.cta-split > div:hover .cta-arrow { max-width: 1.5em; margin-left: 10px; opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .cta-split > div::before, .cta-split > div > *, .cta-split .btn-xl, .cta-arrow { transition: none; }
  .cta-split > div:hover > *, .cta-split > div:hover .btn-xl { transform: none; }
}

/* 푸터 */
.site-footer { background: #ede6da; color: #1d1b1a; border-top: 1px solid #e2d8ca; padding: 44px 0 36px; }
.site-footer .logo.on-dark { color: var(--black); }
.site-footer .logo.on-dark span { color: var(--gold-dark); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .contacts { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; line-height: 1.7; color: #6b6560; }
.site-footer .contacts strong { display: block; color: #1d1b1a; }
.site-footer .contacts a { color: #6b6560; }
.site-footer .contacts a:hover { color: var(--gold-dark); }
.site-footer .legal { margin-top: 24px; border-top: 1px solid #dccfbe; padding-top: 20px; font-size: 12px; line-height: 1.8; color: #857b70; }

/* 문의 모달 */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 440px; background: var(--white); border-radius: 24px; padding: 32px; }
.modal-card h3 { margin: 0 0 6px; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.modal-card label { display: block; font-size: 13px; font-weight: 700; margin: 16px 0 6px; }
.modal-card input, .modal-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 12px; font: inherit; font-size: 15px; background: var(--shop-bg); }
.modal-card textarea { min-height: 120px; resize: vertical; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--shop-bg); font-size: 18px; cursor: pointer; }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: #2f855a; }
.form-msg.err { color: var(--live); }

/* 빈 상태 */
.empty-box { padding: 56px 24px; text-align: center; border: 1.5px dashed var(--card-border); border-radius: 20px; color: var(--text-gray); font-size: 16px; line-height: 1.7; background: rgba(255,255,255,0.5); }

/* ---------------- 반응형 ---------------- */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .logo .logo-seal { width: 40px; height: 40px; }
  .site-footer .logo .logo-seal { width: 56px; height: 56px; }
  .main-nav, .header-actions .hide-sm { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; border-top: 1px solid var(--card-border); padding: 8px 16px 16px; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu > a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--card-border); }
  .mobile-menu .row { display: flex; gap: 8px; margin-top: 14px; }
  .mobile-menu .row > * { flex: 1; padding: 0 10px; }
  .reel-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; gap: 12px; }
  .reel-row .reel { flex: 0 0 220px; scroll-snap-align: start; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-card { min-height: 0; padding: 32px 28px; }
  .how-card .num { font-size: 64px; }
  .studio-band { height: 520px; }
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .cta-split > div { padding: 56px 20px; }
  .cta-split h2 { font-size: 38px; }
  .section-h2 { font-size: 36px; }
  .feature-img { min-height: 240px; }
  .btn-xl { height: 56px; padding: 0 24px; font-size: 16px; }
  .site-footer { padding: 40px 0; }
}

/* 장바구니 아이콘 */
.cart-link { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--black); transition: background 0.2s; }
.cart-link:hover { background: rgba(26,26,46,0.06); color: var(--black); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--black); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }

/* 함께하는 브랜드 파트너 (좌우로 흐르는 로고 띠) */
.partners { padding: 56px 0; background: #f8f6f0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.partners-label { margin: 0 0 28px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-gray-light); }
.partners-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: partners-scroll 32s linear infinite; }
.partners-row:hover .partners-track { animation-play-state: paused; }
.partner-logo { flex: none; height: 72px; padding: 12px 28px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1.5px solid #e0ddd5; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.partner-logo:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(255,107,53,0.15); transform: translateY(-2px); }
.partner-logo img { max-height: 100%; max-width: 150px; width: auto; height: auto; object-fit: contain; }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 860px) {
  .partners { padding: 36px 0; }
  .partners-label { margin-bottom: 20px; font-size: 13px; }
  .partners-track { gap: 16px; animation-duration: 24s; }
  .partner-logo { height: 56px; padding: 10px 18px; }
  .partner-logo img { max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .partner-logo[aria-hidden="true"] { display: none; }
}

/* 태블릿·작은 노트북 폭: 상단 메뉴와 버튼 3개가 한 줄에 들어가도록 간격을 줄입니다 */
@media (min-width: 861px) and (max-width: 1100px) {
  .site-header .wrap { gap: 16px; }
  .main-nav a { padding: 10px 11px; }
  .header-actions .btn-line, .header-actions .btn-solid, .header-actions .btn-gold { height: 40px; padding: 0 14px; }
  .logo .logo-seal { width: 42px; height: 42px; margin-right: 8px; }
}
.btn-line.me-link { max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 41px; }
.where-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.where-chip.off { background: #e4ded4; color: var(--text-gray); font-weight: 700; }
.site-footer .legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .legal a:hover { color: var(--gold-dark); }
