/* ==========================================
   Horizontal Category Filter Menu
   ========================================== */
.horizontal-category-scroll-container {
    width: 100%;
    margin-bottom: 25px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    position: relative;
}
.horizontal-category-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.horizontal-category-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.horizontal-category-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.category-tab-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #fff;
    padding: 1px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.category-tab-icon {
    font-size: 13px;
    color: #64748b;
    transition: color 0.2s ease;
}
.category-tab:hover {
    background-color: #e8f5e9;
    color: #1a5740;
    border-color: #a5d6a7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 87, 64, 0.08);
}
.category-tab:hover .category-tab-icon {
    color: #1a5740;
}
.category-tab:hover .category-tab-img {
    transform: scale(1.1);
    border-color: #a5d6a7;
}
.category-tab.active {
    background-color: #1a5740;
    color: #fff;
    border-color: #1a5740;
    box-shadow: 0 4px 6px -1px rgba(26, 87, 64, 0.15), 0 2px 4px -1px rgba(26, 87, 64, 0.1);
}
.category-tab.active .category-tab-icon {
    color: #fff;
}
.category-tab.active .category-tab-img {
    border-color: #fff;
}

/* Sliding navigation arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #1a5740;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    z-index: 10;
    outline: none;
}
.scroll-arrow:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #113f2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.scroll-arrow.scroll-left {
    left: -16px;
}
.scroll-arrow.scroll-right {
    right: -16px;
}

/* ==========================================
   Sidebar Filters & Lists Styling
   ========================================== */
.news-category-sidebar-li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
    border-radius: 6px;
    margin-bottom: 2px;
}
.news-category-sidebar-li:hover {
    background-color: #f8fafc;
}
.news-category-sidebar-li:last-child {
    border-bottom: none;
}
.filter-checkbox {
    width: 17px !important;
    height: 17px !important;
    cursor: pointer;
    accent-color: #1a5740;
    margin: 0 !important;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}
.news-sidebar-label {
    margin: 0 !important;
    cursor: pointer;
    font-weight: 500 !important;
    color: #334155;
    flex: 1;
    display: flex;
    align-items: center;
    user-select: none;
}
.news-sidebar-link {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.news-category-sidebar-li:hover .news-sidebar-link {
    color: #1a5740 !important;
}
.sidebar-scroll-list::-webkit-scrollbar {
    width: 6px;
}
.sidebar-scroll-list::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}
@media (min-width: 992px) {
    #productGrid {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
    }
    #productGrid::-webkit-scrollbar {
        width: 6px;
    }
    #productGrid::-webkit-scrollbar-track {
        background: transparent;
    }
    #productGrid::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 20px;
    }
}
.news-category-sidebar-li.level-1 {
    font-weight: 600 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background-color: #f8fafc;
    margin-top: 6px;
}
.news-category-sidebar-li.level-2 {
    margin-left: 15px !important;
    border-left: 1px dashed #cbd5e1;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.news-category-sidebar-li.level-3 {
    margin-left: 30px !important;
    border-left: 1px dashed #cbd5e1;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Sidebar Nhóm thuốc specific item */
.nhomthuoc-sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}
.nhomthuoc-sidebar-item a:hover {
    background-color: #e8f5e9 !important;
    border-color: #a5d6a7 !important;
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(26, 87, 64, 0.06);
}
.nhomthuoc-sidebar-item a:hover i.fa-angle-right {
    color: #1a5740 !important;
    transform: translateX(2px);
}

/* ==========================================
   Quick Search Tag Suggestions Row
   ========================================== */
.quick-search-tags-container {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.quick-search-tags-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.quick-search-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quick-search-tag-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1a5740;
}
.quick-search-tag-pill.active {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #1a5740;
    box-shadow: 0 2px 4px rgba(26, 87, 64, 0.08);
}
.quick-search-tag-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 5px;
    border-radius: 4px;
}
.quick-search-tag-icon {
    color: #d97706;
    margin-right: 5px;
    font-size: 12px;
}

