:root {
  color-scheme: light;
  --ink: #17242b;
  --muted: #5f6c72;
  --line: #d9e6e8;
  --surface: #ffffff;
  --soft: #f4f9f8;
  --teal: #0f8f8a;
  --teal-dark: #08635f;
  --amber: #d98f1f;
  --coral: #c95d54;
  --navy: #12324a;
  --shadow: 0 18px 44px rgba(18, 50, 74, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 230, 232, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 143, 138, 0.95), rgba(18, 50, 74, 0.95)),
    var(--teal);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 1.02rem;
}

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

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: #33484f;
  font-size: 0.94rem;
  font-weight: 650;
  -webkit-overflow-scrolling: touch;
}

.top-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.cart-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.cart-button {
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.cart-button svg,
.icon-button svg,
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

#cartCount {
  position: absolute;
  right: 1px;
  top: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #ffffff;
  background: var(--coral);
  border: 2px solid #ffffff;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 16px;
}

.hero {
  position: relative;
  min-height: clamp(500px, 64vh, 650px);
  overflow: hidden;
  isolation: isolate;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slider-controls {
  position: absolute;
  right: clamp(16px, 4vw, 56px);
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 230, 232, 0.9);
  border-radius: 99px;
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: #829399;
  border: 0;
  border-radius: 50%;
}

.hero-dot.active {
  background: var(--teal);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 38%, rgba(255, 255, 255, 0.2) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(244, 249, 248, 0.75));
}

.hero-content {
  width: min(650px, calc(100% - 32px));
  padding: clamp(46px, 7vw, 82px) 0 50px;
  margin-left: clamp(16px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.1rem, 6.4vw, 5.45rem);
  letter-spacing: 0;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.8vw, 4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 600px;
  margin: 16px 0 0;
  color: #31474f;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.58;
}

.hero-actions,
.category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.filter-button,
.card-action,
.danger-action,
.qty-button {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action,
.secondary-action,
.card-action,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
}

.primary-action {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 143, 138, 0.22);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--teal-dark);
}

.secondary-action {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(18, 50, 74, 0.2);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--teal);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 24px 0 0;
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 230, 232, 0.9);
  border-radius: var(--radius);
}

.hero-stats dt {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band span {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 16px;
  color: #30464d;
  background: #ffffff;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 750;
}

.essentials-section {
  background: #ffffff;
}

.essentials-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1180px;
  margin: 32px auto 0;
}

.essentials-photo {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.essentials-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.essentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.essential-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 168px;
  padding: 20px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.essential-card:hover,
.essential-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 143, 138, 0.12);
}

.essential-card strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.essential-card span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(64px, 8vw, 116px) clamp(16px, 4vw, 56px);
}

.catalog-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 32px;
  margin: 0 auto 28px;
  max-width: 1180px;
}

.section-heading.compact {
  display: block;
}

.section-heading p:not(.eyebrow),
.rfq-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.category-filter {
  max-width: 1180px;
  margin: 0 auto 24px;
}

.filter-button {
  padding: 0 15px;
  color: #365057;
  background: #ffffff;
  border: 1px solid var(--line);
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 50, 74, 0.08);
}

.product-visual {
  position: relative;
  display: grid;
  height: 188px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, var(--visual-a), var(--visual-b));
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.025);
}

.product-visual svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.image-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: rgba(18, 50, 74, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.image-badge svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  color: var(--teal-dark);
  background: #e7f5f3;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
}

.product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-field input,
.auth-card input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.data-table input,
.quote-status {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.search-field input,
.auth-card input,
.admin-form input,
.admin-form select,
.data-table input,
.quote-status {
  min-height: 42px;
  padding: 0 11px;
}

.search-button {
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--navy);
  border: 0;
  border-radius: var(--radius);
  font-weight: 850;
}

.search-button:hover,
.search-button:focus-visible {
  background: var(--teal-dark);
}

.admin-form textarea {
  padding: 11px;
  resize: vertical;
}

.search-field input:focus,
.auth-card input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.data-table input:focus,
.quote-status:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 143, 138, 0.14);
}

.catalog-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px 18px;
}

.product-price {
  color: var(--navy);
  font-weight: 900;
}

.muted-pill {
  color: #4a5960;
  background: #eef3f4;
}

.tag-pill {
  color: #533000;
  background: #fff1d5;
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.price-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  align-items: start;
}

