:root {
  --ws-yellow: #f3c400;
  --ws-yellow-deep: #d6a800;
  --ws-black: #131313;
  --ws-charcoal: #2e3238;
  --ws-gray-900: #272a2f;
  --ws-gray-700: #555b64;
  --ws-gray-500: #8d959f;
  --ws-gray-200: #dde1e6;
  --ws-gray-100: #f4f6f8;
  --ws-white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(28, 30, 33, 0.06);
  --shadow-md: 0 14px 40px rgba(21, 22, 26, 0.12);
}

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

body {
  margin: 0;
  color: var(--ws-black);
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(243, 196, 0, 0.24), transparent 26%),
    radial-gradient(circle at 96% 0%, rgba(106, 113, 123, 0.26), transparent 20%),
    repeating-linear-gradient(
      -45deg,
      rgba(19, 19, 19, 0.012) 0px,
      rgba(19, 19, 19, 0.012) 2px,
      transparent 2px,
      transparent 18px
    ),
    var(--ws-gray-100);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  letter-spacing: 0.03em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.95rem 2rem;
  background: linear-gradient(90deg, #101010, #1f2228);
  border-bottom: 3px solid var(--ws-yellow);
  color: var(--ws-white);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--ws-black);
  font-weight: 700;
  background: linear-gradient(160deg, #ffde43, #e3b303);
}

.brand-copy h1 {
  font-size: 1.4rem;
  line-height: 1;
}

.brand-site {
  color: #d7d8da;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.top-links {
  display: flex;
  gap: 1.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.top-links a {
  color: #e7eaee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 24px;
}

.top-links a:hover {
  color: var(--ws-yellow);
}

.nav-line {
  display: block;
  width: 100%;
  border-top: 4px solid currentColor;
  border-radius: 999px;
}

.nav-pill {
  border: 1px solid #6f7680;
  border-radius: 999px;
  background: transparent;
  color: var(--ws-white);
  width: 110px;
  height: 38px;
  padding: 0 0.9rem;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page {
  max-width: 1580px;
  margin: 1rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
}

.filter-rail {
  position: sticky;
  top: 78px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: linear-gradient(180deg, #f6f7f9, #eff2f6);
  border-radius: 20px;
  border: 1px solid var(--ws-gray-200);
  box-shadow: var(--shadow-sm);
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--ws-gray-200);
}

.rail-head p {
  font-size: 1.1rem;
  font-weight: 700;
}

.ghost-btn {
  border: 0;
  color: #4d5560;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ghost-btn:hover {
  color: var(--ws-black);
}

.filter-section {
  border-bottom: 1px solid var(--ws-gray-200);
}

.filter-section summary {
  cursor: pointer;
  list-style: none;
  padding: 0.92rem 1rem;
  font-weight: 700;
}

.filter-section summary::-webkit-details-marker {
  display: none;
}

.filter-section summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--ws-gray-700);
}

.filter-section[open] summary::after {
  content: "-";
}

.filter-content {
  padding: 0 1rem 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

label {
  font-size: 0.9rem;
  color: #434950;
  display: grid;
  gap: 0.25rem;
}

input,
select,
button {
  font-family: inherit;
}

input[type="number"],
input[type="search"],
select {
  width: 100%;
  border: 1px solid #bfc7d0;
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  font-size: 1rem;
  background: var(--ws-white);
}

input[type="number"]:focus,
input[type="search"]:focus,
select:focus {
  outline: 2px solid rgba(243, 196, 0, 0.45);
  border-color: #887100;
}

.price-filter {
  gap: 0.7rem;
}

.price-filter-note {
  color: #5f6975;
  font-size: 0.9rem;
}

.price-value-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.price-display-input {
  width: 100%;
  border: 1px solid #bfc7d0;
  border-radius: 12px;
  padding: 0.62rem 0.65rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  background: #fff;
  color: #222;
}

.price-dash {
  font-size: 1.35rem;
  color: #58616d;
}

.price-slider-wrap {
  position: relative;
  height: 34px;
}

.price-slider-track {
  --min: 0%;
  --max: 100%;
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #cfd6de 0%,
    #cfd6de var(--min),
    #1f2937 var(--min),
    #1f2937 var(--max),
    #cfd6de var(--max),
    #cfd6de 100%
  );
}

