/* =========================================================
   CÀI ĐẶT CHUNG
   ========================================================= */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-variant-ligatures: none;
    background: #f5f5f5;
    color: #222;
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */
top-section {
    background:
        
        linear-gradient(
            120deg,
            #172b46 65%,
            #111827 100%
        );
}

header {
    
    background: 
        radial-gradient(
            circle at 15% 250px,
            rgba(37, 99, 235, 0.35),
            transparent 85%
        ),
        linear-gradient(
        120deg,
        
        #172b46 100%,
        #111827 100%
    );
    overflow: hidden;
    color: white;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 9999;

    
}
.site-logo {
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    width: 300px;
    max-width: 100%;
    max-height: 75px;
    height: auto;
    object-fit: contain;
}

header h1 {font-size: 24px;}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {text-decoration: underline;}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {color: #fbbf24;}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: 
        radial-gradient(
            circle at 85% 250px,
            rgba(37, 99, 235, 0.35),
            transparent 85%
        ),
        linear-gradient(
        120deg,
        
        #172b46 100%,
        #111827 100%);

    color: white;
    text-align: center;
    padding: 30px;
    
}

footer p {margin: 5px;}

/* ==============================
   TRANG SẢN PHẨM
   ============================== */

@media (max-width: 800px) {

    .filter-box {flex-wrap: wrap;}

    .keyword-search {
        width: 100%;
        margin-left: 0;
    }

    .keyword-search input {width: 100%;}

    .brand-menu {width: 360px;}
}





/* ==============================
   KHỐI THÔNG TIN KHÁCH HÀNG
   ============================== */

.order-customer,
.order-products {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.order-customer h3,
.order-products h3 {margin-bottom: 20px;}

/* ==============================
   FORM
   ============================== */

.order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-form label {
    font-weight: bold;
    margin-top: 8px;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.order-form textarea {
    min-height: 100px;
    resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}



/* ========================================================= */
/* FOOTER */
/* ========================================================= */

footer {
    background: 
        radial-gradient(
            circle at 85% 250px,
            rgba(37, 99, 235, 0.35),
            transparent 85%
        ),
        linear-gradient(
        120deg,
        
        #172b46 100%,
        #111827 100%
    );
    color: white;
    margin-top: 70px;
}


/* ========================================================= */
/* KHU VỰC CHÍNH CỦA FOOTER */
/* ========================================================= */

.footer-container {
    max-width: 1500px;
    margin: auto;
    padding: 50px 30px;
    display: grid;
    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.5fr;
    gap: 30px;
}


/* ========================================================= */
/* CÁC CỘT */
/* ========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;
}


/* ========================================================= */
/* TIÊU ĐỀ CỘT */
/* ========================================================= */

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

/* ========================================================= */
/* THÔNG TIN GIỚI THIỆU */
/* ========================================================= */

.footer-about p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* ========================================================= */
/* LINK */
/* ========================================================= */

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.2s;
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

/* ========================================================= */
/* LIÊN HỆ */
/* ========================================================= */

.footer-contact p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ========================================================= */
/* THANH BẢN QUYỀN */
/* ========================================================= */

.footer-bottom {
    border-top: 1px solid #374151;
    text-align: center;
    padding: 20px 30px;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
    font-size: 14px;
}

/* RESPONSIVE - MÀN HÌNH NHỎ */

@media (max-width: 900px) {
    .hero {padding: 45px 25px;}

    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-visual {
        max-width: 600px;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .hero {padding: 35px 16px;}
    .hero h2 {font-size: 30px;}
    .hero .search-box {flex-direction: column;}
    .hero .search-box input {
        width: 100%;
        min-height: 50px;
    }
    .hero .search-box button {min-height: 48px;}
    .hero-visual {padding: 20px;}
    .hero-brand-card {padding: 14px 10px;}
    .hero-brand-card span {font-size: 15px;}
    .hero-benefits {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   ĐỒNG BỘ FONT CHỮ VÀ DANH MỤC TRANG CHỦ
   ========================================================= */

/* Font chữ thống nhất toàn website */
body {
    color: #111827;
    line-height: 1.5;
}

/* Tiêu đề danh mục */
.categories h2 {
    margin-bottom: 30px;
    color: #111827;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

/* Giữ nền sáng và thẻ trắng như giao diện cũ */
.categories {
    background: #f5f5f5;
    color: #111827;
}

/* Các thẻ hãng xe */
.category {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 20px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 3px 8px rgba(17, 24, 39, 0.06);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hiệu ứng khi rê chuột */
.category:hover {
    transform: translateY(-3px);
    background: #ffffff;
    color: #1d4ed8;
    border-color: #fbbf24;
    box-shadow: 0 7px 18px rgba(17, 24, 39, 0.10);
}

/* Tiêu đề các khu sản phẩm bên dưới */
.products h2,
.product-category-header h2 {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.3;
    color: #111827;
}

/* Màn hình nhỏ */
@media (max-width: 600px) {
    .categories h2 {
        font-size: 23px;
    }

    .category {
        min-height: 76px;
        padding: 14px 10px;
        font-size: 14px;
    }

    .products h2,
    .product-category-header h2 {
        font-size: 21px;
    }
}

/* ==============================
   DANH SÁCH SẢN PHẨM
   ============================== */

.products {
    max-width: 1800px;
    margin: auto;
    padding: 20px 20px 70px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
}

.product-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product h3 {margin-bottom: 10px;}

.product p {
    color: #666;
    margin-bottom: 10px;
}

.product .price {
    color: #dc2626;
    font-size: 20px;
    font-weight: bold;
}

.product button {
    width: 100%;
    padding: 12px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


