/*
Theme Name: ScorpionTrack Child Theme
Theme URI: https://scorpiontrack.com
Author: ScorpionTrack
Author URI: https://scorpionauto.com
Description: Child theme for ScorpionTrack. All customisations live here so parent theme updates never wipe styling.
Version: 1.11.5
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Template: scorpiontrack-theme-v1.0.9
Text Domain: scorpiontrack-child
Requires at least: 5.9
Requires PHP: 7.4
*/

/* 1.9.8 — 13 November 2026
   functions.php: on narrow screens with the product sticky buy bar, the
   Tawk.to bubble sits 84px up (Tawk_API.customStyle) instead of covering
   the Add to Cart button. */

/* 1.9.7 — 13 November 2026 (ECM-2811, mobile LCP)
   functions.php: dequeue the parent's phone-mockup.css on the homepage
   (hero no longer uses it) and delay the Tawk.to widget until 4s after
   load or first interaction. Built on a verified copy of live 1.9.6. */

/* 1.9.6 — 11 November 2026
   Added archive.php: tag, category, author and date archives.
   The theme had no archive template, so these fell back to the parent
   index.php and printed every matching post in full. Uploaded directly to
   the child theme folder rather than via a packaged zip, so this version
   bump is the record of that change. */


/* ==============================================================
   CHILD THEME OVERRIDES
   ===============================================================
   WordPress block editor wraps every wp-block-group in
   .wp-block-group__inner-container.  The parent theme's
   block-bridge.css uses direct-child selectors ( > ) that skip
   this wrapper, so layouts break.

   This file patches every selector to traverse the inner-container
   so the grid/flex layouts actually apply.

   RULE:  Put all custom CSS here — never in Customizer.
   ============================================================== */


/* ============================================================
   HERO SECTION — two-column grid fix
   DOM:  .hero > __inner > .container > __inner > [.hero-content, .hero-visual]
   The grid must be on .container's inner-container, not .container itself.
   Parent main.css sets .hero .container to grid 1fr 1fr which makes
   the inner-container only take half the width. Override to 1fr so
   the inner-container fills the full container, then grid the inner.
   ============================================================ */

/* Override parent: container gets single-column grid so inner fills it */
.hero .container {
    display: block !important;
}

/* The actual 2-column grid goes on the inner-container */
.hero .wp-block-group.container > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero content group */
.hero .wp-block-group.hero-content {
    color: var(--st-white);
}

.hero .wp-block-group.hero-content .overline {
    color: var(--st-lime);
    margin-bottom: var(--sp-2);
    display: block;
}

.hero .wp-block-group.hero-content .wp-block-heading {
    margin-bottom: var(--sp-3);
    font-weight: 800;
    color: var(--st-white);
}

/* Lime highlight on hero heading — uses <mark> in block editor */
.hero .wp-block-heading mark,
.hero h1 mark {
    background: none !important;
    color: var(--st-lime) !important;
}

.hero .wp-block-group.hero-content .hero-body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--sp-4);
    max-width: 520px;
}

/* Hero visual group */
.hero .wp-block-group.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero buttons */
.hero-buttons.wp-block-buttons {
    display: flex !important;
    gap: var(--sp-2);
    flex-wrap: wrap;
}


/* ============================================================
   TRUST BAR — container is an HTML block so no inner-container
   DOM:  .trust-bar > __inner > div.container > .trust-item × 4
   ============================================================ */
.trust-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    text-align: center;
}


/* ============================================================
   SECTION HEADER — centred with overline + heading + description
   DOM:  .section-header > __inner > [.overline, h2, p]
   ============================================================ */
.wp-block-group.section-header {
    text-align: center;
    margin-bottom: var(--sp-8) !important;
}

.wp-block-group.section-header .overline {
    color: var(--st-blue);
    margin-bottom: var(--sp-1);
    display: block;
}

.wp-block-group.section-header .wp-block-heading {
    color: var(--st-navy);
    margin-bottom: var(--sp-2);
}

