@import url("./jh-fonts.css?v=20261119-header-fonts-1");

/* Explicit component baseline; do not inherit page-specific fonts/line-height/link colors. */
header, .mobile-sidebar-bar { font-family:var(--jh-font-ui); font-size:var(--jh-header-base-size); font-weight:var(--jh-header-base-weight); line-height:var(--jh-header-base-line); color:var(--jh-header-text); }
.mobile-story-link { font-family:var(--jh-header-mobile-story-link-family); font-size:var(--jh-header-mobile-story-link-size); font-weight:var(--jh-header-base-weight); line-height:var(--jh-header-base-line); letter-spacing:var(--jh-header-mobile-story-link-tracking); color:var(--jh-color-nav-story); text-decoration:none; white-space:nowrap; }
.brand-kicker, .brand-subtitle, .brand-story-link { font-family:var(--jh-font-ui); }
.mobile-bar-action { font-family:var(--jh-font-ui); line-height:var(--jh-header-base-line); }

/* Jolly Hooligan — SHARED SITE TITLEBAR
 *
 * ONE stylesheet for the mobile top bar and the brand lockup, used by the homepage and by every
 * generated product page. Lifted VERBATIM out of public/index.html on 2026-11-19 (HEAD e0d47b1)
 * so the two pages cannot drift apart again; the markup counterpart is scripts/lib/site-header.mjs.
 *
 * ⚠️ Rules are in their ORIGINAL SOURCE ORDER, media queries included. Reordering them changes the
 * cascade and therefore the homepage's appearance, which this change is required not to do.
 */

.sidebar-link:focus-visible,
        .sidebar-primary-action:focus-visible,
        .sidebar-toggle:focus-visible,
        .sidebar-close:focus-visible,
        .sidebar-section summary.sidebar-section-title:focus-visible {
            outline: 2px solid rgba(var(--jh-rgb-gold), 0.86);
            outline-offset: 3px;
        }

.mobile-sidebar-bar {
            display: none;
        }

.mobile-bar-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

.mobile-bar-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            min-width: 44px;
            min-height: 44px;
            padding: 0 0.6rem;
            border-radius: 12px;
            border: 1px solid rgba(var(--jh-rgb-ink), 0.16);
            background: rgba(var(--jh-rgb-white), 0.06);
            color: var(--jh-header-text);
            text-decoration: none;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

.mobile-bar-action:hover,
        .mobile-bar-action:focus-visible {
            border-color: rgba(var(--jh-rgb-gold), 0.55);
            background: rgba(var(--jh-rgb-white), 0.1);
        }

.mobile-bar-action svg {
            width: 18px;
            height: 18px;
            display: block;
        }

.mobile-bar-cart-glyph {
            font-size: var(--jh-header-mobile-bar-cart-glyph-size);
            line-height: var(--jh-header-mobile-bar-cart-glyph-line);
        }

.mobile-bar-cart .cart-count {
            position: static;
            min-width: 1.15rem;
            height: 1.15rem;
            padding: 0 0.28rem;
            font-size: var(--jh-header-mobile-bar-cart-cart-count-size);
            line-height: var(--jh-header-mobile-bar-cart-cart-count-line);
        }

