/*
	Theme Name:     Mobimax Child - Hybrid One FULL
	Theme URI:      https://hybridone.lk
	Description:    Fully customized for Hybrid One (S.D.U.K Motors) - Kesbewa Piliyandala. Hybrid battery, gearbox repair & sales. Includes full corporate homepage, gearbox badges, WhatsApp integration.
	Author:         Hybrid One
	Author URI:     https://www.facebook.com/p/Hybrid-One-100089580920310/
	Version:        3.0
	Template:       mobimax
*/

/* Hybrid One Brand Colors */
:root {
    --hybrid-one-red: #e30613;
    --hybrid-one-black: #111111;
    --hybrid-one-orange: #e30613;
    --hybrid-one-gray: #f5f5f5;
}

/* Logo sizing */
.site-logo img, .logo img, .et-logo img {
    max-height: 60px !important;
    width: auto !important;
}

/* Gearbox Product Card Improvements */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    min-height: 45px;
}
.et-product-badge-gearbox-code {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 2;
}
.et-product-badge-warranty {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e30613;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 2;
}
.et-product-badge-condition {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #27ae60;
    color: #fff;
    padding: 2px 7px;
    font-size: 10px;
    border-radius: 3px;
    z-index: 2;
}
.et-gearbox-meta-loop {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.et-gearbox-meta-loop span {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #eee;
}

/* Single Product Specs Table */
.hybrid-one-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #eee;
}
.hybrid-one-specs-table th {
    background: #f9f9f9;
    text-align: left;
    padding: 10px 15px;
    font-size: 13px;
    width: 35%;
    border-bottom: 1px solid #eee;
}
.hybrid-one-specs-table td {
    padding: 10px 15px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* WhatsApp & Call Buttons */
.hybrid-one-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none !important;
    margin: 10px 5px 10px 0;
    transition: all 0.3s;
}
.hybrid-one-whatsapp-btn:hover { background: #128C7E; transform: translateY(-2px); }
.hybrid-one-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none !important;
    margin: 10px 0;
}
.hybrid-one-lot-badge {
    display: inline-block;
    background: #f1c40f;
    color: #111;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Homepage - Full Corporate */
.hybrid-one-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('images/hybrid-one-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hybrid-one-hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}
.hybrid-one-hero h1 span { color: #e30613; }
.hybrid-one-hero p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}
.hybrid-one-hero .btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    margin: 5px;
}
.btn-primary { background: #e30613; color: #fff !important; }
.btn-dark { background: #fff; color: #111 !important; }

.hybrid-one-search-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    margin: -40px auto 40px;
    position: relative;
    z-index: 10;
    max-width: 1100px;
}
.hybrid-one-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}
.hybrid-one-search-form select, .hybrid-one-search-form button {
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.hybrid-one-search-form button {
    background: #e30613;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.hybrid-one-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.hybrid-one-why-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s;
}
.hybrid-one-why-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.hybrid-one-why-card .icon { font-size: 36px; margin-bottom: 12px; }
.hybrid-one-why-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.hybrid-one-why-card p { font-size: 13px; color: #666; }

.hybrid-one-services {
    background: #f9f9f9;
    padding: 60px 20px;
}
.hybrid-one-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.hybrid-one-service-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #e30613;
}
.hybrid-one-service-card h4 { font-size: 16px; margin-bottom: 8px; }
.hybrid-one-service-card p { font-size: 13px; color: #666; }

.hybrid-one-contact-bar {
    background: #111;
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.hybrid-one-contact-bar a { color: #fff; text-decoration: none; }
.hybrid-one-contact-bar span { margin-right: 15px; }

/* Hide Trim filter */
select[name="trim"], select[name="pa_trim"] { display: none !important; }

/* Low Stock */
.hybrid-one-low-stock {
    background: #ffeaea;
    color: #c0392b;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin: 10px 0;
    border-left: 3px solid #c0392b;
}

/* === HYBRID ONE RED THEME OVERRIDE - V4 === */
:root {
    --main-color: #e30613 !important;
    --primary-color: #e30613 !important;
    --hybrid-one-red: #e30613 !important;
}

/* Override all Mobimax orange elements to red */
a:hover, .et-main-color, .main-color, .color-main,
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale,
.et-product-badge-warranty,
.hybrid-one-search-form button,
.btn-primary,
button, input[type="submit"], .button,
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.et-car-filter button,
.car-filter button {
    background-color: #e30613 !important;
    background: #e30613 !important;
    border-color: #e30613 !important;
}

/* Links and hover */
a { color: #111; }
a:hover { color: #e30613 !important; }

/* Price color */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #e30613 !important;
}

/* Menu active, hover */
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li:hover > a,
.et-header .et-menu > li > a:hover {
    color: #e30613 !important;
}

/* Badge warranty already red, make it stronger */
.et-product-badge-warranty {
    background: #e30613 !important;
}

/* Header top bar - make it red on hover */
.hybrid-one-contact-bar {
    background: #111 !important;
}
.hybrid-one-contact-bar a:hover {
    color: #e30613 !important;
}

/* Buttons hover dark red */
.btn-primary:hover, button:hover, .button:hover {
    background: #b8050f !important;
}

/* WPBakery accent */
.vc_btn3.vc_btn3-color-juicy-pink, .vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat {
    background-color: #e30613 !important;
}

/* Scroll to top, etc */
#scrollUp, .et-scroll-top {
    background: #e30613 !important;
}
