/* ============================================================
   RAINCROSS ARMORY - WooCommerce Integration CSS
   Overrides WC defaults to match our custom theme
   ============================================================ */

/* ── RESET WC DEFAULTS ──────────────────────────────────────── */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Fix: Remove WooCommerce clearfix pseudo-elements that act as ghost grid items */
/* Using absolute positioning removes them from grid flow */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: '' !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    float: none !important;
    clear: none !important;
    position: absolute !important;
    visibility: hidden !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force first real product into column 1 */
.woocommerce ul.products > .ra-product-card:first-child,
.woocommerce-page ul.products > .ra-product-card:first-child {
    grid-column-start: 1 !important;
}

/* Product LI wrapper */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Our card is the anchor tag inside li.product */
.woocommerce ul.products li.product .ra-product-card,
.woocommerce-page ul.products li.product .ra-product-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Remove WC default card styles */
.woocommerce ul.products li.product a img { margin: 0; }
.woocommerce ul.products li.product .price { display: none; } /* we render price ourselves */
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: none; } /* we render title */
.woocommerce ul.products li.product .star-rating { display: none; } /* we render stars */
.woocommerce ul.products li.product .button { display: none; } /* we render button */

/* ── SORTING DROPDOWN ───────────────────────────────────────── */
.woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}
.woocommerce-ordering select {
    border: 1px solid var(--ra-border) !important;
    border-radius: var(--ra-radius-sm) !important;
    padding: 8px 32px 8px 12px !important;
    font-size: 13px !important;
    color: var(--ra-text) !important;
    background: var(--ra-white) !important;
    cursor: pointer !important;
    outline: none !important;
    font-family: var(--ra-font) !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination {
    text-align: center !important;
    margin: 20px 0 !important;
}
.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    clear: both !important;
    white-space: nowrap !important;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    border: 1px solid var(--ra-border) !important;
    border-radius: var(--ra-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ra-text-light) !important;
    background: var(--ra-white) !important;
    text-decoration: none !important;
    transition: var(--ra-transition) !important;
    padding: 0 10px !important;
    line-height: 1 !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--ra-gray-100) !important;
    color: var(--ra-navy-mid) !important;
    border-color: var(--ra-navy-mid) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--ra-navy-mid) !important;
    color: var(--ra-white) !important;
    border-color: var(--ra-navy-mid) !important;
}

/* ── NOTICES ────────────────────────────────────────────────── */
.woocommerce-notices-wrapper {
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 0 20px;
}

/* ── CART ───────────────────────────────────────────────────── */
.woocommerce-cart-form {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    overflow: hidden;
}
.woocommerce-cart-form table.cart {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-cart-form table.cart th {
    background: var(--ra-navy);
    color: var(--ra-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
}
.woocommerce-cart-form table.cart td {
    padding: 16px;
    border-bottom: 1px solid var(--ra-border);
    vertical-align: middle;
    font-size: 14px;
}
.woocommerce-cart-form table.cart td.product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-sm);
    background: var(--ra-gray-50);
}
.woocommerce-cart-form table.cart td.product-name a {
    font-weight: 600;
    color: var(--ra-text);
    text-decoration: none;
}
.woocommerce-cart-form table.cart td.product-name a:hover { color: var(--ra-navy-mid); }
.woocommerce-cart-form table.cart td.product-price,
.woocommerce-cart-form table.cart td.product-subtotal {
    font-weight: 700;
    color: var(--ra-navy-mid);
}
.woocommerce-cart-form .quantity input.qty {
    width: 60px;
    text-align: center;
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius-sm);
    padding: 6px;
    font-size: 14px;
    font-weight: 700;
}
.woocommerce-cart-form .actions {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.woocommerce-cart-form .coupon {
    display: flex;
    gap: 8px;
}
.woocommerce-cart-form .coupon input[type=text] {
    border: 1px solid var(--ra-border) !important;
    border-radius: var(--ra-radius-sm) !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    width: 200px;
}
.woocommerce-cart-form .coupon button[type=submit] {
    background: var(--ra-gray-100) !important;
    color: var(--ra-text) !important;
    border: 1px solid var(--ra-border) !important;
    font-size: 12px !important;
    padding: 9px 16px !important;
}

/* Cart totals */
.cart-collaterals { margin-top: 24px; }
.cart_totals {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    padding: 24px;
    max-width: 400px;
    margin-left: auto;
}
.cart_totals h2 {
    font-family: var(--ra-font-heading);
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ra-gold);
    color: var(--ra-navy-dark);
}
.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.cart_totals table tr td,
.cart_totals table tr th {
    padding: 10px 0;
    border-bottom: 1px solid var(--ra-border);
    font-size: 14px;
}
.cart_totals table tr.order-total td,
.cart_totals table tr.order-total th {
    font-size: 18px;
    font-weight: 800;
    color: var(--ra-navy-mid);
    border-bottom: none;
}
.cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    background: var(--ra-gold) !important;
    color: var(--ra-navy) !important;
    border: none !important;
    border-radius: var(--ra-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
}
.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--ra-gold-dark) !important;
}

