/**
 * SOULSHORE V2 — Ruby Accent PREVIEW (evaluation only)
 * ---------------------------------------------------------------------------
 * Deeper ruby applied ONLY to small accents for visual evaluation before
 * deciding whether to make it the global accent.
 *
 *   Primary Ruby : #8B1538   (replaces small-accent uses of #1E3A5F)
 *   Hover Ruby   : #A61E45
 *   Dark Ruby    : #6F0F2B
 *
 * SCOPE — recolored:  badges (non-trust), links, active states,
 *                     selected swatches, small highlights.
 * SCOPE — untouched:  primary buttons, price gradient, success, error,
 *                     trust badges, payment strip.
 *
 * This is an additive override layer (loads last). To turn the preview OFF,
 * remove the `soulshore-ruby-preview` enqueue in functions.php (or delete this
 * file). Nothing else needs to change.
 * ---------------------------------------------------------------------------
 */

:root {
    --accent-ruby:        #8B1538;
    --accent-ruby-hover:  #A61E45;
    --accent-ruby-dark:   #6F0F2B;
}

/* ── Badges (sale / red) — NOT trust badges ─────────────────────────────── */
.badge-red,
.badge-sale {
    background: linear-gradient(135deg, #8B1538 0%, #A61E45 100%) !important;
}

/* PDP discount pill (small highlight badge) */
.spdg-price-discount {
    color: #8B1538 !important;
    background: rgba(139, 21, 56, 0.07) !important;
    border-color: rgba(139, 21, 56, 0.18) !important;
}

/* ── Links — nav, account, cart, review, reset ──────────────────────────── */
.main-nav a:hover,
#site-header .main-nav a:hover,
#site-header.is-scrolled .main-nav a:hover,
.woocommerce table.cart .product-name a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.single-product-page .woocommerce-review-link:hover,
.single-product-page .reset_variations:hover {
    color: #8B1538 !important;
}

/* Nav underline highlight */
.main-nav a::after {
    background: linear-gradient(90deg, #8B1538, #A61E45) !important;
}

/* ── Active states ──────────────────────────────────────────────────────── */
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #8B1538 !important;
}

.product-card-wishlist.active,
.product-card-wishlist:hover {
    background: #8B1538 !important;
}

/* PDP thumbnail active marker */
.single-product-page .pdp-thumb-item.is-active,
.single-product-page .pdp-thumb-item.is-active::after {
    border-color: #8B1538 !important;
    background: #8B1538 !important;
}

/* ── Selected swatches ──────────────────────────────────────────────────── */
/* PDP colour swatch active ring (gap is white now that the canvas is white) */
.spdg-color-swatch.is-active {
    box-shadow:
        0 0 0 2.5px #ffffff,
        0 0 0 4.5px #8B1538,
        0 2px 8px rgba(0, 0, 0, 0.14) !important;
}
.spdg-color-swatch.is-loading::after {
    border-top-color: #8B1538 !important;
}
/* Wishlist heart (selected state) */
.spdg-wish.is-wishlisted .spdg-heart {
    fill: #8B1538 !important;
    stroke: #8B1538 !important;
}

/* ── Small highlights ───────────────────────────────────────────────────── */
/* Focus rings */
:focus-visible {
    outline-color: #8B1538 !important;
}
/* PDP accordion chevron (open / hover) */
.spdg-acc.is-open .spdg-acc__chevron,
.spdg-acc__trigger:hover .spdg-acc__chevron {
    color: #8B1538 !important;
}
/* PDP category pill text */
.spdg-cat-pill {
    color: #8B1538 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTENTIONALLY NOT RECOLORED (protected per brief):
     .btn-primary / .btn-hero-primary / .btn-gold / .btn-secondary
     .single_add_to_cart_button / a.checkout-button / #place_order   (buttons)
     .spdg-price-sale / .spdg-price-mrp::after                        (price gradient)
     .woocommerce-message / success greens                           (success)
     .woocommerce-error                                              (error)
     .pdp-trust-strip / .pdp-trust-chip                              (trust badges)
     #payment ul.payment_methods / .spdg-pay-*                       (payment strip)
   ═══════════════════════════════════════════════════════════════════════════ */
