/**
 * Risens Auto Parts — Additional Component Styles
 * (style.css is loaded first, this file extends it)
 */

/* ----------------------------------------------------------------
   SCROLLED HEADER STATE
---------------------------------------------------------------- */
.ra-header-wrap.is-scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

/* ----------------------------------------------------------------
   SHOP — SIDEBAR CATEGORY CHILDREN
---------------------------------------------------------------- */
.ra-widget-categories ul li.ra-active > a {
    color: var(--ra-orange);
    font-weight: 600;
}
.ra-widget-categories .ra-cat-children {
    padding-left: 14px;
    margin-top: 4px;
    border-left: 2px solid var(--ra-orange-lt);
}
.ra-widget-categories .ra-cat-children li a {
    padding: 4px 8px;
    font-size: 13px;
    color: var(--ra-gray);
    display: block;
}
.ra-widget-categories .ra-cat-children li a:hover {
    color: var(--ra-orange);
}

/* ----------------------------------------------------------------
   PRODUCT LOOP OVERRIDE for WooCommerce default HTML
---------------------------------------------------------------- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce ul.products li.product {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--ra-transition), transform var(--ra-transition);
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--ra-shadow-md);
    transform: translateY(-2px);
}
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 12px 4px;
    color: var(--ra-dark-2);
}
.woocommerce ul.products li.product .price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ra-orange);
    padding: 0 12px 8px;
}
.woocommerce ul.products li.product .price del { color: var(--ra-gray); font-size: 12px; font-weight: 400; }
.woocommerce ul.products li.product .button {
    display: block;
    margin: 0 12px 12px;
    text-align: center;
    font-size: 13px;
}

/* ----------------------------------------------------------------
   SINGLE PRODUCT — OUT OF STOCK
---------------------------------------------------------------- */
.ra-out-of-stock {
    color: #c62828;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    background: #fce4ec;
    border-radius: var(--ra-radius);
    display: inline-block;
}

/* ----------------------------------------------------------------
   ACCOUNT / CART / CHECKOUT PAGES
---------------------------------------------------------------- */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 220px;
    flex-shrink: 0;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    padding: 8px;
}
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: var(--ra-container);
    margin: 0 auto;
    padding: 24px 20px;
}

/* ----------------------------------------------------------------
   TOPBAR MENU (horizontal links)
---------------------------------------------------------------- */
.ra-topbar-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}
.ra-topbar-menu li a {
    font-size: 12.5px;
    color: rgba(255,255,255,.75);
}
.ra-topbar-menu li a:hover { color: var(--ra-orange); }

/* ----------------------------------------------------------------
   WC BREADCRUMB STYLING
---------------------------------------------------------------- */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--ra-gray);
}
.woocommerce-breadcrumb a { color: var(--ra-gray); }
.woocommerce-breadcrumb a:hover { color: var(--ra-orange); }
.woocommerce-breadcrumb .sep { margin: 0 6px; color: var(--ra-border); }

/* ----------------------------------------------------------------
   ARCHIVE PAGE TITLE
---------------------------------------------------------------- */
.ra-archive-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ra-dark);
}

