:root {
  --ink: #101814;
  --muted: #66736d;
  --paper: #ffffff;
  --canvas: #f8faf8;
  --surface: #fbfcfb;
  --mist: #eef5f0;
  --sage: #dfeae2;
  --line: #dce4de;
  --green: #16775a;
  --green-dark: #0d4836;
  --clay: #b85f3c;
  --action: #3f4541;
  --action-dark: #252b27;
  --action-soft: #f1f2ef;
  --gold: #b18a3d;
  --shadow: 0 22px 58px rgba(16, 24, 20, 0.14);
  --shadow-soft: 0 12px 34px rgba(16, 24, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 228, 222, 0.76);
  box-shadow: 0 8px 28px rgba(16, 24, 20, 0.06);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.brand img {
  width: 148px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ink);
  background: var(--mist);
}

.nav-links .nav-cta {
  color: var(--paper);
  background: var(--action);
  box-shadow: 0 10px 24px rgba(63, 69, 65, 0.22);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus {
  color: var(--paper);
  background: var(--action-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 132px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111713;
}

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

.hero-media {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 19, 15, 0.88) 0%, rgba(12, 19, 15, 0.66) 44%, rgba(12, 19, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 19, 15, 0.72), rgba(12, 19, 15, 0.08) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 84px 0 118px;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c78f;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 600;
}

h1 {
  max-width: 760px;
  font-size: 5.85rem;
}

h2 {
  font-size: 3.15rem;
}

h3 {
  font-size: 1.06rem;
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 24, 20, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  background: var(--action);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.08);
}

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

.button-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-outline {
  border-color: rgba(16, 24, 20, 0.12);
  color: var(--ink);
  background: var(--paper);
}

.quick-finder {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  background: transparent;
  border-bottom: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(220, 228, 222, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-item {
  min-height: 104px;
  padding: 20px;
  display: grid;
  align-content: center;
  border-left: 1px solid var(--line);
}

.quick-item:last-child {
  border-right: 1px solid var(--line);
}

.quick-item strong {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green-dark);
}

.quick-item:hover,
.quick-item:focus {
  background: var(--surface);
}

.quick-item span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: 82px 0;
}

.intro-section {
  background: var(--canvas);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 46px;
  align-items: start;
}

.split > p,
.contact-grid p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.product-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 24px;
}

.product-tools input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(16, 24, 20, 0.04);
}

.product-tools input:focus,
.api-product-tools select:focus,
.tile-calculator input:focus,
.tile-calculator select:focus {
  outline: 2px solid rgba(63, 69, 65, 0.16);
  border-color: rgba(63, 69, 65, 0.42);
}

.category-grid,
.product-grid,
.faq-grid {
  display: grid;
  gap: 22px;
}

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

.category-card,
.product-card,
.supplier-card,
.contact-panel,
.faq-grid details {
  border: 1px solid rgba(220, 228, 222, 0.9);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 24, 20, 0.04);
}

.category-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(22, 119, 90, 0.28);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-card:hover img,
.category-card:focus img {
  transform: scale(1.035);
}

.category-card span,
.category-card strong {
  display: block;
  padding: 0 18px;
}

.category-card span {
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 850;
}

.category-card strong {
  padding-bottom: 20px;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 550;
}

.partner-section {
  padding: 28px 0 24px;
  background: var(--paper);
  border-bottom: 1px solid rgba(220, 228, 222, 0.7);
}

.partner-section h2 {
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.45rem;
  line-height: 1.2;
}

.partner-logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 4px 8px;
  scrollbar-width: none;
}

.partner-logo-grid::-webkit-scrollbar {
  display: none;
}

.partner-logo-card {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  border-radius: 4px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.partner-logo-card:hover,
.partner-logo-card:focus {
  transform: translateY(-2px);
  opacity: 0.82;
}

.partner-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-logo-wide {
  width: 68px;
}

.partner-logo-small {
  width: 34px;
}

.product-section {
  background: var(--canvas);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(16, 24, 20, 0.04);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-chip.is-active,
.filter-chip:hover,
.filter-chip:focus {
  color: var(--paper);
  background: var(--action);
  border-color: var(--action);
  transform: translateY(-1px);
}

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

.product-card {
  overflow: hidden;
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card[hidden] {
  display: none;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(63, 69, 65, 0.24);
}

.product-card a {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100%;
}

.product-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sage);
}

.product-card > a > img,
.product-card-media > img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  background: var(--sage);
  transition: opacity 220ms ease, transform 260ms ease;
}

