/* ============================================================
   Tater Built Turbochargers — bespoke theme
   Pixel-targeted to taterbuiltturbocharger.com (Neve customizer)
   Tokens lifted directly from the live site customizer:
     primary  #bb0000   (deep red)
     gold     #d0a675   (secondary accent)
     dark     #14171c   (footer / chrome)
     text     #2b2b2b
     header   #f0f0f0   with 3px primary bottom border
     fonts    Noto Sans 300/400/500/600/700/800
     headings 800 uppercase, body 400 1.7em
     buttons  square (radius 0), 12px 24px, 14px / 1.6em
   ============================================================ */

:root {
    --tt-primary:        #bb0000;
    --tt-primary-hover:  #9a0000;
    --tt-secondary:      #d0a675;
    --tt-dark:           #14171c;
    --tt-light-bg:       #666666;
    --tt-text:           #2b2b2b;
    --tt-text-muted:     #666666;
    --tt-text-on-dark:   #ffffff;
    --tt-site-bg:        #ffffff;
    --tt-header-bg:      #f0f0f0;
    --tt-line:           rgba(0, 0, 0, .08);
    --tt-line-dark:      rgba(255, 255, 255, .12);
    --tt-c1:             #77b978;
    --tt-c2:             #f37262;
    --tt-radius:         0;
    --tt-radius-card:    2px;
    --tt-shadow-card:    0 2px 4px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
    --tt-shadow-elev:    0 12px 36px rgba(0,0,0,.18);
    --tt-container:      1170px;
    --tt-h-header-top:   38px;
    --tt-h-header-main:  86px;
    --tt-fs-h1:          2.6rem;
    --tt-fs-h2:          1.85rem;
    --tt-fs-h3:          1.25rem;
    --tt-ff:             "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* prevent horizontal page scroll on mobile when nested grids briefly
       overflow during reflow. clip preserves position:sticky on .tt-header
       (overflow:hidden would break it). */
    overflow-x: clip;
}
body {
    margin: 0;
    background: var(--tt-site-bg);
    color: var(--tt-text);
    font-family: var(--tt-ff);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tt-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--tt-secondary); }

/* Headings — Noto Sans 800 uppercase */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tt-ff);
    color: var(--tt-text);
    margin: 0 0 .6em;
    letter-spacing: 0;
}
h1 { font-size: var(--tt-fs-h1); font-weight: 800; line-height: 1.2; text-transform: uppercase; }
h2 { font-size: var(--tt-fs-h2); font-weight: 800; line-height: 1.3; text-transform: uppercase; }
h3 { font-size: var(--tt-fs-h3); font-weight: 800; line-height: 1.3; }
h4 { font-size: 1rem;    font-weight: 600; line-height: 1.3; }
h5 { font-size: .875rem; font-weight: 600; line-height: 1.3; }
h6 { font-size: .875rem; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--tt-line); margin: 2rem 0; }

/* ── Layout primitives ─────────────────────────────────────── */
.tt-container {
    width: 100%;
    max-width: var(--tt-container);
    margin-inline: auto;
    padding-inline: 20px;
}
.tt-section { padding: 64px 0; }
.tt-section--tight { padding: 40px 0; }
.tt-section--lg    { padding: 96px 0; }

/* Generic class compatibility with framework partials */
.container { width: 100%; max-width: var(--tt-container); margin-inline: auto; padding-inline: 20px; }

/* Wide variant — used by the header rows so all 9 primary-nav categories
   fit on one line at common desktop viewports without the row stretching
   edge-to-edge on large monitors. */
.tt-container--wide {
    max-width: 1500px;
    padding-inline: 24px;
}

/* Utility helpers */
.tt-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--tt-primary);
    margin-bottom: .5rem;
}
.tt-center { text-align: center; }
.tt-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--tt-secondary);
    margin: 0;
    border: 0;
}

/* ── Buttons ─────────────────────────────────────────────────
   Square buttons (radius 0), 12px 24px, 14px / 1.6em, uppercase
   Primary fills accent red, hover swaps to secondary gold
   ────────────────────────────────────────────────────────── */
.tt-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--tt-ff);
    font-size: 14px;
    line-height: 1.6em;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: var(--tt-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
    white-space: nowrap;
}
.tt-btn:active, .btn:active { transform: translateY(1px); }

.tt-btn--primary,
.btn-primary {
    background: var(--tt-primary);
    color: var(--tt-text-on-dark);
    border-color: var(--tt-primary);
}
.tt-btn--primary:hover,
.btn-primary:hover {
    background: var(--tt-secondary);
    border-color: var(--tt-secondary);
    color: var(--tt-text-on-dark);
}

.tt-btn--ghost,
.btn-outline {
    background: transparent;
    color: var(--tt-text);
    border-color: var(--tt-text);
}
.tt-btn--ghost:hover,
.btn-outline:hover {
    background: var(--tt-dark);
    color: var(--tt-text-on-dark);
    border-color: var(--tt-dark);
}

.tt-btn--inverted {
    background: var(--tt-text-on-dark);
    color: var(--tt-dark);
    border-color: var(--tt-text-on-dark);
}
.tt-btn--inverted:hover {
    background: var(--tt-secondary);
    border-color: var(--tt-secondary);
    color: var(--tt-text-on-dark);
}

/* ── Header — top bar + main bar ──────────────────────────── */
.tt-header {
    background: var(--tt-site-bg);
    position: sticky;
    top: 0;
    z-index: 60;
    transition: box-shadow .2s ease;
}
.tt-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* ── Header top bar (desktop) ──
   Source layout:
      LEFT  : [Logo]  [Home About Blog My-account Merch Contact]
      RIGHT : [Email] [Phone] [Cart]
   Background = white (--nv-site-bg), thin bottom border, ~13px text.
*/
.tt-header__top {
    background: var(--tt-site-bg);
    color: var(--tt-text);
    border-bottom: 1px solid var(--tt-line);
    font-size: 13px;
    font-weight: 400;
}
.tt-header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
    padding: 8px 0;
}
.tt-header__top-left,
.tt-header__top-right {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.tt-contact-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}
.tt-contact-list a {
    color: var(--tt-text);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}
.tt-contact-list a:hover { color: var(--tt-primary); }
.tt-contact-list svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 14px; }

