/* ============================================================
   STREETCATALOG – main.css
   Premium Dark Streetwear Design
   ============================================================ */

/* ── Fonts & Variables ─────────────────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --bg-1:         #111111;
  --bg-2:         #161616;
  --bg-3:         #1e1e1e;
  --bg-card:      #141414;
  --bg-card-h:    #1a1a1a;
  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(255,255,255,0.14);

  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-dim:     #555;

  --accent:       #22c55e;   /* green */
  --accent-dim:   rgba(34,197,94,0.12);
  --accent-glow:  rgba(34,197,94,0.25);
  --accent-red:   #ef4444;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.7);

  --nav-h:        64px;
  --font-mono:    'Space Mono', monospace;
  --font-sans:    'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.accent { color: var(--accent); }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.02em;
}
.logo-bracket  { color: var(--text-dim); }
.logo-accent   { color: var(--accent); }

.nav-search {
  flex: 1; max-width: 480px;
}
.nav-search form {
  display: flex; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.nav-search form:focus-within { border-color: var(--accent); }
.nav-search input {
  flex: 1; padding: 9px 16px;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search button {
  padding: 9px 14px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-search button:hover { color: var(--accent); }
.nav-links {
  display: flex; gap: 8px; margin-left: auto;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover    { color: var(--text); background: var(--bg-2); }
.nav-links .nav-admin { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.nav-mobile {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 12px;
}
.nav-mobile.open { display: flex; }
.nav-mobile form  { display: flex; gap: 8px; }
.nav-mobile input {
  flex: 1; padding: 10px 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); outline: none;
}
.nav-mobile a {
  color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--border);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1400px; width: 100%; margin: 0 auto;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  max-width: 520px; color: var(--text-muted);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.hero-stats .stat {
  font-family: var(--font-mono); font-size: 14px; color: var(--text-muted);
}
.hero-stats .stat span { color: var(--text); font-size: 22px; font-weight: 700; display: block; }
.stat-sep { width: 1px; height: 32px; background: var(--border); }
.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em;
  animation: scrollBob 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
}
@keyframes scrollBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: #16a34a; border-color: #16a34a; transform: translateY(-1px); }
.btn-hero-primary  { background: var(--accent); color: #000; border-color: var(--accent); padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-hero-primary:hover { background: #16a34a; transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-hero-secondary { background: transparent; color: var(--text); border-color: var(--border-h); padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-hero-secondary:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.btn-ghost  { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover  { color: var(--text); border-color: var(--border-h); }
.btn-yupoo  { background: rgba(99,102,241,0.15); color: #818cf8; border-color: rgba(99,102,241,0.3); }
.btn-yupoo:hover  { background: rgba(99,102,241,0.25); transform: translateY(-1px); }
.btn-direct { background: rgba(251,191,36,0.1); color: #fbbf24; border-color: rgba(251,191,36,0.3); }
.btn-direct:hover { background: rgba(251,191,36,0.2); transform: translateY(-1px); }
.btn-favorite { background: var(--bg-2); color: var(--text-muted); border-color: var(--border); }
.btn-favorite:hover, .btn-favorite.favorited { color: var(--accent-red); border-color: var(--accent-red); background: rgba(239,68,68,.1); }
.btn-sm  { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Categories bar ────────────────────────────────────────── */
.cats-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.cats-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.cat-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-count {
  background: var(--bg-3); color: var(--text-dim);
  font-size: 11px; font-family: var(--font-mono);
  padding: 2px 7px; border-radius: 100px;
}

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-1); }
.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 0;
  margin-bottom: 40px;
}
.section-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; color: var(--accent);
  grid-column: 1;
}
.section-title {
  font-family: var(--font-mono); font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; line-height: 1.2;
  grid-column: 1; grid-row: 2;
}
.section-link {
  font-size: 13px; color: var(--text-muted);
  align-self: end; grid-column: 2; grid-row: 2;
  transition: color .2s;
}
.section-link:hover { color: var(--accent); }
.section-title-sm {
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  margin-bottom: 24px; padding-top: 60px;
}
.section-title-sm .count {
  background: var(--bg-2); color: var(--text-muted);
  font-size: 13px; padding: 2px 10px; border-radius: 100px; margin-left: 8px;
}

/* ── Item Grid & Cards ─────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.item-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image-wrap {
  position: relative; display: block;
  aspect-ratio: 1/1; overflow: hidden;
  background: var(--bg-2);
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.item-card:hover .card-img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 4px; font-weight: 700;
}
.badge-trending { background: var(--accent); color: #000; }
.badge-featured { background: #f59e0b; color: #000; top: 40px; }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 14px;
}
.item-card:hover .card-overlay { opacity: 1; }
.card-views {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.7);
}
.card-body { padding: 16px; }
.card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.card-brand {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700;
  transition: opacity .2s;
}
.card-brand:hover { opacity: 0.7; }
.card-category {
  font-size: 11px; color: var(--text-dim);
  background: var(--bg-2); padding: 2px 8px; border-radius: 4px;
}
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a:hover { color: var(--accent); }
.card-price {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.card-price span { font-size: 11px; color: var(--text-dim); }
.card-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* ── Brands Marquee ────────────────────────────────────────── */
.brands-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-1);
}
.brands-track {
  display: flex; gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.brand-marquee-item {
  padding: 0 40px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  color: var(--text-dim); text-transform: uppercase; white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: color .2s;
}
.brand-marquee-item:hover { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}

/* ── Brands Grid ───────────────────────────────────────────── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all .25s;
}
.brand-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.brand-card-inner { display: flex; flex-direction: column; gap: 6px; }
.brand-card-name  { font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.brand-card-count { font-size: 12px; color: var(--text-dim); }

/* ── Item Detail ───────────────────────────────────────────── */
.item-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1/1;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.gallery-thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer; transition: border-color .2s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--accent); }

