:root {
  color-scheme: dark;
  --bg: #111310;
  --surface: #1a1d19;
  --surface-2: #22261f;
  --line: #33382f;
  --text: #f7f5ec;
  --muted: #aeb4a7;
  --accent: #c6ff3d;
  --accent-dark: #172000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 80% 0%, #273214 0, transparent 32rem), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  display: flex;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; }
.sell-link, .primary-action, .search-button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-dark);
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
}
main { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 72px 0 46px; }
.eyebrow { margin: 0 0 14px; color: var(--accent) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(3rem, 9vw, 7.5rem); line-height: .86; letter-spacing: -.075em; }
.hero > p:last-child { margin: 25px 0 0; color: var(--muted); font-size: 1.2rem; }

.filters { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 26px; background: rgba(26, 29, 25, .92); }
.filters label { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.filters label > span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.filters input, .filters select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 13px; outline: none; background: var(--bg); color: var(--text); padding: 12px 13px; }
.filters input:focus, .filters select:focus { border-color: var(--accent); }
.search-field input { font-size: 1.05rem; }
.search-button { align-self: end; min-height: 47px; }
.filter-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 4px; }
.check-label { align-self: end; flex-direction: row !important; align-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); padding: 0 14px; }
.check-label input { width: auto; accent-color: var(--accent); }
.check-label span { color: var(--text) !important; }

.catalog-heading { display: flex; align-items: end; justify-content: space-between; padding: 56px 0 20px; }
.catalog-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.catalog-heading span { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #59624e; }
.product-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.025); }
.photo-placeholder, .detail-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: var(--accent); color: var(--accent-dark); font-size: 5rem; font-weight: 900; }
.product-copy { padding: 17px; }
.product-price { margin: 0 0 8px; color: var(--accent); font-size: 1.15rem; font-weight: 900; }
.product-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.product-meta, .product-location { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }

.empty-state { grid-column: 1 / -1; padding: 90px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 24px; }
.empty-state > span { display: grid; width: 70px; height: 70px; margin: 0 auto 20px; place-items: center; border-radius: 20px; background: var(--accent); color: var(--accent-dark); font-size: 2.4rem; font-weight: 900; }
.empty-state h1, .empty-state h2 { margin: 0 0 10px; }
.empty-state p { color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 12px; padding: 34px 0 0; }
.pagination a { border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-weight: 800; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

.breadcrumbs { display: flex; gap: 10px; padding: 35px 0 22px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 48px; padding-bottom: 80px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.detail-gallery img, .detail-placeholder { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; background: var(--surface); }
.detail-gallery img:first-child { grid-column: 1 / -1; }
.detail-copy { padding-top: 16px; }
.status-pill { display: inline-flex; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); font-size: .8rem; }
.detail-copy h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.06em; }
.detail-price { margin: 24px 0; color: var(--accent); font-size: 2rem; font-weight: 900; }
.detail-copy dl { margin: 28px 0; border-top: 1px solid var(--line); }
.detail-copy dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-copy dt { color: var(--muted); }
.detail-copy dd { margin: 0; text-align: right; font-weight: 700; }
.description { padding: 6px 0 20px; }
.description h2 { font-size: 1rem; }
.description p { color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.seller { color: var(--muted); }
.seller b { color: var(--text); }
.primary-action { display: flex; margin-top: 28px; justify-content: center; padding: 16px 24px; }
.unavailable { display: flex; margin-top: 28px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: 16px; color: var(--muted); }
.order-card { width: min(720px, 100%); margin: 18px auto 80px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); padding: clamp(24px, 5vw, 48px); }
.order-card h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.order-card dl { margin: 30px 0; border-top: 1px solid var(--line); }
.order-card dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-card dt { color: var(--muted); }
.order-card dd { margin: 0; text-align: right; font-weight: 800; }
.order-button { width: 100%; }
.order-help { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.order-notice { border: 1px solid #856b28; border-radius: 14px; background: #302810; padding: 14px; color: #ffe59b; }
.order-success { border: 1px solid #4c6726; border-radius: 14px; background: #1c2910; padding: 14px; color: var(--accent); }
.secondary-action { display: flex; margin-top: 16px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px; font-weight: 800; }
.payout-box { margin-top: 28px; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.payout-box h2 { margin-top: 0; }
footer { width: min(1200px, calc(100% - 40px)); margin: 80px auto 0; border-top: 1px solid var(--line); padding: 28px 0 45px; color: var(--muted); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 24px, 1200px); }
  .site-header { padding: 14px 0; }
  .brand span { display: none; }
  .sell-link { padding: 10px 15px; }
  .hero { padding: 46px 0 32px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .filters { grid-template-columns: 1fr; border-radius: 20px; padding: 13px; }
  .search-button { width: 100%; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { gap: 10px; }
  .product-card { border-radius: 15px; }
  .product-copy { padding: 12px; }
  .product-card h2 { font-size: .92rem; }
  .product-meta, .product-location { font-size: .75rem; }
  .catalog-heading { padding-top: 38px; }
  .catalog-heading h2 { font-size: 1.5rem; }
  .detail-gallery img, .detail-placeholder { border-radius: 16px; }
}
