/* One consistent header: independent dropdown layering, generous actions, geometric chevrons. */
.tm-store-header .tm-header-main {
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: clamp(20px, 2.6vw, 38px);
  min-height: 112px;
}
.tm-store-header .tm-brand { min-width: 0; }
.tm-store-header .tm-header-actions {
  flex: none;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}
.tm-store-header .tm-product-search { min-width: 0; }
.tm-store-header .tm-product-search input {
  min-height: 54px;
  border: 1px solid #d4dcda;
  border-radius: 9px;
  background: #f5f7f6;
  font-size: 17px;
}
.tm-store-header .tm-header-contact { position: relative; z-index: auto; }
.tm-store-header .tm-header-contact[open] { z-index: 80; }
.tm-store-header .tm-header-contact > summary,
.tm-store-header .tm-cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d4dcda;
  border-radius: 9px;
  background: #fff;
  color: #202d29;
  font: 700 16px/1.25 Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.tm-store-header .tm-header-contact > summary::marker { content: ''; }
.tm-store-header .tm-header-contact > summary::-webkit-details-marker { display: none; }
.tm-store-header .tm-header-contact > summary > svg,
.tm-store-header .tm-cart-trigger > svg { flex: none; width: 23px; height: 23px; }
.tm-store-header .tm-cart-trigger { background: #f3f6f4; border-color: #cbd8d1; }
.tm-store-header .tm-cart-trigger [data-tm-cart-count] {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  margin-left: 2px;
  border-radius: 20px;
  background: #214f3e;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tm-store-header .tm-cart-trigger [hidden] { display: none; }
.tm-store-header .tm-header-contact > summary:hover,
.tm-store-header .tm-header-contact[open] > summary,
.tm-store-header .tm-cart-trigger:hover { background: #edf3ef; border-color: #91aa9d; }
.tm-store-header .tm-header-contact > summary:focus-visible,
.tm-store-header .tm-cart-trigger:focus-visible,
.tm-store-header .tm-mega > summary:focus-visible { outline: 3px solid #197eae; outline-offset: 3px; border-radius: 8px; }
.tm-store-header .tm-header-contact__panel {
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: 350px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  white-space: normal;
  border: 1px solid #d6e0da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(25 45 36 / 16%), 0 2px 8px rgb(25 45 36 / 5%);
}
.tm-store-header .tm-header-contact__panel > strong { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.tm-store-header .tm-header-contact__panel > a { gap: 14px; line-height: 1.4; }
.tm-store-header .tm-header-contact__panel > a > svg { color: #315e49; }
.tm-store-header .tm-header-contact__panel small { margin-top: 3px; }
.tm-store-header .tm-header-contact__panel p { font-size: 14px; font-weight: 400; line-height: 1.6; padding-top: 16px; margin-top: 8px; }
.tm-store-header .tm-mega > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  line-height: 1.25;
  white-space: nowrap;
}
.tm-store-header .tm-mega > summary > svg { flex: none; }
.tm-store-header .tm-contact-chevron,
.tm-store-header .tm-mega-chevron {
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  align-self: center;
  transform: none;
}
.tm-store-header .tm-mega-chevron { margin-left: 12px; }
.tm-store-header .tm-contact-chevron { margin-left: 2px; }
.tm-store-header .tm-contact-chevron::before,
.tm-store-header .tm-mega-chevron::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.tm-store-header .tm-header-contact[open] > summary .tm-contact-chevron::before,
.tm-store-header .tm-mega[open] > summary .tm-mega-chevron::before { transform: translateY(2px) rotate(225deg); }
.tm-store-header .tm-mega[open] > summary .tm-mega-chevron { transform: none; }
@media (max-width: 1100px) {
  .tm-store-header .tm-header-main { grid-template-columns: minmax(0,1fr) auto; gap: 18px 24px; padding-block: 20px; }
  .tm-store-header .tm-logo { width: 210px; height: auto; }
  .tm-store-header .tm-product-search { grid-row: 2; grid-column: 1 / -1; max-width: none; }
  .tm-store-header .tm-header-actions { grid-row: 1; grid-column: 2; }
}
@media (max-width: 700px) {
  .tm-store-header .tm-header-main { gap: 16px 12px; padding-block: 16px; }
  .tm-store-header .tm-logo { width: 185px; max-width: 42vw; height: auto; }
  .tm-store-header .tm-brand > span { display: none; }
  .tm-store-header .tm-header-actions { position: relative; gap: 8px; }
  .tm-store-header .tm-header-contact { position: static; }
  .tm-store-header .tm-header-contact > summary { padding: 11px; min-width: 46px; min-height: 48px; }
  .tm-store-header .tm-header-contact > summary > span:not(.tm-contact-chevron),
  .tm-store-header .tm-cart-trigger > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .tm-store-header .tm-header-contact > summary .tm-contact-chevron { display: none; }
  .tm-store-header .tm-cart-trigger { padding: 10px 12px; min-height: 48px; gap: 7px; }
  .tm-store-header .tm-header-contact__panel { right: 0; width: min(350px, calc(100vw - 32px)); padding: 22px; }
  .tm-store-header .tm-product-search input { min-height: 50px; font-size: 16px; }
  .tm-store-header .tm-mega > summary { padding: 12px 15px; gap: 10px; font-size: 16px; }
  .tm-store-header .tm-mega-chevron { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-store-header .tm-header-contact > summary,
  .tm-store-header .tm-cart-trigger { transition: none; }
}
