/**
 * REX Change - Premium Design System
 * Custom CSS for precious metals e-commerce (WordPress + WooCommerce + Elementor + Jet Woo Builder)
 *
 * Palette:
 *   --rex-bg:          #0a0a0a  (primary background)
 *   --rex-bg-card:     #111111  (card / surface)
 *   --rex-bg-elevated: #1a1a1a  (elevated surface)
 *   --rex-gold:        #C9A84C  (primary accent)
 *   --rex-gold-light:  #d4b96a  (hover / highlight)
 *   --rex-gold-dark:   #a8893d  (pressed / subtle)
 *   --rex-text:        #ffffff  (primary text)
 *   --rex-text-muted:  #a0a0a0  (secondary text)
 *   --rex-border:      #222222  (default border)
 *   --rex-border-gold: rgba(201,168,76,.25)  (subtle gold border)
 *
 * Author: BD Webhut / Elano
 * Version: 1.0.0
 */

:root {
    --rex-bg:          #0a0a0a;
    --rex-bg-card:     #111111;
    --rex-bg-elevated: #1a1a1a;
    --rex-gold:        #C9A84C;
    --rex-gold-light:  #d4b96a;
    --rex-gold-dark:   #a8893d;
    --rex-text:        #ffffff;
    --rex-text-muted:  #a0a0a0;
    --rex-border:      #222222;
    --rex-border-gold: rgba(201,168,76,.25);
    --rex-radius:      6px;
    --rex-transition:  .3s cubic-bezier(.25,.46,.45,.94);
}


/* ==========================================================================
   1. PRODUCT CARDS (CATALOG / SHOP)
   Jet Woo Builder grid + WooCommerce standard loop
   ========================================================================== */

/* --- Card container --- */
.jet-woo-products__inner-box,
ul.products li.product {
    background: var(--rex-bg-card);
    border: 1px solid var(--rex-border);
    border-radius: var(--rex-radius);
    overflow: hidden;
    transition: transform var(--rex-transition),
                border-color var(--rex-transition),
                box-shadow var(--rex-transition);
}

.jet-woo-products__inner-box:hover,
ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: var(--rex-border-gold);
    box-shadow: 0 8px 30px rgba(201,168,76,.08),
                0 2px 8px rgba(0,0,0,.4);
}

/* --- Product image --- */
.jet-woo-product-thumbnail,
ul.products li.product .attachment-woocommerce_thumbnail,
ul.products li.product img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform var(--rex-transition), opacity var(--rex-transition);
}

.jet-woo-products__inner-box:hover .jet-woo-product-thumbnail img,
ul.products li.product:hover img {
    transform: scale(1.04);
    opacity: .92;
}

.jet-woo-product-thumbnail {
    overflow: hidden;
    position: relative;
    background: var(--rex-bg);
}

/* Image overlay on hover */
.jet-woo-product-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5) 100%);
    opacity: 0;
    transition: opacity var(--rex-transition);
    pointer-events: none;
}

.jet-woo-products__inner-box:hover .jet-woo-product-thumbnail::after {
    opacity: 1;
}

/* --- Product title --- */
.jet-woo-product-title a,
ul.products li.product .woocommerce-loop-product__title,
.jet-woo-builder-archive-product-title a {
    color: var(--rex-text) !important;
    font-weight: 500;
    letter-spacing: .02em;
    transition: color var(--rex-transition);
    text-decoration: none;
}

.jet-woo-product-title a:hover,
.jet-woo-builder-archive-product-title a:hover {
    color: var(--rex-gold) !important;
}

/* --- Product price (gold, prominent) --- */
.jet-woo-product-price,
.jet-woo-builder-archive-product-price,
ul.products li.product .price,
ul.products li.product .price .woocommerce-Price-amount {
    color: var(--rex-gold) !important;
    font-weight: 600;
    font-size: 1.15em;
    letter-spacing: .01em;
}

/* Live price wrapper in catalog */
._rex_net_price_wrap ._rex_net_live_price {
    color: var(--rex-gold) !important;
    font-weight: 600;
}

/* --- Add to Cart button (catalog) --- */
.jet-woo-product-button .button,
.jet-woo-builder-archive-add-to-cart .button,
ul.products li.product .button,
ul.products li.product a.add_to_cart_button {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    border: 1px solid var(--rex-gold) !important;
    border-radius: var(--rex-radius);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 10px 22px;
    transition: background var(--rex-transition),
                color var(--rex-transition),
                border-color var(--rex-transition),
                box-shadow var(--rex-transition);
    cursor: pointer;
}

