/**
 * Styles pour le widget d'affiliation en front-end.
 */

.affiliation-product-widget {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.affiliation-product-widget:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.affiliation-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.affiliation-product-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.affiliation-product-image img {
    max-width: 100%;
	max-height: 180px;
    height: auto;
	margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.affiliation-product-link:hover .affiliation-product-image img {
    transform: scale(1.05);
}

.affiliation-product-content {
    padding: 12px 15px;
    background: #ffffff;
}

.affiliation-product-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
}

.affiliation-product-catcher {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Style pour l'intégration dans les articles (shortcode) */
.entry-content .affiliation-product,
.entry-content .affiliation-product-widget {
    margin: 25px 0;
    max-width: 350px;
}

/* Styles pour les appareils mobiles */
@media screen and (max-width: 480px) {
    .affiliation-product-title {
        font-size: 14px;
    }
    
    .affiliation-product-catcher {
        font-size: 12px;
    }
    
    .affiliation-product-content {
        padding: 10px 12px;
    }
}