/* ============================================
   SUPERPRO 2025 BRAND REFRESH

   This file overrides the existing site styles
   with the new SuperPro branding. To revert,
   simply remove the <link> to this file in
   includes/header.cfm.

   Brand Fonts:
     Body:      Poppins
     Headings:  Poppins (Magistral available but not currently used)
   Brand Colors:
     Primary Blue:  #004990
     Dark Navy:     #003366
     Yellow:        #FFCB05
     Dark Yellow:   #CCA100
   ============================================ */

/* --- Poppins (body + heading font) --- */
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-SemiBold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-SemiBoldItalic.otf') format('opentype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins/Poppins-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

/* --- Magistral (available for future use) --- */
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Book.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Book Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Medium Italic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Magistral'; src: url('../fonts/magistral/Magistral Bold Italic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }


/* ============================================
   FONTS - override all font-family references
   ============================================ */

body,
.column-block,
.info-notice,
p {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6,
#mainNav ul li,
.quote-position h4,
.quote-position h5,
#copyright-container {
    font-family: 'Poppins', sans-serif;
}

.footer-column-section,
.footer-column-section h3 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

/* Spread footer columns across full width using flexbox */
#footer-container .fixedwidth {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-column-section {
    flex: 1 1 0;
    width: auto;
    min-width: 200px;
    margin: 0;
    float: none;
}
.footer-column-section ul li {
    margin-bottom: 6px;
}
.footer-column-section:first-child {
    margin-top: 0;
}
.footer-column-section:last-child {
    margin-bottom: 0;
}
#footer-divider {
    width: 100%;
    margin: 20px 0;
    flex-basis: 100%;
}
#copyright-container {
    width: auto;
    margin: 0;
    float: none;
}
#footer-social-container {
    width: auto;
    margin: 0;
    float: none;
    margin-left: auto;
    margin-right: 60px;
    display: flex;
    gap: 12px;
    align-items: center;
}
#footer-social-container .social-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    float: none;
    margin: 0;
}
#footer-social-container .social-icon:hover {
    opacity: 1;
}
#footer-social-container .social-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}


/* ============================================
   COLORS - override old palette
   Old gold #f1c621 -> New yellow #FFCB05
   Old navy #163b79 -> New blue #004990
   Old dark #131025 -> New navy #003366
   ============================================ */

/* --- Header --- */

#header {
    /* Yellow border-top is replaced by the #top-utility-bar above the page.
       Keep border-width 0 so we don't get a residual line from fluid.css. */
    border-top: 0 none !important;
    padding-top: 12px;
}

/* --- Logo --- */

#superpro-logo {
    margin-top: 8px;
}

@media only screen and (min-width: 1090px) {
    #header {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        padding-top: 1.5%;
    }
    #logo {
        float: none;
        flex-shrink: 0;
    }
    #mainNav {
        float: none;
        margin-left: auto;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    #superpro-logo {
        margin-top: 0;
    }
}

@media only screen and (max-width: 1089px) {
    #logo {
        width: 30%;
    }
    #superpro-logo {
        /* Vertically align with centre of 46px menu button at top:14px */
        margin-top: 18px;
        margin-left: 5%;
    }
}

@media only screen and (max-width: 600px) {
    #logo {
        width: 45%;
    }
}

/* --- Menu button --- */

.menu-link {
    background-color: #004990;
    top: 14px;
}
#mainNav.light .menu-link,
#mainNav.open .menu-link,
#mainNav.light.open .menu-link {
    background-color: #FFCB05;
}
#mainNav.open .menu-link {
    position: fixed;
    top: 14px;
    right: 5%;
}
#menu-circle {
    background-color: #004990;
}

/* --- Menu lines --- */

#mainNav.light .menu-line {
    background-color: #004990;
}
#mainNav.open .menu-line,
#mainNav.light.open .menu-line {
    background-color: #004990;
}

/* --- Nav links --- */

#mainNav ul li a,
#mainNav ul li a:visited {
    color: #004990;
}
#mainNav ul li a:hover,
#mainNav ul li a:active,
#mainNav ul li a.selected {
    background-color: #FFCB05;
}

#mainNav.light ul li a,
#mainNav.light ul li a:visited {
    color: #FFF;
}
#mainNav.light.open ul li a,
#mainNav.light.open ul li a:visited {
    color: #004990;
}
#mainNav.light ul li a:hover,
#mainNav.light ul li a:active,
#mainNav.light ul li a.selected {
    background-color: #FFCB05;
    color: #003366;
}

/* --- Full screen overlay menu --- */

.overlay {
    /* Old decorative yellow stripe at the top of the viewport. Replaced by
       #top-utility-bar — kill the border so it doesn't sit on top of the bar. */
    border-top: 0 none !important;
}

/* --- Banner --- */

#banner {
    border-bottom-color: #004990;
    position: relative;
    float: none !important;
    margin-bottom: -40px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    padding-bottom: 50px;
}

#banner > .clr {
    display: none !important;
}

#bannerContent,
#banner #bannerContent,
#banner > #bannerContent {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: center;
    width: 90%;
    max-width: 1232px;
    align-self: center !important;
    position: relative;
    z-index: 2;
}

.clarify {
    position: absolute !important;
    pointer-events: none;
    height: calc(100% + 40px) !important;
}

/* Banner vignette overlay for text readability */
.clarify {
    background:
        linear-gradient(to bottom, rgba(0,15,40,0.85) 0%, rgba(0,15,40,0.5) 8%, rgba(0,15,40,0.25) 20%, transparent 35%),
        radial-gradient(ellipse 65% 40% at 50% 45%, rgba(0,15,40,0.7) 0%, transparent 100%),
        radial-gradient(ellipse at 0% 0%, rgba(0,0,0,0.55) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.55) 0%, transparent 40%);
}