/* ── CHECKOUT ───────────────────────────────────────────────── */
.woocommerce-checkout #customer_details {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    padding: 24px;
}
.woocommerce-checkout h3 {
    font-family: var(--ra-font-heading);
    font-size: 20px;
    letter-spacing: 0.5px;
    color: var(--ra-navy-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ra-gold);
}
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ra-text);
    margin-bottom: 4px;
    display: block;
}
.woocommerce form .form-row .required { color: var(--ra-red); }
.woocommerce #order_review_heading {
    font-family: var(--ra-font-heading);
    font-size: 20px;
    letter-spacing: 0.5px;
    color: var(--ra-navy-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ra-gold);
}
.woocommerce-checkout-review-order {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    padding: 24px;
}
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--ra-border);
}
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    font-size: 18px;
    font-weight: 800;
    color: var(--ra-navy-mid);
    border-bottom: none;
}
#place_order {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    background: var(--ra-gold) !important;
    color: var(--ra-navy) !important;
    border: none !important;
    border-radius: var(--ra-radius-sm) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: var(--ra-transition) !important;
}
#place_order:hover { background: var(--ra-gold-dark) !important; }

/* ── PRODUCT SEARCH RESULTS ─────────────────────────────────── */
.woocommerce-no-products-found {
    text-align: center;
    padding: 60px 20px;
}
.woocommerce-no-products-found h2 {
    font-family: var(--ra-font-heading);
    font-size: 28px;
    color: var(--ra-navy-dark);
    margin-bottom: 12px;
}

/* ── MY ACCOUNT ─────────────────────────────────────────────── */
.woocommerce-MyAccount-navigation {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.woocommerce-MyAccount-navigation ul {
    padding: 0;
    margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ra-text-light);
    border-bottom: 1px solid var(--ra-border);
    transition: var(--ra-transition);
    text-decoration: none;
}
.woocommerce-MyAccount-navigation ul li a:hover { color: var(--ra-navy-mid); background: var(--ra-gray-50); }
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--ra-navy-mid); background: var(--ra-gray-50); font-weight: 700; border-left: 3px solid var(--ra-gold); }

/* ── MOBILE RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}
/* ============================================================
   RAINCROSS ARMORY - Advanced Filter Sidebar Overrides
   ============================================================ */

/* ── SIDEBAR LAYOUT ─────────────────────────────────────── */
.ra-shop-wrap {
    grid-template-columns: 260px 1fr !important;
    gap: 20px !important;
    max-width: 1400px !important;
}
.ra-sidebar {
    /* Desktop: no scroll — grows with content */
    overflow: visible;
    overflow-x: hidden;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding-right: 2px;
    padding-bottom: 24px;
}

/* ── WIDGET BASE ─────────────────────────────────────────── */
.ra-sidebar-widget {
    border-radius: 10px !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}
