:root {
  color-scheme: light;
  --b2b-green: #397e58;
  --b2b-green-dark: #347250;
  --b2b-black: #151515;
  --b2b-white: #ffffff;
  --b2b-surface: #f2f2f0;
  --b2b-surface-strong: #e5e5df;
  --b2b-muted: #686f68;
  --b2b-border: rgba(21, 21, 21, 0.12);
  --b2b-shadow: 0 26px 70px rgba(21, 21, 21, 0.12);
  --b2b-radius: 30px;
  --b2b-radius-sm: 18px;
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--b2b-surface);
  color: var(--b2b-black);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(180deg, #f8f8f4 0%, var(--b2b-surface) 48%, #e8e8e0 100%);
  color: var(--b2b-black);
}

.brand,
.hero h1,
.section-title h1,
.section-title h2 {
  font-weight: 800;
}

.button,
.nav-link,
.eyebrow,
.metric-value,
.quick-card strong,
.login-card h2,
.panel h3,
.summary-card h3,
.profile-card h3,
.product-title,
.price,
.order-card h3,
.status-line strong {
  font-weight: 700;
}

.hero-lead,
.metric-label,
.trust-card span,
.section-title p,
.quick-card span,
.status-line span,
.field span,
.field input,
.field select,
.field textarea,
.chip,
.sku,
.tier,
.cart-line strong,
.cart-line span,
.threshold,
.empty-state,
.order-card p,
.profile-card p,
.summary-card p,
.panel p,
.footer-inner {
  font-weight: 500;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(57, 126, 88, 0.42);
  outline-offset: 4px;
}

.button:focus-visible,
.nav-link:focus-visible,
.chip:focus-visible,
.product-title:focus-visible,
.qty-control button:focus-visible {
  outline-color: var(--b2b-green);
  box-shadow: 0 0 0 4px rgba(57, 126, 88, 0.16);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(242, 242, 240, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: var(--brand-logo-size, 42px);
  height: var(--brand-logo-size, 42px);
  overflow: hidden;
}

.brand img {
  display: block;
  max-height: var(--brand-logo-size, 42px);
  max-width: calc(var(--brand-logo-size, 42px) * 3.6);
  object-fit: contain;
}

.brand-logo-rounded .brand-logo-frame,
.brand-logo-circle .brand-logo-frame {
  width: var(--brand-logo-size, 42px);
  padding: 7px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(21, 21, 21, 0.08);
}

.brand-logo-rounded .brand-logo-frame {
  border-radius: 18px;
}

.brand-logo-circle .brand-logo-frame {
  border-radius: 999px;
}

.brand-logo-rounded .brand-logo-frame img,
.brand-logo-circle .brand-logo-frame img {
  max-width: calc(var(--brand-logo-size, 42px) - 14px);
  max-height: calc(var(--brand-logo-size, 42px) - 14px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-link {
  border-radius: 999px;
  padding: 11px 16px;
  color: rgba(21, 21, 21, 0.7);
  font-size: 13px;
  font-weight: 800;
  transition: 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--b2b-black);
  color: var(--b2b-white);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--b2b-black);
  color: var(--b2b-white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--b2b-green);
}

.button.primary:hover {
  background: var(--b2b-green-dark);
}

.button.ghost {
  border: 1px solid rgba(21, 21, 21, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--b2b-black);
}

.button.full {
  width: 100%;
}

.cart-button {
  position: relative;
}

.cart-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--b2b-white);
  color: var(--b2b-black);
  font-size: 11px;
  font-weight: 900;
}

.page {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 42px;
  background:
    radial-gradient(circle at 78% 18%, rgba(57, 126, 88, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 242, 240, 0.92));
  color: var(--b2b-black);
  box-shadow: var(--b2b-shadow);
}

