/* ============================================================
   Borderland Shop — Design System & WooCommerce Overrides
   ============================================================ */

/* ──── 1. Font Faces ──── */
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/lato-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/lato-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/lato-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/lato-italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/lato-bolditalic-webfont.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Font Awesome 5 */
@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('../fonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('../fonts/fa-regular-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 5 Brands';
    src: url('../fonts/fa-brands-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.fas, .fa { font-family: 'Font Awesome 5 Free'; font-weight: 900; font-style: normal; -webkit-font-smoothing: antialiased; }
.far      { font-family: 'Font Awesome 5 Free'; font-weight: 400; font-style: normal; -webkit-font-smoothing: antialiased; }
.fab      { font-family: 'Font Awesome 5 Brands'; font-weight: 400; font-style: normal; -webkit-font-smoothing: antialiased; }

/* FA icon content codes used in theme */
.fa-phone-alt::before   { content: "\f879"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-search::before      { content: "\f002"; }
.fa-shopping-cart::before { content: "\f07a"; }
.fa-wrench::before       { content: "\f0ad"; }
.fa-comment::before      { content: "\f075"; }
.fa-envelope::before     { content: "\f0e0"; }
.fa-facebook-f::before   { content: "\f39e"; }
.fa-instagram::before    { content: "\f16d"; }
.fa-times::before        { content: "\f00d"; }
.fa-bars::before         { content: "\f0c9"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-star::before         { content: "\f005"; }
.fa-star-half-alt::before { content: "\f5c0"; }
.fa-check::before        { content: "\f00c"; }
.fa-exclamation-triangle::before { content: "\f071"; }
.fa-info-circle::before  { content: "\f05a"; }
.fa-arrow-right::before  { content: "\f061"; }
.fa-tag::before          { content: "\f02b"; }
.fa-truck::before        { content: "\f0d1"; }
.fa-shield-alt::before   { content: "\f3ed"; }
.fa-undo::before         { content: "\f0e2"; }
.fa-heart::before        { content: "\f004"; }
.fa-minus::before        { content: "\f068"; }
.fa-plus::before         { content: "\f067"; }
.fa-trash-alt::before    { content: "\f2ed"; }
.fa-spinner::before      { content: "\f110"; }

/* ──── 2. CSS Variables ──── */
:root {
    --color-primary: #0078dc;
    --color-primary-dark: #0062b8;
    --color-accent: #e8a517;
    --color-danger: #e31937;
    --color-success: #4CAF50;
    --color-dark: #1a1a1a;
    --color-card-dark: #2a2a2a;
    --color-text: #333;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-border: #e0e0e0;
    --color-bg: #f5f5f5;
    --color-white: #fff;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
    --radius: 10px;
    --radius-sm: 6px;
    --gap: 28px;
    --gap-mobile: 20px;
    --max-width: 1200px;
    --header-height: 120px;
    --transition: 0.3s ease;
}

/* ──── 3. Reset & Base ──── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

ul { list-style: none; }

/* ──── 4. Layout ──── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

#site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#site-content {
    flex: 1;
}

/* WooCommerce pages — constrain content width */
.woocommerce-page #site-content .site-main,
.woocommerce #site-content .site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* ──── 5. Top Bar ──── */
.top-bar {
    background: var(--color-dark);
    color: #ccc;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: #ccc;
}
.top-bar a:hover {
    color: var(--color-white);
}
.top-bar i {
    margin-right: 4px;
}

/* ──── 6. Site Header ──── */
.site-header {
    background: var(--color-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

/* Logo */
.site-logo img {
    height: auto;
    width: 250px;
    max-height: none;
}

/* Nav */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--color-primary);
    background: rgba(0, 120, 220, 0.05);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 2px solid var(--color-primary);
    padding: 6px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu .sub-menu a {
    padding: 10px 20px;
    font-weight: 400;
    font-size: 0.9rem;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.nav-menu .sub-menu a:hover {
    background: rgba(0, 120, 220, 0.06);
    color: var(--color-primary);
    padding-left: 24px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-text);
    padding: 6px;
    transition: color var(--transition);
}
.search-toggle:hover {
    color: var(--color-primary);
}

.header-search {
    position: relative;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 12px;
    z-index: 200;
    width: 300px;
}
.search-dropdown.active {
    display: block;
}
.search-dropdown input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}
.search-dropdown input[type="search"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 120, 220, 0.15);
}

/* Cart */
.header-account {
    font-size: 1.2rem;
    color: var(--color-text);
    padding: 6px;
}
.header-account:hover {
    color: var(--color-primary);
}
.header-cart {
    position: relative;
    font-size: 1.2rem;
    color: var(--color-text);
    padding: 6px;
}
.header-cart:hover {
    color: var(--color-primary);
}
.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-count:empty {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
    border-radius: 1px;
}

/* ──── 7. Footer ──── */
.site-footer {
    background: var(--color-dark);
    color: #ccc;
    margin-top: auto;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul a {
    color: #bbb;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col ul a:hover {
    color: var(--color-accent);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}
.contact-list i {
    color: var(--color-primary);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-logo {
    margin-top: 20px;
}
.footer-logo img {
    width: 180px;
    height: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.powered-by {
    color: #888;
}

/* ──── 8. Mobile Bottom Bar ──── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    z-index: 999;
    padding: 0;
}

.mobile-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    color: var(--color-white);
    font-size: 0.75rem;
    text-align: center;
    gap: 3px;
    transition: background var(--transition);
}
.mobile-btn i {
    font-size: 1.2rem;
}
.mobile-btn:hover {
    color: var(--color-white);
}
.email-btn { background: var(--color-primary); }
.email-btn:hover { background: var(--color-primary-dark); }
.parts-btn { background: var(--color-primary); }
.parts-btn:hover { background: var(--color-primary-dark); }
.sales-btn { background: var(--color-accent); }
.sales-btn:hover { background: var(--color-primary); }
.call-btn { background: var(--color-success); }
.call-btn:hover { background: #43a047; }

/* ──── 9. WooCommerce — Shop / Archive ──── */
.woo-shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--gap);
    padding: 30px 0;
}

.woo-shop-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.shop-sidebar:empty,
.shop-sidebar:blank {
    display: none;
}

.shop-sidebar .widget {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 20px;
    margin-bottom: 20px;
}

.shop-sidebar .widget-title {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark);
}

/* Page header */
.shop-page-header {
    background: var(--color-white);
    padding: 30px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}
.shop-page-header h1 {
    font-size: 1.8rem;
    margin: 0;
}
.shop-page-header .term-description {
    color: var(--color-text-light);
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Ordering / result count bar */
.woocommerce-notices-wrapper + .shop-toolbar,
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-result-count {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.woocommerce-ordering {
    margin: 0 0 16px;
    float: right;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--color-white);
    cursor: pointer;
}

/* Breadcrumb styling for WC default */
.woocommerce-breadcrumb {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.woocommerce-breadcrumb a {
    color: var(--color-text-light);
}
.woocommerce-breadcrumb a:hover {
    color: var(--color-primary);
}

/* ──── 10. Product Cards ──── */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: var(--gap) !important;
    padding: 0 !important;
    margin: 0 !important;
    clear: both;
}

/* Kill WooCommerce clearfix pseudo-elements that occupy grid cells */
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

/* Override WooCommerce default float/width column layout */
.woocommerce ul.products[class*="columns-"] li.product,
ul.products li.product {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

.woocommerce ul.products[class*="columns-"] li.product:hover,
ul.products li.product:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Product image link — fill card width */
ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    overflow: hidden;
}

/* Product image */
ul.products li.product a img,
ul.products li.product .woocommerce-product-gallery img {
    width: 100% !important;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

ul.products li.product:hover a img {
    transform: scale(1.03);
}

ul.products li.product .product-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* WC default template has no wrapper div — add padding to inner elements */
ul.products li.product .woocommerce-loop-product__link {
    padding: 0;
}

/* Product title */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px;
    padding: 12px 14px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
ul.products li.product .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    padding: 0 14px;
}
ul.products li.product .price del {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}
ul.products li.product .price ins {
    text-decoration: none;
    color: var(--color-danger);
}

/* Sale badge */
ul.products li.product .onsale,
.woocommerce span.onsale {
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    line-height: 1.4;
    min-height: auto;
    min-width: auto;
}

/* Add to cart button */
ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.product_type_simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    margin: 0 14px 14px;
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: none;
    margin-top: auto;
}

ul.products li.product .button:hover,
ul.products li.product a.add_to_cart_button:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Loading state */
ul.products li.product .button.loading::after {
    content: "\f110";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    to { transform: rotate(360deg); }
}

/* ──── 11. Single Product ──── */
.single-product-content {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 30px;
    margin: 30px 0;
}

.single-product-content .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Gallery */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    height: 4px;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 80px;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
    border: 2px solid transparent;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--color-primary);
}

/* Summary */
.entry-summary .product_title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.entry-summary .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.entry-summary .price del {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.entry-summary .price ins {
    text-decoration: none;
    color: var(--color-danger);
}

.entry-summary .woocommerce-product-details__short-description {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Quantity input */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-right: 10px;
}

.quantity input[type="number"] {
    width: 50px;
    height: 42px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    -moz-appearance: textfield;
    outline: none;
}
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Single add-to-cart */
.single_add_to_cart_button {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: var(--radius-sm) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background var(--transition) !important;
}

.single_add_to_cart_button:hover {
    background: var(--color-primary-dark) !important;
}

/* Product meta */
.product_meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.product_meta > span {
    display: block;
    margin-bottom: 6px;
}
.product_meta a {
    color: var(--color-primary);
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 40px;
    grid-column: 1 / -1;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    padding: 0;
    margin: 0 0 20px;
}

.woocommerce-tabs ul.tabs li {
    margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-primary);
}

.woocommerce-tabs .panel {
    padding: 0 4px;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Related Products */
.related.products {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.related.products > h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.related.products ul.products {
    gap: 20px;
}

.related.products ul.products li.product {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related.products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ──── 12. Cart Page ──── */
.woocommerce-cart .woocommerce {
    padding: 30px 0;
}

table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

table.shop_table th {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

table.shop_table img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

table.shop_table .product-name a {
    color: var(--color-text);
    font-weight: 600;
}
table.shop_table .product-name a:hover {
    color: var(--color-primary);
}

table.shop_table .product-remove a {
    color: var(--color-danger);
    font-size: 1.2rem;
}

/* Cart totals */
.cart_totals {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
}

.cart_totals h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.cart_totals table {
    width: 100%;
}

.cart_totals table th,
.cart_totals table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart_totals table th {
    font-weight: 600;
    text-align: left;
    color: var(--color-text);
    background: none;
}

/* ──── 13. Checkout ──── */
.woocommerce-checkout .woocommerce {
    padding: 30px 0;
}

.woocommerce form .form-row {
    margin-bottom: 16px;
}

.woocommerce form .form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--color-text);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 220, 0.15);
}

#order_review_heading {
    font-size: 1.3rem;
    margin: 30px 0 16px;
}

/* ──── 14. Buttons ──── */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt {
    background: var(--color-primary);
    color: var(--color-white);
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: var(--color-primary-dark);
}

/* ──── 15. WooCommerce Notices ──── */
.woocommerce-message {
    background: #e8f5e9;
    border-left: 4px solid var(--color-success);
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.woocommerce-message::before {
    display: none !important;
}

.woocommerce-error {
    background: #fce4ec;
    border-left: 4px solid var(--color-danger);
    color: #c62828;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.woocommerce-error li {
    list-style: none;
}

.woocommerce-info {
    background: #e0f7fa;
    border-left: 4px solid var(--color-accent);
    color: #006064;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ──── 16. Pagination ──── */
.woocommerce-pagination {
    margin: 40px 0 20px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
}

.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.woocommerce-pagination ul li a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.woocommerce-pagination ul li span.current {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ──── 17. Breadcrumb ──── */
.shop-breadcrumb {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.shop-breadcrumb a {
    color: var(--color-text-light);
}
.shop-breadcrumb a:hover {
    color: var(--color-primary);
}
.shop-breadcrumb .separator {
    margin: 0 6px;
    color: var(--color-border);
}

/* ──── 18. Homepage ──── */
/* Hero Section — Full-width with gradient overlay */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0c1b2a 0%, #1a3a5c 50%, #0d2137 100%);
    overflow: hidden;
}
.hero-section.hero-compact {
    min-height: auto;
}
.hero-section.hero-compact .hero-content {
    padding: 16px 20px 14px;
    text-align: center;
    max-width: 100%;
}
.hero-section.hero-compact h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}
.hero-section.hero-compact .hero-badge {
    margin-bottom: 8px;
    font-size: 0.75rem;
}

/* Homepage Tiles */
.home-tiles-section {
    padding: 30px 0 20px;
}
.home-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 6 main tiles, 3 wide × 2 tall (John 2026-10-20) */
    gap: 14px;
}
.home-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 10px;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}
.home-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
    border-radius: 10px;
    transition: background 0.3s;
}
.home-tile span {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 18px 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.home-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.home-tile:hover::before {
    background: linear-gradient(to top, rgba(0,120,220,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}
@media (max-width: 768px) {
    .home-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .home-tile {
        min-height: 140px;
    }
    .home-tile span { font-size: 0.9rem; padding: 14px 12px; }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(0,120,220,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(232,165,23,0.12) 0%, transparent 50%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 700px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.hero-section h1 {
    color: var(--color-white);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.hero-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-hero-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-hero-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,120,220,0.35);
}
.btn-hero-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.35);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Trust Bar — one minimal line (John 2026-10-20) */
.trust-bar {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}
.trust-line {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #334155;
}
.trust-line li {
    padding: 2px 18px;
    white-space: nowrap;
}
.trust-line li + li {
    border-left: 1px solid #cbd5e1;
}
.trust-line i {
    color: #0078dc;
    margin-right: 6px;
}
.trust-line a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.trust-line a:hover { color: #0078dc; }
@media (max-width: 640px) {
    .trust-line { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 0; font-size: 0.8rem; }
    .trust-line li { padding: 2px 8px; white-space: normal; text-align: center; }
    .trust-line li + li { border-left: 0; }
}

/* Category Cards */
.categories-section {
    padding: 20px 0 16px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    padding: 10px 0 30px;
}
.category-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.category-card:hover .category-card-img img {
    transform: scale(1.08);
}
.category-card:hover .category-card-overlay {
    opacity: 1;
}
.category-card-img {
    position: relative;
    overflow: hidden;
}
.category-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,120,220,0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card h3 {
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--color-dark);
}
.category-card h3 i {
    font-size: 0.7rem;
    color: var(--color-primary);
    transition: transform var(--transition);
}
.category-card:hover h3 i {
    transform: translateX(3px);
}

/* Homepage category grid variant */
.category-grid-sm {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.category-grid-sm .category-card-img img {
    height: 130px;
}
@media (max-width: 768px) {
    .category-grid-sm {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-grid-sm .category-card-img img {
        height: 130px;
    }
}

/* Homepage section headings */
.section-heading {
    text-align: center;
    margin-bottom: 36px;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.section-heading h2 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.section-heading p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Featured Products Section */
.featured-products-section {
    padding: 60px 0;
    background: var(--color-white);
}

/* New Arrivals Section */
.new-arrivals-section {
    padding: 60px 0 70px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0c1b2a 0%, #1a3a5c 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--color-white);
}
.cta-section h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* Brands Section */
.brands-section {
    padding: 50px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.brand-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: default;
}
.brand-item:hover {
    color: var(--color-primary);
    background: rgba(0,120,220,0.06);
}
.brands-row img {
    height: 50px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition);
}
.brands-row img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ──── 19. Generic Page ──── */
.page-content {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 40px;
    margin: 30px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-content h1 {
    margin-bottom: 20px;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ──── 20. 404 Page ──── */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}
.page-404 h1 {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.page-404 p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ──── 21. Star Rating ──── */
.star-rating {
    display: inline-flex;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 0.9rem;
    width: 5em;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.star-rating::before {
    content: "\f005\f005\f005\f005\f005";
    color: #ddd;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    letter-spacing: 0.1em;
}
.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.star-rating span::before {
    content: "\f005\f005\f005\f005\f005";
    color: #ffc107;
    top: 0;
    position: absolute;
    left: 0;
    letter-spacing: 0.1em;
}

/* ──── 22. My Account ──── */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 220px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 18px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(0, 120, 220, 0.06);
    color: var(--color-primary);
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: calc(100% - 250px);
}

/* ──── 23. Responsive ──── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .single-product-content .product {
        grid-template-columns: 1fr;
    }

    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--gap-mobile);
    }

    .woo-shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        order: 2;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 100px;
    }

    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        z-index: 2000;
        flex-direction: column;
        padding: 70px 20px 20px;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu a {
        padding: 14px 16px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        background: var(--color-bg);
    }

    .nav-menu .sub-menu a {
        padding-left: 32px;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu close */
    .main-nav.active .mobile-nav-close {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-text);
    }

    .site-logo img {
        width: 180px;
    }

    /* Mobile bottom bar */
    .mobile-bottom-bar {
        display: flex;
    }

    /* Add padding for fixed bottom bar */
    .site-footer {
        padding-bottom: 60px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    /* Cart */
    table.shop_table {
        font-size: 0.85rem;
    }

    table.shop_table img {
        width: 50px;
        height: 50px;
    }

    .cart_totals {
        max-width: none;
    }

    /* Hero */
    .hero-section {
        min-height: 400px;
    }
    .hero-content {
        padding: 50px 20px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1.05rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Brands */
    .brand-item {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    /* Page content */
    .page-content {
        padding: 24px;
        margin: 20px 10px;
    }

    /* Product card images */
    ul.products li.product a img {
        height: 200px;
    }

    /* Search dropdown */
    .search-dropdown {
        width: 260px;
        right: -40px;
    }
}

@media (max-width: 480px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    ul.products li.product a img {
        height: 160px;
    }

    ul.products li.product .product-card-body {
        padding: 10px;
    }

    ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product h2 {
        font-size: 0.85rem;
    }

    ul.products li.product .price {
        font-size: 0.95rem;
    }

    ul.products li.product .button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ──── Scroll Reveal Animations ──── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
}
.reveal.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger children */
.reveal.visible .category-card:nth-child(1) { animation-delay: 0s; }
.reveal.visible .category-card:nth-child(2) { animation-delay: 0.06s; }
.reveal.visible .category-card:nth-child(3) { animation-delay: 0.12s; }
.reveal.visible .category-card:nth-child(4) { animation-delay: 0.18s; }
.reveal.visible .category-card:nth-child(5) { animation-delay: 0.24s; }
.reveal.visible .category-card:nth-child(6) { animation-delay: 0.30s; }

/* Product card hover lift */
ul.products li.product {
    transition: transform var(--transition), box-shadow var(--transition);
}
ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Button press effect */
.btn-hero:active {
    transform: translateY(0) scale(0.98);
}

/* ──── 24. Utility Classes ──── */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ──── 25. WooCommerce Widget Overrides ──── */
.widget_price_filter .ui-slider {
    background: var(--color-border);
    border-radius: 4px;
    height: 6px;
    margin: 10px 0 20px;
    position: relative;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: var(--color-primary);
    height: 100%;
    border-radius: 4px;
    position: absolute;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    position: absolute;
    top: -6px;
    margin-left: -9px;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.widget_price_filter .price_slider_amount .button {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* Product list widget */
.widget ul.product_list_widget li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget ul.product_list_widget li img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.widget ul.product_list_widget li .product-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ──── 26. Print ──── */
@media print {
    .top-bar,
    .site-header,
    .site-footer,
    .mobile-bottom-bar,
    #ryder-chat-bubble,
    #ryder-chat-panel {
        display: none !important;
    }

    body {
        background: white;
    }

    .page-content,
    .single-product-content {
        box-shadow: none;
    }
}

/* ──── 27. Size Selector Swatches ──── */
.size-selector {
    margin-bottom: 20px;
}

.size-selector-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.size-swatch {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.size-swatch:hover:not(.disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.size-swatch.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

/* Size swatch tooltip on hover */
.size-swatch[title] {
    position: relative;
}
.size-swatch[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
.size-swatch[title]:hover::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--color-dark);
    pointer-events: none;
    z-index: 10;
}

.size-swatch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
    color: var(--color-text-muted);
    border-color: #ddd;
}
.size-swatch.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1.5px;
    background: var(--color-text-muted);
    transform: rotate(-12deg);
    pointer-events: none;
}

.stock-display {
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1.3em;
    color: var(--color-text-light);
}

.stock-display.in-stock {
    color: var(--color-success);
}

.stock-display.out-of-stock {
    color: var(--color-danger);
}

.size-selector .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.size-selector .reset_variations:hover {
    color: var(--color-primary);
}

/* Hide default WC variation table if it somehow renders */
.variations_form table.variations {
    display: none;
}

@media (max-width: 480px) {
    .size-swatch {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.8rem;
    }
}

/* ──── 28. Color Variant Swatches ──── */
.color-selector {
    margin-bottom: 20px;
}
.color-selector-label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--color-text);
}
.color-selector-label strong {
    font-weight: 700;
}
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.color-swatch {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.color-swatch:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
.color-swatch.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}
.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ──── 29. Product Meta Top (SKU + Brand) ──── */
.product-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.product-meta-top .product-sku {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-meta-top .product-brand {
    color: var(--color-primary);
}

/* Hide the default WC product meta (SKU/category/tags) since we show it above */
.product_meta .sku_wrapper {
    display: none;
}

/* Hide Description tab if content is empty or useless */
.woocommerce-product-details__short-description:empty {
    display: none;
}

/* ──── 30. Batteries Page ──── */
.batteries-page {
    padding: 40px 20px 60px;
}

.batteries-page .page-header-bat {
    margin-bottom: 30px;
}
.batteries-page .page-header-bat p {
    color: var(--color-text-light);
    font-size: 1.05em;
    max-width: 700px;
}

/* Battery Finder Widget */
.battery-finder {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
    border-radius: var(--radius);
    padding: 32px;
    margin: 0 0 40px;
    color: var(--color-white);
}
.battery-finder-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.battery-finder-header h2 {
    margin: 0;
    color: var(--color-white);
    font-size: 1.4em;
}
.battery-finder-hint {
    margin: 0 0 20px;
    color: #ccc;
    font-size: 0.95em;
}
.battery-finder-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.battery-finder-field {
    flex: 1;
    min-width: 140px;
}
.battery-finder-field.field-make {
    min-width: 160px;
}
.battery-finder-field.field-model {
    min-width: 160px;
}
.battery-finder-field.field-btn {
    min-width: 100px;
    flex: 0 0 auto;
}
.battery-finder-field label {
    display: block;
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 4px;
}
.battery-finder-field select,
.battery-finder-field button {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 1em;
    cursor: pointer;
}
.battery-finder-field select {
    border: 1px solid #444;
    background: #333;
    color: var(--color-white);
}
.battery-finder-field select:disabled {
    color: #888;
}
.battery-finder-field .btn-bat-search {
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    transition: opacity var(--transition);
}
.battery-finder-field .btn-bat-search:disabled {
    opacity: 0.5;
}
.battery-finder-field .btn-bat-search:not(:disabled):hover {
    opacity: 0.9;
}
.bat-results {
    display: none;
    margin-top: 24px;
}

/* Battery Results (JS-rendered) */
.bat-results-card {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}
.bat-results-header {
    padding: 16px 20px;
    background: rgba(0,120,220,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bat-results-header h3 {
    margin: 0;
    color: var(--color-white);
    font-size: 1.1em;
}
.bat-results-table {
    width: 100%;
    border-collapse: collapse;
}
.bat-results-table th {
    padding: 10px 16px;
    text-align: left;
    color: #aaa;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bat-results-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bat-results-table .bci-value {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2em;
}
.bat-results-table .bci-na {
    color: #888;
}
.bat-results-table .engine-col {
    color: #ddd;
}
.bat-results-table .notes-col {
    color: #999;
}
.bat-results-empty {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.bat-results-empty p {
    margin: 0;
    font-size: 1.1em;
}
.bat-results-empty .sub {
    margin: 8px 0 0;
    color: #ccc;
}
.bat-results-empty a {
    color: var(--color-primary);
    font-weight: bold;
}
.bat-results-note {
    margin: 12px 0 0;
    color: #aaa;
    font-size: 0.85em;
}
.bat-results-note a {
    color: var(--color-primary);
}

/* Battery Category Cards */
.bat-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}
.bat-cat-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bat-cat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.bat-cat-card img {
    width: 100%;
    display: block;
}
.bat-cat-info {
    padding: 16px;
    text-align: center;
}
.bat-cat-info h3 {
    margin: 0;
    font-size: 1.05em;
}
.bat-cat-info p {
    margin: 6px 0 0;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

/* Battery Product Cards */
.bat-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.bat-product-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bat-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.bat-product-img {
    padding: 16px;
    background: #f9f9f9;
}
.bat-product-img img {
    max-width: 140px;
    height: auto;
    margin: 0 auto;
}
.bat-product-info {
    padding: 12px;
}
.bat-product-info h3 {
    margin: 0 0 4px;
    font-size: 1em;
}
.bat-price {
    color: var(--color-dark);
    font-weight: bold;
    font-size: 1.05em;
}

/* Battery CTA & Why Buy */
.bat-cta {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 36px;
    margin: 40px 0 0;
    text-align: center;
}
.bat-cta h2 {
    margin-top: 0;
}
.bat-cta p {
    color: var(--color-text-light);
}
.bat-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn-bat-cta {
    display: inline-block;
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    transition: opacity var(--transition), transform var(--transition);
}
.btn-bat-cta:hover {
    opacity: 0.9;
    color: var(--color-white);
    transform: translateY(-1px);
}
.btn-bat-cta.btn-primary {
    background: var(--color-primary);
}
.btn-bat-cta.btn-dark {
    background: var(--color-dark);
}

.bat-why-buy {
    margin-top: 40px;
}
.bat-why-buy ul {
    color: var(--color-text-light);
    line-height: 1.8;
    list-style: disc;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .bat-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .bat-cat-grid {
        grid-template-columns: 1fr;
    }
    .battery-finder {
        padding: 20px;
    }
    .battery-finder-controls {
        flex-direction: column;
    }
    .battery-finder-field {
        min-width: 100% !important;
    }
}

/* ──── 31. Parts Lookup Page ──── */
.parts-page {
    padding: 30px 20px 60px;
}

/* Parts Category Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.cat-card {
    background: var(--color-white);
    border: 1px solid #e8ecef;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.cat-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 16px;
    background: #fff;
}
.cat-card-body {                /* one white tile, name under the photo — no divider (John 2026-10-20) */
    padding: 6px 10px 16px;
}
.cat-card-name {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--color-dark);
}

/* Parts Product Grid */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.prod-card {
    background: var(--color-white);
    border: 1px solid #e8ecef;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.prod-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    padding: 12px;
    background: #fff;
}
.prod-card-body {
    padding: 14px 16px;
}
.prod-card-name {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 2px;
}
.prod-card-pn {
    font-family: monospace;
    font-size: 0.8em;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 6px;
}
.prod-card-desc {
    font-size: 0.8em;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.prod-card-price {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 10px;
}
.prod-card-price .from {
    font-size: 0.75em;
    font-weight: 400;
    color: #94a3b8;
}
.prod-card-size-select {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 0.9em;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: var(--color-dark);
    cursor: pointer;
}
.prod-card-size-select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

/* Parts Buttons */
.btn-add {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-add:hover {
    background: var(--color-primary-dark);
}
.btn-add.added {
    background: var(--color-success);
}
.btn-add:disabled {
    opacity: 0.5;
    cursor: wait;
}
.btn-options {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid var(--color-dark);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-options:hover {
    background: var(--color-dark);
    color: var(--color-white);
}
.btn-fitment {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #64748b;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: 6px;
}
.btn-fitment:hover {
    background: #64748b;
    color: var(--color-white);
}

/* Parts Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}
.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Parts Modal */
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    overflow-y: auto;
}
.modal-box {
    max-width: 700px;
    margin: 30px auto;
    background: var(--color-white);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.1);
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.modal-close:hover {
    background: rgba(0,0,0,0.2);
}
.modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.modal-body {
    padding: 24px;
}
.modal-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 4px;
}
.modal-desc {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 20px;
}
.variant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
}
.variant-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8f9fa;
    color: #64748b;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8ecef;
}
.variant-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #334155;
}
.variant-table .td-thumb {
    width: 36px;
    padding: 6px 6px;
}
.variant-table .variant-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e8ecef;
    background: #fff;
}
.variant-table .td-fits {
    font-size: 0.92em;
    color: #475569;
}
.variant-table .pn {
    font-family: monospace;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}
.variant-table tr.has-img {
    cursor: pointer;
    transition: background 0.15s;
}
.variant-table tr.has-img:hover {
    background: #f0f7ff;
}
.variant-table tr.pn-active {
    background: #e8f4fd;
}
.variant-table .price {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1em;
}
.td-fits.has-fitment {
    cursor: pointer;
    color: var(--color-primary);
}
.td-fits.has-fitment:hover {
    text-decoration: underline;
}
.fitment-icon {
    font-size: 1.1em;
    margin-left: 4px;
    opacity: 0.6;
}
.td-fits.has-fitment:hover .fitment-icon {
    opacity: 1;
}
.fitment-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fitment-popup {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.fitment-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}
.fitment-popup-close:hover {
    color: #1e293b;
}
.fitment-popup-title {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 4px;
}
.fitment-section {
    margin-bottom: 12px;
}
.fitment-make-header {
    padding: 6px 12px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.03em;
}
.fitment-models {
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-size: 0.88em;
    line-height: 1.6;
    color: #475569;
}
.modal-fitment {
    padding: 12px 16px;
    margin-top: 12px;
    background: #f0f7ff;
    border-radius: 6px;
    font-size: 0.85em;
    color: #475569;
    line-height: 1.5;
}
.modal-fitment strong {
    color: #1e293b;
}
/* Modal Fitment Section (structured by make) */
.modal-fitment-section {
    margin-top: 20px;
    border-top: 1px solid #e8ecef;
    padding-top: 16px;
}
.modal-fitment-header {
    font-size: 1.05em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.modal-fitment-header i {
    margin-right: 6px;
    color: #64748b;
}
.modal-fitment-section .fitment-section {
    margin-bottom: 12px;
}
.modal-fitment-section .fitment-make-header {
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-fitment-section .fitment-make-header i {
    font-size: 0.85em;
}
.fitment-models-list {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
}
.fitment-model-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88em;
}
.fitment-model-row:last-child {
    border-bottom: none;
}
.fitment-model-name {
    font-weight: 600;
    color: #1e293b;
}
.fitment-model-years {
    color: #64748b;
    font-size: 0.9em;
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: center;
}
.modal-footer a {
    color: var(--color-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9em;
}

/* Spark Plug Finder */
.spark-finder {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
    border-radius: var(--radius);
    padding: 28px;
    margin: 0 0 24px;
    color: var(--color-white);
}
.spark-finder h2 {
    margin: 0 0 6px;
    color: var(--color-white);
    font-size: 1.3em;
}
.spark-finder p {
    color: #aaa;
    font-size: 0.9em;
    margin: 0 0 18px;
}
.spark-finder-img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 16px;
}
.spark-selects {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.spark-selects > div {
    flex: 1;
    min-width: 130px;
}
.spark-selects label {
    display: block;
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 4px;
}
.spark-selects select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #444;
    background: #333;
    color: var(--color-white);
    font-size: 1em;
    cursor: pointer;
}
.spark-selects select:disabled {
    color: #666;
}
.spark-result {
    margin-top: 20px;
    display: none;
}
.spark-result-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--color-dark);
}
.spark-result-title {
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}
.spark-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.spark-plug-card {
    flex: 1;
    min-width: 200px;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.spark-plug-card.recommended {
    border-color: var(--color-primary);
    background: #f0feff;
}
.spark-plug-label {
    font-size: 0.75em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}
.spark-plug-name {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 2px;
    font-family: monospace;
}
.spark-plug-stock {
    font-size: 0.8em;
    color: #64748b;
    margin-bottom: 8px;
}
.spark-plug-price {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

/* Fitment Modal Sections */
.fitment-section {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.fitment-make-header {
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.9em;
}
.fitment-models {
    padding: 10px 14px;
    font-size: 0.85em;
    color: #334155;
    line-height: 1.6;
    background: var(--color-white);
}

@media (max-width: 900px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prod-grid {
        grid-template-columns: 1fr;
    }
    .spark-selects {
        flex-direction: column;
    }
}

/* ──── Parts Catalog (ATV/UTV/Motorcycle) ──── */

/* Search Bar */
/* Parts Catalog Hero */
.parts-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d2137 100%);
    padding: 48px 0 40px;
    margin-bottom: 0;
}
.parts-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.parts-hero-sub {
    color: #94b8d4;
    font-size: 1.05rem;
    margin: 0 0 24px;
}
.parts-hero-search {
    margin-bottom: 18px;
}
.parts-search-box {
    position: relative;
    max-width: 600px;
}
.parts-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1em;
}
.parts-search-box input {
    width: 100%;
    padding: 14px 44px 14px 46px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: all 0.2s;
}
.parts-search-box input::placeholder {
    color: #7a9ab8;
}
.parts-search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.12);
}
.parts-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4em;
    color: #7a9ab8;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}
.parts-search-clear:hover {
    color: #fff;
}
.parts-hero-fitment {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.parts-hero-fitment-label {
    color: #7a9ab8;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.parts-hero-fitment select {
    padding: 10px 14px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 140px;
    cursor: pointer;
    appearance: auto;
}
.parts-hero-fitment select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.parts-hero-fitment select option {
    background: #1a2d4a;
    color: #fff;
}
.parts-hero-fitment button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}
.parts-hero-fitment #fitSearch {
    background: var(--color-primary);
    color: #fff;
}
.parts-hero-fitment #fitSearch:hover:not(:disabled) {
    background: #0062b8;
}
.parts-hero-fitment #fitSearch:disabled {
    background: rgba(255,255,255,0.1);
    color: #5a7a8a;
    cursor: not-allowed;
}
.parts-hero-fitment #fitReset {
    background: rgba(255,255,255,0.1);
    color: #94b8d4;
    border: 1px solid rgba(255,255,255,0.15);
}
.parts-hero-fitment #fitReset:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
@media (max-width: 768px) {
    .parts-hero { padding: 32px 0 28px; }
    .parts-hero-title { font-size: 1.5rem; }
    .parts-hero-fitment { flex-direction: column; align-items: stretch; }
    .parts-hero-fitment select { min-width: 100%; }
    .parts-hero-fitment-label { margin-bottom: 4px; }
}

