/* PANIER PAGE */

@font-face {
    font-family: 'HarlowSI';
    src: url('../fonts/HARLOWSI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.cart-banner, .checkout-banner, .contact-banner, .thank-banner, .category-banner {
    position: relative;
}
.cart-banner h2, .checkout-banner h2, .contact-banner h2, .thank-banner h2, .category-banner h2 {
    font-family: 'HarlowSI', sans-serif !important;
    position: absolute;
    bottom: 33%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1em, 4vw, 4em);
    color: white;
    text-shadow: 0px 0px 20px #000000;
    margin: 0 auto;
	white-space: nowrap;
}

.woocommerce-info {
    margin-top: 1em;
    border-top-color: #08006b;
}

.woocommerce-cart-form {
    padding: 50px 20px 0 20px;
}
.shop_table.shop_table_responsive.cart {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}
.cart-collaterals {
    padding: 0 20px !important;
}
.cart_totals .shop_table.shop_table_responsive {
    border-radius: 15px;
    overflow: hidden;
}
.shop_table.shop_table_responsive thead {
    background-color: #08006b;
    color: white;
}
.order-total {
    background-color: #08006b;
    color: white;
}
.coupon {
    display: flex;
}
.input-text {
    border-radius: 10px;
}
.woocommerce-cart-form .button {
    border-radius: 10px !important;
}
.cart-collaterals {
    display: flex;
    margin-bottom: 5em;
}
.cart_totals {
    margin: 0 auto;
}
.checkout-button.button.alt.wc-forward {
    background-color: red;
    border-radius: 15px;
    width: fit-content;
    margin: 0 auto;
}
.checkout-button.button.alt.wc-forward:hover {
    background-color: #08006b;
}
.cart_totals h2 {
    text-align: center;
}
.cart_totals .shop_table th,
.cart_totals .shop_table td {
    text-align: right;
}
.product-price, .product-quantity, .product-subtotal {
    text-align: center;
}
.input-text.qty.text {
    border-radius: 5px !important;
    text-align: right !important;
}

.input-text.qty.text {
    text-align: center;
}

/* PANIER VIDE */
.cart-empty.woocommerce-info {
    margin-top: 5em;
    text-align: center;
}
.return-to-shop {
    text-align: center;
}
.button.wc-backward {
    border-radius: 10px !important;
}
.woocommerce-cart .cart-empty::before, .woocommerce-info::before {
    display: none !important;
}

.empty-cart-description {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 30px;
    color: #333;
    line-height: 1.6;
    font-size: 1.3em;
}

/* COMMANDE PAGE */

.woocommerce-info {
    border-radius: 0 0 15px 15px;
    text-align: center;
}
.woocommerce-form-coupon-toggle {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.checkout.woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto 5em auto;
    padding: 0 20px;
}

.shop_table.woocommerce-checkout-review-order-table {
    border-collapse: separate !important;
    border-radius: 15px !important;
    overflow: hidden;
}
.checkout.woocommerce-checkout input, .checkout.woocommerce-checkout #billing_country, .checkout.woocommerce-checkout textarea, .checkout.woocommerce-checkout select {
    border-radius: 10px !important;
}
.checkout.woocommerce-checkout .select2-container--default .select2-selection--single {
    border-radius: 10px !important;
}

#payment {
    border-radius: 15px !important;
}
#payment .wc_payment_methods.payment_methods.methods{
    border-radius: 15px 15px 0 0;
}

.form-row.place-order button.alt {
    background-color: red;
    border-radius: 15px;
}
.form-row.place-order button.alt:hover {
    background-color: #08006b;
}

/* Section titles */
.checkout-section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    font-size: 1.2em;
    background-color: #08006b;
    color: white;
    padding: .5em 0;
    border-radius: 15px;
}
#order_review_heading {
    text-align: center;
    background-color: #08006b;
    color: white;
    padding: .5em 0;
    border-radius: 15px;
}

/* 2-column layout */
.col2-set {
    display: flex;
    width: 100%;
}