.wp-block-group.section-header > .wp-block-group__inner-container > p:not(.overline) {
    color: var(--st-body-text);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Dark section header overrides (products, why-choose) */
.products .wp-block-group.section-header .overline,
.why-choose .wp-block-group.section-header .overline {
    color: var(--st-lime);
}
.products .wp-block-group.section-header .wp-block-heading,
.why-choose .wp-block-group.section-header .wp-block-heading {
    color: var(--st-white);
}
.products .wp-block-group.section-header > .wp-block-group__inner-container > p:not(.overline),
.why-choose .wp-block-group.section-header > .wp-block-group__inner-container > p:not(.overline) {
    color: rgba(255,255,255,0.7);
}

/* Reviews section header */
.reviews .wp-block-group.section-header .overline {
    color: var(--st-blue);
}
.reviews .wp-block-group.section-header .wp-block-heading {
    color: var(--st-navy);
}


/* ============================================================
   CATEGORIES SECTION
   DOM:  .categories > __inner > .container > __inner > [.section-header, .category-grid]
   ============================================================ */
.categories .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}


/* ============================================================
   PRODUCTS SECTION
   DOM:  .products > __inner > .container > __inner > [.section-header, .product-grid]
   ============================================================ */
.products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}


/* ============================================================
   WHY CHOOSE SECTION
   DOM:  .why-choose > __inner > .container > __inner > [.section-header, .why-grid]
   ============================================================ */
.why-choose .why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}


/* ============================================================
   REVIEWS SECTION
   DOM:  .reviews > __inner > .container > __inner > [.section-header, ...]
   ============================================================ */
.reviews .review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
}


/* ============================================================
   CTA SECTION — two-column grid fix (same pattern as hero)
   DOM:  .cta-section > __inner > .container > __inner > [.cta-content, .cta-form]
   ============================================================ */

/* Override parent: container gets block so inner fills it */
.cta-section .container {
    display: block !important;
}

/* The actual 2-column grid goes on the inner-container */
.cta-section .wp-block-group.container > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-section .wp-block-group.cta-content {
    color: var(--st-white);
}

.cta-section .wp-block-group.cta-content .overline {
    color: var(--st-lime);
    margin-bottom: var(--sp-1);
    display: block;
}

.cta-section .wp-block-group.cta-content .wp-block-heading {
    color: var(--st-white);
    margin-bottom: var(--sp-2);
}

.cta-section .wp-block-group.cta-content > .wp-block-group__inner-container > p:not(.overline) {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: var(--sp-4);
    max-width: 480px;
}

/* CTA form group — white card */
.cta-section .wp-block-group.cta-form {
    background: var(--st-white);
    border-radius: 16px;
    padding: var(--sp-5) !important;
    box-shadow: var(--shadow-lg);
}

.cta-section .wp-block-group.cta-form .wp-block-heading {
    font-family: var(--font-heading);
    color: var(--st-navy);
    margin-bottom: var(--sp-1);
    font-size: 1.3rem;
}

.cta-section .wp-block-group.cta-form .form-subtitle {
    color: var(--st-body-text);
    font-size: 0.9rem;
    margin-bottom: var(--sp-3);
}

/* CTA buttons */
.cta-buttons.wp-block-buttons {
    display: flex !important;
    gap: var(--sp-2);
    flex-wrap: wrap;
}


/* ============================================================
   BUTTONS — map WP button blocks to our btn styles
   ============================================================ */

/* Primary button (lime) */
.wp-block-button.btn-primary .wp-block-button__link {
    background: var(--st-lime) !important;
    color: var(--st-navy) !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    border: none;
    min-height: 48px;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.wp-block-button.btn-primary .wp-block-button__link:hover {
    background: var(--st-lime-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(134, 224, 38, 0.3);
}

/* Secondary button (outline/ghost) */
.wp-block-button.btn-secondary .wp-block-button__link {
    background: transparent !important;
    color: var(--st-white) !important;
    border: 2px solid rgba(255,255,255,0.4);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    min-height: 48px;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.wp-block-button.btn-secondary .wp-block-button__link:hover {
    border-color: var(--st-white);
    background: rgba(255,255,255,0.08) !important;
}


/* ============================================================
   GLOBAL BLOCK RESETS
   Remove default WP block spacing. Using main (not .site-main
   which doesn't exist in this theme's templates).
   ============================================================ */
main .wp-block-group,
main .wp-block-heading,
main .wp-block-buttons,
main .wp-block-button {
    margin-top: 0;
    margin-bottom: 0;
}

main .wp-block-group {
    padding: 0;
}

main .wp-block-group.is-layout-flow > * + *,
main .is-layout-flow > * + * {
    margin-block-start: 0;
}

/* FIX: WordPress is-layout-flow shrink-wraps inner-containers.
   Force them to fill their parent so grid/flex layouts work. */
.wp-block-group > .wp-block-group__inner-container {
    width: 100% !important;
}


/* ============================================================
   SECTION PADDING
   The global reset above zeros out padding on all .wp-block-group.
   Restore section-level spacing here so the page breathes.
   Values match parent main.css design tokens.
   ============================================================ */
.hero {
    padding: var(--sp-10) var(--sp-3) !important;
}
.trust-bar {
    padding: var(--sp-5) var(--sp-3) !important;
}
.categories {
    padding: var(--section-padding) !important;
}
.products {
    padding: var(--section-padding-lg) !important;
}
.why-choose {
    padding: var(--section-padding-lg) !important;
}
.reviews {
    padding: var(--section-padding) !important;
}
.cta-section {
    padding: var(--section-padding) !important;
}

/* Container class */
.wp-block-group.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-3);
}


/* ============================================================
   MEGA MENU NAVIGATION — Desktop
   ============================================================ */

/* Nav container: logo left, menu center-left, actions right */
.st-nav-container {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-3);
    height: 72px;
}

