/* Thermomac theme extras on top of the compiled Tailwind design */

body { font-family: "Barlow", ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, h4 { font-family: "Archivo", ui-sans-serif, system-ui, sans-serif; }

.site-header .logo {
  min-width: 0;
  max-width: min(168px, calc(100vw - 8.75rem));
}

.site-header .logo img,
footer a img,
footer .tm-footer-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.tm-footer-logo-link {
  display: inline-block;
}

@media (min-width: 640px) {
  .site-header .logo {
    max-width: 240px;
  }
  .site-header .logo img,
  footer a img,
  footer .tm-footer-logo {
    max-height: 42px;
  }
}

@media (min-width: 1024px) {
  .site-header .logo {
    max-width: 300px;
  }
  .site-header .logo img,
  footer a img,
  footer .tm-footer-logo {
    max-width: 300px;
    max-height: 50px;
  }
}

@media (min-width: 1024px) {
  .site-header .main-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    min-width: 0;
  }
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 160px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.lang-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .55rem .75rem;
  font-size: 12px;
}
.lang-menu li button:hover,
.lang-menu li button.is-active { color: var(--brand); }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.is-open,
.mobile-nav:not([hidden]) { display: block; }
.site-header .mobile-nav[hidden] { display: none; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(27, 39, 68, .5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
}
.search-overlay.is-open,
.search-overlay:not([hidden]) { display: flex; }
.search-overlay[hidden] { display: none; }
.search-overlay-panel { width: min(720px, 100%); }
.search-modal {
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: 0 24px 60px rgba(27, 39, 68, .18);
  padding-bottom: 1.5rem;
}
.search-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem .35rem;
}
.search-modal-title {
  margin: 0;
  color: #1b2744;
  font-size: 1.05rem;
  font-weight: 700;
}
.search-modal-sub {
  margin: .2rem 0 0;
  color: #7b8494;
  font-size: .78rem;
}
.search-modal-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #7b8494;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.search-modal-close:hover { color: #1b2744; }
.search-modal-form {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .55rem 1.15rem 0;
  padding: .7rem .85rem;
  border: 1px solid #e4e9f0;
  background: #f8fafc;
}
.search-modal-form svg { color: var(--brand, #dc2626); flex-shrink: 0; }
.search-modal-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1b2744;
  font-size: .95rem;
  outline: none;
}
.search-modal-submit {
  flex-shrink: 0;
  min-width: 7.25rem;
  border: 0;
  background: var(--brand, #dc2626);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .5rem 1.75rem;
  cursor: pointer;
}
.search-modal-results {
  margin-top: .65rem;
  max-height: min(62vh, 460px);
  overflow: auto;
  border-top: 1px solid #eef1f5;
}
.search-modal-status {
  padding: .9rem 1.15rem;
  color: #7b8494;
  font-size: .85rem;
}
.search-modal .search-result-item {
  align-items: flex-start;
  padding: .8rem 1.15rem;
}
.search-modal .search-result-image {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #eef1f5;
}
.search-result-info { min-width: 0; }
.search-result-name {
  color: #1b2744;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  margin-top: .2rem;
  color: #7b8494;
  font-size: .72rem;
  font-weight: 600;
}
.search-result-excerpt {
  margin-top: .25rem;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.4;
}
.search-modal .search-result-item.active,
.search-modal .search-result-item:hover {
  background: #f8fafc;
}
.search-modal-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 1.15rem;
  border-top: 1px solid #eef1f5;
  color: var(--brand, #dc2626);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.search-modal-all[hidden] { display: none; }
.search-modal-all:hover { background: #fff5f5; }

.tm-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
}
.tm-back-top svg { width: 16px; height: 16px; }

.hero-dots button {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--navy) 30%, transparent);
}
.hero-dots button[aria-selected="true"] {
  width: 1.5rem;
  background: var(--brand);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.pagination a,
.pagination span {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: .75rem;
  color: var(--navy);
}
.pagination .is-active,
.pagination span.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.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;
}

.tm-icon-cards-plain-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .tm-icon-cards-plain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tm-catalog {
  display: grid;
  gap: 2rem;
}
.tm-catalog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.tm-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.tm-catalog-count {
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.tm-catalog-sort select {
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--navy);
  padding: .45rem .7rem;
  font-size: .8rem;
}
.catalog-filters { min-width: 0; }
.catalog-filters-details { background: transparent; }
.catalog-filters-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
}
.catalog-filters-summary::-webkit-details-marker { display: none; }
.catalog-filters-head {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .25rem;
}
.catalog-filters-head .section-rule { margin: 0; }
.catalog-filters-form { padding: .35rem 1rem 1.15rem; display: grid; gap: 1rem; }
.catalog-filter-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .45rem;
}
.catalog-filter-input,
.catalog-filters input[type="search"],
.catalog-filters input[type="text"] {
  width: 100%;
  border: 1px solid var(--input);
  background: var(--background);
  padding: .55rem .75rem;
  font-size: .875rem;
  color: var(--navy);
}
.catalog-filter-checks {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.catalog-filter-checks--scroll {
  max-height: 18.5rem;
  overflow-y: auto;
}
.catalog-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: .55rem .65rem;
  font-size: .8rem;
  color: var(--navy);
  cursor: pointer;
}
.catalog-check:last-child { border-bottom: 0; }
.catalog-check--solo {
  border: 1px solid var(--border);
}
.catalog-check input {
  accent-color: var(--brand);
  width: .9rem;
  height: .9rem;
  flex-shrink: 0;
}
.catalog-check span { flex: 1; min-width: 0; line-height: 1.3; }
.catalog-check em,
.catalog-filter-links em {
  margin-left: auto;
  font-style: normal;
  font-size: .7rem;
  color: var(--muted-foreground);
}
.catalog-filter-links {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.catalog-filter-links a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--navy);
}
.catalog-filter-links a:last-child { border-bottom: 0; }
.catalog-filter-links a:hover { color: var(--brand); }
.catalog-filters-clear {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.catalog-filter-submit {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1rem;
  font-size: .8rem;
  font-weight: 700;
}
.catalog-filter-submit:hover { opacity: .92; }
@media (min-width: 640px) {
  .tm-catalog-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 981px) {
  .tm-catalog {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }
  .tm-catalog-aside {
    position: sticky;
    top: 1.25rem;
  }
  .catalog-filters-summary { display: none; }
  .catalog-filters-head { display: flex; }
  .tm-catalog-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .tm-catalog { grid-template-columns: 300px minmax(0, 1fr); }
  .tm-catalog-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.product-quote-form label,
.contact-form label { display: block; }
.product-quote-form input,
.product-quote-form textarea,
.product-quote-form select,
.contact-form input,
.contact-form textarea,
.contact-form select,
.js-ajax-form input,
.js-ajax-form textarea,
.js-ajax-form select {
  width: 100%;
  border: 1px solid var(--input);
  background: var(--background);
  padding: .65rem .75rem;
  font-size: .875rem;
  color: var(--navy);
}
.invalid-feedback { display: block; min-height: .9rem; font-size: .7rem; color: var(--brand); }
.is-invalid { border-color: var(--brand) !important; }
.is-hidden { display: none !important; }
.field.error input,
.field.error textarea { border-color: var(--brand); }

.variant-matrix { width: 100%; border-collapse: collapse; font-size: .8rem; }
.variant-matrix th,
.variant-matrix td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; }
.variant-matrix th { background: var(--secondary); color: var(--navy); font-weight: 600; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.8);
  padding: 2rem;
}
.image-lightbox.is-open { display: grid; }
.image-lightbox img { max-width: min(90vw, 900px); max-height: 85vh; object-fit: contain; }
.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: #fff;
}