.item-meta-top { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.item-brand-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 4px 12px; border-radius: 4px; font-weight: 700;
}
.item-category-tag {
  font-size: 12px; color: var(--text-muted);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 4px;
}
.item-title {
  font-family: var(--font-mono); font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px;
}
.item-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 20px;
}
.price-amount  { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--accent); }
.price-currency { font-size: 14px; color: var(--text-dim); }
.item-stats {
  display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.stat-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.item-description {
  color: var(--text-muted); line-height: 1.75; margin-bottom: 28px;
  border-left: 3px solid var(--border); padding-left: 16px;
}
.item-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.item-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px; color: var(--text-dim);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--radius-sm);
  transition: all .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim); padding-bottom: 10px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

/* ── Comments ──────────────────────────────────────────────── */
.comments-section { max-width: 700px; padding-bottom: 60px; }
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.comment {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.comment-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.comment-author { font-weight: 600; font-size: 14px; color: var(--text); }
.comment-date   { font-size: 12px; color: var(--text-dim); }
.comment-body   { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.comment-form {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.comment-form h3 { font-family: var(--font-mono); font-size: 16px; margin-bottom: 20px; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; outline: none; margin-bottom: 14px;
  transition: border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { resize: vertical; }
.comment-note { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }

/* ── Browse / Search layout ────────────────────────────────── */
.page-container { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 80px; }
.page-header { margin-bottom: 40px; }
.page-title { font-family: var(--font-mono); font-size: clamp(24px,4vw,40px); font-weight: 700; }
.page-sub   { color: var(--text-muted); margin-top: 8px; }
.browse-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.filter-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); height: fit-content; }
.filter-block { margin-bottom: 32px; }
.filter-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 14px;
}
.filter-link {
  display: block; padding: 8px 0;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.filter-link:hover, .filter-link.active { color: var(--accent); }
.results-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count { font-size: 14px; color: var(--text-muted); }
.sort-controls { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.sort-btn {
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
  transition: all .2s;
}
.sort-btn:hover, .sort-btn.active {
  border-color: var(--accent); color: var(--accent);
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px; flex-wrap: wrap;
}
.page-btn {
  padding: 9px 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted);
  transition: all .2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600;
}

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 20px;
}
.empty-state h2 { font-size: 22px; margin-bottom: 12px; }
.empty-state p  { color: var(--text-muted); margin-bottom: 28px; }
.empty-icon     { color: var(--text-dim); margin-bottom: 24px; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p  { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.footer-links h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 16px;
}
.footer-links a {
  display: block; color: var(--text-muted); font-size: 14px;
  padding: 4px 0; transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px;
  max-width: 1400px; margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 20px;
}
.alert-error   { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* ── Forms (general) ───────────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group label small { font-weight: 400; color: var(--text-dim); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px; outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; }
.form-row-checks { grid-template-columns: repeat(auto-fill, minmax(180px,auto)); align-items: center; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-muted); }
.form-check input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.form-actions { display: flex; gap: 14px; padding-top: 12px; }

/* ── Upload zone ───────────────────────────────────────────── */
.upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-placeholder { pointer-events: none; }
.upload-placeholder svg { margin: 0 auto 12px; color: var(--text-dim); }
.upload-placeholder p   { font-weight: 500; }
.upload-placeholder strong { color: var(--accent); }
.upload-placeholder span { font-size: 12px; color: var(--text-dim); display: block; margin-top: 4px; }
.upload-preview {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: center;
}
.upload-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.upload-preview-grid {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.current-images { display: flex; gap: 12px; flex-wrap: wrap; }
.current-img-item { position: relative; }
.current-img-item img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.img-delete-btn {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--accent-red); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.img-delete-btn:hover { transform: scale(1.1); }
.img-cover-btn {
  position: absolute; top: -6px; left: -6px;
  width: 22px; height: 22px;
  background: var(--bg-3); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.img-cover-btn:hover { background: #f59e0b; color: #000; border-color: #f59e0b; transform: scale(1.1); }
.img-cover-badge {
  position: absolute; top: -6px; left: -6px;
  padding: 2px 6px; border-radius: 4px;
  background: #f59e0b; color: #000;
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* ── Guide page ────────────────────────────────────────────── */
.guide-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding-bottom: 80px;
}
.guide-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: fit-content;
}
.toc-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 14px;
}
.toc-link {
  display: block; padding: 7px 0;
  font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.toc-link:hover { color: var(--accent); }

.guide-content { min-width: 0; }
.guide-section { padding: 48px 0 0; }
.guide-section-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 10px;
}
.guide-section-title {
  font-family: var(--font-mono); font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; margin-bottom: 20px; line-height: 1.2;
}
.guide-subheading {
  font-size: 15px; font-weight: 600; margin: 24px 0 12px;
  color: var(--text);
}
.guide-divider {
  height: 1px; background: var(--border); margin-top: 48px;
}
.guide-content p {
  color: var(--text-muted); line-height: 1.75; margin-bottom: 16px;
}
.guide-content strong { color: var(--text); }
.guide-content em     { color: var(--text-muted); font-style: italic; }

.guide-list {
  color: var(--text-muted); line-height: 1.7;
  padding-left: 0; list-style: none; margin-bottom: 16px;
}
.guide-list li {
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.guide-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-family: var(--font-mono); font-size: 12px;
}
.guide-list-ordered { counter-reset: guide-counter; }
.guide-list-ordered li { counter-increment: guide-counter; }
.guide-list-ordered li::before {
  content: counter(guide-counter);
  color: var(--accent); font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  background: var(--accent-dim);
  border-radius: 3px; padding: 1px 5px;
  top: 9px;
}

.guide-tag {
  display: inline-block;
  padding: 2px 9px; border-radius: 4px;
  font-size: 12px; font-weight: 600; font-family: var(--font-mono);
}
.guide-tag-yupoo  { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.guide-tag-direct { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }

.guide-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 24px;
}
.guide-card-yupoo  { border-color: rgba(99,102,241,0.3); }
.guide-card-direct { border-color: rgba(251,191,36,0.3); }
.guide-card-icon   { flex-shrink: 0; color: var(--text-dim); padding-top: 2px; }
.guide-card-yupoo  .guide-card-icon { color: #818cf8; }
.guide-card-direct .guide-card-icon { color: #fbbf24; }
.guide-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.guide-card-body p  { color: var(--text-muted); line-height: 1.7; margin: 0; }

.guide-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 13px; color: var(--text-muted);
  margin-top: 16px;
}
.guide-note svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.guide-note-warn {
  background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.4);
}
.guide-note-warn svg { color: #fbbf24; }

.guide-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 12px; margin: 24px 0;
}
.agent-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s;
}
.agent-card:hover { border-color: var(--accent); }
.agent-card-name { font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.agent-card-note { font-size: 12px; color: var(--text-dim); flex: 1; }
.agent-card-btn  { margin-top: 8px; align-self: flex-start; }

.guide-steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.guide-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.guide-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--accent);
}
.step-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-body p  { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin: 0; }

@media (max-width: 768px) {
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-toc    { display: none; }
}

/* ── Currency Switcher ─────────────────────────────────────── */
.currency-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  flex-shrink: 0;
}
.currency-btn {
  padding: 5px 9px;
  border: none; border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.currency-btn:hover  { color: var(--text); }
.currency-btn.active { background: var(--accent); color: #000; }

/* ── Mobile currency row in nav ────────────────────────────── */
.nav-mobile-currency {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-currency-label {
  font-size: 13px; color: var(--text-muted); white-space: nowrap;
}

/* ── Mobile filter toggle button ───────────────────────────── */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color .2s, color .2s;
}
.mobile-filter-toggle:hover { border-color: var(--accent); color: var(--accent); }
.mobile-filter-toggle .toggle-chevron {
  margin-left: auto;
  transition: transform .3s;
}
.mobile-filter-toggle.open .toggle-chevron { transform: rotate(180deg); }

/* ── Filter show more/less ─────────────────────────────────── */
.brand-link-hidden { display: none; }
.brand-link-visible { display: block !important; }
.filter-show-more {
  display: block;
  width: 100%;
  padding: 8px 0;
  font-size: 12px;
  color: var(--accent);
  background: none; border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: opacity .2s;
}
.filter-show-more:hover { opacity: 0.7; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .item-detail { grid-template-columns: 1fr; gap: 40px; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: flex; gap: 20px; flex-wrap: wrap; }
  .filter-block { margin-bottom: 0; flex: 1; min-width: 160px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-search  { display: none; }
  .nav-links   { display: none; }
  .nav-toggle  { display: flex; }
  .hero-title  { font-size: clamp(38px, 10vw, 70px); }
  .items-grid  { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section     { padding: 48px 0; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }

  /* Collapsible filter sidebar on mobile */
  .mobile-filter-toggle { display: flex; }
  .filter-sidebar {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
  }
  .filter-sidebar.open { display: flex; }
  .filter-block { flex: none; width: 100%; margin-bottom: 20px; min-width: 0; }
  .filter-block:last-child { margin-bottom: 0; }

  /* Item detail mobile */
  .item-cta { flex-direction: column; }
  .item-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .card-actions .btn { font-size: 11px; padding: 6px 10px; }
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .container { padding: 0 16px; }
  .nav-inner  { padding: 0 16px; }
  .card-body  { padding: 12px; }
  .card-title { font-size: 13px; }
}
