/* =================================================================
   1. Style de la barre de recherche (Nouveau Design Jaune)
   ================================================================= */
.apc-search-container-simple {
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}
.apc-search-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}
.apc-search-field {
    flex-grow: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    background-color: #fff;
    color: #333;
    /* --- CORRECTION --- */
    /* Force la suppression des coins arrondis du thème */
    border-radius: 0 !important;
    box-shadow: none !important; /* Force la suppression des ombres du thème */
}
.apc-search-field:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
}
.apc-search-submit {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #F39C12; /* Jaune/Or */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    /* --- CORRECTION --- */
    /* Force la suppression des coins arrondis du thème */
    border-radius: 0 !important;
}
.apc-search-submit:hover {
    background-color: #f39c12;
}

/* =================================================================
   2. Style de la page de résultats [apc_results]
   ================================================================= */
.apc-layout-container {
    display: flex;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
}
.apc-layout-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
.apc-layout-right {
    flex: 1;
    min-width: 300px;
}
.apc-title-section h1 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    /* --- LIMITATION À 2 LIGNES --- */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Nombre de lignes max */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute les "..." */
    line-height: 1.3em; /* Hauteur d'une ligne */
    max-height: 2.6em; /* Hauteur max (1.3em * 2 lignes) */
}
.apc-gallery-simple {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
}
.apc-gallery-simple img {
    width: 50%;
    height: auto;
    object-fit: contain;
}
.apc-product-brand {
    display: block;
    font-size: 15px;
    color: #777;
}
.apc-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 5px;
}
.apc-social-share {
    display: flex;
    gap: 10px;
}
.apc-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #555;
    border: none; /* <-- MODIFICATION ICI */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.apc-action-button:hover {
    background-color: #e0e0e0;
    color: #000;
}
.apc-action-button svg {
    width: 18px;
    height: 18px;
}

/* --- Style Liste de Prix (Page Résultats & Cartes) --- */
.apc-price-list {
    padding-top: 10px;
    margin-bottom: 30px;
}
.apc-price-item {
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 14px; /* Plus petit */
    border-bottom: 1px solid #eee;
    background-color: #fff;
    color: #333;
}
.apc-price-list .apc-price-item:last-child {
    border-bottom: none;
}
.apc-price-item.apc-best-price {
    background-color: #fffacd;
    /* Pour élargir le fond jaune */
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px; /* Petit arrondi sympa */
}
.apc-flag-icon {
  width: 20px;
    height: 15px !important;       /* Force la hauteur, ignore Elementor */
    max-width: none !important;    /* Supprime la limite de largeur d'Elementor */
    margin-right: 10px;
    border: 1px solid #eee;
    object-fit: cover;
    box-shadow: none !important;   /* Au cas où Elementor ajoute une ombre */
}
.apc-price-value {
    font-size: 15px;
    margin-right: auto;
    display: flex;
}
.apc-offer-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
   width: 28px;  /* Était 36px */
    height: 28px; /* Était 36px */
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #888;
    background-color: #fff;
    transition: all 0.2s ease;
}
.apc-offer-button-icon svg {
    width: 20px;
    height: 20px;
}
.apc-offer-button-icon:hover {
    color: #fff;
    background-color: #f39c12;
}
.apc-best-price .apc-offer-button-icon {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}
.apc-best-price .apc-offer-button-icon:hover {
    background-color: #e67e22;
}

/* =================================================================
   3. Style des Recherches Récentes [apc_recent_searches] (Grille 4x2 Propre)
   ================================================================= */
.apc-recent-searches-wrapper {
    font-family: Arial, sans-serif;
    margin: 30px auto;
    max-width: 1400px;
    padding: 0 15px;
}
.apc-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
.apc-recent-card {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.apc-recent-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.apc-recent-card-image-link {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}
.apc-recent-card-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.apc-recent-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}
.apc-recent-card-title-link {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
    line-height: 1.5em;
    margin-bottom: 15px;
}
.apc-recent-card-title-link:hover {
    color: #f39c12;
}
.apc-recent-card-brand {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}
.apc-recent-card .apc-price-list {
    padding-top: 10px;
}
.apc-recent-card .apc-price-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}
.apc-recent-card .apc-price-list .apc-price-item:last-child {
    border-bottom: none;
}
.apc-recent-card .apc-price-item:hover {
    background-color: #f8f8f8;
}
.apc-recent-card .apc-flag-icon {
    margin-right: 10px;
    width: 20px;
    height: 15px;
}
.apc-recent-card .apc-price-value {
    font-size: 16px;
    margin-right: auto;
    color: #111;
}
.apc-recent-card .apc-offer-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #aaa;
    background-color: #f0f0f0;
    transition: all 0.2s ease;
}
.apc-recent-card .apc-offer-button-icon svg {
    width: 18px;
    height: 18px;
}
.apc-recent-card .apc-price-item:hover .apc-offer-button-icon {
    color: #fff;
    background-color: #f39c12;
}
.apc-recent-card .apc-price-item.apc-best-price {
    background-color: #fffacd;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}
.apc-recent-card .apc-best-price .apc-offer-button-icon {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

/* --- Responsive pour la grille --- */
@media (max-width: 1200px) {
    .apc-recent-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .apc-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .apc-recent-grid {
        grid-template-columns: 1fr;
    }
    .apc-search-submit span {
        display: none;
    }
    .apc-search-submit {
        gap: 0;
        justify-content: center;
        padding: 12px 15px;
    }
}




/* =================================================================
   4. Style du Chargement (Spinner + Flou)
   ================================================================= */

/* L'écran qui recouvre tout le site */
#apc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* Fond blanc transparent */
    backdrop-filter: blur(5px); /* L'effet de flou sur la page derrière */
    z-index: 99999; /* Toujours au-dessus de tout */
    display: none; /* Caché par défaut */
    align-items: center;
    justify-content: center;
}

/* Le cercle qui tourne (Spinner) */
.apc-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Gris clair */
    border-top: 5px solid #F39C12; /* Jaune/Or (votre couleur) */
    border-radius: 50%;
    animation: apc-spin 1s linear infinite;
}

/* Animation de rotation */
@keyframes apc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}






/* --- Agrandir la taille du Meilleur Prix --- */
.price-row.is-cheapest .price-value,
.apc-price-item.apc-best-price .apc-price-value,
.apc-recent-card .apc-best-price .apc-price-value {
    font-size: 1.5em !important; /* Beaucoup plus grand (par défaut c'est 1.3em) */
    font-weight: 800; /* Très gras */
    color: #F39C12; /* Optionnel : changer la couleur du texte en orange pour ressortir encore plus */
}