.product-richtext,
.post-content,
.text-content {
  color: var(--muted-foreground);
  font-size: .875rem;
  line-height: 1.7;
}
.product-richtext p,
.post-content p,
.text-content p { margin-bottom: .9rem; }
.product-richtext ul,
.post-content ul { margin: .75rem 0 1rem 1.1rem; list-style: disc; }
.product-richtext ol,
.post-content ol { margin: .75rem 0 1rem 1.2rem; list-style: decimal; }
.product-richtext li,
.post-content li { margin-bottom: .35rem; }
.product-richtext h2,
.post-content h2 { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.product-richtext h3,
.post-content h3 { color: var(--navy); font-size: 1rem; font-weight: 700; margin: 1.2rem 0 .5rem; }

.header-top-bar { font-size: 13px; }
.header-top-bar a { color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.15rem;
  font-size: .875rem;
  font-weight: 600;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border: 1px solid color-mix(in oklab, var(--navy) 40%, transparent); color: var(--navy); }
.btn-sm { padding: .45rem .8rem; font-size: .75rem; }
.btn-white { background: #fff; color: var(--navy); }

.section { padding: 3.5rem 0; }
.lead { color: var(--muted-foreground); }

.js-form-submit.is-loading { opacity: .7; }
.btn-loading.is-hidden,
.btn-text.is-hidden { display: none; }

.hero-slide { min-height: 0; gap: 1rem; }
.hero #heroSlider {
  padding-top: 1.15rem;
  padding-bottom: 1rem;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.hero #heroSlider.is-dragging { cursor: grabbing; }
.hero #heroSlider a,
.hero #heroSlider button { cursor: pointer; user-select: auto; }
.hero-product-img {
  display: block;
  width: auto;
  max-width: min(100%, 20rem);
  max-height: 16rem;
  margin-inline: auto;
  object-fit: contain;
  pointer-events: none;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.75rem;
  margin-top: 1.1rem;
}
.hero-badges > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-badges > div > span:first-child {
  flex-shrink: 0;
}
.hero .hero-controls { margin-top: 0.75rem; }
@media (min-width: 640px) {
  .hero-product-img { max-height: 19.5rem; }
}
@media (min-width: 1024px) {
  .hero #heroSlider {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
  }
  .hero-slide { gap: 1.5rem; min-height: 20rem; }
  .hero-slide h1 { font-size: 2.85rem; }
  .hero-product-img {
    max-height: 23.5rem;
    max-width: 28rem;
    margin-inline: auto 0;
  }
}
.hero-slide:not(.is-active) {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.inner-layout { display: grid; gap: 1.5rem; }
@media (min-width: 992px) {
  .inner-layout { grid-template-columns: 260px 1fr; }
}
.news-grid,
.blog-grid,
.category-grid,
.catalog-list {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .news-grid, .blog-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.d-none { display: none !important; }
.d-flex { display: flex; }
.w-100 { width: 100%; }
.position-absolute { position: absolute; }
.row { display: flex; flex-wrap: wrap; }
.col-lg-12 { width: 100%; }
.mb-40px { margin-bottom: 2.5rem; }
.pt-60px { padding-top: 3.75rem; }
.pb-80px { padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.rounded-3 { border-radius: .5rem; }
.shadow-lg { box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.overflow-hidden { overflow: hidden; }
.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;
}

.search-autocomplete-results { background: #fff; z-index: 40; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--muted); }
.search-result-image { width: 48px; height: 48px; object-fit: contain; }
.search-highlight { background: color-mix(in oklab, var(--brand) 18%, transparent); }

details summary::-webkit-details-marker { display: none; }

.tm-feat-section {
  padding: 3.5rem 0;
  background: color-mix(in oklab, var(--secondary, #f4f6f9) 70%, #fff);
}
.tm-feat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.tm-feat-sub {
  margin-top: 0.65rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.tm-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
}
.tm-feat-cta svg { width: 14px; height: 14px; }
.tm-feat-cta:hover { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 55%, var(--border)); }
.tm-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.tm-feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.tm-feat-card:hover {
  border-color: color-mix(in oklab, var(--brand) 50%, var(--border));
  box-shadow: 0 14px 30px rgba(27, 39, 68, 0.08);
  transform: translateY(-3px);
}
.tm-feat-corner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  pointer-events: none;
}
.tm-feat-media {
  display: grid;
  place-items: center;
  height: 8.25rem;
  background: var(--secondary, #f4f6f9);
}
.tm-feat-media img {
  max-width: 78%;
  max-height: 6.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tm-feat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem 0.95rem 1rem;
  border-top: 1px solid var(--border);
}
.tm-feat-badge {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.tm-feat-code {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.tm-feat-name {
  display: block;
  margin-top: 0.25rem;
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.tm-feat-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.tm-feat-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
}
.tm-feat-more svg { width: 13px; height: 13px; transition: transform .2s ease; }
.tm-feat-card:hover .tm-feat-more svg { transform: translateX(3px); }
@media (min-width: 768px) {
  .tm-feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
  .tm-feat-media { height: 8.75rem; }
}
@media (min-width: 1100px) {
  .tm-feat-grid {
    grid-template-columns: repeat(var(--tm-feat-cols, 5), minmax(0, 1fr));
    gap: 1.15rem;
  }
  .tm-feat-media { height: 9.25rem; }
}
@media (max-width: 639px) {
  .tm-feat-head { flex-direction: column; align-items: flex-start; }
}

.tm-cat-section { padding: 3.5rem 0; }
.tm-cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 639px) {
  .tm-cat-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
.tm-cat-sub {
  margin-top: 0.65rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.tm-cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  transition: color .2s, border-color .2s, background .2s;
}
.tm-cat-cta svg { width: 14px; height: 14px; }
.tm-cat-cta:hover {
  color: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
}
.tm-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.tm-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.tm-cat-card:hover {
  border-color: color-mix(in oklab, var(--brand) 50%, var(--border));
  box-shadow: 0 14px 30px rgba(27, 39, 68, 0.08);
  transform: translateY(-3px);
}
.tm-cat-corner {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  pointer-events: none;
  border-color: var(--brand);
  transition: width .2s ease, height .2s ease;
}
.tm-cat-corner--tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.tm-cat-corner--br { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }
.tm-cat-card:hover .tm-cat-corner { width: 18px; height: 18px; }
.tm-cat-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 8.25rem;
  background:
    radial-gradient(ellipse at 50% 18%, color-mix(in oklab, var(--brand) 8%, transparent), transparent 58%),
    var(--secondary, #f4f6f9);
}
.tm-cat-media img {
  max-width: 78%;
  max-height: 6.4rem;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .35s ease;
}
.tm-cat-card:hover .tm-cat-media img { transform: scale(1.08); }
.tm-cat-index {
  position: absolute;
  top: 0.55rem;
  left: 0.7rem;
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--navy) 32%, transparent);
}
.tm-cat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem 0.95rem 1rem;
  border-top: 1px solid var(--border);
}
.tm-cat-name {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--navy);
}
.tm-cat-rule {
  display: block;
  width: 1.65rem;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--brand);
  transition: width .2s ease;
}
.tm-cat-card:hover .tm-cat-rule { width: 2.4rem; }
.tm-cat-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.5rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.tm-cat-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
}
.tm-cat-more svg {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}
.tm-cat-card:hover .tm-cat-more svg { transform: translateX(3px); }
@media (min-width: 768px) {
  .tm-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .tm-cat-media { height: 9.25rem; }
  .tm-cat-media img { max-height: 7.1rem; }
}
@media (min-width: 1100px) {
  .tm-cat-grid {
    grid-template-columns: repeat(var(--tm-cat-cols, 4), minmax(0, 1fr));
    gap: 1.2rem;
  }
  .tm-cat-media { height: 10rem; }
  .tm-cat-media img { max-height: 7.75rem; max-width: 82%; }
  .tm-cat-body { padding: 1rem 1.1rem 1.1rem; }
  .tm-cat-name { font-size: 0.82rem; }
}

.tm-cat-slider {
  --tm-cat-gap: 1.1rem;
  --tm-cat-cols: var(--tm-cat-cols-set, 4);
  position: relative;
}
.tm-cat-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--tm-cat-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .15rem .15rem .35rem;
}
.tm-cat-slider-track::-webkit-scrollbar { display: none; }
.tm-cat-slider-track .tm-cat-card {
  flex: 0 0 calc((100% - (var(--tm-cat-gap) * (var(--tm-cat-cols, 4) - 1))) / var(--tm-cat-cols, 4));
  scroll-snap-align: start;
  min-width: 0;
}
.tm-cat-slider-nav {
  position: absolute;
  top: 38%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(27, 39, 68, .12);
  cursor: pointer;
}
.tm-cat-slider-nav.is-prev { left: -.55rem; }
.tm-cat-slider-nav.is-next { right: -.55rem; }
.tm-cat-slider-nav:hover {
  color: var(--brand);
  border-color: color-mix(in oklab, var(--brand) 50%, var(--border));
}
.tm-cat-slider-nav:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: none;
}
@media (max-width: 767px) {
  .tm-cat-slider { --tm-cat-cols: 2; }
  .tm-cat-slider-nav.is-prev { left: 0; }
  .tm-cat-slider-nav.is-next { right: 0; }
}
@media (max-width: 479px) {
  .tm-cat-slider { --tm-cat-cols: 1; }
}