.price-list dt,
.price-list dd {
  margin: 0;
}

.price-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.price-list dd {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 850;
}

.card-action {
  min-width: 108px;
  color: #ffffff;
  background: var(--teal);
}

.card-action:hover,
.card-action:focus-visible {
  background: var(--teal-dark);
}

.danger-action {
  min-width: 92px;
  color: #ffffff;
  background: var(--coral);
}

.danger-action:hover,
.danger-action:focus-visible {
  background: #9f3f39;
}

.services-section {
  background: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 32px auto 0;
}

.service-item {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
}

.service-icon.amber {
  background: var(--amber);
}

.service-icon.coral {
  background: var(--coral);
}

.service-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.rfq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(64px, 8vw, 112px) clamp(16px, 4vw, 56px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 50, 74, 0.94), rgba(8, 99, 95, 0.9)),
    var(--navy);
}

.rfq-section h2,
.rfq-section .eyebrow {
  color: #ffffff;
}

.rfq-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rfq-form label {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
}

.rfq-form .wide,
.form-submit,
.form-note {
  grid-column: 1 / -1;
}

.rfq-form input,
.rfq-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
}

.rfq-form input {
  min-height: 46px;
  padding: 0 13px;
}

.rfq-form textarea {
  resize: vertical;
  padding: 12px 13px;
  line-height: 1.5;
}

.rfq-form input:focus,
.rfq-form textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 143, 31, 0.24);
}

.form-submit {
  border: 0;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  padding: 20px;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 40px rgba(18, 50, 74, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 1.35rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--navy);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 2px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-line strong {
  display: block;
  margin-bottom: 6px;
}

.cart-line small {
  color: var(--muted);
}

.qty-controls {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qty-button {
  width: 32px;
  min-height: 32px;
  color: var(--navy);
  background: #ffffff;
  border: 0;
}

.qty-controls span {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: var(--navy);
  background: #ffffff;
  border-inline: 1px solid var(--line);
  font-weight: 850;
}

.cart-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.cart-cta {
  width: 100%;
  margin-top: 12px;
}

.site-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 28;
}

.chat-toggle {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--navy);
  border: 0;
  border-radius: 99px;
  box-shadow: 0 16px 34px rgba(18, 50, 74, 0.26);
  font-weight: 850;
}

.chat-toggle svg,
.chat-form button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(380px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 96px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(18, 50, 74, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  color: #ffffff;
  background: var(--navy);
}

.chat-head strong,
.chat-head small {
  display: block;
}

.chat-head small {
  margin-top: 3px;
  color: #d6e5e9;
}

.chat-head .icon-button {
  color: #ffffff;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  overflow: auto;
  padding: 14px;
  background: var(--soft);
}

.chat-message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: var(--radius);
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.92rem;
}

.bot-message {
  justify-self: start;
  color: #263a42;
  background: #ffffff;
  border: 1px solid var(--line);
}

.user-message {
  justify-self: end;
  color: #ffffff;
  background: var(--teal);
}

.chat-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}

.chat-prompts::-webkit-scrollbar {
  display: none;
}

.chat-prompts button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.chat-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 143, 138, 0.14);
}

.chat-form button {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border: 0;
  border-radius: var(--radius);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 40px clamp(16px, 4vw, 56px);
  color: #d9e6e8;
  background: #111e25;
}

.footer-brand .brand-mark {
  background: var(--teal);
}

.site-footer p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #aebdc2;
  line-height: 1.6;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.auth-page,
.dashboard-page {
  min-height: calc(100vh - 72px);
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px);
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.auth-panel,
.dashboard-page {
  max-width: 1180px;
  margin: 0 auto;
}

.auth-page h1,
.dashboard-page h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
}

.auth-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.auth-intro-image {
  width: 100%;
  height: 100%;
  min-height: 210px;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(18, 50, 74, 0.1);
}

.auth-panel > div:first-child p:not(.eyebrow),
.dashboard-heading p,
.panel-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 20px;
  margin-top: 28px;
  align-items: start;
}

.auth-card,
.panel,
.metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 50, 74, 0.08);
}

.auth-card {
  display: grid;
  gap: 15px;
  align-content: start;
  padding: clamp(18px, 4vw, 28px);
}

.auth-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-card {
  position: sticky;
  top: 104px;
}

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

.register-card .auth-card-head,
.register-card .wide-field,
.register-card .form-submit,
.register-card .form-note {
  grid-column: 1 / -1;
}

