/**
 * WooCommerce Euro4x4parts-Style Shop Stylesheet
 * Redesigns the WooCommerce archive loops to match the Euro4x4parts layout.
 * Colors: Navy Blue (#002147) and Highlight Orange (#ff6f00) with clean light-gray borders.
 */

/* Scope modifications to shop archive page, product category page, product tag pages, and the homepage when set to static shop */
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.home {
    background-color: #f8fafc !important; /* Light slate background similar to premium catalogs */
}

body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.home ul.products {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body.home ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Light slate border */
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover,
body.home ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    border-color: #002147 !important; /* Matches active Euro4x4parts Navy */
}

/* Clear standard Astra or WooCommerce animations / badges that break alignment */
body.post-type-archive-product ul.products li.product a,
body.tax-product_cat ul.products li.product a,
body.home ul.products li.product a {
    text-decoration: none !important;
}
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__link,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__link,
body.home ul.products li.product .woocommerce-loop-product__link {
    display: block;
    margin-bottom: 0 !important;
}

/* Remove default theme WooCommerce loop components that we override */
body.post-type-archive-product ul.products li.product > a img,
body.post-type-archive-product ul.products li.product > .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product > .price,
body.post-type-archive-product ul.products li.product > .button,
body.post-type-archive-product ul.products li.product > .added_to_cart,
body.tax-product_cat ul.products li.product > a img,
body.tax-product_cat ul.products li.product > .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product > .price,
body.tax-product_cat ul.products li.product > .button,
body.tax-product_cat ul.products li.product > .added_to_cart,
body.home ul.products li.product > a img,
body.home ul.products li.product > .woocommerce-loop-product__title,
body.home ul.products li.product > .price,
body.home ul.products li.product > .button,
body.home ul.products li.product > .added_to_cart {
    display: none !important;
}

/* Main row flex container */
.msc-product-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    align-items: center; /* Vertically centered for clean list view */
}

/* Columns styling */

/* Image Col - Compact 90px width */
.msc-product-col-image {
    flex: 0 0 90px;
    max-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: #ffffff;
    box-sizing: border-box;
}

