.mobile-catalog-link { display: none; }

.site-header .main-nav a.nav-catalog-text {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-weight: 800;
}
.site-header .main-nav a.nav-catalog-text svg { display: none !important; }
.site-header .main-nav a.nav-catalog-text:hover { color: var(--orange, #f2682b); }

@media (max-width: 640px) {
  .site-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 6px;
    align-items: center;
  }
  .site-header > .brand { grid-column: 1; justify-self: start; }
  .site-header > .mobile-catalog-link {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #d9e2e4;
    border-radius: 999px;
    color: var(--ink, #10242c);
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 36, 44, .05);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s, background .18s, transform .18s;
  }
  .site-header > .mobile-catalog-link svg {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    fill: var(--orange, #f2682b);
  }
  .site-header > .mobile-catalog-link:hover {
    border-color: var(--orange, #f2682b);
    background: #fff8f3;
    transform: translateY(-1px);
  }
  .site-header > .mobile-catalog-link:focus-visible {
    outline: 2px solid var(--orange, #f2682b);
    outline-offset: 3px;
  }
  .site-header > .header-actions {
    grid-column: 3;
    justify-self: end;
    margin-left: 0 !important;
    gap: 6px;
  }
  .site-header .header-actions .header-quote {
    position: fixed !important;
    z-index: 1000;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 40px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 13px !important;
    overflow: visible !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 22px rgba(16, 36, 44, .22);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .site-header.is-scrolled .header-actions .header-quote {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateY(0);
  }
}
@media (max-width: 370px) {
  .site-header { padding-left: 8px !important; padding-right: 8px !important; }
  .site-header > .brand { width: 76px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions .language-control {
    flex: 0 0 65px;
    width: 65px;
  }
  .site-header .header-actions .language-trigger {
    width: 100%;
    min-width: 0;
    justify-content: space-evenly;
    gap: 3px;
    padding-inline: 4px;
  }
}

@media (max-width: 640px) {
  .site-header .main-nav a.nav-catalog-text {
    align-self: stretch !important;
    justify-content: flex-start !important;
    text-align: left;
    margin: 0;
    padding: 0 !important;
    font-weight: 700;
  }
}

/* Keep the mobile catalog pill centered; use the freed language slot for the quote CTA while scrolling. */
@media (max-width: 640px) {
  .site-header > .mobile-catalog-link {
    min-height: 42px;
    padding-inline: 13px;
    gap: 7px;
    font-size: 13px;
  }
  .site-header > .mobile-catalog-link svg {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }
  .site-header .header-actions .header-quote {
    position: static !important;
    right: auto;
    bottom: auto;
    display: none !important;
    width: auto;
    min-width: 0;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(16, 36, 44, .14);
    font-size: 11px;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: translateY(-3px);
  }
  .site-header.is-scrolled .header-actions .language-control {
    display: none !important;
  }
  .site-header.is-scrolled .header-actions .header-quote {
    display: inline-flex !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: none;
  }
}
@media (max-width: 370px) {
  .site-header > .mobile-catalog-link {
    min-height: 38px;
    padding-inline: 9px;
    gap: 5px;
    font-size: 12px;
  }
  .site-header .header-actions .header-quote {
    width: 34px;
    min-width: 34px;
    padding: 0 !important;
    font-size: 0;
  }
  .site-header .header-actions .header-quote svg {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 640px) {
  .site-header .header-actions .header-quote {
    gap: 3px;
    padding-inline: 5px !important;
    font-size: 10px;
  }
  .site-header .header-actions .header-quote svg {
    display: none;
  }
}
@media (max-width: 370px) {
  .site-header .header-actions .header-quote svg {
    display: block;
  }
}
/* Expanded scrolled header: hide language, keep the full quote CTA centered on its own row. */
@media (max-width: 640px) {
  .site-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .site-header > .brand { grid-column: 1; grid-row: 1; }
  .site-header > .mobile-catalog-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .site-header.is-scrolled {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: auto auto;
    row-gap: 4px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .site-header.is-scrolled .header-actions {
    display: contents !important;
  }
  .site-header.is-scrolled .header-actions .language-control {
    display: none !important;
  }
  .site-header.is-scrolled .header-actions .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .site-header.is-scrolled .header-actions .header-quote {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    min-width: 0;
    justify-self: center;
    min-height: 38px !important;
    padding: 0 16px !important;
    gap: 8px;
    font-size: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: none;
  }
  .site-header.is-scrolled .header-actions .header-quote svg {
    display: block;
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 370px) {
  .site-header { padding-left: 8px !important; padding-right: 8px !important; }
}
/* Keep the full quote button beside the centered catalog in the sticky mobile header. */
.mobile-header-actions { display: none !important; }
@media (max-width: 640px) {
  .site-header { padding-left: 16px !important; padding-right: 16px !important; }
  .site-header.is-scrolled { height: auto !important; min-height: 0 !important; }
  .site-header.is-scrolled .header-actions { display: flex !important; }
  .site-header.is-scrolled .header-actions .language-control { display: none !important; }
  .site-header .mobile-header-actions {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    transform: translate(-50%, -50%);
  }
  .site-header .mobile-header-actions .mobile-catalog-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #d9e2e4;
    border-radius: 999px;
    color: var(--ink, #10242c);
    background: #fff;
    box-shadow: 0 2px 8px rgba(16,36,44,.05);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }
  .site-header .mobile-header-actions .mobile-catalog-link svg {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: var(--orange, #f2682b);
  }
  .site-header .mobile-header-actions .header-quote {
    position: static !important;
    display: none !important;
    width: auto;
    min-width: 0;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: none;
  }
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }
  .site-header .mobile-header-actions .header-quote svg {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }
  .site-header.is-scrolled .mobile-header-actions {
    left: calc(50% + 20px);
    gap: 4px;
  }
  .site-header .mobile-header-actions .mobile-catalog-link:hover {
    border-color: var(--orange, #f2682b);
    background: #fff8f3;
  }
}
@media (max-width: 370px) {
  .site-header { padding-left: 8px !important; padding-right: 8px !important; }
  .site-header .mobile-header-actions { gap: 5px; }
  .site-header .mobile-header-actions .mobile-catalog-link {
    min-height: 38px;
    padding-inline: 9px;
    gap: 5px;
    font-size: 12px;
  }
  .site-header .mobile-header-actions .header-quote {
    min-height: 34px !important;
    padding-inline: 6px !important;
    gap: 4px;
    font-size: 10px;
  }
  .site-header .mobile-header-actions .header-quote svg {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
  .site-header.is-scrolled .mobile-header-actions { left: calc(50% + 18px); }
}

@media (max-width: 640px) {
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    padding: 0 8px !important;
    gap: 5px;
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    padding: 0 4px !important;
    gap: 3px;
    font-size: 9.5px;
  }
}
@media (max-width: 640px) {
  .site-header.is-scrolled {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    column-gap: 6px;
    row-gap: 0;
  }
  .site-header.is-scrolled .mobile-header-actions {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    left: auto;
    top: auto;
    justify-self: center;
    max-width: 100%;
    transform: none;
    gap: 3px;
  }
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    width: auto;
    max-width: 95px;
    padding: 0 6px !important;
    gap: 3px;
    font-size: 10.5px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }
}
@media (max-width: 370px) {
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    width: 90px;
    max-width: 90px;
    padding: 0 4px !important;
    font-size: 9.5px;
  }
}
@media (max-width: 640px) {
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    padding: 0 7px !important;
    gap: 5px;
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .site-header.is-scrolled .mobile-header-actions .header-quote {
    padding: 0 4px !important;
    gap: 3px;
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .site-header.is-scrolled .mobile-header-actions { gap: 10px; }
}