.tm-snap-slider {
  --tm-snap-gap: 1rem;
  --tm-snap-cols: var(--tm-snap-cols-set, 6);
  position: relative;
}
.tm-snap-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--tm-snap-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: .2rem .15rem .45rem;
}
.tm-snap-slider-track::-webkit-scrollbar { display: none; }
.tm-snap-slider-track > [data-snap-item] {
  flex: 0 0 calc((100% - (var(--tm-snap-gap) * (var(--tm-snap-cols, 6) - 1))) / var(--tm-snap-cols, 6));
  scroll-snap-align: start;
  min-width: 0;
}
.tm-snap-slider .tm-cat-slider-nav { top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .tm-snap-slider { --tm-snap-cols: 2; }
  .tm-snap-slider .tm-cat-slider-nav.is-prev { left: 0; }
  .tm-snap-slider .tm-cat-slider-nav.is-next { right: 0; }
}
@media (max-width: 479px) {
  .tm-snap-slider { --tm-snap-cols: 1; }
}

.tm-cert-section {
  padding: 2.75rem 0 3.15rem;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in oklab, var(--navy) 4%, transparent), transparent 58%),
    #f4f7fb;
}
.tm-cert-head { margin-bottom: 1.5rem; }
.tm-cert-sub {
  margin-top: 0.6rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.tm-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .tm-cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .tm-cert-grid {
    grid-template-columns: repeat(var(--tm-cert-cols, 6), minmax(0, 1fr));
  }
}
.tm-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 5.85rem;
  padding: 1.15rem 0.9rem;
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--navy) 7%, #e6ebf2);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(27, 39, 68, 0.05);
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tm-cert-card:hover {
  color: var(--navy);
  border-color: color-mix(in oklab, var(--brand) 42%, var(--border));
  box-shadow: 0 14px 28px rgba(27, 39, 68, 0.08);
  transform: translateY(-2px);
}
.tm-cert-logo {
  display: block;
  max-width: 78%;
  max-height: 2.85rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tm-cert-label {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--navy);
}