.tt-secondary-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}
.tt-secondary-menu a {
    color: var(--tt-text);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .04em;
    white-space: nowrap;
}
.tt-secondary-menu a:hover { color: var(--tt-primary); }

/* Cart pill in top bar */
.tt-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.tt-cart:hover { color: var(--tt-primary); }
.tt-cart svg { width: 18px; height: 18px; fill: currentColor; }
.tt-cart-count {
    background: var(--tt-primary);
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    line-height: 1;
}

/* ── Main bar — primary nav row (desktop)
   Full-width row, 3px primary bottom border, content centered.
*/
.tt-header__main {
    background: var(--tt-header-bg);
    border-bottom: 3px solid var(--tt-primary);
}
.tt-header__main-inner {
    display: flex;
    align-items: center;
    justify-content: center;       /* center primary nav within the row */
    gap: 20px;
    min-height: 60px;
    padding: 6px 0;
}

/* Mobile-only quick action buttons (call / cart) pinned right of nav */
.tt-header__actions {
    display: none; /* desktop hides; mobile media query enables */
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.tt-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--tt-text);
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: 0;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tt-icon-btn:hover,
.tt-icon-btn:focus-visible {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
}
.tt-icon-btn svg {
    width: 18px; height: 18px;
    fill: currentColor;
    flex: 0 0 18px;
}
.tt-icon-btn__badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--tt-primary);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tt-icon-btn:hover .tt-icon-btn__badge,
.tt-icon-btn:focus-visible .tt-icon-btn__badge {
    background: #fff;
    color: var(--tt-primary);
    border-color: var(--tt-primary);
}
.tt-logo { display: inline-flex; align-items: center; }
.tt-logo img { width: auto; height: auto; }

/* Top-bar logo: small (~36px tall, ~140px wide max) per source customizer */
.tt-logo--top img { max-height: 36px; max-width: 140px; }

/* Main-bar logo: only visible on mobile (top bar is hidden there) */
.tt-logo--main { display: none; }
.tt-logo--main img { max-height: 44px; }

.tt-logo--text {
    font-family: var(--tt-ff);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tt-text);
    font-size: 1.05rem;
    letter-spacing: .04em;
}

.tt-primary-nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}
.tt-primary-nav > ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;       /* still allow 2-line wrap below ~1280px viewport */
    justify-content: center;
    column-gap: 22px;
    row-gap: 0;
    align-items: center;
}
.tt-primary-nav > ul > li { position: relative; }
.tt-primary-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tt-text);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;            /* matches the top utility menu (Home / About / …) */
    letter-spacing: .04em;
    padding: 14px 0;
    border-bottom: 3px solid transparent;
    transform: translateY(3px); /* compensate for the 3px primary row border */
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;        /* labels never split mid-word */
}

/* Below ~1280px the row gets crowded — tighten the top utility cluster
   so email+phone+cart don't crowd into the secondary menu. */
@media (min-width: 1024px) and (max-width: 1280px) {
    .tt-primary-nav > ul { column-gap: 16px; }
    .tt-header__top-inner { gap: 16px; }
    .tt-secondary-menu { gap: 16px; }
    .tt-contact-list { gap: 12px; }
    .tt-contact-list a,
    .tt-secondary-menu a,
    .tt-cart { font-size: 12px; }
    .tt-logo--top img { max-height: 32px; }
}
.tt-primary-nav > ul > li > a:hover,
.tt-primary-nav > ul > li.is-active > a {
    color: var(--tt-primary);
    border-bottom-color: var(--tt-primary);
}
.tt-primary-nav .tt-caret {
    width: 9px; height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}

/* Dropdowns */
.tt-primary-nav .tt-submenu {
    list-style: none;
    margin: 0; padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--tt-line);
    border-top: 3px solid var(--tt-primary);
    box-shadow: var(--tt-shadow-elev);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 70;
}
.tt-primary-nav li:hover > .tt-submenu,
.tt-primary-nav li:focus-within > .tt-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tt-primary-nav .tt-submenu li { position: relative; }
.tt-primary-nav .tt-submenu a {
    display: block;
    padding: 10px 18px;
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tt-primary-nav .tt-submenu a:hover {
    background: var(--tt-header-bg);
    color: var(--tt-primary);
}
.tt-primary-nav .tt-submenu .tt-submenu {
    top: 0;
    left: 100%;
    border-top: 1px solid var(--tt-line);
}

/* Mobile burger */
.tt-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--tt-text);
    color: var(--tt-text);
    padding: 8px 14px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .05em;
    border-radius: 0;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}
