/* =========================================================
   2. SẢN PHẨM
   ========================================================= */

/* ==============================
   TRANG SẢN PHẨM
   ============================== */


.product-page {
    max-width: 1800px;
    margin: auto;
    padding: 60px 20px;
}


.product-page > h4 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}


/* ==============================
   BỘ LỌC
   ============================== */

.filter-box {
    background: white;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
}

/* ==============================
   NÚT BỘ LỌC
   ============================== */

.filter-dropdown {
    position: relative;
}

.filter-button {
    width: 200px;
    min-height: 40px;
    box-sizing: border-box;;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}


.filter-button:hover {
    background: #f5f5f5;
}


/* ==============================
   MENU HÃNG XE
   ============================== */

.brand-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow:
        0 4px 15px rgba(0,0,0,0.15);
    z-index: 100;
    
    
}

.brand-menu.show {
    display: block !important;}

.filter-dropdown:hover .brand-menu {
    display: block;
}




.brand-item {
    padding: 12px 18px;
    cursor: pointer;
    position: relative; 
}


.brand-item:hover {
    border-radius: 8px;
    background: #f3f4f6;
}


.brand-item.active {
    background: #e5e7eb;
    font-weight: bold;
    
}


/* ==============================
   DÒNG XE
   ============================== */

.vehicle-line-list {
    display: none;
    position: absolute; 
    top: 0;           
    left: 100%;      
    width: 220px;     
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 100;
    overflow: auto;

    white-space: nowrap; 
}

.vehicle-line-item {
    padding: 12px 18px;
    cursor: pointer;
}

.vehicle-line-item:hover {
    background: #f3f4f6;
    
}


/* ==============================
   LOẠI PHỤ TÙNG
   ============================== */

.category-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    grid-auto-flow: column;
    grid-template-rows: repeat(6, max-content);
    grid-auto-columns: 200px;

    gap: 0 20px;
    

    width: max-content;
    max-width: 90vw;
    max-height: 75vh;
    overflow: auto;

    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.filter-dropdown:hover .category-menu,
.category-menu.show {
    display: grid;
}

.category-menu.show {
    display: grid;
}

.category-item {
    padding: 12px 18px;
    white-space: nowrap;
    cursor: pointer;
}

.category-item:hover {
    background: #f3f4f6;
}

.category-item.active {
    background: #e5e7eb;
    font-weight: bold;
    
}




/* ==============================
   TÌM KIẾM SẢN PHẨM
   ============================== */

.keyword-search {
    margin-left: auto;
}


.keyword-search input {
    width: 300px;
    padding: 11px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}


.keyword-search input:focus {
    outline: none;
    border-color: #2563eb;
}

