/* --- Fond général + typo --- */
body.single-product {
    background: linear-gradient(135deg, #ffe0c3, #ffb6c1);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* --- Contenu centré verticalement --- */
body.single-product .site-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* --- Bloc carte centrale jaune pâle --- */
body.single-product .product-wrapper {
    background: #fffef5;
    border-radius: 36px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    max-width: 550px;
    width: 100%;
    text-align: center;
}

/* --- Bloc produit à l'intérieur (transparent) --- */
body.single-product .product {
    background: transparent;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Titre principal --- */
.woocommerce div.product .product_title {
    color: #FF5722;
    font-size: 2.8em;
    font-weight: 900;
    margin-bottom: 30px;
}

/* --- Cacher éléments inutiles Woo --- */
.woocommerce-product-gallery,
.woocommerce-breadcrumb,
.woocommerce div.product p.price,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .quantity {
    display: none !important;
}

/* --- Bloc alertes enchères --- */
#countdown, #max-bid-display {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 12px;
    word-break: break-word;
    box-sizing: border-box;
}

#countdown {
    background: #e3f8ff;
    border: 2px solid #00bcd4;
    color: #007c91;
}

#max-bid-display {
    background: #eafce8;
    border: 2px solid #4CAF50;
    color: #2e7d32;
}

/* --- Zones de saisie personnalisées --- */
.woocommerce div.product .wapf-field-input {
    background: #fffef8;
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.woocommerce div.product label.wapf-label {
    font-size: 18px;
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.woocommerce div.product .wapf-field-input input {
    padding: 14px;
    font-size: 20px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #ffc107;
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.woocommerce div.product .wapf-field-input input:hover {
    background: #fff9ec;
    border-color: #ff9800;
}

/* --- Bouton animé --- */
.woocommerce div.product .single_add_to_cart_button {
    background: linear-gradient(to right, #a4508b, #5f0a87);
    border: none;
    color: white;
    font-size: 18px;
    padding: 18px 2px;
    border-radius: 60px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(95, 10, 135, 0.2);
    transition: background 0.3s ease, transform 0.1s ease;
	animation: subtle-pulse 2s infinite ease-in-out;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: linear-gradient(to right, #5f0a87, #3a0ca3);
}

.woocommerce div.product .single_add_to_cart_button:active {
    transform: scale(0.96);
}

/* --- Animation pulsée discrète si souhaitée ---
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.6); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(156, 39, 176, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 39, 176, 0); }
}
*/

/* --- Responsive mobile --- */
@media (max-width: 500px) {
    .product-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .woocommerce div.product .single_add_to_cart_button {
        font-size: 16px;
        padding: 14px 24px;
    }

    .woocommerce div.product .wapf-field-input input {
        font-size: 18px;
    }

    .woocommerce div.product .product_title {
        font-size: 2em;
    }
}
body.single-product .product-wrapper {
    padding: 50px 40px 70px; /* ← ajoute 70px en bas */
}
.woocommerce div.product .single_add_to_cart_button {
    margin-top: 30px;
    margin-bottom: 0;
}

@keyframes subtle-pulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.4); }
    50%  { transform: scale(1.03); box-shadow: 0 0 15px 5px rgba(156, 39, 176, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 39, 176, 0); }
}

/* --- Fond général + police --- */
/* --- Fond doux et police --- */
body.woocommerce-checkout {
    background: linear-gradient(135deg, #ffe0c3, #ffb6c1);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* --- Centrage vertical général --- */
body.woocommerce-checkout .site-main {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

/* --- Conteneur checkout global stylé --- */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    background: #fffef5;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 30px 25px;
    margin-bottom: 30px;
}

/* --- Cacher le lien retour panier --- */
.woocommerce-checkout a.woocommerce-button.button.wc-backward {
    display: none !important;
}

/* --- Formulaires champs --- */
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    border-radius: 10px;
    border: 2px solid #ffc107;
    padding: 14px;
    background: #fffdf9;
    box-shadow: none;
    transition: all 0.3s ease;
}

.woocommerce-checkout .form-row input:focus {
    border-color: #ffa000;
    background: #fff8e1;
}

/* --- Titres blocs --- */
.woocommerce-checkout h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FF5722;
    margin-bottom: 20px;
}

/* --- Résumé commande --- */
.woocommerce-checkout #order_review_heading {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #7B1FA2;
}

/* --- Bouton commander stylé --- */
.woocommerce-checkout #place_order {
    background: linear-gradient(to right, #a4508b, #5f0a87);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(95, 10, 135, 0.2);
    text-transform: uppercase;
    animation: subtle-pulse 2s infinite ease-in-out;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(to right, #5f0a87, #3a0ca3);
}

/* --- Animation douce --- */
@keyframes subtle-pulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.4); }
    50%  { transform: scale(1.02); box-shadow: 0 0 15px 5px rgba(156, 39, 176, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(156, 39, 176, 0); }
}

