/**
 * Frontend-CSS für Product Popup
 */

/* Popup-Container */
.product-popup-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
}

/* Popup-Karte */
.product-popup-card {
    display: flex;
    width: 100%;
    max-width: 400px;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 10px;
    transform: translateX(-110%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: auto;
    padding: 2px;
}

.product-popup-card.show {
    transform: translateX(0);
    opacity: 1;
}

.product-popup-card.hide {
    transform: translateX(-110%);
    opacity: 0;
}

/* Produktbild */
.product-popup-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

/* Popup-Inhalt */
.product-popup-content {
    flex-grow: 1;
    padding: 10px;
  	padding-right: 16px;
    position: relative;
}

/* Schließen-Button */
.product-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    color: rgb(0, 0, 0);
    border: none;
    padding: 0;
}

.product-popup-close:hover {
    background-color: #e1e1e1;
    color: green;
}

/* Popup-Text */
.product-popup-text-before {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.product-popup-message {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-popup-text-after {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.product-popup-price {
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 5px;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .product-popup-card {
        max-width: 300px;
    }
    
    .product-popup-image {
        width: 80px;
        height: 100px;
    }
    
    .product-popup-message {
        font-size: 12px;
    }
}

