*, ::before, ::after {
    box-sizing: border-box;
}

.adc-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
}

.adc-comparison-wrap {
    isolation: isolate;
    margin: 40px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: visible;
}

.adc-comparison-wrap.single-card-mode {
    max-width: 500px;
    margin: 40px auto;
}

.adc-comparison-wrap.single-card-mode .adc-table {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.adc-comparison-wrap.single-card-mode .adc-table thead th,
.adc-comparison-wrap.single-card-mode .adc-table tbody td {
    width: 50% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.adc-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.adc-cat-card {
    background: #fff;
    border: 2px solid #eee;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adc-cat-card:hover {
    border-color: #C8DD00;
}

.adc-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    align-items: flex-end;
    border: 1px solid #eee;
}

.adc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.adc-filter-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adc-filter-group select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.adc-filter-group input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: #C8DD00;
}

.adc-model-selector {
    min-width: 150px;
}

#capacity-val, #cap-val-int {
    color: #acc100;
    font-weight: 800;
}

.adc-clear-filters-wrap {
    margin-left: auto;
}

.adc-btn-clear {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.adc-btn-clear:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.adc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    table-layout: fixed;
    border: 0 !important;
}

table.adc-table tr {
    border: none !important;
}

.adc-hidden-col {
    display: none !important;
}

.adc-table thead th {
    background: #fff;
    padding: 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    vertical-align: top;
    text-align: left;
    width: 250px; 
    min-width: 250px;
    max-width: 250px;
    word-wrap: break-word;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5;
}

.adc-table tbody td {
    width: 250px;
    max-width: 250px;
    word-wrap: break-word;
}

.adc-table thead th:first-child,
.adc-table tbody td:first-child,
.adc-table .adc-label-cell {
    background: #f0f4f8 !important;
    text-align: left;
    width: 220px;
    min-width: 220px;
    font-weight: 700;
    color: #1a2b3c;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 1px solid #e2e8f0;
}

.adc-table thead th:first-child {
    z-index: 15;
    top: 0;
}

.adc-table tbody tr:nth-child(odd) td {
    background-color: #EEF3FC;
}

.adc-table tbody tr:nth-child(even) td {
    background-color: #ffffff;
}

.adc-table tbody tr:nth-child(odd) td:first-child {
    background-color: #edf2f7 !important; 
}

.adc-table tbody tr:nth-child(even) td:first-child {
    background-color: #f7fafc !important;
}

.adc-table tbody tr td {
    padding: 20px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    color: #333;
    font-size: 1rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 450px;
    padding: 15px;
}

.product-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: left;
    width: 100%;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.3;
}

.product-header img {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important; 
    object-fit: contain; 
    background-color: transparent; 
    margin-bottom: 20px;
    display: block;
    contain-intrinsic-size: 180px;
}

.adc-rating-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-top: auto; 
    margin-bottom: 15px;
}

p.adc-model-display {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
    margin-bottom: 2px;
}

.adc-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
}

.adc-product-rating .adc-stars {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.rating-value {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.rating-star {
    color: #FFD700;
    font-size: 16px;
}

.view-btn-wrapper {
    width: 100%;
}

.view-btn {
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    margin: 10px 0;
    background: #C8DD00; 
    text-decoration: none; 
    border-radius: 8px;
    color: #000;
    padding: 15px 15px 15px 20px;
    font-weight: 700; 
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-btn::after {
    content: '\2192'; 
    font-size: 22px; 
}

.view-btn:hover {
    color: #fff;
    background: #b5c700;
}

.adc-status-pill {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    background: #e9f2f9;
    color: #333;
    font-size: 0.85rem;
    border: 1px solid #d0e1f0;
    min-width: 60px;
    text-align: center;
}

.adc-add-box {
    position: relative;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

#adc-product-search {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.adc-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.adc-search-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.adc-remove-col {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    background: transparent;
    border: none;
}

@media (max-width: 768px) {
    .adc-table-container {
        max-height: 85vh;
    }

    .adc-table {
        display: table !important; 
        width: auto; 
        min-width: 100%;
        table-layout: fixed; 
    }

    .adc-table thead th, 
    .adc-table tbody td {
        min-width: 200px; 
        width: 200px;
        white-space: normal; 
        padding: 12px 10px;
    }

    .adc-table thead th:first-child,
    .adc-table tbody td:first-child {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 99;
        width: 140px !important;
        min-width: 140px !important;
        background: #f0f4f8 !important; 
        box-shadow: 4px 0 8px rgba(0,0,0,0.1); 
        font-size: 13px;
        border-right: 2px solid #cbd5e0;
    }

    .adc-table thead th {
        top: 0;
    }

    .adc-table thead th:first-child {
        z-index: 100;
    }

    .product-header {
        min-height: 380px;
        padding: 10px;
    }

    .product-header img {
        height: 100px !important;
        margin-bottom: 10px;
    }

    .product-header h4 {
        font-size: 0.9rem;
        min-height: 3.2em;
    }

    .adc-filter-container {
        padding: 15px;
        gap: 10px;
    }
    
    .adc-comparison-wrap.single-card-mode .adc-table {
        display: table !important;
        width: 100% !important;
    }
    
    .adc-comparison-wrap.single-card-mode .adc-table thead th,
    .adc-comparison-wrap.single-card-mode .adc-table tbody td {
        width: 50% !important;
        min-width: 0 !important;
    }
}