.custom-combinations-table {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.custom-combinations-table .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 14px;
}

.custom-combinations-table .table th,
.custom-combinations-table .table td {
    padding: 12px 8px;
    vertical-align: middle !important;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.custom-combinations-table .table tbody tr:hover {
    background-color: #f5f7fa;
}

.custom-combinations-table .table tbody tr:last-child td {
    border-bottom: none;
}

.custom-combinations-table .table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.custom-combinations-table .table thead tr:first-child {
    height: 50px;
}

.custom-combinations-table .table thead tr:last-child {
    height: 45px;
}

.custom-combinations-table .table thead th.header-empty-top {
    background: #f8f9fa;
    border: none !important;
    padding: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
}

.custom-combinations-table .table thead th.header-colspan-top {
    vertical-align: middle !important;
    text-align: center;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    background: #f8f9fa;
    font-weight: 700;
    color: #105693;
    border-top: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 2px solid #105693;
    padding: 8px 8px;
    font-size: 16px;
    letter-spacing: 1px;
}

.custom-combinations-table .table thead tr:last-child th {
    vertical-align: middle !important;
    text-align: center;
    padding: 10px 8px;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: 2px solid #105693 !important;
    border-bottom: 2px solid #dee2e6;
}

.image-cell {
    width: 90px;
    min-width: 80px;
    text-align: center;
    vertical-align: middle !important;
}

.combination-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    transition: transform 0.2s ease;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.combination-img:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.attributes-cell {
    min-width: 120px;
    text-align: left;
    vertical-align: middle !important;
}

.attributes-cell .attr-badge {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    margin: 2px 3px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    white-space: nowrap;
}

.shop-stock-header {
    font-size: 11px;
    text-align: center;
    background: #f8f9fa !important;
    padding: 6px 4px !important;
    min-width: 70px;
    font-weight: 600;
    vertical-align: middle !important;
}

.shop-stock-header .badge-current {
    display: block;
    font-size: 9px;
    background: #105693;
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 10px;
    margin-top: 3px;
    font-weight: 500;
}

.stock-cell {
    font-weight: 600;
    font-size: 14px;
    min-width: 50px;
    vertical-align: middle !important;
}

.stock-cell.current-shop .stock-ok {
    color: #2e7d32 !important;
    font-weight: 700;
}

.stock-cell.other-shop .stock-ok {
    color: #0d47a1 !important;
    font-weight: 700;
}

.stock-cell .stock-no {
    color: #c62828 !important;
    font-weight: 700;
}

.stock-cell.current-shop {
    border-left: 3px solid #2e7d32 !important;
    border-right: 3px solid #2e7d32 !important;
}

.price-cell {
    font-weight: 600;
    color: #105693;
    white-space: nowrap;
    vertical-align: middle !important;
}

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #ddd;
    padding: 2px;
    transition: border-color 0.2s ease;
    vertical-align: middle;
}

.stepper:focus-within {
    border-color: #105693;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #105693;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    user-select: none;
}

.stepper-btn:hover:not(:disabled) {
    background: #105693;
    color: #ffffff;
}

.stepper-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stepper .qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 0;
    margin: 0;
    background: transparent;
    -moz-appearance: textfield;
}

.stepper .qty-input::-webkit-inner-spin-button,
.stepper .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper .qty-input:focus {
    outline: none;
}

.btn-add-single {
    background: #105693;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    vertical-align: middle;
}

.btn-add-single:hover:not(:disabled) {
    background: #e65500;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 85, 0, 0.3);
}

.btn-add-single:active:not(:disabled) {
    transform: scale(0.96);
}

.btn-add-single:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-multi {
    background: #105693;
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-multi:hover:not(:disabled) {
    background: #e65500;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 85, 0, 0.3);
}

.btn-multi:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-multi:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.multi-add {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 992px) {
    .custom-combinations-table {
        padding: 10px;
    }
    .custom-combinations-table .table th,
    .custom-combinations-table .table td {
        padding: 8px 5px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .custom-combinations-table {
        padding: 8px;
        border-radius: 8px;
    }
    
    .custom-combinations-table .table thead tr:first-child {
        height: 40px;
    }
    .custom-combinations-table .table thead tr:last-child {
        height: 35px;
    }
    
    .custom-combinations-table .table thead th.header-empty-top {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .custom-combinations-table .table thead th.header-colspan-top {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 13px;
        padding: 4px 4px;
    }
    
    .custom-combinations-table .table thead tr:last-child th {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        font-size: 11px;
        padding: 4px 4px;
    }
    
    .image-cell {
        width: 60px;
        min-width: 50px;
    }
    .combination-img {
        width: 45px;
        height: 45px;
        border-radius: 6px;
    }
    .custom-combinations-table .table th,
    .custom-combinations-table .table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    .attributes-cell .attr-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin: 1px 2px;
    }
    .stepper-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .stepper .qty-input {
        width: 40px;
        font-size: 13px;
    }
    .btn-add-single {
        padding: 4px 10px;
        font-size: 10px;
    }
    .btn-multi {
        padding: 8px 18px;
        font-size: 12px;
    }
    .shop-stock-header {
        font-size: 9px !important;
        min-width: 40px !important;
        padding: 4px 2px !important;
    }
    .stock-cell {
        font-size: 11px !important;
        padding: 4px 2px !important;
        min-width: 35px;
    }
    .stock-cell.current-shop {
        border-left: 2px solid #2e7d32 !important;
        border-right: 2px solid #2e7d32 !important;
    }
    .price-cell {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .custom-combinations-table {
        padding: 5px;
    }
    
    .custom-combinations-table .table thead tr:first-child {
        height: 35px;
    }
    .custom-combinations-table .table thead tr:last-child {
        height: 30px;
    }
    
    .custom-combinations-table .table thead th.header-empty-top {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
    }
    
    .custom-combinations-table .table thead th.header-colspan-top {
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        font-size: 11px;
        padding: 2px 2px;
    }
    
    .custom-combinations-table .table thead tr:last-child th {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        font-size: 9px;
        padding: 2px 2px;
    }
    
    .custom-combinations-table .table th,
    .custom-combinations-table .table td {
        padding: 4px 3px;
        font-size: 10px;
    }
    .image-cell {
        width: 45px;
        min-width: 35px;
    }
    .combination-img {
        width: 35px;
        height: 35px;
    }
    .stepper-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .stepper .qty-input {
        width: 32px;
        font-size: 11px;
    }
    .btn-add-single {
        padding: 3px 8px;
        font-size: 9px;
        border-radius: 14px;
    }
    .shop-stock-header {
        font-size: 8px !important;
        min-width: 30px !important;
        padding: 3px 1px !important;
    }
    .stock-cell {
        font-size: 10px !important;
        padding: 3px 1px !important;
        min-width: 28px;
    }
    .attributes-cell .attr-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
}