/* Respawn Media Store — dark arcade theme. Change the colors here to rebrand. */
:root {
  --bg: #0b0b12;
  --panel: #151522;
  --panel-2: #1d1d2e;
  --line: #2a2a40;
  --text: #ecebf5;
  --muted: #9a98b3;
  --accent: #ff3d6e;      /* main brand color */
  --accent-2: #3de0ff;    /* secondary glow */
  --ok: #3ddc84;
  --warn: #ffb020;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Russo One", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* Header */
#site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,11,18,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--display); font-size: 1.25rem; text-decoration: none; letter-spacing: .06em; }
.logo span { color: var(--accent); margin-left: 4px; }
.nav nav { display: flex; gap: 20px; flex: 1; }
.nav nav a, .nav-account { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav nav a:hover, .nav-account:hover { color: var(--text); }
.nav-right { display: flex; gap: 16px; align-items: center; }
.cart-btn { text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.cart-btn b { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 6px; font-size: .8rem; }
@media (max-width: 720px) { .nav nav { display: none; } .nav { justify-content: space-between; } }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 7px 14px; font-size: .85rem; }
.btn.danger { background: #c62f4f; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; }
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; }

/* Hero */
.hero { padding: 80px 0 60px; background:
  radial-gradient(600px 300px at 15% 20%, rgba(255,61,110,.25), transparent 70%),
  radial-gradient(600px 300px at 85% 60%, rgba(61,224,255,.18), transparent 70%); border-bottom: 1px solid var(--line); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

section.block { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; gap: 12px; }

/* Grids & cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-img { aspect-ratio: 1; background: var(--panel-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { height: 100%; display: grid; place-items: center; color: var(--muted); }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.price { color: var(--accent-2); font-weight: 800; margin: 0; }
.price s { color: var(--muted); font-weight: 500; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip.active, .chip:hover { color: #fff; border-color: var(--accent); background: rgba(255,61,110,.15); }

.socials { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.social { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.social:hover { border-color: var(--accent-2); }
.social i { font-style: normal; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent-2); }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 40px 0; }
.gallery-main { aspect-ratio: 1; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.active { border-color: var(--accent); }
.product .price { font-size: 1.5rem; margin: 8px 0 18px; }
.desc { color: var(--muted); }
.desc p { margin: 0 0 1em; }
.qty { display: flex; gap: 12px; align-items: end; margin: 18px 0; }
.qty input { width: 90px; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }

/* Cart & tables */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-row input { width: 70px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 40px 0; align-items: start; }
.sum-line { display: flex; justify-content: space-between; margin: 8px 0; }
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } .cart-row { grid-template-columns: 56px 1fr; } }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line); }
.badge.paid, .badge.shipped, .badge.delivered { color: var(--ok); }
.badge.fulfilling, .badge.pending { color: var(--warn); }
.badge.cancelled, .badge.refunded { color: #ff6b81; }

/* Auth */
.auth { max-width: 420px; margin: 50px auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { flex: 1; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.tabs button.active { color: #fff; border-color: var(--accent); }

/* Footer */
#site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0; background: #08080e; }
.foot { display: grid; gap: 18px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 40px); opacity: 0; background: var(--panel-2); border: 1px solid var(--accent); padding: 12px 20px; border-radius: 999px; transition: .25s; z-index: 100; font-weight: 700; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.error { color: #ff6b81; }