header {
            padding: 1.5rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

/* REMOVED 2026-09-07 — the wide-screen header nudge. Clint photographed his
           monitor to report the wordmark sitting "left of center for some reason".

           It was this, and it was deliberate: the header stack carried
           `transform: translateX(calc(var(--sidebar-width) / -2))` above 1180px —
           a hard 146px shift left (--sidebar-width is 292px) — so the lockup would
           read as "centred against the VIEWPORT rather than against the content column"
           (its words).

           Two things make that wrong on this page, and neither is a matter of taste:

           1. NOTHING ELSE ON THE PAGE IS VIEWPORT-CENTRED. The sidebar is a flex child
              in normal flow (.app-shell { display:flex }

), so the tab strip, the
              "America 250 Collection" heading, its blurb and the product grid all
              center on the CONTENT COLUMN. Nudging only the header stack stacks two
              different centering systems on top of each other, and the seam between
              them is exactly what Clint saw: wordmark left, tab pills centered, ~146px
              apart on a 1080p monitor.
           2. THE OFFSET WAS HARDCODED TO THE EXPANDED SIDEBAR. Collapsing the sidebar
              swaps its width to --sidebar-collapsed-width, but this transform kept
              subtracting half of the FULL 292px — so the collapsed layout was pushed
              even further off-center, with no rule to correct it.

           Justification when it landed (commit 4f915b3, the splash→shop merge) was
           inherited from a page that had no product grid under it to disagree with.
           Now there is one, so the header centers like the rest of the column. */

        .brand-story-link {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            color: var(--jh-header-text);
            text-decoration: none;
            font-size: var(--jh-header-brand-story-link-size);
            font-weight: var(--jh-header-brand-story-link-weight);
            letter-spacing: var(--jh-header-brand-story-link-tracking);
        }

.brand-story-link img {
            width: 3.45rem;
            height: 3.45rem;
            object-fit: contain;
        }

.brand-story-link:hover span { text-decoration: underline; }

.brand-story-link:focus-visible {
            outline: 2px solid var(--jh-header-accent);
            outline-offset: 4px;
            border-radius: 4px;
        }

.brand-lockup {
            display: grid;
            gap: 0.3rem;
            justify-items: center;
            margin: 0 auto 0.95rem;
            text-transform: uppercase;
            color: inherit;
            text-decoration: none;
        }

.brand-lockup:focus-visible {
            outline: 2px solid rgba(var(--jh-rgb-gold), 0.75);
            outline-offset: 0.45rem;
            border-radius: 18px;
        }

.brand-kicker {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            font-size: var(--jh-header-brand-kicker-size);
            font-weight: var(--jh-header-brand-kicker-weight);
            letter-spacing: var(--jh-header-brand-kicker-tracking);
            color: var(--jh-color-gold-light);
        }

.brand-kicker::before,
        .brand-kicker::after {
            content: '';
            width: clamp(2rem, 8vw, 4rem);
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(var(--jh-rgb-gold), 0.95), transparent);
        }

.brand-title-treatment {
            font-family: var(--jh-header-brand-title-treatment-family);
            font-size: var(--jh-header-brand-title-treatment-size);
            line-height: var(--jh-header-brand-title-treatment-line);
            letter-spacing: var(--jh-header-brand-title-treatment-tracking);
            text-align: center;
            text-wrap: balance;
            margin: 0;
            font-weight: var(--jh-header-brand-title-treatment-weight);
            color: var(--jh-color-ink-strong);
            text-shadow:
                0 2px 0 rgba(var(--jh-rgb-white), 0.08),
                0 7px 0 rgba(var(--jh-rgb-red), 0.88),
                0 18px 30px rgba(var(--jh-rgb-black), 0.4);
        }

.brand-subtitle {
            max-width: min(100%, 31rem);
            margin-inline: auto;
            font-size: var(--jh-header-brand-subtitle-size);
            font-weight: var(--jh-header-brand-subtitle-weight);
            letter-spacing: var(--jh-header-brand-subtitle-tracking);
            line-height: var(--jh-header-brand-subtitle-line);
            color: var(--jh-header-muted);
            text-align: center;
            text-wrap: balance;
        }

.page-title {
            font-family: var(--jh-header-page-title-family);
            font-size: var(--jh-header-page-title-size);
            text-transform: uppercase;
            letter-spacing: var(--jh-header-page-title-tracking);
            margin: 0;
            text-shadow: 0 10px 24px rgba(var(--jh-rgb-black), 0.34);
        }

.header-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            justify-content: center;
            margin-top: 1rem;
        }