/* Vehicle Type Tabs */
.vehicle-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.vehicle-tab {
    padding: 8px 20px;
    border: 2px solid #e8ecef;
    border-radius: 999px;
    background: var(--color-white);
    color: #64748b;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.vehicle-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.vehicle-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Sub-category Grid */
.sub-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
@media (max-width: 900px) {
    .sub-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .sub-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Load More Button */
.load-more-wrap {
    text-align: center;
    padding: 30px 0;
}
.load-more-btn {
    padding: 12px 40px;
    border: 2px solid var(--color-dark);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.load-more-btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* Breadcrumb */
.parts-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.9em;
    flex-wrap: wrap;
}
.parts-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.parts-breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    color: #cbd5e1;
    margin: 0 2px;
}

/* Category placeholder (no image) */
.cat-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #0078dc;
    font-size: 2rem;
    min-height: 140px;
    border-radius: 8px 8px 0 0;
}

/* Vehicle type badge on subcategory tiles */
.cat-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    z-index: 2;
    line-height: 1;
}
.cat-badge svg { flex-shrink: 0; }
.cat-badge-mx { background: rgba(220, 80, 30, 0.88); }
.cat-badge-atv { background: rgba(30, 120, 60, 0.88); }
.cat-badge-utv { background: rgba(30, 120, 60, 0.88); }
.cat-badge-street { background: rgba(50, 80, 160, 0.88); }
.cat-card { position: relative; }