/* --- Quote strip --- */

.quote-container {
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

.st0 {
    fill: #FFCB05;
}
.quote-bg {
    background-color: #FFCB05;
}
.quote-position h4 {
    color: #003366;
}
.quote-position h5 {
    color: #003366;
}

/* --- Headings --- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.25;
    font-weight: 600;
}

h1 {
    font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.4rem);
    border-bottom: 3px solid #FFCB05;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.2rem, 2vw + 0.4rem, 2rem);
    margin-bottom: 15px;
}

h3 {
    font-size: clamp(1.05rem, 1.5vw + 0.3rem, 1.5rem);
    margin-bottom: 12px;
}

h4 {
    font-size: clamp(1rem, 1.2vw + 0.3rem, 1.3rem);
    margin-bottom: 10px;
}

h5 {
    font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem);
    margin-bottom: 8px;
}

h6 {
    font-size: clamp(0.85rem, 0.8vw + 0.2rem, 1rem);
    margin-bottom: 8px;
}

/* --- Breadcrumb --- */

.breadcrumb {
    text-align: left;
}
.breadcrumb ul li {
    float: none;
    display: inline;
}
.breadcrumb ul li a,
.breadcrumb ul li a:visited {
    color: #555;
}
.breadcrumb ul li a:active,
.breadcrumb ul li a:hover {
    color: #FFCB05;
}

/* --- Article Image Gallery (rich content articles) --- */

.article-gallery {
    margin: 30px 0 10px;
    clear: both;
}
.article-gallery h3 {
    margin-bottom: 15px;
}
.article-gallery__grid {
    column-count: 2;
    column-gap: 10px;
}
.article-gallery__grid figure {
    margin: 0 0 10px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    break-inside: avoid;
    background-color: #f3f3ee;
}
.article-gallery__grid figure a {
    display: block;
}
.article-gallery__grid figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}
.article-gallery__grid figure:hover img {
    transform: scale(1.03);
}
.article-gallery__grid figcaption {
    padding: 6px 8px;
    font-size: 0.85em;
    color: #666;
    background: #f8f8f8;
}
@media only screen and (max-width: 480px) {
    .article-gallery__grid {
        column-count: 1;
    }
}
@media only screen and (min-width: 1090px) {
    .article-gallery__grid {
        column-count: 4;
    }
}

/* --- News Listing Page (hero + card grid) --- */

.news-page {
    margin-bottom: 40px;
}

/* Twin hero (top 2 articles side-by-side on desktop, stacked on mobile) */
.news-hero-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 0 0 40px;
}
.news-hero-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.news-hero-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(-3px);
    text-decoration: none;
    color: #333;
}
.news-hero-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3ee;
}
.news-hero-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.news-hero-card:hover .news-hero-card__image img {
    transform: scale(1.04);
}
.news-hero-card__content {
    padding: 24px 26px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-hero-card__content h2 {
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
    line-height: 1.25;
    margin: 0 0 12px;
    color: #003366;
}
.news-hero-card__content p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 16px;
}
.news-hero-card__cta {
    display: inline-block;
    font-weight: 600;
    color: #004990;
    font-size: 0.95rem;
    margin-top: auto;
}
.news-hero-card:hover .news-hero-card__cta {
    color: #003366;
}

/* Section titles */
.news-section-title {
    font-size: 1.4rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1c621;
}

/* Card grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0 0 40px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.news-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    text-decoration: none;
    color: #333;
}
.news-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f3ee;
}
.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card__image img {
    transform: scale(1.05);
}
.news-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #003366;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}
.news-hero .news-card__badge {
    position: static;
    align-self: flex-start;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.news-card__content {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card__content h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #003366;
}
.news-card__sub {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Article types list */
.news-types-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.news-types-list li {
    margin: 0;
}
.news-types-list li a {
    display: inline-block;
    padding: 8px 14px;
    background: #f3f3ee;
    color: #003366;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.news-types-list li a:hover {
    background: #003366;
    color: #fff;
}

@media (max-width: 760px) {
    .news-hero-pair {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-hero-card__content {
        padding: 18px 20px 22px;
    }
    .news-hero-card__content h2 {
        font-size: 1.25rem;
    }
}

/* --- Related Parts Cards (news article product links) --- */

.related-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.related-part-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.related-part-card:hover,
.related-part-card:active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: #333;
}
.related-part-card__image {
    background: #fff;
    text-align: center;
    padding: 0;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.related-part-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.related-part-card__info {
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
}
.related-part-card__number {
    display: block;
    font-weight: 700;
    font-size: 1em;
    color: #004990;
    margin-bottom: 6px;
}
.related-part-card__title {
    display: block;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

/* --- Links --- */

a {
    color: #004990;
}
a:hover {
    color: #003366;
}

/* --- Footer --- */

#footer-container {
    background-color: #003366;
    background-image: none !important;
    border-top: 5px solid #004990;
    color: rgba(255,255,255,0.85);
    padding: 50px 0 40px;
}
#footer-container a,
#footer-container a:visited {
    color: rgba(255,255,255,0.75);
}
#footer-container a:hover,
#footer-container a:active {
    color: #FFCB05;
}

.footer-column-section h3 {
    color: #FFCB05;
    margin-bottom: 10px;
}

#footer-divider {
    background-color: rgba(255,255,255,0.15);
}

#copyright-container {
    color: rgba(255,255,255,0.5);
}

/* --- Product range links in overlay menu --- */

#product-range-links a {
    color: #004990;
}
#product-range-links a:hover {
    color: #003366;
    background-color: #FFCB05;
}