.tt-burger:hover { background: var(--tt-text); color: #fff; }
.tt-burger-icon {
    width: 18px; height: 14px;
    position: relative; display: inline-block;
}
.tt-burger-icon::before,
.tt-burger-icon::after,
.tt-burger-icon span {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .15s ease, top .2s ease;
}
.tt-burger-icon::before { top: 0; }
.tt-burger-icon span    { top: 6px; }
.tt-burger-icon::after  { top: 12px; }

/* Mobile drawer */
.tt-mobile-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 80vw);
    background: var(--tt-dark);
    color: var(--tt-text-on-dark);
    padding: 24px 22px 32px;
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .25s ease;
    overflow-y: auto;
    box-shadow: var(--tt-shadow-elev);
}
.tt-mobile-drawer.is-open { transform: translateX(0); }
.tt-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 99;
}
.tt-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.tt-mobile-drawer__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    margin-bottom: 14px;
}
.tt-mobile-nav {
    list-style: none; margin: 0; padding: 0;
}
.tt-mobile-nav > li {
    border-bottom: 1px solid var(--tt-line-dark);
}
.tt-mobile-nav li { list-style: none; }
.tt-mobile-row {
    display: flex;
    align-items: center;
    width: 100%;
}
.tt-mobile-link {
    flex: 1 1 auto;
    display: block;
    padding: 14px 4px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
}
.tt-mobile-link:hover { color: var(--tt-secondary); }
.tt-mobile-toggle {
    flex: 0 0 auto;
    background: transparent;
    color: #fff;
    border: 1px solid var(--tt-line-dark);
    width: 36px;
    height: 36px;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .15s ease, border-color .15s ease;
    border-radius: 0;
}
.tt-mobile-toggle:hover {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
}
.tt-mobile-plus {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    transition: transform .2s ease;
    display: inline-block;
}
.tt-mobile-nav li.is-open > .tt-mobile-row > .tt-mobile-toggle .tt-mobile-plus {
    transform: rotate(45deg); /* + → × */
}
.tt-mobile-nav .tt-submenu {
    list-style: none;
    margin: 0; padding: 0 0 6px 14px;
    border-left: 2px solid rgba(255,255,255,.06);
    margin-left: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.tt-mobile-nav li.is-open > .tt-submenu {
    max-height: 1500px;
}
.tt-mobile-nav .tt-submenu .tt-mobile-link {
    padding: 10px 4px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
}
.tt-mobile-nav .tt-submenu .tt-submenu .tt-mobile-link {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.tt-mobile-nav--secondary {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tt-line-dark);
}
.tt-mobile-nav--secondary > li { border-bottom: 0; }
.tt-mobile-nav--secondary .tt-mobile-link {
    padding: 10px 4px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
}
.tt-mobile-actions {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

/* ── Hero — full-bleed video / image with light overlay ──── */
.tt-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--tt-dark);
    color: #fff;
}
.tt-hero__media,
.tt-hero__media video,
.tt-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.tt-hero__media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%);
    z-index: 1;
}
.tt-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--tt-container);
    padding: 60px 20px 36px;
    text-align: center;
}
.tt-hero__title {
    font-size: clamp(2rem, 6vw, 3.6rem);
    color: #fff;
    text-transform: none;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.tt-hero__title em {
    font-style: italic;
    font-weight: 800;
    color: #fff;
}
.tt-hero__subtitle {
    color: rgba(255,255,255,.9);
    font-size: clamp(1rem, 2vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-top: 14px;
    font-weight: 600;
}

/* ── Brand cards — Cummins / Duramax / Powerstroke ─────── */
.tt-shop-by-brand {
    background: var(--tt-site-bg);
    padding: 56px 0 64px;
}
.tt-shop-by-brand__heading {
    text-align: center;
    margin: 0 0 36px;
    font-weight: 800;
}
.tt-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}
/* Image-forward card: clean uncropped image on top, full-width CTA below.
   No overlay or caption on the image so the photo reads at full strength. */
.tt-brand-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: transparent;
    color: var(--tt-text);
    border-radius: 0;
}
.tt-brand-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;        /* matches the 1024×512 vendored brand assets */
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0;
    border: 2px solid #d9d9d9;
    transition: border-color .15s ease;
}
.tt-brand-card:hover .tt-brand-card__media,
.tt-brand-card:focus-within .tt-brand-card__media {
    border-color: var(--tt-primary);
}
.tt-brand-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tt-brand-card:hover .tt-brand-card__media img,
.tt-brand-card:focus-within .tt-brand-card__media img {
    transform: scale(1.04);
}
.tt-brand-card__cta {
    align-self: stretch;        /* full-width button under the image */
    justify-content: center;
}
.tt-brand-card__cta:hover {
    background: var(--tt-secondary);
    border-color: var(--tt-secondary);
}

/* ── About split — image left, copy right ────────────────── */
.tt-about {
    background: var(--tt-site-bg);
    padding: 24px 0 80px;
}
.tt-about__heading {
    text-align: center;
    margin: 0 0 40px;
}
.tt-about__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}
.tt-about__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--tt-radius);
}
.tt-about__copy p {
    color: var(--tt-text);
    margin: 0 0 1.1em;
    line-height: 1.8;
}
.tt-about__cta { margin-top: 14px; text-align: center; }

/* ── Top products grid ───────────────────────────────────── */
.tt-products {
    background: var(--tt-site-bg);
    padding: 72px 0 80px;
    border-top: 1px solid var(--tt-line);
}
.tt-products__heading {
    text-align: center;
    margin: 0 0 40px;
}
.tt-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
/* Card styling is scoped to product GRIDS so the show-page wrapper
   (also `.tt-product`) doesn't pick up the border/shadow/lift. */
.tt-products__grid .tt-product {
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.tt-products__grid .tt-product:hover {
    border-color: var(--tt-primary);
    transform: translateY(-2px);
    box-shadow: var(--tt-shadow-card);
}
.tt-product__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.tt-product__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.tt-product:hover .tt-product__media img { transform: scale(1.04); }
.tt-product__body {
    padding: 18px 18px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tt-product__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    text-transform: none;
    line-height: 1.3;
}
.tt-product__title a {
    color: var(--tt-text);
}
.tt-product__title a:hover { color: var(--tt-primary); }
.tt-product__price {
    color: var(--tt-text);
    font-weight: 600;
    font-size: 1rem;
}
.tt-product__price .tt-price-from { color: var(--tt-text-muted); font-weight: 400; font-size: .85rem; }
.tt-product__price .tt-price-range { white-space: nowrap; }
.tt-product__cta { margin-top: auto; }

.tt-products__more { margin-top: 40px; text-align: center; }
.tt-products__pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 28px;
    list-style: none; padding: 0;
}
.tt-products__pagination a,
.tt-products__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--tt-line);
    color: var(--tt-text);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--tt-radius);
}
.tt-products__pagination .is-current,
.tt-products__pagination a:hover {
    background: var(--tt-primary);
    color: #fff;
    border-color: var(--tt-primary);
}

/* ── Latest news / blog feed ─────────────────────────────── */
.tt-news {
    background: var(--tt-site-bg);
    padding: 72px 0 80px;
    border-top: 1px solid var(--tt-line);
}
.tt-news__heading {
    text-align: center;
    margin: 0 0 36px;
}
.tt-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.tt-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tt-line);
    transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.tt-news-card:hover {
    border-color: var(--tt-primary);
    transform: translateY(-2px);
    box-shadow: var(--tt-shadow-card);
}
.tt-news-card__media {
    aspect-ratio: 16 / 9;
    background: #f1f1f1 center/cover no-repeat;
    overflow: hidden;
}
.tt-news-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease;
}
.tt-news-card:hover .tt-news-card__media img { transform: scale(1.03); }
.tt-news-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tt-news-card__date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tt-text-muted);
    font-weight: 600;
}
.tt-news-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: none;
    line-height: 1.35;
    margin: 0;
}
.tt-news-card__title a { color: var(--tt-text); }
.tt-news-card__title a:hover { color: var(--tt-primary); }
.tt-news-card__excerpt {
    color: var(--tt-text-muted);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}
