:root {
  color-scheme: light;
  --ink: #11151c;
  --muted: #66707c;
  --line: #dfe5e8;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #0b9187;
  --teal-dark: #06645f;
  --copper: #bf6132;
  --copper-soft: #f4d7c8;
  --green: #8aa327;
  --shadow: 0 18px 45px rgba(20, 27, 35, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

@keyframes catalogArrive {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.992);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toolbarGlow {
  0% {
    box-shadow: 0 10px 24px rgba(20, 27, 35, 0.08);
  }
  45% {
    box-shadow: 0 18px 40px rgba(11, 145, 135, 0.22);
    border-color: rgba(11, 145, 135, 0.34);
  }
  100% {
    box-shadow: 0 10px 24px rgba(20, 27, 35, 0.08);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.catalog-shell.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(17, 21, 28, 0.08);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nav-links a,
.header-action,
.auth-button,
.text-button,
.ghost-button,
.primary-button {
  min-height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.header-action:hover,
.auth-button:hover,
.ghost-button:hover,
.primary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.nav-links a {
  display: inline-flex;
  padding: 0 12px;
  color: #343c45;
}

.nav-links a:hover {
  background: rgba(11, 145, 135, 0.1);
  color: var(--teal-dark);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-action,
.primary-button {
  display: inline-flex;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.header-action {
  padding: 0 16px;
}

.auth-button {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 14px;
  color: #26313b;
  font-weight: 800;
}

.auth-button.is-authenticated {
  border-color: rgba(11, 145, 135, 0.3);
  background: rgba(11, 145, 135, 0.1);
  color: var(--teal-dark);
}

.auth-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.primary-button {
  padding: 0 18px;
}

.header-action:hover,
.primary-button:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.ghost-button {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.44);
  padding: 0 18px;
  color: var(--white);
  font-weight: 700;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-dialog {
  width: min(440px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
}

.auth-dialog::backdrop {
  background: rgba(17, 21, 28, 0.55);
  backdrop-filter: blur(5px);
}

.auth-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 20px;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-card h2 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.05;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf1f2;
  padding: 4px;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: #44505b;
  font-weight: 800;
}

.auth-tab.is-active {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(20, 27, 35, 0.08);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 21, 28, 0.88), rgba(17, 21, 28, 0.52) 44%, rgba(17, 21, 28, 0.1) 74%),
    linear-gradient(0deg, rgba(17, 21, 28, 0.42), rgba(17, 21, 28, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(var(--max), calc(100% - 36px));
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 88px 0 92px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #76e2d7;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(640px, 100%);
  margin: 72px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding-top: 18px;
}

.hero-metrics dt {
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.quick-strip,
.catalog-section,
.request-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  transform: translateY(-44px);
  box-shadow: var(--shadow);
}

.quick-strip article {
  min-height: 190px;
  background: var(--white);
  padding: 26px;
}

.quick-strip span {
  color: var(--copper);
  font-weight: 800;
}

.quick-strip h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.quick-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: end;
  margin: 34px 0 28px;
}

.section-heading h2,
.request-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
}

.section-heading p,
.request-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters,
.quote-panel,
.request-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.filters {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 145, 135, 0.36) transparent;
}

.filters::-webkit-scrollbar {
  width: 8px;
}

.filters::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(11, 145, 135, 0.28);
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.filter-title {
  color: #37404a;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  resize: vertical;
  padding: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 145, 135, 0.14);
}

.filter-group {
  display: grid;
  gap: 10px;
}

.chip-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  max-height: 176px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 145, 135, 0.35) transparent;
}

.chip-row::-webkit-scrollbar {
  width: 7px;
}

.chip-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(11, 145, 135, 0.26);
}