/* --- Footer responsive spacing --- */

@media only screen and (max-width: 1089px) {
    .footer-column-section ul li {
        margin-bottom: 6px;
    }
    .footer-column-section ul li a {
        padding: 4px 0;
    }
    #footer-social-container {
        margin-left: 0;
        margin-right: 0;
    }
}

@media only screen and (max-width: 600px) {
    .footer-column-section ul li {
        margin-bottom: 8px;
    }
    .footer-column-section ul li a {
        padding: 6px 0;
    }
    #footer-container .fixedwidth {
        width: 80%;
    }
    .footer-column-section {
        flex: 1 1 100%;
        min-width: 100%;
    }
    #footer-social-container {
        margin-left: 0;
    }
}

/* --- Buttons --- */

a.button, a.button:visited {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 28px;
    background-color: #004990;
    color: #fff;
    border: 2px solid #004990;
    border-radius: 3px;
    text-align: center;
    transition: all 0.2s ease;
    line-height: normal;
}
a.button:hover, a.button:active {
    background-color: #FFCB05;
    border-color: #FFCB05;
    color: #003366;
}

#locator input[type=submit],
input[type=submit],
button[type=submit] {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 28px;
    background-color: #004990;
    color: #fff;
    border: 2px solid #004990;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
#locator input[type=submit]:hover,
input[type=submit]:hover,
button[type=submit]:hover {
    background-color: #FFCB05;
    border-color: #FFCB05;
    color: #003366;
}

/* --- Back to top button --- */

#back-to-top a {
    background-color: #004990;
}
#back-to-top a:hover,
#back-to-top a:active {
    background-color: #FFCB05;
}

/* --- Product containers --- */

.productcontainer {
    border-top: none;
}
.productcontainer:last-child {
    border-bottom: none;
}

/* --- "NEW" badges --- */

.new {
    color: #004990;
}

/* --- Major point numbers (Why SuperPro page) --- */

.majorpointnumber {
    color: #004990;
}

/* ============================================
   HEADER SEARCH BAR
   ============================================ */

/* --- Search container in nav --- */

#header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#header-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

#header-search-form input[type="text"] {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    padding: 7px 36px 7px 12px;
    border: 2px solid #ddd;
    border-radius: 3px;
    outline: none;
    width: 240px;
    transition: border-color 0.2s ease, width 0.2s ease;
    background: #fff;
    color: #333;
}
#header-search-form input[type="text"]:focus {
    border-color: #004990;
}
#header-search-form input[type="text"]::placeholder {
    color: #999;
    font-size: 0.8rem;
}

#header-search-form button[type="submit"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#header-search-form button[type="submit"] svg {
    width: 24px;
    height: 24px;
    fill: #004990;
    transition: fill 0.15s ease;
}
#header-search-form button[type="submit"]:hover svg {
    fill: #003366;
}
@media only screen and (max-width: 1089px) {
    #header-search-form button[type="submit"] {
        right: calc(5% + 10px);
        top: calc(50% + 6px);
    }
    #header-search-form button[type="submit"] svg {
        width: 30px;
        height: 30px;
    }
}

/* --- Mobile search toggle --- */

#header-search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}
#header-search-toggle svg {
    width: 30px;
    height: 30px;
    fill: #004990;
}
#mainNav.light #header-search-toggle svg {
    fill: #fff;
}

/* --- Desktop: search bar always visible --- */

@media only screen and (min-width: 1090px) {
    #header-search-toggle {
        display: none !important;
    }
    #header-search-form {
        display: flex !important;
    }
    #mainNav ul {
        display: flex;
        align-items: center;
        margin: 0;
        float: none;
        order: 2;
        padding-top: 0;
    }
    #header-search {
        flex-shrink: 0;
        order: 1;
        margin-right: 18px;
    }
}

/* --- Mobile/Tablet: toggle icon, expandable bar --- */

@media only screen and (max-width: 1089px) {
    #header-search {
        position: absolute;
        right: calc(5% + 60px);
        top: 18px;
        margin-left: 0;
        z-index: 9998;
    }
    #header-search-toggle {
        display: flex;
    }
    #header-search-form {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: #004990;
        padding: 26px 5% 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        align-items: center;
    }
    #header-search.search-open #header-search-form {
        display: flex;
    }
    #header-search-form input[type="text"] {
        width: 100%;
        font-size: 1rem;
        padding: 10px 50px 10px 14px;
    }
}

@media only screen and (max-width: 600px) {
    #header-search {
        right: calc(5% + 55px);
    }
}

/* --- Autocomplete dropdown --- */

#header-search-results {
    display: none;
    position: fixed;
    min-width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #004990;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10001;
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
}

@media only screen and (max-width: 1089px) {
    #header-search-results {
        position: fixed;
        top: 58px !important;
        left: 0 !important;
        right: 0;
        min-width: 0;
        width: 100% !important;
        max-height: calc(100vh - 58px);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.search-cat-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #004990;
    padding: 8px 14px;
    background: #f5f7fa;
    border-bottom: 2px solid #FFCB05;
    margin: 0;
}