.checkout-section {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 {
    display: none;
}

.col-2 {
    margin-left: 20px;
}

.col-1, .col-2 {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-1 .form-row,
.col-2 .form-row {
    margin-bottom: 0;
    flex: 1;
    min-height: 0;
}

/* THANK YOU PAGE */

.woocommerce-order > p {
    text-align: center;
    font: 400 clamp(1.5em, 3vw, 3em) 'HarlowSI';
}
.woocommerce-thankyou-order-details {
    display: flex;
    justify-content: center;
}
.woocommerce-thankyou-order-details li {
    text-align: center;
}
.woocommerce-order-details h2, .woocommerce-customer-details h2 {
    text-align: center;
}
.shop_table.order_details thead {
    background-color: #08006b;
    color: white;
}
.woocommerce-table.shop_table.order_details {
    overflow: hidden;
    border-radius: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.woocommerce-order-received address {
    border-radius: 15px !important;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, .1) !important;
}

/* CONTACT PAGE */

.contact-banner h2 {
    font-family: 'HarlowSI', sans-serif !important;
    position: absolute;
    bottom: 33%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1.5em, 4vw, 4em);
    color: white;
    text-shadow: 0px 0px 20px #000000;
    margin: 0 auto;
}

.contact-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* .wpcf7-form {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
} */

.wpcf7-form label {
    font-weight: bold;
    color: #08006b;
    font-size: 1.1em;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    margin-top: 1em;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.wpcf7-form textarea {
    min-height: 150px;
}

.wpcf7-submit {
    display: block;
    margin: 0 auto;
}

.wpcf7-form input[type="submit"] {
    font-weight: 700;
    background-color: red;
    color: white;
    border: none;
    padding: 20px 25px;
    font-size: 1.2em;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #08006b;
}

.wpcf7-response-output {
    margin: 15px 0;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #08006b;
    border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================================================
   RESULTATS DE RECHERCHE
   IMPORTANT :
   Ne pas restyler les vignettes ici.
   Les cartes produits sont déjà gérées par le CSS global :
   GLOBAL PRODUCT CARDS
========================================================= */

body.search-results .fsg-search-results-page {
    padding-top: 50px;
    padding-bottom: 70px;
}

body.search-results .fsg-search-header {
    max-width: 1400px;
    margin: 0 auto 25px;
}

body.search-results .fsg-search-header .woocommerce-breadcrumb {
    margin: 0;
    color: #111;
    font-size: 14px;
    line-height: 1.5;
}

/* On laisse le CSS global gérer les cartes */
body.search-results.woocommerce ul.products,
body.search-results .woocommerce ul.products,
body.search-results ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 42px 36px !important;
    padding: 0 !important;
}

/* Cache les descriptions dans les résultats de recherche */
body.search-results ul.products li.product .woocommerce-product-details__short-description,
body.search-results ul.products li.product .short-description,
body.search-results ul.products li.product .excerpt,
body.search-results ul.products li.product p:not(.price) {
    display: none !important;
}

/* Sécurité : retour au comportement vignettes global */
body.search-results ul.products li.product {
    width: calc((100% - 144px) / 5) !important;
    min-height: 390px !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* Sécurité : image identique boutique */
body.search-results ul.products li.product a img {
    width: 100% !important;
    height: 210px !important;
    object-fit: contain !important;
    background: #f5f5f5 !important;
    margin: 0 0 14px !important;
    border-radius: 0 !important;
}

/* Sécurité : flag identique boutique */
body.search-results ul.products li.product .fsg-product-flag {
    top: -10px !important;
    left: 10px !important;
    width: 34px !important;
    height: 34px !important;
    z-index: 50 !important;
}

body.search-results ul.products li.product .fsg-product-flag img {
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Sécurité : titre / prix / bouton identiques */
body.search-results ul.products li.product .woocommerce-loop-product__title {
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #08006b !important;
    font-size: 16px !important;
    line-height: 22px !important;
}

body.search-results ul.products li.product .price {
    display: inline-block !important;
    align-self: center !important;
    margin: 0 auto 22px !important;
    padding-bottom: 3px !important;
    border-bottom: 1px solid #e30613 !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

body.search-results ul.products li.product .button {
    margin-top: auto !important;
    width: auto !important;
    align-self: center !important;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    background: #e30613 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-transform: none !important;
}

body.search-results ul.products li.product .button:hover {
    background: #08006b !important;
    color: #fff !important;
}

/* Responsive recherche */
@media (max-width: 900px) {
    body.search-results ul.products li.product {
        width: calc((100% - 36px) / 2) !important;
    }
}

@media (max-width: 560px) {
    body.search-results ul.products li.product {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .col2-set {
        flex-direction: column;
    }

    .col-1, .col-2 {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 20px;
        justify-content: normal; /* useless maybe*/
    }

    .col2-set .form-row {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .col-1 .form-row,
    .col-2 .form-row {
        margin-bottom: 15px;
        flex: none;
    }

    .woocommerce-thankyou-order-details {
        flex-direction: column;
        align-items: end;
        gap: .5em;
    }

    .woocommerce-thankyou-order-details li {
        text-align: end;
        border: none !important;
    }

    .wpcf7-form {
        padding: 20px;
    }
}