/* ==============================================
   E-CARTE CADEAU – TITRE ET VISUELS
   ============================================== */

/* Wrapper du titre (fond gris et centrage) */
.ecard-title-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #F6F6F6 !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
}

/* Titre lui-même */
.ecard-title {
    float: none !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    font-size: 18px;
    box-sizing: border-box;
}

/* Visuels – images centrées sous le titre */
.ecard-visuals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

/* Chaque label contient image + texte */
.ecard-visuals label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* Cache le bouton radio */
.ecard-visuals input[type="radio"] {
    display: none;
}

/* Image des cartes */
.ecard-thumb {
    width: 120px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

/* Hover – léger zoom */
.ecard-thumb:hover {
    transform: scale(1.05);
}

/* Carte sélectionnée – bordure bleue */
.ecard-visuals input[type="radio"]:checked + .ecard-thumb {
    border: 4px solid #007bff;
    border-radius: 8px;
}

/* Texte sous l’image */
.ecard-label-text {
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
}

/* ==============================================
   PRODUIT 205 – MASQUER PRIX ET AFFICHER FORMULAIRE
   ============================================== */
body#product-id-205 .product-prices {
    display: none; /* cache le prix */
}

body#product-id-205 .card.card-block {
    overflow: visible !important;
    z-index: 10 !important;
}

body#product-id-205 .card.card-block p,
body#product-id-205 .card.card-block h2 {
    display: block !important;
    color: #000 !important;
}

body#product-id-205 .ecard-description, 
body#product-id-205 .ecard-description * {
    background: transparent !important;
}

/* ==============================================
   MENU PRINCIPAL – Catégories
   ============================================== */
#_desktop_top_menu > ul#top-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

#_desktop_top_menu > ul#top-menu > li.category:not(#category-415) {
    margin-right: 12px;
    border-right: 1px solid #e7e7e7;
    flex: 0 0 auto;
}

#_desktop_top_menu > ul#top-menu > li.category > a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
}

#_desktop_top_menu > ul#top-menu > li.category > a:hover {
    border-bottom: 2px solid #2fb5d2;
    color: #2fb5d2;
    background-color: rgba(47, 181, 210, 0.05);
}

/* Ligne E-carte cadeau + Blog centrée */
#_desktop_top_menu > ul#top-menu > #category-415 {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

#_desktop_top_menu > ul#top-menu > #category-415 a {
    font-weight: bold;
    color: #d35400;
    text-decoration: none;
}

#_desktop_top_menu > ul#top-menu > #category-415 a:hover {
    color: #2fb5d2;
    border-bottom: 2px solid #2fb5d2;
}

/* Supprime le dernier séparateur */
#_desktop_top_menu > ul#top-menu > li.category:last-child {
    border-right: none;
}

/* ==============================================
   SOUS-MENUS – vertical, centré, hover visible
   ============================================== */
.popover.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 9999;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 5px 0;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: normal !important;
}

li.category:hover > .popover.sub-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.popover.sub-menu .top-menu {
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.popover.sub-menu .top-menu li {
    display: block;
    border-bottom: 1px solid #eee;
}

.popover.sub-menu .top-menu li:last-child {
    border-bottom: none;
}

.popover.sub-menu .top-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popover.sub-menu .top-menu li a:hover {
    background-color: #2fb5d2 !important;
    color: #fff !important;
    padding-left: 25px;
    border-radius: 4px;
}

/* ==============================================
   BANNIERE HAUTE DU SITE
   ============================================== */
#top-promo-banner {
    background-color: #ffefc1;
    color: #856404;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 14px;
}

/* ==============================================
   LOGOS – MOYENS DE PAIEMENT
   ============================================== */
.footer-payments {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-payments .payment-icon {
    height: 30px;
    object-fit: contain;
}

/* ==============================================
   PANIERS – Message dynamique livraison gratuite
   ============================================== */
.free-shipping-info {
    background-color: #fff4e5;
    border: 1px solid #f0c36d;
    padding: 12px;
    margin: 12px 0;
    text-align: center;
    font-weight: 600;
}

.free-shipping-success {
    background-color: #e6f7ee;
    border: 1px solid #4caf50;
    padding: 12px;
    margin: 12px 0;
    text-align: center;
    font-weight: 600;
}
