/* ═══════════════════════════════════════════════════════════════════════
 *  W-MARKET v2 — 화이트톤, 메인 홈페이지 톤앤매너 통일
 *  - Home 기준: --p #5B4CF5 / --purple #8B5CF6 / --cyan #0EA5E9
 *  - 글래스모피즘 + 부드러운 그라디언트 + 인터랙티브 효과 유지
 * ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Home 톤앤매너 일치 */
  --fx-p:        #5B4CF5;
  --fx-p-dark:   #4338CA;
  --fx-p-light:  #EEF2FF;
  --fx-p-rgb:    91, 76, 245;
  --fx-purple:   #8B5CF6;
  --fx-cyan:     #0EA5E9;
  --fx-cyan-bg:  #E0F2FE;
  --fx-green:    #10B981;
  --fx-green-bg: #D1FAE5;
  --fx-amber:    #F59E0B;
  --fx-amber-bg: #FEF3C7;
  --fx-red:      #EF4444;
  --fx-red-bg:   #FEE2E2;

  /* 화이트톤 */
  --fx-bg:       #FFFFFF;          /* 순백 메인 */
  --fx-bg-soft:  #F8FAFC;          /* 카드 외 부드러운 배경 */
  --fx-bg-2:     #F0F2F8;          /* Home 동일 */
  --fx-text:     #0F172A;
  --fx-text-2:   #1E293B;
  --fx-text-3:   #64748B;
  --fx-text-4:   #94A3B8;
  --fx-border:   #E2E8F0;
  --fx-border-2: #CBD5E1;
  --fx-glass:    rgba(255, 255, 255, .85);

  --fx-sh-sm: 0 1px 4px rgba(15, 23, 42, .05), 0 0 0 1px rgba(15, 23, 42, .03);
  --fx-sh:    0 4px 16px rgba(15, 23, 42, .06);
  --fx-sh-lg: 0 12px 40px rgba(15, 23, 42, .1);
  --fx-sh-p:  0 6px 24px rgba(91, 76, 245, .35);
}

* { scroll-behavior: smooth; }

body.mkt-v2 {
  background: var(--fx-bg);
  color: var(--fx-text);
  position: relative;
  overflow-x: hidden;
}

/* 부드러운 메쉬 배경 — 매우 잔잔한 인디고/시안 그라디언트 */
body.mkt-v2::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 0% 0%,    rgba(91, 76, 245, .08)  0%, transparent 60%),
    radial-gradient(700px 500px at 100% 0%,  rgba(139, 92, 246, .06) 0%, transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(14, 165, 233, .06) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -2;
  animation: aurora 25s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%, 100% { transform: translate(0, 0)    rotate(0deg) scale(1); }
  50%      { transform: translate(2%, -3%) rotate(2deg) scale(1.05); }
}

/* 미세한 도트 패턴 */
body.mkt-v2::after {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(91, 76, 245, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: .4;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 70%);
}

/* ── 헤더 (글래스) ──────────────────────────────────────────────────── */
.fx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--fx-border);
  box-shadow: 0 1px 12px rgba(15, 23, 42, .04);
}
.fx-header .top {
  background: rgba(248, 250, 252, .6);
  padding: 6px 0; font-size: 12px;
  border-bottom: 1px solid var(--fx-border);
}
.fx-header .top .wh-container {
  display: flex; justify-content: center; gap: 18px;
  color: var(--fx-text-3); flex-wrap: wrap;
}
.fx-header .top a { color: var(--fx-text-3); text-decoration: none; transition: color .15s; }
.fx-header .top a:hover { color: var(--fx-p); }
.fx-header .main {
  padding: 16px 0; display: flex; align-items: center; gap: 24px;
}