.jet-woo-product-button .button:hover,
.jet-woo-builder-archive-add-to-cart .button:hover,
ul.products li.product .button:hover,
ul.products li.product a.add_to_cart_button:hover {
    background: transparent !important;
    color: var(--rex-gold) !important;
    border-color: var(--rex-gold) !important;
    box-shadow: 0 0 15px rgba(201,168,76,.15);
}

/* --- Product content area padding --- */
.jet-woo-products__item-content {
    padding: 14px 16px 18px;
}

/* --- Sale / custom badges --- */
.jet-woo-product-badges .onsale,
.jet-woo-product-badge,
span.onsale {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 4px 10px;
}


/* ==========================================================================
   2. MINI-CART (SIDEBAR / DROPDOWN)
   Elementor Menu Cart + WooCommerce mini-cart
   ========================================================================== */

/* --- Cart dropdown container --- */
.elementor-menu-cart__container,
.widget_shopping_cart_content {
    background: var(--rex-bg-card) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: var(--rex-radius);
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
}

/* --- Cart header (if present) --- */
.elementor-menu-cart__header {
    border-bottom: 1px solid var(--rex-border) !important;
}

/* --- Individual cart items --- */
.woocommerce-mini-cart-item,
.mini_cart_item {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--rex-border) !important;
    transition: background var(--rex-transition);
}

.woocommerce-mini-cart-item:hover,
.mini_cart_item:hover {
    background: var(--rex-bg-elevated);
}

/* Cart item product name */
.woocommerce-mini-cart-item a:not(.remove_from_cart_button),
.mini_cart_item a:not(.remove) {
    color: var(--rex-text) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--rex-transition);
}

.woocommerce-mini-cart-item a:not(.remove_from_cart_button):hover {
    color: var(--rex-gold) !important;
}

/* Cart item price */
.woocommerce-mini-cart-item .woocommerce-Price-amount,
.mini_cart_item .woocommerce-Price-amount {
    color: var(--rex-gold) !important;
    font-weight: 600;
}

/* Cart item quantity */
.woocommerce-mini-cart-item .quantity,
.mini_cart_item .quantity {
    color: var(--rex-text-muted) !important;
}

/* Remove button */
.woocommerce-mini-cart-item .remove_from_cart_button,
.woocommerce-mini-cart-item a.remove {
    color: var(--rex-text-muted) !important;
    transition: color var(--rex-transition);
}

.woocommerce-mini-cart-item .remove_from_cart_button:hover,
.woocommerce-mini-cart-item a.remove:hover {
    color: #e74c3c !important;
    background: transparent !important;
}

/* --- Cart total --- */
.woocommerce-mini-cart__total,
.elementor-menu-cart__subtotal {
    border-top: 1px solid var(--rex-border-gold) !important;
    padding: 14px 0 !important;
    color: var(--rex-text) !important;
    font-weight: 600;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount,
.elementor-menu-cart__subtotal .woocommerce-Price-amount {
    color: var(--rex-gold) !important;
    font-size: 1.1em;
}

/* --- Cart action buttons --- */
.woocommerce-mini-cart__buttons a,
.elementor-menu-cart__footer-buttons a {
    border-radius: var(--rex-radius) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 10px 18px !important;
    transition: all var(--rex-transition) !important;
    text-align: center;
}

/* View cart button (outline style) */
.woocommerce-mini-cart__buttons a.wc-forward:first-child,
.elementor-button--view-cart {
    background: transparent !important;
    color: var(--rex-gold) !important;
    border: 1px solid var(--rex-gold) !important;
}

.woocommerce-mini-cart__buttons a.wc-forward:first-child:hover,
.elementor-button--view-cart:hover {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
}

/* Checkout button (filled gold) */
.woocommerce-mini-cart__buttons a.checkout,
.elementor-button--checkout {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    border: 1px solid var(--rex-gold) !important;
}

.woocommerce-mini-cart__buttons a.checkout:hover,
.elementor-button--checkout:hover {
    background: var(--rex-gold-light) !important;
    box-shadow: 0 0 20px rgba(201,168,76,.2);
}

/* Cart item images */
.woocommerce-mini-cart-item img,
.mini_cart_item img {
    border-radius: 4px !important;
    border: 1px solid var(--rex-border) !important;
}

/* --- Empty cart message --- */
.woocommerce-mini-cart__empty-message {
    color: var(--rex-text-muted) !important;
    text-align: center;
    padding: 30px 10px !important;
    font-style: italic;
}


/* ==========================================================================
   3. SINGLE PRODUCT PAGE
   ========================================================================== */

/* --- Main price (large, gold) --- */
.single-product .price,
.single-product .woocommerce-Price-amount,
.single-product p.price,
.jet-woo-builder .price,
.elementor-widget-woocommerce-product-price .price {
    color: var(--rex-gold) !important;
    font-size: 1.6em !important;
    font-weight: 700;
    letter-spacing: .01em;
}

/* Live price on single product */
.single-product ._rex_net_price_wrap ._rex_net_live_price {
    color: var(--rex-gold) !important;
    font-size: 1.6em !important;
    font-weight: 700;
}

/* --- Add to Cart button (single) --- */
.single-product .single_add_to_cart_button,
.elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button,
.single-product button.button.alt {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    border: 2px solid var(--rex-gold) !important;
    border-radius: var(--rex-radius);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 14px 36px;
    transition: all var(--rex-transition);
    position: relative;
    overflow: hidden;
}

.single-product .single_add_to_cart_button:hover,
.elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button:hover,
.single-product button.button.alt:hover {
    background: transparent !important;
    color: var(--rex-gold) !important;
    box-shadow: 0 0 25px rgba(201,168,76,.15);
}

/* Gold shimmer on hover */
.single-product .single_add_to_cart_button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transition: left .5s ease;
    pointer-events: none;
}