/* Logo */
.st-logo {
    flex-shrink: 0;
    margin-right: 32px;
}
.st-logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* Nav links list — left-aligned, no flex stretch */
.st-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 0;
}

/* Individual nav items */
.st-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Nav link styling */
.st-nav-link {
    color: var(--st-navy) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.01em;
    white-space: nowrap;
    font-family: var(--font-body);
}
.st-nav-link:hover {
    color: var(--st-lime);
    border-bottom-color: var(--st-lime);
}

/* Chevron icon */
.st-chevron {
    transition: transform 0.2s;
}
.st-nav-item:hover .st-chevron {
    transform: rotate(180deg);
}

/* Right-side actions pushed to far right */
.st-nav-right {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-left: auto !important;
    flex-shrink: 0;
}

/* Cart icon */
.st-cart {
    color: var(--st-navy) !important;
    position: relative;
    display: flex;
    align-items: center;
}
.st-cart svg {
    width: 22px;
    height: 22px;
}
.st-cart:hover {
    color: var(--st-lime);
}
.st-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--st-lime);
    color: var(--st-navy);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Button in nav */
.st-cta-btn {
    background: var(--st-lime) !important;
    color: var(--st-navy) !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-body);
}
.st-cta-btn:hover {
    background: var(--st-lime-hover) !important;
    transform: translateY(-1px);
}

/* ============================================================
   MEGA DROPDOWN PANELS
   ============================================================ */
.st-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(15, 33, 64, 0.12);
    padding: 24px 28px;
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--st-lime);
}
.st-nav-item:hover > .st-mega-dropdown {
    display: flex;
}

/* Columns inside dropdown */
.st-mega-col {
    flex: 1;
}
.st-mega-col + .st-mega-col {
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid var(--st-border, #E2E8F0);
}
.st-mega-col-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--st-blue);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--st-very-light-blue, #EFF4FB);
}

/* Product mini-cards */
.st-mega-product-cards {
    display: flex;
    gap: 12px;
}
.st-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--st-navy);
    background: var(--st-very-light-blue, #EFF4FB);
    border-radius: 10px;
    padding: 14px 14px 12px;
    width: 140px;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-align: center;
}
.st-mini-card:hover {
    border-color: var(--st-lime);
    box-shadow: 0 4px 12px rgba(134, 224, 38, 0.15);
    transform: translateY(-2px);
}
.st-mini-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 6px;
}
.st-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.st-card-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--st-lime-hover, #74c41f);
    margin-top: 2px;
}
.st-card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--st-blue);
}