.cart-icon {
            position: fixed;
            top: 1.35rem;
            right: 1.35rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: var(--jh-header-cart-target-size);
            height: var(--jh-header-cart-target-size);
            border-radius: 999px;
            cursor: pointer;
            font-size: var(--jh-header-cart-caption-size);
            color: var(--jh-color-ink-inverse);
            background:
                radial-gradient(circle at 30% 30%, rgba(var(--jh-rgb-white), 0.3), transparent 42%),
                linear-gradient(145deg, rgba(var(--jh-rgb-gold), 0.96), rgba(var(--jh-rgb-red), 0.96));
            border: 1px solid rgba(var(--jh-rgb-white), 0.2);
            box-shadow: 0 18px 32px rgba(var(--jh-rgb-black), 0.34), 0 0 0 1px rgba(var(--jh-rgb-white), 0.06);
            backdrop-filter: blur(12px);
            z-index: 90;
            transition: transform 0.22s ease, box-shadow 0.22s ease;
        }

/* Size the desktop symbol independently of the small Cart caption token.
   An emoji inherited the 0.68rem label size and disappeared inside the 72px button. */
.cart-icon > .desktop-cart-glyph {
    display: block;
    width: var(--jh-header-cart-glyph-size);
    height: var(--jh-header-cart-glyph-size);
    flex: 0 0 auto;
    color: var(--jh-header-cart-glyph-ink);
    pointer-events: none;
}

.cart-icon::before {
            content: '';
            position: absolute;
            inset: -10px;
            border-radius: inherit;
            background: radial-gradient(circle, rgba(var(--jh-rgb-gold), 0.28), transparent 68%);
            opacity: 0;
            transform: scale(0.8);
            pointer-events: none;
        }

.cart-icon::after {
            content: var(--jh-cart-caption-text);
            position: absolute;
            left: 50%;
            bottom: -1.25rem;
            transform: translateX(-50%);
            font-size: var(--jh-header-cart-caption-size);
            font-weight: var(--jh-header-cart-icon-weight);
            letter-spacing: var(--jh-header-cart-icon-tracking);
            text-transform: uppercase;
            color: rgba(var(--jh-rgb-ink), 0.82);
            white-space: nowrap;
        }

/* Reserve the top-right gutter the fixed cart floats in, so nothing renders
           underneath it. Only needed where the cart is actually shown (>900px). */
        /* The cart sits above the drawer's z-index, so it used to float on top of the
           open menu. Take it out of the picture while the drawer is open. */
        body.nav-drawer-open .cart-icon {
            display: none;
        }

.cart-icon:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 24px 40px rgba(var(--jh-rgb-black), 0.38), 0 0 0 1px rgba(var(--jh-rgb-white), 0.1);
        }

.cart-icon.is-bouncing {
            animation: cart-bounce 0.7s cubic-bezier(0.2, 1, 0.3, 1);
        }

.cart-icon.is-pulsing::before {
            animation: cart-ring 0.9s ease-out;
        }

.cart-count {
            position: absolute;
            top: 0.15rem;
            right: 0.15rem;
            background: var(--accent-red);
            color: white;
            border-radius: 50%;
            min-width: 1.7rem;
            min-height: 1.7rem;
            padding: 0.2rem 0.4rem;
            font-size: var(--jh-header-cart-count-size);
            font-weight: var(--jh-header-cart-count-weight);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 16px rgba(var(--jh-rgb-black), 0.3);
            transition: transform 0.2s ease;
        }

.cart-count.is-updating {
            animation: cart-count-pop 0.45s ease;
        }

.cart-feedback {
            position: fixed;
            top: 6.2rem;
            right: 1.35rem;
            display: grid;
            gap: 0.35rem;
            pointer-events: none;
            z-index: 95;
        }

.cart-feedback-badge {
            padding: 0.7rem 0.95rem;
            border-radius: 999px;
            background: rgba(var(--jh-rgb-apparel-toast-bg), 0.92);
            border: 1px solid rgba(var(--jh-rgb-gold), 0.35);
            box-shadow: 0 18px 30px rgba(var(--jh-rgb-black), 0.28);
            color: var(--jh-color-ink-inverse);
            font-size: var(--jh-header-cart-feedback-badge-size);
            font-weight: var(--jh-header-cart-feedback-badge-weight);
            letter-spacing: var(--jh-header-cart-feedback-badge-tracking);
            text-transform: uppercase;
            opacity: 0;
            transform: translateY(-10px) scale(0.92);
        }