.price-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.price-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.price-slider::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1f2937;
  cursor: pointer;
}

.price-slider::-moz-range-track {
  height: 4px;
  background: transparent;
}

.price-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1f2937;
  cursor: pointer;
}

.price-slider-labels {
  display: flex;
  justify-content: space-between;
  color: #5a6472;
  font-size: 0.95rem;
}

.facet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 9px;
  padding: 0.28rem 0.35rem;
}

.facet-option input {
  margin-right: 0.4rem;
}

.facet-option:hover {
  background: rgba(243, 196, 0, 0.15);
}

.facet-option.is-disabled {
  opacity: 0.45;
}

.facet-option.is-disabled input {
  cursor: not-allowed;
}

.facet-count {
  color: var(--ws-gray-700);
}

.facet-list {
  display: grid;
  gap: 0.35rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.2rem;
}

.facet-empty {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #555;
}

.radio-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.content {
  min-width: 0;
}

.search-hero {
  background: linear-gradient(165deg, #e8ebf0, #dbe0e7);
  border-radius: 20px;
  border: 1px solid #d4d9e0;
  box-shadow: var(--shadow-sm);
  padding: 1.1rem;
  animation: slide-up 0.45s ease both;
}

.search-row {
  margin-bottom: 0.75rem;
}

.search-row input {
  font-size: 1.15rem;
  height: 52px;
  border-radius: 12px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid #bac4ce;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  background: var(--ws-white);
  font-size: 0.93rem;
  cursor: pointer;
}

.chip:hover,
.chip.active {
  background: var(--ws-yellow);
  border-color: #a98700;
  color: #201c08;
}

.promo-card {
  display: none !important;
}

.promo-kicker {
  color: #866f00;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.promo-card h2 {
  font-size: 1.58rem;
  margin-top: 0.2rem;
}

.promo-card p {
  margin-top: 0.26rem;
  color: #475160;
}

.promo-tag {
  border-radius: 999px;
  background: linear-gradient(140deg, #ffd83f, #f0bb00);
  padding: 0.45rem 0.8rem;
  color: #1f1a06;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  margin: 1.05rem 0 0.55rem;
}

#resultCountText {
  font-size: 1.26rem;
  font-weight: 700;
}

.results-controls label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #3e4349;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  min-height: 30px;
}

.active-pill {
  border-radius: 999px;
  background: #20242a;
  color: var(--ws-white);
  padding: 0.18rem 0.65rem 0.2rem;
  font-size: 0.85rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 0.85rem;
}

.inventory-card {
  border-radius: 16px;
  background: var(--ws-white);
  border: 1px solid #d8dce3;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  animation: card-in 0.4s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d8dee6, #f3f6fb);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #5f6670;
}

.card-badges {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  justify-content: space-between;
}

.card-image-btn {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  border: 1px solid #111;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(255, 255, 255, 0.88);
  color: #31353b;
  font-weight: 700;
}

.badge-spotlight {
  background: rgba(243, 196, 0, 0.92);
  color: #292000;
}

.card-main {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.38rem;
  padding: 0.8rem 0.85rem 0.95rem;
}