/* ----------------------------------------------------------------
   WOOCOMMERCE NOTICES - ensure they're styled within our layout
---------------------------------------------------------------- */
.ra-wc-content .woocommerce-message,
.ra-wc-content .woocommerce-info,
.ra-wc-content .woocommerce-error {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--ra-radius);
    font-size: 14px;
    list-style: none;
}
.ra-wc-content .woocommerce-message { background: #e8f5e9; border-left: 4px solid #4caf50; color: #2e7d32; }
.ra-wc-content .woocommerce-info { background: #e3f2fd; border-left: 4px solid #2196f3; color: #1565c0; }
.ra-wc-content .woocommerce-error { background: #fce4ec; border-left: 4px solid #f44336; color: #b71c1c; }

/* ----------------------------------------------------------------
   RESPONSIVE SHOP GRID (wider screens get more columns)
---------------------------------------------------------------- */
@media (min-width: 1100px) {
    .ra-products-grid,
    .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) and (max-width: 1099px) {
    .ra-products-grid,
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .ra-products-grid,
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------------------------------
   DRAWER NAV SUBMENU TOGGLE
---------------------------------------------------------------- */
.ra-drawer-nav .menu-item-has-children > a {
    position: relative;
}
.ra-drawer-nav .menu-item-has-children > a::after {
    content: '▸';
    position: absolute;
    right: 20px;
    font-size: 12px;
    transition: transform var(--ra-transition);
}
.ra-drawer-nav .menu-item-has-children.is-expanded > a::after {
    transform: rotate(90deg);
}
.ra-drawer-nav .sub-menu {
    display: none;
    padding: 0;
}
.ra-drawer-nav .menu-item-has-children.is-expanded > .sub-menu {
    display: block;
}

/* ----------------------------------------------------------------
   PARTDO WIDGET PRODUCTS GRID — missing from partdo-widgets.css
   These rules come from partdo/base.css and are required by
   partdo-core Elementor widgets that use .products.column-N layout
---------------------------------------------------------------- */
.products {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    padding: 0;
    list-style: none;
}
.products:not(.klbth-slider) {
    margin-left: -5px;
    margin-right: -5px;
}
.products > *:not(.slick-list) {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
    max-width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 1.875rem;
}
/* mobile-2: 2 columns from 320px */
@media screen and (min-width: 320px) {
    .products.mobile-2 > * {
        -webkit-box-flex: 1;
            -ms-flex: 1 0 50%;
                flex: 1 0 50%;
        max-width: 50%;
    }
}
/* column-2: 2 cols from 576px */
@media screen and (min-width: 576px) {
    .products.column-2 > * {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 50%;
                flex: 0 0 50%;
        max-width: 50%;
    }
}
/* column-3: 3 cols from 768px */
@media screen and (min-width: 768px) {
    .products.column-3 > * {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 33.3333%;
                flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
/* column-4: 4 cols from 992px */
@media screen and (min-width: 992px) {
    .products.column-4 > * {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 25%;
                flex: 0 0 25%;
        max-width: 25%;
    }
}
/* column-5: 5 cols from 992px */
@media screen and (min-width: 992px) {
    .products.column-5 > * {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 20%;
                flex: 0 0 20%;
        max-width: 20%;
    }
}
/* gutter-0: remove gutters from 992px */
@media screen and (min-width: 992px) {
    .products.gutter-0 {
        margin-left: 0;
        margin-right: 0;
    }
    .products.gutter-0 > * {
        padding-left: 0;
        padding-right: 0;
    }
}
/* Override: shop page ul.products keeps its grid layout */
.woocommerce ul.products {
    display: grid;
    flex-wrap: unset;
    margin-left: 0;
    margin-right: 0;
}

/* ----------------------------------------------------------------
   FIX 3: BANNER BADGE COLOR — red → site orange
   .klbth-banner .badge uses var(--color-primary) = #EF233C (red)
   Override with our brand orange.
   Also add Bootstrap .badge base padding (not loaded in our theme).
---------------------------------------------------------------- */
.klbth-banner .badge,
.klbth-slider-wrapper .badge {
    background-color: var(--ra-orange) !important;
    color: #fff !important;
    /* Bootstrap .badge base styles — missing because we don't load Bootstrap */
    padding: 0.25em 0.65em !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    border-radius: 1.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
}
/* Also fix the btn.link text color in banners to use orange */
.klbth-banner .entry-footer .btn.link,
.klbth-banner .entry-footer .btn.link i {
    color: var(--ra-orange) !important;
}

/* ----------------------------------------------------------------
   FIX 4: LATEST DEALS — hide 5th+ item on desktop (show max 4)
---------------------------------------------------------------- */
@media (min-width: 992px) {
    .klbth-module-deals .row > .col:nth-child(n+5) {
        display: none !important;
    }
}

/* ----------------------------------------------------------------
   FIX 5: LOGOS SECTION — remove artificial min-height gap
   klbth-slider-wrapper keeps min-height:12.5rem until JS adds
   slider-loaded class; partdo custom.js not enqueued so we remove.
---------------------------------------------------------------- */
.klbth-module-logos .klbth-slider-wrapper {
    min-height: 0 !important;
}
.klbth-module-logos .klbth-slider-wrapper .klbth-slider {
    opacity: 1 !important;
    visibility: visible !important;
}

/* FIX 5b: Remove Elementor section padding between title and logos.
   Section 792c924 = "Our Business Partners" title
   Section ba1ee85 = logos carousel */
.elementor-element-792c924.elementor-section {
    padding-bottom: 0 !important;
}
.elementor-element-ba1ee85.elementor-section {
    padding-top: 8px !important;
}

/* ----------------------------------------------------------------
   SINGLE PRODUCT — WooCommerce variation / cart form styles
   woocommerce_template_single_add_to_cart() outputs standard WC HTML.
   We style it to match the risens-auto theme since WC default CSS is disabled.
---------------------------------------------------------------- */

/* Variation attribute table */
.ra-atc-wrap .variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.ra-atc-wrap .variations th.label,
.ra-atc-wrap .variations td.label {
    padding: 0 0.75rem 0.625rem 0;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}
.ra-atc-wrap .variations td.value {
    padding-bottom: 0.625rem;
}
.ra-atc-wrap .variations select {
    width: auto;
    max-width: 240px;
    padding: 0.45rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
    color: #333;
}
.ra-atc-wrap .reset_variations {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--ra-orange);
    text-decoration: none;
}
.ra-atc-wrap .reset_variations:hover { text-decoration: underline; }

/* Variation price / availability */
.ra-atc-wrap .woocommerce-variation-price {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}
.ra-atc-wrap .woocommerce-variation-availability { margin-bottom: 0.5rem; }
.ra-atc-wrap .woocommerce-variation-description { font-size: 0.88rem; margin-bottom: 0.5rem; }

/* Add-to-cart row: qty + button side by side */
.ra-atc-wrap .woocommerce-variation-add-to-cart,
.ra-atc-wrap .cart:not(.variations_form) {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 420px;
}

/* Quantity box — styled to match site */
.ra-atc-wrap .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    width: auto;
}
/* ra-qty-btn injected by main.js into WC .quantity wrapper */
.ra-atc-wrap .quantity .ra-qty-btn {
    background: none;
    border: none;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    line-height: 1;
    flex-shrink: 0;
}
.ra-atc-wrap .quantity .ra-qty-btn:hover { color: var(--ra-orange); }

/* Qty number input — keep it narrow */
.ra-atc-wrap .quantity input.qty,
.ra-atc-wrap .quantity input[type="number"] {
    width: 48px !important;
    min-width: 0 !important;
    text-align: center !important;
    border: none !important;
    padding: 0.45rem 0 !important;
    font-size: 1rem !important;
    -moz-appearance: textfield !important;
}
.ra-atc-wrap .quantity input.qty::-webkit-inner-spin-button,
.ra-atc-wrap .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Main Add-to-cart / Select Options button */
.ra-atc-wrap .single_add_to_cart_button,
.ra-atc-wrap .button.alt,
.ra-atc-wrap input[type="submit"] {
    flex: 1;
    min-width: 10rem;
    background-color: var(--ra-orange) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4 !important;
}
/* Cart icon via ::before */
.ra-atc-wrap .single_add_to_cart_button::before {
    content: '' !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%2221%22 r=%221%22/%3E%3Ccircle cx=%2220%22 cy=%2221%22 r=%221%22/%3E%3Cpath d=%22M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6%22/%3E%3C/svg%3E") no-repeat center / contain !important;
}
.ra-atc-wrap .single_add_to_cart_button:hover,
.ra-atc-wrap .button.alt:hover { background-color: #e07a2f; }
.ra-atc-wrap .single_add_to_cart_button.disabled,
.ra-atc-wrap .single_add_to_cart_button:disabled { background-color: #ccc; cursor: not-allowed; }

/* Out-of-stock */
.ra-atc-wrap .stock.out-of-stock { color: #c00; font-weight: 600; }

/* ----------------------------------------------------------------
   PARTDO PRODUCT CARD — hover effects (image zoom + card lift)
   .product-wrapper is the root card element in partdo-core widgets
---------------------------------------------------------------- */
.product-wrapper {
    transition: box-shadow 0.3s ease, transform 0.28s ease;
}
.product-wrapper:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-4px);
}
/* Image zoom — thumbnail is inside .product-thumbnail */
.product-wrapper .product-thumbnail {
    overflow: hidden;
}
.product-wrapper .product-thumbnail img {
    transition: transform 0.45s ease;
}
.product-wrapper:hover .product-thumbnail img {
    transform: scale(1.07);
}
/* Product title link hover colour */
.product-wrapper .product-title a:hover {
    color: var(--ra-orange);
}

/* ----------------------------------------------------------------
   GENERAL BUTTON MICRO-INTERACTION
   Add press effect to all primary action buttons
---------------------------------------------------------------- */
.ra-btn-primary:active,
.woocommerce button.button:active,
a.button.add_to_cart_button:active,
.ra-atc-wrap .single_add_to_cart_button:active {
    transform: scale(0.97);
    transition: transform 0.08s;
}

/* ----------------------------------------------------------------
   SALE BADGE — % discount style
   Overrides partdo-widgets.css .onsale and WC default
---------------------------------------------------------------- */
span.onsale,
span.onsale.ra-sale-badge {
    background: var(--ra-orange) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    min-height: unset !important;
    min-width: unset !important;
    width: auto !important;
    height: auto !important;
}

/* ----------------------------------------------------------------
   TRUST BADGES — 2×2 grid (Partdo-style with icon circle + title + subtitle)
---------------------------------------------------------------- */
.ra-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    overflow: hidden;
    margin: 16px 0 12px;
    background: var(--ra-border); /* gap colour */
}
.ra-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ra-white);
}
.ra-trust-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #fff6ee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ra-trust-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--ra-orange);
    flex-shrink: 0;
}
.ra-trust-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.ra-trust-body strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ra-dark-2);
}
.ra-trust-body span {
    font-size: 11px;
    color: var(--ra-gray);
    margin-top: 1px;
}

