/* Digikala Style Compare Page */

.dk-compare-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.dk-compare-hero {
    background: linear-gradient(135deg, var(--dk-primary) 0%, var(--dk-primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    margin-bottom: 2rem;
}

.dk-compare-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dk-compare-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dk-compare-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

.dk-compare-info {
    background: var(--dk-bg);
    border: 1px solid var(--dk-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dk-text);
}

.dk-compare-table-wrapper {
    background: var(--dk-bg);
    border: 1px solid var(--dk-border);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.dk-compare-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.dk-compare-table thead {
    background: var(--dk-primary);
    color: white;
}

.dk-compare-table thead th {
    padding: 1.5rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    border: none;
}

.dk-compare-table thead th:first-child {
    background: rgba(255, 255, 255, 0.1);
    text-align: right;
    min-width: 200px;
}

.dk-compare-product-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.dk-compare-product-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 1rem;
    background: var(--dk-bg-light);
    padding: 0.5rem;
}

.dk-compare-product-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--dk-primary) 0%, var(--dk-primary-dark) 100%);
    border-radius: 8px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.dk-compare-product-name {
    font-weight: 600;
    color: var(--dk-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dk-compare-product-sku {
    font-size: 0.85rem;
    color: var(--dk-text-light);
    margin-bottom: 0.5rem;
}

.dk-compare-product-brand {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--dk-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dk-compare-remove-btn {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--dk-border);
    background: var(--dk-bg);
    color: var(--dk-text);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.dk-compare-remove-btn:hover {
    background: var(--dk-primary);
    color: white;
    border-color: var(--dk-primary);
}

.dk-compare-table tbody td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--dk-border);
    background: var(--dk-bg);
}

.dk-compare-table tbody td:first-child {
    background: var(--dk-bg-light);
    font-weight: 600;
    text-align: right;
    color: var(--dk-text);
}

.dk-compare-spec-row {
    background: var(--dk-bg-light);
}

.dk-compare-spec-row td {
    background: var(--dk-bg-light);
}

.dk-compare-best-value {
    background: #e8f5e9 !important;
    color: #2e7d32;
    font-weight: 700;
}

.dk-compare-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dk-primary);
}

.dk-compare-price-old {
    font-size: 0.9rem;
    color: var(--dk-text-light);
    text-decoration: line-through;
    display: block;
    margin-top: 0.25rem;
}

.dk-compare-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dk-compare-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dk-compare-action-btn-primary {
    background: var(--dk-primary);
    color: white;
}

.dk-compare-action-btn-primary:hover {
    background: var(--dk-primary-dark);
    color: white;
}

.dk-compare-action-btn-success {
    background: #4caf50;
    color: white;
}

.dk-compare-action-btn-success:hover {
    background: #45a049;
    color: white;
}

.dk-empty-compare {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--dk-bg);
    border: 1px solid var(--dk-border);
    border-radius: 8px;
}

.dk-empty-compare-icon {
    font-size: 5rem;
    color: var(--dk-text-light);
    margin-bottom: 1.5rem;
}

.dk-empty-compare-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dk-text);
    margin-bottom: 0.5rem;
}

.dk-empty-compare-text {
    color: var(--dk-text-light);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dk-compare-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .dk-compare-table {
        font-size: 0.85rem;
    }

    .dk-compare-product-image,
    .dk-compare-product-placeholder {
        width: 120px;
        height: 120px;
    }
}

