/* Frontend Styles für Dekologi Produktvergleich */

.dekologi-compare-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.dekologi-product-selector {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.dekologi-product-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.product-select {
    flex: 1;
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.product-select:focus {
    border-color: #ec4205;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 66, 5, 0.1);
}

.clear-button {
    padding: 8px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.clear-button:hover {
    background: #5a6268;
}

.dekologi-compare-table-container {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.dekologi-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.dekologi-compare-table th,
.dekologi-compare-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.dekologi-compare-table th {
    background: linear-gradient(135deg, #ec4205 0%, #d63803 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dekologi-compare-table th:first-child {
    background: #f8f9fa;
    color: transparent;
    width: 120px;
}

.dekologi-compare-table .product-header {
    text-align: left;
    padding: 15px 10px;
    min-width: 160px;
}

.dekologi-compare-table .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.dekologi-compare-table .product-link:hover {
    transform: translateY(-1px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dekologi-compare-table .product-link:hover .product-image img {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dekologi-compare-table .product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dekologi-compare-table .product-image {
    flex-shrink: 0;
}

.dekologi-compare-table .product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.dekologi-compare-table .product-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    color: white;
}

.dekologi-compare-table .label-cell {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    min-width: 120px;
    border-right: 1px solid #e5e5e5;
    font-size: 13px;
}

.dekologi-compare-table tbody tr:hover {
    background: #f9f9f9;
}

.dekologi-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.dekologi-compare-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    color: #666;
    font-size: 16px;
}

.dekologi-compare-empty p {
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dekologi-compare-page {
        padding: 10px;
    }
    
    .dekologi-product-selector {
        padding: 12px;
    }
    
    .dekologi-product-selects {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-select {
        min-width: 100%;
        padding: 10px;
    }
    
    .dekologi-compare-table {
        font-size: 12px;
    }
    
    .dekologi-compare-table th,
    .dekologi-compare-table td {
        padding: 8px 6px;
    }
    
    .dekologi-compare-table .product-header {
        padding: 10px 6px;
        min-width: 120px;
    }
    
    .dekologi-compare-table .product-info {
        gap: 8px;
    }
    
    .dekologi-compare-table .product-image img {
        width: 40px;
        height: 40px;
    }
    
    .dekologi-compare-table .product-name {
        font-size: 12px;
    }
    
    .dekologi-compare-table .label-cell {
        min-width: 80px;
        font-size: 12px;
    }
    
    .dekologi-compare-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .dekologi-compare-table th,
    .dekologi-compare-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .dekologi-compare-table .product-header {
        padding: 8px 4px;
        min-width: 100px;
    }
    
    .dekologi-compare-table .product-info {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .dekologi-compare-table .product-image img {
        width: 35px;
        height: 35px;
    }
    
    .dekologi-compare-table .product-name {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .dekologi-compare-table .label-cell {
        min-width: 70px;
        font-size: 11px;
    }
    
    .dekologi-compare-empty {
        padding: 30px 15px;
        font-size: 14px;
    }
}