/*
  Southern Trading Company — Styles
  Apple-like cleanliness with Pokémon-inspired accents.
*/

:root {
  --bg: #0b0d10;
  --surface: #0f1217;
  --elev: #141a22;
  --text: #e9eef6;
  --muted: #9fb0c7;
  --line: #233042;

  --pk-yellow: #ffcc00;
  --pk-red: #ff3b3b;
  --pk-blue: #2f7aff;
  --pk-electric: #f3f99d;

  --accent: var(--pk-blue);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 1200px at -10% -10%, rgba(255,204,0,.05), transparent 60%),
              radial-gradient(800px 800px at 110% 10%, rgba(47,122,255,.07), transparent 60%),
              linear-gradient(180deg, #0b0d10, #0c0f13 30%, #0d1014 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 20px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px; padding-right: 10px;
}
.brand img { width: 80px; height: 80px; }
.brand .name { font-family: Outfit, Inter, sans-serif; font-weight: 700; letter-spacing: .3px; }
.nav-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: #1a212c; }

.nav-spacer { flex: 1; }

.search {
  position: relative; display: flex; align-items: center;
}
.search input {
  background: #10161f; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 14px 10px 38px; width: 260px; outline: none;
}
.search .icon { position: absolute; left: 12px; opacity: .6; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #111720; color: var(--text); cursor: pointer; transition: transform .1s ease, background .2s ease;
}
.icon-btn:hover { background: #16202c; }
.icon-btn:active { transform: translateY(1px); }

.pill {
  display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #121923, #0f151e); border: 1px solid var(--line);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 48px 0 22px;
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(255,204,0,.15), transparent 60%),
    radial-gradient(800px 200px at 90% 0%, rgba(47,122,255,.18), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero .stage {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center;
}
.hero .tag { color: var(--pk-yellow); font-weight: 600; letter-spacing: .2px; }
.hero h1 { font-family: Outfit, Inter, sans-serif; font-size: clamp(32px, 5.4vw, 56px); margin: 10px 0 8px; }
.hero p { color: var(--muted); font-size: 16px; max-width: 60ch; }
.hero-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #121923; color: var(--text);
  cursor: pointer; transition: transform .1s ease, background .2s ease; font-weight: 600;
}
.btn.primary { background: linear-gradient(180deg, var(--accent), #1f56c1); border: none; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.secondary:hover { background: #16202c; }

.hero .card {
  background: linear-gradient(160deg, #0f151e, #101620 40%, #0d131b);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: grid; place-items: center; aspect-ratio: 16/10;
}

/* Promo strip */
.promo {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px;
}
.promo .tile {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #0f151e;
}
.promo .tile h4 { margin: 0 0 6px; font-weight: 700; }
.promo .tile p { margin: 0; color: var(--muted); font-size: 14px; }

/* Filters */
.filters {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 22px 0 8px;
}
.chip {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #0f151e; color: var(--text);
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.chip[aria-pressed="true"] { background: #16202c; border-color: #2a3a50; }

.select {
  background: #10161f; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}

.price-range { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.price-range input { width: 140px; }

/* Products */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card-product {
  position: relative; overflow: hidden; border-radius: 16px; background: #0f151e; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-product:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #31425b; }
.card-product .media { position: relative; aspect-ratio: 4/5; display: grid; place-items: center; background: #0b1017; }
.card-product img { width: 85%; height: 85%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.badge { position: absolute; left: 10px; top: 10px; background: #152033; color: var(--pk-yellow); border: 1px solid #2a3a50; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.card-product .body { padding: 12px; }
.title { font-weight: 700; margin: 0 0 4px; }
.subtitle { margin: 0; font-size: 12px; color: var(--muted); }
.price { margin-top: 10px; font-weight: 800; font-size: 18px; }
.card-actions { display: flex; gap: 10px; margin-top: 12px; }

/* Cart Drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: 380px; background: #0f151e; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .25s ease; z-index: 70; display: flex; flex-direction: column; }
.drawer[aria-hidden="false"] { transform: translateX(0%); }
.drawer-header { padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 14px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.drawer-footer { padding: 14px; border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.cart-row img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #0b1017; }
.qty { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.qty input { width: 40px; background: transparent; border: none; color: var(--text); text-align: center; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 60; }
.overlay[data-open="true"] { opacity: 1; pointer-events: auto; }

/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 90; }
.modal .panel { width: min(900px, 92vw); background: #0f151e; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.modal .panel-inner { display: grid; grid-template-columns: 1fr 1.2fr; }
.modal .media { padding: 20px; display: grid; place-items: center; background: #0b1017; }
.modal .content { padding: 20px; }

/* Footer */
.site-footer { margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line); background: #0e141c; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 18px; }
.muted { color: var(--muted); }

/* Utilities */
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.spacer-sm { height: 8px; }
.spacer { height: 16px; }
.spacer-lg { height: 28px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .stage { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 92vw; }
  .modal .panel-inner { grid-template-columns: 1fr; }
  .brand img { width: 56px; height: 56px; }
}