/* ----------------------------------------------------------------
   SOCIAL SHARE — product detail page
---------------------------------------------------------------- */
.ra-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ra-share-label {
    font-size: 13px;
    color: var(--ra-gray);
    font-weight: 600;
    margin-right: 4px;
}
.ra-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.ra-share-btn:hover { transform: scale(1.12); opacity: 0.9; }
.ra-share-fb  { background: #1877F2; color: #fff; }
.ra-share-wa  { background: #25D366; color: #fff; }
.ra-share-tw  { background: #000; color: #fff; }
.ra-share-copy { background: var(--ra-gray-lt); color: var(--ra-gray); border: 1px solid var(--ra-border); }
.ra-share-copy.copied { background: #e8f5e9; color: #2e7d32; border-color: #4caf50; }
.ra-share-btn svg { width: 16px; height: 16px; }
.ra-share-copy svg { stroke-width: 2; }

/* ================================================================
   PRODUCT CARD — UNIFORM HEIGHT FIX
   Root cause: cards sit in .slick-slide which is display:block,
   and .product-wrapper has no flex layout → title overflow causes
   each card to grow independently → cards in a row are uneven.
   Fix:
     1. Make slick-track flex + align-items:stretch
     2. Flex-column the card hierarchy
     3. Lock image to 1:1 aspect ratio
     4. Clamp title to exactly 2 lines
     5. Push price+button to bottom via margin-top:auto
================================================================ */

/* --- 1. Slick slider: equalize all slide heights --- */
.slick-track {
    display: flex !important;
    align-items: stretch !important;
}
.slick-slide {
    height: auto !important;
    display: flex !important;
}
.slick-slide > div {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}
.slick-slide > div > * {
    width: 100% !important;
    height: 100% !important;
}

/* --- 2. Card flex column --- */
.product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border-radius: 8px;
}
.product-wrapper .product-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

/* --- 3. Fixed square image --- */
.product-wrapper .thumbnail-wrapper {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: var(--ra-gray-lt) !important;
}
.product-wrapper .thumbnail-wrapper a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.product-wrapper .thumbnail-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* --- 4. Content wrapper fills remaining height --- */
.product-wrapper .content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 12px 14px !important;
    gap: 0 !important;
}

/* --- 5. Title: exactly 2 lines, fixed height --- */
.product-wrapper .product-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    height: calc(1.45em * 2) !important;
    min-height: calc(1.45em * 2) !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 0 8px !important;
    color: #333 !important;
}
.product-wrapper .product-title a { color: inherit !important; text-decoration: none; }
.product-wrapper .product-title a:hover { color: var(--ra-orange) !important; }

/* --- 6. Rating row: fixed height, never collapses --- */
.product-wrapper .product-rating {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    min-height: 22px !important;
    margin-bottom: 6px !important;
}
.product-wrapper .product-rating .star-rating {
    font-size: 12px !important;
    flex-shrink: 0;
}
.product-wrapper .product-rating .rating-count {
    font-size: 11.5px !important;
    color: #999 !important;
    white-space: nowrap;
}

/* --- 7. Price + button pushed to bottom --- */
.product-wrapper .product-cart-form {
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding-top: 6px !important;
}

/* --- 8. Price layout --- */
.product-wrapper .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ra-orange) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 2px 6px !important;
    line-height: 1.2 !important;
}
.product-wrapper .price del {
    font-size: 12px !important;
    color: #bbb !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}
.product-wrapper .price ins {
    text-decoration: none !important;
    font-size: 15px !important;
    color: var(--ra-orange) !important;
}

/* ----------------------------------------------------------------
   STAR RATING — visual stars (Unicode ★ overlay method)
   WooCommerce outputs: <div class="star-rating"><span style="width:80%">...</span></div>
   The span width encodes the rating (width% = rating/5 * 100%).
   We draw 5 grey stars behind, then 5 gold stars clipped to span width.
---------------------------------------------------------------- */
.star-rating {
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    height: 1.2em !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    vertical-align: middle !important;
    min-width: 70px !important;
}
/* No grey background stars — only orange filled stars shown */
.star-rating::before {
    content: none !important;
}
/* Gold filled stars clipped by span width */
.star-rating span {
    display: block !important;
    overflow: hidden !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    /* hide the "Rated X.XX out of 5" text nodes */
    font-size: 0 !important;
    color: transparent !important;
}
.star-rating span::before {
    content: "★★★★★" !important;
    color: #F7923E !important;
    font-size: 14px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    letter-spacing: 2px !important;
    white-space: nowrap !important;
    display: block !important;
}
/* Hide text inside span */
.star-rating span strong.rating {
    display: none !important;
}
/* Rating count link */
.woocommerce-review-link,
.product-rating .count {
    font-size: 11px !important;
    color: var(--ra-gray) !important;
    margin-left: 4px !important;
}

/* ----------------------------------------------------------------
   PRODUCT CARD — hide "X in stock" text (keeps card height clean)
   Partdo theme uses .product-stock.in-stock (not WC .stock.in-stock)
---------------------------------------------------------------- */
.product-wrapper .product-stock.in-stock,
.product-stock.in-stock {
    display: none !important;
}
/* Show "Out of stock" in red */
.product-wrapper .product-stock.out-of-stock,
.product-stock.out-of-stock {
    display: inline-block !important;
    font-size: 11px !important;
    color: #c62828 !important;
    font-weight: 600 !important;
}
/* WC default stock classes (fallback) */
.product-wrapper .stock.in-stock,
.products .stock.in-stock {
    display: none !important;
}



/* ----------------------------------------------------------------
   COMPATIBLE VEHICLES - product detail page: brand + model tags
---------------------------------------------------------------- */
.ra-compat-vehicles {
    margin: 36px 0 24px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.ra-compat-vehicles__heading {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.ra-compat-vehicles__groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ra-compat-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.ra-compat-brand {
    display: inline-block;
    min-width: 90px;
    padding: 4px 14px;
    background: #1a1a2e;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    line-height: 1.6;
    flex-shrink: 0;
}
.ra-compat-brand.is-plain {
    cursor: default;
    opacity: .85;
}
.ra-compat-brand:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}
.ra-compat-models {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ra-compat-model {
    display: inline-block;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 14px;
    font-size: 12px;
    color: #0056b3;
    text-decoration: none;
    line-height: 1.5;
    transition: background .15s, border-color .15s, color .15s;
}
.ra-compat-model.is-plain {
    color: #555;
    cursor: default;
}
.ra-compat-model:not(.is-plain):hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
}
@media (max-width: 767px) {
    .ra-compat-vehicles { padding: 14px 12px; }
    .ra-compat-brand    { min-width: 72px; font-size: 11px; padding: 3px 10px; }
    .ra-compat-model    { font-size: 11px; padding: 2px 8px; }
}



/* ================================================================
   ABOUT US PAGE  (.ra-about)
   Template: page-about.php
================================================================ */

.ra-about * { box-sizing: border-box; }
.ra-about a { text-decoration: none; }

.ra-about-section-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ra-about-section-inner--center { grid-template-columns: 1fr; text-align: center; }
.ra-about-section-label {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: #c0392b; margin-bottom: 12px;
}
.ra-about-section-label--light { color: #ff8a80; }
.ra-about-section-h2 {
    font-size: clamp(22px, 2.8vw, 32px); font-weight: 800;
    color: #1a1a2e; line-height: 1.25; margin: 0 0 20px;
}
.ra-about-section-h2--light { color: #fff; }
.ra-about-section-intro { max-width: 640px; margin: 0 auto 48px; color: #666; font-size: 16px; line-height: 1.7; }

/* Buttons */
.ra-about-btn {
    display: inline-block; padding: 12px 28px; border-radius: 6px;
    font-size: 14px; font-weight: 700; letter-spacing: .3px;
    transition: all .18s; cursor: pointer; border: 2px solid transparent;
}
.ra-about-btn--primary  { background: #c0392b; color: #fff; border-color: #c0392b; }
.ra-about-btn--primary:hover { background: #a93226; border-color: #a93226; color: #fff; }
.ra-about-btn--outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ra-about-btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.ra-about-btn--ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.ra-about-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.8); }

/* ---- 1. HERO ---- */
.ra-about-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a1a2e 55%, #0d2a44 100%);
    padding: 80px 0 60px; overflow: hidden;
}
.ra-about-hero__inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.ra-about-hero__eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; color: #ff8a80;
    margin-bottom: 18px; padding: 4px 12px;
    border: 1px solid rgba(255,138,128,.35); border-radius: 20px;
}
.ra-about-hero__h1 { font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; color: #fff; line-height: 1.2; margin: 0 0 18px; }
.ra-about-hero__h1-accent { color: #ff8a80; }
.ra-about-hero__sub { font-size: 16px; color: rgba(255,255,255,.72); line-height: 1.75; margin: 0 0 32px; max-width: 500px; }
.ra-about-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ra-about-hero__graphic { display: flex; justify-content: center; align-items: center; }
.ra-about-svg { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 0 28px rgba(74,158,255,.1)); }

/* ---- 2. STATS BAR (dark navy = matches site header) ---- */
.ra-about-stats { background: #1a1a2e; padding: 0; }
.ra-about-stats__inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(4,1fr);
}
.ra-about-stat {
    padding: 28px 20px; text-align: center;
    border-right: 1px solid rgba(255,255,255,.1);
    display: flex; flex-direction: column; gap: 6px;
}
.ra-about-stat:last-child { border-right: none; }
.ra-about-stat strong { font-size: 34px; font-weight: 800; color: #ff8a80; line-height: 1; display: block; }
.ra-about-stat strong sup { font-size: 18px; vertical-align: super; }
.ra-about-stat span { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.45; }

/* ---- 3. STORY ---- */
.ra-about-story { padding: 80px 0; background: #fff; }
.ra-about-story__text p { color: #444; line-height: 1.8; margin: 0 0 16px; font-size: 15px; }
.ra-about-story__text p:last-child { margin-bottom: 0; }
.ra-about-info-card { background: #f8f9fb; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.ra-about-info-card__row { display: flex; border-bottom: 1px solid #e2e8f0; font-size: 13.5px; }
.ra-about-info-card__row:last-child { border-bottom: none; }
.ra-about-info-card__label {
    padding: 13px 16px; background: #f0f4f8; color: #666; font-weight: 600;
    width: 130px; flex-shrink: 0; font-size: 12px; text-transform: uppercase;
    letter-spacing: .5px; display: flex; align-items: center; border-right: 1px solid #e2e8f0;
}
.ra-about-info-card__val { padding: 13px 16px; color: #1a1a2e; display: flex; align-items: center; line-height: 1.45; }

/* ---- 4. CORE PRODUCTS ---- */
.ra-about-products { padding: 80px 0; background: #f4f6f9; }
.ra-about-products__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-top: 8px; }
.ra-about-product-card {
    background: #fff; border: 1px solid #e5e9ef; border-radius: 12px;
    padding: 28px 18px 24px; text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.ra-about-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(26,26,46,.1); border-color: #1a1a2e; }
.ra-about-product-card--accent { border-color: #d4a017; background: linear-gradient(160deg, #fffdf5, #fff); }
.ra-about-product-card--accent:hover { border-color: #b8860b; box-shadow: 0 8px 28px rgba(180,120,0,.1); }
.ra-about-product-card__icon { width: 52px; height: 52px; margin: 0 auto 16px; color: #1a1a2e; }
.ra-about-product-card--accent .ra-about-product-card__icon { color: #b8860b; }
.ra-about-product-card__icon svg { width: 100%; height: 100%; }
.ra-about-product-card h3 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 10px; }
.ra-about-product-card p  { font-size: 12.5px; color: #666; line-height: 1.65; margin: 0; }
.ra-about-product-card__badge {
    display: inline-block; margin-top: 10px; padding: 2px 10px;
    background: #fff3cd; color: #856404; font-size: 10px; font-weight: 700;
    letter-spacing: .5px; border-radius: 20px; border: 1px solid #f0d060;
}

/* ---- 5. TECHNICAL CAPABILITY ---- */
.ra-about-tech { padding: 80px 0; background: #1a1a2e; }
.ra-about-tech .ra-about-section-inner { gap: 64px; align-items: start; }
.ra-about-tech__content p { color: rgba(255,255,255,.75); line-height: 1.8; font-size: 15px; margin: 0 0 16px; }
.ra-about-tech__content strong { color: #fff; }
.ra-about-tech__highlights { display: flex; flex-direction: column; gap: 20px; }
.ra-about-tech-box {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,138,128,.2);
    border-radius: 10px; padding: 20px 22px;
    display: grid; grid-template-columns: 42px 64px 1fr; gap: 0 14px; align-items: center;
}
.ra-about-tech-box__icon { width: 36px; height: 36px; }
.ra-about-tech-box__icon svg { width: 100%; height: 100%; }
.ra-about-tech-box strong { font-size: 28px; font-weight: 800; color: #ff8a80; line-height: 1; }
.ra-about-tech-box strong sup { font-size: 16px; vertical-align: super; }
.ra-about-tech-box span { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; }

/* ---- 6. WHY WORK WITH US ---- */
.ra-about-why { padding: 80px 0; background: #fff; }
.ra-about-why__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; margin-top: 8px; text-align: left; }
.ra-about-why-item {
    background: #f4f6f9; border-radius: 12px; padding: 26px 18px 22px;
    border: 1px solid #e5e9ef; border-top: 3px solid #1a1a2e;
    transition: box-shadow .2s, transform .2s;
}
.ra-about-why-item:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.ra-about-why-item__num { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #c0392b; margin-bottom: 14px; display: block; }
.ra-about-why-item h4 { font-size: 13.5px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; line-height: 1.4; }
.ra-about-why-item p  { font-size: 12.5px; color: #666; line-height: 1.65; margin: 0; }

/* ---- 7. CTA ---- */
.ra-about-cta { background: linear-gradient(135deg, #1a1a2e 0%, #0d2a44 100%); padding: 72px 24px; text-align: center; }
.ra-about-cta__inner { max-width: 600px; margin: 0 auto; }
.ra-about-cta h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; color: #fff; margin: 0 0 14px; }
.ra-about-cta p  { font-size: 16px; color: rgba(255,255,255,.78); line-height: 1.7; margin: 0 0 32px; }
.ra-about-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .ra-about-products__grid { grid-template-columns: repeat(3,1fr); }
    .ra-about-why__grid      { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
    .ra-about-hero__inner    { grid-template-columns: 1fr; }
    .ra-about-hero__graphic  { display: none; }
    .ra-about-section-inner  { grid-template-columns: 1fr; gap: 36px; }
    .ra-about-stats__inner   { grid-template-columns: repeat(2,1fr); }
    .ra-about-stat           { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .ra-about-products__grid { grid-template-columns: repeat(2,1fr); }
    .ra-about-why__grid      { grid-template-columns: repeat(2,1fr); }
    .ra-about-tech .ra-about-section-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ra-about-stats__inner   { grid-template-columns: 1fr; }
    .ra-about-products__grid { grid-template-columns: 1fr; }
    .ra-about-why__grid      { grid-template-columns: 1fr; }
}


/* ================================================================
   ALLCATS SUB-MENU INDENT
   Sub-categories inside the All Categories panel need left indent
   to align text under the parent item text (after the arrow icon).
================================================================ */
.ra-allcats-sub {
    /* Indent sub-items: 16px panel-padding + 16px icon + 10px gap = 42px */
    padding-left: 0 !important;
}
.ra-allcats-sub li a {
    padding-left: 42px !important;
    font-size: 13px !important;
    color: #555 !important;
}
.ra-allcats-sub li a:hover {
    background: var(--ra-orange-lt) !important;
    color: var(--ra-orange) !important;
}
/* Category parent label with children: prevent chevron icon on sub-trigger */
.ra-allcats-has-children > a { font-weight: 600; }

/* ================================================================
   HOMEPAGE SECTIONS — HIDDEN (content preserved, not deleted)
   f914c42 = Latest Deals for This Week (partdo-deals-product)
   40e2807 = Coupon banner (FREE15FIRST)
   2f32dc7 = Divider section (before Business Partners)
   792c924 = Business Partners title widget
   02e9dfe = Coupon banner (PRT45023)
   ba1ee85 = Client carousel (corporate logo column)
   78e1d6e = Latest Deals for This Week (partdo-product-grid, 4 products)
   0854c79 = Our Good Categories (product-categories module)
   c22ce48 = 3 banners below Our Good Categories
   5142773 = "Our Good Customers" title
   4829821 = Testimonial carousel (customer avatars/reviews)
================================================================ */
.elementor-element-f914c42,
.elementor-element-40e2807,
.elementor-element-2f32dc7,
.elementor-element-792c924,
.elementor-element-02e9dfe,
.elementor-element-ba1ee85,
.elementor-element-78e1d6e,
.elementor-element-0854c79,
.elementor-element-c22ce48,
.elementor-element-5142773,
.elementor-element-4829821 {
    display: none !important;
    visibility: hidden !important;
}

/* ================================================================
   HOMEPAGE — FIX DOUBLE HORIZONTAL LINES
================================================================ */

/* Product tab carousel (3802851): The active tab link already shows a colored
   underline indicator (::before at bottom:-1.1875rem). The with-border separator
   on the header creates a 2nd overlapping line. Remove the redundant outer border. */
.elementor-element-3802851 .klbth-module-header.with-border {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
/* This widget currently has 0 tabs/products configured, so its slick carousel
   renders with 0 height but still outputs a pagination dot — leaving an orphaned
   red dot floating in the empty space. Hide the leftover dots. */
.elementor-element-3802851 .slick-dots {
    display: none !important;
}

/* Our Good Categories (0854c79): The categories grid has border: 1px solid on all sides.
   When empty (before JS loads) the 0-height div shows as an extra line directly below
   the module-header's with-border separator. Remove all borders from the categories box
   (category items retain their own internal left-border separators). */
.elementor-element-0854c79 .klbth-module-categories.style-1 .categories {
    border: none !important;
    box-shadow: none !important;
}
.elementor-element-0854c79 .klbth-module-body {
    padding-top: 0.75rem !important;
}

/* Match Elementor boxed container to theme --ra-container (1280px) so content aligns
   with the header row instead of appearing narrower/centered.
   !important because Elementor's kit CSS (post-5011.css, auto-regenerated) outputs
   the same-specificity rule with 1140px and can load after this file — which caused
   the recurring "content narrower than header" bug. Kit setting is also fixed to
   1280 in the DB, this is belt-and-braces. */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px !important;
}

/* Homepage slider section (fff8e2b): columns should be 25% (empty, covered by the
   All-Categories dropdown panel) / 75% (slider). Elementor's per-page CSS file that
   normally encodes this custom split (_inline_size) failed to regenerate on this
   server (WP_Filesystem uses FTP method, which errors out from CLI), so both columns
   fall back to the default elementor-col-50 (50/50) class width. Force the intended
   split directly.
   ⚠️ DESKTOP ONLY (min-width: 1025px) — Elementor's own responsive behavior stacks
   columns to full-width on tablet/mobile; without this media guard the empty 25%
   column squeezes the slider into a tiny box on phones/tablets. */
@media (min-width: 1025px) {
    .elementor-element-68dc5e8.elementor-column {
        width: 25% !important;
    }
    .elementor-element-0fbbf4d.elementor-column {
        width: 75% !important;
    }
}

/* ================================================================
   BLOG ARTICLE TYPOGRAPHY (auto-generated content pipeline)
================================================================ */
.ra-single-post {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}
.ra-post-featured-img {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
}
.ra-post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}
.ra-post-title {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ra-dark, #1d2128);
    margin: 0 0 12px;
}
.ra-post-meta {
    font-size: 13px;
    color: var(--ra-gray, #7b8a9a);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ra-border, #e8ecf0);
}
.ra-post-meta-sep { margin: 0 8px; }
.ra-post-meta-cat {
    color: var(--ra-orange, #f0762b);
    font-weight: 600;
}

.ra-entry-content {
    font-size: 16px;
    line-height: 1.75;
    color: #2c3540;
}
.ra-entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ra-dark, #1d2128);
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ra-orange-lt, #fdeadd);
}
.ra-entry-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ra-dark, #1d2128);
    margin: 28px 0 10px;
}
.ra-entry-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 22px 0 8px;
}
.ra-entry-content p { margin: 0 0 16px; }
.ra-entry-content ul,
.ra-entry-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.ra-entry-content li { margin-bottom: 8px; }
.ra-entry-content a {
    color: var(--ra-orange, #f0762b);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.ra-entry-content a:hover { border-bottom-color: var(--ra-orange, #f0762b); }
.ra-entry-content strong { color: var(--ra-dark, #1d2128); }
.ra-entry-content code {
    background: #f4f6f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* Article tables (spec / fitment / comparison) */
.ra-entry-content table,
.risens-article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 24px;
    font-size: 14.5px;
    border: 1px solid var(--ra-border, #e8ecf0);
    border-radius: 8px;
    overflow: hidden;
}
.ra-entry-content table th,
.risens-article-table th {
    background: var(--ra-dark, #1d2128);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
}
.ra-entry-content table td,
.risens-article-table td {
    padding: 9px 14px;
    border-top: 1px solid var(--ra-border, #e8ecf0);
    vertical-align: top;
}
.ra-entry-content table tr:nth-child(even) td,
.risens-article-table tr:nth-child(even) td {
    background: #f8fafb;
}

/* Quick Answer box (GEO: direct answer for AI engines) */
.ra-quick-answer {
    background: #fff7f1;
    border: 1px solid var(--ra-orange-lt, #fdeadd);
    border-left: 4px solid var(--ra-orange, #f0762b);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 26px;
    font-size: 15.5px;
}
.ra-quick-answer strong:first-child {
    display: block;
    color: var(--ra-orange, #f0762b);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

/* End-of-post tag chips (mirrors product Compatible Vehicles style) */
.ra-post-tags {
    margin-top: 40px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ra-border, #e8ecf0);
    border-radius: 12px;
}
.ra-post-tags-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--ra-dark, #1d2128);
    margin-bottom: 14px;
}
.ra-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ra-tag-chip {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--ra-border, #dfe5ea);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #2456a6;
    background: #fff;
    transition: all .15s;
}
.ra-tag-chip:hover {
    border-color: var(--ra-orange, #f0762b);
    color: var(--ra-orange, #f0762b);
    background: #fff7f1;
}

@media (max-width: 640px) {
    .ra-post-title { font-size: 24px; }
    .ra-entry-content { font-size: 15px; }
    .ra-entry-content h2 { font-size: 20px; }
    .ra-entry-content h3 { font-size: 17px; }
    .ra-entry-content table { font-size: 13px; display: block; overflow-x: auto; }
}

/* ----------------------------------------------------------------
   HOMEPAGE — BMW/Mercedes/Audi BRAND CARDS (scoped by Elementor widget id)
   The theme's default `.overlay-15-dark-min768` / `.overlay-25-dark-max768`
   utility classes are a FLAT black overlay shared with the hero carousel.
   These 3 cards already use naturally dark studio car photos, so stacking
   the same flat overlay makes the whole homepage look uniformly black.
   Fix: replace with a left-to-right gradient (dark only behind the text on
   the left, fully clear over the car) so the card photos read brighter,
   without touching the hero slider's shared overlay classes.
---------------------------------------------------------------- */
@media screen and (min-width: 768px) {
    .elementor-element-4cfa146 .entry-media::before,
    .elementor-element-29f5cf5 .entry-media::before,
    .elementor-element-9bc0eab .entry-media::before {
        background: linear-gradient(90deg,
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.20) 32%,
            rgba(0,0,0,0) 58%
        ) !important;
    }
}
@media screen and (max-width: 767.98px) {
    .elementor-element-4cfa146 .entry-wrapper::before,
    .elementor-element-29f5cf5 .entry-wrapper::before,
    .elementor-element-9bc0eab .entry-wrapper::before {
        background-color: rgba(0,0,0,0.15) !important;
    }
}

/* ----------------------------------------------------------------
   HOMEPAGE — "Tools & Equipment -35%" tall category banner
   (Elementor widget id d60202e, partdo-category-banner, default type).
   Same issue: default theme overlay is flat black, stacking with an
   already-dark base photo makes it another all-black block. Swap the
   black tint for a warm brand-orange tint so it doesn't read as pure
   black next to the hero carousel + brand cards above it.
---------------------------------------------------------------- */
.elementor-element-d60202e .entry-media::before {
    background-color: rgba(120, 58, 10, 0.18) !important;
}
@media screen and (max-width: 767.98px) {
    .elementor-element-d60202e .entry-wrapper::before {
        background-color: rgba(120, 58, 10, 0.18) !important;
    }
}

/* ----------------------------------------------------------------
   PRODUCT PAGE — HIDE OE NUMBERS ATTRIBUTE ROW
   PHP filter in functions.php strips the row at render time; this CSS
   rule is the fallback for any edge case the server-side filter misses.
   Using display:none because position:absolute doesn't work on <tr>.
---------------------------------------------------------------- */
.woocommerce-product-attributes-item--attribute_oe-numbers,
.woocommerce-product-attributes-item--attribute_pa_oe-numbers {
    display: none;
}
