/* compare-rtl.css */
.compare-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    min-width: 800px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.compare-table th,
.compare-table td {
    vertical-align: middle;
    text-align: center;
    padding: 15px;
}

.compare-table .attribute-header {
    background: #f8f9fa;
    font-weight: bold;
    min-width: 150px;
    text-align: right;
}

.compare-table .attribute-label {
    background: #f8f9fa;
    font-weight: 600;
    text-align: right;
}

.product-header {
    min-width: 220px;
    background: #808080;
    color: white;
}

.product-header-content {
    position: relative;
}

.btn-remove-product {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.btn-remove-product:hover {
    background: #c82333;
    transform: scale(1.1);
}

.product-header .product-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.product-header .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-header .product-name {
    font-size: 14px;
    margin-bottom: 8px;
    color: black;
    font-weight: 600;
}

.product-header .product-price {
    color: #ffd700;
    font-weight: bold;
}

.product-header .product-price .regular-price {
    text-decoration: line-through;
    color: #ccc;
    font-size: 12px;
    margin-right: 5px;
}

.product-header .product-price .discount-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 5px;
}

.empty-slot-header {
    background: #e9ecef;
    min-width: 220px;
}

.empty-slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .compare-container {
        padding: 10px;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .product-header .product-image {
        width: 80px;
        height: 80px;
    }
}

/* Empty State */
.empty-compare {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 60px 20px;
}

.empty-compare i {
    opacity: 0.5;
}