.icon:first-child a:first-child{
    padding: 16px 25px !important;
}

.search-results-container {
    position: fixed;
    top: 100px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    min-width: 300px !important;
    background: white;
    border: 1px solid #e0e0e0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    animation: slideDown 0.2s ease-out;
}



/* S'assurer qu'aucun parent n'interfère */

body .search-results-container {

    left: 50% !important;

    transform: translateX(-50%) !important;

}



.search-results-header {

    padding: 20px 25px;

    border-bottom: 1px solid #f0f0f0;

    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    border-radius: 12px 12px 0 0;

    position: sticky;

    top: 0;

    z-index: 1;

}



.search-results-header h3 {

    margin: 0;

    font-size: 18px;

    font-weight: 700;

    color: #2c3e50;

    text-align: center;

}



.search-results-list {

    padding: 0;

}



.search-result-item {

    display: flex;

    align-items: center;

    padding: 16px 25px;

    border-bottom: 1px solid #f8f9fa;

    text-decoration: none;

    color: inherit;

    transition: all 0.3s ease;

    /* gap: 20px; */

    width: 100%;

}



.search-result-item:hover {

    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);

    /* transform: translateX(5px); */

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    text-decoration: none;

    color: inherit;

}



.search-result-item:last-child {

    border-bottom: none;

}



.search-result-image {

    width: 70px;

    height: 70px;

    margin-left: 15px;

    object-fit: cover;

    border-radius: 8px;

    flex-shrink: 0;

    border: 2px solid #e9ecef;

    transition: border-color 0.3s ease;

}



.search-result-item:hover .search-result-image {

    border-color: #e9ecef;

}



.search-result-info {

    flex: 1;

    min-width: 0;

    overflow: hidden;

    text-align: center;

}



.search-result-name {

    font-weight: 700;

    margin-bottom: 6px;

    color: #2c3e50;

    font-size: 16px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.4;

}



.search-result-details {

    font-size: 13px;

    color: #7f8c8d;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.4;

    font-weight: 500;

}



.search-result-price {

    font-weight: 800;

    color: #423a34;

    font-size: 16px;

    flex-shrink: 0;

    margin-left: auto;

    padding-left: 15px;

    white-space: nowrap;

    text-align: right;

}



.promo-badge {

    display: inline-block;

    background: #27ae60;

    color: white;

    padding: 1px 5px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 600;

    margin-left: 8px;

    vertical-align: middle;

}



.search-loading {

    padding: 40px 20px;

    text-align: center;

    background: #f8f9fa;

}



.search-no-results {

    padding: 40px 20px;

    text-align: center;

    background: #f8f9fa;

    color: #7f8c8d;

    font-style: italic;

}



.spinner-border {

    color: #7f8c8d !important;

}



/* Style pour l'image placeholder */

.search-result-image-placeholder {

    width: 70px;

    height: 70px;

    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    border: 2px solid #e9ecef;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.search-result-image-placeholder i {

    font-size: 24px;

    color: #bdc3c7;

}



/* RESPONSIVE DESIGN */

@media (max-width: 768px) {

    .search-results-container {

        width: 95%;

        top: 90px;

        max-height: 400px;

        border-radius: 8px;

    }

    

    .search-results-header {

        padding: 15px 20px;

    }

    

    .search-results-header h3 {

        font-size: 16px;

    }

    

    .search-result-item {

        padding: 12px 20px;

        gap: 15px;

    }

    

    .search-result-image,

    .search-result-image-placeholder {

        width: 50px;

        height: 50px;

    }

    

    .search-result-name {

        font-size: 14px;

    }

    

    .search-result-details {

        font-size: 12px;

    }

    

    .search-result-price {

        font-size: 14px;

    }

}



@media (max-width: 480px) {

    .search-results-container {

        width: 98%;

        top: 80px;

        max-height: 350px;

    }

    

    .search-result-item {

        padding: 10px 15px;

        gap: 12px;

        flex-wrap: wrap;

    }

    

    .search-result-info {

        min-width: 150px;

    }

    

    .search-result-price {

        margin-left: 0;

        padding-left: 0;

        width: 100%;

        text-align: left;

        margin-top: 5px;

        padding-top: 5px;

        border-top: 1px dashed #ecf0f1;

    }

}



/* Scrollbar personnalisée */

.search-results-container::-webkit-scrollbar {

    width: 6px;

}



.search-results-container::-webkit-scrollbar-track {

    background: #f1f1f1;

    border-radius: 0 12px 12px 0;

}



.search-results-container::-webkit-scrollbar-thumb {

    background: #bdc3c7;

    border-radius: 3px;

}



.search-results-container::-webkit-scrollbar-thumb:hover {

    background: #95a5a6;

}



/* 🆕 STYLES DRAG & DROP IMAGES */

.sortable-images {

    min-height: 100px;

}



.image-item {

    cursor: grab;

    transition: all 0.3s ease;

    user-select: none;

}



.image-item:hover {

    transform: scale(1.05);

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

}



.image-item.dragging {

    opacity: 0.5;

    transform: scale(0.95);

    cursor: grabbing;

}



.image-item.drag-over {

    border: 2px dashed #007bff;

    background-color: #f8f9fa;

}



.image-item .bg-primary {

    font-size: 10px;

    border-radius: 0 0 4px 0;

    z-index: 2;

}



/* Indicateur visuel pour l'image principale */

.image-item:first-child::after {

    content: "Principale";

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    background: rgba(40, 167, 69, 0.9);

    color: white;

    font-size: 10px;

    text-align: center;

    padding: 2px;

    border-radius: 0 0 4px 4px;

}



