/* TPO Fitment Core - Garage Bar Styles */
.tpo-garage-bar {
	background: #111;
	border-bottom: 2px solid #dd0000;
	padding: 10px 0;
	width: 100%;
    position: relative;
    z-index: 999;
}
.tpo-garage-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.garage-label {
    font-weight: 700;
    text-transform: uppercase;
    color: #dd0000;
    letter-spacing: 1px;
}
.tpo-garage-bar select {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}
.tpo-garage-bar button#tpo-go-btn {
    background: #dd0000;
    color: #fff;
    border: none;
    padding: 8px 20px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.tpo-garage-bar button:disabled {
    background: #444;
    color: #777;
    cursor: not-allowed;
}

/* --- STOREFRONT DARK MODE OVERRIDES (OG Audio Style) --- */

body, #page, .site-content, .entry-content, .storefront-breadcrumb {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Header Base */
.site-header {
    background-color: #000000 !important;
    border-bottom: 3px solid #dd0000 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-bottom: 0 !important;
}

/* Navigation Links */
.main-navigation ul li a, 
.site-title a, 
.site-description {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
}
.main-navigation ul li a:hover {
    color: #dd0000 !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .widget-title {
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links */
a { color: #fff; text-decoration: none; }
a:hover { color: #dd0000 !important; }

/* Buttons */
button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart {
    background-color: #dd0000 !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    transition: background 0.3s;
}
button:hover, .button:hover {
    background-color: #b30000 !important;
}

/* Footer */
.site-footer {
    background-color: #000000 !important;
    border-top: 1px solid #333;
    color: #888;
}

/* Product Cards */
ul.products li.product {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    border-radius: 6px;
    padding: 15px !important;
}
ul.products li.product:hover {
    border-color: #dd0000 !important;
}
ul.products li.product .price {
    color: #dd0000 !important;
    font-weight: bold;
}
.page-template-template-homepage .entry-header { display: none; }

/* --- HEADER LAYOUT REFINEMENTS (OG Audio Style) --- */

@media (min-width: 768px) {
    .site-header .col-full {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
    }

    /* Logo */
    .site-branding {
        flex: 0 0 auto;
        margin-right: 30px;
        margin-bottom: 0 !important;
        float: none !important;
        width: auto !important;
    }

    /* Search Bar - Center and Wide */
    .site-search {
        flex: 1 1 auto;
        float: none !important;
        clear: none !important;
        margin-right: 30px !important;
        width: auto !important;
    }
    
    .site-search .widget_product_search form {
        display: flex;
    }

    .site-search .widget_product_search form input[type=search],
    .site-search .widget_search form input[type=search] {
        width: 100% !important;
        background-color: #fff !important;
        color: #333 !important;
        border: 2px solid #dd0000 !important;
        border-radius: 4px 0 0 4px !important;
        height: 45px !important;
        padding: 10px !important;
    }

    .site-search .widget_product_search form button,
    .site-search .widget_search form button {
        width: 60px !important;
        border-radius: 0 4px 4px 0 !important;
        height: 45px !important;
        background-color: #dd0000 !important;
    }

    /* Header Widget Area (Phone Number) */
    .storefront-header-widget-area {
        flex: 0 0 auto;
        float: none !important;
        margin-right: 20px;
        color: #fff;
        font-weight: bold;
        font-size: 1.2em;
        display: block !important;
    }
    
    .site-header-cart {
        flex: 0 0 auto;
        width: auto !important;
        float: none !important;
    }

    /* Navigation Row */
    .storefront-primary-navigation {
        width: 100% !important;
        flex: 1 0 100%;
        order: 99;
        border-top: 1px solid #333;
        padding-top: 10px;
        margin-top: 15px;
    }
}
