/*
Theme Name: Hello Elementor Child
Theme URI: https://boucherie-moray.be
Description: Thème enfant pour Boucherie Moray
Author: Boucherie Moray
Template: hello-elementor
Version: 1.0.0
*/

/* ==============================================
   CHECKOUT - PICKUP / RETRAIT
   ============================================== */
.wpc_pro_order_time { display: none !important; }
#wpc_pro_order_time_field { display: none !important; }
.woocommerce-shipping-fields { display: none !important; }

.wpc_pro_date_section { display: flex; gap: 16px; }
.wpc_pro_date_section .wpc_pro_pickup_date,
.wpc_pro_date_section .wpc_pro_time_section { flex: 1; }

@media (max-width: 768px) {
    .wpc_pro_date_section { flex-direction: column; }
}

.wpc_pro_pickup_section {
    width: 100% !important;
    grid-column: 1 / -1 !important;
    clear: both !important;
}

.wpc_pro_pickup_section .form-row,
.wpc_pro_pickup_section .wpc_pro_date_settings,
.wpc_pro_pickup_section .wpc_pro_time_settings {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 15px !important;
}

/* ==============================================
   BOUTONS CATÉGORIE BOUCHERIE (custom)
   ============================================== */
.boucherie-wrap .boucherie-cat-button,
.boucherie-wrap .boucherie-cat-button:hover,
.boucherie-wrap .boucherie-cat-button:focus {
    background-color: transparent !important;
    background: transparent !important;
    color: #c0392b !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.boucherie-wrap .boucherie-cat-button:hover {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
}

.boucherie-wrap .boucherie-cat-item.is-active .boucherie-cat-button,
.boucherie-wrap .boucherie-cat-item.is-active .boucherie-cat-button:hover,
.boucherie-wrap .boucherie-cat-item.is-active .boucherie-cat-button:focus {
    background-color: #c0392b !important;
    color: #ffffff !important;
    border-color: #c0392b !important;
}

/* ==============================================
   WPCAFE - IMAGES DES CATÉGORIES
   ============================================== */
.main_wrapper_5050a16 .wpc-nav li:nth-child(1)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-boeuf.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(2)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-porc.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(3)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-veau.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(4)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-agneau.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(5)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-poulet.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(6)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-charcuterie.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(7)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-traiteur-chaud.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(8)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-salade.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(9)  a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-BBQ.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(10) a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-dessert.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(11) a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-fromages.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(12) a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-raclette.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(13) a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-choucroute.webp') center/contain no-repeat transparent !important; }
.main_wrapper_5050a16 .wpc-nav li:nth-child(14) a::before { background: url('http://boucherie-moray.noveodigital.be/wp-content/uploads/2026/03/categorie-oeufs.webp') center/contain no-repeat transparent !important; }

/* ==============================================
   WPCAFE - CERCLE FOND CATÉGORIE ACTIVE (injecté JS)
   ============================================== */
.wpc-nav li a .custom-bg-circle {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(192, 57, 43, 0.12);
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ==============================================
   WOOCOMMERCE - CACHER NOTICES
   ============================================== */
.woocommerce-message,
.woocommerce-notices-wrapper,
.wc-block-components-notice-banner {
    display: none !important;
}

/* ==============================================
   BOUTON PANIER - ÉTAT NORMAL
   Cache les spans de texte WPCafe
   ============================================== */
.wpc-add-to-cart a.add_to_cart_button .adding {
    display: none !important;
}

.wpc-add-to-cart a.add_to_cart_button:not([aria-disabled="true"]) .added {
    display: none !important;
}

/* ==============================================
   BOUTON PANIER - ÉTAT "AJOUTÉ" (aria-disabled="true")
   Overlay ::before vert couvre tout le bouton
   ============================================== */
.wpc-add-to-cart a.add_to_cart_button[aria-disabled="true"] {
    position: relative !important;
    overflow: hidden !important;
}

.wpc-add-to-cart a.add_to_cart_button[aria-disabled="true"]::before {
    content: '✓' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: white !important;
    background-color: rgb(46, 204, 113) !important;
    z-index: 10 !important;
}

/* ==============================================
   TOAST "AJOUTÉ AU PANIER"
   ============================================== */
#boucherie-cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgb(46, 204, 113);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
    pointer-events: none;
}

#boucherie-cart-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* WPCAFE - Position pour le cercle actif */
.wpc-nav li a {
    position: relative;
}
/* WPCAFE - Espacement égal des catégories */
.wpc-nav {
    display: flex !important;
    justify-content: space-evenly !important;
    width: 100% !important;
}

.wpc-nav li {
    flex: 1 !important;
    text-align: center !important;
}
/* Espacement égal des catégories */
.main_wrapper_5050a16 .wpc-nav {
    justify-content: flex-start !important;
    gap: 15px !important;
}

.main_wrapper_5050a16 .wpc-nav > li {
    flex: 0 0 100px !important;
    text-align: center !important;
}
.woocommerce-message {
    display: none !important;
}
/* ── Ordering Food : quantité compacte ── */
.ordering-food-wrap .ordering-food-qty__btn {
    flex-shrink: 0 !important;
    padding: 2px 6px !important;
    min-width: 28px !important;
}
.ordering-food-wrap .ordering-food-qty__input {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
}