.msc-product-col-image img {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.msc-product-col-image:hover img {
    transform: scale(1.04);
}

/* Details Col */
.msc-product-col-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Brand badge in Euro4x4parts style */
.msc-product-brand {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
}

.msc-product-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

.msc-product-title a {
    color: #0f172a !important; /* Deep slate blue */
    transition: color 0.15s ease;
}

.msc-product-title a:hover {
    color: #002147 !important; /* Hovers to dark navy */
}

/* Identifiers: SKU / Mfr Part */
.msc-product-identifiers {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.msc-id-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

.msc-product-identifiers strong {
    color: #334155;
    font-weight: 600;
}

/* Specs layout - High Density dashed separator */
.msc-product-specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px 12px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 6px;
    margin-top: 4px;
}

.msc-spec-item {
    font-size: 11px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.msc-spec-item strong {
    color: #0f172a;
    font-weight: 600;
}

/* Pricing Col - Compacted */
.msc-product-col-pricing {
    flex: 0 0 150px;
    max-width: 150px;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.msc-price-wrapper {
    margin-bottom: 4px;
}

.msc-price-wrapper .price {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a !important; /* Bold solid dark price */
    line-height: 1.2;
    display: inline-block;
}

/* Override default WooCommerce price formats in our wrapper */
.msc-price-wrapper .price del {
    font-size: 12px;
    color: #94a3b8;
    margin-right: 4px;
    font-weight: 400;
    text-decoration: line-through;
}

.msc-price-wrapper .price ins {
    background: none;
    text-decoration: none;
    font-weight: 800;
}

.msc-price-unit {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
    margin-left: 2px;
    display: inline-block;
}

/* Stock status styling */
.msc-stock-status {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.msc-stock-status.in-stock {
    color: #15803d; /* Green */
}

.msc-stock-status.out-of-stock {
    color: #b91c1c; /* Red */
}

/* Icons */
.msc-stock-status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.msc-stock-status.in-stock::before {
    background-color: #22c55e;
}

.msc-stock-status.out-of-stock::before {
    background-color: #ef4444;
}

/* Actions Col - Compacted */
.msc-product-col-actions {
    flex: 0 0 160px;
    max-width: 160px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    gap: 6px;
}

/* Quantity input styling */
.msc-qty-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
    background: #ffffff;
}

.msc-qty-btn {
    flex: 0 0 28px;
    width: 28px;
    height: 100%;
    border: none;
    background: #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.15s ease;
}

.msc-qty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.msc-qty-input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

/* Remove spin buttons Chrome/Safari */
.msc-qty-input::-webkit-outer-spin-button,
.msc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Euro4x4parts Navy Blue buttons with Orange hover highlights */
.msc-product-col-actions .button,
.msc-product-col-actions .added_to_cart,
.msc-product-col-actions .quote-btn-b2b {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 4px !important;
    text-align: center;
    box-sizing: border-box;
    border: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.msc-product-col-actions .button.add_to_cart_button,
.msc-product-col-actions .button.product_type_simple,
.msc-product-col-actions .button.quote-btn-b2b {
    background-color: #002147 !important; /* Euro4x4parts Dark Navy */
    color: #ffffff !important;
    cursor: pointer;
}

.msc-product-col-actions .button.add_to_cart_button:hover,
.msc-product-col-actions .button.product_type_simple:hover,
.msc-product-col-actions .button.quote-btn-b2b:hover {
    background-color: #ff6f00 !important; /* Euro4x4parts Highlight Orange */
    color: #ffffff !important;
}

.msc-product-col-actions .button.product_type_variable,
.msc-product-col-actions .button.product_type_grouped,
.msc-product-col-actions .button.product_type_external {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.msc-product-col-actions .button.product_type_variable:hover,
.msc-product-col-actions .button.product_type_grouped:hover,
.msc-product-col-actions .button.product_type_external:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* AJAX loading spinner styling inside button */
.msc-product-col-actions .button.loading {
    opacity: 0.75;
    position: relative;
}

.msc-product-col-actions .button.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 6px;
    animation: msc-spin 0.8s linear infinite;
}

.msc-product-col-actions .added_to_cart {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
    text-decoration: none !important;
    margin-top: 2px;
}

.msc-product-col-actions .added_to_cart:hover {
    background-color: #bbf7d0 !important;
}

@keyframes msc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet view (Under 992px) */
@media screen and (max-width: 991px) {
    .msc-product-row {
        flex-wrap: wrap;
        padding: 12px;
    }

    .msc-product-col-image {
        flex: 0 0 80px;
        max-width: 80px;
        margin-right: 12px;
    }

    .msc-product-col-image img {
        max-height: 60px;
    }

    .msc-product-col-details {
        flex: 1;
        padding-right: 0;
    }

    .msc-product-col-pricing {
        flex: 0 0 50%;
        max-width: 50%;
        border-left: none;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        padding: 12px 12px 0 0;
        margin-top: 12px;
        justify-content: flex-start;
    }

    .msc-product-col-actions {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 12px;
        border-top: 1px solid #e2e8f0;
        margin-top: 12px;
        justify-content: flex-start;
    }
}

/* Mobile view (Under 576px) */
@media screen and (max-width: 575px) {
    .msc-product-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .msc-product-col-image {
        flex: 0 0 auto;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .msc-product-col-image img {
        max-height: 80px;
    }

    .msc-product-col-details {
        padding-right: 0;
    }

    .msc-product-specs-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .msc-product-col-pricing {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 12px 0 0 0;
        border-top: 1px solid #e2e8f0;
        margin-top: 12px;
    }

    .msc-product-col-actions {
        flex: 0 0 auto;
        max-width: 100%;
        padding-left: 0;
        border-top: none;
        margin-top: 10px;
    }
}

/* ==========================================================================
   Euro4x4parts Custom Header & Footer Styles
   ========================================================================== */

/* Hide Astra Default Theme Header and Footer */
header#masthead,
#ast-mobile-header,
footer.site-footer,
#colophon {
    display: none !important;
}

/* Top bar banner */
.fj40-top-bar {
    background-color: #00152f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.fj40-top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* Main header row */
.fj40-main-header {
    background-color: #002147;
    color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.fj40-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Logo styling */
.fj40-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}
.fj40-logo span {
    transition: opacity 0.2s ease;
}
.fj40-logo:hover span {
    opacity: 0.9;
}
.logo-white {
    color: #ffffff !important;
}
.logo-red {
    color: #ffffff !important;
    background-color: #e03a3a;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 0 3px;
    font-weight: 900;
}

/* Search Bar layout */
.fj40-search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
    border: 1px solid #cbd5e1;
    transition: box-shadow 0.2s ease;
    margin: 0;
}
.fj40-search-form:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.4);
    border-color: #ff6f00;
}
.fj40-search-dropdown {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
}
.fj40-search-dropdown svg {
    color: #64748b;
}
.fj40-search-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    height: 100%;
    padding: 0 12px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    background: transparent !important;
}
.fj40-search-submit {
    background-color: #ff6f00 !important;
    color: #ffffff !important;
    border: none !important;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0 !important;
}
.fj40-search-submit:hover {
    background-color: #e06200 !important;
}

/* Info and user items */
.fj40-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.fj40-info-item {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}
.fj40-info-label {
    color: #94a3b8;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
}
.fj40-info-value {
    color: #ffffff;
    font-weight: 700;
}
.fj40-support-btn,
.fj40-cart-link,
.fj40-account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.fj40-support-btn {
    border-color: rgba(255, 255, 255, 0.1);
}
.fj40-support-btn svg {
    color: #ff6f00;
    flex-shrink: 0;
}
.fj40-support-btn:hover {
    border-color: #ff6f00;
}
.fj40-cart-link:hover,
.fj40-account-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ff6f00 !important;
}
.fj40-cart-count {
    background-color: #ff6f00;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Secondary Navbar styling */
.fj40-navbar {
    background-color: #0b1a30;
    border-bottom: 3px solid #ff6f00;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.fj40-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.fj40-nav-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
}
.fj40-nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}
.fj40-nav-menu li a {
    display: block;
    padding: 14px 18px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.15s ease;
    letter-spacing: 0.5px;
}
.fj40-nav-menu li a:hover,
.fj40-nav-menu li a.active {
    background-color: #ff6f00;
    color: #ffffff !important;
}

