/* ═══════════════════════════════════════════════════════════════════════
   Cart Popup Notification - Oben Rechts
   Ausgelagert aus _Layout.cshtml (Coding Standards: kein Inline-CSS)
   ═══════════════════════════════════════════════════════════════════════ */

.cart-popup-overlay {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    animation: slideInRight 0.4s ease-out;
}

.cart-popup-overlay.show {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.cart-popup-overlay.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

.cart-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 380px;
    max-width: calc(100vw - 40px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-popup:hover {
    transform: scale(1.02);
}

.cart-popup-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-popup-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.cart-popup-header .close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-popup-header .close-popup:hover {
    opacity: 1;
}

.cart-popup-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-popup-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.cart-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.cart-popup-info {
    flex: 1;
    min-width: 0;
}

.cart-popup-info .product-name {
    font-weight: 600;
    color: #1a1d23;
    font-size: 0.95rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-popup-info .product-details {
    color: #6c757d;
    font-size: 0.85rem;
}

.cart-popup-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-popup-footer .cart-total {
    font-size: 0.9rem;
    color: #495057;
}

.cart-popup-footer .cart-total strong {
    color: #feaf39;
    font-size: 1.1rem;
}

.cart-popup-footer .btn-go-cart {
    background: linear-gradient(135deg, #feaf39 0%, #f59e0b 100%);
    color: #1a1d23;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.cart-popup-footer .btn-go-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 175, 57, 0.3);
    color: #1a1d23;
}

.cart-popup-progress {
    height: 3px;
    background: #e9ecef;
    position: relative;
    overflow: hidden;
}

.cart-popup-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #feaf39 0%, #28a745 100%);
    width: 100%;
    animation: progressShrink 10s linear forwards;
}

@keyframes progressShrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Responsive - Mobile First
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .cart-popup-overlay {
        top: 70px;
        right: 10px;
        left: 10px;
    }

    .cart-popup {
        width: 100%;
    }

    .cart-popup-footer {
        flex-direction: column;
        text-align: center;
    }

    .cart-popup-footer .btn-go-cart {
        width: 100%;
        padding: 12px 20px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .cart-popup-overlay {
        top: 65px;
        right: 8px;
        left: 8px;
    }

    .cart-popup-body {
        padding: 14px;
        gap: 12px;
    }

    .cart-popup-image {
        width: 56px;
        height: 56px;
    }

    .cart-popup-header {
        padding: 12px 16px;
    }

    .cart-popup-footer {
        padding: 12px 16px;
    }
}