.cart-feedback-badge.is-visible {
            animation: cart-feedback-in-out 1.4s ease forwards;
        }

/* Slim promo strip under the header. Deliberately quiet — it is a standing offer,
           not a CTA, so it reads as information rather than competing with Add to Cart. */
        .shipping-promo {
            margin: 0;
            padding: 0.55rem 1rem;
            text-align: center;
            font-size: var(--jh-header-shipping-promo-size);
            font-weight: var(--jh-header-shipping-promo-weight);
            letter-spacing: var(--jh-header-shipping-promo-tracking);
            text-transform: uppercase;
            color: var(--jh-color-gold-light);
            background: linear-gradient(90deg, transparent, rgba(var(--jh-rgb-gold), 0.12), transparent);
            border-top: 1px solid rgba(var(--jh-rgb-gold), 0.18);
            border-bottom: 1px solid rgba(var(--jh-rgb-gold), 0.18);
        }

/* 2026-09-07 — give the gutter back once it is no longer buying anything.
           Clint, on a 1920px monitor: "the bottom section title isn't aligned with the
           top one on desktop view."

           He was right, and it is this rule rather than the header nudge fixed earlier
           today. `main` is the ONLY part of the page carrying that 6.25rem right gutter:
           <header>, the New-drop row and .tab-nav are all siblings ABOVE it, so they
           center on the content column while everything inside main is pushed left by
           half the extra padding. Measured on the 1920px production render — content
           column center is 1106px:

               wordmark 1099 · brand subtitle 1104 · tab strip 1096
               section title 1060 · blurb 1063 · product grid 1064      <- 42px adrift

           The gutter is real protection, but only while `main` can actually reach the
           cart. main is max-width:1240 centered in the column, so its right edge sits at
           292 + (viewport - 292 + 1240) / 2, and the fixed cart's left edge at
           viewport - 93.6 (right:1.35rem + 72px wide). Those cross at viewport 1719px:
           any wider and main already clears the cart, so the gutter reserves space
           against nothing and buys 42px of misalignment for it. 1760px is that crossing
           plus room for the cart's -10px glow ring.

           Deliberately NOT made symmetric instead (padding both sides): with max-width
           1240 that leaves 1040px of grid at 1920px, and .product-grid's
           auto-fit/minmax(250px) + 1.5rem gap needs 1072px to hold four cards. It would
           have traded the misalignment for a column of products. */
        @media (min-width: 1760px) {
            main {
                padding-right: 1rem;
            }
        }