.tm-brands-frame {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}
.tm-brands-frame-inner {
  border: 1px solid color-mix(in oklab, var(--brand) 32%, var(--border));
  background: #fff;
}
.tm-brands-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 1.5rem 2.25rem;
  padding: 2.15rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tm-brands-row::-webkit-scrollbar { display: none; }
.tm-brands-item { flex: 0 0 auto; }
@media (min-width: 1100px) {
  .tm-brands-row {
    gap: 1.5rem 2rem;
    padding: 2.15rem 1.75rem;
  }
}
.tm-brands-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa3b2;
  text-decoration: none;
}
.tm-brands-name {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}
.tm-brands-item:hover,
.tm-brands-item:hover .tm-brands-name { color: var(--brand); }
.tm-brands-item.is-accent,
.tm-brands-item.is-accent .tm-brands-name { color: var(--brand); }
.tm-brands-logo {
  display: block;
  width: 164px;
  height: 64px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter .28s ease, opacity .28s ease, transform .28s ease;
}
.tm-brands-item:hover .tm-brands-logo,
.tm-brands-card:hover .tm-brands-logo,
.frame-red > :hover .tm-brands-logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}
.tm-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .tm-brands-grid {
    grid-template-columns: repeat(var(--tm-brands-cols, 4), minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .tm-brands-name { font-size: 1.45rem; }
}
.tm-brands-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: #fff;
  color: color-mix(in oklab, var(--navy) 70%, #9ca3af);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.tm-brands-card:hover { border-color: color-mix(in oklab, var(--brand) 60%, var(--border)); color: var(--brand); }
.tm-brands-card.is-accent { color: var(--brand); }
.tm-brands-card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.tm-brands-card-corner--tl { top: 0; left: 0; border-top: 2px solid var(--brand); border-left: 2px solid var(--brand); }
.tm-brands-card-corner--br { right: 0; bottom: 0; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.tm-brands-card .tm-brands-name { font-size: 1.35rem; }
.tm-brands-card .tm-brands-logo { width: 164px; height: 64px; }
@media (max-width: 639px) {
  .tm-brands-row { justify-content: center; }
  .tm-brands-name { font-size: 0.95rem; }
}

.tm-brands-slider {
  overflow: hidden;
}
.tm-brands-slider:not(.is-autoplay) {
  overflow-x: auto;
}
.tm-brands-slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.25rem;
  padding: 2.15rem 1.75rem;
}
.tm-brands-slider.is-autoplay .tm-brands-slider-track {
  animation: tm-brands-marquee var(--tm-brands-speed, 30s) linear infinite;
}
.tm-brands-slider.is-autoplay:hover .tm-brands-slider-track {
  animation-play-state: paused;
}
@keyframes tm-brands-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-rule::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
  background: var(--brand, #dc2626);
}
.tm-text-framed {
  padding-top: 3.5rem;
  padding-bottom: 0;
}
.tm-text-follow {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.product-richtext--on-navy,
.product-richtext--on-navy p,
.product-richtext--on-navy li {
  color: inherit;
}

.tm-product-sku {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tm-product-sku span {
  color: var(--muted-foreground, #6b7280);
  font-weight: 600;
}
.tm-product-sku strong {
  color: var(--brand, #dc2626);
  font-weight: 700;
}

.tm-product-gallery-stage {
  position: relative;
}
.tm-product-gallery-main {
  display: block;
  width: 100%;
  background: #fff;
}
.tm-product-gallery-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 22rem;
  object-fit: contain;
}
.tm-product-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--navy, #1b2744);
  transform: translateY(-50%);
}
.tm-product-gallery-nav:hover {
  border-color: var(--brand, #dc2626);
  color: var(--brand, #dc2626);
}
.tm-product-gallery-prev { left: .35rem; }
.tm-product-gallery-next { right: .35rem; }
.tm-product-gallery-counter {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 5;
  background: color-mix(in oklab, var(--navy, #1b2744) 82%, transparent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .2rem .5rem;
}
.tm-zoom-lens {
  position: absolute;
  z-index: 4;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--brand, #dc2626), 0 10px 28px rgba(0,0,0,.28);
  pointer-events: none;
  background-repeat: no-repeat;
  display: none;
}
.tm-zoom-lens.is-on {
  display: block;
}
.tm-zoom-hint {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  z-index: 5;
  display: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--navy, #1b2744) 82%, transparent);
  color: #fff;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tm-zoom-hint { display: grid; }
  .tm-product-gallery-stage.is-zooming {
    cursor: none;
  }
  .tm-product-gallery-stage.is-zooming .tm-zoom-hint {
    display: none;
  }
}
.tm-product-gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: .15rem;
}
.tm-product-gallery-thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  padding: .2rem;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
}
.tm-product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tm-product-gallery-thumb.is-active {
  border-color: var(--brand, #dc2626);
  box-shadow: 0 0 0 1px var(--brand, #dc2626);
}

.tm-product-tabs {
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #fff);
}
.tm-product-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.tm-product-tab {
  position: relative;
  flex: 1;
  padding: .95rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy, #1b2744);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tm-product-tab:hover {
  color: var(--brand, #dc2626);
}
.tm-product-tab.is-active {
  color: var(--brand, #dc2626);
  border-bottom-color: var(--brand, #dc2626);
}
.tm-product-tabs-panels {
  padding: 1.35rem 1.25rem 1.5rem;
}
.tm-product-tab-panel {
  display: none;
}
.tm-product-tab-panel.is-active {
  display: block;
}
@media (min-width: 640px) {
  .tm-product-tab {
    flex: 0 0 auto;
    min-width: 11rem;
  }
}
.tm-product-docs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tm-product-doc {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--navy, #1b2744);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .55rem .9rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.tm-product-doc:hover {
  border-color: var(--brand, #dc2626);
  color: var(--brand, #dc2626);
  background: #fff5f5;
}
.tm-spec-panel {
  padding: 0;
}
.tm-spec-sheet {
  display: grid;
  gap: 0;
  margin: 0;
  background: #fff;
  border-top: 1px solid #eceff3;
}
.tm-spec-row {
  display: grid;
  grid-template-columns: minmax(9rem, 38%) 1fr;
  min-height: 0;
  background: #fff;
  border-bottom: 1px solid #f1f3f6;
}
.tm-spec-row:last-child {
  border-bottom: 0;
}
.tm-spec-row dt,
.tm-spec-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  background: transparent;
}
.tm-spec-row dt {
  padding: .42rem .85rem .42rem 0;
  color: #7b8494;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
}
.tm-spec-row dd {
  padding: .42rem 0;
  color: #1b2744;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
}
.tm-spec-table {
  width: 100%;
  border-collapse: collapse;
}
.tm-spec-table th,
.tm-spec-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  vertical-align: top;
}
.tm-spec-table tr:last-child th,
.tm-spec-table tr:last-child td {
  border-bottom: 0;
}
.tm-spec-table th {
  width: 42%;
  color: #1b2744;
  font-size: .875rem;
  font-weight: 700;
}
.tm-spec-table td {
  color: #334155;
  font-size: .875rem;
}
.tm-spec-table tr:nth-child(even) th,
.tm-spec-table tr:nth-child(even) td {
  background: #f7f9fc;
}
