/* =============================================
   WPCAFE MENU TAB - BOUCHERIE MORAY
   Styles pour les onglets et produits boutique
   ============================================= */

.wpc-food-tab-wrapper,
.elementor-widget-wpc_menu_tab_pro > .elementor-widget-container {
    position: relative !important;
}

/* === DÉGRADÉS === */
.wpc-food-tab-wrapper::before,
.elementor-widget-wpc_menu_tab_pro > .elementor-widget-container::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 180px !important;
    width: 60px !important;
    background: linear-gradient(to right, white 0%, rgba(255,255,255,0.95) 40%, transparent 100%) !important;
    z-index: 30 !important;
    pointer-events: none !important;
}

.wpc-food-tab-wrapper::after,
.elementor-widget-wpc_menu_tab_pro > .elementor-widget-container::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 180px !important;
    width: 60px !important;
    background: linear-gradient(to left, white 0%, rgba(255,255,255,0.95) 40%, transparent 100%) !important;
    z-index: 30 !important;
    pointer-events: none !important;
}

/* Container nav */
.wpc-nav {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 30px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 20px 150px 20px 60px !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    border: none !important;
    position: relative !important;
    z-index: 15 !important;
    scrollbar-width: none !important;
}

.wpc-nav::-webkit-scrollbar { height: 0 !important; }

.wpc-nav li {
    list-style: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border: none !important;
    outline: none !important;
    position: relative !important;
    z-index: 20 !important;
}

.wpc-nav li a {
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    position: relative !important;
    padding: 130px 20px 20px 20px !important;
    white-space: nowrap !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    z-index: 20 !important;
    cursor: pointer !important;
    border-radius: 16px !important;
}

/* Masquer les <img> natifs WPCafe dans la nav — on utilise uniquement ::before */
.wpc-nav li a img {
    display: none !important;
}

/* Image via ::before — INCLINÉE 15° */
.wpc-food-tab .wpc-nav li a::before,
.wpc-nav li a::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(15deg) !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: none !important;
}

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

/* Catégorie active — cercle coloré centré sur l'image */
.wpc-food-tab .wpc-nav li a.wpc-active,
.wpc-nav li a.wpc-active {
    background-color: transparent !important;
}

.wpc-food-tab .wpc-nav li a.wpc-active::before,
.wpc-nav li a.wpc-active::before {
    box-shadow: 0 0 0 10px rgba(192, 57, 43, 0.1) !important;
    transform: translateX(-50%) rotate(15deg) !important;
}

/* Masquer le triangle indicateur WPCafe */
.wpc-nav li a.wpc-active::after {
    display: none !important;
}

/* Texte */
.wpc-nav li a span {
    font-size: 14px !important;
    text-transform: uppercase !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.wpc-nav li a.wpc-active span {
    font-weight: 700 !important;
    color: #c0392b !important;
}

/* Hover — aucun effet */
@media (hover: hover) {
    .wpc-food-tab .wpc-nav li a:hover::before,
    .wpc-nav li a:hover::before {
        transform: translateX(-50%) rotate(15deg) !important;
        box-shadow: none !important;
    }
    .wpc-nav li a:hover {
        box-shadow: none !important;
        background-color: transparent !important;
    }
}

/* === FLÈCHES === */
.wpc-nav-arrow-left,
.wpc-nav-arrow-right {
    position: absolute !important;
    top: 60px !important;
    width: 44px !important;
    height: 44px !important;
    background: white !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 35 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    pointer-events: auto !important;
}

.wpc-nav-arrow-left { left: 15px !important; opacity: 0 !important; pointer-events: none !important; }
.wpc-nav-arrow-left.visible { opacity: 1 !important; pointer-events: all !important; }
.wpc-nav-arrow-right { right: 15px !important; }

.wpc-nav-arrow-left:hover,
.wpc-nav-arrow-right:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
    transform: scale(1.05) !important;
}

.wpc-nav-arrow-left::before {
    content: '' !important; position: absolute !important; top: 50% !important; left: 50% !important;
    transform: translate(-45%, -50%) rotate(45deg) !important;
    width: 10px !important; height: 10px !important;
    border-left: 2px solid #333 !important; border-bottom: 2px solid #333 !important;
}

