:root {
  --bg: #0c0c0e;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --border: #2a2a32;
  --text: #f2f2f4;
  --muted: #9a9aa3;
  --accent: #c8ff00;
  --accent-dim: #8ab800;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 255, 0, 0.08), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: #0c0c0e;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 0.85rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.back-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.back-btn:hover,
.back-btn:focus-visible {
  border-color: var(--accent-dim);
  outline: none;
}

main {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.shoe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.shoe-card {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}

.shoe-card:hover,
.shoe-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-dim);
  outline: none;
}

.shoe-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}

.shoe-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.shoe-card-sku {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.shoe-card-name {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.shoe-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-main {
  position: relative;
  background: #0a0a0c;
}

.gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0a0a0c;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.gallery-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-btn {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  border-color: var(--accent-dim);
  outline: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.thumb {
  appearance: none;
  border: 2px solid transparent;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.thumb span {
  display: block;
  padding: 0.35rem 0.4rem 0.5rem;
  font-size: 0.7rem;
  text-align: center;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb.active,
.thumb:hover,
.thumb:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.thumb.active span {
  color: var(--text);
  font-weight: 600;
}

.meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.meta .sku {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.meta h2 {
  margin: 0.4rem 0 0.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.aka {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.meta-list > div {
  display: grid;
  gap: 0.2rem;
}

.meta-list dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}

.meta-list dd {
  margin: 0;
  font-size: 0.95rem;
}

.hint {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
}

.error-banner {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #3a1212;
  border: 1px solid #7a2a2a;
  color: #ffc9c9;
}

.site-footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 1rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }
}

.status-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: #3a2a0a;
  border: 1px solid #c9a227;
  color: #f5e6a8;
  font-size: 0.9rem;
}
.status-banner.hidden { display: none; }
.shoe-card-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #3a2a0a;
  color: #f5e6a8;
  border: 1px solid #c9a227;
}

.shoe-card-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #1a1a1a;
  color: #8a8a8a;
  font-size: 0.85rem;
}
.badge-partial { background: #2a1a12; color: #f0c9a0; border-color: #c47a3a; }
.badge-intake { background: #1a1c22; color: #b7c0cc; border-color: #5c6775; }
