/* ===== CATEGORY MENU ===== */
.companyMenu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 24px;
    justify-content: center;
}

.companyMenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #1e1e1e;
    border: 1.5px solid #333;
    border-radius: 30px;
    height: auto;
    line-height: normal;
    font-size: 13px;
    font-weight: 600;
    color: #b0b0b0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    text-decoration: none;
}

.companyMenu a.active {
    border-color: #c0392b;
    color: #e74c3c;
    background: #2a1515;
    box-shadow: 0 4px 12px rgba(192,57,43,0.25);
}

.companyMenu a:hover {
    border-color: #c0392b;
    color: #e74c3c;
    background: #2a1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192,57,43,0.2);
}

.companyMenu a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0;
}

/* ===== SUB CATEGORY PANEL ===== */
.subCategoryMenu {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1.5px solid #2e2e2e;
    border-radius: 12px;
    margin: -8px 0 16px;
    animation: subCatFade 0.18s ease;
}

@keyframes subCatFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.subcat-all {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #c0392b;
    color: #fff !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.subcat-all:hover { background: #a93226; }

.subcat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #252525;
    border: 1.5px solid #3a2020;
    border-radius: 20px;
    font-size: 13px;
    color: #c0c0c0;
    text-decoration: none;
    transition: all 0.18s;
}
.subcat-chip:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* ===== FILTER BAR ===== */
.flexContain.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 10px;
}

.dropbtn {
    background: #1e1e1e;
    color: #b0b0b0;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #333;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.dropbtn::after {
    content: ' ▾';
    font-size: 11px;
    color: #666;
}

.dropbtn:hover,
.dropdown.open .dropbtn {
    border-color: #c0392b;
    color: #e74c3c;
    background: #2a1515;
}

.dropdown {
    position: relative;
    margin: 4px 0;
}

.dropdown-content {
    z-index: 100;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    border-radius: 10px;
    background: #1e1e1e;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 1px solid #333;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown.open .dropdown-content {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #c0c0c0;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 6px;
    margin: 2px 4px;
}

.dropdown-content a:hover {
    background: #2a1515;
    color: #e74c3c;
}

/* Filter option với số lượng kết quả */
.filter-count {
    font-size: 11px;
    color: #666;
    font-weight: 400;
    margin-left: 3px;
}

/* Option đang được chọn (multi-select / active) */
.dropdown-content a.filter-active {
    background: #2a1515;
    color: #e74c3c;
}
.dropdown-content a.filter-active .filter-count { color: #c0392b; }
.dropdown-content a.filter-active .fa { color: #e74c3c; }

/* Nút filter đang có lọc đang kích hoạt */
.dropbtn.active {
    border-color: #c0392b;
    color: #e74c3c;
    background: #2a1515;
}

/* ===== CHOSEN FILTERS ===== */
.choosedFilter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    align-items: center;
}

.choosedFilter a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 5px 12px;
    color: #fff;
    background: #c0392b;
    border-radius: 20px;
    margin: 0;
    transition: background 0.2s;
}

.choosedFilter a:hover {
    background: #a93226;
}

#deleteAllFilter h3 {
    font-size: 12px;
    margin: 0;
    font-weight: 600;
}

/* ===== FILTER BY NAME ===== */
.filterName {
    margin: 12px 0;
    text-align: center;
}

.filterName input {
    padding: 9px 20px;
    height: auto;
    border: 1.5px solid #333;
    border-radius: 30px;
    font-size: 14px;
    width: 320px;
    outline: none;
    background: #2a2a2a;
    color: #f0f0f0;
    transition: border-color 0.2s;
}

.filterName input::placeholder { color: #666; }

.filterName input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

/* ===== SECTION HEADERS (KHUNG SẢN PHẨM) ===== */
.contain-khungSanPham {
    margin-top: 8px;
}

.khungSanPham {
    width: 100%;
    margin: 36px 0;
    border-radius: 16px;
    border: none;
    box-sizing: border-box;
    background: #1e1e1e;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    overflow: hidden;
    padding: 0 0 20px;
}

.khungSanPham h3.tenKhung {
    font-size: 20px;
    font-weight: 900;
    text-align: left;
    margin: 0;
    padding: 0;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
    min-height: 64px;
}

/* Icon badge ở trái */
.tenKhung-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.22);
    font-size: 22px;
    position: relative;
}

/* Đường chéo tách icon với text */
.tenKhung-icon-wrap::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 0;
    bottom: 0;
    width: 32px;
    background: inherit;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%);
    z-index: 1;
}

/* Tên mục */
.tenKhung-text {
    display: flex;
    align-items: center;
    padding: 16px 28px 16px 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    position: relative;
    z-index: 0;
    letter-spacing: 2.5px;
}

/* Shimmer overlay bên phải */
.khungSanPham h3.tenKhung::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.13) 100%);
    pointer-events: none;
}

.khungSanPham .listSpTrongKhung {
    padding: 10px 16px 0;
}

.khungSanPham li {
    list-style-type: none;
}

/* Nút xem tất cả */
.xemTatCa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    margin: 16px auto 0;
    padding: 9px 24px;
    border-radius: 30px;
    color: #c0392b;
    background: #1e1e1e;
    border: 2px solid #c0392b;
    text-decoration: none;
    transition: all 0.2s ease;
    transform: none;
    cursor: pointer;
}

.xemTatCa:hover {
    background: #c0392b;
    color: #fff;
}

/* Wrapper for "xem tất cả" centering */
.xemTatCa-wrap {
    text-align: center;
    padding: 4px 0 8px;
}

/* separator line */
hr {
    border: none;
    border-top: 1.5px solid #2e2e2e;
    margin: 12px 0;
}

/* ===== NỔI BẬT NHẤT — FEATURED CAROUSEL ===== */
.khungSanPham--featured {
    border: 3px solid #c0392b;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(192,57,43,0.35), 0 4px 28px rgba(192,57,43,0.25), 0 2px 8px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    margin-top: 12px;
}

.tenKhung--featured {
    font-size: 22px !important;
    min-height: 72px !important;
    padding: 0 28px !important;
    letter-spacing: 3px;
    justify-content: center !important;
    align-items: center !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    position: relative;
    border-radius: 0;
    border-bottom: 2px solid rgba(255,255,255,0.18);
}

.tenKhung--featured::before {
    display: none !important;
}

.featured-fire {
    font-size: 20px;
    display: inline-block;
    animation: firePulse 0.9s ease-in-out infinite alternate;
}
.tenKhung--featured .featured-fire:last-child {
    animation-delay: 0.45s;
}

@keyframes firePulse {
    from { transform: scale(1) rotate(-5deg); opacity: 0.85; }
    to   { transform: scale(1.25) rotate(5deg); opacity: 1; }
}

.featured-scroll-wrap {
    display: flex;
    align-items: center;
    padding: 10px 0 0;
    overflow: hidden;
}

.featured-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex: 1;
    scroll-behavior: smooth;
    gap: 0;
    padding: 8px 8px 16px;
    scrollbar-width: none;
}
.featured-scroll-track::-webkit-scrollbar { display: none; }

.featured-scroll-track .sanPham {
    flex: 0 0 210px;
    width: 210px !important;
    margin: 0 6px;
}

.featured-scroll-btn {
    flex-shrink: 0;
    width: 38px;
    height: 72px;
    background: rgba(192,57,43,0.15);
    border: 1.5px solid rgba(192,57,43,0.4);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #e74c3c;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin: 0 6px;
    outline: none;
}
.featured-scroll-btn:hover {
    background: rgba(192,57,43,0.35);
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(192,57,43,0.3);
}