/* Body bottom corners - no overflow clip so content expands freely */
.ra-sidebar-widget--collapsible.open .ra-sidebar-widget__body,
.ra-sidebar-widget__body {
    border-radius: 0 0 10px 10px;
    overflow: visible;
}
/* When closed, title gets full rounded corners */
.ra-sidebar-widget--collapsible:not(.open) .ra-sidebar-widget__title {
    border-radius: 10px !important;
}
.ra-sidebar-widget__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 14px !important;
    background: #1e2d5a !important;
    border: none !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    cursor: pointer !important;
    text-align: left !important;
    border-radius: 10px 10px 0 0 !important;
}
.ra-sidebar-widget__title svg { fill: none !important; stroke: #c9a84c !important; width: 16px !important; height: 16px !important; }
.ra-widget-chevron { transition: transform 0.25s !important; }
.ra-sidebar-widget--collapsible.open .ra-widget-chevron { transform: rotate(180deg) !important; }
.ra-sidebar-widget__body { padding: 10px 12px !important; }
.ra-sidebar-widget--collapsible:not(.open) .ra-sidebar-widget__body { display: none !important; }

/* ── ACTIVE FILTERS ─────────────────────────────────────── */
.ra-sidebar-active-filters {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 10px 12px;
}
.ra-sidebar-active-filters__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #92400e;
    margin-bottom: 6px;
}
.ra-clear-all { font-size: 11px; color: #1e2d5a; text-decoration: underline; font-weight: 600; }
.ra-sidebar-active-filters__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ra-filter-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: #1e2d5a; color: #fff; font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 20px;
}
.ra-chip-remove { color: #c9a84c; text-decoration: none; font-size: 13px; }

/* ── IN STOCK TOGGLE ─────────────────────────────────────── */
.ra-sidebar-widget--toggle { padding: 12px 14px !important; }
.ra-toggle-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.ra-toggle-label { font-size: 12px; font-weight: 700; color: #1a1a2e; text-transform: uppercase; letter-spacing: 0.3px; }
.ra-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.ra-switch input { opacity: 0; width: 0; height: 0; }
.ra-switch__slider {
    position: absolute; inset: 0; background: #d1d5db; border-radius: 22px; cursor: pointer; transition: 0.3s;
}
.ra-switch__slider::before {
    content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ra-switch input:checked + .ra-switch__slider { background: #c9a84c; }
.ra-switch input:checked + .ra-switch__slider::before { transform: translateX(18px); }

/* ── FILTER LIST ─────────────────────────────────────────── */
.ra-filter-search {
    width: 100%; padding: 7px 10px; font-size: 12px; border: 1px solid #e5e7eb;
    border-radius: 6px; outline: none; margin-bottom: 6px; color: #374151;
    background: #f9fafb; box-sizing: border-box;
}
.ra-filter-search:focus { border-color: #c9a84c; }
.ra-filter-list { list-style: none; margin: 0; padding: 0; max-height: none; overflow-y: visible; }
.ra-filter-list--no-scroll { max-height: none !important; overflow-y: visible !important; }
.ra-filter-item { border-radius: 5px; }
.ra-filter-item label {
    display: flex; align-items: center; gap: 8px; padding: 5px 2px;
    cursor: pointer; font-size: 12.5px; color: #374151; line-height: 1.3;
}
.ra-filter-item label:hover { color: #1e2d5a; }
.ra-filter-item input[type="checkbox"],
.ra-filter-item input[type="radio"] { width: 14px; height: 14px; accent-color: #c9a84c; flex-shrink: 0; cursor: pointer; }
.ra-filter-name { flex: 1; font-size: 12px; }
.ra-filter-count {
    font-size: 10px; color: #9ca3af; background: #f3f4f6;
    padding: 1px 5px; border-radius: 10px; flex-shrink: 0;
}
.ra-filter-item.hidden { display: none; }

/* ── PRICE DUAL SLIDER ───────────────────────────────────── */
.ra-price-range { padding: 6px 0; }
.ra-price-range__track {
    position: relative; height: 4px; background: #e5e7eb; border-radius: 4px; margin: 20px 0 12px;
}
.ra-price-range__fill { position: absolute; height: 100%; background: #c9a84c; border-radius: 4px; left: 0; right: 0; }
.ra-price-range__inputs { position: relative; height: 0; }
.ra-range-slider {
    position: absolute; width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
    background: transparent; pointer-events: none; top: -22px; outline: none;
}
.ra-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; background: #1e2d5a;
    border: 2px solid #c9a84c; border-radius: 50%; cursor: pointer;
    pointer-events: all; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ra-range-slider::-moz-range-thumb {
    width: 18px; height: 18px; background: #1e2d5a; border: 2px solid #c9a84c;
    border-radius: 50%; cursor: pointer; pointer-events: all;
}
.ra-price-inputs { display: flex !important; align-items: center; gap: 6px; margin-top: 10px; }
.ra-price-input-wrap {
    flex: 1; display: flex; align-items: center;
    border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; background: #f9fafb;
}
.ra-price-input-wrap > span {
    padding: 0 5px; font-size: 11px; color: #6b7280;
    background: #f3f4f6; border-right: 1px solid #e5e7eb;
    line-height: 32px; flex-shrink: 0;
}
.ra-price-min, .ra-price-max {
    flex: 1; border: none !important; background: transparent !important;
    padding: 6px 6px !important; font-size: 12px !important;
    color: #374151 !important; outline: none; width: 0; min-width: 0;
}
.ra-price-sep { color: #9ca3af; font-size: 13px; flex-shrink: 0; }
.ra-filter-apply-btn {
    width: 100%; margin-top: 8px; padding: 9px; background: #1e2d5a;
    color: #fff; border: none; border-radius: 6px; font-size: 12px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: background 0.2s;
}
.ra-filter-apply-btn:hover { background: #c9a84c; color: #1a1a2e; }

/* CA COMPLIANT TOGGLE - Redesigned */
.ra-sidebar-widget--ca {
    background: linear-gradient(135deg, #0f1a35 0%, #1a2748 50%, #1e2d5a 100%) !important;
    border: 1.5px solid rgba(201, 168, 76, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 14px rgba(30, 45, 90, 0.25), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    position: relative !important;
}
/* Gold shimmer top edge */
.ra-sidebar-widget--ca::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, #f0d98a, #c9a84c, transparent);
    border-radius: 12px 12px 0 0;
}
.ra-sidebar-widget--ca .ra-sidebar-widget__body {
    padding: 12px 16px 14px !important;
    box-sizing: border-box !important;
}
.ra-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.ra-toggle-label--ca {
    color: #e8d5a3 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    line-height: 1.3 !important;
}
/* Toggle switch base */
.ra-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.ra-switch input { opacity: 0; width: 0; height: 0; }
.ra-switch__slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    transition: background 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(255,255,255,0.1);
}
.ra-switch__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
/* GREEN when toggled ON */
.ra-sidebar-widget--ca .ra-switch input:checked + .ra-switch__slider {
    background: #22c55e !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45), 0 0 4px rgba(34, 197, 94, 0.3) !important;
}
.ra-sidebar-widget--ca .ra-switch input:checked + .ra-switch__slider::before {
    transform: translateY(-50%) translateX(18px) !important;
}
/* OFF state slider */
.ra-sidebar-widget--ca .ra-switch__slider {
    background: rgba(255,255,255,0.18) !important;
}
/* Subtext - bright and readable */
.ra-ca-filter-sub {
    font-size: 10.5px !important;
    color: rgba(201, 168, 76, 0.8) !important;
    margin-top: 7px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px !important;
}
/* DOJ verified note */
.ra-sidebar-widget--ca .ra-sidebar-widget__body::after {
    content: "✓  California DOJ Roster Verified";
    display: block;
    font-size: 9.5px;
    color: rgba(201, 168, 76, 0.65);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    text-align: center;
}

/* ── CATEGORY TREE ───────────────────────────────────────── */
.ra-cat-tree { list-style: none; margin: 0; padding: 0; }
.ra-cat-tree__item { position: relative; }
.ra-cat-tree__item > a {
    display: flex; align-items: center; padding: 6px 4px;
    font-size: 12.5px; color: #374151; text-decoration: none;
    border-radius: 5px; transition: all 0.15s; gap: 4px;
}
.ra-cat-tree__item > a:hover { color: #1e2d5a; background: #f3f4f6; padding-left: 8px; }
.ra-cat-tree__item > a.active { color: #1e2d5a; font-weight: 700; background: #eef0f8; }
.ra-cat-count {
    font-size: 10px; color: #9ca3af; background: #f3f4f6;
    padding: 1px 5px; border-radius: 10px; flex-shrink: 0; margin-left: auto;
}
.ra-cat-tree__item > a.active .ra-cat-count { background: #1e2d5a; color: #fff; }
.ra-cat-tree__expand {
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; background: none; border: none;
    cursor: pointer; padding: 0; display: flex; align-items: center;
    justify-content: center; color: #9ca3af; z-index: 1;
}
.ra-cat-tree__expand svg { width: 13px; height: 13px; transition: transform 0.2s; stroke: #9ca3af; fill: none; }
.ra-cat-tree__expand[aria-expanded="true"] svg { transform: rotate(90deg); }
.ra-cat-children { padding-left: 12px; border-left: 2px solid #e5e7eb; margin-left: 6px; }

/* ── PRODUCT CARD ENHANCEMENTS ───────────────────────────── */
.ra-product-card__caliber {
    font-size: 10.5px; color: #6b7280; background: #f3f4f6;
    display: inline-block; padding: 2px 6px; border-radius: 4px;
    margin-bottom: 3px; font-weight: 500;
}
/* Hide old/unused button classes — grid context only */
.ra-view-details-btn,
.ra-select-options-btn, .ra-variant-count-link,
.ra-product-card .ra-add-to-cart-btn, .ra-view-product-btn { display: none !important; }


/* ── CATEGORY / ARCHIVE TITLE BAR DESCRIPTION TEXT ──────────────────── */
.ra-cat-desc,
.ra-cat-desc p,
.ra-cat-desc p * {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px;
}

/* ── CLICK-ANYWHERE CARD (OpticsPlanet style) ─────────────────────── */
/* The overlay link already exists; ensure card is position:relative   */
.ra-product-card {
    position: relative;
    cursor: pointer;
}
.ra-product-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}
/* Buttons/links inside card need higher z-index to stay clickable */
.ra-product-card__wishlist,
.ra-product-card__title a,
.ra-product-card__body a {
    position: relative;
    z-index: 4;
}
/* Color swatches — sits below overlay so card clicks pass through */
.ra-product-card__color-options {
    position: relative;
    z-index: 0;
    pointer-events: none;
}
/* Overlay must be above everything in the card — covers full card including swatches */
.ra-product-card__overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 3 !important;
    display: block;
    cursor: pointer;
}
/* Card hover lift effect */
.ra-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    transition: box-shadow 0.2s, transform 0.2s;
}

/* ── COLOR OPTIONS (MidwayUSA style) — centered below image ───────── */
.ra-product-card__color-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px 4px;
    position: relative;
    z-index: 2;
}
.ra-card-swatches {
    display: flex;
    align-items: center;
    /* negative margin handled inline per swatch for overlap effect */
}
.ra-card-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    flex-shrink: 0;
    position: relative;
}
.ra-card-color-label {
    font-size: 11px;
    color: #1e2d5a;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ── SINGLE PRODUCT ADD TO CART BUTTON ─────────────────────────────── */
.ra-product-actions .ra-add-to-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: #1e2d5a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.ra-product-actions .ra-add-to-cart-btn:hover:not(:disabled) {
    background: #2a3f7a;
}
.ra-product-actions .ra-add-to-cart-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ── SINGLE PRODUCT: COLOR DROPDOWN (MidwayUSA style) ────────────── */
.ra-variation-row {
    margin-bottom: 16px;
}
.ra-color-dropdown-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-bottom: 8px;
}
.ra-color-dropdown-label .ra-selected-variation-label {
    font-weight: 400;
    text-transform: none;
    color: #1e2d5a;
    margin-left: 4px;
}
.ra-color-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}
.ra-color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.ra-color-option:last-child { border-bottom: none; }
.ra-color-option:hover { background: #f8f9fb; }
.ra-color-option.selected {
    background: #f0f4ff;
    border-left: 3px solid #1e2d5a;
}
.ra-color-option.out-of-stock { opacity: 0.55; }
.ra-color-option__thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #f9f9f9;
    flex-shrink: 0;
}
.ra-color-option__swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ra-color-option__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.ra-color-option__name {
    font-size: 13px;
    font-weight: 600;
    color: #1e2d5a;
    line-height: 1.2;
}
.ra-color-option__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ra-color-option__price { font-size: 12px; font-weight: 700; color: #374151; }
.ra-color-option__price .woocommerce-Price-amount { font-size: 12px; }
.ra-color-option__stock { font-size: 11px; font-weight: 600; }
.ra-color-option__stock.in { color: #16a34a; }
.ra-color-option__stock.out { color: #9ca3af; }
.ra-color-option__check {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e2d5a;
    margin-left: auto;
    flex-shrink: 0;
}
/* Variation price area hidden — price shown per row in dropdown */
.ra-variation-price { display: none; }

/* ── MOBILE FILTER BUTTON ────────────────────────────────── */
.ra-filter-toggle-btn {
    display: none; align-items: center; gap: 8px; padding: 10px 16px;
    background: #1e2d5a; color: #fff; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.ra-filter-toggle-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ra-filter-overlay {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 99998;
}
.ra-filter-overlay.open { display: block; }

/* ── MOBILE SIDEBAR FOOTER (Show Results) ────────────────────────────── */
.ra-sidebar__mobile-footer {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 10;
    flex-shrink: 0;
}
.ra-show-results-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #1e2d5a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s;
}
.ra-show-results-btn:hover { background: #c9a84c; color: #1a1a2e; }
.ra-sidebar__mobile-header {
    display: none; align-items: center; justify-content: space-between;
    padding: 16px 18px; background: #1e2d5a; color: #fff;
    position: sticky; top: 0; z-index: 10; flex-shrink: 0;
    border-bottom: 3px solid #c9a84c;
}
.ra-sidebar__mobile-header h3 {
    font-size: 15px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; margin: 0; color: #fff;
}
.ra-sidebar__close {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 20px; color: #fff;
    transition: background 0.2s;
}
.ra-sidebar__close:hover { background: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ra-shop-wrap { grid-template-columns: 220px 1fr !important; gap: 14px !important; }
}
@media (max-width: 768px) {
    .ra-shop-wrap { grid-template-columns: 1fr !important; padding: 12px !important; }
    .ra-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background: #fff !important;
        z-index: 99999 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.25s ease !important;
        visibility: hidden !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .ra-sidebar.open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }
    /* Child padding handled by scroll-body in shop-filters.css */
    .ra-sidebar__mobile-header {
        display: flex !important;
        position: static !important;
        flex-shrink: 0 !important;
        background: #fff !important;
        color: #111 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    .ra-sidebar__mobile-footer {
        display: flex !important;
        position: static !important;
        flex-shrink: 0 !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        background: #fff !important;
        border-top: 1px solid #e5e7eb !important;
        margin-top: auto !important;
    }
    .ra-filter-toggle-btn { display: flex !important; }
    .ra-mobile-filter-bar { display: flex !important; }
    /* Mobile widget styling — flat inside drawer, no horizontal margin */
    .ra-sidebar-widget { border-radius: 0 !important; border-left: none !important; border-right: none !important; border-top: none !important; border-bottom: 1px solid #e5e7eb !important; margin: 0 !important; }
    .ra-sidebar-widget__title { border-radius: 0 !important; }
    .ra-sidebar-widget--collapsible.open .ra-sidebar-widget__body,
    .ra-sidebar-widget__body { border-radius: 0 !important; }
    .ra-sidebar-widget--collapsible:not(.open) .ra-sidebar-widget__title { border-radius: 0 !important; }
    .ra-sidebar-widget--toggle { margin: 0 !important; border-radius: 0 !important; }
    .ra-sidebar-widget--ca .ra-sidebar-widget__body { padding: 12px 16px 14px !important; }
    .ra-sidebar-widget--ca .ra-toggle-row { display: flex !important; align-items: center !important; justify-content: space-between !important; }
    .ra-sidebar-widget--ca {
        margin: 0 !important;
        background: linear-gradient(135deg, #0f1a35 0%, #1a2748 50%, #1e2d5a 100%) !important;
        border: 1.5px solid rgba(201,168,76,0.5) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .ra-sidebar-widget--ca .ra-toggle-label--ca {
        color: #e8d5a3 !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
    }
    .ra-sidebar-widget--ca .ra-ca-filter-sub {
        color: rgba(201,168,76,0.85) !important;
        font-size: 10.5px !important;
    }
    .ra-sidebar-widget--ca .ra-switch input:checked + .ra-switch__slider {
        background: #22c55e !important;
        box-shadow: 0 0 10px rgba(34,197,94,0.5) !important;
    }
    .ra-sidebar-widget--ca .ra-sidebar-widget__body::after {
        color: rgba(201,168,76,0.6) !important;
        border-top-color: rgba(201,168,76,0.2) !important;
    }
    /* Filter lists on mobile expand fully — no internal scroll, main drawer scrolls */
    .ra-filter-list { max-height: none !important; overflow-y: visible !important; }
    .ra-filter-list--no-scroll { max-height: none !important; overflow-y: visible !important; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   CONVERSION OPTIMIZATION — Low Stock · Bestseller · New · Sticky ATC
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Badge base (existing .ra-badge already styled, these are additions) ── */
.ra-badge--low-stock {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #fff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 6px rgba(217,119,6,0.4) !important;
    animation: ra-pulse-amber 2s ease-in-out infinite;
}
@keyframes ra-pulse-amber {
    0%, 100% { box-shadow: 0 2px 6px rgba(217,119,6,0.4); }
    50%       { box-shadow: 0 2px 12px rgba(217,119,6,0.7); }
}

.ra-badge--bestseller {
    background: linear-gradient(135deg, #1e2d5a, #2a3f7e) !important;
    color: #c9a84c !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px !important;
    border: 1px solid rgba(201,168,76,0.3) !important;
}

.ra-badge--new {
    background: linear-gradient(135deg, #c9a84c, #e6c86e) !important;
    color: #1a1a2e !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

/* ── Sticky Add to Cart Bar (mobile only) ── */
.ra-sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #fff;
    border-top: 2px solid #c9a84c;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    padding: env(safe-area-inset-bottom, 0) 0 0;
}
.ra-sticky-atc--visible {
    transform: translateY(0);
}
.ra-sticky-atc__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
    max-width: 600px;
    margin: 0 auto;
}
.ra-sticky-atc__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ra-sticky-atc__name {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ra-sticky-atc__price {
    font-size: 16px;
    font-weight: 800;
    color: #1e2d5a;
}
.ra-sticky-atc__price .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 800;
    color: #1e2d5a;
}
.ra-sticky-atc__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0e3ee;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.ra-sticky-atc__qty .ra-qty-btn {
    width: 32px;
    height: 36px;
    background: #f0f2f8;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #1e2d5a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ra-sticky-atc__qty .ra-qty-input {
    width: 36px;
    height: 36px;
    border: none;
    border-left: 1.5px solid #e0e3ee;
    border-right: 1.5px solid #e0e3ee;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1e2d5a;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
}
.ra-sticky-atc__qty .ra-qty-input::-webkit-inner-spin-button,
.ra-sticky-atc__qty .ra-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ra-sticky-atc__btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #c9a84c, #e6c86e);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(201,168,76,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ra-sticky-atc__btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 6px rgba(201,168,76,0.3);
}

/* Hide sticky bar on desktop */
@media (min-width: 769px) {
    .ra-sticky-atc { display: none !important; }
}

/* ── Product card badge layout — stack vertically ── */
.ra-product-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}


/* ══════════════════════════════════════════════════════════════════════════════
   ENHANCED TRUST BADGES
   ══════════════════════════════════════════════════════════════════════════════ */
.ra-trust-badges--enhanced {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 10px !important;
    padding: 16px 0 !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin: 16px 0 !important;
}
.ra-trust-badges--enhanced .ra-trust-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: #f8f9fc !important;
    border-radius: 8px !important;
    border: 1px solid #e8edf4 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.ra-trust-badges--enhanced .ra-trust-badge:hover {
    border-color: rgba(201,168,76,0.4) !important;
    box-shadow: 0 2px 8px rgba(30,45,90,0.06) !important;
}
.ra-trust-badge__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e2d5a, #2a3f7e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ra-trust-badge__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ra-trust-badge__text strong {
    font-size: 12px;
    font-weight: 700;
    color: #1e2d5a;
    line-height: 1.3;
}
.ra-trust-badge__text span {
    font-size: 10.5px;
    color: #6b7280;
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NOTIFY ME WHEN BACK IN STOCK
   ══════════════════════════════════════════════════════════════════════════════ */
.ra-notify-wrap {
    background: linear-gradient(135deg, #f8f9fc, #eef0f8);
    border: 1.5px solid #e0e3ee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.ra-notify-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #1e2d5a;
    font-size: 15px;
    font-weight: 700;
}
.ra-notify-header svg { flex-shrink: 0; color: #c9a84c; }
.ra-notify-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.5;
}
.ra-notify-input-row {
    display: flex;
    gap: 8px;
}
.ra-notify-email-input {
    flex: 1;
    border: 1.5px solid #e0e3ee;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e2d5a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.ra-notify-email-input:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.ra-notify-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #c9a84c, #e6c86e);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(201,168,76,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ra-notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(201,168,76,0.4);
}
.ra-notify-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FREQUENTLY BOUGHT TOGETHER
   ══════════════════════════════════════════════════════════════════════════════ */
.ra-fbt-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fc, #fff);
    border: 1.5px solid #e8edf4;
    border-radius: 14px;
}
.ra-fbt-section__title {
    font-size: 16px;
    font-weight: 800;
    color: #1e2d5a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ra-fbt-section__title::before {
    content: "🛒";
    font-size: 18px;
}
.ra-fbt-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}
.ra-fbt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e8edf4;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 200px;
    flex: 1;
    position: relative;
    transition: border-color 0.2s;
}
.ra-fbt-item:hover { border-color: rgba(201,168,76,0.5); }
.ra-fbt-item__img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}
.ra-fbt-item__info { flex: 1; min-width: 0; }
.ra-fbt-item__name {
    font-size: 12px;
    font-weight: 600;
    color: #1e2d5a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}
.ra-fbt-item__price {
    font-size: 13px;
    font-weight: 800;
    color: #c9a84c;
}
.ra-fbt-item__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #1e2d5a;
    cursor: pointer;
}
.ra-fbt-plus {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 300;
    align-self: center;
    flex-shrink: 0;
}
.ra-fbt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e2d5a, #2a3f7e);
    border-radius: 10px;
    color: #fff;
    flex-wrap: wrap;
    gap: 10px;
}
.ra-fbt-total__price {
    font-size: 18px;
    font-weight: 800;
    color: #c9a84c;
}
.ra-fbt-total__label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.ra-fbt-add-all {
    background: linear-gradient(135deg, #c9a84c, #e6c86e);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(201,168,76,0.3);
    transition: transform 0.15s;
}
.ra-fbt-add-all:hover { transform: translateY(-1px); }

@media (max-width: 600px) {
    .ra-fbt-items { flex-direction: column; }
    .ra-fbt-plus { display: none; }
    .ra-trust-badges--enhanced { grid-template-columns: 1fr 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTER SIDEBAR — OVERALL POLISH & DELIGHT
   Makes the filter feel premium, inviting, and conversion-focused
═══════════════════════════════════════════════════════════════════════════ */
/* ra-sidebar-overall-polish — marker class for detection */

/* Sidebar container */
.ra-sidebar {
    background: #f8f9fc !important;
    border-right: 1px solid #e8edf4 !important;
}

/* Each widget card */
.ra-sidebar-widget {
    background: #fff !important;
    border: 1px solid #eaecf4 !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 4px rgba(30,45,90,0.06) !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s !important;
}
.ra-sidebar-widget:hover {
    box-shadow: 0 3px 10px rgba(30,45,90,0.10) !important;
}

/* Widget title / header button */
.ra-sidebar-widget__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 11px 14px !important;
    background: linear-gradient(135deg, #1e2d5a 0%, #263a78 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    border-radius: 0 !important;
    transition: background 0.2s !important;
}
.ra-sidebar-widget__title:hover {
    background: linear-gradient(135deg, #263a78 0%, #2f4a96 100%) !important;
}
.ra-sidebar-widget__title span {
    color: #fff !important;
}
/* Gold accent dot before title */
.ra-sidebar-widget__title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #c9a84c;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(201,168,76,0.5);
}
/* Chevron arrow */
.ra-widget-chevron {
    color: rgba(255,255,255,0.7) !important;
    transition: transform 0.25s !important;
    flex-shrink: 0 !important;
}

/* Widget body padding */
.ra-sidebar-widget__body {
    padding: 12px 14px !important;
}

/* Filter items — checkboxes */
.ra-filter-item label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px 6px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    font-size: 12.5px !important;
    color: #374151 !important;
}
.ra-filter-item label:hover {
    background: #f0f2f8 !important;
    color: #1e2d5a !important;
}
.ra-filter-item input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    accent-color: #1e2d5a !important;
    flex-shrink: 0 !important;
}
.ra-filter-item:has(input:checked) label {
    background: #eef0f8 !important;
    color: #1e2d5a !important;
    font-weight: 600 !important;
}

/* Filter count badges */
.ra-filter-count {
    margin-left: auto !important;
    font-size: 10px !important;
    color: #9ca3af !important;
    background: #f3f4f6 !important;
    padding: 1px 6px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}
.ra-filter-item:has(input:checked) .ra-filter-count {
    background: #1e2d5a !important;
    color: #fff !important;
}

/* Apply/Filter button */
.ra-filter-apply-btn {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px !important;
    background: linear-gradient(135deg, #c9a84c, #e6c86e) !important;
    color: #1a1a2e !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 6px rgba(201,168,76,0.3) !important;
}
.ra-filter-apply-btn:hover {
    background: linear-gradient(135deg, #e6c86e, #f0d98a) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(201,168,76,0.4) !important;
}
.ra-filter-apply-btn:active {
    transform: translateY(0) !important;
}

/* Active filter chips / clear button */
.ra-active-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 8px 14px !important;
    background: #fafbfe !important;
    border-bottom: 1px solid #eaecf4 !important;
}
.ra-active-filter-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #eef0f8 !important;
    border: 1px solid #d4d9ee !important;
    color: #1e2d5a !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}
.ra-active-filter-chip:hover {
    background: #1e2d5a !important;
    color: #fff !important;
    border-color: #1e2d5a !important;
}

/* Search inside filter */
.ra-filter-search {
    width: 100% !important;
    padding: 7px 10px !important;
    border: 1.5px solid #e0e3ee !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    color: #1e2d5a !important;
    outline: none !important;
    margin-bottom: 8px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fafbfe !important;
}
.ra-filter-search:focus {
    border-color: #c9a84c !important;
    box-shadow: 0 0 0 2px rgba(201,168,76,0.12) !important;
}

/* "Show more" toggle */
.ra-filter-show-more {
    font-size: 11px !important;
    color: #c9a84c !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    transition: background 0.15s !important;
}
.ra-filter-show-more:hover {
    background: #fdf6e3 !important;
}

@media (max-width: 768px) {
    .ra-sidebar-widget__title { padding: 12px 16px !important; font-size: 12px !important; }
    .ra-sidebar-widget__body { padding: 12px 16px !important; }
}
