/*
 Theme Name:   Aux Deux Elephants Child
 Theme URI:    https://aux2elephants.fr
 Description:  Thème enfant pour la librairie Aux Deux Elephants
 Author:       Aux Deux Elephants
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  aux2elephants-child
*/

/* ==========================================================================
   IMPORT GOOGLE FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --a2e-blue: #252849;
    --a2e-gold: #c9a227;
    --a2e-dark: #252849;
    --a2e-gray: #666666;
    --a2e-light: #FAFAF4;
    --a2e-white: #ffffff;
    --a2e-border: #e0e0e0;
    --a2e-red: #dc3545;
    --font-playfair: 'Playfair Display', serif;
    --font-poppins: 'Poppins', sans-serif;
}

/* ==========================================================================
   PAGE BOUTIQUE
   ========================================================================== */
.a2e-shop-page {
    background: var(--a2e-light);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ==========================================================================
   HEADER BOUTIQUE
   ========================================================================== */
.a2e-shop-header {
    background: var(--a2e-white);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.a2e-shop-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Recherche */
.a2e-search-form {
    display: flex;
    flex: 1;
    max-width: 450px;
    min-width: 280px;
}

.a2e-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--a2e-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-family: var(--font-poppins);
    font-size: 14px;
    outline: none;
}

.a2e-search-form input[type="text"]::placeholder {
    font-family: var(--font-poppins);
    font-size: 14px;
    color: #999;
}

.a2e-search-form input[type="text"]:focus {
    border-color: var(--a2e-blue);
}

.a2e-search-form button {
    padding: 12px 18px;
    background: var(--a2e-blue);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.a2e-search-form button:hover {
    background: var(--a2e-gold);
}

.a2e-search-form button svg {
    color: white;
    display: block;
}

/* Contrôles */
.a2e-shop-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.a2e-control-label {
    font-family: var(--font-poppins);
    font-size: 14px;
    color: var(--a2e-gray);
}

.a2e-per-page-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid var(--a2e-border);
    border-radius: 6px;
    font-family: var(--font-poppins);
    font-size: 14px;
    background: var(--a2e-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 80px;
}

.a2e-per-page-select:focus {
    outline: none;
    border-color: var(--a2e-blue);
}

/* Boutons vue */
.a2e-view-buttons {
    display: flex;
    gap: 5px;
}

.a2e-view-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--a2e-white);
    border: 2px solid var(--a2e-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.a2e-view-btn svg {
    color: var(--a2e-gray);
}

.a2e-view-btn:hover,
.a2e-view-btn.active {
    background: var(--a2e-blue);
    border-color: var(--a2e-blue);
}

.a2e-view-btn:hover svg,
.a2e-view-btn.active svg {
    color: white;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */
.a2e-shop-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .a2e-shop-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.a2e-sidebar {
    position: sticky;
    top: 20px;
}

.a2e-sidebar-close {
    display: none;
}

.a2e-widget {
    background: var(--a2e-white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.a2e-widget-title {
    font-family: var(--font-playfair);
    font-size: 19px;
    font-weight: 600;
    color: var(--a2e-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--a2e-gold);
}

.a2e-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.a2e-cat-list li {
    margin-bottom: 6px;
}

.a2e-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--a2e-light);
    border-radius: 5px;
    color: var(--a2e-dark);
    text-decoration: none;
    font-family: var(--font-playfair);
    font-size: 15px;
    transition: all 0.2s;
}

.a2e-cat-list li a:hover,
.a2e-cat-list li.active a {
    background: var(--a2e-blue);
    color: white;
}

.a2e-cat-list li a .count {
    background: var(--a2e-gold);
    color: white;
    font-family: var(--font-poppins);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.a2e-cat-list li.active a .count {
    background: rgba(255,255,255,0.2);
}

/* Widget contact */
.a2e-widget-contact {
    background: var(--a2e-blue);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
}

.a2e-widget-contact p {
    font-family: var(--font-poppins);
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin: 0 0 18px;
    line-height: 1.5;
}

.a2e-btn-contact {
    display: inline-block;
    padding: 12px 28px;
    background: var(--a2e-gold);
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.a2e-btn-contact:hover {
    background: white;
    color: var(--a2e-blue) !important;
}

/* ==========================================================================
   FILTRE ACTIF
   ========================================================================== */
.a2e-active-filter {
    background: var(--a2e-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.a2e-filter-label {
    display: block;
    font-family: var(--font-poppins);
    font-size: 12px;
    color: var(--a2e-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.a2e-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--a2e-blue);
    color: white;
    padding: 8px 12px 8px 16px;
    border-radius: 20px;
    font-family: var(--font-playfair);
    font-size: 14px;
    font-weight: 500;
}

.a2e-filter-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    color: white !important;
    text-decoration: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.a2e-filter-remove:hover {
    background: var(--a2e-red);
}

/* ==========================================================================
   CONTENEUR PRODUITS
   ========================================================================== */
.a2e-products-container {
    min-width: 0;
}

/* Bouton filtre mobile */
.a2e-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--a2e-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-poppins);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}

.a2e-filter-btn svg {
    color: white;
}

@media (max-width: 991px) {
    .a2e-filter-btn {
        display: inline-flex;
    }
}

/* ==========================================================================
   GRILLE PRODUITS
   ========================================================================== */
.a2e-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1200px) {
    .a2e-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .a2e-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .a2e-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Vue liste */
.a2e-products-grid.list-view {
    grid-template-columns: 1fr;
}

.a2e-products-grid.list-view .a2e-product-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 20px;
    align-items: center;
}

.a2e-products-grid.list-view .a2e-product-image {
    height: 100%;
}

.a2e-products-grid.list-view .a2e-product-image img {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .a2e-products-grid.list-view .a2e-product-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CARTE PRODUIT
   ========================================================================== */
.a2e-product-card {
    background: var(--a2e-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.a2e-product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

/* Image */
.a2e-product-image {
    position: relative;
    overflow: hidden;
    background: var(--a2e-light);
}

.a2e-product-image a {
    display: block;
}

.a2e-product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Badge stock */
.a2e-badge-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--a2e-red);
    color: white;
    padding: 5px 12px;
    font-family: var(--font-poppins);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 5;
}

/* Overlay hover */
.a2e-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.a2e-product-card:hover .a2e-product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.a2e-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.a2e-icon-btn:hover {
    background: var(--a2e-gold);
    color: white;
}

.a2e-icon-btn:hover svg {
    stroke: white;
}

.a2e-icon-btn.added svg {
    fill: var(--a2e-red);
    stroke: var(--a2e-red);
}

/* Infos produit */
.a2e-product-info {
    padding: 20px;
    flex: 1;
}

.a2e-product-cats {
    margin-bottom: 8px;
}

.a2e-product-cats a {
    font-family: var(--font-playfair);
    font-size: 13px;
    color: var(--a2e-gray);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.a2e-product-cats a:hover {
    color: var(--a2e-gold);
}

/* Titre produit */
.a2e-product-name {
    margin: 0 0 10px;
    font-family: var(--font-playfair);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.a2e-product-name a {
    color: var(--a2e-blue);
    text-decoration: none;
}

.a2e-product-name a:hover {
    color: var(--a2e-gold);
}

/* Prix */
.a2e-product-price {
    font-family: var(--font-poppins);
    font-size: 18px;
    font-weight: 700;
    color: var(--a2e-blue);
}

.a2e-product-price del {
    color: var(--a2e-gray);
    font-size: 14px;
}

.a2e-product-price ins {
    text-decoration: none;
}

/* ==========================================================================
   BOUTONS PRODUIT
   ========================================================================== */
.a2e-product-action {
    padding: 0 20px 20px;
    text-align: center;
}

.a2e-add-cart,
.a2e-read-more {
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
    font-family: var(--font-poppins);
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: #252849;
    color: #ffffff !important;
}

.a2e-add-cart:hover,
.a2e-read-more:hover {
    background: var(--a2e-gold);
    color: #ffffff !important;
    text-decoration: none;
}

.a2e-add-cart.added::after {
    content: " ✓";
}

/* Lire la suite - variante outline */
.a2e-read-more {
    background: transparent;
    color: #252849 !important;
    border: 1px solid #252849;
    text-decoration: underline;
}

.a2e-read-more:hover {
    background: #252849;
    color: #ffffff !important;
    text-decoration: none;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.woocommerce-pagination {
    margin-top: 50px;
    padding-top: 40px;
    border-top: none;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
    background: #ffffff;
    color: #252849;
    border: 2px solid #252849;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-poppins);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-pagination ul li a:hover {
    background: #252849;
    color: #ffffff;
    border-color: #252849;
}

.woocommerce-pagination ul li span.current {
    background: #252849;
    color: #ffffff;
    border-color: #252849;
}

/* Flèche suivant/précédent */
.woocommerce-pagination ul li a.next,
.woocommerce-pagination ul li a.prev {
    font-size: 20px;
    font-weight: 400;
}

/* Points de suspension */
.woocommerce-pagination ul li span.dots {
    background: transparent;
    border: none;
    color: #252849;
    min-width: auto;
    padding: 0 5px;
}

/* ==========================================================================
   MODAL QUICK VIEW
   ========================================================================== */
.a2e-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.a2e-modal.active {
    display: flex;
}

.a2e-modal-box {
    background: white;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 100000;
}

@media (max-width: 768px) {
    .a2e-modal-box {
        grid-template-columns: 1fr;
    }
}

.a2e-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--a2e-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.a2e-modal-close:hover {
    background: var(--a2e-gold);
    transform: rotate(90deg);
}

.a2e-modal-image {
    background: var(--a2e-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.a2e-modal-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.a2e-modal-details {
    padding: 40px;
}

.a2e-modal-details h2 {
    font-family: var(--font-playfair);
    font-size: 24px;
    font-weight: 700;
    color: var(--a2e-blue);
    margin: 0 0 15px;
    padding-right: 40px;
}

.a2e-modal-details .price {
    font-family: var(--font-poppins);
    font-size: 26px;
    font-weight: 700;
    color: var(--a2e-gold);
    margin-bottom: 20px;
}

.a2e-modal-details .desc {
    font-family: var(--font-poppins);
    color: var(--a2e-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */
.a2e-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99998;
    display: none;
}

.a2e-overlay.active {
    display: block;
}

/* ==========================================================================
   SIDEBAR MOBILE
   ========================================================================== */
@media (max-width: 991px) {
    .a2e-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: var(--a2e-light);
        z-index: 99999;
        padding: 70px 20px 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .a2e-sidebar.active {
        left: 0;
    }
    
    .a2e-sidebar-close {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: var(--a2e-blue);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */
.a2e-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 15px 25px;
    background: #28a745;
    color: white;
    border-radius: 8px;
    z-index: 100001;
    font-family: var(--font-poppins);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.a2e-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.a2e-product-card {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.a2e-product-card:nth-child(1) { animation-delay: 0.05s; }
.a2e-product-card:nth-child(2) { animation-delay: 0.1s; }
.a2e-product-card:nth-child(3) { animation-delay: 0.15s; }
.a2e-product-card:nth-child(4) { animation-delay: 0.2s; }
.a2e-product-card:nth-child(5) { animation-delay: 0.25s; }
.a2e-product-card:nth-child(6) { animation-delay: 0.3s; }
.a2e-product-card:nth-child(7) { animation-delay: 0.35s; }
.a2e-product-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.a2e-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--a2e-border);
    border-top-color: var(--a2e-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.modal-open,
body.sidebar-open {
    overflow: hidden;
}
/* ==========================================================================
   PAGINATION - FIX COMPLET
   ========================================================================== */
.woocommerce-pagination,
nav.woocommerce-pagination {
    margin-top: 50px !important;
    padding-top: 40px !important;
    border-top: none !important;
    text-align: center !important;
}

.woocommerce-pagination ul,
nav.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers,
nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border: none !important;
    background: none !important;
}

.woocommerce-pagination ul li,
nav.woocommerce-pagination ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    float: none !important;
    display: inline-flex !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span,
.woocommerce-pagination ul li .page-numbers,
nav.woocommerce-pagination ul li .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 50px !important;
    height: 50px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #252849 !important;
    border: 2px solid #252849 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li a:hover {
    background: #252849 !important;
    color: #ffffff !important;
    border-color: #252849 !important;
}

.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li .page-numbers.current,
nav.woocommerce-pagination ul li .page-numbers.current {
    background: #252849 !important;
    color: #ffffff !important;
    border-color: #252849 !important;
}

/* Points de suspension */
.woocommerce-pagination ul li span.dots,
nav.woocommerce-pagination ul li span.dots,
.woocommerce-pagination ul li .page-numbers.dots,
nav.woocommerce-pagination ul li .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: #252849 !important;
    min-width: 30px !important;
    padding: 0 5px !important;
}

/* Flèches */
.woocommerce-pagination ul li a.next,
.woocommerce-pagination ul li a.prev,
nav.woocommerce-pagination ul li a.next,
nav.woocommerce-pagination ul li a.prev {
    font-size: 18px !important;
}
/* ==========================================================================
   RECHERCHE LIVE / AJAX SEARCH
   ========================================================================== */
.a2e-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 450px;
    min-width: 280px;
}

.a2e-search-form {
    display: flex;
    width: 100%;
}

/* Résultats de recherche */
.a2e-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--a2e-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.a2e-search-results.active {
    display: block;
}

/* Message de chargement / aucun résultat */
.a2e-search-message {
    padding: 20px;
    text-align: center;
    color: var(--a2e-gray);
    font-family: var(--font-poppins);
    font-size: 14px;
}

.a2e-search-message .a2e-spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 10px;
}

/* Item de résultat */
.a2e-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--a2e-border);
    transition: background 0.2s;
}

.a2e-search-item:last-child {
    border-bottom: none;
}

.a2e-search-item:hover {
    background: var(--a2e-light);
}

/* Image produit */
.a2e-search-item-image {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--a2e-light);
}

.a2e-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Infos produit */
.a2e-search-item-info {
    flex: 1;
    min-width: 0;
}

.a2e-search-item-title {
    font-family: var(--font-playfair);
    font-size: 15px;
    font-weight: 600;
    color: var(--a2e-blue);
    margin: 0 0 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.a2e-search-item-price {
    font-family: var(--font-poppins);
    font-size: 14px;
    font-weight: 600;
    color: var(--a2e-gold);
}

.a2e-search-item-meta {
    font-family: var(--font-poppins);
    font-size: 12px;
    color: var(--a2e-gray);
    margin-top: 3px;
}

.a2e-search-item-stock {
    color: #28a745;
}

.a2e-search-item-stock.out-of-stock {
    color: var(--a2e-red);
}

/* Bouton voir tous */
.a2e-search-view-all {
    display: block;
    padding: 15px;
    text-align: center;
    background: var(--a2e-light);
    color: var(--a2e-blue);
    font-family: var(--font-poppins);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--a2e-border);
    transition: background 0.2s;
}

.a2e-search-view-all:hover {
    background: var(--a2e-blue);
    color: #ffffff;
}

/* Highlight du texte recherché */
.a2e-search-highlight {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}