/* ============================================
   WARENKORB STYLES
   ============================================ */

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.cart-icon:hover {
    color: var(--text-gold);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--btn-red);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--text-gold);
    color: var(--bg-dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

/* Warenkorb Seite */
.cart-container {
    padding: 4rem 0;
    min-height: 60vh;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty h2 {
    color: var(--text-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--text-gold);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    border-radius: 8px;
    font-size: 2.5rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-details h3 {
    color: var(--text-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cart-item-details .price {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: var(--text-gold);
    color: var(--bg-dark);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--accent-gold);
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    text-align: center;
    background-color: var(--bg-dark);
    border: 1px solid var(--text-gold);
    color: var(--text-light);
    padding: 0.3rem;
    border-radius: 4px;
    font-size: 1rem;
}

.remove-btn {
    background-color: var(--btn-red);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: var(--btn-red-hover);
}

.cart-summary {
    background-color: var(--bg-dark-secondary);
    border: 2px solid var(--text-gold);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    color: var(--text-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 1rem;
}

.summary-row.total {
    border-top: 2px solid var(--text-gold);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-gold);
}

.cart-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    
    .cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-summary {
        max-width: 100%;
    }
}
