/**
 * Amazon Display Plugin - Ultra-Minimalistisch (wie Screenshot!)
 */

/* Container */
.amazon-products-wrapper {
    position: relative;
    margin: 30px 0;
}

.amazon-products {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 0;
    scrollbar-width: auto;
    scrollbar-color: #888 #f0f0f0;
}

.amazon-products::-webkit-scrollbar {
    height: 8px;
}

.amazon-products::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.amazon-products::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* Product Card - ULTRA-MINIMALISTISCH wie Screenshot */
.amazon-product {
    flex: 0 0 calc(25% - 12px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Bild-Container */
.image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Titel - EXAKT 2 Zeilen wie Screenshot */
.amazon-product h4 {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #0F1111;
    margin: 0 0 12px 0 !important;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* "Preis auf Amazon prüfen" - wie Screenshot! */
.amazon-price-text {
    font-size: 13px;
    color: #0F1111;
    margin: 10px 0;
}

/* "Auf Amazon kaufen*" Link - wie Screenshot! */
.shop-button {
    display: inline-block;
    color: #007185 !important;
    font-size: 13px;
    text-decoration: none;
    margin-top: 5px;
    font-weight: 400;
}

.shop-button:hover {
    color: #C7511F !important;
    text-decoration: underline;
}

/* Navigation Arrows */
.prev-arrow,
.next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0095C8;
    border: none;
    border-radius: 2px;
    width: 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.9;
}

.prev-arrow {
    left: 0;
}

.next-arrow {
    right: 0;
}

.prev-arrow svg,
.next-arrow svg {
    fill: #fff;
}

.prev-arrow:hover,
.next-arrow:hover {
    opacity: 1;
    background: #007BA7;
}

/* Responsive */
@media (max-width: 1024px) {
    .amazon-product {
        flex: 0 0 calc(33.33% - 11px);
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .amazon-product {
        flex: 0 0 calc(50% - 8px);
        min-width: 200px;
    }
    
    .image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .amazon-product {
        flex: 0 0 calc(100% - 16px);
    }
}

/* Skeleton Screens - minimalistisch */
.amazon-products-loading {
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    margin: 30px 0;
}

.loading-skeleton {
    display: flex;
    gap: 16px;
}

.skeleton-product {
    flex: 0 0 calc(25% - 12px);
    min-width: 240px;
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 6px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-text {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 15px;
}

/* Error & Fallback Notice */
.amazon-error,
.amazon-fallback-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    margin: 20px 0;
}

.amazon-fallback-notice small {
    font-size: 12px;
}

/* ENTFERNT: Alle fancy Features */
.savings,
.prime-icon,
.amazon-rating,
.old-price {
    display: none !important;
}