.wpc-nav-arrow-right::before {
    content: '' !important; position: absolute !important; top: 50% !important; left: 50% !important;
    transform: translate(-55%, -50%) rotate(-45deg) !important;
    width: 10px !important; height: 10px !important;
    border-right: 2px solid #333 !important; border-bottom: 2px solid #333 !important;
}

/* ========================================
   GRILLE DE PRODUITS
   ======================================== */

.wpc-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    padding: 40px 20px !important;
}

.wpc-col-lg-3, .wpc-col-md-4, .wpc-col-sm-6 {
    max-width: 100% !important; flex: none !important;
    width: 100% !important; padding: 0 !important; margin: 0 !important;
}

.wpc-food-menu-item {
    background: transparent !important; border: none !important;
    padding: 0 !important; box-shadow: none !important; position: relative !important;
}

.wpc-food-menu-thumb {
    position: relative !important; margin: 0 0 20px 0 !important;
    border-radius: 32px !important; overflow: hidden !important;
    width: 100% !important; height: 220px !important;
}

.wpc-food-menu-thumb > a {
    display: block !important; position: relative !important;
    width: 100% !important; height: 100% !important;
}

.wpc-food-menu-thumb img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; object-position: center !important; display: block !important;
}

/* ========================================
   BOUTON PANIER
   ======================================== */

.wpc-add-to-cart {
    position: absolute !important; top: 15px !important;
    right: 15px !important; z-index: 10 !important; margin: 0 !important;
}

.wpc-add-to-cart a {
    position: relative !important; width: 40px !important; height: 40px !important;
    min-width: 40px !important; background: white !important; border: none !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important;
    justify-content: center !important; cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important; padding: 0 !important;
    text-decoration: none !important; overflow: visible !important; transition: all 0.2s ease !important;
}

.wpc-add-to-cart a .wpcafe-cart_icon {
    position: relative !important; width: 100% !important; height: 100% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}

.wpc-add-to-cart a:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
    transform: scale(1.05) !important;
}

.added_to_cart, .wc-forward { display: none !important; }

/* ========================================
   CONTENU TEXTE
   ======================================== */

.wpc-food-inner-content {
    display: flex !important; flex-direction: column !important;
    padding: 0 !important; background: transparent !important; text-align: left !important;
}

.wpc-post-title { order: 1 !important; text-align: left !important; margin: 0 0 8px 0 !important; }

.wpc-post-title a {
    font-size: 16px !important; font-weight: 700 !important; color: #000 !important;
    text-decoration: none !important; display: block !important; line-height: 1.3 !important;
}

.wpc-food-inner-content > p {
    order: 2 !important; font-size: 14px !important; color: #666 !important;
    margin: 0 0 8px 0 !important; line-height: 1.4 !important; text-align: left !important;
}

.wpc-menu-currency, .wpc-menu-currency.moved {
    order: 3 !important; display: block !important;
    margin: -1rem 0 0 -1rem !important; text-align: left !important;
}