.fx-logo {
  font-size: 24px; font-weight: 900; letter-spacing: -.04em;
  text-decoration: none; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fx-p), var(--fx-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 검색바 */
.fx-search { flex: 1; max-width: 720px; position: relative; }
.fx-search input {
  width: 100%;
  padding: 14px 60px 14px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--fx-border);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  font-size: 15px; font-family: inherit;
  color: var(--fx-text); outline: none;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.fx-search input::placeholder { color: var(--fx-text-4); }
.fx-search input:focus {
  border-color: var(--fx-p);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--fx-p-rgb), .1), 0 8px 28px rgba(var(--fx-p-rgb), .15);
}
.fx-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--fx-p), var(--fx-purple));
  color: #fff; cursor: pointer;
  font-size: 16px; box-shadow: var(--fx-sh-p);
  transition: all .25s;
}
.fx-search button:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 28px rgba(var(--fx-p-rgb), .5);
}

/* 헤더 액션 */
.fx-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.fx-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 12px; cursor: pointer;
  text-decoration: none; color: var(--fx-text-2); font-size: 11px;
  transition: all .25s;
}
.fx-action i { font-size: 18px; transition: transform .25s; color: var(--fx-text-3); }
.fx-action:hover { color: var(--fx-p); background: var(--fx-p-light); }
.fx-action:hover i { color: var(--fx-p); transform: translateY(-2px) scale(1.08); }

/* ── 카테고리 ──────────────────────────────────────────────────────── */
.fx-cats {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fx-border);
  padding: 12px 0; overflow: hidden; position: relative;
}
.fx-cats::before, .fx-cats::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px;
  z-index: 1; pointer-events: none;
}
.fx-cats::before { left: 0; background: linear-gradient(to right, var(--fx-bg), transparent); }
.fx-cats::after  { right: 0; background: linear-gradient(to left,  var(--fx-bg), transparent); }
.fx-cats .wh-container {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none;
}
.fx-cats .wh-container::-webkit-scrollbar { display: none; }
.fx-cat {
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--fx-text-2);
  text-decoration: none; white-space: nowrap;
  background: #fff; border: 1px solid var(--fx-border);
  transition: all .25s; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.fx-cat::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--fx-p), var(--fx-purple));
  opacity: 0; transition: opacity .25s; z-index: -1;
}
.fx-cat:hover, .fx-cat.active {
  color: #fff; border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--fx-p-rgb), .25);
}
.fx-cat:hover::before, .fx-cat.active::before { opacity: 1; }
.fx-cat:hover, .fx-cat.active { z-index: 0; }

/* ── 풀폭 슬라이드 배너 ────────────────────────────────────────────── */
.fx-fullhero{
  position:relative; width:100%; overflow:hidden;
  background:linear-gradient(135deg,#F5F3FF 0%, #FDF2F8 50%, #ECFEFF 100%);
}
.fx-slider{ position:relative; width:100%; height:clamp(320px, 42vw, 520px); overflow:hidden; }
.fx-slide{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  opacity:0; transform:scale(1.04); transition:opacity .9s ease, transform 1.4s ease;
  background-size:cover; background-position:center;
}
.fx-slide.is-active{ opacity:1; transform:scale(1); z-index:2; }
.fx-slide::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 60%, rgba(0,0,0,.28));
  pointer-events:none;
}
.fx-slide-inner{
  position:relative; z-index:2; max-width:1280px; width:100%; padding:0 5vw;
  display:flex; flex-direction:column; gap:14px; color:#fff;
  align-items:flex-start;
}
.fx-slide.center .fx-slide-inner{ align-items:center; text-align:center; }
.fx-slide-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:999px;
  background:rgba(255,255,255,.18); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.3);
  font-size:11.5px; font-weight:800; letter-spacing:.06em;
}
.fx-slide-title{
  font-size:clamp(28px, 4.6vw, 56px); font-weight:900; line-height:1.15;
  letter-spacing:-.04em; text-shadow:0 4px 32px rgba(0,0,0,.25);
}
.fx-slide-sub{
  font-size:clamp(13px, 1.3vw, 17px); line-height:1.7; opacity:.95;
  max-width:640px; text-shadow:0 2px 14px rgba(0,0,0,.25);
}
.fx-slide-cta{
  margin-top:8px; display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:999px;
  background:#fff; color:#0F172A; font-weight:800; font-size:14px;
  text-decoration:none; box-shadow:0 12px 28px rgba(0,0,0,.25);
  transition:all .25s;
}
.fx-slide-cta:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(0,0,0,.32); }