a.search-result-item,
a.search-result-item:visited {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.12s ease;
}
a.search-result-item:hover,
a.search-result-item:active,
a.search-result-item.active {
    background-color: #FFF8DC;
    color: #003366;
}
.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
    margin-left: 14px;
}
.search-result-item .sr-text {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
}
.search-result-item .sr-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .sr-desc {
    font-size: 0.78rem;
    color: #777;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-item .sr-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #004990;
    padding: 2px 6px;
    border-radius: 2px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-no-results {
    padding: 20px 14px;
    text-align: center;
    color: #999;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.search-view-all {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #004990;
    text-decoration: none;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    transition: background-color 0.15s ease;
}
.search-view-all:hover {
    background-color: #FFCB05;
    color: #003366;
}

/* ============================================
   SEARCH RESULTS PAGE (search.cfm)
   ============================================ */

.search-results-page h1 {
    border-bottom: 3px solid #FFCB05;
    padding-bottom: 6px;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-category {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #004990;
    padding: 12px 0 6px;
    border-bottom: 2px solid #FFCB05;
    margin: 25px 0 0;
}
.search-results-category:first-child {
    margin-top: 0;
}

.search-results-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.search-results-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    flex: 1;
}
.search-results-list li a:hover {
    color: #004990;
}
.search-results-list li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    background: #f5f5f5;
    padding: 4px;
}
.search-results-list .sr-page-text {
    flex: 1;
}
.search-results-list .sr-page-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    color: #003366;
}
.search-results-list .sr-page-desc {
    font-size: 0.85rem;
    color: #777;
    display: block;
    margin-top: 2px;
}
.search-results-list .sr-page-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #004990;
    padding: 3px 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================================
   Part gallery (part.number.cfm + ajax/part.number.cfm)
   Main image on top, horizontal thumbnail strip below.
   ============================================================ */
.part-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.part-gallery__main {
    width: 100%;
    min-width: 0;
}
.part-gallery__main .item img {
    width: 100%;
    height: auto;
    display: block;
}
.part-gallery__thumbs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 0 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
}
.part-gallery__thumbs li {
    flex: 0 0 80px;
    margin: 0;
    padding: 0;
}
.part-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    background: #fff;
    border: 2px solid #e3e3e3;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.75;
}
.part-gallery__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.part-gallery__thumb:hover,
.part-gallery__thumb:focus {
    opacity: 1;
    border-color: #004990;
    outline: none;
}
.part-gallery__thumb.is-active {
    opacity: 1;
    border-color: #004990;
    box-shadow: 0 0 0 1px #004990 inset;
}

@media (max-width: 480px) {
    .part-gallery__thumbs li {
        flex: 0 0 64px;
    }
}

/* ============================================
   PART.NUMBER.CFM (and ajax/part.number.cfm)
   Sticky right-hand purchase panel on desktop,
   near-top on mobile. Identical look on both
   pages — just two different grid containers.
   ============================================ */
.part-page-grid,
.part-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 32px;
    align-items: start;
    margin-bottom: 24px;
}
.part-page-main,
.part-modal-main {
    /* the existing partnumbercontainer keeps its own padding/styles —
       this just makes it the left column of the grid.
       Override .fluid's float:left + width:100% from fluid.css — those
       break grid track sizing, making the column blow past the grid
       container and force horizontal scroll. */
    float: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
}
/* Same problem in reverse: when we collapse to single column on mobile
   the panel needs to NOT float left (Magnific Popup body has width hacks
   that interact badly with floats). */
.part-modal-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.part-page-purchase,
.part-modal-purchase {
    position: sticky;
    top: 90px;
    background: #f9fafb;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 22px 24px 24px;
}
.part-page-purchase-title,
.part-modal-purchase-title {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e6e8eb;
    font-size: 1.05rem;
    color: #003366;
    font-weight: 600;
    /* override the global h3 yellow underline / display:inline-block from fluid.css */
    display: block;
}
/* Each section inside the panel has its own breathing room. The
   :last-child rule keeps the panel from over-padding at the bottom. */
.part-page-purchase > *,
.part-modal-purchase > * {
    margin-bottom: 16px;
}
.part-page-purchase > *:last-child,
.part-modal-purchase > *:last-child {
    margin-bottom: 0;
}
.part-page-purchase .product-price,
.part-modal-purchase .product-price {
    /* Override the global yellow underline that h3 inherits from fluid.css. */
    border-bottom: 0;
    padding-bottom: 0;
    margin-top: 0;
}
.part-page-purchase .stock-badge,
.part-modal-purchase .stock-badge {
    /* Pad the badge a bit more so it has presence between the price and the button. */
    padding: 8px 14px;
}
.part-page-purchase-qtyreq,
.part-modal-purchase-qtyreq {
    font-size: 0.9rem;
    color: #555;
}

/* Mobile: collapse to single column, panel near the top via grid order. */
@media (max-width: 900px) {
    .part-page-grid,
    .part-modal-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    .part-page-main,
    .part-modal-main { order: 2; }
    .part-page-purchase,
    .part-modal-purchase {
        position: static;
        order: 1;
    }
}

/* ============================================
   PRODUCT PRICE + STOCK BADGES
   Used on products.cfm (per-vehicle parts list).
   Data comes from dbo.get_products_by_vehicle.
   ============================================ */
.product-price {
    color: #004990;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 18px 0 4px;
}
.product-price-vat {
    color: #555;
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 4px;
}
.product-price-ask {
    color: #555;
    font-style: italic;
    font-weight: 500;
}
.stock-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    margin: 4px 0 8px;
}
.stock-badge-instock {
    background: #e7f4e1;
    color: #2f7a1e;
}
.stock-badge-order {
    background: #fff4d6;
    color: #8a6500;
}

/* ============================================
   ADD-TO-BASKET QUANTITY STEPPER + BUTTON
   Used on products.cfm.
   ============================================ */