/* Dropdown Menu Styles */
.fj40-nav-menu li.fj40-dropdown {
    position: relative;
}
.fj40-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0b1a30;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.25);
    z-index: 9999;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 3px solid #ff6f00;
}
.fj40-dropdown-menu li {
    width: 100% !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #14253d;
}
.fj40-dropdown-menu li::before,
.fj40-dropdown-menu li::after {
    content: none !important;
    display: none !important;
}
.fj40-dropdown-menu li:last-child {
    border-bottom: none;
}
.fj40-dropdown-menu li a {
    display: block;
    padding: 12px 18px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    text-align: left;
    transition: background-color 0.15s ease;
    border: none !important;
    background: none !important;
}
.fj40-dropdown-menu li a:hover {
    background-color: #ff6f00 !important;
    color: #ffffff !important;
}
.fj40-nav-menu li.fj40-dropdown:hover .fj40-dropdown-menu,
.fj40-nav-menu li.fj40-dropdown.open .fj40-dropdown-menu {
    display: block;
}
.fj40-caret {
    font-size: 9px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Footer Section styling */
.fj40-custom-footer-wrap {
    background-color: #002147;
    color: #cbd5e1;
    padding: 50px 0 30px 0;
    margin-top: 60px;
    border-top: 4px solid #ff6f00;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.fj40-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.fj40-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.fj40-footer-col {
    flex: 1;
    min-width: 220px;
}
.fj40-footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6f00;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.fj40-footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.fj40-footer-col ul li {
    margin-bottom: 10px !important;
    padding: 0 !important;
}
.fj40-footer-col ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.15s ease;
}
.fj40-footer-col ul li a:hover {
    color: #ffffff !important;
}
.fj40-footer-col p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #cbd5e1;
}
.fj40-contact-phone {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 4px;
    display: inline-block;
    border-left: 3px solid #ff6f00;
}
.fj40-contact-phone span {
    display: block;
    font-size: 10px;
    color: #ff6f00;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.fj40-contact-phone strong {
    font-size: 18px;
    color: #ffffff;
}
.fj40-social-block {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 4px;
    display: inline-block;
    border-left: 3px solid #ff6f00;
    margin-top: 10px;
    min-width: 220px;
}
.fj40-social-block > span {
    display: block;
    font-size: 10px;
    color: #ff6f00;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.fj40-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fj40-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}
.fj40-social-link:hover {
    color: #ff6f00 !important;
}
.fj40-social-link svg {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
}
.fj40-social-link:hover svg {
    color: #ff6f00;
    transform: scale(1.1);
}
.fj40-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #94a3b8;
}
.fj40-footer-bottom p {
    margin: 0;
}
.fj40-footer-links a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.fj40-footer-links a:hover {
    color: #ffffff !important;
}