.wpc-menu-price { font-size: 16px !important; font-weight: 500 !important; color: #000 !important; }
.woocommerce-Price-amount { color: #000 !important; }
.wpc-menu-tag-wrap { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .wpc-nav { gap: 20px !important; padding: 20px 100px 20px 50px !important; }
    .wpc-food-tab .wpc-nav li a::before, .wpc-nav li a::before { width: 80px !important; height: 80px !important; }
    .wpc-nav li a { padding: 110px 15px 15px 15px !important; }
    .wpc-nav li a span { font-size: 12px !important; }
    .wpc-nav-arrow-left, .wpc-nav-arrow-right { width: 35px !important; height: 35px !important; top: 50px !important; }
    .wpc-food-tab-wrapper::before, .wpc-food-tab-wrapper::after,
    .elementor-widget-wpc_menu_tab_pro > .elementor-widget-container::before,
    .elementor-widget-wpc_menu_tab_pro > .elementor-widget-container::after { height: 160px !important; width: 80px !important; }
    .wpc-row { grid-template-columns: repeat(3, 1fr) !important; gap: 25px !important; }
    .wpc-food-menu-thumb { height: 200px !important; }
}

@media (max-width: 768px) {
    .wpc-nav { gap: 15px !important; padding: 15px 10px !important; }
    .wpc-food-tab .wpc-nav li a::before, .wpc-nav li a::before { width: 70px !important; height: 70px !important; }
    .wpc-nav li a { padding: 90px 12px 12px 12px !important; }
    .wpc-nav li a span { font-size: 11px !important; }
    .wpc-nav-arrow-left, .wpc-nav-arrow-right { display: none !important; }
    .wpc-food-tab-wrapper::before, .wpc-food-tab-wrapper::after,
    .elementor-widget-wpc_menu_tab_pro > .elementor-widget-container::before,
    .elementor-widget-wpc_menu_tab_pro > .elementor-widget-container::after { display: none !important; }
    .wpc-row { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .wpc-food-menu-thumb { height: 180px !important; }
    .wpc-post-title a { font-size: 14px !important; }
    .wpc-menu-price { font-size: 14px !important; }
}

@media (max-width: 480px) {
    .wpc-row { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; padding: 30px 15px !important; }
    .wpc-food-menu-thumb { height: 140px !important; border-radius: 20px !important; }
    .wpc-add-to-cart { top: 10px !important; right: 10px !important; }
    .wpc-add-to-cart a { width: 32px !important; height: 32px !important; }
    .wpc-add-to-cart a .wpcafe-cart_icon svg { width: 16px !important; height: 16px !important; }
    .wpc-post-title a { font-size: 13px !important; }
    .wpc-food-inner-content > p { font-size: 12px !important; margin-bottom: 5px !important; }
    .wpc-menu-price { font-size: 13px !important; }
}

.wpcafe-cart_icon::before { 
	display: none !important; content: none !important; 
}
.wpcafe-cart_icon.svg-replaced::before {
    display: none !important;
}
/* ========================================
   SELECTEUR DE QUANTITE WPCAFE
   ======================================== */
.wpcafe-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 6px;
    width: fit-content;
    background: #ffffff;
}
.wpcafe-qty__btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #1F1F1F;
    line-height: 1;
}
.wpcafe-qty__btn:hover { background: #f0f0f0; }
.wpcafe-qty__input {
    width: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 0.85rem;
    padding: 4px 0;
    -moz-appearance: textfield;
}

.wpcafe-price-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    background: none;
    padding: 0;
    border-radius: 0;
}
.wpcafe-qty__btn:hover,
.wpcafe-qty__btn:focus,
.wpcafe-qty__btn:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #f0f0f0;
}



/* ════ SIDE-CART ELEMENTOR ════ */

/* Padding général */
.elementor-menu-cart__main {
    padding: 0 16px !important;
}

/* Layout item : image | infos | supprimer */
.elementor-menu-cart__product {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Image */
.elementor-menu-cart__product img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

/* Nom produit */
.elementor-menu-cart__product-name {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Quantité + prix alignés horizontalement */
.elementor-menu-cart__product-price,
.elementor-menu-cart__product-price .quantity {
    display: inline !important;
    font-size: 0.85rem !important;
    color: #555 !important;
}

/* Boutons +/- quantity */
.elementor-menu-cart__product .qty-button,
.elementor-menu-cart__product button.plus,
.elementor-menu-cart__product button.minus {
    padding: 2px 8px !important;
    font-size: 0.9rem !important;
}

/* Sous-total */
.elementor-menu-cart__subtotal {
    display: flex !important;
    justify-content: space-between !important;
    font-weight: 700 !important;
    padding: 16px 0 !important;
    border-top: 2px solid #1F1F1F !important;
}

/* Boutons */
.elementor-menu-cart__footer-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-bottom: 20px !important;
}
.elementor-menu-cart__footer-buttons a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 14px !important;
    border-radius: 500px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-sizing: border-box !important;
}
.elementor-button--checkout {
    background: #E60024 !important;
    color: #fff !important;
    border: none !important;
}
.elementor-button--view-cart {
    background: #fff !important;
    color: #1F1F1F !important;
    border: 2px solid #1F1F1F !important;
}

/* ── Fix quantity controls ── */
.elementor-menu-cart__product-price .quantity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
}
.elementor-menu-cart__product-price .quantity button.minus,
.elementor-menu-cart__product-price .quantity button.plus {
    width: 28px !important;
    height: 28px !important;
    line-height: 1 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #1F1F1F !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.elementor-menu-cart__product-price .quantity input.qty {
    width: 36px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 4px 0 !important;
    font-size: 0.9rem !important;
}
.elementor-menu-cart__product-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
}