/* Link rows inside dropdown */
.st-mega-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--st-navy);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}
.st-mega-link-row:hover {
    background: var(--st-very-light-blue, #EFF4FB);
    color: var(--st-blue);
}
.st-link-content {
    display: flex;
    flex-direction: column;
}
.st-link-content strong {
    font-size: 0.85rem;
    color: var(--st-navy);
}
.st-sub-desc {
    font-size: 0.73rem;
    color: var(--st-body-text, #4A5568);
    font-weight: 400;
}
.st-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(134, 224, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.st-icon-circle svg {
    color: var(--st-lime-hover, #74c41f);
}

/* View all link */
.st-mega-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--st-blue);
    text-decoration: none;
    margin-top: 10px;
    padding: 6px 0;
    transition: color 0.2s;
}
.st-mega-view-all:hover {
    color: var(--st-lime-hover, #74c41f);
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.st-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.st-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--st-navy);
    transition: all 0.3s;
}

.st-mobile-menu {
    display: none;
    background: var(--st-navy);
    padding: 16px var(--sp-3);
}
.st-mobile-menu.is-open {
    display: block;
}

.st-mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.st-mobile-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.st-mobile-item > a {
    display: block;
    padding: 14px 0;
    color: var(--st-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.st-mobile-has-children {
    position: relative;
}
.st-mobile-toggle {
    position: absolute;
    right: 0;
    top: 8px;
    background: none;
    border: none;
    color: var(--st-white);
    padding: 8px;
    cursor: pointer;
}
.st-mobile-toggle svg {
    transition: transform 0.2s;
}
.st-mobile-toggle.is-open svg {
    transform: rotate(180deg);
}
.st-mobile-submenu {
    display: none;
    list-style: none;
    padding: 0 0 8px 16px;
    margin: 0;
}
.st-mobile-submenu.is-open {
    display: block;
}
.st-mobile-submenu li a {
    display: block;
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
}
.st-mobile-submenu li a:hover {
    color: var(--st-lime);
}
.st-mobile-cta {
    background: var(--st-lime) !important;
    color: var(--st-navy) !important;
    text-align: center;
    border-radius: 6px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}


/* ============================================================
   RESPONSIVE — 1024px (Tablet Landscape)
   ============================================================ */
@media (max-width: 1024px) {
    /* Hide desktop mega menu, show hamburger */
    .st-menu {
        display: none !important;
    }
    .st-hamburger {
        display: flex !important;
    }
    .st-nav-container {
        height: 60px;
    }

    .hero .wp-block-group.container > .wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero .wp-block-group.hero-visual {
        display: none;
    }

    .hero .hero-body {
        margin: 0 auto var(--sp-4);
    }

    .hero-buttons.wp-block-buttons {
        justify-content: center;
    }

    .cta-section .wp-block-group.container > .wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
    }

    /* Override parent responsive rules too */
    .hero .container,
    .cta-section .container {
        display: block !important;
    }

    .trust-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — 768px (Tablet Portrait)
   ============================================================ */
@media (max-width: 768px) {
    .trust-bar .container {
        grid-template-columns: 1fr;
        gap: var(--sp-2);
    }

    .cta-section .wp-block-group.cta-form {
        padding: var(--sp-3) !important;
    }

    .reviews .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE — 640px (Mobile)
   ============================================================ */
@media (max-width: 640px) {
    .wp-block-button.btn-primary .wp-block-button__link,
    .wp-block-button.btn-secondary .wp-block-button__link {
        font-size: 0.8rem;
        padding: 12px 24px;
        min-height: 44px;
    }

    .wp-block-group.section-header {
        margin-bottom: var(--sp-4) !important;
    }

    .categories .category-grid,
    .products .product-grid,
    .why-choose .why-grid {
        grid-template-columns: 1fr;
    }
}


/* ==============================================================
   PREMIUM UI (ECM-2510) — moving hero aurora + hover micro-interactions
   ==============================================================
   Folded in from the Customizer preview (Jun 2026) so the whole premium
   layer ships version-controlled in the theme. The hero aurora is a
   decorative ::after layer (animates transform/opacity only — zero CLS);
   hover lifts are on buttons, product/category/feature cards and the trust
   icons. Pairs with the scroll-reveal in header.php. All motion is disabled
   under prefers-reduced-motion. Scroll-reveal's hidden-state CSS stays
   inlined in header.php (it must beat the deferred stylesheet); these
   effects are fine to load with the main sheet as they're non-critical.
   ============================================================== */
.hero::after{content:"";position:absolute;inset:-30%;z-index:0;pointer-events:none;background:radial-gradient(34% 34% at 20% 26%,rgba(134,224,38,.15),transparent 60%),radial-gradient(44% 44% at 82% 32%,rgba(56,109,180,.30),transparent 62%),radial-gradient(40% 40% at 58% 84%,rgba(122,171,223,.18),transparent 60%);filter:blur(4px);animation:stAurora 13s ease-in-out infinite alternate;}
@keyframes stAurora{0%{transform:translate3d(0,0,0) scale(1);}50%{transform:translate3d(8%,-6%,0) scale(1.22);}100%{transform:translate3d(-9%,7%,0) scale(1.12);}}
.hero > .wp-block-group__inner-container{position:relative;z-index:1;}
.wp-block-button__link{transition:transform .22s cubic-bezier(.2,.7,.3,1),box-shadow .22s ease,background-color .22s ease;}
.wp-block-button__link:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(15,33,64,.22);}
.sf-product-card,.category-card,.feature-card{transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s ease,border-color .3s ease;}
.sf-product-card:hover,.category-card:hover,.feature-card:hover{transform:translateY(-6px);box-shadow:0 20px 44px rgba(15,33,64,.14);}
.trust-icon{transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s ease;}
.trust-item:hover .trust-icon{transform:translateY(-4px);box-shadow:0 10px 22px rgba(56,109,180,.30);}
@media (prefers-reduced-motion:reduce){.hero::after{animation:none;}.wp-block-button__link,.sf-product-card,.category-card,.feature-card,.trust-icon{transition:none;}.wp-block-button__link:hover,.sf-product-card:hover,.category-card:hover,.feature-card:hover{transform:none;}.trust-item:hover .trust-icon{transform:none;}}

/* ══════════════ v1.6.3 (1 Sep 2026) — tighter section rhythm ══════════════
   Esther: section padding + heading gaps too large site-wide.
   Tokens re-declared here (not only critical.css) because the PARENT
   main.css :root loads after the inlined critical CSS and would restore
   the old 96/128px values. This sheet loads last of the theme styles. */
:root {
    --section-padding: var(--sp-10) var(--sp-3);      /* was 96px rows → 80px */
    --section-padding-lg: var(--sp-12) var(--sp-3);   /* was 128px rows → 96px */
}
/* Heading block → content gap: 64px → 48px */
.section-header {
    margin-bottom: var(--sp-6);
}

/* ===========================================================
   MOBILE NAV, Dom feedback 12 Oct 2026
   "Slight improvements to mobile nav, blur website behind nav
   to focus user. Add trust signals. Add iconography to Find my
   Tracker. Do we also need to add the Tracker and Dealer Login
   buttons on this?"
   =========================================================== */

/* Find My Tracker reads as a button, with the magnifier he asked for */
.st-mobile-item--finder { border-bottom: 0; padding-bottom: 4px; }
.st-mobile-finder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px !important;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    color: var(--st-white);
    font-weight: 700;
}
.st-mobile-finder svg { flex-shrink: 0; }

/* Tracking and Dealer login, which were desktop-only before */
.st-mobile-logins {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.st-mobile-logins a {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Trust signals at the foot of the drawer */
.st-mobile-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.st-mobile-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}
.st-mobile-trust__item svg { color: var(--st-lime-hover, #74c41f); flex-shrink: 0; }

/* Blur the page behind the open drawer, so the nav holds focus.
   No JS needed: the drawer lives inside <header>, so :has() on the
   body can reach the rest of the page. */
/* the drawer's open class is .active, set by the parent theme's script.
   .is-open is kept too in case that ever changes back. */
body:has(.st-mobile-menu.active) .site-main,
body:has(.st-mobile-menu.active) .site-footer,
body:has(.st-mobile-menu.active) footer,
body:has(.st-mobile-menu.is-open) .site-main,
body:has(.st-mobile-menu.is-open) .site-footer,
body:has(.st-mobile-menu.is-open) footer {
    filter: blur(4px);
    pointer-events: none;
    transition: filter 0.2s ease;
}
/* Product finder icon in the mobile bar (Dom item 5). Hidden on desktop,
   where .st-finder-btn already carries the full label. */
.st-finder-icon { display: none; }
@media (max-width: 1024px) {
    .st-finder-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-right: 2px;
        color: var(--st-navy);
        text-decoration: none;
    }
}

/* News pagination (Dom item 16). Ships with the shortcode so the
   component is self-contained. */
.st-news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 8px;
}
.st-news-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.st-news-page:hover { border-color: var(--st-lime-hover, #74c41f); color: #fff; }
.st-news-page.is-current {
    background: var(--st-lime-hover, #74c41f);
    border-color: var(--st-lime-hover, #74c41f);
    color: var(--st-navy);
}
@media (max-width: 600px) {
    .st-news-page { min-width: 38px; padding: 9px 11px; font-size: 0.8rem; }
}
