/* Header "In Stock" button — inc/stock-header.php */
.hft-sh { position: relative; }
.hft-sh__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 8px 6px 9px;
  border: 2px solid var(--red, #E8000D); border-radius: 4px;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: #111; background: #fff; text-decoration: none; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.hft-sh__btn:hover, .hft-sh__btn:focus-visible, .hft-sh__btn[aria-expanded="true"] { background: var(--red, #E8000D); color: #fff; }
.hft-sh__btn:hover .hft-sh__n, .hft-sh__btn:focus-visible .hft-sh__n, .hft-sh__btn[aria-expanded="true"] .hft-sh__n { background: #fff; color: var(--red, #E8000D); }
.hft-sh__btn:hover .hft-sh__dot, .hft-sh__btn[aria-expanded="true"] .hft-sh__dot { background: #fff; }
.hft-sh__n {
  min-width: 20px; padding: 3px 5px; border-radius: 3px; text-align: center;
  background: var(--red, #E8000D); color: #fff; font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.hft-sh__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red, #E8000D); flex: none; }
.hft-sh__ico { display: none; flex: none; width: 24px !important; height: 16px !important; max-width: none; }
.hft-sh.has-push .hft-sh__dot { animation: hft-sh-pulse 1.8s ease-out infinite; }
@keyframes hft-sh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,0,13,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(232,0,13,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,0,13,0); }
}
@media (prefers-reduced-motion: reduce) { .hft-sh.has-push .hft-sh__dot, .hft-sh.has-push .hft-sh__btn { animation: none; } }

.hft-sh__panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 10002;
  width: 380px; background: #fff; border-top: 3px solid var(--red, #E8000D);
  box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 8px 0 0; text-align: left;
}
.hft-sh__panel[hidden] { display: none; }
.hft-sh__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps hover alive across the gap */
.hft-sh__unit { display: flex; gap: 12px; align-items: center; padding: 8px 14px; text-decoration: none; color: #111; }
.hft-sh__unit:hover, .hft-sh__unit:focus-visible { background: #f4f4f4; }
.hft-sh__unit img, .hft-sh__noimg { width: 92px; height: 62px; object-fit: cover; flex: none; background: #eee; display: block; }
.hft-sh__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hft-sh__tag {
  align-self: flex-start; background: var(--red, #E8000D); color: #fff;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 2px; line-height: 1;
}
.hft-sh__name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.hft-sh__no { font-size: 12px; color: #666; letter-spacing: .03em; }
.hft-sh__all {
  display: block; margin-top: 6px; padding: 12px 14px; background: #111; color: #fff; text-decoration: none;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-size: 16px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.hft-sh__all:hover, .hft-sh__all:focus-visible { background: var(--red, #E8000D); color: #fff; }

/* Desktop: the button sits under the phone number, so the nav keeps its room */
@media (min-width: 1081px) {
  .header-cta-group.has-hft-sh,
  .header-cta-group:has(.hft-sh) { flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
}

/* Phones / tablets: left side of the header (logo is centered, menu on the right) */
@media (max-width: 1080px) {
  .hft-sh { position: absolute; left: 20px; top: 0; bottom: 0; display: flex; align-items: center; } /* no transform: it would trap the fixed panel */
  .hft-sh__btn { font-size: 14px; padding: 7px 9px; gap: 6px; }
  .hft-sh__panel { position: fixed; left: 0; right: 0; top: 140px; width: auto; max-height: calc(100vh - 150px); overflow-y: auto; }
}
@media (max-width: 560px) { /* phones: truck icon + count, so it never touches the centered logo */
  .hft-sh { left: 12px; }
  .hft-sh__lbl, .hft-sh__dot { display: none; }
  .hft-sh__ico { display: block; }
  .hft-sh__btn { padding: 6px 7px; gap: 5px; }
  .hft-sh.has-push .hft-sh__btn { animation: hft-sh-pulse 1.8s ease-out infinite; }
}
@media (max-width: 360px) {
  .hft-sh { left: 8px; }
  .hft-sh__btn { padding: 5px 6px; gap: 4px; }
  .hft-sh__ico { width: 20px !important; height: 14px !important; }
  .hft-sh__n { font-size: 13px; min-width: 18px; padding: 2px 4px; }
}

/* ── Phones / tablets: "In stock" strip under the header, above the hero ── */
.hft-sh-strip { display: none; }
@media (max-width: 1080px) {
  .hft-sh { display: none !important; }   /* the strip replaces the header button here */
  .hft-sh-strip {
    display: flex; align-items: stretch; background: #111; color: #fff;
    border-bottom: 3px solid var(--red, #E8000D);
    font-family: var(--font-display, 'Barlow Condensed', sans-serif); font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; line-height: 1;
  }
  .hft-sh-strip a { color: #fff; text-decoration: none; display: flex; align-items: center; }
  .hft-sh-strip__main { flex: 1; min-width: 0; gap: 10px; padding: 10px 14px 10px 16px; font-size: 16px; }
  .hft-sh-strip__txt { min-width: 0; overflow: hidden; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } /* long truck names wrap to 2 lines */
  .hft-sh-strip__tag {
    flex: none; background: var(--red, #E8000D); color: #fff; font-size: 13px;
    padding: 4px 7px; border-radius: 2px; letter-spacing: .06em;
  }
  .hft-sh-strip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red, #E8000D); }
  .hft-sh-strip.has-push .hft-sh-strip__tag { animation: hft-sh-pulse 1.8s ease-out infinite; }
  .hft-sh-strip__all {
    flex: none; padding: 0 16px; font-size: 15px; background: var(--red, #E8000D); white-space: nowrap;
  }
  .hft-sh-strip a:active { opacity: .85; }
}
@media (max-width: 360px) {
  .hft-sh-strip__main { font-size: 14px; padding-left: 12px; gap: 8px; }
  .hft-sh-strip__tag { font-size: 12px; padding: 3px 6px; }
  .hft-sh-strip__all { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hft-sh-strip.has-push .hft-sh-strip__tag { animation: none; } }
