/* ============================================
   DON'S BASEMENT — Brand stylesheet
   ============================================ */

:root {
  --navy: #1A1E30;
  --navy-deep: #141627;
  --blue-dark: #2E4FA3;
  --blue-mid: #3E6BC9;
  --blue-light: #4E84E0;
  --blue-pale: #7CC9F2;
  --gold: #FFD23F;
  --gold-dark: #E8A923;
  --red: #E63946;
  --green: #8ADB8A;
  --white: #FFFFFF;
  --cream: #F7F8FC;
  --ink-soft: rgba(26, 30, 48, 0.7);

  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 4px 14px rgba(20, 22, 39, 0.10);
  --shadow-card-hover: 0 10px 24px rgba(20, 22, 39, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--white); opacity: 0.85; }
.topbar a:hover { opacity: 1; }
.topbar .topbar-links { display: flex; gap: 20px; }

/* ---------- Site header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 52px; height: 52px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--cream); }
.main-nav a.active { background: var(--navy); color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero banner ---------- */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--blue-dark) 0%, var(--blue-mid) 55%, var(--blue-light) 100%);
}
.hero-banner svg { display: block; width: 100%; height: auto; }

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 8px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 auto 40px;
  max-width: 560px;
}
.section-alt { background: var(--white); }

/* ---------- Shop toolbar (search + sort) ---------- */
.shop-header { text-align: center; margin-bottom: 28px; }
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26,30,48,0.08);
}
.search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
  background: var(--cream);
  border: 2px solid rgba(26,30,48,0.12);
  border-radius: 999px;
  padding: 0 14px;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.search-wrap:focus-within { border-color: var(--blue-mid); }
.search-icon { font-size: 15px; opacity: 0.5; flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  padding: 10px 0;
  outline: none;
}
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.search-clear:hover { color: var(--red); }
.sort-select {
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(26,30,48,0.15);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.sort-select:focus { border-color: var(--blue-mid); }
.result-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Shop layout (sidebar + grid) ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.shop-sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
}
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.category-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  margin-bottom: 4px;
}
.category-pill:hover { background: var(--cream); }
.category-pill.active {
  background: var(--navy);
  color: var(--gold);
}
.category-pill .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

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

.listing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26,30,48,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Portrait aspect ratio — proper Pokemon card shape */
.listing-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 200px;
  background: #eef0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.listing-card:hover .listing-thumb img { transform: scale(1.03); }

.listing-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 1;
}
.listing-badge.grade { background: var(--gold); color: var(--navy); }

.listing-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.listing-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue-mid);
  text-transform: uppercase;
}
.listing-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-meta {
  font-size: 11px;
  color: var(--ink-soft);
}
.listing-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  flex-wrap: wrap;
}
.listing-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--navy);
  white-space: nowrap;
}
.btn-ebay {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-ebay:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }

.listing-grid .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Loading spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(26,30,48,0.12);
  border-top-color: var(--blue-mid);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid rgba(26,30,48,0.08);
}
.pagination-info {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.pagination-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pag-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2.5px solid var(--navy);
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pag-btn:hover:not(:disabled) {
  background: var(--navy);
  color: var(--gold);
  transform: translateY(-2px);
}
.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pag-pages {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- Buttons (generic) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #c92e3a; }
.btn-outline { background: transparent; border: 2.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--gold); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); padding: 28px 0; }
.trust-strip .wrap {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}
.trust-item { color: var(--white); max-width: 220px; }
.trust-item .icon-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 20px;
}
.trust-item p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.75); }
.trust-item strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- About page ---------- */
.about-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  margin: 0 0 12px;
  color: var(--gold);
  text-shadow: 0 3px 0 var(--navy);
}
.about-hero p { max-width: 600px; margin: 0 auto; opacity: 0.92; font-size: 17px; }

.about-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 32px;
  font-size: 17px;
  color: #2b2f45;
}
.about-content p { margin-bottom: 22px; }
.about-content .lead { font-size: 21px; font-weight: 600; color: var(--navy); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px; }
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.value-card .emoji-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
}
.value-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.value-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.contact-card h2 { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin-top: 0; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid #e1e4ef;
  font-family: var(--font-body);
  font-size: 15px;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--blue-mid); }

.contact-info-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-card h3 { font-family: var(--font-display); color: var(--gold); font-size: 20px; margin-top: 0; }
.contact-link-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-link-row:last-child { border-bottom: none; }
.contact-link-row .icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.contact-link-row a, .contact-link-row span.label { font-weight: 600; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 48px 0 28px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { color: var(--gold); }
.footer-brand p { font-size: 14px; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding-top: 22px; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .sidebar-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
  }
  .sidebar-title { width: 100%; margin-bottom: 6px; }
  .category-pill { width: auto; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-card);
  }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 32px; }
  .topbar .topbar-links { gap: 12px; font-size: 12px; }
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .pagination { flex-direction: column; align-items: center; }
  .shop-toolbar { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wrap { padding: 0 16px; }
}

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

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}
