/*
Theme Name: Spheerique Child
Description: Thème enfant personnalisé pour Neve
Author: Spheerique
Template: neve
Version: 1.0.0
*/

/* Force la grille à 4 colonnes sur le modèle personnalisé */

/* --- Style du Titre --- */
.spheerique-titre {
    color: #c9a0e5 !important;
    text-align: center !important;
    font-size: 2.5em !important;
    font-weight: bold !important;
    margin-bottom: 40px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Force l'affichage du bouton d'ajout au panier sous les produits dans la boucle personnalisée */
.spheerique-boutique-wrapper .spheerique-bouton-panier a.button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    background-color:#fce15d !important;
    color: rgba(20, 20, 20, 0.8) !important;
}

.woocommerce ul.products::before{
 display: none;
 content:"" !important;
}

/* --- Correction Grid WooCommerce Natif à 4 Colonnes --- */
/* Élimine les conflits de Neve qui cassaient la première ligne à 3 produits */
.spheerique-boutique-wrapper .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

/* Supprime les marges flottantes natives qui décalaient les produits */
.spheerique-boutique-wrapper .woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.spheerique-boutique-wrapper .woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
}

/* Force les grandes images natives WooCommerce */
.spheerique-boutique-wrapper .woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px !important;
}

/* --- Style du Bouton "Ajouter au panier" --- */
.spheerique-boutique-wrapper .woocommerce ul.products li.product .button {
    margin-top: auto !important;
    padding: 12px 20px !important;
    background-color: #fce15d !important; /* Assorti au titre */
    color: rgba(20, 20, 20, 0.8) !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    text-align: center;
    transition: background 0.3s ease;
}

.woocommerce ul.products li.product .price{
	font-size:1.3em !important;
}

.spheerique-boutique-wrapper .woocommerce ul.products li.product .button:hover {
    background-color: #b58cd1 !important; /* Un peu plus sombre au survol */
}

/* --- Adaptabilité Mobile & Tablette --- */
@media (max-width: 992px) {
    .spheerique-boutique-wrapper .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonnes sur tablette */
        gap: 20px !important;
    }
}
@media (max-width: 576px) {
    .spheerique-boutique-wrapper .woocommerce ul.products {
        grid-template-columns: 1fr !important; /* 1 colonne sur smartphone */
    }
}
.spheerique-boutique-wrapper .woocommerce ul.products li.product.outofstock .button, .spheerique-boutique-wrapper .woocommerce a.outofstock, a.outofstock{
    background-color: #f37262 !important;
    color: #ffffff !important; /* Texte en blanc pour qu'il soit lisible */
    border-color: #f37262 !important; /* Force la couleur de la bordure si le thème Neve en ajoute une */
}

/* Optionnel : assombrit légèrement le rouge corail au survol de la souris */
.woocommerce ul.products li.product.outofstock .button:hover,
.woocommerce ul.products li.product.outofstock a.button:hover {
    background-color: #e06050 !important;
    border-color: #e06050 !important;
    color: #ffffff !important;
}

/* Style simple et propre pour la pagination */
/* --- PAGINATION : GROS BOUTONS --- */
.spheerique-pagination {
    margin-top: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.spheerique-pagination .page-numbers {
    display: inline-block;
    padding: 15px 25px; /* Plus grand */
    margin: 0 8px;
    font-size: 20px;    /* Texte plus gros */
    font-weight: bold;
    border: 2px solid #000; /* Bordure plus épaisse */
    text-decoration: none;
    color: #000;
    border-radius: 50px; /* Bords très arrondis pour un aspect moderne */
    transition: all 0.3s ease;
}

/* Style de la page active */
.spheerique-pagination .page-numbers.current {
    background: #000;
    color: #fff;
}

/* Effet au survol */
.spheerique-pagination .page-numbers:hover {
    background: #333;
    color: #fff;
    cursor: pointer;
}

/* --- DESCRIPTION --- */
.spheerique-description {
    line-height: 1.6;
    padding: 0 20px;
}