.atb-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.atb-controls {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}
.atb-in-basket-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #e7f4e1;
    color: #2f7a1e;
    border: 1px solid #c6e4b8;
    border-radius: 6px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s ease;
    align-self: flex-start;
}
.atb-in-basket-banner:hover,
.atb-in-basket-banner:focus {
    background: #d8ecce;
    outline: none;
}
.atb-in-basket-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #2f7a1e;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}
.atb-in-basket-text strong {
    color: #1f5712;
    margin-left: 2px;
}
.atb-in-basket-link {
    margin-left: auto;
    color: #1f5712;
    text-decoration: underline;
    font-size: 0.85rem;
}
.atb-wrap.atb-in-basket .atb-add {
    background: #5a7e9c; /* slightly muted to signal "additional add" */
}
.atb-wrap.atb-in-basket .atb-add:hover:not(:disabled) {
    background: #003366;
}
.atb-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.atb-qty-btn {
    width: 36px;
    border: 0;
    background: #f4f4f4;
    color: #003366;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.atb-qty-btn:hover:not(:disabled) {
    background: #e6e6e6;
}
.atb-qty-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
}
.atb-qty-input {
    width: 56px;
    border: 0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #003366;
    background: #fff;
    -moz-appearance: textfield;
}
.atb-qty-input::-webkit-outer-spin-button,
.atb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.atb-add {
    background: #004990;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.atb-add:hover:not(:disabled) {
    background: #003366;
}
.atb-add:active:not(:disabled) {
    transform: translateY(1px);
}
.atb-add:disabled {
    background: #6b7e95;
    cursor: not-allowed;
}
.atb-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   BASKET DRAWER (slide-in from right)
   ============================================ */
.basket-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}
.basket-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.basket-drawer-root.is-open .basket-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}
.basket-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}
.basket-drawer-root.is-open .basket-drawer {
    transform: translateX(0);
}
.basket-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #ececec;
    background: #003366;
    color: #fff;
}
.basket-drawer-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
}
.basket-drawer-count {
    color: #FFCB05;
    font-weight: 500;
    margin-left: 6px;
}
.basket-drawer-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.basket-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.basket-drawer-empty {
    color: #777;
    text-align: center;
    margin: 40px 0;
    font-style: italic;
}
.basket-drawer-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.basket-drawer-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.basket-drawer-line-thumb {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
}
.basket-drawer-line-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.basket-drawer-line-info {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.basket-drawer-line-title {
    font-weight: 600;
    color: #003366;
    line-height: 1.3;
}
.basket-drawer-line-meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}
.basket-drawer-line-fits {
    font-size: 0.78rem;
    color: #333;
    background: #f5f8fb;
    border-left: 2px solid #004990;
    padding: 4px 8px;
    margin-top: 6px;
    border-radius: 0 3px 3px 0;
    line-height: 1.3;
}
.basket-drawer-line-fits span {
    font-weight: 600;
    color: #004990;
}
.basket-drawer-line-qty {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.basket-drawer-line-qty .atb-qty-btn {
    width: 28px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 0.9rem;
}
.basket-drawer-qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    color: #003366;
}
.basket-drawer-line-total {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    font-weight: 700;
    color: #004990;
    text-align: right;
    align-self: start;
}
.basket-drawer-line-remove {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    background: transparent;
    border: 0;
    color: #a33;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    align-self: end;
    text-align: right;
}
.basket-drawer-line-remove:hover {
    text-decoration: underline;
}
.basket-drawer-foot {
    padding: 16px 20px;
    border-top: 1px solid #ececec;
    background: #f9fafb;
}
.basket-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.basket-drawer-total strong {
    font-size: 1.25rem;
    color: #004990;
}
.basket-drawer-cta,
.basket-drawer-cta:visited,
.basket-drawer-cta:link {
    display: block;
    width: 100%;
    text-align: center;
    background: #004990;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease;
}
.basket-drawer-cta:hover,
.basket-drawer-cta:focus,
.basket-drawer-cta:active {
    background: #003366;
    color: #fff;
}

/* ============================================
   TOP UTILITY BAR (yellow strip above the main header)
   Houses the sign-in link + basket icon. Replaces the
   old purely-decorative yellow top border on #header.
   ============================================ */
#top-utility-bar {
    background: #FFCB05;
    color: #003366;
    font-size: 0.85rem;
    line-height: 1.2;
    /* #header is position:absolute with z-index:500, and the menu .overlay sits
       at z-index:999. The utility bar must stack above both so its content stays
       visible and clickable over the header's fade gradient. */
    position: relative;
    z-index: 1001;
}
/* When the products mega-menu is open (body class set in includes/footer.cfm)
   hide the utility bar so its z-index:1001 doesn't sit on top of the .closebtn
   and the menu's top content. */
body.products-menu-open #top-utility-bar { display: none; }

/* ============================================
   LAST-VEHICLE CTA (in the products mega-menu)
   Pre-populated from cookie.spevehicleid; sits
   above the "PRODUCT RANGES:" heading so it's
   the first thing a returning customer sees.
   ============================================ */
.last-vehicle-cta {
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: #003366;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    text-align: left;
}
.last-vehicle-cta-label {
    color: #FFCB05;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-basis: 100%;
}
.last-vehicle-cta-link,
.last-vehicle-cta-link:link,
.last-vehicle-cta-link:visited {
    flex: 1 1 auto;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.15s ease;
}
.last-vehicle-cta-link:hover,
.last-vehicle-cta-link:focus,
.last-vehicle-cta-link:active {
    color: #FFCB05;
}
.last-vehicle-cta-name {
    flex: 0 1 auto;
}
.last-vehicle-cta-years {
    color: #b3c2d6;
    font-size: 0.95rem;
    font-weight: 400;
}
/* Years inherit the link's hover/focus colour so they don't disappear into
   grey when the rest of the link goes yellow. */
