/**
 * Styles Frontend - effiPresta2WP
 * Styles par défaut pour le shortcode [Prestaproduct]
 */

/* Conteneur principal */
.effipresta2wp-product {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.effipresta2wp-product-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.effipresta2wp-product-inner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image du produit */
.effipresta2wp-product-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.effipresta2wp-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.effipresta2wp-product-image img:hover {
    transform: scale(1.02);
}

/* Contenu du produit */
.effipresta2wp-product-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Titre */
.effipresta2wp-product-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.effipresta2wp-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.effipresta2wp-product-title a:hover {
    color: #2271b1;
}

/* Description */
.effipresta2wp-product-description {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 10px 0;
}

.effipresta2wp-product-description p {
    margin: 0 0 10px 0;
}

.effipresta2wp-product-description p:last-child {
    margin-bottom: 0;
}

.effipresta2wp-product-description ul,
.effipresta2wp-product-description ol {
    margin: 10px 0;
    padding-left: 20px;
}

.effipresta2wp-product-description li {
    margin-bottom: 5px;
}

/* Prix */
.effipresta2wp-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.effipresta2wp-product-price .price-label {
    font-weight: 400;
    color: #666;
    margin-right: 8px;
}

.effipresta2wp-product-price .price-value {
    font-size: 22px;
    color: #2271b1;
}

/* Bouton d'action */
.effipresta2wp-product-action {
    margin-top: 10px;
}

.effipresta2wp-button {
    display: inline-block;
    padding: 12px 30px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #2271b1;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}

.effipresta2wp-button:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.effipresta2wp-button:active {
    transform: translateY(0);
}

.effipresta2wp-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Message d'erreur */
.effipresta2wp-error {
    padding: 15px;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    color: #c62828;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .effipresta2wp-product-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .effipresta2wp-product-title {
        font-size: 20px;
    }
    
    .effipresta2wp-product-description {
        font-size: 14px;
    }
    
    .effipresta2wp-product-price {
        font-size: 16px;
    }
    
    .effipresta2wp-product-price .price-value {
        font-size: 20px;
    }
    
    .effipresta2wp-button {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }
}

@media screen and (max-width: 480px) {
    .effipresta2wp-product-inner {
        padding: 15px;
    }
    
    .effipresta2wp-product-title {
        font-size: 18px;
    }
}

/* Classes utilitaires pour personnalisation */
.effipresta2wp-product.compact .effipresta2wp-product-inner {
    padding: 20px;
    gap: 20px;
}

.effipresta2wp-product.wide .effipresta2wp-product-inner {
    max-width: 100%;
}

.effipresta2wp-product.centered {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Multi-produits */
.effipresta2wp-multi-products {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.effipresta2wp-multi-products .effipresta2wp-product {
    margin: 0;
}

.effipresta2wp-multi-products .effipresta2wp-product-inner {
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.effipresta2wp-multi-products .effipresta2wp-product-inner:hover {
    box-shadow: none;
}

.effipresta2wp-separator {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 25px 0;
}

/* Mise en avant */
.effipresta2wp-product--highlighted .effipresta2wp-product-inner {
    border: 2px solid #d4a017;
    background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.15);
    position: relative;
    border-radius: 8px;
}

/* Specific highlight inside multi-products container */
.effipresta2wp-multi-products .effipresta2wp-product--highlighted {
    margin: 20px -32px;
    position: relative;
    z-index: 10;
}

.effipresta2wp-multi-products .effipresta2wp-product--highlighted:first-child {
    margin-top: -32px;
}

.effipresta2wp-multi-products .effipresta2wp-product--highlighted:last-child {
    margin-bottom: -32px;
}

.effipresta2wp-multi-products .effipresta2wp-product--highlighted .effipresta2wp-product-inner {
    padding: 30px;
}

.effipresta2wp-product--highlighted .effipresta2wp-product-inner::before {
    content: '⭐';
    position: absolute;
    top: -12px;
    right: 15px;
    background: #d4a017;
    color: #fff;
    font-size: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.effipresta2wp-product--highlighted .effipresta2wp-product-inner:hover {
    box-shadow: 0 6px 16px rgba(212, 160, 23, 0.25);
}