/*
Theme Name:   Hello Elementor Child
Theme URI:    https://www.votresite.com/hello-elementor-child/
Description:  Thème enfant pour Hello Elementor avec des fonctionnalités personnalisées.
Author:       GT
Author URI:   https://www.votresite.com/
Template:     hello-elementor 
Version:      1.0.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hello-elementor-child
*/

/* ==========================================================================
   Styles personnalisés
   ========================================================================== */

/* --- GRILLE DE PRODUITS PERSONNALISÉE (GT) --- */
/* Styles pour le conteneur Masonry et les items */
.gt-custom-product-grid-v7 ul.gt-products-list {
    list-style-type: none; 
    padding: 0; 
    margin: 0;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    position: relative; 
}
.gt-custom-product-grid-v7 ul.gt-products-list.masonry-initialized {
    opacity: 1; 
}
.gt-custom-product-grid-v7 li.gt-product-card {
    background-color: #190606; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /* font-family: 'Carter One'; Appliqué plus spécifiquement aux éléments enfants si besoin */
    color: #fff; 
    overflow: hidden; 
    text-align: center;
    margin-bottom: 15px; 
    width: calc(100% / 3 - (15px * 2 / 3)); 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column; 
}
@media (max-width: 992px) { 
    .gt-custom-product-grid-v7 li.gt-product-card { width: calc(100% / 2 - (15px * 1 / 2)); }
}
@media (max-width: 576px) {
    .gt-custom-product-grid-v7 li.gt-product-card { width: 100%; } 
}

/* Image produit */
.gt-custom-product-grid-v7 .product-thumbnail {
    display: block; 
    width: 100%;
    background-color: transparent; 
    overflow: hidden;
    border-top-left-radius: 8px; 
    border-top-right-radius: 8px;
}
.gt-custom-product-grid-v7 .product-thumbnail a { display: block; }
.gt-custom-product-grid-v7 .product-thumbnail img {
    display: block; 
    width: 100%; 
    height: auto; 
    max-width: 100%;
}