.single-product .single_add_to_cart_button:hover::after {
    left: 100%;
}

/* --- Buy Now button --- */
.rex-buy-now-btn,
a.rex-buy-now-btn,
.single-product .buy-now-button,
.single-product a[href*="buy-now"] {
    background: transparent !important;
    color: var(--rex-gold) !important;
    border: 2px solid var(--rex-gold) !important;
    border-radius: var(--rex-radius);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 14px 36px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all var(--rex-transition);
}

.rex-buy-now-btn:hover,
a.rex-buy-now-btn:hover,
.single-product .buy-now-button:hover,
.single-product a[href*="buy-now"]:hover {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    box-shadow: 0 0 25px rgba(201,168,76,.15);
}

/* --- Quantity input --- */
.single-product .quantity .qty,
.elementor-widget-woocommerce-product-add-to-cart .qty {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: var(--rex-radius);
    text-align: center;
    font-weight: 600;
    transition: border-color var(--rex-transition);
}

.single-product .quantity .qty:focus {
    border-color: var(--rex-gold) !important;
    outline: none;
}

/* --- Product badges (Livraison, Emballage, Paiement) --- */
.single-product .product-badge,
.single-product .jet-woo-product-badge,
.single-product .elementor-icon-box-wrapper,
.single-product [class*="badge"],
.single-product .elementor-widget-icon-box .elementor-icon-box-content {
    transition: transform var(--rex-transition);
}

/* Elementor icon-box badges (commonly used for Livraison/Emballage/Paiement) */
.single-product .elementor-widget-icon-box {
    background: var(--rex-bg-card);
    border: 1px solid var(--rex-border);
    border-radius: var(--rex-radius);
    padding: 16px;
    transition: border-color var(--rex-transition), transform var(--rex-transition);
}

.single-product .elementor-widget-icon-box:hover {
    border-color: var(--rex-border-gold);
    transform: translateY(-2px);
}

.single-product .elementor-widget-icon-box .elementor-icon {
    color: var(--rex-gold) !important;
}

.single-product .elementor-widget-icon-box .elementor-icon-box-title {
    color: var(--rex-text) !important;
    font-weight: 600;
    font-size: 14px;
}

.single-product .elementor-widget-icon-box .elementor-icon-box-description {
    color: var(--rex-text-muted) !important;
    font-size: 13px;
}

/* --- Product tabs --- */
.single-product .woocommerce-tabs,
.jet-single-tabs__wrap {
    border-color: var(--rex-border) !important;
}