.auth-card h2,
.panel h2 {
  max-width: none;
  font-size: 1.4rem;
}

.auth-card label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.dark-note {
  color: var(--muted);
}

.dashboard-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.metric-card strong {
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.panel {
  margin-bottom: 24px;
  padding: clamp(18px, 4vw, 28px);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading p {
  max-width: 520px;
  margin: 0;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-form textarea,
.admin-form .form-submit,
.admin-form .form-note {
  grid-column: 1 / -1;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--navy);
  background: var(--soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.quote-list {
  display: grid;
  gap: 14px;
}

.quote-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-card ul {
  margin: 0;
  padding-left: 20px;
  color: #30464d;
}

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

.quote-card small {
  color: var(--muted);
}

.quote-top {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 180px);
  gap: 14px;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-left: 8px;
  padding: 4px 9px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 850;
}

address {
  display: grid;
  gap: 8px;
  min-width: 220px;
  font-style: normal;
}

address strong {
  color: #ffffff;
}

address a,
address span {
  color: #cdd9dd;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-top: 2px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-slide {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.78) 56%, rgba(255, 255, 255, 0.3) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  }

  .section-heading,
  .essentials-layout,
  .auth-intro,
  .rfq-section {
    grid-template-columns: 1fr;
  }

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

  .login-card {
    position: static;
  }

  .auth-intro-image {
    max-height: 240px;
  }

  .product-grid,
  .service-grid,
  .register-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 8px 10px;
    min-height: 0;
    padding: 8px 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    font-size: 0.72rem;
    white-space: normal;
  }

  .top-nav {
    gap: 8px;
    margin-inline: -12px;
    padding: 0 12px 4px;
    scrollbar-width: none;
    font-size: 0.9rem;
  }

  .top-nav::-webkit-scrollbar,
  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    background: #f5faf9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .cart-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 46px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .hero-stats div {
    padding: 10px 8px;
  }

  .hero-stats dt {
    font-size: 1.08rem;
  }

  .hero-stats dd {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .trust-band span {
    min-height: 58px;
    padding: 12px 10px;
    font-size: 0.84rem;
  }

  .section {
    padding: 46px 14px;
  }

  .section-heading {
    gap: 16px;
    margin-bottom: 20px;
  }

  .section-heading p:not(.eyebrow),
  .rfq-copy p {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .category-filter {
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -14px;
    padding: 0 14px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 13px;
    scroll-snap-align: start;
  }

  .catalog-tools {
    gap: 10px;
    margin-bottom: 16px;
  }

  .search-field {
    width: 100%;
  }

  .search-control {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
  }

  .essentials-layout {
    gap: 14px;
    margin-top: 22px;
  }

  .essentials-photo img {
    min-height: 230px;
  }

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

  .essential-card {
    min-height: 0;
    padding: 16px;
  }

  .search-field input,
  .auth-card input,
  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .data-table input,
  .quote-status,
  .rfq-form input,
  .rfq-form textarea,
  .chat-form input {
    font-size: 16px;
  }

  .product-grid,
  .service-grid,
  .auth-grid,
  .register-card,
  .metric-grid,
  .admin-form,
  .trust-band,
  .rfq-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 14px;
  }

  .dashboard-heading,
  .panel-heading,
  .quote-top {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .product-visual {
    height: 166px;
  }

  .product-body {
    padding: 15px;
  }

  .product-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .price-list {
    gap: 6px;
  }

  .price-list div {
    grid-template-columns: 72px 1fr;
  }

  .product-foot {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 15px 15px;
  }

  .card-action,
  .danger-action {
    width: 100%;
  }

  .rfq-section {
    padding: 46px 14px;
  }

  .rfq-form {
    gap: 13px;
    padding: 16px;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

  .qty-controls {
    justify-self: start;
  }

  .cart-panel {
    padding: 16px;
  }

  .site-chat {
    right: 12px;
    bottom: 12px;
  }

  .chat-toggle {
    min-height: 46px;
    padding: 0 14px;
  }

  .chat-panel {
    right: 0;
    bottom: 58px;
    width: calc(100vw - 24px);
    max-height: min(560px, calc(100dvh - 82px));
  }

  .chat-messages {
    min-height: 190px;
  }

  .site-footer {
    gap: 22px;
    padding: 32px 14px;
  }

  address {
    min-width: 0;
  }
}

@media (max-width: 340px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