.product-card-media.has-hover-image .product-card-image-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card-media:not(.has-hover-image) .product-card-image-primary,
.product-card:focus-within .product-card-media:not(.has-hover-image) .product-card-image-primary,
.product-card:hover > a > img,
.product-card:focus-within > a > img {
  transform: scale(1.035);
}

.product-card:hover .product-card-media.has-hover-image .product-card-image-primary,
.product-card:focus-within .product-card-media.has-hover-image .product-card-image-primary {
  opacity: 0;
  transform: scale(1.01);
}

.product-card:hover .product-card-media.has-hover-image .product-card-image-hover,
.product-card:focus-within .product-card-media.has-hover-image .product-card-image-hover {
  opacity: 1;
  transform: scale(1.035);
}

.card-supplier-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 58px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.card-supplier-logo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  transition: none;
  transform: none;
}

.product-card:hover .card-supplier-logo img,
.product-card:focus-within .card-supplier-logo img {
  transform: none;
}

.product-type,
.product-card h3,
.product-card p,
.price {
  margin-left: 18px;
  margin-right: 18px;
}

.product-type {
  width: fit-content;
  margin-top: 16px;
  color: var(--action);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--action-soft);
}

.product-card h3 {
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.product-card p {
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.price {
  align-self: end;
  margin-bottom: 18px;
  color: var(--green-dark);
}

.price small,
.detail-price small {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 650;
  text-decoration: line-through;
}

.price small:first-child,
.detail-price small:first-child {
  margin-left: 0;
  margin-right: 6px;
}

.api-product-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 190px);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(220, 228, 222, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.api-product-tools select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.api-search-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.api-filter-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100svh - 116px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(220, 228, 222, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.filter-panel-head,
.results-toolbar,
.supplier-detail-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-panel-head h2 {
  font-size: 1.22rem;
}

.filter-reset {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(63, 69, 65, 0.22);
  border-radius: 8px;
  color: var(--action);
  background: var(--action-soft);
  cursor: pointer;
  font-weight: 800;
}

.filter-reset:hover,
.filter-reset:focus {
  color: var(--paper);
  background: var(--action);
  border-color: var(--action);
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.active-filter-row[hidden] {
  display: none;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(63, 69, 65, 0.26);
  border-radius: 8px;
  color: var(--action);
  background: var(--action-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
}

.active-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-chip strong {
  color: var(--clay);
}

.api-filter-group {
  border-top: 1px solid rgba(220, 228, 222, 0.88);
  padding: 14px 0;
}

.api-filter-group:first-child {
  border-top: 0;
}

.api-filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

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

.api-filter-group summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.api-filter-options {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.api-filter-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
}

.api-filter-option:hover {
  background: var(--surface);
  color: var(--ink);
}

.api-filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--action);
}

.api-filter-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.api-filter-option small {
  color: var(--green-dark);
  font-weight: 800;
}

.api-results {
  min-width: 0;
}

.api-search-section {
  padding-top: 48px;
}

.results-toolbar {
  min-height: 44px;
  margin-bottom: 16px;
  padding: 0 2px;
}

.results-toolbar p,
.api-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.api-card a {
  grid-template-rows: auto auto auto 1fr auto auto;
}

.api-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 18px 16px;
}

.api-card-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #f0f6f1;
  font-size: 0.78rem;
  font-weight: 780;
}

.api-status {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(220, 228, 222, 0.92);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.api-status p {
  margin-top: 0;
}

.api-status-error {
  border-color: rgba(180, 95, 60, 0.38);
  color: #823d25;
  background: #fff6f1;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination a {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 750;
}

.pagination a:hover,
.pagination a:focus,
.pagination a.is-active {
  color: var(--paper);
  background: var(--action);
  border-color: var(--action);
}

.api-product-hero {
  background: var(--canvas);
}

.api-gallery-open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.api-gallery-open:focus {
  outline: 3px solid rgba(63, 69, 65, 0.32);
  outline-offset: 3px;
}

.api-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sage);
}

.api-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.api-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.api-gallery-thumb.is-active,
.api-gallery-thumb:hover,
.api-gallery-thumb:focus {
  border-color: var(--action);
}

.api-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
  background: var(--sage);
}