.single-product .woocommerce-tabs ul.tabs li a,
.jet-single-tabs__wrap .jet-single-tabs__nav-item {
    color: var(--rex-text-muted) !important;
    transition: color var(--rex-transition), border-color var(--rex-transition);
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.jet-single-tabs__wrap .jet-single-tabs__nav-item.active-tab {
    color: var(--rex-gold) !important;
    border-bottom-color: var(--rex-gold) !important;
}

/* --- Product meta (SKU, categories, tags) --- */
.single-product .product_meta,
.single-product .product_meta > span {
    color: var(--rex-text-muted) !important;
    font-size: 13px;
}

.single-product .product_meta a {
    color: var(--rex-text-muted) !important;
    text-decoration: none;
    transition: color var(--rex-transition);
}

.single-product .product_meta a:hover {
    color: var(--rex-gold) !important;
}

/* --- Fix: Category/Tag label spacing bug --- */
/* Fixes "Catégorie : PlaquetteÉtiquette : OR" rendering */
.single-product .product_meta > span {
    display: block;
    margin-bottom: 4px;
}

.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
    display: block;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Ensure proper word spacing after colon */
.single-product .product_meta .posted_in::after,
.single-product .product_meta .tagged_as::after {
    content: '';
    display: block;
}

/* --- Related / Upsell products --- */
.single-product .related.products h2,
.single-product .upsells.products h2 {
    color: var(--rex-text) !important;
    font-weight: 600;
    letter-spacing: .02em;
    position: relative;
    padding-bottom: 12px;
}

.single-product .related.products h2::after,
.single-product .upsells.products h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--rex-gold);
}


/* ==========================================================================
   4. GENERAL ELEMENTS
   ========================================================================== */

/* --- Breadcrumb --- */
.woocommerce-breadcrumb,
.elementor-widget-woocommerce-breadcrumb {
    color: var(--rex-text-muted) !important;
    font-size: 12px !important;
    opacity: .7;
    letter-spacing: .02em;
}

.woocommerce-breadcrumb a {
    color: var(--rex-text-muted) !important;
    text-decoration: none;
    transition: color var(--rex-transition);
}

.woocommerce-breadcrumb a:hover {
    color: var(--rex-gold) !important;
    opacity: 1;
}

/* Separator styling */
.woocommerce-breadcrumb {
    padding: 8px 0 !important;
}

/* --- Floating cart button (Elementor menu cart toggle) --- */
.elementor-menu-cart__toggle_button,
.elementor-widget-woocommerce-menu-cart .elementor-button {
    background: var(--rex-bg-card) !important;
    color: var(--rex-gold) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: 50px;
    padding: 8px 16px;
    transition: all var(--rex-transition);
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.elementor-menu-cart__toggle_button:hover,
.elementor-widget-woocommerce-menu-cart .elementor-button:hover {
    border-color: var(--rex-border-gold) !important;
    box-shadow: 0 4px 15px rgba(201,168,76,.1);
}

/* Cart count bubble */
.elementor-button-icon-qty,
.elementor-menu-cart__toggle_button .elementor-button-icon-qty {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    font-weight: 700;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
}

/* --- Global link styles --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    transition: all var(--rex-transition);
}

/* --- Notices (WooCommerce) --- */
.woocommerce-message,
.woocommerce-info {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border-top-color: var(--rex-gold) !important;
    border-radius: var(--rex-radius);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--rex-gold) !important;
}

.woocommerce-error {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border-top-color: #e74c3c !important;
    border-radius: var(--rex-radius);
}

/* --- Forms (generic) --- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: var(--rex-radius);
    transition: border-color var(--rex-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--rex-gold) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(201,168,76,.1);
}

/* --- Star ratings --- */
.star-rating span::before,
.star-rating::before {
    color: var(--rex-gold) !important;
}

/* --- Pagination --- */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--rex-bg-card) !important;
    color: var(--rex-text-muted) !important;
    border-color: var(--rex-border) !important;
    transition: all var(--rex-transition);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    border-color: var(--rex-gold) !important;
}

/* --- Sorting dropdown --- */
.woocommerce .woocommerce-ordering select {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: var(--rex-radius);
    padding: 8px 12px;
}


/* ==========================================================================
   5. REX NET LIVE PRICE INTEGRATION
   Premium styling for the live price plugin components
   ========================================================================== */

/* --- Progress bar --- */
._rex_net_bar {
    background: var(--rex-border);
    height: 2px;
    border-radius: 1px;
    margin-top: 6px;
    overflow: hidden;
}

._rex_net_bar_fill {
    background: var(--rex-gold);
    height: 100%;
    border-radius: 1px;
    transition: width .25s linear;
}