/* Styles pour les filtres boutique */

.shop-filter.category-filter li {

    display: flex;

    align-items: center;

    margin-bottom: 8px;

}



.shop-filter.category-filter li a {

    display: flex;

    align-items: center;

    text-decoration: none;

    color: inherit;

    width: 100%;

}



.product-cb {

    display: inline-block;

    width: 16px;

    height: 16px;

    border: 2px solid #ddd;

    border-radius: 3px;

    margin-right: 10px;

    position: relative;

    transition: all 0.3s ease;

}



.product-cb.checked {

    background-color: #000;

    border-color: #000;

}



.product-cb.checked::after {

    content: '✓';

    position: absolute;

    color: white;

    font-size: 12px;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

}



/* Badges produits */

.lable {

    position: absolute;

    top: 15px;

    left: 15px;

    padding: 4px 10px;

    font-size: 12px;

    font-weight: 600;

    border-radius: 3px;

    z-index: 2;

}



.lable.new {

    background: #000;

    color: #fff;

}



.lable.hot {

    background: #dc3545;

    color: #fff;

}



/*Drag and Drop list produits admin*/

.sortable-ghost {

    opacity: 0.4;

    background-color: #f8f9fa;

}



.sortable-chosen {

    background-color: #e3f2fd !important;

}



.sortable-drag {

    opacity: 1;

    transform: rotate(2deg);

}



.drag-handle {

    cursor: grab;

}



.drag-handle:active {

    cursor: grabbing;

}



.product-row {

    transition: background-color 0.3s ease;

}



/* Section filtre page boutique */

#filters-section {

    transition: all 0.3s ease;

    opacity: 0;

    transform: translateY(-10px);

}



#filters-section:not(.d-none) {

    opacity: 1;

    transform: translateY(0);

}



/* #toggle-filters-btn.active {

    background-color: #495057;

    border-color: #495057;

} */



#toggle-filters-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

}

#attribute-error .feather-alert-triangle {
    color: #dc3545;
}

/* Styles pour le popup */
.add-to-cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.add-to-cart-popup .popup-content {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: popupFadeIn 0.3s ease;
}

.add-to-cart-popup .popup-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-popup .popup-header h4 {
    margin: 0;
    color: #423a34;
}

.add-to-cart-popup .popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.add-to-cart-popup .popup-body {
    padding: 20px;
}

.add-to-cart-popup .popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* Animations */
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}


/* Bouton "désactivé visuel" - mais toujours cliquable */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    /* IMPORTANT: pointer-events: none est ENLEVÉ pour permettre les clics */
}

/* Animation pour les champs en erreur */
.attribute-error-highlight {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    border-radius: 5px;
    animation: pulseError 2s ease-in-out;
    padding: 5px;
}

/* Pour les sélecteurs de couleur/taille */
.shop-color.attribute-error-highlight,
.shop-size.attribute-error-highlight {
    padding: 10px;
    border-radius: 8px;
}

@keyframes pulseError {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Message d'erreur */
#attribute-error {
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-outline-dark:hover {
    color: #212529 !important;
}

/* RESPONSIVE PANIER */
@media (max-width: 991.98px) {
    .cart-item-row {
        padding: 15px 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .cart-item-row:last-child {
        border-bottom: none;
    }
    
    .lg-sticky-top {
        position: relative !important;
        top: 0 !important;
    }
    
    #mobile-cart-count {
        font-weight: 500;
        margin-bottom: 1rem;
    }
}

/* AMÉLIORATION AFFICHAGE MOBILE DES ARTICLES PANIER */
.cart-item-mobile-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cart-item-image {
    flex: 0 0 80px;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}


/* AMÉLIORATIONS MOBILE PANIER */
@media (max-width: 991.98px) {
    .cart-item-row {
        padding: 20px 0; /* 🆕 Plus d'espace entre les produits */
        border-bottom: 2px solid #f8f9fa; /* 🆕 Ligne de séparation plus visible */
    }
    
    .cart-item-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .cart-item-image {
        flex: 0 0 100px; /* 🆕 Image légèrement plus grande */
        margin-bottom: 15px; /* 🆕 Marge sous la photo */
    }
    
    .cart-item-image img {
        width: 100%;
        height: 100px; /* 🆕 Hauteur fixe pour uniformité */
        object-fit: cover; /* 🆕 Maintient les proportions */
        border-radius: 10px; /* 🆕 Coins plus arrondis */
        box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 🆕 Légère ombre */
    }
    
    /* 🆕 STYLE DU NOM DU PRODUIT CLIQUABLE */
    .cart-item-details h4 {
        font-size: 20px !important;
        font-weight: 600 !important;
        line-height: 1.3;
        margin-bottom: 12px !important;
        transition: color 0.2s ease;
    }
    
    .cart-item-actions {
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
    }
    
    
    /* 🆕 PRIX PLUS VISIBLE */
    .cart-item-details .price {
        font-size: 18px !important;
        color: #1a1a1a !important;
    }
}

/* 🆕 ANIMATION DOUCE POUR LES LIENS */
.cart-item-details a {
    transition: all 0.2s ease;
}

.cart-item-details a:hover {
    transform: translateY(-1px);
}

.swiper-pagination-bullet-active{
    background-color: #212529 !important;
}

/* rbt marge sous élément de menu 0px*/
.navbar .navbar-nav .dropdown .dropdown-menu {
    padding-bottom: 0px !important;
}

 

