/*
 Theme Name:   STK Performance
 Theme URI:    https://stkmx.ormsy.co.za
 Description:  Astra child theme for STK Performance - motorsport parts store
 Author:       OpenRoad Media
 Template:     astra
 Version:      2.4.10-mx8
 Text Domain:  stk-performance
*/

/* ==========================================================================
   Custom Footer
   ========================================================================== */

.stk-footer {
    background: #0a0a1a;
    color: #aab;
    font-size: 14px;
    line-height: 1.7;
}

.stk-footer a {
    color: #ccd;
    text-decoration: none;
    transition: color 0.2s;
}

.stk-footer a:hover {
    color: #fff;
}

/* ── Main 3-column area ── */
.stk-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 50px;
}

/* Column 1: About */
.stk-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.stk-footer-logo img {
    height: 80px; /* stkmx: transparent México logo (theme mod stk_footer_logo) */
    width: auto;
}

.stk-footer-about p {
    margin: 0 0 20px;
    color: #889;
}

.stk-footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stk-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
}

.stk-footer-social a:hover {
    background: #3b82f6;
}

.stk-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stk-footer-legal a {
    color: #889;
    font-size: 13px;
}

.stk-footer-legal a:hover {
    color: #fff;
}

/* Column 2: Latest Posts */
.stk-footer-posts h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.stk-footer-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stk-footer-posts li {
    margin-bottom: 12px;
}

.stk-footer-posts li a {
    color: #aab;
    font-size: 14px;
    line-height: 1.5;
}

.stk-footer-posts li a:hover {
    color: #fff;
}

/* Column 3: Navigation */
.stk-footer-nav {
    text-align: center;
}

.stk-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stk-footer-menu li {
    border-bottom: 1px solid #1a1a2e;
}

.stk-footer-menu li:first-child {
    border-top: 1px solid #1a1a2e;
}

.stk-footer-menu li a {
    display: block;
    padding: 4px 0;
    color: #ccd;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.stk-footer-menu li a:hover {
    color: #fff;
}

/* ── Bottom bar ── */
.stk-footer-bottom {
    border-top: 1px solid #1a1a2e;
    padding: 24px 30px;
    text-align: center;
}

.stk-footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
}

.stk-footer-payments img {
    height: 32px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.stk-footer-payments img:hover {
    opacity: 1;
}

.stk-footer-copy {
    margin: 0;
    color: #556;
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .stk-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 40px 24px 30px;
    }

    .stk-footer-nav {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .stk-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px 20px;
    }

    .stk-footer-nav {
        grid-column: auto;
        text-align: left;
    }

    .stk-footer-payments {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stk-footer-payments img {
        height: 26px;
    }
}

/* ==========================================================================
   Contact Us Page
   ========================================================================== */

/* Short blue separator line */
.stk-short-sep {
    width: 50px !important;
    border: none !important;
    height: 3px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Business Hours Table */
.stk-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.stk-hours-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.stk-hours-table tr:first-child td {
    border-top: 1px solid #e8e8e8;
}

.stk-hours-table td:first-child {
    font-weight: 600;
    color: #1d2327;
}

.stk-hours-table td:last-child {
    text-align: right;
    color: #555;
}

.stk-hours-closed {
    background: #1a1a2e;
}

.stk-hours-closed td {
    color: #fff !important;
    border-color: #1a1a2e !important;
    font-weight: 600;
}

/* Contact Items */
.stk-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}

.stk-contact-item svg {
    flex-shrink: 0;
}

/* Contact Social Icons */
.stk-contact-social {
    display: flex;
    gap: 10px;
}

.stk-contact-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1d2327;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.stk-contact-social a:hover {
    background: #2563eb;
}

/* FAQ Details/Accordion */
.wp-block-details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.wp-block-details summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: #1d2327;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    content: "›";
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s;
    color: #888;
}

.wp-block-details[open] summary::after {
    transform: rotate(90deg);
}

