/* Styles pour le widget Elementor Simple Bundle */

.simple-bundle-elementor-widget {
    margin: 20px 0;
}

.bundle-widget-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.simple-bundle-products {
    display: grid;
    gap: 20px;
}

.simple-bundle-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

.simple-bundle-products-list {
    grid-template-columns: 1fr;
}

.simple-bundle-products-list .bundle-product-item {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.simple-bundle-products-list .bundle-product-image {
    flex-shrink: 0;
    margin-bottom: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-bundle-products-list .bundle-product-image img {
    max-height: 95px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
}

.simple-bundle-products-list .bundle-product-content {
    flex-grow: 1;
}

.bundle-product-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.bundle-product-image {
    margin-bottom: 15px;
    text-align: center;
}

.bundle-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Liens supprimés - pas de styles de lien nécessaires */

.bundle-product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bundle-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Liens supprimés - pas de styles de lien nécessaires */

.bundle-product-quantity {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.bundle-product-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .simple-bundle-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .simple-bundle-products-grid {
        grid-template-columns: 1fr;
    }
    
    .bundle-product-item {
        padding: 15px;
    }
    
    .bundle-widget-title {
        font-size: 20px;
    }
    
    /* Mode liste sur mobile : revenir en colonne */
    .simple-bundle-products-list .bundle-product-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .simple-bundle-products-list .bundle-product-image {
        max-width: 200px;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .simple-bundle-products-list .bundle-product-image img {
        max-height: 95px;
        max-width: 200px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .bundle-product-item {
        padding: 12px;
    }
    
    .bundle-product-title {
        font-size: 16px;
    }
    
    .bundle-product-description {
        font-size: 13px;
    }
    
    /* S'assurer que tout reste aligné à gauche sur mobile */
    .simple-bundle-products-list .bundle-product-item {
        align-items: flex-start;
        text-align: left;
    }
    
    .simple-bundle-products-list .bundle-product-image {
        text-align: left;
    }
    
    .simple-bundle-products-list .bundle-product-content {
        text-align: left;
    }
}

/* Styles pour le mode édition Elementor */
.elementor-editor .simple-bundle-elementor-widget {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

.elementor-editor .bundle-product-item {
    background: #fff;
    border: 1px solid #ddd;
}

/* Animation d'apparition */
.simple-bundle-product-item {
    opacity: 0;
    transform: translateY(20px);
    animation: bundleItemFadeIn 0.6s ease forwards;
}

@keyframes bundleItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque item */
.bundle-product-item:nth-child(1) { animation-delay: 0.1s; }
.bundle-product-item:nth-child(2) { animation-delay: 0.2s; }
.bundle-product-item:nth-child(3) { animation-delay: 0.3s; }
.bundle-product-item:nth-child(4) { animation-delay: 0.4s; }
.bundle-product-item:nth-child(5) { animation-delay: 0.5s; }
.bundle-product-item:nth-child(6) { animation-delay: 0.6s; }

/* Styles pour les alertes en mode édition */
.elementor-alert {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid transparent;
    border-radius: 4px;
}

.elementor-alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.elementor-alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}