.last-vehicle-cta-link:hover .last-vehicle-cta-years,
.last-vehicle-cta-link:focus .last-vehicle-cta-years,
.last-vehicle-cta-link:active .last-vehicle-cta-years {
    color: inherit;
}
.last-vehicle-cta-arrow {
    margin-left: auto;
    font-size: 1.6rem;
    line-height: 1;
}
.last-vehicle-cta-clear,
.last-vehicle-cta-clear:link,
.last-vehicle-cta-clear:visited {
    color: #b3c2d6;
    font-size: 0.78rem;
    text-decoration: underline;
    flex: 0 0 auto;
    align-self: center;
    margin-left: auto;
}
.last-vehicle-cta-clear:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .last-vehicle-cta { padding: 14px 16px; }
    .last-vehicle-cta-link { font-size: 1.1rem; flex-direction: column; gap: 4px; align-items: flex-start; }
    .last-vehicle-cta-arrow { display: none; }
}
.top-utility-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.top-utility-message {
    font-weight: 500;
    color: #003366;
}

#header-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.header-action-link,
.header-action-link:link,
.header-action-link:visited {
    color: #003366;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.header-action-link:hover,
.header-action-link:focus,
.header-action-link:active {
    color: #004990;
}
.header-action-link svg {
    width: 24px;
    height: 24px;
}
.basket-icon-btn {
    background: transparent;
    border: 0;
    padding: 4px 8px;
    cursor: pointer;
    color: #003366;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
/* Punchy hover: invert to a navy pill with yellow content so it's
   obviously interactive against the yellow utility-bar background. */
.basket-icon-btn:hover,
.basket-icon-btn:focus {
    background: #003366;
    color: #FFCB05;
    outline: none;
}
.basket-icon-btn:hover .basket-icon-badge,
.basket-icon-btn:focus .basket-icon-badge {
    background: #FFCB05;
    color: #003366;
}
.basket-icon-svg {
    width: 24px;
    height: 24px;
}
.basket-icon-badge {
    background: #003366;
    color: #FFCB05;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 600px) {
    .top-utility-inner {
        padding: 6px 14px;
        gap: 8px;
    }
    .top-utility-message {
        font-size: 0.75rem;
    }
    #header-actions {
        gap: 12px;
    }
    .header-action-link span {
        display: none;
    }
}

/* ============================================
   SIGNED-IN PROFILE DROPDOWN (top utility bar)
   ============================================ */
.header-action-profile {
    position: relative;
}
.header-action-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1100;
}
.header-action-profile:hover .header-action-dropdown,
.header-action-profile:focus-within .header-action-dropdown,
.header-action-profile.show .header-action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-action-dropdown a,
.header-action-dropdown a:link,
.header-action-dropdown a:visited {
    display: block;
    padding: 8px 16px;
    color: #003366;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
}
.header-action-dropdown a:hover,
.header-action-dropdown a:focus {
    background: #f5f8fb;
    color: #004990;
}

/* ============================================
   AUTH PAGES (signin / register / forgot / reset)
   ============================================ */
.auth-page {
    margin: 32px auto 64px;
    max-width: 540px;
}
.auth-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 32px 36px;
}
.auth-card-wide {
    max-width: 600px;
    margin: 0 auto;
}
.auth-card h1 {
    margin: 0 0 16px;
    color: #003366;
}
.auth-intro {
    color: #555;
    margin: 0 0 20px;
}
.auth-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
}
.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: #555;
}
.auth-links a {
    color: #004990;
    text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }
.auth-links-sep { margin: 0 8px; color: #ccc; }

/* ============================================
   ACCOUNT PAGES (account, account.orders, account.order, account.details)
   ============================================ */
.account-page {
    margin: 24px 0 60px;
}
.account-page-head {
    margin-bottom: 24px;
}
.account-page-head h1 {
    margin: 0 0 4px;
    color: #003366;
}
.account-page-email {
    margin: 0;
    color: #777;
    font-size: 0.95rem;
}
.account-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 800px) {
    .account-page-grid { grid-template-columns: 1fr; }
}
.account-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 22px 24px 24px;
}
.account-card h2 {
    margin: 0 0 14px;
    color: #003366;
    font-size: 1.1rem;
    border-bottom: 1px solid #e6e8eb;
    padding-bottom: 10px;
    display: block;
}
.account-card h3 {
    margin: 16px 0 6px;
    color: #003366;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 0;
    padding-bottom: 0;
    display: block;
}
.account-card-empty {
    color: #777;
    font-style: italic;
    margin-bottom: 16px;
}
.account-card-link {
    margin: 14px 0 0;
    text-align: right;
    font-size: 0.9rem;
}
.account-card-link a {
    color: #004990;
    text-decoration: none;
}
.account-card-link a:hover { text-decoration: underline; }

.account-details {
    margin: 0;
    padding: 0;
}
.account-details > div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.account-details > div:last-child { border-bottom: 0; }
.account-details dt {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}
.account-details dd {
    color: #003366;
    margin: 0;
    font-weight: 500;
    text-align: right;
}
.account-address {
    color: #333;
    line-height: 1.5;
    font-style: normal;
    margin: 0 0 8px;
}

