/* Shared site header for every page except the homepage (owner, 2026-11-28:
   "why does the topmost banner change in the other clickable headings starting
   with Cosplay? It should remain the same like in Get a Quote and Parts
   Catalog"). It is a copy of the homepage header in public/index.html (the
   `nav` rules there): logo, Contact Us and the cart on row 1, every page link
   as a boxed tab on row 2, hamburger menu below 900px, sticky at the top.
   Change the homepage header and this file together. Markup: SITE_NAV_HTML in
   scripts/generate-part-pages.js (part pages) and the static pages' copy of
   it; behaviour: /js/site-nav.js. Classes are prefixed tfn- so no page style
   can reach them. */
.tfn, .tfn * { box-sizing: border-box; }
.tfn {
    background: #fff;
    padding: 0.8rem 5%;
    display: flex; flex-wrap: wrap; row-gap: 0.65rem;
    justify-content: space-between; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
    font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1.6;
}
.tfn .tfn-logo {
    order: 0;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 1.5rem; color: #0a3d62;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
}
.tfn .tfn-logo img { display: block; border-radius: 4px; }
.tfn ul { list-style: none; margin: 0; padding: 0; display: flex; }
.tfn ul.tfn-actions { order: 1; margin-left: auto; gap: 14px; align-items: center; }
.tfn .tfn-burger {
    order: 2; display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; width: auto; margin: 0;
}
.tfn .tfn-burger span { display: block; width: 25px; height: 3px; background: #0a3d62; border-radius: 2px; }
.tfn ul.tfn-tabs {
    order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 8px;
    padding-top: 0.65rem; border-top: 1px solid #eef1f4;
}
.tfn ul.tfn-tabs a {
    display: block; white-space: nowrap; text-decoration: none;
    color: #0a3d62; font-weight: 600; font-size: 0.9rem; line-height: 1.2;
    padding: 7px 14px; border: 1px solid #d3dce6; border-radius: 6px; background: #f7f9fc;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tfn ul.tfn-tabs a:hover, .tfn ul.tfn-tabs a:focus-visible {
    color: #fff; background: #0a3d62; border-color: #0a3d62; outline: none;
}
.tfn .tfn-contact {
    display: inline-block; background: #f39c12; color: #fff; border: none;
    padding: 8px 18px; border-radius: 4px; font-size: 0.9rem; font-weight: 600;
    line-height: 1.6; text-decoration: none; transition: background 0.2s;
}
.tfn .tfn-contact:hover, .tfn .tfn-contact:focus-visible { background: #d35400; color: #fff; }
.tfn .tfn-cart {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #0a3d62; color: #0a3d62; border-radius: 4px; padding: 6px 10px;
    background: none; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.tfn .tfn-cart:hover, .tfn .tfn-cart:focus-visible { background: #0a3d62; color: #fff; }
.tfn .tfn-badge {
    position: absolute; top: -8px; right: -8px;
    background: #c0392b; color: #fff; border-radius: 10px;
    font-size: 0.72rem; font-weight: 700; min-width: 20px; height: 20px;
    padding: 0 5px; line-height: 20px; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.tfn .tfn-badge[hidden] { display: none; }
@media (max-width: 1100px) {
    .tfn ul.tfn-tabs { gap: 6px; }
    .tfn ul.tfn-tabs a { padding: 7px 10px; font-size: 0.86rem; }
}
@media (max-width: 420px) {
    .tfn .tfn-logo { font-size: 1.15rem; letter-spacing: 0.5px; }
}
@media (max-width: 900px) {
    .tfn { row-gap: 0; padding-top: 1rem; padding-bottom: 1rem; }
    .tfn .tfn-burger { display: flex; margin-left: auto; }
    .tfn ul.tfn-tabs, .tfn ul.tfn-actions {
        display: none; width: 100%; flex-basis: 100%;
        flex-direction: column; gap: 0; margin: 0;
    }
    .tfn ul.tfn-tabs { padding: 0.5rem 0 0; border-top: 1px solid #eee; margin-top: 0.5rem; }
    .tfn ul.tfn-actions { order: 4; padding: 0 0 1rem; align-items: stretch; }
    .tfn.tfn-open ul.tfn-tabs, .tfn.tfn-open ul.tfn-actions { display: flex; }
    .tfn ul.tfn-tabs a { padding: 0.75rem 0; font-size: 1rem; border: 0; background: none; border-radius: 0; color: #2c3e50; }
    .tfn ul.tfn-tabs a:hover, .tfn ul.tfn-tabs a:focus-visible { background: none; color: #f39c12; }
    .tfn ul.tfn-actions li { padding-top: 0.5rem; }
    .tfn .tfn-contact { width: 100%; padding: 12px; font-size: 1rem; text-align: center; }
    .tfn .tfn-cart { align-self: flex-start; }
}