/* 슬라이더 컨트롤 */
.fx-slider-dots{
  position:absolute; bottom:22px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px; z-index:5;
}
.fx-slider-dot{
  width:30px; height:4px; border-radius:999px;
  background:rgba(255,255,255,.45); cursor:pointer; border:0;
  transition:background .3s;
}
.fx-slider-dot.is-active{ background:#fff; width:46px; }
.fx-slider-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:50%; border:0;
  background:rgba(255,255,255,.18); backdrop-filter:blur(10px);
  color:#fff; font-size:18px; cursor:pointer; z-index:5;
  display:flex; align-items:center; justify-content:center;
  transition:all .25s;
}
.fx-slider-arrow:hover{ background:rgba(255,255,255,.32); transform:translateY(-50%) scale(1.08); }
.fx-slider-arrow.prev{ left:18px; }
.fx-slider-arrow.next{ right:18px; }
@media(max-width:768px){
  .fx-slider{ height:300px; }
  .fx-slider-arrow{ display:none; }
}

/* ── 히어로 ────────────────────────────────────────────────────────── */
.fx-hero {
  position: relative; padding: 80px 0 60px; overflow: hidden;
}
.fx-hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.fx-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--fx-p-light); border: 1px solid rgba(var(--fx-p-rgb), .15);
  font-size: 12px; font-weight: 600; color: var(--fx-p);
  margin-bottom: 24px;
  animation: float-up 1s ease-out;
}
.fx-hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fx-green); box-shadow: 0 0 12px var(--fx-green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .7; }
}

.fx-hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 900;
  line-height: 1.15; letter-spacing: -.04em; margin-bottom: 18px;
  color: var(--fx-text);
  animation: float-up 1.1s ease-out;
}
.fx-hero h1 .accent {
  background: linear-gradient(135deg, var(--fx-p) 0%, var(--fx-purple) 60%, var(--fx-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-hero p.sub {
  font-size: clamp(15px, 1.4vw, 17px); color: var(--fx-text-3);
  line-height: 1.75; margin-bottom: 32px;
  animation: float-up 1.2s ease-out;
}
@keyframes float-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fx-hero-stats {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 36px; flex-wrap: wrap;
}
.fx-hero-stat .num {
  font-size: 32px; font-weight: 900;
  color: var(--fx-text);
  letter-spacing: -.02em;
}
.fx-hero-stat .label {
  font-size: 11px; color: var(--fx-text-4);
  text-transform: uppercase; letter-spacing: .12em;
}

/* 떠다니는 블롭 — 잔잔한 인디고/시안 */
.fx-hero-blobs { position: absolute; inset: 0; overflow: hidden; }
.fx-blob {
  position: absolute; width: 320px; height: 320px;
  border-radius: 50%; filter: blur(90px); opacity: .25;
  animation: blob-float 22s ease-in-out infinite;
}
.fx-blob.b1 { top: -60px; left: 8%;  background: var(--fx-p); }
.fx-blob.b2 { top: 15%;   right: 5%; background: var(--fx-purple); animation-delay: -7s; }
.fx-blob.b3 { bottom: -60px; left: 50%; background: var(--fx-cyan); animation-delay: -14s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -30px) scale(1.1); }
  66%      { transform: translate(-50px, 25px) scale(.95); }
}

/* ── 라이브 티커 ────────────────────────────────────────────────────── */
.fx-ticker {
  background: var(--fx-p-light);
  border-top: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
  padding: 14px 0; overflow: hidden;
}
.fx-ticker-track {
  display: flex; gap: 56px; animation: ticker-scroll 40s linear infinite;
  white-space: nowrap; will-change: transform;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.fx-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fx-text-2);
}
.fx-ticker-item strong { color: var(--fx-text); }
.fx-ticker-item i { color: var(--fx-p); }
.fx-ticker-item .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fx-green); box-shadow: 0 0 8px var(--fx-green);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

