.form-group-single-item .list {
  max-height: 410px;
  overflow: auto;
}

/* Category Navigation Sidebar */
.category-nav-list {
    border-radius: 12px;
    overflow: hidden;
}

.category-nav-list .list-group-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: -1px;
}

.category-nav-list .list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.category-nav-list .list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.category-nav-list .list-group-item:hover {
    background: #f8f9fa;
    border-color: var(--thm-color);
    transform: translateX(5px);
}

.category-nav-list .list-group-item.active {
    background: linear-gradient(135deg, var(--thm-color) 0%, #1F72C3 100%);
    color: #fff;
    border-color: var(--thm-color);
    transform: translateX(5px);
}

.category-icon {
    display:flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.category-nav-list .list-group-item.active .category-icon {
    background: transparent;
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.category-name {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
}

.category-nav-list .list-group-item:hover .category-name {
    color: var(--thm-color);
}

.category-nav-list .list-group-item.active .category-name {
    color: #fff;
}

/* Product Selection Tool Styles */

/* Introduction Section */
.selection-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.selection-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--thm-black);
    margin-bottom: 15px;
}

.selection-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Comparison Tool Section */
.comparison-tool-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.comparison-tool-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--thm-black);
    margin-bottom: 10px;
}

.comparison-tool-section > p {
    color: #666;
    margin-bottom: 30px;
}

/* Product Selector */
.product-selector-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-end;
}

.product-selector {
    flex: 1;
}

.product-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-black);
    margin-bottom: 8px;
}

.product-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-selector select:focus {
    outline: none;
    border-color: var(--thm-color);
    box-shadow: 0 0 0 3px rgba(58, 151, 255, 0.1);
}

.compare-btn-wrapper {
    flex-shrink: 0;
}

.compare-btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--thm-color) 0%, #1F72C3 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(58, 151, 255, 0.3);
    white-space: nowrap;
}

.compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 151, 255, 0.4);
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Comparison Result Table */
.comparison-result {
    margin-top: 30px;
    overflow-x: auto;
}

/* Comparison Toolbar */
.comparison-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comparison-toolbar-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.toolbar-btn {
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn:hover {
    border-color: var(--thm-color);
    color: var(--thm-color);
}

.toolbar-btn.active {
    background: var(--thm-color);
    color: #fff;
    border-color: var(--thm-color);
}

.toolbar-btn i {
    font-size: 13px;
}

.comparison-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.comparison-info i {
    color: var(--thm-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    table-layout: fixed;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--thm-color) 0%, #1F72C3 100%);
    color: #fff;
}

.comparison-table thead th {
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-table thead th:first-child {
    text-align: left;
    width: 220px;
}

.comparison-table thead th:last-child {
    border-right: none;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--thm-black);
    background: #f8f9fa;
}

.comparison-table tbody td:last-child {
    border-right: none;
}

/* Highlight best value */
.comparison-table tbody td.best-value {
    background: rgba(58, 151, 255, 0.08);
    color: var(--thm-color);
    font-weight: 600;
}

.comparison-table tbody td.best-value::after {
    content: '★';
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--thm-color);
    font-size: 12px;
}

/* Different values highlight */
.comparison-table tbody tr.has-difference td:not(:first-child) {
    background: rgba(255, 193, 7, 0.05);
}

/* Hide rows that are the same when "show differences only" is active */
.comparison-table tbody tr.hide-same {
    display: none;
}

/* Product Image in Table */
.product-image-cell {
    padding: 20px 15px !important;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--thm-black);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-action-btn {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-action-btn.view-detail {
    background: var(--thm-color);
    color: #fff;
    border: 2px solid var(--thm-color);
}

.product-action-btn.view-detail:hover {
    background: #1F72C3;
    border-color: #1F72C3;
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-state h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 15px;
    color: #999;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--thm-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-box h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--thm-black);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 991px) {
    .selection-intro h2 {
        font-size: 28px;
    }

    .product-selector-row {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 10px;
    }

    .product-card img {
        width: 100px;
    }
}

@media (max-width: 767px) {
    .selection-intro h2 {
        font-size: 24px;
    }

    .comparison-tool-section {
        padding: 20px 15px;
    }

    .comparison-table {
        font-size: 13px;
    }

    .product-card img {
        width: 80px;
    }

    .product-action-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}
