.inventory-page { padding-block: clamp(3rem, 7vw, 7rem); }
.inventory-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: end; gap: 3rem; padding-bottom: clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.inventory-intro h1 { max-width: 900px; margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(3.4rem, 7vw, 7.5rem); line-height: .9; letter-spacing: -.07em; }
.inventory-intro > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }

.inventory-workspace { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(2rem, 4vw, 5rem); padding-top: clamp(3rem, 6vw, 6rem); }
.inventory-filters { position: sticky; top: 110px; align-self: start; display: grid; gap: 1.35rem; max-height: calc(100vh - 132px); overflow-y: auto; padding: 1.4rem; border: 1px solid var(--gold); background: #111318; scrollbar-color: var(--gold) #090a0c; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(184,146,59,.32); }
.filter-heading strong { font-family: "Manrope", sans-serif; font-size: 1.05rem; }
.filter-heading button { padding: 0; border: 0; background: transparent; color: var(--gold-bright); font-size: .72rem; font-weight: 800; cursor: pointer; }
.inventory-filters label { display: grid; gap: .48rem; }
.inventory-filters label > span { color: #c7c2b5; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.inventory-filters input, .inventory-filters select { width: 100%; min-height: 48px; padding: 0 .9rem; border: 1px solid rgba(184,146,59,.58); border-radius: 0; outline: 0; background: #090a0c; color: white; }
.inventory-filters input:focus, .inventory-filters select:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(184,146,59,.16); }
.inventory-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.inventory-filters legend { width: 100%; margin-bottom: .7rem; color: #c7c2b5; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature-filter { min-width: 0; border-block: 1px solid rgba(184,146,59,.32); }
.feature-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; color: #c7c2b5; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; list-style: none; }
.feature-filter summary::-webkit-details-marker { display: none; }
.feature-filter summary span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--gold-bright); font-size: 1.05rem; transition: transform 180ms ease; }
.feature-filter[open] summary span { transform: rotate(45deg); }
.feature-filter summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.feature-filter .feature-options { padding: .2rem 0 .85rem; }
.range-filter > div { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.range-filter label > span, .select-filter label > span { color: var(--muted); font-size: .62rem; letter-spacing: .08em; }
.select-filter { display: grid; gap: .65rem; }
.feature-options { display: grid; gap: .45rem; }
.feature-options label { position: relative; display: flex; align-items: center; min-height: 40px; padding: .55rem .7rem; border: 1px solid rgba(184,146,59,.25); background: #090a0c; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.feature-options label:hover { border-color: rgba(199,166,81,.72); }
.feature-options input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.feature-options span { display: flex; align-items: center; gap: .65rem; color: #d7d3ca; font-size: .76rem; font-weight: 700; }
.feature-options span::before { content: ""; display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid rgba(255,255,255,.3); color: #08090b; font-size: .72rem; font-weight: 900; }
.feature-options input:checked + span::before { content: "✓"; border-color: var(--gold-bright); background: var(--gold-bright); }
.feature-options label:has(input:checked) { border-color: var(--gold); background: rgba(184,146,59,.1); }
.feature-options input:focus-visible + span::before { outline: 3px solid rgba(199,166,81,.32); outline-offset: 2px; }
.apply-filters { min-height: 50px; border: 1px solid var(--gold-bright); background: linear-gradient(135deg, #8f6925, #c7a651 52%, #987127); color: #08090b; font-weight: 800; cursor: pointer; }
.apply-filters span { margin-left: .5rem; }

.inventory-results { min-width: 0; }
.results-heading { min-height: 64px; display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.results-heading .section-label { margin-bottom: .6rem; }
.results-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.active-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: -1rem 0 1.5rem; }
.active-filters:empty { display: none; }
.active-filters button { min-height: 34px; padding: .35rem .7rem; border: 1px solid rgba(199,166,81,.52); background: rgba(184,146,59,.12); color: #efe6ce; font-size: .68rem; font-weight: 700; cursor: pointer; }
.active-filters button:hover { border-color: var(--gold-bright); background: rgba(184,146,59,.2); }
.active-filters button span { margin-left: .35rem; color: var(--gold-bright); font-size: .9rem; }
.inventory-results-grid { margin-top: 0; }
.inventory-results-grid .listing { min-width: 0; }
.inventory-results-grid .listing:last-child { display: block; }
.inventory-results-grid .listing h3 { min-height: 3.1em; }
.inventory-results-grid .listing-image { height: clamp(220px, 22vw, 310px); }
.mobile-filter-button { display: none; }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination button { min-width: 42px; height: 42px; border: 1px solid var(--line); background: #111318; color: white; cursor: pointer; }
.pagination button[aria-current="page"] { border-color: var(--gold-bright); background: var(--gold); color: #08090b; font-weight: 800; }

.inventory-help { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-block: clamp(4rem, 7vw, 7rem); border-top: 1px solid var(--line); background: #111318; }
.inventory-help h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }

@media (max-width: 1050px) {
  .inventory-workspace { grid-template-columns: 1fr; }
  .inventory-filters { position: static; grid-template-columns: 1fr 1fr; max-height: none; overflow: visible; }
  .filter-heading, .filter-wide { grid-column: 1 / -1; }
  .feature-filter { align-self: start; }
  .apply-filters { align-self: end; }
}

@media (max-width: 680px) {
  .inventory-page { padding-top: 2.5rem; }
  .inventory-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .inventory-intro h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .inventory-workspace { padding-top: 2.5rem; }
  .inventory-filters { display: none; grid-template-columns: 1fr; }
  .inventory-filters.open { display: grid; }
  .filter-heading, .filter-wide { grid-column: auto; }
  .results-heading { align-items: center; }
  .mobile-filter-button { display: block; min-height: 44px; padding: 0 1rem; border: 1px solid var(--gold); background: #111318; color: var(--gold-bright); font-weight: 800; }
  .mobile-filter-button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: .35rem; padding-inline: .3rem; background: var(--gold); color: #08090b; font-size: .68rem; }
  .inventory-help { align-items: start; flex-direction: column; }
}