.api-gallery-thumbs > img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sage);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(44px, 64px) minmax(0, 1fr) minmax(44px, 64px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px;
  background: rgba(8, 12, 10, 0.94);
}

body.is-gallery-open {
  overflow: hidden;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
  cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus,
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus {
  background: rgba(255, 255, 255, 0.18);
}

.gallery-lightbox-close {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0 16px;
}

.gallery-lightbox figure {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 0;
}

.gallery-lightbox figure > img {
  max-width: 100%;
  max-height: min(72svh, 780px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #111713;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.gallery-lightbox figcaption {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.gallery-lightbox-prev {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: center;
}

.gallery-lightbox-next {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: center;
}

.gallery-lightbox-nav span {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.gallery-lightbox-thumbs {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gallery-lightbox-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.gallery-lightbox-thumb.is-active,
.gallery-lightbox-thumb:hover,
.gallery-lightbox-thumb:focus {
  border-color: var(--paper);
}

.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  background: var(--sage);
}

.api-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.api-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(220, 228, 222, 0.92);
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 800;
}

.api-description p,
.api-description div,
.api-description ul {
  color: var(--muted);
}

.api-description p,
.api-description div {
  margin: 0 0 14px;
}

.api-description ul {
  padding-left: 20px;
}

.supplier-detail-panel {
  align-items: flex-start;
}

.supplier-detail-panel h2 {
  font-size: 2.4rem;
}

.supplier-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.product-side-stack {
  display: grid;
  gap: 26px;
  align-content: start;
}

.supplier-contact-card {
  padding-top: 24px;
  border-top: 1px solid rgba(16, 24, 20, 0.12);
}

.supplier-contact-card h2 {
  margin: 0 0 14px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.supplier-contact-logo {
  width: 104px;
  max-height: 66px;
  object-fit: contain;
  margin-bottom: 14px;
  border: 0;
  background: transparent;
}

.supplier-contact-logo-fallback {
  display: grid;
  place-items: center;
  height: 62px;
  color: var(--green-dark);
  font-size: 1.8rem;
  font-weight: 850;
}

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

.supplier-contact-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 650;
}

.supplier-contact-row > span:last-child {
  min-width: 0;
}

.supplier-contact-row > span:only-child {
  grid-column: 1 / -1;
}

.supplier-contact-row:hover,
.supplier-contact-row:focus {
  color: var(--green-dark);
}

.supplier-contact-whatsapp {
  color: #0bbf4f;
}

.supplier-contact-address {
  font-size: 0.9rem;
}

.supplier-contact-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.supplier-contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tile-calculator-section {
  background: var(--paper);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.82fr);
  gap: 34px;
  align-items: start;
}

.calculator-grid > div > p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.tile-calculator {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(220, 228, 222, 0.92);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tile-calculator label {
  display: grid;
  gap: 7px;
  color: var(--green-dark);
  font-weight: 850;
}

.tile-calculator input,
.tile-calculator select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.calculator-results {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(220, 228, 222, 0.92);
  border-radius: 8px;
  background: var(--paper);
}

.calculator-results p {
  margin: 0;
  color: var(--muted);
}

.calculator-results dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.calculator-results div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calculator-results div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.calculator-results dt {
  color: var(--muted);
}

.calculator-results dd {
  margin: 0;
  color: var(--green-dark);
  font-weight: 850;
  text-align: right;
}

.calculator-note {
  margin-top: 12px;
  font-size: 0.86rem;
}

.api-related-section[hidden] {
  display: none;
}

.supplier-band {
  background: #edf4ef;
}

.supplier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supplier-list a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-dark);
  border: 1px solid var(--line);
  font-weight: 750;
}

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

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  background: #111713;
  color: var(--paper);
}

.contact-section .eyebrow {
  color: #f2c78f;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.contact-panel .button-outline {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.site-footer {
  padding: 36px 0;
  background: #0e1511;
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: var(--paper);
}

.site-footer p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 78px 0 66px;
  background: var(--canvas);
  border-bottom: 1px solid rgba(220, 228, 222, 0.78);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
}

.page-hero h1 {
  font-size: 5rem;
}

