:root {
  --bg: #f3f1eb;
  --surface: #fffefa;
  --ink: #171714;
  --muted: #77736b;
  --line: #d9d5cb;
  --accent: #ff4d00;
  --accent-dark: #c83d00;
  --lime: #d9ff43;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.site-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--ink); background: var(--surface); }
.brand { font-weight: 950; letter-spacing: -1.5px; font-size: 1.4rem; }
.site-header nav { display: flex; gap: 24px; font-weight: 700; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 96px; }
.hero { border-bottom: 4px solid var(--ink); padding-bottom: 36px; }
.hero.compact { padding-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .13em; }
.hero h1, .product-head h1 { margin: 0; font-size: clamp(2.8rem, 8vw, 6.6rem); line-height: .95; letter-spacing: -.075em; }
.hero p:last-child { color: var(--muted); font-size: 1.05rem; }
.sort-tabs { display: flex; gap: 28px; padding-top: 22px; border-bottom: 1px solid var(--line); font-weight: 850; }
.sort-tabs a { position: relative; padding: 0 1px 11px; color: var(--muted); }
.sort-tabs a:hover { color: var(--ink); }
.sort-tabs a.active { color: var(--ink); }
.sort-tabs a.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--accent); }
.deal-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-top: 20px; }
.deal-search input { width: 100%; min-width: 0; border-color: var(--ink); font-size: 1rem; }
.deal-search button { border-color: var(--ink); }
.search-clear { display: flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: .8rem; font-weight: 750; }
.search-summary { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 24px; }
.chip { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; font-size: .8rem; font-weight: 800; background: var(--surface); }
.chip span { color: var(--muted); margin-left: 3px; }
.chip.active { background: var(--ink); color: white; }
.chip.active span { color: var(--lime); }
.deal-list { border-top: 1px solid var(--ink); }
.deal-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--ink); }
.deal-card.has-image { grid-template-columns: 168px minmax(0, 1fr) auto; }
.deal-main { min-width: 0; }
.deal-image { width: 168px; aspect-ratio: 1; align-self: center; overflow: hidden; padding: 10px; background: var(--surface); border: 1px solid var(--line); }
.deal-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform .2s ease; }
.deal-image:hover img { transform: scale(1.03); }
.meta-row, .signals { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .78rem; }
.category { color: var(--ink); background: var(--lime); padding: 2px 6px; font-weight: 900; }
.expires, .posted { color: var(--accent); font-weight: 900; }
.stock { padding: 2px 7px; font-weight: 900; }
.stock.limited { color: #7a3d00; background: #ffd86b; }
.stock.sold-out { color: white; background: #77736b; }
.deal-card h2 { margin: 12px 0 8px; font-size: clamp(1.25rem, 3vw, 1.9rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.deal-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.price { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 950; letter-spacing: -.055em; white-space: nowrap; }
.price small { font-size: .45em; margin-left: 3px; }
.shipping { font-size: .78rem; color: var(--muted); }
.signals { margin-top: 14px; }
.deal-actions { display: flex; align-items: center; justify-content: flex-end; }
.buy-button { display: inline-block; background: var(--accent); color: white; padding: 10px 14px; font-weight: 850; font-size: .85rem; border: 0; }
.buy-button:hover { background: var(--accent-dark); }
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); }
.product-head { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: 32px; align-items: center; padding-bottom: 40px; border-bottom: 4px solid var(--ink); }
.product-image { width: 100%; max-height: 420px; object-fit: cover; background: var(--line); }
.product-head h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); }
.model { color: var(--muted); }
.panel { margin-top: 32px; border-top: 1px solid var(--ink); }
.panel > h2 { font-size: 1rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.offer-row, .watch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.offer-row > div, .watch-row > div { display: flex; align-items: center; gap: 14px; }
.offer-row strong { font-size: 1.5rem; }
.offer-row span, .watch-row span { color: var(--muted); font-size: .82rem; }
.history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); }
.history-list div { display: flex; flex-direction: column; gap: 5px; padding: 14px; background: var(--surface); }
.history-list time { color: var(--muted); font-size: .75rem; }
.watch-box { margin-top: 40px; padding: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--ink); color: white; }
.watch-box.standalone { margin-top: 24px; }
.watch-box h2 { margin: 0; }
.watch-box form { display: flex; gap: 8px; flex-wrap: wrap; }
input, button, select, textarea { font: inherit; border-radius: 0; }
input, select, textarea { min-width: 180px; padding: 11px 12px; border: 1px solid var(--line); background: white; }
textarea { resize: vertical; }
button { padding: 11px 16px; border: 1px solid white; color: white; background: var(--accent); font-weight: 850; cursor: pointer; }
.push-connect { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--ink); background: var(--surface); }
.push-connect p { margin: 5px 0 0; }
.push-connect button { min-width: 110px; border-color: var(--ink); }
.notice { color: var(--muted); font-size: .85rem; }
.text-button { color: var(--accent); background: transparent; border: 0; padding: 5px; }
.empty { padding: 80px 20px; text-align: center; }
.empty-inline { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; padding-top: 20px; }
.admin-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--ink); }
.admin-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-card header div, .override-row div { display: flex; flex-direction: column; gap: 4px; }
.admin-card small, .override-row small { color: var(--muted); overflow-wrap: anywhere; }
.admin-card label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 750; }
.admin-card .toggle, .admin-card .inline-check { flex-direction: row; align-items: center; }
.admin-card input[type="checkbox"] { min-width: auto; }
.override-form { display: grid; grid-template-columns: 180px 1fr 1fr auto; gap: 8px; margin: 20px 0; }
.override-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
code { background: #e9e5db; padding: 2px 4px; }
.site-footer { padding: 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-weight: 750; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.legal-document { max-width: 780px; }
.legal-document h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.065em; }
.legal-document .effective-date { color: var(--muted); }
.legal-section { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--ink); }
.legal-section h2 { margin: 0 0 12px; font-size: 1.1rem; }
.legal-section p, .legal-section li { line-height: 1.75; }
.legal-section ul { padding-left: 20px; }
.legal-company-info { margin-top: 36px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.legal-company-info p { margin: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .container { padding-top: 36px; }
  .deal-card { grid-template-columns: 1fr; }
  .deal-card.has-image { grid-template-columns: 1fr; }
  .deal-image { width: 100%; aspect-ratio: 16 / 9; }
  .product-head { grid-template-columns: 1fr; }
  .deal-actions { justify-content: flex-start; }
  .watch-box { align-items: stretch; flex-direction: column; }
  .watch-box form, .watch-box input, .watch-box button { width: 100%; }
  .push-connect { align-items: stretch; flex-direction: column; }
  .offer-row, .offer-row > div { align-items: flex-start; flex-direction: column; }
  .override-form { grid-template-columns: 1fr; }
  .deal-search { grid-template-columns: 1fr auto; }
  .search-clear { grid-column: 1 / -1; padding: 4px 0; }
}