/* --- "Live price" info label --- */
._rex_net_info {
    color: var(--rex-text-muted);
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* --- Stale badge --- */
._rex_net_stale_badge {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text-muted) !important;
    border-color: var(--rex-border) !important;
}

/* --- Shimmer loading (override colors for dark theme) --- */
._rex_net_shimmer ._rex_net_loading_text {
    background: linear-gradient(90deg, var(--rex-bg-elevated) 25%, #252525 50%, var(--rex-bg-elevated) 75%) !important;
    background-size: 400px 100% !important;
}

/* --- Unavailable message --- */
._rex_net_unavailable_msg {
    color: var(--rex-text-muted) !important;
}


/* ==========================================================================
   6. CART & CHECKOUT PAGES
   ========================================================================== */

/* --- Cart table --- */
.woocommerce-cart-form table,
.woocommerce table.shop_table {
    border-color: var(--rex-border) !important;
}

.woocommerce table.shop_table th {
    color: var(--rex-text-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--rex-border) !important;
}

.woocommerce table.shop_table td {
    border-top: 1px solid var(--rex-border) !important;
    color: var(--rex-text) !important;
}

/* Cart product name link */
.woocommerce table.shop_table td.product-name a {
    color: var(--rex-text) !important;
    text-decoration: none;
    transition: color var(--rex-transition);
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--rex-gold) !important;
}

/* Cart product price */
.woocommerce table.shop_table td.product-subtotal .woocommerce-Price-amount,
.woocommerce table.shop_table td.product-price .woocommerce-Price-amount {
    color: var(--rex-gold) !important;
    font-weight: 600;
}

/* Cart totals */
.woocommerce .cart_totals h2,
.woocommerce .cart-collaterals h2 {
    color: var(--rex-text) !important;
    font-weight: 600;
}

/* Update cart / coupon buttons */
.woocommerce button[name="update_cart"],
.woocommerce .coupon .button {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: var(--rex-radius);
    transition: all var(--rex-transition);
}

.woocommerce button[name="update_cart"]:hover,
.woocommerce .coupon .button:hover {
    border-color: var(--rex-gold) !important;
    color: var(--rex-gold) !important;
}

/* Proceed to checkout */
.woocommerce a.checkout-button,
.wc-proceed-to-checkout a.checkout-button {
    background: var(--rex-gold) !important;
    color: #0a0a0a !important;
    border-radius: var(--rex-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: all var(--rex-transition);
}

.woocommerce a.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--rex-gold-light) !important;
    box-shadow: 0 0 25px rgba(201,168,76,.15);
}

/* Coupon input */
.woocommerce .coupon input#coupon_code {
    background: var(--rex-bg-elevated) !important;
    color: var(--rex-text) !important;
    border: 1px solid var(--rex-border) !important;
    border-radius: var(--rex-radius);
}

.woocommerce .coupon input#coupon_code:focus {
    border-color: var(--rex-gold) !important;
}


/* ==========================================================================
   7. SCROLLBAR (WebKit)
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--rex-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--rex-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rex-gold-dark);
}


/* ==========================================================================
   8. SELECTION & FOCUS
   ========================================================================== */

::selection {
    background: var(--rex-gold);
    color: #0a0a0a;
}

:focus-visible {
    outline: 2px solid var(--rex-gold);
    outline-offset: 2px;
}


/* ==========================================================================
   9. RESPONSIVE REFINEMENTS
   ========================================================================== */

@media (max-width: 768px) {

    /* Cards: less elevation on mobile */
    .jet-woo-products__inner-box:hover,
    ul.products li.product:hover {
        transform: translateY(-2px);
    }

    /* Single product price */
    .single-product .price,
    .single-product ._rex_net_price_wrap ._rex_net_live_price {
        font-size: 1.3em !important;
    }

    /* ATC button: full width on mobile */
    .single-product .single_add_to_cart_button {
        width: 100%;
        padding: 14px 20px;
    }

    .rex-buy-now-btn,
    a.rex-buy-now-btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* Product meta stacking */
    .single-product .product_meta > span {
        display: block;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {

    /* Tighter card padding */
    .jet-woo-products__item-content {
        padding: 10px 12px 14px;
    }

    /* Smaller catalog buttons */
    .jet-woo-product-button .button,
    ul.products li.product .button {
        font-size: 12px;
        padding: 8px 16px;
    }
}
