:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --gold: #d4af5f;
  --gold-deep: #b49149;
  --red: #ff3b30;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 12, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.hotline { text-decoration: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.hotline__label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hotline strong { color: var(--gold); font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(212, 175, 95, .22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 59, 48, .14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: 56px 0 48px; text-align: center; }
.hero__eyebrow { margin: 0 0 18px; }
.hero__eyebrow span {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--red); color: #fff;
  letter-spacing: .25em; text-transform: uppercase; font-size: 13px; font-weight: 800;
}
.hero__title {
  margin: 0; font-weight: 900; line-height: 1.08;
  font-size: clamp(48px, 11.5vw, 124px); letter-spacing: -.02em;
}
.hero__title span {
  background: linear-gradient(180deg, #f6dc9a, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); }
.hero__sub strong { color: var(--red); font-size: 1.35em; font-weight: 800; }

.brands {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 640px; margin: 18px auto 0;
}
.brands span {
  padding: 5px 14px; border: 1px solid rgba(212, 175, 95, .45); border-radius: 999px;
  color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .04em;
}

.period { margin: 24px 0 0; font-size: clamp(16px, 2.4vw, 20px); font-weight: 700; color: var(--text); }

.countdown { margin: 16px auto 0; }
[data-phase="upcoming"] .countdown__boxes div { border-color: rgba(212, 175, 95, .5); }
[data-phase="ended"] .countdown__boxes { opacity: .4; }
.countdown__label { margin: 0 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.countdown__boxes { display: inline-flex; gap: 10px; }
.countdown__boxes div {
  min-width: 68px; padding: 10px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.countdown__boxes span { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown__boxes small { color: var(--muted); font-size: 11px; text-transform: uppercase; }

.btn {
  display: inline-block; margin-top: 28px; padding: 14px 32px;
  background: linear-gradient(180deg, #e9c878, var(--gold-deep));
  color: #111; font-weight: 800; text-decoration: none; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 95, .3); }

/* ---------- toolbar ---------- */
.deals { padding: 36px 0 64px; scroll-margin-top: 60px; }
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--gold-deep); }
.chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }

.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.count { color: var(--muted); font-size: 14px; margin: 16px 0; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }

.card__media { position: relative; aspect-ratio: 1; background: #fff; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
  padding: 4px 10px; border-radius: 8px;
}
.card__soldout {
  position: absolute; inset: auto 0 0 0; padding: 6px; text-align: center;
  background: rgba(0, 0, 0, .75); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.card.is-soldout .card__media img { opacity: .45; }

.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.card__brand { margin: 0; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title {
  margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.card__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 6px; }
.card__price { color: var(--gold); font-size: 20px; font-weight: 800; }
.card__compare { color: var(--muted); font-size: 14px; }
.card__save { font-size: 12px; color: #ff8a80; font-weight: 600; }

/* skeleton */
.card--skeleton .card__media { background: var(--surface-2); }
.card--skeleton i { display: block; height: 14px; border-radius: 6px; background: var(--surface-2); }
.card--skeleton i:nth-child(2) { width: 80%; }
.card--skeleton i:nth-child(3) { width: 50%; height: 20px; }
.card--skeleton .card__media, .card--skeleton i { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.empty a { color: var(--gold); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__inner { padding: 24px 0 32px; }
.footer p { margin: 4px 0; }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px; gap: 4px; }
  .card__title { font-size: 13px; }
  .card__price { font-size: 16px; }
  .card__compare { font-size: 12px; }
  .card__badge { font-size: 13px; padding: 3px 8px; top: 6px; left: 6px; }
  .countdown__boxes div { min-width: 60px; }
  .countdown__boxes span { font-size: 24px; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { max-width: 100%; }
  .sort { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
