:root {
  color-scheme: light;
  --orange: #ff6500;
  --orange-dark: #a93700;
  --ink: #19273a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #151211;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 37% 5%, transparent 54%, #36160d 54.4%, #fe7516 55%, #ffbc77 55.2%, #a33208 55.6%, transparent 56%),
    radial-gradient(ellipse at 47% 1%, transparent 62%, #421a0c 62.5%, #e54d06 63.1%, #fca043 63.4%, #621e08 64.4%, #220f0a 65%, transparent 67%),
    linear-gradient(145deg,#080809 32%,#171312 70%,#3c170d);
  background-attachment: fixed;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #076bce; outline-offset: 2px; }
.wrap { width: min(100% - 48px, 1920px); margin-inline: auto; }
.site-header { background: #fff; }
.header-row { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand img { width: 215px; height: 62px; object-fit: contain; object-position: left center; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(145deg,#ff9c18,#e94500); color: white; font-size: 32px; font-weight: 900; font-style: italic; }
.brand-name { display: grid; color: #171717; line-height: 1; }
.brand-name strong { font-size: 31px; letter-spacing: -.06em; font-style: italic; font-weight: 900; }
.brand-name span { font-size: 10px; font-weight: 850; color: var(--orange-dark); }
.search { display: flex; gap: 8px; width: min(470px, 48%); }
.search input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid #dedfe2; border-radius: 8px; font: inherit; }
.search button, .buy { background: var(--orange-dark); color: #fff; border: 0; border-radius: 8px; font: 700 .82rem system-ui,sans-serif; cursor: pointer; padding: 10px 13px; }
.top-nav { display: flex; gap: 26px; padding-block: 12px; }
.top-nav a { font-size: .85rem; font-weight: 700; text-decoration: none; }
.top-nav a:hover, .sidebar a:hover { color: var(--orange-dark); }
.marketplace { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 17px 22px; }
.sidebar { background: #fff; border: 1px solid #e4e4e4; border-radius: 12px; overflow: hidden; position: sticky; top: 12px; }
.sidebar h2 { background: #bc4000; color: #fff; margin: 0; padding: 17px 15px; font-size: .95rem; }
.sidebar nav { padding: 7px; }
.sidebar a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 8px; font-size: .85rem; font-weight: 650; text-decoration: none; }
.sidebar a[aria-current] { background: #fff0e3; color: #963800; }
.chevron { font-size: 1.1rem; line-height: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e5e5e5; border-radius: 13px; background: white; overflow: hidden; }
.photo { display: grid; place-items: center; position: relative; aspect-ratio: 1; background: #f4f3f2; color: #775746; text-decoration: none; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.photo-placeholder { display: grid; justify-items: center; gap: 8px; font-size: .75rem; }
.bag { width: 31px; height: 27px; border: 2px solid #b65930; border-radius: 5px; position: relative; margin-top: 8px; }
.bag::before { content: ""; position: absolute; width: 10px; height: 8px; border: 2px solid #b65930; border-bottom: 0; border-radius: 8px 8px 0 0; bottom: 100%; left: 50%; transform: translateX(-50%); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 6px; }
.card-body p, .card-body h3 { margin: 0; }
.category { font-size: .69rem; color: #60646a; }
.card h3 { font-size: .88rem; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.price { font-size: 1.06rem; font-weight: 800; color: var(--orange-dark); }
.store { font-size: .75rem; color: #53575f; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.buy { display: flex; justify-content: center; align-items: center; gap: 4px; text-align: center; text-decoration: none; margin-top: auto; }
.buy:hover, .search button:hover { background: #852b00; }
.results-label, .footer { color: #fff; background: #231813; padding: 12px; border-radius: 8px; }
.results-label { margin-top: 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.pagination a { background: #fff; color: #161616; min-width: 36px; padding: 8px; text-align: center; text-decoration: none; border-radius: 8px; }
.pagination [aria-current] { background: var(--orange-dark); color: white; }
.footer { margin-bottom: 16px; font-size: .82rem; }
@media (max-width: 1050px) { .marketplace { grid-template-columns: 190px minmax(0,1fr); } .wrap { width: calc(100% - 32px); } }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 24px); }
  .header-row { flex-wrap: wrap; gap: 9px; padding-block: 10px; }
  .brand img { width: 165px; height: 46px; }
  .search { width: 100%; }
  .top-nav { gap: 16px; border-top: 1px solid #eee; }
  .marketplace { grid-template-columns: minmax(0,1fr); gap: 10px; padding-top: 10px; }
  .sidebar { position: static; }
  .sidebar h2 { padding: 8px 11px; font-size: .8rem; }
  .sidebar nav { display: flex; gap: 5px; overflow-x: auto; }
  .sidebar a { white-space: nowrap; padding: 7px 8px; font-size: .76rem; }
  .chevron { display: none; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .card-body { padding: 8px; }
}
