.products-page {
  background: var(--bg);
}

.products-hero {
  min-height: 86svh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header) + 26px) 32px 92px;
  border-bottom: 1px solid var(--line);
}

.products-hero-media,
.products-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.products-hero-media {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.products-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 244, 239, 0.97) 0%, rgba(247, 244, 239, 0.82) 35%, rgba(247, 244, 239, 0.26) 62%, rgba(247, 244, 239, 0.08) 100%),
    linear-gradient(0deg, rgba(247, 244, 239, 0.94) 0%, rgba(247, 244, 239, 0) 28%);
}

[data-theme="dark"] .products-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.78) 35%, rgba(7, 7, 7, 0.3) 62%, rgba(7, 7, 7, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0) 28%);
}

.products-hero-copy {
  width: min(620px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.products-hero-copy.reveal {
  opacity: 1;
  transform: none;
}

.products-hero-copy p:not(.eyebrow) {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.products-hero-meta {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.products-hero-meta span {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 13px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #191816;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .products-hero-meta span {
  border-color: rgba(247, 244, 239, 0.16);
  background: rgba(7, 7, 7, 0.48);
  color: var(--ink);
}

.supplier-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.supplier-strip div {
  min-height: 154px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.supplier-strip div:last-child {
  border-right: 0;
}

.supplier-strip span,
.supplier-strip strong,
.supplier-strip p {
  display: block;
}

.supplier-strip span {
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.supplier-strip strong {
  font-size: 1.22rem;
  line-height: 1.1;
}

.supplier-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.catalog-stage {
  padding: 104px 32px 112px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.catalog-intro {
  width: min(1180px, 100%);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: end;
}

.catalog-intro h2 {
  max-width: 760px;
}

.catalog-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.top-requests {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.top-requests a {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.top-requests a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.top-requests span,
.top-requests em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.top-requests strong {
  margin: 14px 0 8px;
  font-size: 1rem;
  line-height: 1.08;
}

.catalog-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-rail {
  position: sticky;
  top: calc(var(--header) + 24px);
  display: grid;
  gap: 10px;
}

.rail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.rail-card-strong {
  background: #111111;
  color: #f7f4ef;
}

.rail-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rail-card-strong span {
  color: rgba(247, 244, 239, 0.62);
}

.rail-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.rail-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.rail-card-strong p {
  color: rgba(247, 244, 239, 0.68);
}

.rail-links {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.rail-links button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 740;
}

.rail-links button:last-child {
  border-bottom: 0;
}

.rail-links button::after {
  content: ">";
  color: var(--rose);
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  width: 100%;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px;
  gap: 12px;
}

.search-box,
.sort-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.sort-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.search-box input,
.sort-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

.search-box input:focus,
.sort-box select:focus {
  border-color: var(--rose);
}

.product-filters {
  width: 100%;
  margin: 0 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 4px;
  scrollbar-width: none;
}

.product-filters::-webkit-scrollbar {
  display: none;
}

.product-filter {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 740;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.product-filter:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--ink);
}

.product-filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.results-line {
  width: 100%;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.catalog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.catalog-card.is-filtered {
  display: none;
}

.catalog-card.is-muted .vial-media {
  filter: saturate(0.65);
}

.vial-media {
  min-height: 300px;
  display: grid;
  place-items: end center;
  margin: 0 0 18px;
  padding: 28px 24px 18px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated), #ffffff 30%), color-mix(in srgb, var(--silver), transparent 52%));
}

[data-theme="dark"] .vial-media {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 46%),
    linear-gradient(145deg, #191715, #090909);
}

.vial-object {
  width: min(150px, 58%);
  height: 258px;
  position: relative;
  display: grid;
  justify-items: center;
  transition: transform 220ms ease;
}

.catalog-card:hover .vial-object {
  transform: scale(1.055) translateY(-3px);
}

.vial-cap {
  width: 92%;
  height: 38px;
  position: relative;
  z-index: 3;
  border-radius: 9px 9px 13px 13px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 22% 76%, rgba(255, 255, 255, 0.16)),
    linear-gradient(180deg, #242424, #070707);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.vial-neck {
  width: 58%;
  height: 30px;
  margin-top: -3px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 0;
  border-radius: 8px 8px 2px 2px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 10px 0 16px rgba(255, 255, 255, 0.12), inset -10px 0 16px rgba(0, 0, 0, 0.08);
}

.vial-body {
  width: 78%;
  height: 192px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 14px 14px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54), transparent 18% 76%, rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 14px 0 18px rgba(255, 255, 255, 0.28),
    inset -14px 0 18px rgba(0, 0, 0, 0.08),
    0 32px 44px rgba(0, 0, 0, 0.2);
}

.vial-amber .vial-body {
  border-color: rgba(125, 83, 24, 0.36);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 16% 78%, rgba(255, 255, 255, 0.28)),
    linear-gradient(180deg, rgba(141, 85, 16, 0.7), rgba(97, 53, 11, 0.6));
}

.vial-rose .vial-body {
  border-color: rgba(195, 38, 97, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), transparent 16% 78%, rgba(255, 255, 255, 0.34)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(232, 208, 216, 0.62));
}

.vial-powder,
.vial-liquid {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 46px;
  border-radius: 50% 50% 12px 12px / 20% 20% 12px 12px;
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58) 56%, rgba(218, 212, 202, 0.76));
}

.vial-liquid {
  height: 72px;
  background: linear-gradient(180deg, rgba(208, 233, 244, 0.42), rgba(169, 207, 225, 0.56));
}

.vial-label {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 54px;
  min-height: 98px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.vial-label strong {
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 850;
}

.vial-label i {
  width: 40px;
  height: 1px;
  display: block;
  background: var(--rose);
}

.vial-label b {
  min-height: 19px;
  font-size: clamp(0.56rem, 1.6vw, 0.76rem);
  line-height: 1.05;
}

.vial-label em {
  color: var(--rose-dark);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 780;
}

.vial-label small {
  color: #56514c;
  font-size: 0.58rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.card-meta {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-meta span {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-pill {
  background: color-mix(in srgb, var(--rose), transparent 91%);
  color: var(--rose-dark);
  border-color: color-mix(in srgb, var(--rose), transparent 62%) !important;
  font-weight: 780;
}

.status-muted {
  background: color-mix(in srgb, var(--ink), transparent 92%);
  color: var(--muted);
  border-color: var(--line-strong) !important;
}

.catalog-card h3 {
  min-height: 56px;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.12;
}

.catalog-card p {
  min-height: 66px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.catalog-card dl {
  display: grid;
  gap: 1px;
  margin: auto 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-card dl div:last-child {
  border-bottom: 0;
}

.catalog-card dt,
.catalog-card dd {
  margin: 0;
  font-size: 0.84rem;
}

.catalog-card dt {
  color: var(--muted);
}

.catalog-card dd {
  font-weight: 740;
}

.product-request {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.product-request:hover {
  transform: translateY(-1px);
  background: var(--ink);
  color: var(--bg);
}

.simplicity-matrix {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.simplicity-matrix div {
  min-height: 148px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.simplicity-matrix div:last-child {
  border-right: 0;
}

.simplicity-matrix strong,
.simplicity-matrix span {
  display: block;
}

.simplicity-matrix strong {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.simplicity-matrix span {
  color: var(--muted);
}

.product-faq {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.floating-checkout {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 780;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-checkout.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-checkout:hover {
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  .catalog-intro,
  .catalog-toolbar,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .supplier-strip,
  .top-requests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-strip div:nth-child(2n) {
    border-right: 0;
  }

  .catalog-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simplicity-matrix {
    grid-template-columns: 1fr;
  }

  .simplicity-matrix div {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .products-hero,
  .catalog-stage {
    padding-left: 20px;
    padding-right: 20px;
  }

  .products-hero {
    min-height: 90svh;
    padding-bottom: 128px;
  }

  .products-hero-media {
    object-position: 68% center;
  }

  .products-hero-shade {
    background:
      linear-gradient(90deg, rgba(247, 244, 239, 0.98) 0%, rgba(247, 244, 239, 0.9) 66%, rgba(247, 244, 239, 0.44) 100%),
      linear-gradient(0deg, rgba(247, 244, 239, 0.95) 0%, rgba(247, 244, 239, 0) 30%);
  }

  [data-theme="dark"] .products-hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.86) 66%, rgba(7, 7, 7, 0.42) 100%),
      linear-gradient(0deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0) 30%);
  }

  .products-hero-copy p:not(.eyebrow) {
    font-size: 1.02rem;
  }

  .products-hero-meta {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .products-hero-meta span {
    min-height: 32px;
    font-size: 0.76rem;
  }

  .catalog-stage {
    padding-top: 78px;
    padding-bottom: 82px;
  }

  .supplier-strip {
    display: block;
  }

  .supplier-strip div {
    min-height: auto;
    padding: 22px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .supplier-strip div:last-child {
    border-bottom: 0;
  }

  .catalog-intro {
    margin-bottom: 24px;
  }

  .top-requests {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .top-requests::-webkit-scrollbar {
    display: none;
  }

  .top-requests a {
    min-width: 220px;
  }

  .catalog-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-card {
    padding: 14px;
  }

  .rail-card strong {
    font-size: 1.28rem;
  }

  .rail-card p {
    display: none;
  }

  .rail-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    min-height: auto;
  }

  .floating-checkout {
    left: 20px;
    right: 20px;
    bottom: 14px;
    width: auto;
  }

  .vial-media {
    min-height: 268px;
  }

  .vial-object {
    height: 232px;
  }

  .vial-body {
    height: 170px;
  }
}
