/* =========================================
   1. SLIDER BANNER (Trượt đôi - Category)
   ========================================= */
.banner-slider-section {
    padding-top: 15px;
    margin-bottom: 20px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide-item {
    min-width: 50%; /* Desktop 2 items */
    padding: 0 5px;
    box-sizing: border-box;
}

.slide-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background-color: #e0e0e0;
}

/* Nút điều hướng Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.slider-container:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background-color: #c92127; color: white; border-color: #c92127; }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* =========================================
   2. CATEGORY FILTERS & BREADCRUMB
   ========================================= */
.category-container { padding-bottom: 40px; }

.breadcrumb {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}
.breadcrumb a { color: #288ad6; }
.total-prod { margin-left: 10px; font-weight: bold; color: #333; }

/* Box Bộ lọc */
.box-filter {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.filter-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.filter-row:last-child { margin-bottom: 0; }

.filter-label {
    font-weight: bold;
    margin-right: 15px;
    font-size: 13px;
    white-space: nowrap;
}

/* Filter Brands */
.list-brands { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-item {
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 4px 12px;
    background: white;
    transition: all 0.2s;
    height: 36px;
    display: flex; align-items: center;
}
.brand-item img { height: 20px; width: auto; object-fit: contain; }
.brand-item:hover { border-color: #c92127; box-shadow: 0 0 4px rgba(201, 33, 39, 0.2); }

/* Filter Dropdowns */
.filter-btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-dropdown {
    position: relative;
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: white;
    display: flex; align-items: center; gap: 5px;
}
.filter-dropdown i { font-size: 10px; color: #666; }
.filter-dropdown:hover { border-color: #288ad6; color: #288ad6; }

/* Quick Filter Checkbox */
.quick-tags { gap: 15px; flex-wrap: wrap; }
.checkbox-btn { display: flex; align-items: center; cursor: pointer; font-size: 13px; user-select: none; }
.checkbox-btn input { display: none; }
.checkmark {
    width: 16px; height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 6px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 10px; transition: 0.2s;
}
.checkbox-btn input:checked + .checkmark { background-color: #c92127; border-color: #c92127; }

/* Sort Bar */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}
.sort-select select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
}

/* =========================================
   3. PRODUCT GRID
   ========================================= */
.listproduct {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* Product Card (.item) */
.item {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
}
.item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    z-index: 2;
}

.item-label {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    display: flex; flex-direction: column; gap: 5px;
}
.lb-tragop { background: #f1f1f1; font-size: 11px; padding: 3px 6px; border-radius: 2px; color: #333; }
.lb-new { background: #23a31b; color: white; font-size: 11px; padding: 3px 6px; border-radius: 2px; }

.item-img {
    text-align: center; margin-bottom: 15px; margin-top: 25px; height: 160px;
    display: flex; align-items: center; justify-content: center;
}
.item-img img { max-height: 100%; width: auto; transition: transform 0.3s; }
.item:hover .item-img img { transform: translateY(-5px); }

.result-label {
    display: flex; align-items: center; font-size: 10px; color: #c92127;
    border: 1px solid #c92127; border-radius: 20px; width: fit-content;
    padding: 2px 8px 2px 2px; margin-bottom: 8px;
}
.result-label img { margin-right: 3px; width: 16px; height: 16px; }

.item h3 {
    font-size: 14px; line-height: 1.4; margin-bottom: 5px; font-weight: normal;
    display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; height: 40px;
}

.item-compare {
    font-size: 12px; color: #666; background: #f8f8f8;
    padding: 3px 6px; border-radius: 2px; display: inline-block; margin-bottom: 8px;
}

.price { color: #c92127; font-weight: bold; font-size: 16px; display: block; margin-bottom: 5px; }
.box-p { display: flex; gap: 10px; font-size: 12px; align-items: center; margin-bottom: 5px; }
.price-old { text-decoration: line-through; color: #999; }
.percent { color: #c92127; font-weight: bold; }

.rating-box { font-size: 12px; color: #666; margin-top: auto; }
.rating-box i { color: #f59e0b; font-size: 10px; }

.item-bottom { margin-top: 10px; border-top: 1px solid #eee; padding-top: 8px; text-align: right; }
.item-ss { font-size: 13px; color: #288ad6; cursor: pointer; }
.item-ss:hover { text-decoration: underline; }

.view-more { text-align: center; margin-top: 30px; }
.view-more a {
    display: inline-block; padding: 10px 50px; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 4px; color: #288ad6;
    font-weight: bold; transition: 0.3s;
}
.view-more a:hover { background: #288ad6; color: white; border-color: #288ad6; }

/* =========================================
   4. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .listproduct { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .slide-item { min-width: 100%; }
    .slide-item img { height: auto; aspect-ratio: 2/1; }
    
    .listproduct { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    
    .list-brands, .filter-btn-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .brand-item { flex: 0 0 auto; }
}