/* ========================================
   WARENKORB BADGE & BUTTON STYLES
   Gemeinsame Styles für alle Seiten
   ======================================== */

.warenkorb-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Warenkorb Button Styles */
.warenkorb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.625rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Warenkorb-Text ausblenden auf Mobile */
.warenkorb-btn span {
    display: none;
}

@media (min-width: 768px) {
    .warenkorb-btn {
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.75rem;
    }

    .warenkorb-btn span {
        display: inline;
    }
}

.warenkorb-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

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

/* Mengensteuerung auf Mobile anpassen */
@media (max-width: 767px) {
    .warenkorb-btn {
        width: 100%;
    }
    
    .warenkorb-btn ~ div {
        flex-direction: column;
        margin-top: 0.75rem;
    }
}

/* Warenkorb Item Styles */
.warenkorb-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .warenkorb-item {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .warenkorb-item {
        padding: 1.5rem;
    }
}

.warenkorb-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.warenkorb-item-bild {
    width: 70px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .warenkorb-item-bild {
        width: 85px;
        height: 85px;
    }
}

.warenkorb-item-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anzahl-steuerung {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .anzahl-steuerung {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

.anzahl-steuerung button {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

@media (min-width: 768px) {
    .anzahl-steuerung button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.anzahl-steuerung button:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.7);
    transform: scale(1.05);
}

.anzahl-steuerung button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.anzahl-anzeige {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .anzahl-anzeige {
        min-width: 40px;
        font-size: 1.125rem;
    }
}

/* Alle Buttons im Warenkorb klickbar machen */
#warenkorb-modal button {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    user-select: none !important;
}

#warenkorb-modal button:disabled {
    cursor: not-allowed !important;
}