.chip {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 10px;
  color: #39434d;
  scroll-snap-align: start;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover {
  transform: translateX(2px);
  border-color: rgba(11, 145, 135, 0.28);
}

.chip[aria-pressed="true"] {
  border-color: rgba(11, 145, 135, 0.35);
  background: rgba(11, 145, 135, 0.1);
  color: var(--teal-dark);
  font-weight: 800;
}

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

.catalog-toolbar,
.quote-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-toolbar {
  position: sticky;
  top: 76px;
  z-index: 12;
  min-height: 54px;
  margin-bottom: 12px;
  border: 1px solid rgba(223, 229, 232, 0.9);
  border-radius: var(--radius);
  background: rgba(247, 248, 246, 0.92);
  padding: 10px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(20, 27, 35, 0.08);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.catalog-section.is-catalog-arriving .catalog-shell {
  animation: catalogArrive 720ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.catalog-section.is-catalog-arriving .catalog-toolbar {
  animation: toolbarGlow 820ms ease both;
}

.catalog-search {
  flex: 1 1 360px;
  max-width: 560px;
}

.catalog-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.catalog-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.text-button {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-button:hover {
  color: var(--copper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.2, 0.82, 0.2, 1), box-shadow 180ms ease, border-color 180ms ease;
}

.product-card-enter {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.product-card-enter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(11, 145, 135, 0.26);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  aspect-ratio: 1.12;
  background: #edf1f2;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.82);
  color: var(--white);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-title {
  margin: 12px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f1;
  padding-bottom: 8px;
  color: #38414b;
  font-size: 14px;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span {
  border-radius: var(--radius);
  background: #eef4f3;
  padding: 6px 8px;
  color: #315b58;
  font-size: 12px;
  font-weight: 800;
}

.card-action {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card-action:hover {
  border-color: var(--copper);
  background: var(--copper);
  transform: translateY(-1px);
}

.card-action.is-added {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.request-section {
  padding: 82px 0 58px;
}

.request-copy {
  display: grid;
  max-width: 780px;
  gap: 14px;
  margin-bottom: 26px;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.quote-panel,
.request-form {
  padding: 18px;
}

.quote-panel h3 {
  margin: 0;
  font-size: 22px;
}

.quote-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quote-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #edf0f1;
  border-radius: var(--radius);
  padding: 12px;
}

.quote-item strong {
  display: block;
  line-height: 1.25;
}

.quote-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quote-controls {
  display: grid;
  grid-template-columns: 34px minmax(28px, auto) 34px 34px;
  gap: 6px;
  align-items: center;
}

.quote-step,
.quote-remove {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 900;
}

.quote-step {
  color: var(--teal-dark);
}

.quote-step:hover {
  border-color: rgba(11, 145, 135, 0.4);
  background: rgba(11, 145, 135, 0.08);
}

.quote-remove {
  color: var(--copper);
}

.quote-remove:hover {
  border-color: rgba(191, 97, 50, 0.4);
  background: rgba(191, 97, 50, 0.08);
}

.quote-qty {
  min-width: 28px;
  text-align: center;
  color: var(--ink);
}

.quote-empty {
  margin: 18px 0 0;
  color: var(--muted);
}

.request-form {
  display: grid;
  gap: 14px;
}

.full-width {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.floating-quote {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid rgba(11, 145, 135, 0.22);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(17, 21, 28, 0.22);
  font-weight: 900;
}

.floating-quote strong {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--teal);
  color: var(--white);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 41;
  max-width: min(420px, calc(100% - 32px));
  transform: translate(-50%, 18px);
  border: 1px solid rgba(11, 145, 135, 0.22);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 48px);
  color: var(--muted);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-action {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .auth-button {
    flex: 1;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 21, 28, 0.88), rgba(17, 21, 28, 0.54)),
      linear-gradient(0deg, rgba(17, 21, 28, 0.5), rgba(17, 21, 28, 0));
  }

  .quick-strip,
  .section-heading,
  .catalog-shell,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    top: 14px;
  }

  .quick-strip {
    transform: translateY(-28px);
  }

  .filters {
    position: static;
    max-height: 420px;
  }
}

@media (max-width: 620px) {
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: min(100% - 28px, var(--max));
    min-height: 760px;
    padding-top: 70px;
  }

  .hero-actions a,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .hero-metrics,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip,
  .catalog-section,
  .request-section {
    width: min(100% - 28px, var(--max));
  }

  .quick-strip article {
    min-height: auto;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-search {
    max-width: none;
  }

  .catalog-toolbar-actions {
    justify-content: space-between;
    margin-left: 0;
  }

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

  .quote-item {
    grid-template-columns: 1fr;
  }

  .quote-controls {
    justify-content: start;
  }

  .floating-quote {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }

  .toast {
    bottom: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-on-scroll,
  .product-card-enter {
    opacity: 1;
    transform: none;
  }
}