.hero-main {
  padding: clamp(30px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--b2b-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.hero h1,
.section-title h1,
.section-title h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(42px, 6vw, 94px);
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--b2b-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.55;
}

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

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

.metric-card {
  min-height: 112px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.metric-value {
  display: block;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--b2b-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-side {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(160deg, rgba(57, 126, 88, 0.92), rgba(52, 114, 80, 0.86)),
    var(--b2b-green);
  color: var(--b2b-black);
}

.hero-side::before {
  position: absolute;
  inset: auto 28px 36px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

.login-card,
.panel,
.product-card,
.summary-card,
.order-card,
.profile-card {
  border: 1px solid var(--b2b-border);
  border-radius: var(--b2b-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 60px rgba(21, 21, 21, 0.08);
}

.login-card {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.hero-side .trust-card {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.login-card h2,
.panel h3,
.summary-card h3,
.profile-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.form-error {
  margin-top: 16px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(190, 18, 60, 0.1);
  color: #9f1239;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.form-success {
  margin-top: 16px;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(57, 126, 88, 0.12);
  color: var(--b2b-green-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  color: var(--b2b-muted);
  font-size: 14px;
  line-height: 1.5;
}

.check-row input {
  margin-top: 3px;
  accent-color: var(--b2b-green);
}

.vat-hint {
  display: block;
  margin-top: 2px;
  color: var(--b2b-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reason-text {
  margin-top: 6px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

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

.field span {
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(21, 21, 21, 0.15);
  border-radius: 17px;
  padding: 14px 15px;
  background: var(--b2b-white);
  color: var(--b2b-black);
  font-weight: 700;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.trust-card {
  border-radius: 24px;
  padding: 22px;
  background: var(--b2b-white);
}

.trust-card strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.trust-card span {
  display: block;
  margin-top: 9px;
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.public-landing {
  margin-top: 42px;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.public-grid-products {
  margin-top: 18px;
}

.public-card,
.public-note {
  border: 1px solid rgba(42, 82, 57, 0.12);
  border-radius: 28px;
  background: var(--b2b-white);
  padding: 24px;
}

.public-card h3 {
  margin: 10px 0;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.public-card p,
.public-note span {
  color: var(--b2b-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.public-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.public-note strong {
  font-size: 20px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 60px 0 24px;
}

.section-title h1,
.section-title h2 {
  font-size: clamp(44px, 6vw, 86px);
}

.section-title p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--b2b-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

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

.quick-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 30px;
  padding: 26px;
  background: var(--b2b-white);
  box-shadow: 0 16px 50px rgba(21, 21, 21, 0.08);
}

.quick-card.dark {
  background: var(--b2b-black);
  color: var(--b2b-white);
}

.quick-card.green {
  background: var(--b2b-green);
  color: var(--b2b-black);
}

.quick-card strong {
  max-width: 220px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.quick-card span {
  color: currentColor;
  opacity: 0.68;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.customer-strip {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 22px;
  padding: 16px;
  background: var(--b2b-surface);
}

.status-line span {
  color: var(--b2b-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-line strong {
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

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

.profile-menu {
  position: relative;
}

.profile-menu summary {
  cursor: pointer;
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  display: grid;
  min-width: 220px;
  gap: 6px;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(27, 29, 25, 0.16);
}

.profile-menu:not([open]) .profile-menu-panel {
  display: none;
}

.profile-menu-panel a {
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--b2b-black);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.profile-menu-panel a:hover,
.profile-menu-panel a:focus-visible {
  background: rgba(57, 126, 88, 0.12);
  color: var(--b2b-green-dark);
}

.profile-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.profile-page-actions .button {
  min-height: 40px;
  padding: 10px 18px;
}

.filters {
  position: sticky;
  top: 102px;
  padding: 18px;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.price-filter input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--b2b-white);
}

.chip {
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--b2b-white);
  color: var(--b2b-black);
  font-size: 12px;
  font-weight: 900;
}

.chip.is-active {
  border-color: var(--b2b-black);
  background: var(--b2b-black);
  color: var(--b2b-white);
}

.search-suggestions {
  display: grid;
  gap: 6px;
  margin: -10px 0 16px;
}

.search-suggestion {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 14px;
  background: #fff;
  padding: 9px 10px;
  text-decoration: none;
  color: var(--b2b-black);
}

.search-suggestion span,
.search-suggestion small {
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(57, 126, 88, 0.18), transparent 60%),
    var(--b2b-surface-strong);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-detail-media-card {
  align-self: start;
  position: sticky;
  top: 104px;
  width: 100%;
  max-width: min(860px, calc(100vh - 90px));
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-detail-media-card .product-media {
  min-height: auto;
  max-height: calc(100vh - 90px);
  border-radius: inherit;
  background: transparent;
}

.product-detail-media-card .product-media img {
  width: 86%;
  height: 86%;
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  transform: scale(1.1);
}

.product-detail-media-card .availability {
  z-index: 2;
  left: 7%;
  top: 7%;
}

.product-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--b2b-black);
  color: var(--b2b-white);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.availability {
  position: absolute;
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--b2b-availability-available, var(--b2b-green));
  color: var(--b2b-white);
  font-size: 11px;
  font-weight: 900;
}

.availability.limited {
  background: var(--b2b-availability-limited, #c58d2d);
}

.availability.request,
.availability.on_request {
  background: var(--b2b-availability-on-request, var(--b2b-black));
}

.availability.out_of_stock {
  background: var(--b2b-availability-out-of-stock, #6b7280);
}

.product-body {
  padding: 18px;
}

.sku {
  color: var(--b2b-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-title {
  min-height: 52px;
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.product-tech-sheet {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(18px, 3vw, 42px);
  min-height: min(72vh, 680px);
  padding: clamp(26px, 4vw, 58px);
  border: 1px solid rgba(42, 82, 57, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.98) 0 28%, transparent 48%),
    linear-gradient(145deg, #f5f6f3 0%, #eceee9 100%);
  box-shadow: 0 28px 90px rgba(21, 21, 21, 0.08);
  overflow: hidden;
}

.tech-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.tech-title {
  margin: 8px 0 0;
  color: var(--b2b-black);
  font-size: clamp(28px, 3.7vw, 58px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-transform: uppercase;
}

.tech-specs {
  display: grid;
  gap: 10px;
  max-width: 290px;
}

.tech-spec-row {
  display: grid;
  gap: 2px;
}

.tech-spec-row span {
  color: var(--b2b-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tech-spec-row strong {
  color: var(--b2b-black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(224, 91, 55, 0.28);
  border-radius: 999px;
  color: #d45b38;
  font-size: 12px;
  font-weight: 900;
}

.tech-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.tech-main-image {
  width: min(100%, 680px);
  height: min(62vh, 560px);
  object-fit: contain;
  filter: drop-shadow(0 34px 34px rgba(21, 21, 21, 0.13));
}

.tech-inset {
  position: absolute;
  right: 2%;
  bottom: 7%;
  width: clamp(130px, 18vw, 230px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 2px solid #d45b38;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(21, 21, 21, 0.12);
}

.tech-inset img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.tech-media .availability {
  left: 0;
  top: 0;
  z-index: 2;
}

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

.product-detail-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 16px 0;
  font-size: clamp(26px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.product-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.product-label {
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.product-label.blue { background: #eff6ff; color: #1d4ed8; }
.product-label.emerald { background: #ecfdf5; color: #047857; }
.product-label.amber { background: #fffbeb; color: #b45309; }
.product-label.violet { background: #f5f3ff; color: #6d28d9; }
.product-label.rose { background: #fff1f2; color: #be123c; }

.price {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.price-stack {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.price-stack span:last-child {
  color: var(--b2b-green-dark);
  font-size: 18px;
}

.tier {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(57, 126, 88, 0.12);
  color: var(--b2b-green-dark);
  font-size: 11px;
  font-weight: 900;
}

.cart-panel {
  position: sticky;
  top: 102px;
  padding: 20px;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cart-actions .button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 11px;
}

.cart-extra-panel {
  margin-top: 14px;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.cart-extra-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px 10px 16px;
  cursor: pointer;
  list-style: none;
}

.cart-extra-panel summary::-webkit-details-marker {
  display: none;
}

.cart-extra-panel summary span {
  color: var(--b2b-black);
  font-size: 14px;
  font-weight: 900;
}

.cart-extra-panel summary strong {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--b2b-black);
  color: var(--b2b-white);
  font-size: 11px;
  font-weight: 900;
}

.cart-extra-panel[open] summary strong {
  background: var(--b2b-green);
}

.cart-extra-content {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(27, 29, 25, 0.08);
  padding: 14px;
}

.profile-facts {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.profile-facts span {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--b2b-black);
  font-size: 13px;
  font-weight: 800;
}

.profile-facts strong {
  color: var(--b2b-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-contact-list {
  display: grid;
  gap: 12px;
}

.company-contact-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr 0.9fr 1.1fr 120px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(42, 82, 57, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.section-title.compact {
  margin-top: 0;
}

.cart-lines {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-radius: 18px;
  padding: 12px;
  background: var(--b2b-surface);
}

.cart-line strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.cart-line span {
  color: var(--b2b-muted);
  font-size: 12px;
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.related-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(42, 82, 57, 0.12);
  border-radius: 18px;
  background: rgba(57, 126, 88, 0.08);
  color: inherit;
  text-decoration: none;
}

.related-card span {
  color: var(--b2b-muted);
  font-size: 13px;
}

.related-card .price {
  color: var(--b2b-green);
  font-size: 16px;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}

.media-thumb,
.media-file {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(42, 82, 57, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
}

.media-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.media-thumb span,
.media-file span {
  color: var(--b2b-muted);
  font-size: 12px;
  font-weight: 800;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.doc-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--b2b-black);
  color: var(--b2b-white);
  font-weight: 900;
}

.product-cart-quick {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.product-cart-quick button,
.product-cart-quick input {
  min-height: 42px;
  border: 1px solid var(--b2b-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--b2b-black);
  font-weight: 900;
  text-align: center;
}

.product-cart-quick button {
  background: var(--tribe-tone, var(--b2b-green));
  color: var(--b2b-white);
}

.product-cart-quick input {
  width: 100%;
  padding: 0 10px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--b2b-border);
  padding-top: 18px;
}

.cart-total span {
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 900;
}

.cart-total strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.threshold {
  border-radius: 18px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(57, 126, 88, 0.12);
  color: var(--b2b-green-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.empty-state {
  border-radius: 22px;
  padding: 24px;
  background: var(--b2b-surface);
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-layout,
.profile-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.panel,
.summary-card,
.profile-card,
.order-card {
  padding: 24px;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.order-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.order-card p,
.profile-card p,
.summary-card p,
.panel p {
  color: var(--b2b-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.status-badge {
  --status-color: var(--b2b-green-dark);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(57, 126, 88, 0.12);
  background: color-mix(in srgb, var(--status-color) 12%, white);
  color: var(--status-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge-icon {
  font-size: 13px;
  line-height: 1;
}

.footer {
  border-top: 1px solid var(--b2b-border);
  padding: 34px 0 48px;
}

.footer-inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mobile-cart-bar {
  display: none;
}

@media (max-width: 1180px) {
  .hero,
  .dashboard-grid,
  .catalog-layout,
  .checkout-layout,
  .profile-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .filters,
  .cart-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
  }

  .topbar-inner,
  .page,
  .footer-inner {
    width: min(100% - 24px, 1440px);
  }

  .page {
    padding-top: 22px;
  }

  .topbar-inner {
    min-height: 72px;
  }

  .brand {
    font-size: 28px;
  }

  .nav {
    display: none;
  }

  .top-actions .button.ghost {
    display: none;
  }

  .hero {
    min-height: 0;
    border-radius: 30px;
  }

  .hero-main,
  .hero-side {
    padding: 26px;
  }

  .hero h1,
  .section-title h1,
  .section-title h2 {
    font-size: clamp(32px, 11vw, 52px);
    line-height: 0.98;
  }

  .hero-meta,
  .trust-strip,
  .quick-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: block;
  }

  .catalog-layout {
    padding-bottom: 92px;
  }

  .filters,
  .panel,
  .summary-card,
  .profile-card,
  .order-card {
    border-radius: 24px;
    padding: 18px;
  }

  .filter-group,
  .chip-row,
  .cart-actions,
  .doc-actions,
  .hero-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar,
  .chip-row::-webkit-scrollbar,
  .cart-actions::-webkit-scrollbar,
  .doc-actions::-webkit-scrollbar,
  .hero-actions::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    border-radius: 24px;
  }

  .product-media img {
    padding: 18px;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    min-height: 0;
    font-size: 16px;
    line-height: 1.15;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .price {
    font-size: 20px;
  }

  .product-detail-media-card {
    position: static;
    width: min(100%, 360px);
    max-width: 360px;
  }

  .product-detail-media-card .product-media {
    max-height: min(58vh, 360px);
  }

  .product-detail-media-card .product-media img {
    width: 82%;
    height: 82%;
    padding: 0;
    transform: scale(1.04);
  }

  .product-detail-title {
    display: block;
    overflow: visible;
    font-size: clamp(22px, 7vw, 32px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    -webkit-line-clamp: unset;
  }

  .checkout-layout,
  .profile-layout,
  .legal-layout {
    gap: 12px;
  }

  .form-grid,
  .quick-grid,
  .profile-facts,
  .company-contact-row,
  .related-grid,
  .public-grid {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .cart-line,
  .status-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-line .button,
  .doc-actions .button,
  .order-card .button {
    width: 100%;
  }

  .cart-panel {
    display: none;
  }

  .mobile-cart-bar {
    position: fixed;
    z-index: 40;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 999px;
    padding: 10px;
    background: var(--b2b-black);
    color: var(--b2b-white);
    box-shadow: var(--b2b-shadow);
  }

  .mobile-cart-bar strong {
    padding-left: 12px;
    font-size: 13px;
    font-weight: 900;
  }

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

  .order-card h3 {
    overflow-wrap: anywhere;
    font-size: 18px;
    letter-spacing: -0.03em;
  }

  .status-badge {
    justify-self: start;
  }

  .footer-inner,
  .public-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar-inner,
  .page,
  .footer-inner {
    width: min(100% - 18px, 1440px);
  }

  .brand {
    font-size: 22px;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .button,
  .chip,
  .nav-link {
    min-height: 42px;
    padding-inline: 14px;
  }

  .hero-main,
  .hero-side,
  .login-card,
  .quick-card {
    border-radius: 24px;
    padding: 20px;
  }

  .hero h1,
  .section-title h1,
  .section-title h2 {
    font-size: clamp(28px, 13vw, 44px);
  }

  .section-title {
    margin: 34px 0 16px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-detail-media-card {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .product-detail-media-card .product-media {
    max-height: min(52vh, 300px);
  }

  .product-detail-title {
    font-size: clamp(20px, 7.8vw, 28px);
  }

  .mobile-cart-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 22px;
  }
}

/* Buyer portal UX hardening 2026 */
:root {
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-body: 14px;
  --font-size-title: 18px;
  --line-height-body: 1.45;
}

body { font-size: var(--font-size-body); }
.topbar-inner { min-height: 68px; }
.brand { font-size: 28px; }
.nav-link, .button { font-size: 13px; font-weight: 700; }
.section-title h1, .section-title h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.04em; line-height: 1; }
.section-title p { font-size: 14px; font-weight: 500; }
.panel h3, .summary-card h3, .profile-card h3 { font-size: 20px; letter-spacing: -0.03em; }
.field span, .profile-facts strong { font-weight: 700; letter-spacing: 0.04em; }

.site-catalog-menu { position: relative; }
.site-catalog-menu > summary { cursor: pointer; list-style: none; }
.site-catalog-menu > summary::-webkit-details-marker { display: none; }
.site-catalog-panel {
  position: fixed;
  z-index: 80;
  top: 74px;
  left: 50%;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid var(--b2b-border);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(21,21,21,.2);
}
.site-catalog-menu:not([open]) .site-catalog-panel { display: none; }
.catalog-mega-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 16px; }
.catalog-mega-roots { display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--b2b-border); padding-right: 14px; }
.catalog-mega-button { justify-content: space-between; width: 100%; max-width: none; min-height: 44px; border: 0; border-radius: 12px; padding: 9px 12px; text-align: left; }
.catalog-mega-panel { position: static; display: block; border: 0; padding: 0; box-shadow: none; }
.catalog-mega-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.catalog-mega-panel-head strong { font-size: 18px; }
.catalog-mega-panel-head button { min-height: 44px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--b2b-green); color: white; font-weight: 700; }
.catalog-mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.catalog-mega-subitem { min-height: 44px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.site-menu-status { display: block; padding: 14px; color: var(--b2b-muted); }
.profile-menu-panel button { min-height: 42px; border: 0; border-radius: 999px; padding: 10px 14px; background: transparent; text-align: left; font: inherit; font-weight: 700; }
.profile-menu-panel button:hover { background: rgba(57,126,88,.12); }

.catalog-toolbar { display: grid; grid-template-columns: minmax(210px,.6fr) minmax(320px,1fr) auto; gap: 16px; align-items: end; margin-bottom: 18px; }
.catalog-toolbar h1 { margin: 5px 0 2px; font-size: clamp(28px,4vw,42px); letter-spacing: -.04em; }
.catalog-toolbar p { margin: 0; color: var(--b2b-muted); }
.catalog-search input, .catalog-toolbar select { width: 100%; min-height: 46px; border: 1px solid var(--b2b-border); border-radius: 16px; padding: 10px 14px; background: white; font: inherit; }
.catalog-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.catalog-toolbar-actions .button { min-height: 46px; padding: 10px 14px; }
.catalog-toolbar-actions .button[aria-pressed="true"] { border-color: var(--b2b-green); background: var(--b2b-green); color: white; }
.active-filters { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin: 0 0 14px; }
.active-filters span { flex: 0 0 auto; border-radius: 999px; padding: 8px 12px; background: rgba(57,126,88,.12); font-size: 12px; font-weight: 600; }
.active-filters button { flex: 0 0 auto; border: 0; background: transparent; color: var(--b2b-green-dark); font-weight: 700; }
.chip small { opacity: .65; font-size: 10px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; }

.product-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.product-grid.is-list .product-card { display: grid; grid-template-columns: 180px minmax(0,1fr); border: 1px solid var(--b2b-border); border-radius: 22px; }
.product-grid.is-list .product-media { align-self: stretch; min-height: 200px; aspect-ratio: auto; }
.product-grid.is-list .product-media img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); max-width: calc(100% - 36px); max-height: calc(100% - 36px); object-fit: contain; object-position: center; }
.product-grid.is-list .product-body { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 8px 18px; padding: 18px; align-content: center; }
.product-grid.is-list .product-title, .product-grid.is-list .sku, .product-grid.is-list .product-labels, .product-grid.is-list .product-order-rule, .product-grid.is-list .threshold { grid-column: 1; }
.product-grid.is-list .product-meta, .product-grid.is-list .favorite-button, .product-grid.is-list .product-cart-quick, .product-grid.is-list .product-body > .button.primary { grid-column: 2; }
.product-grid.is-list .product-meta { grid-row: 1 / span 2; align-self: start; }
.product-grid.is-list .favorite-button { position: absolute; right: 16px; top: 72px; }
.product-card { position: relative; }
.product-media { aspect-ratio: 4/3; }
.product-title { font-size: 17px; line-height: 1.18; letter-spacing: -.025em; text-transform: none; }
.product-order-rule { margin: 4px 0 12px; color: var(--b2b-muted); font-size: 12px; line-height: 1.45; }
.favorite-button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--b2b-border); border-radius: 999px; background: white; color: var(--b2b-green-dark); font-size: 20px; }
.product-body > .favorite-button { position: absolute; top: 12px; right: 12px; z-index: 3; }
.price { font-size: 19px; }
.product-moment, .circle-facts { display: none; }

.profile-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-radius: 30px; padding: 30px; background: linear-gradient(135deg,var(--b2b-black),#29352e); color: white; }
.profile-hero h1 { margin: 8px 0; font-size: clamp(30px,5vw,54px); line-height: 1; letter-spacing: -.05em; }
.profile-hero p { margin: 0; opacity: .72; }
.profile-hero .profile-page-actions { margin: 0; }
.profile-layout { grid-template-columns: minmax(0,1fr) minmax(300px,.7fr); }
.profile-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.company-contact-row { grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--b2b-border); border-radius: 20px; background: rgba(255,255,255,.58); }

@media (max-width: 1180px) {
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar-actions { grid-column: 1 / -1; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filter-drawer { position: static; }
  .catalog-filter-summary { display: grid; }
  .catalog-filter-drawer:not([open]) .filters-body { display: none; }
  .product-grid.is-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-card { min-height: 140px; }
}

@media (max-width: 820px) {
  .topbar-inner { min-height: 64px; }
  .brand { font-size: 24px; }
  .nav { display: block; border: 0; padding: 0; background: transparent; }
  .nav > .nav-link { display: none; }
  .site-catalog-menu > summary { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 12px; }
  .site-catalog-panel { top: 70px; width: calc(100vw - 24px); max-height: calc(100vh - 92px); }
  .catalog-mega-layout { grid-template-columns: 1fr; }
  .catalog-mega-roots { border-right: 0; border-bottom: 1px solid var(--b2b-border); padding: 0 0 12px; }
  .catalog-mega-panel { display: none; }
  .top-actions .profile-menu { display: none; }
  .catalog-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .catalog-toolbar-actions { grid-column: auto; overflow-x: auto; }
  .catalog-toolbar-actions label { min-width: 180px; }
  .catalog-search input, .catalog-toolbar select { font-size: 16px; }
  .product-grid.is-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid.is-list .product-card { grid-template-columns: 112px minmax(0,1fr); }
  .product-grid.is-list .product-body { display: flex; padding: 14px; }
  .product-grid.is-list .product-media { min-height: 180px; }
  .product-grid.is-list .product-body > .favorite-button { top: 8px; right: 8px; }
  .profile-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .profile-layout, .profile-facts { grid-template-columns: 1fr; }
  .company-contact-row { grid-template-columns: 1fr 1fr; }
  .buyer-dashboard .section-title { display: grid; }
}

@media (max-width: 620px) {
  .product-grid.is-grid { grid-template-columns: 1fr; }
  .product-grid.is-list .product-card { grid-template-columns: 96px minmax(0,1fr); }
  .product-grid.is-list .product-media { min-height: 200px; }
  .product-grid.is-list .availability { max-width: 88px; white-space: normal; }
  .quick-grid, .company-contact-row { grid-template-columns: 1fr; }
  .profile-hero .profile-page-actions { width: 100%; }
  .profile-hero .profile-page-actions .button { flex: 1; }
}

.brand,
.hero h1,
.section-title h1,
.section-title h2 {
  font-weight: 800;
}

.button,
.nav-link,
.eyebrow,
.metric-value,
.quick-card strong,
.login-card h2,
.panel h3,
.summary-card h3,
.profile-card h3,
.product-title,
.price,
.order-card h3,
.status-line strong,
.product-mark,
.availability,
.cart-total strong {
  font-weight: 700;
}

.hero-lead,
.metric-label,
.trust-card span,
.section-title p,
.quick-card span,
.status-line span,
.field span,
.field input,
.field select,
.field textarea,
.chip,
.sku,
.tier,
.cart-line strong,
.cart-line span,
.threshold,
.empty-state,
.order-card p,
.profile-card p,
.summary-card p,
.panel p,
.footer-inner,
.trust-card strong,
.cart-total span {
  font-weight: 500;
}

/* Візуальний шар каталогу TRiBE */
:root {
  --tribe-olive: #59613a;
  --tribe-rust: #b7663d;
  --tribe-terracotta: #8f3f2f;
  --tribe-teal: #244f52;
  --tribe-plum: #6b4a5b;
  --tribe-sand: #eee8dc;
  --tribe-mist: #f7f5ef;
  --tribe-ink: #1b1d19;
}

body {
  background:
    radial-gradient(circle at 10% 8%, rgba(89, 97, 58, 0.14), transparent 22rem),
    radial-gradient(circle at 92% 28%, rgba(183, 102, 61, 0.12), transparent 20rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--tribe-mist) 48%, #ece7dc 100%);
}

.hero,
.catalog-opener,
.product-tech-sheet {
  position: relative;
  isolation: isolate;
}

.hero::after,
.catalog-opener::after,
.product-tech-sheet::after {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 34%;
  background:
    radial-gradient(80% 42% at 18% 100%, rgba(89, 97, 58, 0.13), transparent 70%),
    radial-gradient(70% 36% at 48% 100%, rgba(36, 79, 82, 0.08), transparent 68%),
    radial-gradient(60% 34% at 76% 100%, rgba(143, 63, 47, 0.09), transparent 66%);
  clip-path: polygon(0 56%, 12% 42%, 28% 62%, 42% 38%, 58% 54%, 72% 34%, 88% 58%, 100% 44%, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.hero {
  border-radius: 0 0 64px 64px;
  background:
    radial-gradient(circle at 86% 24%, rgba(57, 126, 88, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 232, 220, 0.86));
  box-shadow: none;
}

.hero h1,
.catalog-opener h1,
.tech-title {
  text-transform: uppercase;
}

.hero-side {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.28), transparent 10rem),
    linear-gradient(160deg, rgba(89, 97, 58, 0.96), rgba(57, 126, 88, 0.88));
  color: var(--b2b-white);
}

.hero-side .login-card,
.hero-side .trust-card {
  color: var(--b2b-black);
}

.tribe-quote {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin-top: 28px;
  color: var(--tribe-ink);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.25;
}

.tribe-quote span,
.circle-index {
  display: inline-grid;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  background: var(--b2b-green);
  color: var(--b2b-white);
  font-size: 13px;
  font-weight: 900;
}

.tribe-quote span::before,
.public-card .circle-index:empty::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
}

.brand-moment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.brand-moment-strip article,
.catalog-opener,
.public-card {
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.brand-moment-strip article {
  display: grid;
  gap: 14px;
  min-height: 230px;
  border-radius: 42px;
  padding: 30px;
}

.brand-moment-strip strong {
  max-width: 260px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-transform: uppercase;
}

.brand-moment-strip p,
.product-moment,
.tech-moment {
  color: var(--b2b-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.catalog-opener {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  overflow: hidden;
  min-height: 360px;
  margin-bottom: 28px;
  border-radius: 44px;
  padding: clamp(28px, 5vw, 62px);
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 28%, transparent), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, var(--tribe-sand) 100%);
}

.catalog-opener .eyebrow {
  display: none;
}

.catalog-opener h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(38px, 6.2vw, 88px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.catalog-opener p {
  max-width: 660px;
  color: var(--b2b-muted);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.55;
}

.catalog-opener-card {
  display: grid;
  gap: 16px;
  border-radius: 999px 999px 34px 34px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.76);
}

.catalog-opener-card strong {
  font-size: 22px;
  line-height: 1.18;
}

.catalog-opener-card small {
  color: var(--b2b-muted);
  font-weight: 700;
  line-height: 1.45;
}

.home-catalog-opener {
  margin-top: 28px;
}

.home-login-section {
  min-height: 0;
  margin-top: 28px;
  border-radius: 44px;
  padding: clamp(24px, 4vw, 48px);
}

.home-story-copy h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.92;
  text-transform: uppercase;
}

.catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  border-radius: 32px;
  padding: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(circle at 90% 16%, color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 18%, transparent), transparent 12rem),
    rgba(255, 255, 255, 0.68);
}

.catalog-header h1 {
  max-width: 760px;
  margin: 8px 0 8px;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-transform: uppercase;
}

.catalog-header p {
  max-width: 740px;
  margin: 0;
  color: var(--b2b-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.catalog-header-meta {
  display: grid;
  gap: 8px;
  min-width: 180px;
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.catalog-header-meta strong {
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.catalog-header-meta span {
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.catalog-category-menu {
  position: sticky;
  z-index: 25;
  top: 82px;
  margin: 6px 0 16px;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(27, 29, 25, 0.08);
}

.catalog-category-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 16px 12px 20px;
  cursor: pointer;
  list-style: none;
}

.catalog-category-menu summary::-webkit-details-marker {
  display: none;
}

.catalog-category-menu summary span {
  display: grid;
  gap: 3px;
}

.catalog-category-menu summary b {
  color: var(--tribe-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.catalog-category-menu summary small {
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-category-menu summary strong {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--b2b-green);
  color: var(--b2b-white);
  font-size: 13px;
  font-weight: 900;
}

.catalog-category-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.catalog-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 22%, rgba(21, 21, 21, 0.12));
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tribe-ink);
  font-weight: 800;
  text-align: left;
}

.catalog-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-menu-item em {
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.catalog-menu-item.is-active {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: var(--tribe-tone, var(--b2b-green));
  color: var(--b2b-white);
}

.catalog-menu-item.is-active em {
  color: currentColor;
}

.catalog-mega-nav {
  position: sticky;
  z-index: 30;
  top: 82px;
  margin: 4px 0 14px;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(27, 29, 25, 0.08);
}

.catalog-mega-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px;
}

.catalog-mega-scroll {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-mega-scroll.is-two-row {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  overflow-y: hidden;
}

.catalog-mega-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-mega-item {
  position: static;
  flex: 0 0 auto;
  min-width: 0;
}

.catalog-more-menu {
  position: relative;
  flex: 0 0 auto;
}

.catalog-more-menu summary {
  cursor: pointer;
  list-style: none;
}

.catalog-more-menu summary::-webkit-details-marker {
  display: none;
}

.catalog-mega-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 24%, rgba(21, 21, 21, 0.12));
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tribe-ink);
  font-weight: 900;
  font-size: 13px;
  max-width: min(178px, 16vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-mega-button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 14%, #fff);
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 11px;
  font-weight: 900;
}

.catalog-mega-button.is-active,
.catalog-mega-item:hover .catalog-mega-button,
.catalog-mega-item:focus-within .catalog-mega-button {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: var(--tribe-tone, var(--b2b-green));
  color: var(--b2b-white);
}

.catalog-mega-button.is-active span,
.catalog-mega-item:hover .catalog-mega-button span,
.catalog-mega-item:focus-within .catalog-mega-button span {
  background: rgba(255, 255, 255, 0.22);
  color: currentColor;
}

.catalog-mega-panel {
  position: absolute;
  right: 18px;
  left: 18px;
  top: calc(100% - 1px);
  display: none;
  grid-template-columns: 1fr;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 70px rgba(27, 29, 25, 0.16);
}

.catalog-mega-nav:hover .catalog-mega-panel,
.catalog-mega-nav:focus-within .catalog-mega-panel {
  display: grid;
}

.catalog-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  align-content: start;
}

.catalog-mega-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 20%, rgba(21, 21, 21, 0.12));
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--tribe-ink);
  font-weight: 800;
  font-size: 13px;
}

.catalog-mega-subitem span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-mega-subitem em {
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.catalog-mega-subitem:hover,
.catalog-mega-subitem:focus-visible {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 10%, #fff);
}

.catalog-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 8px;
  width: min(760px, calc(100vw - 80px));
  max-height: 56vh;
  overflow-y: auto;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(27, 29, 25, 0.16);
}

.catalog-more-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 20%, rgba(21, 21, 21, 0.12));
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--tribe-ink);
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
  position: relative;
  text-align: left;
}

.catalog-more-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-more-item em {
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.catalog-more-item:hover,
.catalog-more-item:focus-visible {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 10%, #fff);
}

.catalog-mega-subitem[data-category-depth="1"],
.catalog-mega-subitem[data-category-depth="2"],
.catalog-mega-subitem[data-category-depth="3"] {
  min-height: 34px;
  border-style: dashed;
  padding-left: 18px;
  font-size: 12px;
}

.no-results-recommendations {
  display: grid;
  gap: 16px;
  justify-items: start;
  text-align: left;
}

.no-results-recommendations .circle-index {
  width: 56px;
  height: 56px;
}

.no-results-recommendations strong {
  max-width: 520px;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-transform: uppercase;
}

.no-results-recommendations > span:not(.circle-index) {
  max-width: 560px;
  color: var(--b2b-muted);
  font-weight: 700;
  line-height: 1.5;
}

.catalog-category-tabs {
  position: sticky;
  z-index: 20;
  top: 84px;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  margin: -8px 0 22px;
  border-radius: 999px;
  padding: 10px;
  background: rgba(251, 250, 246, 0.86);
  box-shadow: 0 18px 50px rgba(27, 29, 25, 0.08);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-category-tabs::-webkit-scrollbar,
.catalog-subcategory-grid::-webkit-scrollbar {
  display: none;
}

.catalog-category-tab {
  flex: 0 0 auto;
  border-color: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 26%, rgba(21, 21, 21, 0.12));
}

.catalog-category-tab.is-active {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: var(--tribe-tone, var(--b2b-green));
  color: var(--b2b-white);
}

.catalog-subcategory-row {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
}

.section-title.compact {
  margin: 0;
}

.section-title.compact h2 {
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-transform: uppercase;
}

.catalog-subcategory-grid {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-subcategory-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 24%, rgba(21, 21, 21, 0.12));
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--tribe-ink);
}

.catalog-subcategory-pill strong {
  max-width: 190px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-subcategory-pill em {
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.catalog-subcategory-pill.is-active {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 12%, #fff);
}

.catalog-subcategory-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(27, 29, 25, 0.08);
  border-radius: 32px;
  padding: 22px;
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 20%, transparent), transparent 8rem),
    rgba(255, 255, 255, 0.78);
  color: var(--tribe-ink);
  text-align: left;
}

.catalog-subcategory-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 82px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 42%, transparent);
  border-radius: 999px;
  content: "";
}

.catalog-subcategory-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.catalog-subcategory-card > * {
  position: relative;
  z-index: 1;
}

.catalog-subcategory-card .circle-index {
  width: 46px;
  height: 46px;
  background: var(--tribe-tone, var(--b2b-green));
}

.catalog-subcategory-card strong {
  max-width: 220px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.catalog-subcategory-card small {
  max-width: 260px;
  color: var(--b2b-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.catalog-subcategory-card em {
  align-self: end;
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.catalog-subcategory-card.is-active {
  border-color: var(--tribe-tone, var(--b2b-green));
  background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 13%, #fff);
}

.catalog-filter-summary {
  display: none;
}

.filters-body {
  display: block;
}

.filters {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.product-grid {
  gap: 22px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.product-media {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 26%, transparent), transparent 10rem),
    linear-gradient(145deg, #f8f7f2, #e9e3d6);
}

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

.product-body .button:first-of-type {
  margin-top: 0;
}

.product-media::after,
.tech-media::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: clamp(90px, 12vw, 150px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 54%, transparent);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.product-mark {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--tribe-tone, var(--b2b-green));
  font-size: 32px;
}

.product-title {
  min-height: 0;
  margin-bottom: 8px;
  font-size: 22px;
  text-transform: uppercase;
}

.product-moment {
  margin: 0 0 14px;
}

.circle-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.circle-facts span {
  display: inline-grid;
  min-width: 58px;
  min-height: 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 46%, transparent);
  border-radius: 999px;
  padding: 10px;
  color: var(--tribe-tone, var(--b2b-green));
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.product-tech-sheet {
  border: 0;
  border-radius: 52px;
  background:
    radial-gradient(circle at 76% 32%, rgba(255, 255, 255, 0.92) 0 24%, transparent 44%),
    linear-gradient(145deg, #fbfaf6 0%, #e9e2d5 100%);
  box-shadow: none;
}

.tech-title {
  color: var(--tribe-ink);
}

.tech-moment {
  max-width: 420px;
  margin: 12px 0 0;
  font-size: 16px;
}

.detail-facts span {
  min-width: 74px;
  min-height: 74px;
}

.tech-icons span {
  border-color: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 42%, transparent);
  color: var(--tribe-tone, var(--b2b-green));
}

.button.primary,
.circle-index {
  background: var(--tribe-tone, var(--b2b-green));
}

.tribe-tone-olive { --tribe-tone: var(--tribe-olive); }
.tribe-tone-rust { --tribe-tone: var(--tribe-rust); }
.tribe-tone-terracotta { --tribe-tone: var(--tribe-terracotta); }
.tribe-tone-teal { --tribe-tone: var(--tribe-teal); }
.tribe-tone-plum { --tribe-tone: var(--tribe-plum); }

@media (max-width: 1180px) {
  .catalog-opener,
  .brand-moment-strip {
    grid-template-columns: 1fr;
  }

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

  .catalog-category-tabs {
    top: 72px;
  }

  .catalog-mega-nav {
    position: relative;
    top: auto;
    margin: 0 0 14px;
    border-radius: 24px;
  }

  .catalog-mega-bar {
    padding: 8px;
  }

  .catalog-mega-button {
    max-width: 160px;
  }

  .catalog-mega-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .catalog-mega-panel {
    right: 8px;
    left: 8px;
    top: calc(100% - 1px);
    grid-template-columns: 1fr;
    max-height: 58vh;
    overflow-y: auto;
    border-radius: 22px;
    padding: 12px;
  }

  .catalog-mega-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-mega-grid::-webkit-scrollbar {
    display: none;
  }

  .catalog-mega-subitem {
    flex: 0 0 auto;
    max-width: 220px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding-bottom: 96px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 26px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 74px);
    line-height: 0.9;
  }

  .hero-lead,
  .tribe-quote {
    font-size: 16px;
  }

  .hero-side {
    padding: 0;
    background: transparent;
  }

  .hero-side .login-card,
  .hero-side .trust-card {
    background: rgba(255, 255, 255, 0.86);
  }

  .hero,
  .catalog-opener,
  .catalog-header,
  .product-tech-sheet,
  .brand-moment-strip article {
    border-radius: 28px;
  }

  .catalog-opener {
    min-height: 0;
    padding: 26px;
  }

  .home-catalog-opener {
    margin-top: 14px;
  }

  .home-login-section {
    margin-top: 18px;
  }

  .catalog-header {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .catalog-header-meta {
    min-width: 0;
  }

  .catalog-mega-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
  }

  .catalog-mega-button {
    max-width: 156px;
  }

  .catalog-mega-item {
    display: block;
    flex: 0 0 auto;
  }

  .catalog-opener-card {
    border-radius: 28px;
  }

  .catalog-opener h1 {
    font-size: clamp(36px, 13vw, 58px);
    line-height: 0.94;
  }

  .brand-moment-strip article {
    min-height: 0;
    padding: 22px;
  }

  .circle-facts span {
    min-width: 52px;
    min-height: 52px;
  }

  .catalog-category-tabs {
    position: relative;
    top: auto;
    width: calc(100% + 24px);
    margin: -4px -12px 18px;
    border-radius: 0;
    padding: 8px 12px;
    background: transparent;
    box-shadow: none;
  }

  .catalog-category-tab {
    max-width: 190px;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-subcategory-row {
    margin-bottom: 18px;
  }

  .catalog-subcategory-row .section-title.compact p {
    display: none;
  }

  .catalog-subcategory-grid {
    display: flex;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-subcategory-card {
    flex: 0 0 168px;
    min-height: 168px;
    border-radius: 26px;
    padding: 16px;
  }

  .catalog-subcategory-card .circle-index {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .catalog-subcategory-card strong {
    font-size: 18px;
    letter-spacing: -0.04em;
  }

  .catalog-subcategory-card small {
    display: none;
  }

  .catalog-filter-drawer {
    padding: 0;
    background: transparent;
  }

  .catalog-filter-summary {
    display: grid;
    gap: 4px;
    min-height: 54px;
    border: 1px solid rgba(27, 29, 25, 0.1);
    border-radius: 22px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.86);
    font-weight: 900;
  }

  .catalog-filter-summary small {
    color: var(--b2b-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .catalog-filter-drawer:not([open]) .filters-body {
    display: none;
  }

  .filters-body {
    margin-top: 12px;
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
  }

  .filters-body h3 {
    display: none;
  }

  .product-moment {
    display: none;
  }

  .circle-facts span:nth-child(n + 3) {
    display: none;
  }

  .no-results-recommendations {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .catalog-opener-card {
    border-radius: 28px;
    padding: 18px;
  }

  .catalog-opener-card .circle-index {
    width: 48px;
    height: 48px;
  }

  .product-card {
    border-radius: 26px;
  }
}

/* Фінальні buyer UX overrides мають лишатися останніми в каскаді. */
.topbar-inner { min-height: 68px; }
.section-title h1, .section-title h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; line-height: 1; }
.site-catalog-menu { position: relative; }
.site-catalog-menu > summary { cursor: pointer; list-style: none; }
.site-catalog-menu > summary::-webkit-details-marker { display: none; }
.site-catalog-panel { position: fixed; z-index: 80; top: 74px; left: 50%; width: min(920px,calc(100vw - 48px)); max-height: calc(100vh - 96px); overflow: auto; transform: translateX(-50%); border: 1px solid var(--b2b-border); border-radius: 22px; padding: 16px; background: rgba(255,255,255,.98); box-shadow: 0 28px 80px rgba(21,21,21,.2); }
.site-catalog-menu:not([open]) .site-catalog-panel { display: none; }
.catalog-mega-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 16px; }
.catalog-mega-roots { display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--b2b-border); padding-right: 14px; }
.catalog-mega-roots .catalog-mega-button { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; width: 100%; max-width: none; min-height: 52px; border: 0; border-radius: 14px; padding: 7px 12px 7px 8px; text-align: left; }
.catalog-category-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid color-mix(in srgb,var(--tribe-tone,var(--b2b-green)) 35%,transparent); border-radius: 999px; background: color-mix(in srgb,var(--tribe-tone,var(--b2b-green)) 10%,white); color: var(--tribe-tone,var(--b2b-green)); }
.catalog-category-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.catalog-category-label { min-width: 0; line-height: 1.2; }
.catalog-mega-roots .catalog-category-label { font-size: 14px; font-weight: 700; }
.site-catalog-panel .catalog-mega-subitem { font-size: 13px; font-weight: 600; }
.catalog-mega-button.is-active .catalog-category-icon { border-color: rgba(255,255,255,.46); background: rgba(255,255,255,.16); color: white; }
.site-catalog-panel .catalog-mega-panel { position: static; display: block; border: 0; padding: 0; box-shadow: none; }
.site-catalog-panel .catalog-mega-panel[hidden] { display: none; }
.catalog-mega-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.catalog-mega-panel-head button { min-height: 44px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--b2b-green); color: white; font-weight: 700; }
.site-catalog-panel .catalog-mega-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.site-catalog-panel .catalog-mega-subitem { min-height: 44px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(210px,.6fr) minmax(320px,1fr) auto; gap: 16px; align-items: end; margin-bottom: 18px; }
.catalog-toolbar h1 { margin: 5px 0 2px; font-size: clamp(28px,4vw,42px); letter-spacing: -.04em; }
.catalog-toolbar p { margin: 0; color: var(--b2b-muted); }
.catalog-search input, .catalog-toolbar select { width: 100%; min-height: 46px; border: 1px solid var(--b2b-border); border-radius: 16px; padding: 10px 14px; background: white; font: inherit; }
.catalog-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.catalog-toolbar-actions .button[aria-pressed="true"] { border-color: var(--b2b-green); background: var(--b2b-green); color: white; }
.active-filters { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin: 0 0 14px; }
.active-filters span { flex: 0 0 auto; border-radius: 999px; padding: 8px 12px; background: rgba(57,126,88,.12); font-size: 12px; }
.active-filters button { border: 0; background: transparent; color: var(--b2b-green-dark); font-weight: 700; }
.product-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.product-grid.is-list .product-card { display: grid; grid-template-columns: 180px minmax(0,1fr); border: 1px solid var(--b2b-border); border-radius: 22px; }
.product-grid.is-list .product-media { align-self: stretch; min-height: 200px; aspect-ratio: auto; }
.product-grid.is-list .product-media img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); max-width: calc(100% - 36px); max-height: calc(100% - 36px); object-fit: contain; object-position: center; }
.product-grid.is-list .product-body { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 8px 18px; padding: 18px; align-content: center; }
.product-grid.is-list .favorite-button { position: static; grid-column: 2; justify-self: end; align-self: center; margin-left: auto; }
.product-card .product-media { aspect-ratio: 4/3; }
.product-card > .product-media { position: relative; display: grid; width: 100%; min-width: 0; overflow: hidden; place-items: center; color: inherit; }
.product-card > .product-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: calc(100% - 28px); max-height: calc(100% - 28px); padding: 0; object-fit: contain; object-position: center; }
.product-card > .product-media:focus-visible { outline: 3px solid var(--b2b-green); outline-offset: -3px; }
.product-card .product-title { font-size: 17px; line-height: 1.18; letter-spacing: -.025em; text-transform: none; }
.product-order-rule { margin: 4px 0 12px; color: var(--b2b-muted); font-size: 12px; }
.favorite-button { display: grid; position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; place-items: center; border: 1px solid var(--b2b-border); border-radius: 999px; background: white; color: var(--b2b-green-dark); font-size: 20px; }
.product-moment, .circle-facts { display: none; }
.profile-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-radius: 30px; padding: 30px; background: linear-gradient(135deg,var(--b2b-black),#29352e); color: white; }
.profile-hero h1 { margin: 8px 0; font-size: clamp(30px,5vw,54px); line-height: 1; letter-spacing: -.05em; }
.profile-hero p { margin: 0; opacity: .72; }
.profile-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.company-contact-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mobile-bottom-nav { display: none; }

@media (max-width: 1180px) {
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar-actions { grid-column: 1/-1; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filter-summary { display: grid; }
  .catalog-filter-drawer:not([open]) .filters-body { display: none; }
  .product-grid.is-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .nav { display: block; border: 0; padding: 0; background: transparent; }
  .nav > .nav-link { display: none; }
  .site-catalog-panel { top: 70px; width: calc(100vw - 24px); }
  .catalog-mega-layout { grid-template-columns: 1fr; }
  .catalog-mega-roots { border-right: 0; padding-right: 0; }
  .site-catalog-panel .catalog-mega-panel { display: none; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-toolbar-actions { grid-column: auto; overflow-x: auto; }
  .catalog-search input, .catalog-toolbar select { font-size: 16px; }
  .product-grid.is-list .product-card { grid-template-columns: 112px minmax(0,1fr); }
  .product-grid.is-list .product-body { display: flex; padding: 14px; }
  .profile-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .profile-facts { grid-template-columns: 1fr; }
  .company-contact-row { grid-template-columns: 1fr 1fr; }
  .mobile-bottom-nav { position: fixed; z-index: 38; right: 12px; bottom: 78px; left: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--b2b-border); border-radius: 20px; padding: 6px; background: rgba(255,255,255,.96); box-shadow: var(--b2b-shadow); }
  .mobile-bottom-nav a { display: grid; min-height: 44px; place-items: center; border-radius: 14px; font-size: 11px; font-weight: 700; }
  .mobile-bottom-nav a[aria-current="page"] { background: var(--b2b-black); color: white; }
  .app-shell { padding-bottom: 150px; }
  .catalog-mega-roots .catalog-category-label { font-size: 15px; }
  .site-catalog-panel .catalog-mega-subitem { font-size: 14px; }
}

@media (max-width: 620px) {
  .product-grid.is-grid { grid-template-columns: 1fr; }
  .product-grid.is-list .product-card { grid-template-columns: 96px minmax(0,1fr); }
  .company-contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .mobile-bottom-nav { position: fixed; z-index: 38; right: 12px; bottom: 78px; left: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--b2b-border); border-radius: 20px; padding: 6px; background: rgba(255,255,255,.96); box-shadow: var(--b2b-shadow); }
  .mobile-bottom-nav a { display: grid; min-height: 44px; place-items: center; border-radius: 14px; font-size: 11px; font-weight: 700; }
  .mobile-bottom-nav a[aria-current="page"] { background: var(--b2b-black); color: white; }
  .app-shell { padding-bottom: 150px; }
}

/* Компактний desktop масштабує компоненти, але не зменшує touch UI планшета й телефона. */
@media (min-width: 1181px) {
  body { font-size: 13px; }
  .topbar-inner, .page, .footer-inner { width: min(1580px,calc(100% - 32px)); }
  .topbar-inner { min-height: 58px; gap: 16px; }
  .brand { font-size: 25px; }
  .brand-logo-frame { min-width: 38px; height: 38px; }
  .nav { gap: 3px; padding: 4px; }
  .nav-link { padding: 8px 13px; font-size: 12px; }
  .button { min-height: 40px; padding: 9px 16px; font-size: 12px; }
  .cart-count { min-width: 19px; height: 19px; font-size: 10px; }
  .page { padding: 24px 0 52px; }
  .hero { min-height: 410px; border-radius: 30px; }
  .hero-main { gap: 22px; padding: clamp(28px,3vw,44px); }
  .hero h1 { max-width: 680px; margin-top: 14px; font-size: clamp(38px,4.4vw,68px); letter-spacing: -.065em; }
  .hero-lead { max-width: 580px; margin-top: 14px; font-size: 14px; line-height: 1.5; }
  .hero-actions { margin-top: 20px; }
  .hero-side { padding: 26px; }
  .section-title { margin: 42px 0 18px; }
  .section-title h1, .section-title h2 { font-size: clamp(28px,3vw,44px); }
  .section-title p { max-width: 520px; margin-top: 8px; font-size: 13px; }
  .dashboard-grid { gap: 12px; }
  .quick-grid { gap: 10px; }
  .quick-card { min-height: 145px; border-radius: 22px; padding: 18px; }
  .quick-card strong { font-size: 20px; letter-spacing: -.045em; }
  .quick-card span { font-size: 12px; }
  .customer-strip { gap: 8px; padding: 18px; }
  .status-line { border-radius: 15px; padding: 11px 13px; }
  .catalog-toolbar { grid-template-columns: minmax(170px,.45fr) minmax(300px,1fr) auto; gap: 12px; margin-bottom: 12px; }
  .catalog-toolbar h1 { font-size: clamp(25px,2.6vw,36px); }
  .catalog-search input, .catalog-toolbar select { min-height: 40px; border-radius: 12px; padding: 8px 12px; }
  .catalog-toolbar-actions .button { min-height: 40px; }
  .catalog-layout { grid-template-columns: 230px minmax(0,1fr); gap: 12px; }
  .filters { border-radius: 22px; padding: 16px; }
  .filter-group { gap: 7px; }
  .chip { min-height: 34px; padding: 7px 10px; font-size: 11px; }
  .product-grid { gap: 10px; }
  .product-grid.is-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .product-card { border-radius: 20px; }
  .product-card .product-media { aspect-ratio: 4/3; }
  .product-card > .product-media img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); max-width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .product-body { padding: 12px; }
  .product-card .product-title { min-height: 34px; margin: 5px 0 7px; font-size: 14px; line-height: 1.18; -webkit-line-clamp: 2; }
  .sku { font-size: 9px; letter-spacing: .06em; }
  .product-order-rule { margin: 2px 0 7px; font-size: 10px; }
  .availability { top: 10px; left: 10px; padding: 6px 9px; font-size: 9px; }
  .favorite-button { top: 9px; right: 9px; width: 36px; height: 36px; font-size: 17px; }
  .price { font-size: 16px; }
  .tier { padding: 6px 8px; font-size: 9px; }
  .product-cart-quick { gap: 6px; margin-top: 8px; }
  .product-cart-quick button { width: 36px; height: 36px; }
  .product-cart-quick input { min-height: 36px; font-size: 12px; }
  .product-card .button.full { min-height: 38px; margin-top: 7px; }
  .profile-hero { border-radius: 24px; padding: 24px; }
  .profile-hero h1 { font-size: clamp(30px,3.5vw,48px); }
  .panel, .summary-card, .profile-card { border-radius: 22px; }
  .site-catalog-panel { top: 64px; }
}

@media (min-width: 1381px) and (max-width: 1540px) {
  .product-grid.is-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .product-grid.is-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .product-grid.is-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

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

@media (min-width: 821px) {
  .product-grid.is-list { gap: 8px; }
  .product-grid.is-list .product-card { grid-template-columns: 110px minmax(0,1fr); min-height: 116px; border-radius: 16px; }
  .product-grid.is-list .product-media { min-height: 116px; aspect-ratio: auto; }
  .product-grid.is-list .product-media img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100% - 16px); }
  .product-grid.is-list .product-media::after { right: 10px; bottom: 10px; width: 52px; }
  .product-grid.is-list .product-mark { width: 62px; height: 62px; font-size: 20px; }
  .product-grid.is-list .availability { top: 7px; left: 7px; max-width: 98px; padding: 5px 7px; font-size: 8px; white-space: normal; }
  .product-grid.is-list .product-body { display: grid; grid-template-columns: minmax(260px,1fr) 180px 230px 40px; grid-template-rows: auto auto; gap: 5px 14px; align-items: center; padding: 11px 14px; }
  .product-grid.is-list .sku { grid-column: 1; grid-row: 1; align-self: end; }
  .product-grid.is-list .product-labels { grid-column: 1; grid-row: 1; justify-self: end; }
  .product-grid.is-list .product-title { grid-column: 1; grid-row: 2; min-height: 0; margin: 0; font-size: 13px; -webkit-line-clamp: 2; }
  .product-grid.is-list .product-order-rule { grid-column: 1; grid-row: 3; margin: 0; font-size: 9px; }
  .product-grid.is-list .product-meta { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .product-grid.is-list .price { font-size: 15px; }
  .product-grid.is-list .tier { font-size: 8px; }
  .product-grid.is-list .threshold { grid-column: 1; margin: 0; padding: 5px 8px; font-size: 9px; }
  .product-grid.is-list .product-cart-quick { grid-column: 3; grid-row: 1; align-self: end; margin: 0; }
  .product-grid.is-list .product-cart-quick button { width: 34px; height: 34px; }
  .product-grid.is-list .product-cart-quick input { min-height: 34px; }
  .product-grid.is-list .product-body > .button.primary { grid-column: 3; grid-row: 2 / span 2; min-height: 34px; margin: 0; padding: 7px 12px; }
  .product-grid.is-list .favorite-button { position: static; grid-column: 4; grid-row: 1 / span 3; width: 36px; height: 36px; margin: 0; justify-self: center; align-self: center; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .product-grid.is-list .product-body { grid-template-columns: minmax(220px,1fr) 150px 200px 38px; gap: 5px 10px; }
}

/* Реальні фото показуються без декоративних кіл у чистому contain-контейнері. */
.product-media::after,
.tech-media::after { display: none; content: none; }
.product-card > .product-media.has-image { background: #fff; }
.product-card > .product-media.has-image img { z-index: 0; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100% - 24px); object-fit: contain; object-position: center; filter: none; }
.product-card > .product-media .availability { z-index: 4; max-width: calc(100% - 58px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card > .favorite-button { z-index: 5; }
.product-grid.is-grid .product-title { min-height: 34px; -webkit-line-clamp: 2; }
.product-commerce-slot { display: grid; align-content: start; min-height: 66px; }
.product-actions { display: grid; gap: 7px; margin-top: auto; }
.product-actions .product-cart-quick, .product-actions > .button { margin-top: 0; }

@media (min-width: 821px) {
  .product-grid.is-list .product-commerce-slot { grid-column: 2; grid-row: 1 / span 3; align-self: center; min-height: 0; }
  .product-grid.is-list .product-actions { grid-column: 3; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .product-grid.is-list .product-actions .product-cart-quick { margin: 0; }
  .product-grid.is-list .product-actions > .button { min-height: 34px; margin: 0; padding: 7px 12px; }
}

/* Detail: медіа ліворуч, уся інформація та характеристики праворуч. */
.product-detail-layout { grid-template-columns: minmax(0,1.65fr) minmax(360px,.75fr); gap: 22px; align-items: stretch; }
.product-detail-media-column { display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; height: 100%; }
.product-detail-media-column .product-detail-media-card { width: 100%; max-width: none; min-height: clamp(520px,68vh,720px); height: 100%; margin: 0; border-radius: 28px; }
.product-detail-media-column .tech-media.has-image .tech-main-image { width: calc(100% - 56px); height: calc(100% - 56px); max-width: 820px; max-height: 650px; }
.product-detail-media-column .availability { top: 16px; left: 16px; }
.detail-media-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px; overflow-x: auto; margin-top: 12px; padding: 2px 2px 8px; scrollbar-width: thin; }
.detail-media-thumb { display: grid; width: 92px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid var(--b2b-border); border-radius: 16px; padding: 7px; background: white; cursor: pointer; }
.detail-media-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-media-thumb.is-active { border-color: var(--b2b-green); box-shadow: 0 0 0 2px rgba(57,126,88,.16); }
.product-commerce-card { top: 76px; height: 100%; padding: 24px; }
.product-commerce-card .product-detail-title { margin: 10px 0 12px; font-size: clamp(22px,2vw,30px); line-height: 1.1; letter-spacing: -.035em; -webkit-line-clamp: 4; }
.product-commerce-card > p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.detail-characteristics, .detail-files { margin-top: 18px; border: 1px solid var(--b2b-border); border-radius: 20px; padding: 16px; background: rgba(255,255,255,.66); }
.detail-characteristics .tech-specs { display: grid; gap: 0; margin-top: 10px; }
.detail-characteristics .tech-spec-row { display: grid; grid-template-columns: minmax(100px,.8fr) minmax(0,1.2fr); gap: 10px; align-items: baseline; border-bottom: 1px solid rgba(21,21,21,.07); border-radius: 0; padding: 9px 0; background: transparent; }
.detail-characteristics .tech-spec-row:last-child { border-bottom: 0; }
.detail-characteristics .tech-spec-row span, .detail-characteristics .tech-spec-row strong { font-size: 12px; }
.product-description-block { margin-top: 22px; border: 1px solid var(--b2b-border); border-radius: 26px; padding: clamp(22px,3vw,38px); background: rgba(255,255,255,.9); }
.product-description-content { max-width: 980px; margin-top: 16px; color: #454b45; font-size: 14px; line-height: 1.7; }
.product-description-content h2 { margin: 24px 0 10px; color: var(--b2b-black); font-size: 24px; line-height: 1.2; }
.product-description-content h3 { margin: 20px 0 8px; color: var(--b2b-black); font-size: 18px; }
.product-description-content p { margin: 0 0 12px; }
.product-description-content a { color: var(--b2b-green-dark); font-weight: 700; text-decoration: underline; }
.product-description-list-item { display: flex; gap: 10px; align-items: flex-start; }
.product-description-list-item > span { color: var(--b2b-green); font-weight: 900; }
.product-label { border: 1px solid color-mix(in srgb,var(--label-color,#64748b) 78%,#151515); background: var(--label-color,#64748b); color: var(--label-foreground,#fff); }
.product-label.shape-pill, .label-filter-chip.shape-pill { border-radius: 999px; }
.product-label.shape-rounded, .label-filter-chip.shape-rounded { border-radius: 9px; }
.product-label.shape-square, .label-filter-chip.shape-square { border-radius: 2px; }
.label-filter-chip { border-color: color-mix(in srgb,var(--label-color,#64748b) 55%,white); }
.label-filter-chip.is-active { border-color: var(--label-color,#64748b); background: color-mix(in srgb,var(--label-color,#64748b) 14%,white); color: #151515; }

@media (max-width: 980px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-media-column .product-detail-media-card { min-height: 480px; }
  .product-commerce-card { position: static; }
}

@media (max-width: 620px) {
  .product-detail-layout { gap: 14px; }
  .product-detail-media-column .product-detail-media-card { min-height: 340px; margin: 0; border-radius: 20px; }
  .product-detail-media-column .tech-media.has-image .tech-main-image { width: calc(100% - 28px); height: calc(100% - 28px); }
  .detail-media-carousel { grid-auto-columns: 72px; gap: 8px; }
  .detail-media-thumb { width: 72px; border-radius: 13px; }
  .product-commerce-card { padding: 18px; }
  .product-commerce-card .product-detail-title { font-size: 22px; }
  .detail-characteristics .tech-spec-row { grid-template-columns: 1fr; gap: 3px; }
}
.tech-media.has-image { align-self: stretch; min-height: 420px; margin: 18px; overflow: hidden; border: 1px solid rgba(21,21,21,.06); border-radius: 26px; background: #fff; }
.tech-media.has-image .tech-main-image { width: calc(100% - 40px); height: calc(100% - 40px); max-width: 680px; max-height: 560px; padding: 0; object-fit: contain; object-position: center; filter: none; transform: none; }
.tech-media .tech-inset { border-radius: 18px; }

@media (max-width: 820px) {
  .tech-media.has-image { min-height: 320px; margin: 12px; border-radius: 20px; }
  .tech-media.has-image .tech-main-image { width: calc(100% - 24px); height: calc(100% - 24px); }
}

.product-detail-media-column .product-detail-media-card {
  position: relative;
  top: auto;
  width: 100%;
  max-width: none;
  height: 100%;
  align-self: start;
  margin: 0;
}

/* ЧОМУ: пошук і каталог утворюють один header-workflow, тому цей шар свідомо завершує накопичений legacy-каскад. */
.topbar { z-index: 60; overflow: visible; background: rgba(247, 247, 244, .96); }
.topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 720px) minmax(0, 1fr); justify-content: stretch; gap: 18px; overflow: visible; }
.topbar-leading { display: flex; min-width: 0; align-items: center; gap: 18px; justify-self: start; }
.brand { justify-self: start; }
.nav { justify-self: start; border: 0; padding: 0; background: transparent; }
.nav > .nav-link:first-child { display: none; }
.catalog-menu-trigger { display: inline-flex; align-items: center; gap: 9px; border-radius: 12px; background: var(--b2b-black); color: white; }
.catalog-menu-trigger:hover, .catalog-menu-trigger.is-active { background: var(--b2b-green-dark); }
.catalog-menu-grid { display: grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.catalog-menu-grid i { width: 4px; height: 4px; border-radius: 1px; background: currentColor; }
.top-actions { grid-column: 3; justify-self: end; }

.global-search { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; width: 100%; min-width: 0; border: 1px solid rgba(21, 21, 21, .14); border-radius: 15px; padding: 0 13px; background: white; transition: border-color .18s ease, box-shadow .18s ease; }
.global-search:focus-within { border-color: var(--b2b-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b2b-green) 14%, transparent); }
.global-search-icon { position: relative; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 999px; opacity: .56; }
.global-search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 6px; height: 2px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: left center; }
.global-search input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: 0; padding: 9px 12px; background: transparent; color: var(--b2b-black); font: inherit; font-weight: 600; }
.global-search input::-webkit-search-cancel-button { cursor: pointer; }
.global-search kbd { border: 1px solid rgba(21, 21, 21, .12); border-radius: 7px; padding: 4px 7px; background: var(--b2b-surface, #f2f2f0); color: var(--b2b-muted); font: 700 9px/1 Montserrat, sans-serif; }
.global-search-overlay { position: absolute; z-index: 95; top: calc(100% + 10px); right: 0; left: 0; max-height: min(650px, calc(100vh - 92px)); overflow: auto; border: 1px solid rgba(21, 21, 21, .1); border-radius: 22px; padding: 8px; background: rgba(255, 255, 255, .99); box-shadow: 0 28px 80px rgba(21, 21, 21, .22); }
.global-search-overlay[hidden] { display: none; }
.global-search-overlay-inner { display: grid; gap: 8px; }
.global-search-results { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(260px, 1fr); gap: 8px; }
.global-search-results > section { min-width: 0; border-radius: 16px; padding: 10px; background: #f5f5f1; }
.global-search-label { display: block; margin: 0 0 8px; color: var(--b2b-muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.global-search-categories, .global-search-products { display: grid; gap: 3px; }
.global-search-category, .search-suggestion { display: grid; width: 100%; min-width: 0; align-items: center; border: 0; border-radius: 13px; background: transparent; color: var(--b2b-black); text-align: left; cursor: pointer; }
.global-search-category { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 7px; }
.global-search-category small, .global-search-category strong { display: block; }
.global-search-category small { margin-bottom: 2px; color: var(--b2b-muted); font-size: 9px; }
.global-search-category strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion { grid-template-columns: 50px minmax(0, 1fr) 20px; gap: 10px; min-height: 62px; padding: 6px; }
.search-suggestion-media { display: grid; width: 50px; height: 50px; overflow: hidden; place-items: center; border-radius: 11px; background: white; color: var(--b2b-green-dark); font-size: 12px; font-weight: 900; }
.search-suggestion-media img { width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.search-suggestion-copy { display: grid; min-width: 0; gap: 2px; }
.search-suggestion-copy small, .search-suggestion-copy strong, .search-suggestion-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-copy small { color: var(--b2b-muted); font-size: 9px; }
.search-suggestion-copy strong { font-size: 11px; }
.search-suggestion-copy em { color: var(--b2b-green-dark); font-size: 9px; font-style: normal; font-weight: 800; }
.search-suggestion-arrow { opacity: .4; }
.search-option:hover, .search-option:focus-visible, .search-option.is-active { outline: 0; background: white; box-shadow: 0 0 0 2px color-mix(in srgb, var(--b2b-green) 20%, transparent); }
.global-search-status { grid-column: 1 / -1; padding: 22px; color: var(--b2b-muted); font-size: 11px; text-align: center; }
.global-search-all { display: flex; min-height: 42px; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; padding: 10px 14px; background: var(--b2b-black); color: white; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }

.site-catalog-panel { top: 68px; width: min(1320px, calc(100vw - 32px)); max-height: calc(100vh - 84px); border-radius: 26px; padding: 12px; }
.catalog-mega-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 12px; }
.catalog-mega-roots { gap: 2px; border: 0; border-radius: 19px; padding: 8px; background: #f2f2ee; }
.catalog-mega-roots .catalog-mega-button { min-height: 48px; border-radius: 13px; }
.catalog-mega-content { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; min-height: 440px; }
.catalog-mega-directory { min-width: 0; padding: 12px 8px 8px; }
.catalog-mega-panel-head { margin-bottom: 18px; }
.catalog-mega-panel-head > div { display: grid; gap: 4px; }
.catalog-mega-panel-head strong { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.045em; line-height: 1; }
.site-catalog-panel .catalog-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 18px 12px; }
.catalog-mega-group { display: grid; align-content: start; gap: 5px; min-width: 0; }
.site-catalog-panel .catalog-mega-subitem { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 6px; border: 0; padding: 7px 9px; background: transparent; color: var(--b2b-black); text-align: left; cursor: pointer; }
.site-catalog-panel .catalog-mega-subitem.is-branch { border-left: 3px solid var(--tribe-tone, var(--b2b-green)); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 9%, white); font-size: 12px; font-weight: 900; }
.site-catalog-panel .catalog-mega-subitem.is-branch em { color: var(--b2b-muted); font-size: 9px; font-style: normal; }
.catalog-mega-children { display: grid; gap: 1px; }
.site-catalog-panel .catalog-mega-subitem.is-nested { min-height: 29px; padding: 5px 9px 5px 12px; color: #555b55; font-size: 10px; font-weight: 650; }
.site-catalog-panel .catalog-mega-subitem:hover, .site-catalog-panel .catalog-mega-subitem:focus-visible { outline: 0; background: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 13%, white); color: var(--b2b-black); }
.catalog-mega-feature { position: relative; display: grid; min-width: 0; overflow: hidden; align-content: end; border-radius: 20px; padding: 20px; background: var(--b2b-black); color: white; isolation: isolate; }
.catalog-mega-feature::before { position: absolute; z-index: -1; width: 230px; height: 230px; right: -92px; bottom: -72px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 48% 52% 44% 56%; content: ""; transform: rotate(18deg); }
.catalog-mega-feature > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.catalog-mega-feature-icon { display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; margin-bottom: auto; color: color-mix(in srgb, var(--tribe-tone, var(--b2b-green)) 70%, white); }
.catalog-mega-feature-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.catalog-mega-feature strong { margin-top: 6px; font-size: 24px; letter-spacing: -.04em; line-height: 1.05; }
.catalog-mega-feature p { margin: 9px 0 16px; font-size: 11px; line-height: 1.45; opacity: .76; }
.catalog-mega-feature button { min-height: 40px; border: 0; border-radius: 999px; background: white; color: var(--b2b-black); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.catalog-toolbar { grid-template-columns: minmax(210px, 1fr) auto; }
.catalog-toolbar:has(.catalog-search) { grid-template-columns: minmax(210px, .6fr) minmax(320px, 1fr) auto; }
.catalog-toolbar:has(.catalog-search) .catalog-search { width: min(720px, 100%); justify-self: center; }
.catalog-toolbar:has(.catalog-search) .catalog-toolbar-actions { grid-column: auto; }

@media (max-width: 1180px) {
  .topbar-inner { grid-template-columns: minmax(0, .8fr) minmax(280px, 1.4fr) minmax(0, .8fr); gap: 12px; }
  .topbar-leading { gap: 10px; }
  .profile-menu > summary { min-width: 42px; padding-inline: 12px; }
  .catalog-mega-content { grid-template-columns: 1fr 210px; }
  .site-catalog-panel .catalog-mega-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .catalog-toolbar:has(.catalog-search) { grid-template-columns: minmax(210px, .6fr) minmax(280px, 1fr); }
  .catalog-toolbar:has(.catalog-search) .catalog-toolbar-actions { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; }
  .topbar-inner:not(:has(.topbar-leading)) { grid-template-columns: auto auto minmax(0, 1fr); }
  .topbar-inner:not(:has(.topbar-leading)) > .brand { grid-column: 1; }
  .topbar-inner:not(:has(.topbar-leading)) > .nav { grid-column: 2; }
  .topbar-inner:not(:has(.topbar-leading)) > .top-actions { grid-column: 3; }
  .topbar-leading { grid-column: 1; gap: 8px; }
  .brand { min-width: 0; }
  .brand-logo-frame { min-width: 0; max-width: 112px; height: min(var(--brand-logo-size, 42px), 48px); }
  .brand img { max-width: 112px; max-height: 48px; }
  .nav { flex: 0 0 auto; }
  .top-actions { grid-column: 2; }
  .global-search { grid-column: 1 / -1; grid-row: 2; }
  .global-search input { min-height: 42px; font-size: 16px; }
  .global-search kbd { display: none; }
  .global-search-results { grid-template-columns: 1fr; }
  .global-search-overlay { position: fixed; top: calc(var(--b2b-topbar-height, 116px) + 8px); right: 12px; left: 12px; max-height: calc(100vh - var(--b2b-topbar-height, 116px) - 174px); }
  .site-catalog-panel { top: calc(var(--b2b-topbar-height, 116px) + 8px); max-height: calc(100vh - var(--b2b-topbar-height, 116px) - 174px); }
  .catalog-mega-layout { grid-template-columns: 1fr; }
  .catalog-mega-roots { background: white; }
  .site-catalog-panel .catalog-mega-panel { display: none; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .catalog-toolbar:has(.catalog-search) { grid-template-columns: 1fr; }
  .catalog-toolbar:has(.catalog-search) .catalog-toolbar-actions { grid-column: auto; }
  .mobile-cart-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 520px) {
  .topbar-inner { width: calc(100% - 20px); }
  .brand-logo-text { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cart-button { width: 42px; padding: 0; font-size: 0; }
  .cart-button .cart-count { font-size: 10px; }
  .catalog-menu-trigger { padding-inline: 10px; }
}
