/* ═══════════════════════════════════════════
   VINYL SNOBS — Design System v2
   Underground street × premium shop
   ═══════════════════════════════════════════ */

/* ── Typography ─────────────────────────────── */
body {
  font-family: 'Archivo', system-ui, sans-serif;
  background-color: #050505;
}

/* ── Logo ────────────────────────────────────── */
.vs-logo {
  font-family: 'Sedgwick Ave Display', cursive;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  color: #f5f5f5;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.vs-logo:hover { color: #fff; }

/* ── Header ──────────────────────────────────── */
.vs-header {
  background: rgba(5, 5, 5, 0.94) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  /* Extend behind the iOS status bar when viewport-fit=cover is set */
  padding-top: env(safe-area-inset-top, 0px);
}

/* ── Header layout ───────────────────────────── */

/* Row 1: Logo left, action buttons right — always one line */
.vs-header-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
}

/* Action buttons group */
.vs-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Row 2: Nav links — full width, no clipping */
.vs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 8px;
}
.vs-nav::-webkit-scrollbar { display: none; }
.vs-nav > * { flex-shrink: 0; }

.vs-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 6px 4px;
  white-space: nowrap;
  transition: color 0.15s;
}
.vs-nav-link:hover { color: #fff; }

.vs-nav-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.vs-nav-btn:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.vs-nav-signin {
  font-size: 0.8rem;
  font-weight: 700;
  color: #050505;
  background: #f0f0f0;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.vs-nav-signin:hover { background: #fff; }

.vs-nav-cart {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: #e02020;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: background 0.15s;
}
.vs-nav-cart:hover { background: #c51a1a; }

/* ── Hero ────────────────────────────────────── */
.vs-hero {
  position: relative;
  margin: 0 -1rem 2rem;
  padding: 68px 1.5rem 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.vs-hero-accent {
  width: 40px;
  height: 3px;
  background: #e02020;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.vs-hero-headline {
  font-family: 'Sedgwick Ave Display', cursive;
  font-size: clamp(42px, 10.5vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5f5f5;
  margin-bottom: 1.25rem;
}

.vs-hero-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 1.75rem;
}
.vs-hero-sub strong {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
}

.vs-hero-pills {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.vs-hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* vinyl ring decorations */
.vs-ring {
  pointer-events: none;
  position: absolute;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════
   BUTTON SYSTEM
   Primary  → Add to Cart, Checkout, Filter
   Secondary→ Go to Cart, Save for Later
   Ghost    → Continue Digging, back links
   ═══════════════════════════════════════════ */

/* ── Base token ─────────────────────────────── */
.vs-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 11px 22px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 0.14s cubic-bezier(0.16, 1, 0.3, 1),
    filter     0.15s ease,
    background 0.15s ease,
    color      0.15s ease,
    border-color 0.15s ease;
}
.vs-btn:active {
  transform: translateY(1px) scale(0.987) !important;
}
@media (prefers-reduced-motion: reduce) {
  .vs-btn { transition: background 0.15s, color 0.15s, border-color 0.15s !important; }
  .vs-btn:hover, .vs-btn:active { transform: none !important; filter: none !important; }
}

/* ── Primary ─────────────────────────────────── */
/* Industrial cut corner: bottom-right 9 px diagonal */
.vs-btn-primary {
  background: #f0f0f0;
  color: #050505;
  border-radius: 11px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
/* Faint static noise that breathes in on hover */
.vs-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  mix-blend-mode: overlay;
  transition: opacity 0.22s ease;
}
.vs-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 18px rgba(240, 240, 240, 0.18));
}
.vs-btn-primary:hover::after { opacity: 0.08; }

/* ── Secondary ───────────────────────────────── */
.vs-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.vs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  filter: drop-shadow(0 3px 10px rgba(255, 255, 255, 0.05));
}

/* ── Ghost — pill / navigation links ────────── */
.vs-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 16px 7px 12px;
  font-weight: 500;
  font-size: 0.8rem;
  min-height: 36px;
  letter-spacing: 0.015em;
}
.vs-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  transform: translateX(-2px);
}

/* ── Search / filter bar ─────────────────────── */
.vs-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vs-search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  color: #f5f5f5;
  font-family: 'Archivo', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
.vs-search-input::placeholder { color: rgba(255,255,255,0.28); }
.vs-search-input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

.vs-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  color: #f5f5f5;
  font-family: 'Archivo', sans-serif;
  font-size: 0.875rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.vs-select:focus {
  border-color: rgba(255,255,255,0.28);
  background-color: rgba(255,255,255,0.08);
}
.vs-select option { background: #111; color: #f5f5f5; }

.vs-filter-btn {
  width: 100%;
  padding: 11px 20px;
  border-radius: 11px;
  background: #f0f0f0;
  color: #050505;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition:
    transform 0.14s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.15s ease,
    background 0.15s ease;
}
.vs-filter-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  filter: drop-shadow(0 5px 14px rgba(240, 240, 240, 0.16));
}
.vs-filter-btn:active {
  transform: translateY(1px) scale(0.987);
}
@media (prefers-reduced-motion: reduce) {
  .vs-filter-btn { transition: background 0.15s !important; }
  .vs-filter-btn:hover, .vs-filter-btn:active { transform: none !important; filter: none !important; }
}

/* ── Product cards ───────────────────────────── */
.vs-card {
  position: relative;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(16, 16, 16, 0.96) !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.vs-card:hover {
  border-color: rgba(255,255,255,0.2) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.vs-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e02020;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.5;
}

.vs-card-inner { padding: 10px 12px 12px; }

.vs-card-artist {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.vs-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0f0f0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-card-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  margin-top: 4px;
}
.vs-card-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-top: 8px;
}
.vs-card-sale-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f5f5f5;
}
.vs-card-original-price {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ── Record count label ──────────────────────── */
.vs-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ── Scroll fade-in ──────────────────────────── */
.fade-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.32s cubic-bezier(0.22,1,0.36,1),
              transform 0.32s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.fade-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Footer ──────────────────────────────────── */
.vs-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: 'Archivo', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
}

/* ── Archive Page ────────────────────────────────────────────── */
/* archive.html uses inline <style> for full portability.
   Only global overrides live here. */
#archModal { font-family: 'Archivo', system-ui, sans-serif; }
