/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --primary: #015298;
    --secondary: #b02a23;
    --yellow: #ffd500;
    --dark: #222222;
    --light: #f7f7f7;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

/* ==========================================
   2. GLOBAL BUTTONS 
   ========================================== */
.department-btn, .search-btn, .add-cart-btn, .shop-btn, .vehicle-btn, .btn-search {
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.department-btn, .search-btn, .add-cart-btn, .shop-btn {
    background: var(--primary);
    color: #fff;
}

    .department-btn:hover, .search-btn:hover, .add-cart-btn:hover, .shop-btn:hover {
        background: #1972bf;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(1, 82, 152, 0.3);
    }


    .department-btn:active, .search-btn:active, .add-cart-btn:active, .shop-btn:active, .vehicle-btn:active, .btn-search:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* ==========================================
   3. HEADER & NAVBAR
   ========================================== */
.logo {
    font-size: 42px;
    font-weight: 800;
}

    .logo .orange {
        color: var(--primary);
    }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    min-height: 70px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 18px !important;
    transition: all .3s ease;
}

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        color: var(--primary);
    }

.account-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-link, .cart-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease;
}

    .account-link:hover, .cart-link:hover {
        color: var(--primary);
    }

    .account-link i, .cart-link i {
        font-size: 18px;
    }


/* ==========================================
   SEARCH STRIP (shared across all pages via _Layout.cshtml)
   ========================================== */
.search-strip {
    background: #f4f4f4;
    padding: 15px 0;
}

.department-btn, .vehicle-btn {
    height: 50px;
}

/* Ensure vehicle button text stays on one line and gracefully truncates */
.vehicle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* space between icon and text */
    white-space: nowrap; /* prevent wrapping to multiple lines */
    overflow: hidden; /* hide overflow when text too long */
    text-overflow: ellipsis; /* show ellipsis for overflow */
    padding: 0 12px; /* keep some horizontal padding */
    box-sizing: border-box;
    background: var(--secondary);
    color: #fff;
}

/* Slight adjustment on very small screens */
@media (max-width: 576px) {
    .vehicle-btn {
        gap: 6px;
        padding: 0 8px;
        font-size: 0.92rem;
    }
}

    .vehicle-btn:hover {
        background: #b93935;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
    }

.search-box {
    display: flex;
    width: 100%;
}

    .search-box input {
        flex: 1;
        min-width: 0;
        height: 50px;
        border-radius: 0;
        margin-right: 20px;
    }

.search-btn {
    flex: 0 0 140px;
    width: 140px;
    height: 50px;
}


/* ==========================================
    FOOTER
   ========================================== */
.site-footer {
    background: #1e1e1e;
    color: #ccc;
    margin-top: 80px;

}
    .site-footer .container {
        padding-top: 20px;        
    }
    .site-footer .footer-bottom {
        padding-bottom: 20px;
        background: var(--secondary);
        text-align: center;
        color: #fff;
        font-size: 14px;
    }

    .site-footer h5 {
        color: #fff;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .site-footer p {
        color: #aaa;
        line-height: 1.8;
    }

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li, .footer-contact li {
        margin-bottom: 12px;
    }

    .footer-links a, .footer-contact a {
        color: #ffffff;
        text-decoration: none;
        transition: all .3s ease;
    }

        .footer-links a:hover, .footer-contact a:hover {
            color: var(--primary);
        }

    .footer-contact i {
        color: var(--primary);
        margin-right: 10px;
    }



/* ==========================================
   10. MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-text {
        padding-left: 0;
        text-align: center;
        margin-top: 40px;
    }

    .account-cart {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 15px;
        width: 100%;
    }

    .account-link, .cart-link {
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .service-features {
        padding: 20px 0;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .category-carousel .owl-nav {
        position: static;
        text-align: center;
        margin-top: 15px;
    }
}
