/* Mobile-optimierte Stile für den Warenkorb */

/* Grundlegende mobile Anpassungen */
@media (max-width: 768px) {
    .cart-table {
        width: 100%;
        margin-bottom: 0;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }
    
    /* Tabellenkopf ausblenden auf Mobilgeräten */
    .cart-table thead {
        display: none;
    }
    
    /* Jede Zeile als eigene Karte darstellen */
    .cart-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Für jede Zelle ein eigenes Layout */
    .cart-table td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        position: relative;
        border: none;
    }
    
    /* Produkt-Zellenformatierung */
    .cart-table td.product-cell {
        font-weight: bold;
        font-size: 1.1rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }
    
    /* Preis-Zellenformatierung */
    .cart-table td.price-cell {
        text-align: left;
        padding-top: 0.8rem;
        float: left;
        width: 50%;
    }
    
    /* Gesamt-Zellenformatierung */
    .cart-table td.total-cell {
        text-align: right;
        padding-top: 0.8rem;
        font-weight: bold;
        float: right;
        width: 50%;
    }
    
    /* Menge-Zellenformatierung */
    .cart-table td.quantity-cell {
        clear: both;
        border-top: 1px solid #f0f0f0;
        margin-top: 2.5rem;
        padding-top: 0.8rem;
        text-align: center;
    }
    
    /* Aktions-Zellenformatierung */
    .cart-table td.action-cell {
        text-align: center;
        padding-top: 0.8rem;
    }
    
    /* Verbesserte Mengen-Steuerung */
    .quantity-control {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        max-width: 150px;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        background-color: #000;
        color: white;
        border: none;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .quantity-btn:hover {
        background-color: #333;
    }
    
    .quantity-control span {
        margin: 0 15px;
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    /* Entfernen-Button */
    .delete-button {
        background-color: #000;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s ease;
        width: 100%;
        max-width: 150px;
    }
    
    .delete-button:hover {
        background-color: #333;
    }
    
    /* Warenkorb-Zusammenfassung */
    .cart-summary {
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
    
    .cart-total {
        margin-bottom: 1.5rem;
    }
    
    .cart-total p {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .cart-total p:last-child {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        font-size: 1.2rem;
    }
    
    .cart-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions button {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Fortschrittsanzeige für Checkout */
    .checkout-progress {
        display: flex;
        justify-content: space-between;
        margin: 1rem 0 2rem;
        padding: 0 10px;
    }
    
    .step {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}