.tt-news-card__more {
    margin-top: 6px;
    color: var(--tt-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.tt-news-card__more:hover { color: var(--tt-secondary); }
.tt-news__cta-row { text-align: center; margin-top: 40px; }

/* ── Footer — single dark band ────────────────────────────
   Matches taterbuiltturbocharger.com customizer:
     bg     = #14171c  (--nv-dark-bg)
     text   = #ffffff  (--nv-text-dark-bg)
     menu   = 0.9em / 500 / center / 20px gap / hover red
     social = 18px icons, 5px radius, 5px padding, 10px gap
     widget = stacked centered email / address / phone
   ──────────────────────────────────────────────────────── */
.tt-footer {
    background: var(--tt-dark);
    color: var(--tt-text-on-dark);
    padding: 36px 0 28px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    border-top: 0;
}
.tt-footer .tt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.tt-footer a { color: #fff; }
.tt-footer a:hover,
.tt-footer a:focus-visible { color: var(--tt-primary); }

/* Menu — horizontal centered list */
.tt-footer__menu-wrap { width: 100%; }
.tt-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    row-gap: 6px;
}
.tt-footer__menu a {
    color: #fff;
    font-size: 0.9em;     /* 12.6px @ 14px base */
    font-weight: 500;
    line-height: 1.6em;
    text-transform: none;
    letter-spacing: 0;
}
.tt-footer__menu a:hover { color: var(--tt-primary); }

/* Payment icons */
.tt-footer__payment {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}
.tt-footer__payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 28px;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px 6px;
    box-sizing: border-box;
    color: #1a1a1a;
}
.tt-footer__payment-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

/* Contact widget — vertical stacked */
.tt-footer__widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tt-footer__widget-line {
    color: rgba(255,255,255,.92);
    font-size: 0.95em;
    font-style: normal;
    text-decoration: none;
}
.tt-footer__widget-line:hover { color: var(--tt-primary); }

/* Social icons */
.tt-footer__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.tt-footer__social a {
    width: 32px; height: 32px;
    border-radius: 5px;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #fff;
    transition: background-color .15s ease, color .15s ease;
}
.tt-footer__social a:hover { background: var(--tt-primary); color: #fff; }
.tt-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.tt-footer__copyright {
    color: rgba(255,255,255,.7);
    font-size: 0.85em;
    margin-top: 4px;
}

/* ── Notification bar ────────────────────────────────────── */
.tt-notification {
    background: var(--tt-primary);
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: .03em;
}
.tt-notification a { color: #fff; text-decoration: underline; }

/* ── Product page (Shop Mendol show.blade.php override) ──── */
.tt-product-page { padding: 36px 0 64px; }

.tt-breadcrumb {
    font-size: 13px;
    color: var(--tt-text-muted);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tt-breadcrumb a { color: var(--tt-text-muted); }
.tt-breadcrumb a:hover { color: var(--tt-primary); }
.tt-breadcrumb__current { color: var(--tt-text); }

.tt-product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: flex-start;
}

/* Gallery */
.tt-product__gallery { position: sticky; top: 110px; align-self: flex-start; }
.tt-product__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border: 2px solid #e1e1e1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tt-product__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-product__main-placeholder {
    font-size: 4rem;
    font-weight: 800;
    color: #ccc;
    text-transform: uppercase;
}
.tt-product__thumbs {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}
.tt-product__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border: 2px solid #e1e1e1;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: border-color .15s ease;
}
.tt-product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-product__thumb:hover { border-color: var(--tt-secondary); }
.tt-product__thumb.is-active { border-color: var(--tt-primary); }

/* Info column */
.tt-product__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tt-product__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--tt-primary);
}
.tt-product__title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    text-transform: none;
    line-height: 1.2;
    margin: 0;
    color: var(--tt-text);
}
.tt-product__price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tt-text);
    margin: 4px 0 0;
}
.tt-product__short {
    color: var(--tt-text);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
.tt-product__short p { margin: 0 0 .8em; }

/* Variant + option labels */
.tt-product__field-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tt-text);
    margin: 8px 0 8px;
}
.tt-required { color: var(--tt-primary); margin-left: 4px; }

.tt-product__variants,
.tt-product__options { display: flex; flex-direction: column; gap: 4px; }
.tt-option-group { margin-bottom: 4px; }

/* Swatch buttons (radio inputs styled as pills) */
.tt-product__variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tt-swatch { cursor: pointer; }
.tt-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.tt-swatch__face {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #d9d9d9;
    background: #fff;
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tt-swatch__face small {
    font-size: 11px;
    font-weight: 500;
    color: var(--tt-text-muted);
    text-transform: none;
    letter-spacing: 0;
}
.tt-swatch:hover .tt-swatch__face { border-color: var(--tt-primary); color: var(--tt-primary); }
.tt-swatch input:checked + .tt-swatch__face {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
}
.tt-swatch input:checked + .tt-swatch__face small { color: rgba(255,255,255,.85); }

.tt-product__select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #d9d9d9;
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--tt-text);
}
.tt-product__select:focus { border-color: var(--tt-primary); outline: 0; }

/* Add to cart row */
.tt-product__form { margin-top: 8px; }
.tt-product__add {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.tt-product__qty {
    width: 80px;
    padding: 10px;
    border: 2px solid #d9d9d9;
    text-align: center;
    font: inherit;
    font-size: 14px;
}
.tt-product__qty:focus { border-color: var(--tt-primary); outline: 0; }
.tt-product__cta {
    flex: 1 1 auto;
    padding: 14px 24px;
    font-size: 14px;
    justify-content: center;
}

.tt-product__meta {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: var(--tt-text-muted);
}
.tt-product__meta-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tt-text); }
.tt-product__meta-value a { color: var(--tt-text); }
.tt-product__meta-value a:hover { color: var(--tt-primary); }