.wp-block-details p {
    padding: 0 20px 16px;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================================
   Mobile Menu Fix
   ========================================================================== */

.ast-mobile-header-wrap .ast-mobile-header-content {
    background: #0a0a1a !important;
}

.ast-mobile-header-wrap .ast-mobile-header-content .menu-link {
    border-color: #1a1a2e !important;
}

/* ==========================================================================
   Emoji SVG Safety Net
   WordPress emoji images missing the .emoji class render at full SVG size.
   ========================================================================== */

img[src*="s.w.org/images/core/emoji"] {
    display: inline !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
}

/* ==========================================================================
   Valve Failure Analysis Page
   ========================================================================== */

/* Full-width section bands */
.stk-vfa-section {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 60px 30px;
    max-width: 100vw !important;
}

.stk-vfa-section > .wp-block-group__inner-container,
.stk-vfa-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stk-vfa-section.stk-vfa-dark {
    background: #0a0a1a;
    color: #e0e0e8;
}

.stk-vfa-section.stk-vfa-dark h2,
.stk-vfa-section.stk-vfa-dark h3 {
    color: #fff;
}

.stk-vfa-section.stk-vfa-dark strong {
    color: #fff;
}

.stk-vfa-section.stk-vfa-grey {
    background: #f4f4f6;
}

/* Section header with accent line */
.stk-vfa-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

.stk-vfa-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin-top: 12px;
}

.stk-vfa-section.stk-vfa-dark h2::after {
    background: #3b82f6;
}

/* Failure cards */
.stk-vfa-card {
    background: #fff;
    border: 1px solid #e0e0e4;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-card {
    background: #12122a;
    border-color: #1e1e3a;
}

.stk-vfa-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
}

.stk-vfa-card .wp-block-image {
    margin-bottom: 0 !important;
}

.stk-vfa-card .wp-block-image img {
    border-radius: 8px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.stk-vfa-card ul {
    padding-left: 18px;
}

.stk-vfa-card li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-card li {
    color: #b0b0c0;
}

/* Section intro text */
.stk-vfa-intro {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 30px !important;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-intro {
    color: #9999b0;
}

/* Hero banner */
.stk-vfa-hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    background: #0a0a1a;
    padding: 70px 30px;
    text-align: center;
}

.stk-vfa-hero h1 {
    color: #fff !important;
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px !important;
}

.stk-vfa-hero p {
    color: #9999b0;
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto !important;
    line-height: 1.7;
}

.stk-vfa-hero .stk-vfa-accent {
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 0 auto 20px;
}

/* CTA section */
.stk-vfa-cta {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    background: #0a0a1a;
    padding: 60px 30px;
    text-align: center;
}

.stk-vfa-cta h2 {
    color: #fff !important;
    font-size: 26px;
    text-align: center;
}

.stk-vfa-cta h2::after {
    margin-left: auto;
    margin-right: auto;
}

.stk-vfa-cta p {
    color: #9999b0;
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.7;
}

.stk-vfa-cta .wp-block-buttons {
    justify-content: center;
    margin-top: 24px;
}

.stk-vfa-cta .wp-block-button__link {
    background: #2563eb !important;
    border-radius: 6px;
    padding: 14px 28px;
    font-weight: 600;
    transition: background 0.2s;
}

.stk-vfa-cta .wp-block-button__link:hover {
    background: #3b82f6 !important;
}

/* Diagram cards — taller images */
.stk-vfa-card.stk-vfa-diagram .wp-block-image img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #f8f8fa;
    padding: 16px;
    border: 1px solid #e8e8ec;
}

.stk-vfa-section.stk-vfa-dark .stk-vfa-card.stk-vfa-diagram .wp-block-image img {
    background: #1a1a32;
    border-color: #2a2a48;
}

/* Responsive */
@media (max-width: 768px) {
    .stk-vfa-section {
        padding: 40px 20px;
    }

    .stk-vfa-hero {
        padding: 50px 20px;
    }

    .stk-vfa-hero h1 {
        font-size: 28px;
    }

    .stk-vfa-section h2 {
        font-size: 22px;
    }

    .stk-vfa-card {
        padding: 20px;
    }
}


/* ==========================================================================
   Homepage Sections
   ========================================================================== */