/* Responsiveness overrides */
@media (max-width: 991px) {
    .fj40-header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .fj40-logo {
        justify-content: center;
    }
    .fj40-search-form {
        max-width: 100%;
    }
    .fj40-header-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    .fj40-nav-menu {
        justify-content: center;
    }
}
@media (max-width: 575px) {
    .fj40-nav-menu li a {
        padding: 10px 12px;
        font-size: 11px;
    }
    .fj40-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.hide-mobile {
    display: none !important;
}
@media (min-width: 576px) {
    .hide-mobile {
        display: block !important;
    }
}
.hide-tablet {
    display: none !important;
}
@media (min-width: 992px) {
    }
}

/* ==========================================================================
   FJ40 Parts Custom B2B Homepage Landing Page Styles
   ========================================================================== */

/* Main Container */
.fj40-home-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

/* 1. Hero Section */
.fj40-hero-section {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 90px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.fj40-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.fj40-hero-content {
    flex: 1;
    max-width: 650px;
}
.fj40-hero-tagline {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff6f00; /* High energy orange highlight */
    margin-bottom: 12px;
    display: inline-block;
}
.fj40-hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 20px 0 !important;
}
.fj40-hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 35px;
}
.fj40-hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.fj40-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.25s ease;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}
.fj40-btn-primary {
    background-color: #ff6f00;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.3);
}
.fj40-btn-primary:hover {
    background-color: #e06200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}
.fj40-btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.fj40-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.fj40-hero-visual {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fj40-hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 2. Categories Grid Section */
.fj40-categories-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}
.fj40-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.fj40-section-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6f00;
    margin-bottom: 8px;
    display: inline-block;
}
.fj40-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0 !important;
}
.fj40-section-desc {
    font-size: 15px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}
