/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin-top: 70px;
}

/* Hauptcontainer */
.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1, h2 {
    margin-top:  40px;
    margin-bottom: 1rem;
    color: #333;
}

/* Warenkorb-Inhalt */
.cart-content {
    display: flex;
    gap: 2rem;
}

.cart-items {
    flex: 2;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
}

.item-details {
    flex-grow: 1;
}

.item-price {
    color: #007bff;
    font-weight: bold;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 0.25rem;
    margin: 0 0.5rem;
}

.item-total {
    font-weight: bold;
    margin-right: 1rem;
}

.remove-btn {
    background-color: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
}

/* Warenkorb-Zusammenfassung */
.cart-summary {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
}

.discount-code {
    display: flex;
    margin-bottom: 1rem;
}

.discount-code input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
}

.apply-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.checkout-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #0056b3;
}

/* Verwandte Produkte */
.related-products {
    margin-top: 3rem;
}

.product-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
}

.product-card {
    flex: 0 0 auto;
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.add-to-cart-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* Kundenbewertungen */
.customer-reviews {
    margin-top: 3rem;
}

.review {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    margin: 0 5px;
}

.item-total {
    text-align: right;
}

.unit-price {
    font-size: 0.8em;
    color: #666;
}


/* Responsive Design */
@media (max-width: 768px) {
    .cart-content {
        flex-direction: column;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .item-quantity {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin: 1rem 0;
    }

    .item-total {
        order: 4;
    }

    .remove-btn {
        order: 5;
    }

    .footer-content {
        flex-direction: column;
    }

    
    #discount-message {
        margin-top: 10px;
        font-weight: bold;
    }
}