/* ── Product info sections (tabs / accordion) ──
   Markup: paired <details data-tt-tab><summary/><body/></details> elements.
   Mobile gets a true stacked accordion (one accordion row per tab, body
   directly underneath, native <details> open/close). Desktop overrides to
   a card-catalog tab layout — heads in a row above one shared bordered
   content card, single-active controlled by JS .is-active class. */

.tt-product-tabs {
    margin-top: 56px;
}
.tt-product-tab {
    background: transparent;
}
.tt-product-tab__head {
    cursor: pointer;
    user-select: none;
    list-style: none;          /* hide native <summary> disclosure marker */
}
.tt-product-tab__head::-webkit-details-marker { display: none; }
.tt-product-tab__head::marker { display: none; }
.tt-rich-text {
    /* shared inside .tt-product-tab__body */
}

/* ── Desktop: card-catalog ── */
@media (min-width: 901px) {
    .tt-product-tabs {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
    }
    /* `display: contents` makes <details> transparent to layout — its
       summary + body become direct flex items of .tt-product-tabs.
       Summaries line up in a row at the top; bodies flex-wrap to row 2
       (forced full-width via flex-basis 100%) and only the active one
       displays — so they all stack at the same spot but only one is
       visible. */
    .tt-product-tab { display: contents; }

    .tt-product-tab__head {
        position: relative;
        background: #ececec;
        color: var(--tt-text-muted);
        border: 2px solid #d9d9d9;
        border-bottom: 0;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: 10px 18px 12px;
        margin-right: 4px;
        margin-bottom: -2px;       /* overlap the card's top edge */
        z-index: 2;
        white-space: nowrap;
        flex: 0 0 auto;
        transition: background-color .15s ease, color .15s ease, padding .15s ease;
    }
    .tt-product-tab__head:hover {
        color: var(--tt-text);
        background: #f5f5f5;
    }
    .tt-product-tab.is-active > .tt-product-tab__head {
        background: #fff;
        color: var(--tt-text);
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .tt-product-tab.is-active > .tt-product-tab__head::before {
        content: '';
        position: absolute;
        top: -2px; left: -2px; right: -2px;
        height: 3px;
        background: var(--tt-primary);
    }
    .tt-product-tab.is-active > .tt-product-tab__head::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: -2px;
        height: 2px;
        background: #fff;
    }

    /* Shared card area. flex: 1 1 100% forces a wrap; order: 99 pushes to end. */
    .tt-product-tab__body {
        flex: 1 1 100%;
        order: 99;
        background: #fff;
        border: 2px solid #d9d9d9;
        padding: 28px 30px;
        position: relative;
        z-index: 1;
        display: none !important;    /* override native <details> open default */
    }
    .tt-product-tab.is-active > .tt-product-tab__body {
        display: block !important;
    }
}

/* ── Mobile: stacked accordion (≤ 900px) ── */
@media (max-width: 900px) {
    .tt-product-tabs {
        margin-top: 32px;
        border: 2px solid #d9d9d9;
    }
    .tt-product-tab {
        background: #fff;
        border-bottom: 1px solid #d9d9d9;
    }
    .tt-product-tab:last-child { border-bottom: 0; }

    .tt-product-tab__head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 14px 44px 14px 16px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--tt-text);
        background: #fafafa;
    }
    .tt-product-tab__head::after {
        content: '+';
        position: absolute;
        right: 14px; top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        line-height: 1;
        font-weight: 400;
        color: var(--tt-primary);
        transition: transform .2s ease;
    }
    /* When <details open>: rotate + into × and switch background to white,
       red left rail to anchor it as the focused row */
    .tt-product-tab[open] > .tt-product-tab__head {
        background: #fff;
        border-left: 4px solid var(--tt-primary);
        padding-left: 12px;
    }
    .tt-product-tab[open] > .tt-product-tab__head::after {
        transform: translateY(-50%) rotate(45deg);
    }
    .tt-product-tab__body {
        padding: 16px 16px 22px;
        background: #fff;
    }
}
.tt-rich-text { line-height: 1.7; color: var(--tt-text); }
.tt-rich-text ul,
.tt-rich-text ol { padding-left: 1.4em; margin: 0 0 1em; }
.tt-rich-text li { margin-bottom: .35em; }
.tt-rich-text p { margin: 0 0 1em; }
.tt-rich-text strong { font-weight: 700; }

/* Related strip uses existing .tt-products__grid */
.tt-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--tt-line); }
.tt-related__heading { text-align: center; margin: 0 0 28px; }

/* Mobile: stack gallery + info, drop sticky behavior, accordion tabs.
   On mobile the card-catalog metaphor becomes a stacked accordion — each
   tab is a bordered card row with its own +/× toggle on the right. */
@media (max-width: 900px) {
    .tt-product { grid-template-columns: 1fr; gap: 28px; }
    .tt-product__gallery { position: static; }
    .tt-product__title { font-size: 1.4rem; }

    .tt-product-tabs__strip {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    .tt-product-tabs__strip > li { margin-bottom: 0; }
    .tt-product-tabs__btn {
        background: #fff;
        color: var(--tt-text);
        border: 2px solid #d9d9d9;
        border-bottom: 0;
        text-align: left;
        padding: 14px 40px 14px 16px;
        position: relative;
        text-transform: uppercase;
        font-size: 12px;
    }
    .tt-product-tabs__strip > li:not(:first-child) .tt-product-tabs__btn { border-top: 0; }
    .tt-product-tabs__btn::before { display: none; }
    .tt-product-tabs__btn::after {
        content: '+';
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 400;
        font-size: 22px;
        line-height: 1;
        color: var(--tt-primary);
        transition: transform .2s ease;
        background: transparent;
        height: auto;
        left: auto;
    }
    .tt-product-tabs__btn.is-active {
        padding-top: 14px;
        padding-bottom: 14px;
        background: #fff;
        border-left-color: var(--tt-primary);
        border-left-width: 4px;
        padding-left: 14px;
    }
    .tt-product-tabs__btn.is-active::after { transform: translateY(-50%) rotate(45deg); }

    .tt-product-tabs__panels {
        border-top: 0;
        padding: 20px 16px;
        margin-top: 0;
    }
    .tt-product-tabs__panel.is-active { border-top: 0; }
}

/* ── Shop catalog (index) ────────────────────────────────── */
.tt-shop-page { padding: 36px 0 80px; }
.tt-shop-page__head { margin-bottom: 28px; }
.tt-shop-page__title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin: 0 0 6px;
    text-transform: none;
}
.tt-shop-page__sub { margin: 0; color: var(--tt-text-muted); font-size: 14px; }

