/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/
/* =============================================================================
   PLUTOPARTS LUXURY AUTOMOTIVE DARK PALETTE & UI
   ============================================================================= */

:root {
    --pluto-bg: #0b0c10;
    --pluto-surface: #14171d;
    --pluto-card: #1a1e24;
    --pluto-border: #2a2f3a;
    --pluto-text-main: #f3f4f6;
    --pluto-text-muted: #9ca3af;
    --pluto-accent: #3b82f6; /* Modern track blue */
    --pluto-accent-hover: #2563eb;
    --pluto-badge-bg: #10b981;
}

/* Global Body & Backgrounds */
body {
    background-color: var(--pluto-bg) !important;
    color: var(--pluto-text-main) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.01em;
}

/* Headers & Titles */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar & Header Overhaul */
.navbar, header#wrapper-navbar {
    background-color: rgba(11, 12, 16, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pluto-border);
}

.navbar .nav-link {
    color: var(--pluto-text-muted) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: #ffffff !important;
}

/* -----------------------------------------------------------------------------
   YMM SELECTOR BOX
   ----------------------------------------------------------------------------- */
.ymm-selector-box {
    background: linear-gradient(145deg, #161920 0%, #101217 100%) !important;
    border: 1px solid var(--pluto-border) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7) !important;
}

.ymm-selector-box h4 {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: #ffffff !important;
}

/* Dropdown Inputs */
.ymm-selector-box .form-select {
    background-color: var(--pluto-surface) !important;
    color: #ffffff !important;
    border: 1px solid var(--pluto-border) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ymm-selector-box .form-select:focus {
    border-color: var(--pluto-accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.ymm-selector-box .form-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Submit Filter Button */
.ymm-selector-box .btn-primary {
    background-color: var(--pluto-accent) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.ymm-selector-box .btn-primary:hover:not(:disabled) {
    background-color: var(--pluto-accent-hover) !important;
    transform: translateY(-1px);
}

.ymm-selector-box .btn-primary:disabled {
    background-color: #262b35 !important;
    color: #6b7280 !important;
    border: none;
}

/* -----------------------------------------------------------------------------
   WOOCOMMERCE PRODUCT CARDS & GRID
   ----------------------------------------------------------------------------- */
ul.products {
    margin-top: 1.5rem !important;
}

ul.products li.product {
    background: var(--pluto-card) !important;
    border: 1px solid var(--pluto-border) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #3e4554 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Image */
ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 1rem !important;
    object-fit: cover;
    background: #0f1115;
}

/* Product Titles */
ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

/* Price */
ul.products li.product .price {
    color: #e5e7eb !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

ul.products li.product .price del {
    color: var(--pluto-text-muted) !important;
    font-size: 0.9rem;
}

/* Fitment Badges */
.badge.bg-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.badge.bg-secondary {
    background-color: rgba(156, 163, 175, 0.1) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(156, 163, 175, 0.2);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

/* Add to Cart Button */
ul.products li.product .button {
    background-color: var(--pluto-surface) !important;
    color: #ffffff !important;
    border: 1px solid var(--pluto-border) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

ul.products li.product .button:hover {
    background-color: var(--pluto-accent) !important;
    border-color: var(--pluto-accent) !important;
    color: #ffffff !important;
}

/* Active Vehicle Banner (Shop Top) */
.active-vehicle-banner {
    background: #151820 !important;
    border: 1px solid var(--pluto-border) !important;
    border-radius: 10px !important;
}