.fj40-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.fj40-cat-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fj40-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #ff6f00;
}
.fj40-cat-image-wrapper {
    background-color: #ffffff;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}
.fj40-cat-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.fj40-cat-card:hover .fj40-cat-image {
    transform: scale(1.05);
}
.fj40-cat-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fj40-cat-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0 !important;
}
.fj40-cat-info p {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 20px;
    flex: 1;
}
.fj40-cat-link-text {
    font-size: 12px;
    font-weight: 800;
    color: #ff6f00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}
.fj40-cat-card:hover .fj40-cat-link-text {
    transform: translateX(4px);
}

/* 3. B2B Logistics Section */
.fj40-b2b-section {
    background-color: #0b1a30;
    color: #ffffff;
    padding: 80px 20px;
    margin: 80px 0;
    border-left: 5px solid #ff6f00;
}
.fj40-b2b-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}
.fj40-b2b-content {
    flex: 1;
    min-width: 300px;
    max-width: 680px;
}
.fj40-b2b-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6f00;
    margin-bottom: 10px;
    display: inline-block;
}
.fj40-b2b-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0 !important;
}
.fj40-b2b-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 30px;
}
.fj40-b2b-benefits {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
}
.fj40-b2b-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px !important;
    font-size: 14px;
    color: #cbd5e1;
}
.fj40-b2b-benefits li svg {
    color: #ff6f00;
    flex-shrink: 0;
}
.fj40-btn-accent {
    background-color: #002147;
    color: #ffffff !important;
    border: 1px solid #ff6f00;
}
.fj40-btn-accent:hover {
    background-color: #ff6f00;
    border-color: #ff6f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}
.fj40-b2b-features-card {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.fj40-feature-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 25px;
    transition: background-color 0.25s ease;
}
.fj40-feature-box:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
.fj40-feature-num {
    font-size: 12px;
    font-weight: 800;
    color: #ff6f00;
    display: block;
    margin-bottom: 8px;
}
.fj40-feature-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0 !important;
}
.fj40-feature-box p {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

/* 4. Trust Badges Section */
.fj40-trust-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 60px;
}
.fj40-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.fj40-trust-badge {
    text-align: center;
    padding: 10px;
}
.fj40-badge-icon {
    width: 50px;
    height: 50px;
    background-color: #f1f5f9;
    color: #002147;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all 0.25s ease;
}
.fj40-trust-badge:hover .fj40-badge-icon {
    background-color: #ff6f00;
    color: #ffffff;
    transform: scale(1.05);
}
.fj40-trust-badge h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0 !important;
}
.fj40-trust-badge p {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* Brand Identity specific stylesheet cleanups and logo tuning */
.logo-main {
    color: #ffffff !important;
    background-color: #ff6f00;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 3px;
    font-weight: 900;
}
.logo-sub {
    color: #ffffff !important;
    font-weight: 400;
}

/* Responsive adjustments for B2B homepage */
@media (max-width: 991px) {
    .fj40-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .fj40-hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .fj40-hero-ctas {
        justify-content: center;
    }
    .fj40-hero-visual {
        max-width: 400px;
        margin-top: 30px;
    }
    .fj40-b2b-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .fj40-b2b-features-card {
        flex: 1;
    }
}
@media (max-width: 575px) {
    .fj40-hero-title {
        font-size: 28px;
    }
    .fj40-hero-subtitle {
        font-size: 15px;
    }
    .fj40-btn {
        width: 100%;
    }
    .fj40-categories-section {
        margin: 50px auto;
    }
    .fj40-b2b-section {
        padding: 50px 20px;
        margin: 50px 0;
    }
}

/* Custom Accordion (Details/Summary) Styling for FAQ Page */
.wp-block-details {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wp-block-details:hover {
    border-color: #002147 !important;
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.04) !important;
}

.wp-block-details[open] {
    border-color: #ff6f00 !important;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.05) !important;
}

.wp-block-details summary {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #002147 !important;
    padding: 16px 20px !important;
    cursor: pointer !important;
    user-select: none !important;
    list-style: none !important; /* Hide default list marker */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    outline: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

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

.wp-block-details summary::after {
    content: "+" !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.wp-block-details[open] summary {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #ff6f00 !important;
}

.wp-block-details[open] summary::after {
    content: "−" !important;
    transform: rotate(180deg) !important;
    color: #ff6f00 !important;
}

.wp-block-details .wp-block-details__content,
.wp-block-details p {
    padding: 18px 20px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    background-color: #fafbfc !important;
}