/* ── 섹션 헤더 ─────────────────────────────────────────────────────── */
.fx-section { padding: 72px 0 48px; position: relative; }
.fx-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px;
}
.fx-section-head .title-block .label {
  font-size: 11px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--fx-p);
  margin-bottom: 6px;
}
.fx-section-head h2 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 900;
  letter-spacing: -.03em; color: var(--fx-text); line-height: 1.2;
}
.fx-section-head .more {
  font-size: 13px; color: var(--fx-text-3); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: all .2s;
}
.fx-section-head .more:hover { color: var(--fx-p); gap: 8px; }

/* ── 베노 그리드 ───────────────────────────────────────────────────── */
.fx-bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
}
@media (max-width: 1100px) { .fx-bento { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .fx-bento { grid-template-columns: repeat(2, 1fr); } }

.fx-bento .b-large { grid-column: span 2; grid-row: span 2; }
.fx-bento .b-tall  { grid-row: span 2; }
.fx-bento .b-wide  { grid-column: span 2; }

/* ── 상품 카드 (화이트톤) ──────────────────────────────────────────── */
.fx-card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 20px; padding: 18px;
  cursor: pointer;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: var(--fx-sh-sm);
}

.fx-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--fx-p-rgb), .07), transparent 40%);
  opacity: 0; transition: opacity .25s;
  border-radius: inherit; pointer-events: none;
}
.fx-card:hover::before { opacity: 1; }

.fx-card:hover {
  border-color: rgba(var(--fx-p-rgb), .35);
  box-shadow: 0 16px 44px rgba(15, 23, 42, .08), 0 0 40px rgba(var(--fx-p-rgb), .1);
}

.fx-card-img {
  position: relative; aspect-ratio: 4/3;
  border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: #fff;
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
}
.fx-card.b-large .fx-card-img { aspect-ratio: 16/10; font-size: 96px; }

/* 카테고리별 그라디언트 — 홈 톤 기반 */
.fx-card-img.cat-wp_theme        { background: linear-gradient(135deg, var(--fx-amber), var(--fx-purple)); }
.fx-card-img.cat-wp_plugin       { background: linear-gradient(135deg, var(--fx-green), var(--fx-cyan)); }
.fx-card-img.cat-nextjs_template { background: linear-gradient(135deg, var(--fx-text), var(--fx-p)); }
.fx-card-img.cat-laravel_pkg     { background: linear-gradient(135deg, var(--fx-red), var(--fx-amber)); }
.fx-card-img.cat-design          { background: linear-gradient(135deg, var(--fx-purple), var(--fx-p)); }
.fx-card-img.cat-other           { background: linear-gradient(135deg, var(--fx-p), var(--fx-cyan)); }

.fx-card-img .ico {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .15));
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.fx-card:hover .fx-card-img .ico { transform: scale(1.12) rotate(-4deg); }

.fx-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .15));
  opacity: 0; transition: opacity .35s;
}
.fx-card:hover .fx-card-img::after { opacity: 1; }