/* --- Responsive mobile clean --- */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .woocommerce-checkout #order_review_heading {
        margin-top: 30px;
    }
}

.cancel-wrapper {
    text-align: center;
    margin: 30px auto;
}
.cancel-order-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #f44336;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    transition: background 0.3s ease;
    text-decoration: none;
}
.cancel-order-btn:hover {
    background: #d32f2f;
}

/* Corrige le champ email trop blanc */
/* Corrige le champ e-mail invisible sur checkout bloc */
.wc-block-components-text-input input[type="email"] {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    padding: 12px;
    border-radius: 6px;
}

/* Améliore l’apparence au focus */
.wc-block-components-text-input input[type="email"]:focus {
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2) !important;
}
/* Masquer l'image produit dans le checkout bloc WooCommerce */
.wc-block-components-order-summary-item__image {
    display: none !important;
}

/* --- Fond général + typo pour pages --- */
body.page,
body.page-id-XXX {
    background: linear-gradient(135deg, #ffe0c3, #ffb6c1);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Conteneur section stylée --- */
.section-wrapper {
    max-width: 600px;
    margin: 40px auto;
    background: #fffef5;
    border-radius: 36px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    text-align: center;
}

/* --- Titres principaux des pages --- */
.section-wrapper h1, .section-wrapper h2 {
    color: #FF5722;
    font-size: 2.4em;
    font-weight: 900;
    margin-bottom: 20px;
}

/* --- Bouton général réutilisable --- */
.button-main {
    background: linear-gradient(to right, #a4508b, #5f0a87);
    border: none;
    color: white;
    font-size: 18px;
    padding: 16px 32px;
    border-radius: 60px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(95, 10, 135, 0.2);
    transition: background 0.3s ease, transform 0.1s ease;
    animation: subtle-pulse 2s infinite ease-in-out;
    display: inline-block;
    text-decoration: none;
}

.button-main:hover {
    background: linear-gradient(to right, #5f0a87, #3a0ca3);
}

.button-main:active {
    transform: scale(0.96);
}

/* --- Formulaires modernes --- */
.section-wrapper input[type="text"],
.section-wrapper input[type="email"],
.section-wrapper textarea {
    background: #fffef8;
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    margin-bottom: 18px;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* --- Labels doux --- */
.section-wrapper label {
    font-size: 18px;
    font-weight: 600;
    color: #ff9800;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

/* --- Responsive mobile --- */
@media (max-width: 600px) {
    .section-wrapper {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .section-wrapper h1 {
        font-size: 2em;
    }

    .button-main {
        font-size: 16px;
        padding: 14px 24px;
    }
}
/* Titre du site (dans le header) */
.site-title a {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.2s ease;
}

.site-title a:hover {
    transform: scale(1.05);
}
.site-title a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 900;
    text-decoration: none;
    padding: 8px 18px;
    border: 3px solid #ff4b2b;
    border-radius: 16px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 75, 43, 0.2);
}

.site-title a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 75, 43, 0.3);
    border-color: #ff416c;
}

/* 1. Cacher le titre "Résumé de la commande" */
.wc-block-components-order-summary__title {
    display: none !important;
}

/* 2. Cacher le champ "Ajouter un code promo" */
.wc-block-components-totals-coupon-form,
.wc-block-cart__coupon {
    display: none !important;
}

/* 3. Cacher l'image produit */
.wc-block-components-order-summary-item__image {
    display: none !important;
}

/* 4. Cacher la description sous le nom du produit */
.wc-block-components-order-summary-item__description {
    display: none !important;
}

/* 5. Cacher les lignes de totaux sauf le TOTAL final */
/* Masquer seulement les lignes non-total */

.wc-block-components-totals-item--order-total {
    display: flex !important;
}

/* 6. Améliorer l'apparence du total */
.wc-block-components-totals-item--order-total .wc-block-components-totals-item__label {
    font-weight: bold;
    font-size: 18px;
    color: #ff5722;
}

.wc-block-components-totals-item--order-total .wc-block-components-formatted-money-amount {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

/* Supprimer tout le bloc du code promo dans WooCommerce Blocks */
/* Supprimer le bloc "Ajouter un code promo" dans WooCommerce Blocks */
.wc-block-components-panel__button {
    display: none !important;
}