@media (max-width: 900px) {
    .mobile-sidebar-bar {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 0.6rem;
                padding: 0.55rem 0.9rem;
                width: 100%;
                max-width: 100vw;
                box-sizing: border-box;
                position: sticky;
                top: 0;
                z-index: 30;
                background-color: var(--jh-header-bar-bg);
                background-image: var(--jh-page-bg-image);
                background-size: var(--jh-page-bg-size);
                border-bottom: 1px solid rgba(var(--jh-rgb-white), 0.07);
            }
    .mobile-bar-actions {
                flex: 0 0 auto;
                gap: 0.3rem;
            }
    .mobile-story-group { display: flex; align-items: center; gap: 0.625rem; }
    .mobile-story-link {
                display: inline-flex;
                align-items: center;
                min-height: 44px;
                color: var(--jh-color-nav-story);
                font-family: var(--jh-header-mobile-story-link-family);
                font-size: var(--jh-header-mobile-story-link-size);
                letter-spacing: var(--jh-header-mobile-story-link-tracking);
                text-decoration: none;
                white-space: nowrap;
            }
    .mobile-story-link:focus-visible { outline: 2px solid var(--jh-color-nav-story); outline-offset: 3px; }
    .mobile-story-group .sidebar-mark-toggle { position: relative; }
    .mobile-menu-indicator {
                position: absolute;
                right: -6px;
                top: -2px;
                color: var(--jh-color-nav-story);
                font: var(--jh-header-mobile-menu-indicator-font);
                text-shadow: 0 1px 3px var(--jh-color-bg);
                pointer-events: none;
            }
    .brand-story-link { display: none; }
    .mobile-bar-action {
                flex: 0 0 auto;
                padding-inline: 0.35rem;
            }
    .sidebar-toggle.sidebar-mark-toggle {
                order: -1;
                flex: none;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 44px;
                min-height: 44px;
                padding: 0.25rem;
                border-radius: 12px;
                border: 1px solid rgba(var(--jh-rgb-ink), 0.16);
                background: rgba(var(--jh-rgb-white), 0.06);
            }
    .sidebar-toggle.sidebar-mark-toggle:hover,
            .sidebar-toggle.sidebar-mark-toggle:focus-visible {
                border-color: rgba(var(--jh-rgb-gold), 0.55);
                background: rgba(var(--jh-rgb-white), 0.1);
            }
    .cart-icon {
                display: none;
            }
    /* The header carries more than the shop page used to: the tagline and the New
               drop row both came across from the retired splash. Without these trims the
               first product sat 756px down an 852px phone — a splash rebuilt on top of the
               grid, which is the exact thing this change set out to remove. */
            header {
                padding: 0.9rem 1rem 0.6rem;
                gap: 0.35rem;
            }
    /* Mobile hero trim: the wordmark carries the identity at a smaller size, so
               tighten the stack rather than making a shopper scroll a full screen of
               chrome before the first shirt. Desktop is unchanged. */
            header {
                padding: 0.45rem 1rem 0.65rem;
                gap: 0.35rem;
            }
    header .brand-lockup {
                margin-bottom: 0.2rem;
                gap: 0.4rem;
            }
    header .brand-title-treatment {
                font-size: var(--jh-header-brand-title-treatment-size);
                letter-spacing: var(--jh-header-brand-title-treatment-tracking);
            }
    header .brand-subtitle {
                max-width: 100%;
                font-size: var(--jh-header-brand-subtitle-size);
                letter-spacing: var(--jh-header-brand-subtitle-tracking);
                line-height: var(--jh-header-brand-subtitle-line);
            }
    header .page-title {
                margin: 0.15rem 0 0;
                font-size: var(--jh-header-page-title-size);
            }
    header .header-actions {
                margin-top: 0.5rem;
            }
    .cart-icon {
                top: auto;
                bottom: 1rem;
                right: 1rem;
                width: var(--jh-header-cart-target-size-compact);
                height: var(--jh-header-cart-target-size-compact);
                font-size: var(--jh-header-cart-caption-size);
            }
    .cart-feedback {
                top: auto;
                right: 1rem;
                bottom: 5.75rem;
            }
}

@media (max-width: 860px) {
    header {
                padding-bottom: 1rem;
            }
}

/* ---------------------------------------------------------------------------
 * VARIANT RULES — added with the shared component, 2026-11-19. Everything above
 * this line was lifted verbatim from index.html; everything below is new.
 * ------------------------------------------------------------------------- */

/* ⚠️ The bar above is `display:none` until max-width:900px, because on the HOMEPAGE desktop
 * navigation lives in the #siteSidebar drawer. A product page has no drawer, so that bar is its
 * only navigation and hiding it at desktop leaves the page with no account or cart control at
 * all — the "dead/hidden" fault this change was asked to avoid. This variant keeps it visible at
 * every width, and is applied ONLY where no drawer exists. */
.mobile-sidebar-bar--persistent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    width: 100%;
}

/* Back-to-shop affordance, used only where the titlebar sits on a sub-page. */
.brand-back-link {
    align-self: flex-start;
    font-size: var(--jh-header-brand-back-link-size);
    letter-spacing: var(--jh-header-brand-back-link-tracking);
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    opacity: 0.78;
    padding: 0.35rem 0.1rem;
}
.brand-back-link:hover,
.brand-back-link:focus-visible { opacity: 1; text-decoration: underline; }