.fx-badges-tl, .fx-badges-tr {
  position: absolute; display: flex; flex-direction: column; gap: 5px; z-index: 2;
}
.fx-badges-tl { top: 10px; left: 10px; }
.fx-badges-tr { top: 10px; right: 10px; }
.fx-badge {
  padding: 4px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  backdrop-filter: blur(12px);
}
.fx-badge.featured {
  background: rgba(255, 255, 255, .95); color: var(--fx-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.fx-badge.free {
  background: linear-gradient(135deg, var(--fx-green), var(--fx-cyan)); color: #fff;
}
.fx-badge.hot {
  background: linear-gradient(135deg, var(--fx-red), var(--fx-amber)); color: #fff;
}
.fx-badge.new {
  background: linear-gradient(135deg, var(--fx-cyan), var(--fx-p)); color: #fff;
}

.fx-card-title {
  font-size: 15px; font-weight: 700; color: var(--fx-text);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fx-card.b-large .fx-card-title { font-size: 22px; }

.fx-card-meta {
  display: flex; gap: 10px; font-size: 11px; color: var(--fx-text-3);
}
.fx-card-meta .star { color: var(--fx-amber); }

.fx-card-price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--fx-border);
}
.fx-card-price {
  font-size: 18px; font-weight: 900; color: var(--fx-text);
  letter-spacing: -.02em;
}
.fx-card-price .unit { font-size: 12px; font-weight: 600; color: var(--fx-text-3); }
.fx-card-price.free {
  background: linear-gradient(135deg, var(--fx-green), var(--fx-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-card-cta {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fx-p), var(--fx-purple));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
  transform: translateX(0);
  transition: transform .35s, box-shadow .35s;
  box-shadow: 0 4px 14px rgba(var(--fx-p-rgb), .35);
}
.fx-card:hover .fx-card-cta {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(var(--fx-p-rgb), .5);
}

.fx-card.b-large .fx-card-desc {
  font-size: 13px; color: var(--fx-text-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 스켈레톤 ─────────────────────────────────────────────────────── */
.fx-skeleton {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 스크롤 리빌 ──────────────────────────────────────────────────── */
.fx-reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.fx-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── 사이드 필터 ──────────────────────────────────────────────────── */
.fx-mkt-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
@media (max-width: 880px) { .fx-mkt-layout { grid-template-columns: 1fr; } }

.fx-filter {
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 18px; padding: 18px;
  position: sticky; top: 140px;
  box-shadow: var(--fx-sh-sm);
}
.fx-filter-group {
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--fx-border);
}
.fx-filter-group:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.fx-filter-title {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fx-text-3);
  margin-bottom: 10px;
}
.fx-filter-item {
  display: flex; align-items: center;
  padding: 7px 10px; margin: 2px 0;
  font-size: 13px; color: var(--fx-text-2);
  cursor: pointer; text-decoration: none;
  border-radius: 8px; transition: all .2s;
}
.fx-filter-item:hover {
  background: var(--fx-p-light); color: var(--fx-p);
}
.fx-filter-item.active {
  color: var(--fx-p); font-weight: 700;
  background: var(--fx-p-light);
}
.fx-filter-item .count { margin-left: auto; color: var(--fx-text-4); font-size: 11px; }

/* ── 빈 상태 ──────────────────────────────────────────────────────── */
.fx-empty {
  text-align: center; padding: 100px 24px;
  background: #fff; border-radius: 24px;
  border: 1.5px dashed var(--fx-border-2);
  box-shadow: var(--fx-sh-sm);
}
.fx-empty .ico {
  font-size: 64px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--fx-p), var(--fx-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-empty h4 {
  font-size: 18px; font-weight: 800; margin-bottom: 8px;
  color: var(--fx-text);
}
.fx-empty p { font-size: 13px; color: var(--fx-text-3); }

/* ── 상세 페이지 ─────────────────────────────────────────────────── */
.fx-detail-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start;
}
@media (max-width: 880px) { .fx-detail-grid { grid-template-columns: 1fr; } }

.fx-detail-cover {
  aspect-ratio: 4/3; border-radius: 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 140px; color: #fff;
  position: relative;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .15);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.fx-detail-cover .ico {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .25));
}
.fx-detail-cover::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .15)    0%, transparent 50%);
  pointer-events: none;
}

.fx-detail-info h1 {
  font-size: clamp(26px, 3.5vw, 36px); font-weight: 900;
  letter-spacing: -.03em; color: var(--fx-text); line-height: 1.2;
}
.fx-detail-meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  font-size: 13px; color: var(--fx-text-3);
}
.fx-detail-meta .star { color: var(--fx-amber); }