.page-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.content-band {
  background: var(--paper);
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.text-columns article {
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.text-columns h3 {
  margin-bottom: 8px;
}

.text-columns p {
  margin: 0;
  color: var(--muted);
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.supplier-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  align-items: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.supplier-card:hover,
.supplier-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(22, 119, 90, 0.24);
}

.supplier-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px;
}

.supplier-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.supplier-card a {
  color: var(--green-dark);
  font-weight: 850;
}

.product-detail-hero {
  padding: 76px 0;
  background: var(--canvas);
  border-bottom: 1px solid rgba(220, 228, 222, 0.78);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
}

.product-detail-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(220, 228, 222, 0.9);
  box-shadow: var(--shadow);
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail-copy h1 {
  font-size: 4.25rem;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.detail-price {
  display: block;
  margin-top: 22px;
  color: var(--green-dark);
  font-size: 1.45rem;
}

.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 40px;
  align-items: start;
}

.product-description p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 901px) and (max-width: 1280px) {
  .product-detail-hero {
    padding: 56px 0;
  }

  .product-detail-grid {
    grid-template-columns: minmax(350px, 0.82fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: start;
  }

  .product-detail-media .api-gallery-main {
    aspect-ratio: 1 / 0.84;
  }

  .product-detail-copy h1 {
    font-size: 3.35rem;
    line-height: 1.1;
  }

  .product-detail-copy .lead {
    font-size: 1.04rem;
  }

  .product-info-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: 30px;
  }
}

.spec-card {
  padding: 22px;
  border: 1px solid rgba(220, 228, 222, 0.92);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.spec-card h2 {
  font-size: 1.4rem;
}

.spec-card ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.spec-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.spec-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-card span {
  color: var(--muted);
}

.catalog-hero img {
  object-position: center;
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero-copy {
    font-size: 1.15rem;
  }

  .page-hero h1 {
    font-size: 3.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    padding: 16px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
  }

  .quick-grid,
  .category-grid,
  .partner-logo-grid,
  .product-grid,
  .faq-grid,
  .text-columns,
  .supplier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .product-heading,
  .contact-grid,
  .page-hero .container,
  .product-detail-grid,
  .product-info-grid,
  .calculator-grid,
  .api-search-layout {
    grid-template-columns: 1fr;
  }

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

  .product-detail-copy h1 {
    font-size: 3.6rem;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .page-hero h1 {
    font-size: 2.65rem;
  }

  .product-detail-copy h1 {
    font-size: 2.5rem;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 68px;
    gap: 12px;
  }

  .brand img {
    width: 126px;
    height: 38px;
  }

  .nav-links {
    inset: 68px 0 auto 0;
  }

  .hero {
    min-height: calc(100svh - 110px);
  }

  .hero-content {
    padding: 52px 0 76px;
  }

  .quick-grid,
  .category-grid,
  .partner-logo-grid,
  .product-grid,
  .faq-grid,
  .text-columns,
  .supplier-grid {
    grid-template-columns: 1fr;
  }

  .quick-item,
  .quick-item:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 62px 0;
  }

  .hero-actions,
  .filter-row {
    gap: 8px;
  }

  .button,
  .filter-chip {
    width: 100%;
  }

  .api-search-section {
    padding-top: 34px;
  }

  .section-heading,
  .product-heading {
    gap: 14px;
  }

  .api-product-tools {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .product-card a {
    grid-template-rows: auto auto auto auto auto;
  }

  .product-card h3,
  .product-card p,
  .price {
    margin-left: 14px;
    margin-right: 14px;
  }

  .product-type {
    margin-left: 14px;
    margin-right: 14px;
  }

  .product-detail-hero {
    padding: 42px 0;
  }

  .product-detail-media {
    box-shadow: var(--shadow-soft);
  }

  .product-detail-copy .hero-actions {
    margin-top: 22px;
  }

  .supplier-contact-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    overflow-wrap: break-word;
  }

  .api-product-tools,
  .supplier-detail-panel {
    grid-template-columns: 1fr;
  }

  .filter-panel-head,
  .results-toolbar,
  .supplier-detail-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-reset,
  .supplier-actions,
  .supplier-actions .button {
    width: 100%;
  }

  .supplier-actions {
    justify-content: flex-start;
  }

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

  .calculator-results dd {
    text-align: left;
  }

  .supplier-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .supplier-card img {
    width: 64px;
    height: 64px;
  }

  .card-supplier-logo {
    width: 50px;
    height: 36px;
    top: 10px;
    right: 10px;
  }

  .gallery-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px;
  }

  .gallery-lightbox figure > img {
    max-height: 68svh;
  }

  .gallery-lightbox-thumb {
    width: 62px;
    height: 48px;
  }
}
