/* Warenkorb-Styling für Wohlrab Verlag */
/* Diese Datei als "cart.css" speichern */

/* ===== Warenkorb-Icon ===== */
.cart-icon-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.cart-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cart-icon-link:hover {
    background: #000;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cart-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

/* ===== Produktseiten - "In den Warenkorb" Button ===== */
.product-card {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.product-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 1.2em;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

.add-to-cart-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

/* ===== Benachrichtigung ===== */
.cart-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Warenkorb-Anzeige auf Bestellseite ===== */
#cart-display {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.empty-cart p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.btn-continue {
    display: inline-block;
    background: #333;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ===== Warenkorb-Items ===== */
.cart-items {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
}

.cart-item-type {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
    margin: 5px 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== Mengensteuerung ===== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 5px;
}

.qty-btn {
    background: #333;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #000;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.item-total {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    background: #e74c3c;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.remove-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* ===== Zusammenfassung ===== */
.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.1em;
}

.summary-row.total {
    border-top: 2px solid #333;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

/* ===== Bestellformular ===== */
.order-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.order-form h2 {
    margin-top: 0;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.submit-order-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: bold;
}

.submit-order-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-order-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-icon-container {
        top: 10px;
        right: 10px;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }
}