.fx-buy-card {
  position: sticky; top: 140px;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 24px; padding: 24px;
  box-shadow: var(--fx-sh-lg);
}
.fx-buy-price {
  font-size: 42px; font-weight: 900; color: var(--fx-text);
  letter-spacing: -.03em; line-height: 1;
}
.fx-buy-price.free {
  background: linear-gradient(135deg, var(--fx-green), var(--fx-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-buy-price .unit { font-size: 18px; font-weight: 700; color: var(--fx-text-3); }

.fx-info-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--fx-border); font-size: 13px;
}
.fx-info-row:last-child { border: 0; }
.fx-info-row .l { color: var(--fx-text-3); }
.fx-info-row .v { color: var(--fx-text); font-weight: 600; }

.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  border: 0; cursor: pointer; text-decoration: none;
  transition: all .25s; position: relative; overflow: hidden;
}
.fx-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--fx-p), var(--fx-purple));
  box-shadow: var(--fx-sh-p);
}
.fx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--fx-p-rgb), .45);
}
.fx-btn-block { width: 100%; }
.fx-btn-secondary {
  background: #fff; color: var(--fx-text);
  border: 1.5px solid var(--fx-border);
}
.fx-btn-secondary:hover {
  background: var(--fx-p-light);
  border-color: var(--fx-p); color: var(--fx-p);
}
.fx-btn-success {
  background: linear-gradient(135deg, var(--fx-green), var(--fx-cyan));
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .3);
}

.fx-input {
  width: 100%; padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--fx-border);
  border-radius: 12px; color: var(--fx-text);
  font-size: 14px; font-family: inherit;
  transition: all .2s;
}
.fx-input:focus {
  outline: none; border-color: var(--fx-p);
  box-shadow: 0 0 0 4px rgba(var(--fx-p-rgb), .1);
}
.fx-input::placeholder { color: var(--fx-text-4); }

/* ── 토스트 ───────────────────────────────────────────────────────── */
.fx-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, .98); color: var(--fx-text);
  padding: 14px 22px; border-radius: 14px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-sh-lg);
  backdrop-filter: blur(20px);
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  max-width: 90vw;
}
.fx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fx-toast.success {
  border-color: rgba(16, 185, 129, .4);
  box-shadow: 0 12px 32px rgba(16, 185, 129, .2);
}
.fx-toast.success i { color: var(--fx-green); }
.fx-toast.error {
  border-color: rgba(239, 68, 68, .4);
  box-shadow: 0 12px 32px rgba(239, 68, 68, .2);
}
.fx-toast.error i { color: var(--fx-red); }

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.fx-footer {
  background: var(--fx-bg-soft);
  border-top: 1px solid var(--fx-border);
  padding: 32px 0; margin-top: 80px;
  font-size: 12px; color: var(--fx-text-3);
}
.fx-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .fx-footer .grid { grid-template-columns: 1fr; } }
.fx-footer a { color: var(--fx-text-3); text-decoration: none; transition: color .15s; }
.fx-footer a:hover { color: var(--fx-p); }

/* ── 빵부스러기 ───────────────────────────────────────────────────── */
.fx-crumb {
  font-size: 12px; color: var(--fx-text-4);
  display: flex; gap: 8px; align-items: center; margin-bottom: 20px;
}
.fx-crumb a { color: var(--fx-text-3); text-decoration: none; transition: color .15s; }
.fx-crumb a:hover { color: var(--fx-p); }

/* ── 정보 카드 ────────────────────────────────────────────────────── */
.fx-info-card {
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 20px; padding: 24px;
  box-shadow: var(--fx-sh-sm);
}
.fx-info-card h3 {
  font-size: 18px; font-weight: 800; color: var(--fx-text);
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════════════
 *  모바일 반응형 — 단계적 브레이크포인트
 *  1024px / 768px / 640px / 480px
 * ══════════════════════════════════════════════════════════════════ */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .wh-container { padding: 0 16px; }
  .fx-section { padding: 56px 0 36px; }
  .fx-hero { padding: 60px 0 40px; }
}