/* Contenu de la carte */
.gt-custom-product-grid-v7 .product-card-content { padding: 15px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.gt-custom-product-grid-v7 .product-card-content-top { margin-bottom: auto; } 
.gt-custom-product-grid-v7 .product-title { font-family: 'Carter One', cursive; color: #fff; font-size: 18px; font-weight: 400; margin: 10px 0; line-height: 1.25; min-height:45px; display:flex; align-items:center; justify-content:center;}
.gt-custom-product-grid-v7 .product-title a { color: #fff; text-decoration: none; }
.gt-custom-product-grid-v7 .product-title a:hover { text-decoration: underline; }
.gt-custom-product-grid-v7 .product-like-button { margin-bottom: 10px; font-size: 16px; }
.gt-custom-product-grid-v7 .product-meta-info { margin-bottom: 10px; line-height: 1.5; }
.gt-custom-product-grid-v7 .product-meta-info p,
.gt-custom-product-grid-v7 .product-meta-info .sold-by-label,
.gt-custom-product-grid-v7 .product-meta-info .duration-info { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 14px; margin: 3px 0; color: #ccc; }
.gt-custom-product-grid-v7 .product-meta-info .vendor-link { font-family: 'Carter One', cursive; font-weight: 400; color: #F50000 !important; text-decoration: none; font-size: 15px; }
.gt-custom-product-grid-v7 .product-meta-info .sold-by-label { color: #fff; font-size: 14px; }
.gt-custom-product-grid-v7 .product-meta-info .sold-by-info .vendor-link { display: inline; margin-left: 5px; }

/* --- Prix DANS LA GRILLE PERSONNALISÉE --- */
.gt-custom-product-grid-v7 .price-info { 
    margin: 10px 0 15px 0 !important; 
    display: block !important; 
    line-height: 1 !important; 
}
.gt-custom-product-grid-v7 .price-info .woocommerce-Price-amount, 
.gt-custom-product-grid-v7 .price-info .woocommerce-Price-amount bdi, /* Cible le bdi DANS .amount */
.gt-custom-product-grid-v7 .price-info .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
.gt-custom-product-grid-v7 .price-info ins .woocommerce-Price-amount, 
.gt-custom-product-grid-v7 .price-info ins .woocommerce-Price-amount bdi,
.gt-custom-product-grid-v7 .price-info ins .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-family: 'Carter One', cursive, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    background: none !important;
}
.gt-custom-product-grid-v7 .price-info del {
    font-family: 'Carter One', cursive, sans-serif !important;
    color: #a0a0a0 !important;
    font-size: 0.7em !important; 
    font-weight: 400 !important;
    text-decoration: line-through !important;
    background: none !important;
    opacity: 0.7 !important;
    margin-right: 8px !important;
}
.gt-custom-product-grid-v7 .price-info del .woocommerce-Price-currencySymbol {
    font-size: 1em !important;
}

/* Boutons */
.gt-custom-product-grid-v7 .product-buttons-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; padding: 0 10px; }
.gt-custom-product-grid-v7 .add-to-cart-button, 
.gt-custom-product-grid-v7 .product-wishlist-button { width: 100%; }
.gt-custom-product-grid-v7 .add-to-cart-button .add_to_cart_button, 
.gt-custom-product-grid-v7 .add-to-cart-button .added_to_cart { font-family: 'Carter One', cursive; color: #fff !important; background-color: #E61E1E !important; border: none; padding: 8px 15px; border-radius: 5px; font-size: 14px; font-weight: 400; text-decoration: none; display: block; transition: background-color 0.3s ease; box-sizing: border-box; text-align: center;}
.gt-custom-product-grid-v7 .add-to-cart-button .add_to_cart_button:hover, 
.gt-custom-product-grid-v7 .add-to-cart-button .added_to_cart:hover { background-color: #c03030 !important; }
.gt-custom-product-grid-v7 .tinvwl_add_to_wishlist_button { font-family: 'Carter One', cursive; border: 2px solid #333 !important; border-radius: 5px !important; font-size: 13px !important; padding: 7px 12px !important; cursor: pointer; transition: background-color 0.3s ease; background-color: rgba(0,0,0,0.2) !important; color: #fff !important; display: block; box-sizing: border-box; text-align: center; }
.gt-custom-product-grid-v7 .tinvwl_add_to_wishlist_button:hover { background-color: rgba(50,50,50,0.3) !important; }
.gt-custom-product-grid-v7 .tinvwl_add_to_wishlist_button .tinvwl-icon-heart-plus:before, 
.gt-custom-product-grid-v7 .tinvwl_add_to_wishlist_button.tinvwl-product-already-on-wishlist .tinvwl-icon-heart:before { color: #F50000 !important; font-size: 1.1em; vertical-align: middle; }
.gt-custom-product-grid-v7 .tinvwl_add_to_wishlist_text { vertical-align: middle; margin-left: 5px; }

/* Trigger de scroll et spinner */
.gt-scroll-load-trigger { height: 60px; text-align: center; width: 100%; clear: both; }
.gt-loader-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #e83535; border-radius: 50%; width: 30px; height: 30px; animation: gtSpinInfinite_v7 1s linear infinite; display: none; margin: 15px auto; } 
@keyframes gtSpinInfinite_v7 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } 

/* Styles globaux que vous aviez (gardez-les s'ils sont nécessaires ailleurs) */
.grecaptcha-badge { visibility: hidden !important; }
.woocommerce a.button.alt { background-color: #C00005 !important; color: #ffffff !important; font-weight: 100 !important; }
.wpgb-select-value { background-color: red !important; color: #ffffff !important; font-weight: 400 !important; }

.woocommerce a.button.alt {
    background-color: #C00005 !important;
    color: #ffffff !important;
    font-weight: 100 !important; 
}

.wpgb-select-value { 
    background-color: red !important;
    color: #ffffff !important;
    font-weight: 400 !important;}