/* Category count */
.cat-card-count {
    font-size: 0.78em;
    color: #94a3b8;
    margin-top: 2px;
}

/* Section title */
.section-title {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 18px;
}

/* Fitment Finder */
.fitment-finder {
    background: #f8fafc;
    border: 1px solid #e8ecef;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.fitment-finder-title {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--color-dark);
    margin-bottom: 12px;
}
.fitment-finder-title i {
    color: var(--color-primary);
    margin-right: 6px;
}
.fitment-finder-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.fitment-finder-selects select {
    padding: 8px 12px;
    border: 2px solid #e8ecef;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: inherit;
    min-width: 140px;
    background: var(--color-white);
}
.fitment-finder-selects select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.fitment-finder-selects select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.fitment-reset {
    margin-left: 4px;
}

/* No results / loading text */
.no-results,
.loading-text {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 1em;
    grid-column: 1 / -1;
}
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

@media (max-width: 600px) {
    .fitment-finder-selects {
        flex-direction: column;
    }
    .fitment-finder-selects select {
        width: 100%;
    }
    .vehicle-tabs {
        gap: 4px;
    }
    .vehicle-tab {
        padding: 6px 14px;
        font-size: 0.82em;
    }
}

/* Vehicle Finder in Product Modal */
.vehicle-finder-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-top: 16px; }
.vf-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.vf-title i { color: var(--color-primary); margin-right: 6px; }
.vf-hint { font-size: 0.85rem; color: #64748b; margin-bottom: 16px; }
.vf-selects { display: flex; gap: 12px; flex-wrap: wrap; }
.vf-field { flex: 1; min-width: 140px; }
.vf-field label { display: block; font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.vf-field select { width: 100%; padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; font-family: inherit; background: #fff; cursor: pointer; }
.vf-field select:focus { border-color: var(--color-primary); outline: none; }
.vf-field select:disabled { opacity: 0.4; cursor: not-allowed; }
.vf-result { margin-top: 20px; }
.vf-match-title { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); }
.vf-match-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.vf-match-img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; border: 1px solid #eee; background: #fff; flex-shrink: 0; }
.vf-match-info { flex: 1; }
.vf-match-pn { font-family: monospace; font-weight: 700; color: var(--color-primary); font-size: 1.05rem; }
.vf-match-label { font-size: 0.85rem; color: #64748b; margin-top: 2px; }
.vf-match-price { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-top: 4px; }
.vf-match-card .btn-add { flex-shrink: 0; }
.vf-no-result { text-align: center; padding: 20px; color: #64748b; font-size: 0.95rem; }
.vf-no-result a { color: var(--color-primary); font-weight: 700; }
@media (max-width: 600px) { .vf-selects { flex-direction: column; } .vf-match-card { flex-direction: column; text-align: center; } }

/* Brake Pad Lookup */
.bp-lookup-wrap { max-width: 700px; margin: 0 auto; }
.bp-lookup-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; }
.bp-lookup-header { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.bp-lookup-header i { color: var(--color-primary); margin-right: 8px; }
.bp-lookup-desc { font-size: 0.88rem; color: #64748b; margin: 4px 0 16px; }
.bp-lookup-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-lookup-fields select { flex: 1; min-width: 140px; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.92rem; background: #fff; }
.bp-result { margin-top: 20px; }
.bp-loading { text-align: center; padding: 20px; color: #64748b; }
.bp-no-result { text-align: center; padding: 20px; color: #64748b; }
.bp-no-result a { color: var(--color-primary); font-weight: 700; }
.bp-match-header { font-size: 1.05rem; font-weight: 700; color: #1e293b; padding-bottom: 12px; border-bottom: 2px solid var(--color-primary); margin-bottom: 16px; }
.bp-match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bp-match-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: box-shadow 0.2s; }
.bp-match-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.bp-match-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 10px; }
.bp-match-img-placeholder { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 2rem; margin-bottom: 10px; }
.bp-match-position { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; color: #64748b; letter-spacing: 0.03em; margin-bottom: 4px; }
.bp-match-pn { font-family: monospace; font-weight: 700; color: var(--color-primary); font-size: 1rem; }
.bp-match-price { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 6px 0 10px; }
.bp-match-card .btn-add { width: 100%; }
.bp-empty { opacity: 0.4; }
@media (max-width: 600px) { .bp-lookup-fields { flex-direction: column; } .bp-match-grid { grid-template-columns: 1fr 1fr; } }

/* ──── Accessories Category Tiles ──── */
.parts-page-title { font-size: 1.8rem; font-weight: 700; color: #1e293b; margin: 30px 0 24px; text-align: center; }
.acc-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.acc-tile { display: flex; flex-direction: column; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.acc-tile:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }
.acc-tile-img { width: 100%; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.acc-tile-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.acc-tile-info { padding: 6px 16px 16px; text-align: center; }   /* one white tile, no blue line (John 2026-10-20) */
.acc-tile-name { display: block; font-size: 0.92rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.acc-tile:hover .acc-tile-name { color: #0078dc; }
/* ── Fitment Lookup ─────────────────────────────────────────── */
.fitment-lookup-box { background: #f8fafc; border: 2px solid #0078dc; border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.fitment-lookup-title { font-size: 1.1rem; font-weight: 700; color: #0078dc; margin: 0 0 16px; }
.fitment-lookup-title i { margin-right: 6px; }
.fitment-selectors { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.fitment-field { flex: 1; min-width: 160px; }
.fitment-field label { display: block; font-size: 0.78rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.fitment-field select { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.92rem; background: #fff; color: #1e293b; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.fitment-field select:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.fitment-field select:focus { outline: none; border-color: #0078dc; box-shadow: 0 0 0 3px rgba(0,120,220,0.15); }
.fitment-search-btn { padding: 10px 24px; background: #0078dc; color: #fff; border: none; border-radius: 8px; font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: background 0.2s; white-space: nowrap; align-self: end; }
.fitment-search-btn:hover { background: #0062b8; }
.fitment-search-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.fitment-status { margin: 20px 0 8px; font-size: 0.95rem; font-weight: 600; color: #1e293b; }
.fitment-variant-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.fitment-variant-row:last-child { border-bottom: none; }
.fitment-variant-pn { font-size: 0.85rem; color: #334155; }
.fitment-variant-price { font-size: 0.95rem; font-weight: 800; color: var(--color-dark); }
.fitment-position { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.fitment-position[data-pos="front"] { background: #dcfce7; color: #166534; }
.fitment-position[data-pos="rear"]  { background: #ede9fe; color: #5b21b6; }
.fitment-position[data-pos="mid"]   { background: #f1f5f9; color: #334155; }
.fitment-position[data-pos="upper"] { background: #dbeafe; color: #1e40af; }
.fitment-position[data-pos="lower"] { background: #ffedd5; color: #9a3412; }
.fitment-position[data-pos="throttle"], .fitment-position[data-pos^="throttle"] { background: #dbeafe; color: #1e40af; }
.fitment-position[data-pos="clutch"] { background: #ffedd5; color: #9a3412; }
.fitment-position[data-pos*="brake"] { background: #fee2e2; color: #991b1b; }
.fitment-position[data-pos="choke"], .fitment-position[data-pos="decompression"], .fitment-position[data-pos="speedometer"], .fitment-position[data-pos="tachometer"], .fitment-position[data-pos="hot start"] { background: #f1f5f9; color: #334155; }
.fitment-position[data-pos="gear selector"], .fitment-position[data-pos="reverse"] { background: #ede9fe; color: #5b21b6; }
.acc-pos-row { margin: 0 0 6px; }
.acc-pos-row .fitment-position { margin: 0 4px 0 0; }
.fitment-notes { font-size: 0.78rem; color: #64748b; font-style: italic; margin-left: 4px; }
.acc-product-desc { font-size: 0.82rem; color: #64748b; margin: 4px 0 8px; line-height: 1.4; }
@media (max-width: 600px) { .fitment-selectors { flex-direction: column; } .fitment-field { min-width: 100%; } }
.catalog-link-wrap { text-align: center; margin: 10px 0 40px; }
.catalog-link { display: inline-flex; align-items: center; gap: 10px; background: #f4f6f8; border: 1px solid #e0e4e8; border-radius: 10px; padding: 14px 28px; text-decoration: none; font-weight: 700; color: #1e293b; font-size: 0.95rem; transition: all 0.2s; }
.catalog-link:hover { background: #e8ecf0; }
.catalog-link i { color: var(--color-primary); }
@media (max-width: 600px) { .acc-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .parts-page-title { font-size: 1.4rem; } }

/* ──── Accessories Product Tiles ──── */
.acc-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; text-decoration: none; margin-bottom: 24px; }
.acc-back-link:hover { text-decoration: underline; }
.acc-section { margin-bottom: 40px; }
.acc-section-title { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary); }
.acc-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.acc-product-tile { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.acc-product-tile:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.acc-product-img { width: 100%; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.acc-product-img img { max-width: 80%; max-height: 80%; object-fit: contain; transition: opacity 0.2s; }
.acc-product-body { padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acc-product-name { font-size: 0.88rem; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.3; }
.acc-make-chips { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; margin: 5px 0 4px; }
.acc-make-chip { font-size: 0.66rem; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px; letter-spacing: .2px; }
.acc-make-chip.more { background: #e2e8f0; color: #475569; }
.acc-variant-select { width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.82rem; background: #fff; cursor: pointer; }
.acc-variant-select:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 2px rgba(0,120,220,0.15); }
.acc-product-pn { font-family: monospace; font-size: 0.8rem; color: #64748b; }
.acc-product-pn strong { color: #1e293b; }
.acc-product-price { font-size: 1.05rem; font-weight: 700; color: #1e293b; }
.acc-catalog-link { display: inline-block; font-size: 0.8rem; color: var(--color-primary); font-weight: 600; text-decoration: none; margin-top: auto; }
.acc-catalog-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .acc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .acc-section-title { font-size: 1.05rem; } }

/* ── Spark Plug Finder Widget ── */
.sp-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }
.sp-header-row .parts-page-title { margin-bottom: 0; white-space: nowrap; }
.sp-finder { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-finder-label { font-size: 0.82rem; font-weight: 700; color: #0078dc; white-space: nowrap; }
.sp-finder-label i { margin-right: 4px; }
.sp-finder select { padding: 8px 30px 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.85rem; background: #fff; color: #1e293b; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; width: 150px; }
#sp-type { width: 130px; }
#sp-make { width: 160px; }
#sp-model { width: 200px; }
#sp-year { width: 100px; }
.sp-finder select:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.sp-finder select:focus { outline: none; border-color: #0078dc; box-shadow: 0 0 0 3px rgba(0,120,220,0.15); }
.sp-finder .fitment-search-btn { padding: 8px 16px; font-size: 0.85rem; }
.sp-result-card { background: #f0f9ff; border: 2px solid #0078dc; border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; }
.sp-result-header { font-size: 0.9rem; font-weight: 700; color: #0078dc; margin-bottom: 10px; }
.sp-result-header i { margin-right: 6px; }
.sp-result-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sp-plug-main { display: flex; align-items: baseline; gap: 10px; }
.sp-plug-name { font-size: 1.2rem; font-weight: 800; color: #1e293b; }
.sp-plug-stk { font-size: 0.8rem; color: #64748b; }
.sp-plug-gap { font-size: 0.88rem; color: #334155; }
.sp-buy-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #0078dc; color: #fff; border-radius: 6px; font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.sp-buy-link:hover { background: #0062b8; color: #fff; }
.sp-call-pricing { font-size: 0.85rem; color: #64748b; }
.sp-upgrade { width: 100%; font-size: 0.85rem; color: #475569; margin-top: 4px; padding-top: 8px; border-top: 1px solid #e0e7ef; }
.sp-upgrade-label { font-weight: 600; color: #0078dc; }
.sp-no-result { background: #fef3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 12px 16px; color: #856404; font-size: 0.88rem; margin-bottom: 24px; }
@media (max-width: 768px) { .sp-header-row { flex-direction: column; align-items: flex-start; } .sp-finder { width: 100%; } .sp-finder select { min-width: 0; flex: 1; } }

/* ── Product Detail Page (PDP) — FortNine-style ── */
.pdp-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 12px; }
.pdp-image { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.pdp-hero-img { max-width: 100%; max-height: 500px; height: auto; object-fit: contain; }
.pdp-hero-placeholder { font-size: 4rem; color: #cbd5e1; }
.pdp-info { display: flex; flex-direction: column; gap: 14px; }
.pdp-brand { color: #0078dc; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pdp-title { font-size: 1.65rem; font-weight: 700; color: #0f172a; line-height: 1.25; margin: 0; }
.pdp-sku { color: #475569; font-size: 0.88rem; }
.pdp-sku strong { color: #0f172a; font-family: 'Fira Code', Menlo, monospace; font-weight: 600; }
.pdp-price { font-size: 1.9rem; font-weight: 800; color: var(--color-dark); margin: 4px 0; }
.pdp-price-call { font-size: 1.1rem; color: #94a3b8; font-weight: 600; }

.pdp-cart-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; margin-top: 6px; }
.pdp-cart-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; }
.pdp-total-label { color: #475569; font-size: 0.9rem; }
.pdp-total { font-size: 1.5rem; font-weight: 800; color: var(--color-dark); }
.pdp-cart-actions { display: flex; gap: 10px; }
.pdp-qty { width: 70px; padding: 10px 12px; font-size: 1rem; border: 1px solid #cbd5e1; border-radius: 6px; text-align: center; }
.pdp-add-to-cart { flex: 1; background: #0078dc; color: #fff; border: none; border-radius: 6px; padding: 12px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.pdp-add-to-cart:hover { background: #0062b8; }
.pdp-add-to-cart:disabled { opacity: 0.7; cursor: wait; }
.pdp-add-to-cart.added { background: #16a34a; }
.pdp-cart-box-unavailable { background: #fef3cd; border-color: #ffc107; color: #856404; }
.pdp-cart-box-unavailable a { color: #856404; font-weight: 700; }

.pdp-trust { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.88rem; color: #475569; }
.pdp-trust li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.pdp-trust li i { color: #0078dc; width: 16px; }
.pdp-trust a { color: #0078dc; font-weight: 600; }

.pdp-description { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.pdp-description h2 { font-size: 1.15rem; color: #0f172a; margin: 0 0 10px; }
.pdp-description p { color: #475569; line-height: 1.6; }

@media (max-width: 768px) {
    .pdp-layout { grid-template-columns: 1fr; gap: 18px; }
    .pdp-image { min-height: 280px; padding: 12px; }
    .pdp-title { font-size: 1.35rem; }
    .pdp-price { font-size: 1.55rem; }
}

/* PDP variant picker (parent PDP with color/size dropdown) */
.pdp-variant-picker { margin: 4px 0; }
.pdp-variant-select { width: 100%; padding: 10px 12px; font-size: 0.95rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.pdp-variant-select:focus { outline: none; border-color: #0078dc; box-shadow: 0 0 0 2px rgba(0,120,220,0.15); }

/* === Powersports Battery Finder (mirrored from portagebattery.com) === */
.battery-finder-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}
.battery-finder-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 180px;
    max-width: 220px;
}
.battery-finder-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.battery-finder-form select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    cursor: pointer;
}
.battery-finder-form select:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.battery-finder-form .btn {
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    background: #0078dc;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.battery-finder-form .btn:hover { background: #0062b8; }
.battery-finder-form .btn:disabled { background: #94a3b8; cursor: not-allowed; }

.battery-results {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 8px;
}
.battery-results .results-header h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #1e293b;
}
.battery-results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.battery-results th {
    text-align: left;
    padding: 10px 12px;
    background: #f4f9fc;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}
.battery-results td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}
.battery-results tr:last-child td { border-bottom: none; }
.battery-results tr:hover td { background: #f4f9fc; }
.battery-results .bci-cell {
    font-weight: 700;
    color: #0078dc;
    display: block;
    font-size: 1rem;
}
.battery-results .product-name {
    display: block;
    color: #475569;
    font-size: 0.85rem;
    margin-top: 3px;
}
.battery-results .dims-cell { color: #475569; font-size: 0.88rem; }
.battery-results .price-col,
.battery-results .price-cell {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}
.battery-results .results-cta {
    margin: 18px 0 0;
    color: #475569;
    font-size: 0.92rem;
}
.battery-results .results-cta a {
    color: #0078dc;
    font-weight: 600;
    text-decoration: none;
}
.battery-results .results-cta a:hover { text-decoration: underline; }
.battery-results .no-results {
    text-align: center;
    padding: 24px;
    color: #475569;
}
@media (max-width: 720px) {
    .battery-finder-form { flex-direction: column; align-items: stretch; }
    .battery-finder-form .form-group { max-width: none; }
}

/* Off-road fitment searches as you pick (fitment-lookup.js), so no Go / Search button */
#fitment-lookup .fitment-search-btn { display: none !important; }

/* Big back button (John 2026-10-20): first thing in every parts breadcrumb / back link, goes up one level */
.bl-back { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #1a1a1a; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 4px; }
.bl-back:hover, .acc-back-link:hover .bl-back { background: #333; }
.acc-back-link { gap: 10px; color: #64748b; }
.acc-back-link:hover { text-decoration: none; color: #1a1a1a; }

/* Phones (John 2026-10-20): off-road parts pages get the snow parts page treatment — the title wraps instead of
   running off the screen, the Year/Make/Model filter fills the width with 44px controls (16px text so iOS
   doesn't zoom; the inline fixed widths pushed it past the right edge), tiles drop the description */
@media (max-width: 600px) {
    .acc-back-link { font-size: .8rem; color: #64748b; margin-bottom: 10px; }
    .parts-page-title { font-size: 1.3rem !important; font-weight: 800; color: #1a1a1a; line-height: 1.2; flex: 1 1 100% !important; max-width: 100%; overflow-wrap: anywhere; }
    #fitment-lookup:not(.fitment-lookup-box) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; flex: 1 1 100% !important; width: 100%; }
    #fitment-lookup:not(.fitment-lookup-box) > span { display: none; }
    #fitment-lookup:not(.fitment-lookup-box) select { width: 100% !important; flex: none !important; height: 44px; font-size: 16px !important; padding: 0 26px 0 10px !important; border-radius: 8px !important; color: #1a1a1a; -webkit-appearance: none; appearance: none;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; }
    #fitment-lookup:not(.fitment-lookup-box) select:disabled { background-color: #f1f5f9; color: #94a3b8; }
    #fitment-lookup:not(.fitment-lookup-box) .fitment-search-btn { grid-column: 1 / -1; height: 44px; font-size: 1rem !important; border-radius: 8px; }
    .fitment-lookup-box { padding: 16px; }
    .fitment-field select { height: 44px; font-size: 16px; }
    .acc-product-grid { gap: 10px; }
    .acc-product-body { padding: 10px; gap: 6px; }
    .acc-product-desc { display: none; }
    .acc-product-name { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .acc-product-pn { font-family: inherit; font-size: .72rem; }
    .acc-product-price { font-size: 1rem; }
}
