:root {
  --blue: #17370f;
  --blue-dark: #0f250a;
  --green: #17370f;
  --gold: #b8782b;
  --red: #e53238;
  --yellow: #f5af02;
  --ink: #191919;
  --muted: #707070;
  --line: #e5e5e5;
  --line-dark: #c7c7c7;
  --paper: #f7f7f7;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-row {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}
.brand img { width: 82px; height: 76px; object-fit: contain; }
.brand-wordmark {
  display: grid;
  gap: 0;
  line-height: .9;
  text-transform: uppercase;
}
.brand-wordmark strong,
.brand-wordmark em {
  display: block;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-wordmark strong {
  color: var(--green);
  font-size: 25px;
}
.brand-wordmark em {
  color: var(--gold);
  font-size: 18px;
}
.global-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px 128px;
  align-items: stretch;
}
.global-search input,
.global-search select {
  height: 44px;
  border: 2px solid #111;
  border-right: 0;
  border-radius: 0;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.global-search input { border-radius: 24px 0 0 24px; }
.global-search select { font-size: 14px; color: #444; }
.global-search button {
  height: 44px;
  border: 2px solid var(--blue);
  border-radius: 0 24px 24px 0;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.global-search button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.account-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  white-space: nowrap;
}
.account-nav button,
.account-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 7px 13px;
}
.account-nav button:hover,
.account-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.account-nav .sell-link {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}
.account-nav .sell-link:hover {
  border-color: #95601f;
  background: #95601f;
  color: #fff;
}
.category-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 38px;
  overflow-x: auto;
  color: #555;
  font-size: 14px;
}
.category-nav a { flex: 0 0 auto; }
.category-nav a:hover { color: var(--blue); text-decoration: underline; }
.category-nav a[aria-disabled="true"] { color: #999; }
.language-form { margin-left: auto; }
.language-form select {
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: #fff;
  padding: 4px 8px;
}

.market-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0 26px;
}
.hero-categories {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 0;
}
.hero-categories strong,
.hero-categories a,
.hero-categories span {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
}
.hero-categories strong {
  color: var(--ink);
  font-size: 15px;
}
.hero-categories a { color: #333; }
.hero-categories a:hover { color: var(--blue); text-decoration: underline; }
.hero-categories span { color: #8b8b8b; }
.deal-banner {
  position: relative;
  min-height: 310px;
  display: grid;
  padding: 0;
  border-radius: 8px;
  background:
    linear-gradient(110deg, #f6ead8 0%, #fff7e8 52%, #eaf3e6 100%);
  overflow: hidden;
  border: 1px solid #ead7b9;
}
.ad-slider {
  isolation: isolate;
}
.ad-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 26px;
  padding: 26px 36px;
  opacity: 0;
  transform: translateX(28px);
  animation: adCycle 18s infinite;
}
.ad-slide > div:first-child {
  position: relative;
  z-index: 2;
}
.brand-slide {
  opacity: 1;
  transform: translateX(0);
  animation-name: brandCycle;
}
.ad-one {
  background: linear-gradient(110deg, #fff7e8 0%, #f6ead8 45%, #ffffff 100%);
  animation-delay: 6s;
}
.ad-two {
  background: linear-gradient(110deg, #eaf3e6 0%, #ffffff 54%, #fff5df 100%);
  animation-delay: 12s;
}
.deal-banner p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.deal-banner h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}
.deal-banner span {
  display: block;
  margin: 14px 0 22px;
  max-width: 520px;
  color: #4a4a4a;
  font-size: 18px;
}
.deal-banner > img {
  width: 300px;
  margin-left: auto;
  mix-blend-mode: multiply;
}
.animated-logo {
  position: relative;
  width: min(265px, 100%);
  justify-self: end;
  align-self: center;
  margin-right: 8px;
}
.animated-logo img {
  width: 100%;
  height: auto;
}
.slider-dots {
  position: absolute;
  left: 36px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 7px;
}
.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23,55,15,.28);
  animation: dotCycle 18s infinite;
}
.slider-dots span:nth-child(2) { animation-delay: 6s; }
.slider-dots span:nth-child(3) { animation-delay: 12s; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--blue);
  border-radius: 22px;
  background: var(--blue);
  color: white;
  padding: 9px 20px;
  font-weight: 700;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary {
  background: #fff;
  color: var(--blue);
}

.ad-slot {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ad-slot img { width: 160px; height: 72px; object-fit: cover; border-radius: 6px; }

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.section-head,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 14px;
}
.section-head h2,
.page-title h1,
.table-wrap h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}
.section-head > a {
  color: var(--blue);
  font-size: 14px;
}
.section-head > a:hover { text-decoration: underline; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.category-tile {
  min-height: 158px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.category-tile:hover {
  border-color: var(--line-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.category-tile.disabled { color: #8a8a8a; background: #fafafa; }
.category-tile.disabled:hover { transform: none; box-shadow: none; }
.category-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf3e6;
  color: var(--green);
  font-weight: 800;
}
.accent-gold .category-mark { background: #fff5df; color: var(--gold); }
.accent-green .category-mark { background: #eaf3e6; color: var(--green); }
.accent-steel .category-mark { background: #eef1f2; color: #4f5a60; }
.category-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.category-tile strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 18px;
}
.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.featured-band {
  margin: 30px calc(50% - 50vw) 10px;
  padding: 4px max(16px, calc((100vw - 1280px) / 2)) 28px;
  background: #f7f7f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 16px;
}
.listing-grid { margin-bottom: 54px; }
.listing-card {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.listing-card:hover {
  border-color: var(--line-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.featured-card { border-color: #f0d59d; }
.listing-card a { display: block; height: 100%; }
.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f2f2f2;
  color: #555;
  text-align: center;
  padding: 12px;
  font-weight: 700;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo em {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a4d00;
  padding: 5px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.card-body {
  display: grid;
  gap: 5px;
  padding: 10px 8px 12px;
}
.card-body strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.24;
}
.card-body span {
  color: var(--muted);
  font-size: 13px;
}
.card-body b,
.price {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.feature-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}
.feature-empty strong { color: var(--ink); font-size: 20px; }

.search-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px auto;
  gap: 10px;
  width: min(720px, 100%);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(23,55,15,.16);
  border-color: var(--blue);
}
.search-bar button,
.listing-form button {
  border: 1px solid var(--blue);
  border-radius: 22px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  margin: 26px 0 58px;
}
.gallery {
  display: grid;
  gap: 12px;
}
.gallery img,
.placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f4;
}
.detail-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.detail-panel h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}
dl {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 12px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }

.form-shell,
.auth-box {
  max-width: 920px;
  margin: 28px auto 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.form-grid small,
.form-errors { color: #b00020; }
.form-grid label:has(textarea),
.form-grid label:has(#id_photos) { grid-column: 1 / -1; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.stats strong {
  display: block;
  color: var(--ink);
  font-size: 32px;
}
.stats span { color: var(--muted); }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid var(--line);
}
.messages {
  width: min(1280px, calc(100% - 32px));
  margin: 14px auto 0;
}
.messages div,
.empty {
  border: 1px solid #d8e7d0;
  border-radius: 8px;
  background: #f2f8ee;
  padding: 14px;
  color: var(--green);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px max(16px, calc((100vw - 1280px) / 2));
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@keyframes brandCycle {
  0%, 31% { opacity: 1; transform: translateX(0); }
  36%, 94% { opacity: 0; transform: translateX(-26px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes adCycle {
  0%, 4% { opacity: 0; transform: translateX(28px); }
  8%, 31% { opacity: 1; transform: translateX(0); }
  36%, 100% { opacity: 0; transform: translateX(-26px); }
}
@keyframes dotCycle {
  0%, 31% { background: var(--green); transform: scale(1.3); }
  36%, 100% { background: rgba(23,55,15,.28); transform: scale(1); }
}

@media (max-width: 980px) {
  .top-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .global-search { grid-template-columns: minmax(0, 1fr) 120px 96px; }
  .market-hero { grid-template-columns: 1fr; }
  .hero-categories {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .hero-categories strong,
  .hero-categories a,
  .hero-categories span {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  body { background: #f6f6f6; }
  main { width: 100%; padding: 0 10px; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
  }
  .top-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 8px 10px 10px;
  }
  .brand img { width: 70px; height: 64px; }
  .brand-wordmark strong { font-size: 22px; }
  .brand-wordmark em { font-size: 16px; }
  .account-nav {
    justify-self: end;
    gap: 10px;
    font-size: 13px;
  }
  .account-nav .sell-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--gold);
    border-radius: 18px;
    background: var(--gold);
    padding: 6px 12px;
    color: #fff;
  }
  .global-search {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 7px;
    padding-top: 2px;
  }
  .global-search input,
  .global-search select,
  .global-search button {
    border: 1px solid var(--line-dark);
    border-radius: 22px;
  }
  .global-search button {
    border-color: var(--blue);
  }
  .global-search input,
  .global-search button {
    height: 42px;
  }
  .global-search select {
    height: 38px;
    font-size: 13px;
  }
  .category-nav {
    width: 100%;
    min-height: 42px;
    gap: 8px;
    padding: 0 10px 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .category-nav::-webkit-scrollbar,
  .hero-categories::-webkit-scrollbar { display: none; }
  .category-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 7px 11px;
    font-size: 13px;
  }
  .category-nav a[aria-disabled="true"] {
    display: none;
  }
  .language-form {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .deal-banner {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 0;
    height: 286px;
    padding: 18px;
    border-radius: 10px;
    gap: 12px;
  }
  .market-hero {
    gap: 10px;
    margin: 10px 0 18px;
  }
  .hero-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 2px;
  }
  .hero-categories strong { display: none; }
  .hero-categories a,
  .hero-categories span {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .hero-categories span { background: #f0f0f0; }
  .deal-banner p {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .deal-banner h1 {
    font-size: 30px;
    line-height: 1.03;
  }
  .deal-banner span {
    margin: 9px 0 14px;
    font-size: 15px;
  }
  .deal-banner .button {
    min-height: 38px;
    padding: 8px 16px;
  }
  .deal-banner img {
    width: 118px;
    opacity: .18;
    pointer-events: none;
  }
  .ad-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 18px;
  }
  .animated-logo {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 104px;
    opacity: .58;
  }
  .animated-logo img { opacity: .34; }
  .slider-dots {
    left: 18px;
    bottom: 12px;
  }
  .section-head,
  .page-title {
    display: flex;
    align-items: end;
    margin: 22px 0 10px;
    padding: 0 2px;
  }
  .section-head h2,
  .page-title h1,
  .table-wrap h2 {
    font-size: 21px;
  }
  .section-head > a {
    font-size: 13px;
    white-space: nowrap;
  }
  .eyebrow { font-size: 11px; }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .category-tile {
    min-height: 128px;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
  }
  .category-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
  .category-tile strong {
    font-size: 15px;
    line-height: 1.1;
  }
  .category-tile p {
    font-size: 12px;
    line-height: 1.25;
  }
  .featured-band {
    margin: 22px -10px 8px;
    padding: 2px 10px 20px;
  }
  .featured-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .listing-card {
    border-color: var(--line);
    border-radius: 10px;
  }
  .card-body {
    padding: 9px;
    gap: 4px;
  }
  .card-body strong {
    font-size: 13px;
    line-height: 1.2;
  }
  .card-body span {
    font-size: 12px;
  }
  .card-body b,
  .price {
    font-size: 16px;
  }
  .feature-empty {
    min-height: 118px;
    padding: 16px;
  }
  .feature-empty strong { font-size: 17px; }
  .feature-empty span { font-size: 13px; }
  .search-bar,
  .detail-layout,
  .form-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .page-title .search-bar {
    margin-top: 12px;
  }
  .detail-layout {
    gap: 14px;
    margin: 16px 0 36px;
  }
  .detail-panel {
    padding: 16px;
  }
  .detail-panel h1 { font-size: 24px; }
  dl { grid-template-columns: 100px 1fr; font-size: 14px; }
  .form-shell,
  .auth-box {
    margin: 14px 0 34px;
    padding: 16px;
    border-radius: 10px;
  }
  .site-footer {
    display: grid;
    gap: 6px;
    padding: 18px 10px;
  }
}
