/**
 * Warenkorb-Seite Styling
 * Markenfarbe: #173876
 */

/* Warenkorb Container */
.krimphove-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.krimphove-cart-page h1 {
    color: #173876;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Mindestbestellmenge Notice */
.min-order-notice {
    background: #e8f4f8;
    border-left: 4px solid #173876;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.min-order-notice .icon {
    color: #173876;
    font-size: 18px;
    margin-right: 8px;
}

.min-order-notice .text {
    color: #173876;
    font-weight: 500;
}

/* Warenkorb Tabelle */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cart-table thead tr {
    background: #173876;
    color: white;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.cart-table tbody tr:hover {
    background: #f8f9fa;
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
}

.cart-table td strong {
    color: #173876;
}

/* Kategorie-Spalte */
.cart-table td:nth-child(2) {
    color: #173876;
    font-weight: 500;
}

/* Produkt-Name */
.cart-table td:first-child strong {
    font-size: 16px;
    color: #173876;
}

.package-products {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: white;
    color: #173876;
    border: 2px solid #173876;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #173876;
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.cart-quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid #173876;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Preise */
.cart-price {
    color: #666;
    font-size: 14px;
}

.row-total strong {
    color: #173876;
    font-size: 18px;
}

/* Entfernen Button */
.remove-cart-item {
    background: #e74c3c;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-cart-item:hover {
    background: #c0392b;
    transform: rotate(10deg) scale(1.1);
}

/* Warenkorb Footer */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 2px solid #173876;
}

.cart-total-label {
    font-size: 20px;
    font-weight: 600;
    color: #173876;
}

.cart-total {
    font-size: 28px;
    font-weight: bold;
    color: #173876;
}

/* Aktionen */
.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cart-actions .btn {
    background: #173876;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-actions .btn:hover {
    background: #0f2856;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 56, 118, 0.3);
}

.cart-actions .btn:active {
    transform: translateY(0);
}

/* Leerer Warenkorb */
.cart-table tbody tr td[colspan] {
    text-align: center;
    padding: 60px 40px;
    color: #999;
    font-size: 18px;
}

/* Loading State */
.cart-table tbody tr.loading-row td {
    text-align: center;
    padding: 40px;
    color: #173876;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-table {
        font-size: 14px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px;
    }
    
    .cart-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cart-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cart-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
