.meb-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.meb-carousel {
    position: relative;
    overflow: hidden;
}

.meb-products-container {
    display: flex;
    gap: 20px;
    padding: 10px;
}

.meb-product {
    flex: 1;
    min-width: 0; /* Verhindert Überlauf bei langen Titeln */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center; /* Alle Inhalte im Produkt zentrieren */
}

.meb-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.meb-product a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.meb-product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.meb-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.meb-product:hover .meb-product-image img {
    transform: scale(1.05);
}

/* Titelgröße erhöht & zentriert */
.meb-product-title {
    font-size: 18px; /* Titel jetzt größer */
    font-weight: 500;
    color: #616379;
    margin: 12px 15px;
    line-height: 1.3;
    height: auto; /* Feste Höhe entfernt */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center; /* Titel zentrieren */
}

/* Preis-Container ebenfalls zentriert */
.meb-product-price-container {
    margin: 10px 15px 15px;
    text-align: center;
}

.meb-product-price {
    font-size: 22px;
    font-weight: 700;
    color: #ff6600;
    margin-bottom: 4px;
    text-align: center; /* Preis zentrieren */
}

.meb-product-price-info {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    text-align: center; /* Preis-Info zentrieren */
}

.meb-carousel-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #333;
    font-weight: 500;
    text-align: center; /* Zentriert Lade-Text */
}

/* Responsive Design */
@media (max-width: 768px) {
    .meb-products-container {
        flex-direction: column;
    }
    
    .meb-product {
        width: 100%;
    }
    
    .meb-product-title {
        height: auto;
        -webkit-line-clamp: 3;
        text-align: center; /* Titel auch auf Mobile zentriert */
    }
}