/* Year-bracket / sub-category quick-drill pills, rendered on parent
   category pages (Cummins, Powerstroke, Parts, etc.). Each pill links to
   one child category; label preserves the bracketed year ranges as-is. */
.tt-year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.tt-year-pills__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 2px solid var(--tt-line);
    background: #fff;
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .01em;
    border-radius: 0;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.tt-year-pills__link:hover,
.tt-year-pills__link:focus-visible {
    border-color: var(--tt-primary);
    background: var(--tt-primary);
    color: #fff;
}
.tt-shop-page__description {
    margin: 6px 0 0;
    color: var(--tt-text);
    line-height: 1.6;
    max-width: 720px;
}

.tt-shop-page__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    align-items: flex-start;
}

/* Sidebar */
.tt-shop-page__sidebar { position: sticky; top: 110px; align-self: flex-start; }
.tt-shop-search {
    display: flex;
    align-items: stretch;
    margin-bottom: 18px;
    border: 2px solid #d9d9d9;
    background: #fff;
}
.tt-shop-search input[type="search"] {
    flex: 1 1 auto;
    border: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    background: transparent;
    color: var(--tt-text);
    min-width: 0;
}
.tt-shop-search input[type="search"]:focus { outline: 0; }
.tt-shop-search button {
    flex: 0 0 auto;
    background: var(--tt-primary);
    border: 0;
    color: #fff;
    width: 42px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tt-shop-search button:hover { background: var(--tt-secondary); }
.tt-shop-search svg { width: 18px; height: 18px; }

.tt-shop-filters__heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--tt-text);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tt-primary);
}

/* Nested tree: top-level groups (Cummins, Powerstroke, …) with their
   year-range children indented underneath. The parent row stays a primary
   filter link; children are smaller / muted unless their branch is active. */
.tt-shop-filters__list { list-style: none; margin: 0; padding: 0; }
.tt-shop-filters__group { margin-bottom: 4px; }

.tt-shop-filters__link {
    display: block;
    padding: 7px 4px;
    color: var(--tt-text);
    line-height: 1.35;
    text-decoration: none;
    transition: color .12s ease, background-color .12s ease, border-color .12s ease;
}
.tt-shop-filters__link:hover { color: var(--tt-primary); }

.tt-shop-filters__link--all {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tt-line);
    margin-bottom: 8px;
}

.tt-shop-filters__link--parent {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 4px 4px;
}

.tt-shop-filters__sublist {
    list-style: none;
    margin: 0 0 4px;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--tt-line);
}
.tt-shop-filters__sublist > li { line-height: 1; }

.tt-shop-filters__link--child {
    font-size: 12px;
    font-weight: 500;
    color: var(--tt-text-muted);
    padding: 5px 6px;
    border-radius: 0;
}
.tt-shop-filters__link--child:hover {
    color: var(--tt-primary);
    background: rgba(187, 0, 0, .04);
}

/* When the current page is in this branch, brighten the parent + sub-list
   accent so the user always knows where they are. */
.tt-shop-filters__group.is-current > .tt-shop-filters__link--parent {
    color: var(--tt-primary);
}
.tt-shop-filters__group.is-current > .tt-shop-filters__sublist {
    border-left-color: var(--tt-primary);
}

.tt-shop-filters__link.is-active {
    color: #fff;
    background: var(--tt-primary);
    font-weight: 700;
}
.tt-shop-filters__link--child.is-active {
    color: #fff;
    background: var(--tt-primary);
}
.tt-shop-filters__link--all.is-active {
    color: #fff;
    background: var(--tt-primary);
    border-bottom-color: var(--tt-primary);
}

/* Toolbar (count + sort) */
.tt-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tt-line);
}
.tt-shop-toolbar__count { font-size: 13px; color: var(--tt-text-muted); }
.tt-shop-toolbar__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tt-shop-toolbar__sort label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tt-text-muted);
}
.tt-shop-toolbar__sort select {
    width: auto;
    padding: 8px 28px 8px 12px;
    font-size: 13px;
}

.tt-shop-empty {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed var(--tt-line);
}
.tt-shop-empty p { margin: 0 0 16px; color: var(--tt-text-muted); }

.tt-product__media-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    font-weight: 800;
}

/* Pagination */
.tt-pagination { margin-top: 32px; }
.tt-pagination__list {
    list-style: none; margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.tt-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 2px solid #d9d9d9;
    background: #fff;
    color: var(--tt-text);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tt-pagination__btn:hover { border-color: var(--tt-primary); color: var(--tt-primary); }
.tt-pagination__btn.is-current {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
    pointer-events: none;
}
.tt-pagination__btn.is-disabled {
    color: var(--tt-text-muted);
    border-color: #ececec;
    pointer-events: none;
}
.tt-pagination__ellipsis { padding: 0 8px; color: var(--tt-text-muted); align-self: center; }

/* Mobile-only collapsible toggle for the category tree.
   Search input + toggle button stay visible; the tree itself hides until
   the user taps "Browse Categories". Avoids pushing the product grid
   ~1900px down on /product-category/* pages. */
.tt-shop-filters__mobile-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: var(--tt-dark);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    margin-bottom: 12px;
}
.tt-shop-filters__mobile-toggle:hover {
    background: var(--tt-primary);
}
.tt-shop-filters__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}
.tt-shop-filters__mobile-toggle[aria-expanded="true"] .tt-shop-filters__chevron {
    transform: rotate(-135deg) translate(-2px, -2px);
}

@media (max-width: 900px) {
    .tt-shop-page__layout { grid-template-columns: 1fr; gap: 22px; }
    .tt-shop-page__sidebar { position: static; }

    .tt-shop-filters__mobile-toggle { display: flex; }

    /* Default-collapsed: hide the tree until toggle aria-expanded=true. */
    .tt-shop-filters__mobile-toggle[aria-expanded="false"] + .tt-shop-filters {
        display: none;
    }
}