.card-title {
  font-size: 1.4rem;
  line-height: 1.02;
  min-height: 2.1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-subtitle,
.card-meta {
  color: #58616d;
}

.card-description {
  margin: 0;
  font-size: 0.86rem;
  color: #67707b;
  line-height: 1.2;
  min-height: 2.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-subtitle {
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-scan-block {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.45rem;
  align-content: start;
}

.price {
  font-size: 1.7rem;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
  min-height: 1.1em;
  display: flex;
  align-items: flex-end;
}

.price-empty {
  color: #7e8893;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 1.7rem;
  display: flex;
  align-items: flex-end;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem;
}

.meta-box {
  border: 1px solid #dce0e6;
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
  background: #f8f9fb;
}

.meta-label {
  font-size: 0.72rem;
  color: #67727e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
}

.card-main button {
  border: 0;
  border-radius: 11px;
  background: linear-gradient(160deg, #21252d, #2f353e);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 0.6rem 0.7rem;
}

.card-main button:hover {
  background: linear-gradient(160deg, #f3c400, #cf9f00);
  color: #1f1908;
}

.empty-state {
  background: var(--ws-white);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px dashed #c4ccd5;
  color: #4e5761;
}

.details-modal {
  width: min(860px, calc(100vw - 2rem));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.details-modal::backdrop {
  background: rgba(19, 19, 21, 0.58);
}

.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.details-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.details-image {
  aspect-ratio: 16 / 11;
  width: 100%;
  object-fit: cover;
  background: #eceff3;
}

.details-copy {
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.details-title {
  font-size: 1.7rem;
}

.details-price {
  font-size: 2rem;
  font-family: "Bebas Neue", "Oswald", sans-serif;
}

.detail-list {
  display: grid;
  gap: 0.3rem;
}

.detail-list span {
  color: #5b6370;
}

/* Wireframe mode: monochrome UI for data/filter validation. */
body {
  background: #fff;
  color: #111;
}

.top-nav {
  background: #fff;
  color: #111;
  border-bottom: 2px solid #111;
}

.brand-mark {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}

.brand-site,
.top-links a,
.nav-pill,
.top-links a:hover {
  color: #111;
}

.nav-pill {
  background: #fff;
  border: 1px solid #111;
}

.filter-rail,
.search-hero,
.promo-card,
.inventory-card,
.meta-box,
.empty-state {
  background: #fff;
  border-color: #111;
  box-shadow: none;
}

.rail-head,
.filter-section {
  border-color: #111;
}

.filter-section summary::after {
  color: #111;
}

input[type="number"],
input[type="search"],
input[type="text"],
select {
  background: #fff;
  border-color: #111;
  color: #111;
}

.chip {
  background: #fff;
  border-color: #111;
  color: #111;
}

input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
select:focus {
  outline: 2px solid #111;
  border-color: #111;
}

.facet-option:hover,
.chip:hover,
.chip.active {
  background: #f2f2f2;
  border-color: #111;
  color: #111;
}

.promo-kicker,
.promo-card p,
.results-controls label,
.card-subtitle,
.card-meta,
.meta-label,
.detail-list span,
.facet-count,
.ghost-btn {
  color: #444;
}

.promo-tag {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.active-pill {
  background: #111;
  color: #fff;
}

.price-filter-note,
.price-dash,
.price-slider-labels {
  color: #444;
}

.price-slider-track {
  background: linear-gradient(
    to right,
    #bbb 0%,
    #bbb var(--min),
    #111 var(--min),
    #111 var(--max),
    #bbb var(--max),
    #bbb 100%
  );
}

.price-slider::-webkit-slider-thumb,
.price-slider::-moz-range-thumb {
  border-color: #111;
}

.card-image-wrap {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge,
.badge-spotlight {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.card-main button,
.card-image-btn {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.card-main button:hover,
.card-image-btn:hover {
  background: #111;
  color: #fff;
}

.details-modal {
  border: 2px solid #111;
  box-shadow: none;
}

.details-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.details-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1160px) {
  .page {
    grid-template-columns: 1fr;
  }

  .filter-rail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 780px) {
  .top-nav {
    grid-template-columns: 1fr auto;
    padding: 0.8rem 1rem;
  }

  .top-links {
    grid-column: 1 / -1;
    order: 3;
    gap: 0.85rem;
    font-size: 0.92rem;
  }

  .promo-card {
    grid-template-columns: 1fr;
  }

  .results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-body {
    grid-template-columns: 1fr;
  }
}
