/**
Theme Name: Pakasweet
Author: Cybélia Communication
Author URI: https://www.agence-cybelia.com
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pakasweet
Template: astra
*/
.astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart_content ul li {
    min-height: 75px;
}
.wooco-item-child .product-price .amount, .wooco-item-child .product-price .tax_label, .wooco-item-child .product-subtotal .amount, .wooco-item-child .product-subtotal .tax_label, .wooco-item-child .product-total .amount, .wooco-item-child .product-total .tax_label
 {
    opacity: 1;
}
/* Force l'affichage du relais Chronopost sélectionné */
.pickup-relay-link {
    display: block !important;
}

/*
================================================================================
  SOLUTION CSS DÉFINITIVE ET CONSOLIDÉE - CARTRIDGES WP Composite
================================================================================
*/

/* 
--------------------------------------------------------------------------------
-- PARTIE 1 : MINI-PANIER (Thème Astra)
-- Statut : Inchangée, validée et fonctionnelle.
--------------------------------------------------------------------------------
*/
/* On masque les prix du parent et des arômes */
.woocommerce-mini-cart .wooco-cart-item:not(.wooco-cart-child) .ast-mini-cart-price-wrap,
.woocommerce-mini-cart .wooco-cart-child:not(:has(a[href*="lot-de-"])) .ast-mini-cart-price-wrap {
    display: none !important;
}
/* On s'assure que le prix du "Lot" est bien visible */
.woocommerce-mini-cart-item:has(a[href*="lot-de-"]) .ast-mini-cart-price-wrap {
    display: block !important;
}
/* On masque les boutons +/- de TOUS les enfants (Lots et Arômes) */
.woocommerce-mini-cart .wooco-cart-child .quantity .plus,
.woocommerce-mini-cart .wooco-cart-child .quantity .minus {
    display: none !important;
}
.woocommerce-mini-cart .wooco-cart-child .quantity .qty {
    border: none !important; background: transparent !important; text-align: center !important; pointer-events: none; width: 3em;
}
.woocommerce-mini-cart .wooco-cart-child .quantity {
    justify-content: center;
}
/* On gère la hiérarchie visuelle */
.woocommerce-mini-cart .wooco-cart-child {
    margin-left: 25px !important; border-top: 1px solid #f0f0f0;
}
.woocommerce-mini-cart .wooco-cart-child .ast-product-name {
    width: 100% !important;
}

/* 
--------------------------------------------------------------------------------
-- PARTIE 2 : PAGE PANIER (WooCommerce) - Logique finale corrigée
--------------------------------------------------------------------------------
*/
/* 2.1 - On masque les prix/sous-totaux inutiles avec visibility pour garder l'alignement */
body.woocommerce-cart table.shop_table tr.wooco-cart-item:not(.wooco-cart-child) .product-price,
body.woocommerce-cart table.shop_table tr.wooco-cart-item:not(.wooco-cart-child) .product-subtotal,
body.woocommerce-cart table.shop_table tr.wooco-cart-child:not(:has(a[href*="lot-de-"])) .product-price,
body.woocommerce-cart table.shop_table tr.wooco-cart-child:not(:has(a[href*="lot-de-"])) .product-subtotal {
    visibility: hidden;
}

/* 2.2 - On masque les boutons +/- de TOUS les enfants */
body.woocommerce-cart table.shop_table tr.wooco-cart-child .quantity .buttons_added {
    display: none !important;
}

/* 2.3 - On centre la quantité des enfants */
body.woocommerce-cart table.shop_table tr.wooco-cart-child .product-quantity {
    text-align: center;
}


/* On masque UNIQUEMENT l'image à l'intérieur de la cellule, pour ne pas casser le tableau */
body.woocommerce-cart tr.wooco-cart-parent .product-thumbnail img {
    display: none;
}
/* On met le nom du parent en gras */
body.woocommerce-cart tr.wooco-cart-parent .product-name {
    font-weight: bold;
}