/* ── Cart page ─────────────────────────────────────────── */
.tt-cart-page { padding: 36px 0 80px; }
.tt-cart-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--tt-line);
}
.tt-cart-empty p { margin: 0 0 18px; color: var(--tt-text-muted); }

.tt-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: flex-start;
}

.tt-cart-items { display: flex; flex-direction: column; gap: 12px; }
.tt-cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--tt-line);
}
.tt-cart-item__media {
    width: 88px;
    height: 88px;
    background: #f5f5f5;
    overflow: hidden;
    display: block;
}
.tt-cart-item__media img {
    width: 100%; height: 100%; object-fit: cover;
}
.tt-cart-item__body { min-width: 0; }
.tt-cart-item__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: none;
    line-height: 1.3;
}
.tt-cart-item__title a { color: var(--tt-text); }
.tt-cart-item__title a:hover { color: var(--tt-primary); }
.tt-cart-item__variant {
    font-size: 12px;
    font-weight: 600;
    color: var(--tt-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.tt-cart-item__options {
    list-style: none;
    margin: 4px 0 6px;
    padding: 0;
    font-size: 12px;
    color: var(--tt-text-muted);
    line-height: 1.5;
}
.tt-cart-item__opt-label { font-weight: 600; color: var(--tt-text); }
.tt-cart-item__unit { font-size: 13px; color: var(--tt-text-muted); }
.tt-cart-item__line {
    font-size: 16px;
    font-weight: 800;
    color: var(--tt-text);
    min-width: 88px;
    text-align: right;
}
.tt-cart-item__remove button {
    background: transparent;
    border: 1px solid #d9d9d9;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--tt-text-muted);
    font-size: 18px;
    line-height: 1;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.tt-cart-item__remove button:hover {
    background: var(--tt-primary);
    border-color: var(--tt-primary);
    color: #fff;
}

/* Quantity stepper */
.tt-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid #d9d9d9;
    background: #fff;
}
.tt-qty-stepper__btn {
    width: 32px;
    height: 36px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--tt-text);
    transition: background-color .15s ease, color .15s ease;
}
.tt-qty-stepper__btn:hover { background: var(--tt-primary); color: #fff; }
.tt-qty-stepper__value {
    min-width: 36px;
    padding: 0 4px;
    font-weight: 700;
    text-align: center;
    align-self: center;
    user-select: none;
}

.tt-cart-back {
    display: inline-block;
    margin-top: 8px;
    color: var(--tt-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.tt-cart-back:hover { color: var(--tt-primary); }

/* Cart summary card */
.tt-cart-summary {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid var(--tt-line);
    padding: 24px;
    align-self: flex-start;
}
.tt-cart-summary__heading {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tt-line);
}
.tt-cart-summary__lines { margin: 0; }
.tt-cart-summary__lines > div {
    display: flex;
    justify-content: space-between;
    margin: 0 0 8px;
    font-size: 14px;
}
.tt-cart-summary__lines dt { margin: 0; color: var(--tt-text-muted); }
.tt-cart-summary__lines dd { margin: 0; font-weight: 600; }
.tt-cart-summary__free { color: #207a37 !important; font-weight: 700 !important; }
.tt-cart-summary__total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid var(--tt-text);
    font-size: 18px;
    font-weight: 800;
}
.tt-cart-summary__cta { width: 100%; padding: 14px; font-size: 14px; }
.tt-cart-summary__action { margin-top: 16px; }
.tt-cart-summary__note { font-size: 11px; color: var(--tt-text-muted); margin: 10px 0 0; text-align: center; }

@media (max-width: 900px) {
    .tt-cart-layout { grid-template-columns: 1fr; gap: 22px; }
    .tt-cart-summary { position: static; }
    .tt-cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas:
            "media body line"
            "media qty  remove";
        row-gap: 10px;
    }
    .tt-cart-item__media { grid-area: media; width: 72px; height: 72px; }
    .tt-cart-item__body { grid-area: body; }
    .tt-cart-item__line { grid-area: line; min-width: auto; align-self: start; }
    .tt-cart-item__qty  { grid-area: qty; justify-self: start; }
    .tt-cart-item__remove { grid-area: remove; justify-self: end; align-self: center; }
}

/* ── Checkout success / cancel ───────────────────────────── */
.tt-checkout { padding: 60px 0 80px; }
.tt-checkout__container { display: flex; justify-content: center; }
.tt-checkout-card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 48px 36px;
    border: 1px solid var(--tt-line);
    text-align: center;
}
.tt-checkout-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tt-checkout-card__icon svg { width: 30px; height: 30px; display: block; }
.tt-checkout-card--success .tt-checkout-card__icon {
    background: rgba(32, 122, 55, .12);
    color: #207a37;
}
.tt-checkout-card--cancel .tt-checkout-card__icon {
    background: rgba(187, 0, 0, .12);
    color: var(--tt-primary);
}
.tt-checkout-card__title {
    font-size: 1.5rem;
    text-transform: none;
    margin: 0 0 8px;
}
.tt-checkout-card__sub { color: var(--tt-text-muted); margin: 0 0 24px; }

.tt-checkout-card__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tt-order-summary {
    margin: 24px 0 4px;
    text-align: left;
    border: 1px solid var(--tt-line);
    padding: 18px 20px;
}
.tt-order-summary__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tt-line);
    margin-bottom: 12px;
}
.tt-order-summary__label { display: block; font-size: 11px; color: var(--tt-text-muted); text-transform: uppercase; letter-spacing: .12em; }
.tt-order-summary__value { font-size: 1.05rem; font-weight: 800; }
.tt-order-summary__badge {
    background: var(--tt-primary);
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.tt-order-summary__items {
    list-style: none; margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tt-order-summary__items li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.tt-order-summary__items li small { color: var(--tt-text-muted); margin-left: 4px; }
.tt-order-summary__total {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--tt-text);
    font-size: 18px;
    font-weight: 800;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Skip-to-content / a11y ──────────────────────────────── */
.skip-to-content {
    position: absolute;
    left: -9999px;
}
.skip-to-content:focus {
    left: 16px;
    top: 16px;
    background: var(--tt-primary);
    color: #fff;
    padding: 10px 14px;
    z-index: 200;
}

/* ── Responsive ──────────────────────────────────────────── */

/* Defensive: prevent grid items / long product titles from pushing the row
   wider than the viewport — `1fr` defaults to `minmax(auto,1fr)` and the
   `auto` part is content-width, so a long unbreakable word can overflow. */
.tt-brand-grid > *,
.tt-products__grid > *,
.tt-news__grid > *,
.tt-about__split > * {
    min-width: 0;
}
.tt-product__title,
.tt-news-card__title,
.tt-product__price {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1024px) {
    :root {
        --tt-fs-h1: 2.1rem;
        --tt-fs-h2: 1.6rem;
    }
    .tt-header__top { display: none; }
    .tt-primary-nav { display: none; }
    .tt-burger { display: inline-flex; }

    /* The mobile-bar logo replaces the top-bar logo on small viewports */
    .tt-logo--top { display: none; }
    .tt-logo--main { display: inline-flex; }

    /* 3-column header bar on mobile: [burger] [logo] [call + cart] */
    .tt-header__main-inner {
        display: grid;
        grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
        align-items: center;
        gap: 12px;
        min-height: 64px;
        padding: 10px 0;
    }
    .tt-header__main-inner > .tt-burger      { grid-column: 1; justify-self: start; }
    .tt-header__main-inner > .tt-logo--main  { grid-column: 2; justify-self: center; }
    .tt-header__main-inner > .tt-primary-nav { display: none; }
    .tt-header__main-inner > .tt-header__actions {
        grid-column: 3;
        justify-self: end;
        display: inline-flex;
        margin-left: 0;
    }

    .tt-logo--main img { max-height: 44px; }
    .tt-products__grid,
    .tt-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tt-about__split { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
    .tt-section { padding: 48px 0; }
    .tt-section--lg { padding: 64px 0; }
    .tt-brand-grid { grid-template-columns: 1fr; gap: 14px; }
    .tt-products__grid,
    .tt-news__grid { grid-template-columns: 1fr; gap: 18px; }
    .tt-hero { min-height: 280px; }
    .tt-hero__title { font-size: 2rem; }

    /* On very narrow screens drop "Menu" label text but keep the bars icon */
    .tt-burger { padding: 8px 10px; gap: 6px; font-size: 12px; }
}

/* Tighten further at really small widths to prevent any side-scroll */
@media (max-width: 380px) {
    .tt-header__main-inner {
        grid-template-columns: auto auto auto;
        gap: 6px;
    }
    .tt-burger { padding: 6px 8px; font-size: 0; gap: 0; }
    .tt-burger .tt-burger-icon { margin: 0; }
    .tt-logo--main img { max-height: 36px; }
    .tt-icon-btn { width: 36px; height: 36px; }
}

/* ── Product image zoom + lightbox ───────────────────────────── */
.tt-product__main { position: relative; }
.tt-product__main img[data-tt-gallery-main] { cursor: zoom-in; }
.tt-product__zoom {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.55); color: #fff;
    border-radius: 6px; font-size: 1.05rem; line-height: 1;
    padding: 6px 8px; pointer-events: none;
}
.tt-lightbox {
    position: fixed; inset: 0; z-index: 3000; display: none;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,.92); padding: 24px;
}
.tt-lightbox.is-open { display: flex; }
.tt-lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.tt-lightbox__btn {
    position: absolute; background: rgba(255,255,255,.12); color: #fff;
    border: 0; cursor: pointer; border-radius: 50%;
    width: 48px; height: 48px; font-size: 2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.tt-lightbox__btn:hover { background: rgba(255,255,255,.3); }
.tt-lightbox__close { top: 18px; right: 18px; font-size: 1.9rem; }
.tt-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.tt-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.tt-lightbox__count {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: .9rem; background: rgba(0,0,0,.45);
    padding: 4px 12px; border-radius: 999px;
}
.tt-lightbox--single .tt-lightbox__prev,
.tt-lightbox--single .tt-lightbox__next,
.tt-lightbox--single .tt-lightbox__count { display: none; }
@media (max-width: 600px) {
    .tt-lightbox__btn { width: 40px; height: 40px; font-size: 1.6rem; }
}

/* ──────────────────────────────────────────────────────────────
   Showcase: premium hero-configurator layout (products.layout='showcase')
   ────────────────────────────────────────────────────────────── */
.tt-product-page--showcase { padding-top: 0; }

.tt-showcase-hero {
    position: relative;
    background-color: #14171c;
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-bottom: 44px;
    display: flex;
    align-items: flex-end;
    min-height: 56vh;
}
.tt-showcase-hero__inner { padding: 60px 0 46px; max-width: 760px; }
.tt-showcase-hero__eyebrow {
    text-transform: uppercase; letter-spacing: .16em; font-size: .82rem;
    font-weight: 700; color: #d0a675; margin-bottom: 14px;
}
.tt-showcase-hero__title {
    font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; font-weight: 800;
    text-transform: uppercase; margin: 0 0 18px; text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.tt-showcase-hero__price { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 26px; }
.tt-showcase-hero__cta {
    display: inline-block; background: #bb0000; color: #fff; border: 0;
    padding: 14px 30px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; border-radius: 0; text-decoration: none; transition: background .15s;
}
.tt-showcase-hero__cta:hover { background: #d40000; color: #fff; }

/* Premium sticky configurator card */
.tt-product--showcase { gap: 40px; }
.tt-product--showcase .tt-product__info {
    position: sticky; top: 110px;
    background: #fff; border: 1px solid #e6e6e6; border-top: 4px solid #bb0000;
    border-radius: 10px; padding: 26px 26px 30px;
    box-shadow: 0 14px 40px -22px rgba(20, 23, 28, .5);
}
.tt-product__title--showcase {
    font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
    color: #14171c; font-weight: 800; margin: 0;
}
.tt-product--showcase .tt-product__price { font-size: 2rem; }

@media (max-width: 900px) {
    .tt-showcase-hero { min-height: 42vh; }
    .tt-product--showcase .tt-product__info { position: static; }
}
@media (max-width: 600px) {
    .tt-showcase-hero__inner { padding: 40px 0 30px; }
}