/* 작은 태블릿 / 큰 모바일 (768px 이하) */
@media (max-width: 768px) {
  /* 헤더 — 위아래 2단으로 재구성 */
  .fx-header .top { font-size: 11px; padding: 4px 0; }
  .fx-header .top .wh-container { gap: 8px; flex-wrap: wrap; justify-content: center; }

  .fx-header .main {
    flex-wrap: wrap; gap: 10px; padding: 12px 0;
  }
  .fx-logo { font-size: 20px; flex: 0 0 auto; order: 1; }

  /* 액션 — 로고 옆 배치 */
  .fx-actions { order: 2; gap: 4px; flex: 0 0 auto; margin-left: auto; }
  .fx-action { padding: 4px 8px; font-size: 10px; }
  .fx-action i { font-size: 16px; }

  /* 검색바 — 두 번째 줄 풀폭 */
  .fx-search {
    flex: 1 1 100%; order: 3; max-width: 100%;
  }
  .fx-search input {
    padding: 11px 50px 11px 18px; font-size: 14px;
  }
  .fx-search button { width: 38px; height: 38px; font-size: 14px; }

  /* 카테고리 — 좌우 패딩 축소 */
  .fx-cats { padding: 10px 0; }
  .fx-cat { padding: 7px 14px; font-size: 12px; }

  /* 히어로 */
  .fx-hero { padding: 48px 0 32px; }
  .fx-hero-content { padding: 0 16px; }
  .fx-hero-badge { font-size: 11px; padding: 6px 14px; margin-bottom: 18px; }
  .fx-hero h1 { font-size: clamp(28px, 7vw, 42px) !important; line-height: 1.2; }
  .fx-hero p.sub { font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
  .fx-hero-stats { gap: 24px; margin-top: 24px; }
  .fx-hero-stat .num { font-size: 24px; }
  .fx-hero-stat .label { font-size: 10px; }

  /* 블롭 사이즈 축소 */
  .fx-blob { width: 200px; height: 200px; opacity: .15; filter: blur(60px); }

  /* 베노 — 큰 카드 = 일반 카드 */
  .fx-bento { gap: 12px; }
  .fx-bento .b-large { grid-column: span 2; grid-row: span 1; }
  .fx-bento .b-large .fx-card-img { aspect-ratio: 4/3; font-size: 56px; }
  .fx-bento .b-large .fx-card-title { font-size: 17px; }
  .fx-bento .b-large .fx-card-desc { display: none; }

  /* 카드 패딩 축소 */
  .fx-card { padding: 12px; gap: 8px; border-radius: 16px; }
  .fx-card-title { font-size: 13px; }
  .fx-card-meta { font-size: 10px; gap: 6px; }
  .fx-card-price { font-size: 15px; }
  .fx-card-cta { width: 30px; height: 30px; font-size: 11px; }

  /* 3D 틸트 비활성 (터치 디바이스) */
  .fx-card { transform: none !important; }
  .fx-card::before { display: none; }

  /* 사이드 필터 — 접기 가능 */
  .fx-mkt-layout { gap: 16px; }
  .fx-filter {
    position: static; padding: 14px;
    margin-bottom: 16px;
  }
  .fx-filter details { cursor: pointer; }
  .fx-filter-group { margin-bottom: 12px; padding-bottom: 10px; }

  /* 섹션 헤더 */
  .fx-section { padding: 40px 0 28px; }
  .fx-section-head {
    flex-direction: column; align-items: flex-start; gap: 6px;
    margin-bottom: 18px;
  }
  .fx-section-head h2 { font-size: clamp(20px, 5vw, 26px); }

  /* 상세 페이지 */
  .fx-detail-grid { gap: 20px; }
  .fx-detail-cover { aspect-ratio: 16/10; font-size: 80px; border-radius: 18px; }
  .fx-detail-info h1 { font-size: clamp(22px, 5vw, 28px); }

  .fx-buy-card {
    position: static; padding: 18px; border-radius: 18px;
  }
  .fx-buy-price { font-size: 32px; }

  .fx-info-card { padding: 18px; border-radius: 16px; }
  .fx-info-card h3 { font-size: 16px; }

  /* 빈 상태 */
  .fx-empty { padding: 60px 16px; }
  .fx-empty .ico { font-size: 48px; }
  .fx-empty h4 { font-size: 16px; }

  /* 푸터 */
  .fx-footer { margin-top: 40px; padding: 24px 0; }

  /* 티커 — 속도 증가 */
  .fx-ticker { padding: 10px 0; }
  .fx-ticker-track { animation-duration: 30s; gap: 36px; }
  .fx-ticker-item { font-size: 12px; }

  /* 토스트 */
  .fx-toast { bottom: 20px; padding: 12px 18px; font-size: 13px; max-width: 92vw; }

  /* 버튼 */
  .fx-btn { padding: 11px 18px; font-size: 13px; }
}

/* 일반 모바일 (640px 이하) */
@media (max-width: 640px) {
  .wh-container { padding: 0 12px; }

  /* 헤더 액션 일부 숨김 */
  .fx-action span { display: none; }
  .fx-action { padding: 6px 8px; }
  .fx-action i { font-size: 18px; }

  /* 베노 — 1열 */
  .fx-bento { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fx-bento .b-large { grid-column: span 2; }

  /* 카드 더 컴팩트 */
  .fx-card-img { aspect-ratio: 1/1; font-size: 40px; }
  .fx-card.b-large .fx-card-img { aspect-ratio: 16/10; font-size: 64px; }

  /* 히어로 */
  .fx-hero h1 { font-size: clamp(26px, 8vw, 34px) !important; }
  .fx-hero-stats { gap: 16px; }
  .fx-hero-stat .num { font-size: 20px; }

  /* 카테고리 마퀴 — 시작 페이드 강화 */
  .fx-cats::before, .fx-cats::after { width: 24px; }

  /* 푸터 */
  .fx-footer { padding: 20px 0; font-size: 11px; }

  /* 검색바 단축키 안내 숨김 */
  .fx-search input::placeholder { font-size: 12px; }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .fx-header .top { display: none; }
  .fx-header .main { padding: 10px 0; gap: 8px; }

  .fx-logo { font-size: 18px; }

  .fx-search input {
    padding: 9px 44px 9px 14px; font-size: 13px;
  }
  .fx-search button { width: 32px; height: 32px; font-size: 12px; }

  /* 베노 1열 */
  .fx-bento { grid-template-columns: 1fr; }
  .fx-bento .b-large { grid-column: span 1; }
  .fx-card-img { aspect-ratio: 16/10; font-size: 56px; }

  .fx-hero { padding: 32px 0 20px; }
  .fx-hero h1 { font-size: 24px !important; line-height: 1.25; }
  .fx-hero p.sub { font-size: 13px; }
  .fx-hero-badge { font-size: 10px; padding: 5px 12px; }
  .fx-hero-stats { gap: 12px; }
  .fx-hero-stat .num { font-size: 18px; }
  .fx-hero-stat .label { font-size: 9px; letter-spacing: .08em; }

  /* 디테일 */
  .fx-detail-cover { font-size: 60px; }
  .fx-buy-price { font-size: 28px; }

  /* 빈 상태 */
  .fx-empty { padding: 40px 12px; }
  .fx-empty h4 { font-size: 15px; }
}

/* 터치 디바이스 — hover 효과 비활성 */
@media (hover: none) {
  .fx-card:hover { transform: none; box-shadow: var(--fx-sh-sm); }
  .fx-card:hover::before { opacity: 0; }
  .fx-card:hover .fx-card-img .ico { transform: none; }
  .fx-card:hover .fx-card-cta { transform: translateX(0); }
  .fx-cat:hover { transform: none; }
  .fx-cat:hover::before { opacity: 0; }
  .fx-cat.active::before { opacity: 1; }
  .fx-cat.active { color: #fff; transform: translateY(-2px); }
}

/* ── 모션 감소 ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.mkt-v2::before, body.mkt-v2::after,
  .fx-blob, .fx-ticker-track, .fx-card, .fx-card-img .ico,
  .fx-skeleton, .fx-reveal {
    animation: none !important; transition: none !important;
  }
  .fx-reveal { opacity: 1; transform: none; }
}
