/* 시안 B — 웜 마켓 (핫딜 기능 중심: 라이브 타임특가 패널 · 아이콘 타일 · 시장 스토리 · 실시간 랭킹) */
:root {
  --primary: #e8590c; --accent: #e8590c; --sale: #e03131; --onnuri: #1c7c54; --onnuri-soft: #e3f4ec;
  --member: #e8590c; --ink: #1f2a44; --sub: #5d6474; --mute: #9ea3ae; --line: #ece6dc; --line-strong: #dcd4c6;
  --bg: #fbf8f3; --bg-soft: #f3ece1; --header-bg: #fffdf9; --gnb-bg: #1f2a44; --gnb-ink: #fff;
  --strip-bg: #1f2a44; --strip-ink: #ffd8bf; --search-line: #e8590c; --chip-on: #1f2a44;
  --tag-bg: #fff0e5; --tag-ink: #c2470a; --coupon-bg: #fff3ea; --coupon-line: #ffd5b8;
  --mem-bg: #1f2a44; --mem-ink: #fff; --foot-bg: #1f2a44; --foot-ink: #d7dbe4;
  --hero-1: linear-gradient(135deg, #f6d365, #fda085); --hero-2: linear-gradient(135deg, #ff9a6b, #e8590c); --hero-3: linear-gradient(135deg, #8fd3b6, #2f9c74);
  --r: 12px; --img-r: 12px; --btn-r: 12px; --logo-r: 50%; --hero-h: 100%; --icon-gray: 0;
}
.gnb .allcat { color: #fff; border-color: rgba(255,255,255,.2); }
.gnb-menu a.hl { color: #ffb385; }
.gnb-menu a.on { border-bottom-color: #ffb385; }
.slide { color: var(--ink); }
.sec-head h2 { font-size: 28px; }

.b-hero { display: grid; grid-template-columns: 380px 1fr; gap: 16px; margin-top: 24px !important; height: 440px; }
.b-hero .hero { border-radius: var(--r); }
.b-hero .slide h1 { font-size: 44px; }
.b-hero .slide-emoji { font-size: 150px; }
.deal-panel { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r); background: var(--ink); color: #fff; }
.dp-top { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.dp-top .live { color: #ff6b6b; font-weight: 900; animation: blink 1.4s infinite; }
.dp-top span:last-child { opacity: .6; }
@keyframes blink { 50% { opacity: .35; } }
.deal-panel h1 { font-size: 30px; line-height: 1.25; font-weight: 900; margin: 12px 0 8px; letter-spacing: -0.04em; }
.big-count { font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; color: #ffb385; letter-spacing: 0; }
.dp-item { display: flex; gap: 12px; align-items: center; margin: auto 0 14px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.08); }
.dp-item > span { flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; border-radius: 10px; background: var(--tint); }
.dp-item small { opacity: .6; font-size: 12px; }
.dp-item p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dp-item em { font-style: normal; color: #ff8f8f; }
.deal-panel .btn-solid { width: 100%; }

.quick-tiles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 32px !important; }
.quick-tiles a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 14px 0; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.quick-tiles span { font-size: 30px; }
.quick-tiles a:first-child { background: var(--primary); color: #fff; border-color: var(--primary); }

.story-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.story b { display: block; font-size: 18px; margin-top: 12px; }
.story p { color: var(--sub); font-size: 14px; }
.story small { color: var(--primary); font-weight: 700; }
.story-cover { position: relative; height: 220px; border-radius: var(--r); background: var(--tint); display: grid; place-items: center; font-size: 96px; }
.story-cover em { position: absolute; left: 14px; top: 14px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--ink); padding: 3px 10px; border-radius: 99px; }

.rank-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rank-list { list-style: none; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.rank-list a { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child a { border: 0; }
.rank-list a > b { width: 22px; font-size: 20px; font-weight: 900; color: var(--primary); text-align: center; }
.ri { flex: none; width: 72px; height: 72px; border-radius: 10px; display: grid; place-items: center; font-size: 36px; background: var(--tint); }
.rank-list div { flex: 1; min-width: 0; font-weight: 800; }
.rank-list p { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.rank-list em { font-style: normal; color: var(--sale); }
.rank-list small { color: var(--sale); }

.mag { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.mag-main { display: flex; align-items: flex-end; justify-content: space-between; padding: 36px; height: 300px; border-radius: var(--r); background: linear-gradient(135deg, #f3e2c0, #e7c98f); position: relative; overflow: hidden; }
.mag-main > span { position: absolute; right: 30px; top: 10px; font-size: 220px; opacity: .9; }
.mag-main div { position: relative; }
.mag-main small { font-weight: 800; letter-spacing: .15em; color: var(--primary); }
.mag-main h3 { font-size: 34px; font-weight: 900; }
.mag-side { display: flex; flex-direction: column; gap: 12px; }
.mag-side a { flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: 18px; }
.mag-side i { font-style: normal; font-size: 36px; }
.mag-side span { margin-left: auto; color: var(--mute); }

.membership { background: var(--mem-bg); }
.tiers li { background: rgba(255,179,133,calc(.12 + var(--lv) * .1)); }
.time-box { display: none; }

@media (max-width: 1024px) {
  .b-hero { grid-template-columns: 1fr; height: auto; }
  .b-hero .hero { height: 300px; }
  .quick-tiles { grid-template-columns: repeat(5, 1fr); }
  .story-row { grid-template-columns: repeat(2, 1fr); }
  .rank-wrap, .mag { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .b-hero { margin-top: 12px !important; }
  .b-hero .hero { height: 220px; }
  .b-hero .slide h1 { font-size: 26px; } .b-hero .slide-emoji { font-size: 80px; }
  .deal-panel { padding: 20px; }
  .deal-panel h1 { font-size: 22px; } .big-count { font-size: 34px; }
  .dp-item { margin: 14px 0; }
  .quick-tiles { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .quick-tiles a { font-size: 11px; padding: 10px 0; } .quick-tiles span { font-size: 24px; }
  .story-row { display: flex; overflow-x: auto; scrollbar-width: none; }
  .story { flex: 0 0 64%; }
  .story-cover { height: 150px; font-size: 64px; }
  .mag-main { height: 220px; padding: 22px; } .mag-main > span { font-size: 130px; } .mag-main h3 { font-size: 24px; }
  .mag-side a { padding: 16px; font-size: 16px; }
}
.b-hero .hero { margin-top: 0 !important; }