/* ── Full-width section bands ── */
.stk-hp-section {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.ast-page-builder-template .stk-hp-section,
.page-builder .stk-hp-section,
.ast-plain-container .stk-hp-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.stk-hp-section > .wp-block-group__inner-container,
.stk-hp-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.stk-hp-dark {
    background: #0a0a1a;
}

.stk-hp-grey {
    background: #f4f4f6;
}

.stk-hp-cta {
    background: #0a0a1a;
}

/* ── Hero ── */
.stk-hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

.ast-page-builder-template .stk-hero,
.page-builder .stk-hero,
.ast-plain-container .stk-hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.stk-hero h1 {
    max-width: 700px;
}

/* ── Section titles ── */
.stk-hp-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
}

.stk-hp-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #2563eb;
    margin: 14px auto 0;
}

.stk-hp-subtitle {
    color: #666;
    font-size: 16px;
}

.stk-hp-subtitle-dark {
    color: #9999b0 !important;
}

/* ── Stats bar ── */
.stk-hp-stats {
    background: #0a0a1a !important;
    margin-top: -1px !important;
}

.stk-stat-box {
    text-align: center;
    padding: 40px 20px !important;
    border-right: 1px solid #1a1a2e;
}

.stk-stat-box:last-child {
    border-right: none;
}

.stk-stat-num {
    color: #2563eb !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.stk-stat-label {
    color: #9999b0 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
}

/* ── Category cards ── */
.stk-cat-card {
    min-width: 0;
}

.stk-cat-inner {
    background: #0a0a1a;
    border-radius: 10px;
    padding: 30px 24px !important;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: 1px solid #1a1a2e;
}