/* 2.5 - On indente les enfants */
body.woocommerce-cart table.shop_table tr.wooco-cart-child .product-name {
    padding-left: 30px !important;
}


/*
--------------------------------------------------------------------------------
-- PARTIE 3 : PAGE CHECKOUT (Fluid Checkout) - Logique finale corrigée
--------------------------------------------------------------------------------
*/
body.woocommerce-checkout tr.wooco-cart-parent .cart-item__price,
body.woocommerce-checkout tr.wooco-cart-parent .product-total,
body.woocommerce-checkout tr.wooco-cart-child:not([data-product_id="12621"]):not([data-product_id="12622"]):not([data-product_id="12623"]):not([data-product_id="12624"]) .cart-item__price,
body.woocommerce-checkout tr.wooco-cart-child:not([data-product_id="12621"]):not([data-product_id="12622"]):not([data-product_id="12623"]):not([data-product_id="12624"]) .product-total {
    visibility: hidden;
}
/* 3.1 - On masque l'image du parent et on le transforme en titre */
body.woocommerce-checkout tr.wooco-cart-parent .product-name > img {
    display: none !important;
}
body.woocommerce-checkout tr.wooco-cart-parent .ast-product-name {
    font-weight: bold;
}

/* 3.3 - On transforme le parent en "Titre de Pack" */

body.woocommerce-checkout tr.wooco-cart-parent .ast-product-name {
    font-weight: bold;
}

/* 3.4 - On indente les enfants */
body.woocommerce-checkout tr.wooco-cart-child .product-name {
    padding-left: 30px !important;
}
/* 4.2 - On décale le titre du parent, UNIQUEMENT pour ce produit composite.
   C'EST LA CORRECTION FINALE ET CIBLÉE. */
body.woocommerce-checkout tr.wooco-cart-parent[data-product_id="12561"] .ast-product-name {
    margin-top: .8em; /* Décale le titre vers le bas */
    font-weight: bold; /* On met le titre en gras */
}
/*
--------------------------------------------------------------------------------
-- FINITION FINALE : Fusion visuelle du Parent et du "Lot"
--------------------------------------------------------------------------------
*/

/* 1 - On cible TOUTES les cellules de la ligne du PREMIER ENFANT (le Lot)
   et on supprime la bordure supérieure que le thème leur impose.
   C'EST LA CORRECTION DÉFINITIVE. */
body.woocommerce-cart tr.wooco-cart-parent + tr.wooco-cart-child td {
    border-top: none !important;
}


/* 2 - Par sécurité, on supprime aussi la bordure du bas du parent. */
body.woocommerce-cart tr.wooco-cart-parent {
    border-bottom: none !important;
}
/* 2 - On masque la quantité de l'enfant "Lot" sur la page Panier,
   car il est maintenant visuellement lié au parent qui a déjà sa quantité. */
body.woocommerce-cart table.shop_table tr.wooco-cart-child:has(a[href*="lot-de-"]) .product-quantity {
    visibility: hidden;
}
/* 1 - On supprime la bordure du bas du PARENT sur la page Checkout. */
body.woocommerce-checkout tr.wooco-cart-parent {
    border-bottom: none !important;
}

/* 2 - On supprime la bordure du haut du PREMIER ENFANT (le Lot) sur la page Checkout. */
body.woocommerce-checkout tr.wooco-cart-parent + tr.wooco-cart-child {
    border-top: none !important;
}
/* 1 - On supprime la bordure du bas du PARENT dans le mini-panier. */
.woocommerce-mini-cart .wooco-cart-item:not(.wooco-cart-child) {
    border-bottom: none !important;
}

/* 2 - On supprime la bordure du haut du PREMIER ENFANT (le Lot). */
.woocommerce-mini-cart .wooco-cart-item:not(.wooco-cart-child) + .wooco-cart-child {
    border-top: none !important;
}