.account-orders-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.account-orders-row {
    border-bottom: 1px solid #f0f0f0;
}
.account-orders-row:last-child { border-bottom: 0; }
.account-orders-link {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    padding: 10px 0;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}
.account-orders-link:hover {
    background: #f5f8fb;
}
.account-orders-number { font-weight: 600; color: #003366; }
.account-orders-date   { color: #777; font-size: 0.9rem; }
.account-orders-total  { color: #003366; font-weight: 600; }

.account-orders-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e7f4e1;
    color: #2f7a1e;
}
.account-orders-status-pending_payment {
    background: #fff8e1;
    color: #8a6500;
}
.account-orders-status-cancelled,
.account-orders-status-refunded {
    background: #fdecea;
    color: #a33;
}

.account-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.account-orders-table th,
.account-orders-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.account-orders-table th {
    background: #f9fafb;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.account-orders-total-col { text-align: right; }

.account-divider {
    border: 0;
    border-top: 1px solid #e6e8eb;
    margin: 32px 0;
}

.account-signout {
    margin-top: 32px;
    font-size: 0.9rem;
}
.account-signout a {
    color: #777;
    text-decoration: none;
}
.account-signout a:hover {
    color: #004990;
    text-decoration: underline;
}

.account-order-date {
    color: #777;
    font-size: 0.95rem;
    margin: -8px 0 16px;
}

.checkout-confirm-create-account {
    background: #f5f8fb;
    border-left: 3px solid #004990;
    border-radius: 0 6px 6px 0;
    padding: 18px 22px;
    margin-top: 32px;
}
.checkout-confirm-create-account h2 {
    margin: 0 0 8px;
    color: #003366;
}
.checkout-confirm-create-account p { margin: 0 0 12px; }
.checkout-confirm-create-account p:last-child { margin-bottom: 0; }

/* ============================================
   FULL BASKET PAGE (basket.cfm)
   ============================================ */
.basket-page {
    margin: 24px 0 60px;
}
.basket-page-loading {
    text-align: center;
    padding: 80px 0;
    color: #666;
    font-style: italic;
}
.basket-page-empty {
    text-align: center;
    padding: 80px 20px;
}
.basket-page-empty h1 {
    color: #003366;
    margin-bottom: 12px;
}
.basket-page-empty p {
    color: #666;
    margin-bottom: 28px;
}
.basket-page-cta-primary,
.basket-page-cta-primary:visited,
.basket-page-cta-primary:link {
    display: inline-block;
    background: #004990;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    box-sizing: border-box;
}
.basket-page-cta-primary:hover,
.basket-page-cta-primary:focus,
.basket-page-cta-primary:active {
    background: #003366;
    color: #fff;
}

.basket-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}
.basket-page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.basket-page-head h1 {
    color: #003366;
    margin: 0;
}
.basket-page-count {
    color: #666;
    font-size: 0.95rem;
}

.basket-page-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.basket-page-line {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto auto;
    column-gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #FFCB05;
    align-items: start;
}
.basket-page-line:last-child {
    border-bottom: 0;
}
.basket-page-line-thumb {
    width: 120px;
    height: 120px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.basket-page-line-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.basket-page-line-main { min-width: 0; }
.basket-page-line-title {
    margin: 0 0 4px;
    color: #003366;
    font-size: 1.1rem;
    line-height: 1.3;
}
.basket-page-line-sku {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.basket-page-line-fits {
    background: #f5f8fb;
    border-left: 3px solid #004990;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    color: #333;
    margin-top: 6px;
    display: inline-block;
}
.basket-page-line-fits-label {
    font-weight: 600;
    color: #004990;
    margin-right: 4px;
}

.basket-page-line-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}
.basket-page-line-qty-label {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.basket-page-line-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 4px;
    min-width: 130px;
}
.basket-page-line-unit {
    color: #666;
    font-size: 0.85rem;
}
.basket-page-line-unit span { color: #999; }
.basket-page-line-total {
    color: #003366;
    font-weight: 700;
    font-size: 1.2rem;
}
.basket-page-line-remove {
    background: transparent;
    border: 0;
    color: #a33;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
}
.basket-page-line-remove:hover { text-decoration: underline; }

.basket-page-continue {
    margin-top: 20px;
}
.basket-page-continue a {
    color: #004990;
    text-decoration: none;
    font-weight: 500;
}
.basket-page-continue a:hover { text-decoration: underline; }

.basket-page-summary {
    background: #f9fafb;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 90px;
}
.basket-page-summary h3 {
    color: #003366;
    margin: 0 0 16px;
    font-size: 1.15rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e8eb;
}
.basket-page-summary-list {
    margin: 0 0 20px;
    padding: 0;
}
.basket-page-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #444;
}
.basket-page-summary-row dt,
.basket-page-summary-row dd {
    margin: 0;
    border: 0;
    padding-bottom: 0;
}
.basket-page-summary-row dd { font-weight: 500; }
.basket-page-summary-row-total {
    border-top: 1px solid #FFCB05;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 1.1rem;
    color: #003366;
}
.basket-page-summary-row-total dt,
.basket-page-summary-row-total dd { font-weight: 700; }

.basket-page-summary .basket-page-cta-primary {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}
.basket-page-summary-note {
    font-size: 0.8rem;
    color: #888;
    margin: 12px 0 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .basket-page-grid {
        grid-template-columns: 1fr;
    }
    .basket-page-summary {
        position: static;
    }
}
@media (max-width: 600px) {
    .basket-page-line {
        grid-template-columns: 90px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 14px;
        column-gap: 14px;
    }
    .basket-page-line-thumb {
        width: 90px;
        height: 90px;
    }
    .basket-page-line-qty,
    .basket-page-line-prices {
        grid-column: 1 / 3;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* ============================================
   CHECKOUT PAGE (checkout.cfm)
   ============================================ */
.checkout-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    margin: 24px 0 60px;
}
.checkout-page-form-col h1 {
    color: #003366;
    margin-bottom: 24px;
}
.checkout-fieldset {
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 20px 24px 24px;
    margin-bottom: 20px;
    background: #fff;
    display: block;
}
/* Defensive: forms.min.css (when loaded by includeForms=1) sets legend
   width:95% which combined with the legend's special positioning makes
   the next input wrap up alongside it. We force block + auto width
   here so the layout survives even if a future change re-enables
   forms.css on this page. */
.checkout-fieldset legend {
    color: #003366;
    font-weight: 600;
    padding: 0 10px;
    font-size: 1.05rem;
    display: block;
    width: auto;
    float: none;
}
.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkout-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}
.checkout-field label {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.92rem;
}
.checkout-field .req { color: #a33; }
.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #222;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: #004990;
    box-shadow: 0 0 0 3px rgba(0, 73, 144, 0.12);
}
.checkout-field small {
    color: #777;
    font-size: 0.78rem;
    margin-top: 4px;
}
.checkout-field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.checkout-field-checkbox input { width: 18px; height: 18px; }

.checkout-payment-placeholder {
    background: #f5f8fb;
    border-left: 3px solid #004990;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    color: #333;
}
.checkout-payment-placeholder p { margin: 0 0 6px; }
.checkout-payment-placeholder p:last-child { margin-bottom: 0; }

.checkout-payment-intro {
    margin: 0 0 12px;
    color: #333;
}
.paypal-button-container {
    margin: 16px 0;
    min-height: 48px;
}
.checkout-payment-note {
    margin: 12px 0 0;
    color: #777;
    font-size: 0.85rem;
    line-height: 1.5;
}

.checkout-error {
    background: #fde8e8;
    border: 1px solid #f5b7b7;
    color: #8a1f1f;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.checkout-submit {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 1.05rem;
}
.checkout-submit:disabled {
    background: #6b7e95;
    cursor: not-allowed;
}

/* When the basket-page-mount appears in the checkout sidebar we strip
   the items list and just show the summary. Vue 2 replaces the mount
   element with the rendered template root, so any class set on the
   mount placeholder is lost — we anchor instead on the parent aside
   (.checkout-page-summary-col) which is part of the surrounding CFML
   and isn't touched by Vue. */
.checkout-page-summary-col .basket-page-items { display: none; }
.checkout-page-summary-col .basket-page-grid {
    display: block;
    grid-template-columns: none;
}
.checkout-page-summary-col .basket-page-summary {
    position: sticky;
    top: 90px;
    margin: 0;
}
/* The "Proceed to checkout" CTA inside the sidebar summary is redundant
   on the checkout page itself — the form has its own submit button. */
.checkout-page-summary-col .basket-page-summary .basket-page-cta-primary,
.checkout-page-summary-col .basket-page-summary-note { display: none; }
/* Drop the page-level top margin/padding since the summary panel here
   is sized by its sidebar column, not the full basket grid. */
.checkout-page-summary-col .basket-page { margin: 0; }

@media (max-width: 900px) {
    .checkout-page { grid-template-columns: 1fr; }
    .checkout-page-summary-col .basket-page-summary { position: static; }
}
@media (max-width: 600px) {
    .checkout-row { grid-template-columns: 1fr; }
    .checkout-fieldset { padding: 16px; }
}

/* ============================================
   CHECKOUT CONFIRMATION (checkout.confirm.cfm)
   ============================================ */
.checkout-confirm {
    max-width: 720px;
    margin: 32px auto 64px;
    text-align: center;
}
.checkout-confirm-tick {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: #e7f4e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-confirm h1 {
    color: #003366;
    margin: 0 0 8px;
}
.checkout-confirm-lead {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 4px;
}
.checkout-confirm-email {
    color: #666;
    margin: 0 0 24px;
}
.checkout-confirm-status {
    background: #fff8e1;       /* default: pending payment (amber) */
    border: 1px solid #f0d56a;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    text-align: left;
}
.checkout-confirm-status p {
    margin: 6px 0 0;
    color: #555;
    font-size: 0.92rem;
}
.checkout-confirm-status-paid {
    background: #e7f4e1;
    border-color: #c6e4b8;
}
.checkout-confirm-status-paid strong {
    color: #2f7a1e;
}
.checkout-confirm-status-cancelled,
.checkout-confirm-status-refunded {
    background: #fdecea;
    border-color: #f5c2bd;
}
.checkout-confirm-status-cancelled strong,
.checkout-confirm-status-refunded strong {
    color: #a33;
}
.checkout-confirm-section {
    text-align: left;
    margin: 32px 0;
    padding: 20px 24px;
    background: #f9fafb;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
}
.checkout-confirm-section h2 {
    color: #003366;
    font-size: 1.1rem;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e8eb;
}
.checkout-confirm-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.checkout-confirm-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #FFCB05;
    align-items: center;
}
.checkout-confirm-line:last-child { border-bottom: 0; }
.checkout-confirm-line-title {
    color: #003366;
    font-weight: 600;
}
.checkout-confirm-line-sku {
    color: #777;
    font-size: 0.85rem;
}
.checkout-confirm-line-fits {
    background: #f5f8fb;
    border-left: 3px solid #004990;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    color: #333;
    margin-top: 6px;
    display: inline-block;
}
.checkout-confirm-line-fits span { font-weight: 600; color: #004990; }
.checkout-confirm-line-qty { color: #555; }
.checkout-confirm-line-total {
    font-weight: 700;
    color: #003366;
    text-align: right;
    min-width: 80px;
}
.checkout-confirm-totals {
    margin: 16px 0 0;
    padding: 0;
}
.checkout-confirm-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.checkout-confirm-totals dt,
.checkout-confirm-totals dd { margin: 0; border: 0; }
.checkout-confirm-total {
    border-top: 1px solid #FFCB05;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    color: #003366;
    font-size: 1.1rem;
}
.checkout-confirm-address {
    font-style: normal;
    line-height: 1.55;
    color: #333;
}
.checkout-confirm-notfound {
    max-width: 540px;
    margin: 60px auto;
    text-align: center;
}
.checkout-confirm-notfound h1 { color: #003366; }