.stk-cat-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.stk-cat-name {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.stk-cat-name a {
    color: #fff !important;
    text-decoration: none !important;
}

.stk-cat-name a:hover {
    color: #2563eb !important;
}

.stk-cat-count {
    color: #2563eb !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ── Vehicle make cards ── */
.stk-make-card {
    min-width: 0;
}

.stk-make-card {
    background: #12122a;
    border: 1px solid #1e1e3a;
    border-radius: 8px;
    padding: 24px 16px !important;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stk-make-card:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
}

.stk-make-name {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.stk-make-name a {
    color: #fff !important;
    text-decoration: none !important;
}

.stk-make-name a:hover {
    color: #2563eb !important;
}

.stk-make-count {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* ── Why STK cards ── */
.stk-why-card {
    text-align: center;
    padding: 30px 20px !important;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stk-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stk-why-icon {
    margin-bottom: 12px !important;
    line-height: 1 !important;
}

.stk-why-name {
    margin-bottom: 12px !important;
}

.stk-why-desc {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ── Product grids on dark bg ── */
.stk-hp-dark .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
}

.stk-hp-dark .woocommerce ul.products li.product .price {
    color: #2563eb;
}

.stk-hp-dark .woocommerce ul.products li.product .price del {
    color: #666;
}

.stk-hp-dark .woocommerce ul.products li.product .button {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.stk-hp-dark .woocommerce ul.products li.product .button:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* ── Hide "Home" page title on front page ── */
.home .entry-title,
.page-id-6679 .entry-title {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .stk-hero h1 {
        font-size: 2.2rem !important;
    }

    .stk-hp-title {
        font-size: 26px;
    }

    .stk-stat-box {
        padding: 24px 12px !important;
        border-right: none;
        border-bottom: 1px solid #1a1a2e;
    }

    .stk-stat-num {
        font-size: 28px !important;
    }

    .stk-make-grid .wp-block-column {
        flex-basis: 48% !important;
    }
}

@media (max-width: 600px) {
    .stk-hero {
        min-height: 480px !important;
        padding-top: 120px !important;
    }

    .stk-hero h1 {
        font-size: 1.8rem !important;
    }

    .stk-hp-section > .wp-block-group__inner-container,
    .stk-hp-section > * {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .stk-hp-title {
        font-size: 22px;
    }

    .stk-cat-grid,
    .stk-make-grid {
        flex-wrap: wrap;
    }

    .stk-cat-grid .wp-block-column,
    .stk-make-grid .wp-block-column {
        flex-basis: 100% !important;
    }

    .stk-why-grid {
        flex-wrap: wrap;
    }

    .stk-why-grid .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ==========================================================================
   Single product — mobile buy box                        (added 2026-07-21)
   --------------------------------------------------------------------------
   Two problems on phones:
     1. "Add to basket" rendered 131x36px — under the 44px minimum tap target.
     2. On 375x667 handsets the button landed at y=598 against a ~557px
        usable fold, so it was never visible without scrolling.
   Fix: trim the run-up above the buy box and give the button real size.
   Desktop layout is untouched.
   ========================================================================== */
@media (max-width: 768px) {

    /* Pull the buy box up so it clears the fold on small handsets.
       !important throughout: Astra sets these margins with higher
       specificity, so plain child-theme rules lose. */
    .single-product .woocommerce-product-gallery {
        margin-bottom: 12px !important;
    }

    /* :not(.zoomImg) — the zoom plugin injects an oversized overlay img.
       Root cause of the squish bug: Astra's own woocommerce-grid.min.css
       ships ".woocommerce-js div.product div.images img { width:100%;
       height:auto }", which outranks this rule on raw CSS specificity
       (three classes + three elements vs. our three classes + one element).
       It's been winning since this block was written on 2026-07-21 — just
       never visibly on a near-square photo before. object-fit:contain plus
       !important is what actually beats it.           (fixed 2026-09-16) */
    .single-product .woocommerce-product-gallery__image img:not(.zoomImg) {
        width: 100% !important;
        height: 190px !important;
        object-fit: contain !important;
        margin-left: auto;
        margin-right: auto;
    }

    .single-product .woocommerce-breadcrumb {
        margin-bottom: 8px !important;
    }

    .single-product .entry-summary .product_title {
        margin-bottom: 4px !important;
    }

    .single-product .entry-summary .price {
        margin-bottom: 10px !important;
    }

    /* Quantity + full-width Add to Cart on one row, both >= 48px tall.
       Scoped away from variable/grouped forms, whose markup is a table. */
    .single-product form.cart:not(.variations_form):not(.grouped_form) {
        display: flex;
        align-items: stretch;
        gap: 10px;
    }

    .single-product form.cart:not(.variations_form):not(.grouped_form) .quantity {
        flex: 0 0 auto;
        margin: 0;
    }

    .single-product form.cart:not(.variations_form):not(.grouped_form) .quantity input.qty {
        height: 48px;
        min-height: 48px;
        width: 68px;
    }

    .single-product form.cart:not(.variations_form):not(.grouped_form) .single_add_to_cart_button {
        flex: 1 1 auto;
        width: auto;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;   /* 16px also stops iOS zooming the viewport */
    }
}

/* ==========================================================================
   Astra sticky add-to-cart bar — keep it to just qty + Add to basket
   --------------------------------------------------------------------------
   The bar re-renders every woocommerce_after_add_to_cart_form hook (the
   WhatsApp button, the payment-promo logos, the email fallback link), which
   turned a 60px bar into a cluttered multi-row mess. Joe wants it minimal —
   just the buy control, nothing else.                (updated 2026-09-16)
   ========================================================================== */
.ast-sticky-add-to-cart-action-wrap .rf-whatsapp-order-wrap,
.ast-sticky-add-to-cart-action-wrap .stk-payment-promo,
.ast-sticky-add-to-cart-action-wrap .stk-email-fallback {
    display: none !important;
}

/* ==========================================================================
   Modern single-product buy box                          (added 2026-09-16)
   ========================================================================== */

/* Category pill above the title */
.single-product .stk-product-pill {
    display: inline-block;
    background: #f3f4f6;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 12px;
}
.single-product .stk-product-pill:hover {
    background: var(--ast-global-color-0, #0084d6);
    color: #fff;
}

.single-product .summary .product_title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

/* Stock pill (in-stock / out-of-stock / on-backorder / coming-soon) */
.single-product .ast-stock-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.single-product .ast-stock-detail::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    flex: 0 0 auto;
}
.single-product .ast-stock-detail .ast-stock-avail {
    display: none;
}
.single-product .ast-stock-detail .stock {
    color: #166534;
    font-weight: 600;
}
.single-product .ast-stock-detail:has(.stock.out-of-stock) {
    background: #fef2f2;
}
.single-product .ast-stock-detail:has(.stock.out-of-stock)::before {
    background: #dc2626;
}
.single-product .ast-stock-detail:has(.stock.out-of-stock) .stock {
    color: #991b1b;
}
.single-product .ast-stock-detail:has(.stock.on-backorder),
.single-product .ast-stock-detail:has(.stock.coming-soon) {
    background: #fffbeb;
}
.single-product .ast-stock-detail:has(.stock.on-backorder)::before,
.single-product .ast-stock-detail:has(.stock.coming-soon)::before {
    background: #d97706;
}
.single-product .ast-stock-detail:has(.stock.on-backorder) .stock,
.single-product .ast-stock-detail:has(.stock.coming-soon) .stock {
    color: #92400e;
}

/* SKU / category meta row */
.single-product .product_meta {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
}
.single-product .product_meta > span {
    display: inline-block;
    margin-right: 14px;
}
.single-product .product_meta a {
    color: #888;
    text-decoration: underline;
}

/* Quantity stepper */
.single-product form.cart .quantity.stk-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d8dbe0;
    border-radius: 8px;
    overflow: hidden;
}
.single-product form.cart .quantity.stk-qty-stepper .qty {
    border: none;
    width: 52px;
    text-align: center;
    -moz-appearance: textfield;
}
.single-product form.cart .quantity.stk-qty-stepper .qty::-webkit-inner-spin-button,
.single-product form.cart .quantity.stk-qty-stepper .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.single-product form.cart .stk-qty-btn {
    background: #f7f8fa;
    border: none;
    width: 38px;
    font-size: 18px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.single-product form.cart .stk-qty-btn:hover {
    background: #ececef;
}

/* Add to cart button */
.single-product .single_add_to_cart_button {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: 14px;
    padding: 0 28px;
}

/* Payment-option promotion (Payflex / PayJustNow) */
.single-product .stk-payment-promo {
    margin: 14px 0 0;
}
.single-product .stk-payment-promo__label {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #888;
    font-weight: 500;
    margin-bottom: 8px;
}
.single-product .stk-payment-promo__logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.single-product .stk-payment-promo__logos img {
    display: block;
    height: 34px;
    width: auto;
    opacity: .85;
}
.single-product .stk-payment-promo__logos a:hover img {
    opacity: 1;
}

/* Email fallback link, under the WhatsApp button */
.single-product .stk-email-fallback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}
.single-product .stk-email-fallback:hover {
    color: var(--ast-global-color-0, #0084d6);
    text-decoration: underline;
}

/* Share row */
.single-product .stk-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #ececef;
}
.single-product .stk-share-label {
    font-size: 12px;
    color: #888;
    margin-right: 4px;
}
.single-product .stk-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #555;
    text-decoration: none;
}
.single-product .stk-share-icon:hover {
    background: var(--ast-global-color-0, #0084d6);
    color: #fff;
}

/* ==========================================================================
   YouTube click-to-load facade — "See STK in Action" home page section
   --------------------------------------------------------------------------
   Was a live wp:embed iframe loading automatically on every page view.
   YouTube's own "unusual traffic from your computer network" anti-bot page
   can render inside that iframe for visitors on networks YouTube has rate
   limited — nothing wrong on our end, but a real embed only has to load
   when someone actually wants to watch. This swaps in a thumbnail + play
   button; the iframe is created on click.              (added 2026-09-17)
   ========================================================================== */
.stk-yt-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}
.stk-yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.stk-yt-facade__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stk-yt-facade__play::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, .65);
    border-radius: 50%;
    transition: background .2s ease;
}
.stk-yt-facade__play svg {
    position: relative;
    z-index: 1;
}
.stk-yt-facade:hover .stk-yt-facade__play::before {
    background: #ff0000;
}
.stk-yt-facade iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   stkmx: mobile header + hero fit (Spanish headings are longer)   (2026-12-03)
   ========================================================================== */
.ast-woo-header-cart-info-wrap,
.ast-woo-header-cart-total { white-space: nowrap; }
@media (max-width: 921px) {
    .resto-hero-title { font-size: clamp(26px, 7.2vw, 44px) !important; line-height: 1.12; overflow-wrap: normal; word-break: normal; hyphens: auto; }
}
@media (max-width: 480px) {
    .ast-header-break-point .ast-woo-header-cart-info-wrap { font-size: 13px; }
}

/* ==========================================================================
   stkmx: STK Racing / driver profile (Arturo Ponce)            (2026-12-03)
   Classes: .stkr-*  — green #006847 / red #ce1126 / black / white
   ========================================================================== */
.page .entry-content > .stkr-hero:first-child { margin-top: 0; }
.stkr-hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; background: #000 center/cover no-repeat; color: #fff; margin: 0; overflow: hidden; }
.stkr-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 45%); }
.stkr-hero__inner { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: 120px 24px 70px; }
.stkr-tricolor { display: block; width: 180px; height: 6px; background: linear-gradient(90deg, #006847 0 33.3%, #fff 33.3% 66.6%, #ce1126 66.6%); margin-bottom: 22px; }
.stkr-eyebrow, .stkr-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 700; color: #22a35a; margin: 0 0 10px; }
.stkr-hero__title { font-size: clamp(48px, 9vw, 120px); line-height: .92; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: #fff; margin: 0; }
.stkr-hero__brand { font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 0; color: #fff; }
.stkr-hero__brand span { color: #ce1126; padding: 0 .35em; }
.stkr-hero__claim { font-size: clamp(20px, 2.2vw, 26px); font-style: italic; font-weight: 600; color: #e5e7eb; margin: 22px 0 0; }
.stkr-hero__intro { max-width: 640px; font-size: 17px; line-height: 1.7; color: #d1d5db; margin: 16px 0 0; }
.stkr-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stkr-btn { display: inline-block; padding: 14px 28px; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; }
.stkr-btn--primary { background: #006847; color: #fff !important; }
.stkr-btn--primary:hover { background: #004d34; }
.stkr-btn--ghost { border: 2px solid rgba(255,255,255,.7); color: #fff !important; }
.stkr-btn--ghost:hover { border-color: #ce1126; background: #ce1126; }
.stkr-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; background: #0b0b0f; border-top: 3px solid #006847; }
.stkr-facts > div { padding: 22px 24px; border-right: 1px solid #1f2430; }
.stkr-facts > div:last-child { border-right: 0; }
.stkr-facts span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8b93a3; margin-bottom: 6px; }
.stkr-facts strong { color: #fff; font-size: 16px; font-weight: 700; }
.stkr-section { max-width: 1200px; margin: 0 auto; padding: 90px 24px; }
.stkr-section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 900; text-transform: uppercase; margin: 0 0 22px; color: #111; }
.stkr-lead { font-size: 17px; color: #4b5563; max-width: 760px; }
.stkr-bio__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.stkr-bio__portrait { margin: 0; position: relative; }
.stkr-bio__portrait img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.stkr-bio__portrait::after { content: ""; position: absolute; left: -14px; top: 24px; bottom: 24px; width: 6px; background: linear-gradient(180deg, #006847 0 33.3%, #fff 33.3% 66.6%, #ce1126 66.6%); }
.stkr-bio__text p { font-size: 17px; line-height: 1.8; color: #374151; }
.stkr-record { padding-top: 40px; }
.stkr-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 36px; }
.stkr-card { background: #0f1117; color: #e5e7eb; border-radius: 8px; padding: 28px 26px; border-top: 4px solid #006847; position: relative; overflow: hidden; }
.stkr-card:nth-child(even) { border-top-color: #ce1126; }
.stkr-card__year { display: block; font-size: 44px; font-weight: 900; line-height: 1; color: #fff; opacity: .95; }
.stkr-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: #22a35a; margin: 14px 0 10px; }
.stkr-card p { font-size: 15px; line-height: 1.65; margin: 0; color: #cbd2dc; }
.stkr-partner { max-width: none; background: #000 linear-gradient(135deg, #0b0b0f 0%, #111827 100%); color: #e5e7eb; margin: 0; }
.stkr-partner > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.stkr-partner h2 { color: #fff; max-width: 900px; }
.stkr-partner__head p:not(.stkr-kicker) { font-size: 17px; line-height: 1.8; color: #cbd2dc; max-width: 860px; }
.stkr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stkr-tile { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid #262c3a; border-radius: 8px; background: rgba(255,255,255,.02); text-decoration: none !important; transition: transform .25s, border-color .25s, background .25s; }
.stkr-tile:hover { transform: translateY(-4px); border-color: #006847; background: rgba(0,104,71,.12); }
.stkr-tile h3 { color: #fff; font-size: 18px; margin: 0 0 10px; }
.stkr-tile p { color: #aab2c0; font-size: 15px; line-height: 1.6; flex: 1; margin: 0 0 18px; }
.stkr-tile__go { color: #22a35a; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.stkr-gallery__grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; margin-top: 30px; }
.stkr-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: #000; }
.stkr-gallery img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .6s; }
.stkr-gallery figure:hover img { transform: scale(1.04); }
.stkr-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 13px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.stkr-gallery__soon { border: 2px dashed #d1d5db; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #6b7280; }
.stkr-gallery__soon span { font-size: 64px; font-weight: 900; color: #e5e7eb; line-height: 1; }
.stkr-gallery__soon p { font-size: 14px; margin: 8px 0 0; }
.stkr-sources { padding-top: 20px; font-size: 14px; color: #6b7280; }
.stkr-sources h2 { font-size: 18px; letter-spacing: .1em; }
.stkr-sources ul { padding-left: 18px; margin: 0 0 14px; }
.stkr-sources li { margin: 4px 0; }
.stkr-sources a { color: #006847; }
/* subtle reveal on scroll (only where scroll-driven animations exist; respects reduced motion) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stkr-reveal { animation: stkr-up linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes stkr-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
@media (max-width: 980px) {
  .stkr-facts { grid-template-columns: repeat(2, 1fr); }
  .stkr-facts > div { border-bottom: 1px solid #1f2430; }
  .stkr-bio__grid { grid-template-columns: 1fr; gap: 36px; }
  .stkr-bio__portrait { max-width: 420px; }
  .stkr-tiles { grid-template-columns: repeat(2, 1fr); }
  .stkr-gallery__grid { grid-template-columns: 1fr 1fr; }
  .stkr-gallery__soon { grid-column: 1 / -1; min-height: 140px; }
}
@media (max-width: 600px) {
  .stkr-hero__inner { padding: 90px 20px 50px; }
  .stkr-facts { grid-template-columns: 1fr 1fr; }
  .stkr-facts > div { padding: 16px; }
  .stkr-section { padding: 60px 20px; }
  .stkr-tiles, .stkr-gallery__grid { grid-template-columns: 1fr; }
}
/* About page card for Arturo */
.stk-about-arturo .wp-block-media-text__media img { object-fit: cover; }
.stk-about-arturo .stk-about-role { color: #006847; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0; }
/* stkr: Astra full-width layout overrides — keep sections centred */
.entry-content .stkr-section,
.entry-content .stkr-hero__inner,
.entry-content .stkr-partner > * { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.entry-content .stkr-partner { max-width: none !important; padding-left: 24px; padding-right: 24px; }
.entry-content .stkr-facts { padding: 0 max(0px, calc((100% - 1200px) / 2)); }
.entry-content p.stkr-eyebrow, .entry-content p.stkr-kicker { color: #22a35a !important; }
.entry-content .stkr-partner h2 { color: #fff !important; }
.entry-content .stkr-hero__title { color: #fff !important; }
.entry-content .stkr-facts > div { width: auto !important; max-width: none !important; margin: 0 !important; justify-self: stretch !important; }
@media (max-width: 980px) { .entry-content .stkr-facts > div:last-child { grid-column: 1 / -1; } }
/* stkmx: 7 menu items (Competencia/Racing) — keep the desktop menu on one line */
@media (min-width: 922px) {
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: .7em; padding-right: .7em; }
    .ast-builder-menu-1 .main-header-menu { flex-wrap: nowrap; white-space: nowrap; }
}
@media (min-width: 922px) and (max-width: 1240px) {
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: .45em; padding-right: .45em; font-size: 15px; }
}
