/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --primary: #015298;
    --secondary: #b02a23;
    --yellow: #ffd500;
    --dark: #222222;
    --light: #f7f7f7;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

/* ==========================================
   1b. UNIFIED FORM CONTROL SIZING
   Ensures labels, inputs, selects and textareas render at the same
   font size across all TioB2C pages (Login, Registration, Checkout,
   Payment, Addresses, AccountDetails, etc.), regardless of page-specific
   CSS or Bootstrap size modifiers (form-control-lg / form-select-lg).
   ========================================== */
label,
.form-label {
    font-size: .9rem;
}

.form-control,
.form-select,
.form-control-lg,
.form-select-lg {
    font-size: .95rem;
}

/* ==========================================
   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;
    }

/* Wraps the cart icon so the count bubble (.cq) can be positioned
   relative to just the icon, at its top-right corner. */
.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cart item-count bubble, anchored to the top-right of the cart icon. */
.cq {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

    /* Hide the bubble entirely when empty (cart count is 0) instead of
       showing an empty circle. */
    .cq:empty {
        display: none;
    }

/* ==========================================
   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;
}
    .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);
        }

/* Quick Links split across 2 columns so the footer doesn't grow too tall as
   more policy links are added. Scoped to .footer-links-2col so the contact
   list (footer-contact) and any other footer-links usage are unaffected. */
.footer-links-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
}
