/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://gagnego.fr
 Description:  Thème enfant pour Hello Elementor - Personnalisations GagneGo
 Author:       GagneGo
 Author URI:   https://gagnego.fr
 Template:     hello-elementor
 Version:      1.0.8
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hello-elementor-child
*/

/* Ajoutez vos styles personnalisés ci-dessous */

/* ========== Header logo size ========== */
.site-header .site-branding .custom-logo,
.site-header .site-logo .custom-logo,
.site-header img.custom-logo {
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    max-height: 64px !important;
    object-fit: contain;
}
@media (max-width: 640px) {
    .site-header .site-branding .custom-logo,
    .site-header .site-logo .custom-logo,
    .site-header img.custom-logo {
        max-width: 80px !important;
        max-height: 48px !important;
    }
}

/* ========== Footer logo size ========== */
.site-footer .site-branding .custom-logo,
.site-footer .site-logo .custom-logo,
.site-footer img.custom-logo {
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    max-height: 64px !important;
    object-fit: contain;
}
@media (max-width: 640px) {
    .site-footer .site-branding .custom-logo,
    .site-footer .site-logo .custom-logo,
    .site-footer img.custom-logo {
        max-width: 80px !important;
        max-height: 48px !important;
    }
}


/* ========== GagneGo WooCommerce Skin ========== */
.woocommerce, .woocommerce-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    max-width: 1180px;
    margin: 30px auto 60px;
    padding: 0 24px;
}

/* Page heading (Panier / Commander / Mon compte) */
.woocommerce h1.entry-title,
.woocommerce-page h1.entry-title,
body.woocommerce-cart h1,
body.woocommerce-checkout h1,
body.woocommerce-account h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    color: #0f172a;
    position: relative;
    padding-bottom: 14px;
}
.woocommerce h1.entry-title::after,
.woocommerce-page h1.entry-title::after,
body.woocommerce-cart h1::after,
body.woocommerce-checkout h1::after,
body.woocommerce-account h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
    border-radius: 2px;
}

/* ===== Notices ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
    margin-bottom: 16px !important;
}
.woocommerce-message {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    color: #166534 !important;
    border-left: 4px solid #16a34a !important;
}
.woocommerce-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
    color: #1e3a8a !important;
    border-left: 4px solid #2563eb !important;
}
.woocommerce-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #991b1b !important;
    border-left: 4px solid #dc2626 !important;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display:none !important; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
    color: inherit !important;
    text-decoration: underline !important;
    font-weight: 600;
}

/* ===== Cart table ===== */
.woocommerce table.shop_table {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}
.woocommerce table.shop_table th {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    color: #92400e !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 16px 18px !important;
    border: none !important;
}
.woocommerce table.shop_table td {
    padding: 18px !important;
    border-top: 1px solid #f3f4f6 !important;
    background: #fff;
    vertical-align: middle;
}
.woocommerce table.shop_table tr:hover td { background: #fffbeb; }
.woocommerce table.shop_table .product-name a {
    color: #0f172a !important;
    font-weight: 600;
    text-decoration: none !important;
}
.woocommerce table.shop_table .product-name a:hover { color: #d97706 !important; }
.woocommerce table.shop_table .product-thumbnail img,
.woocommerce table.shop_table .product-thumbnail .wp-post-image {
    border-radius: 8px;
    max-width: 64px;
}
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    color: #0f172a;
    font-weight: 600;
}

/* Remove item × button */
.woocommerce table.shop_table td.product-remove a.remove {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    text-decoration: none !important;
    font-weight: 700;
    transition: all .15s;
}
.woocommerce table.shop_table td.product-remove a.remove:hover {
    background: #dc2626 !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Quantity input */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
}
.woocommerce .quantity input.qty,
.woocommerce input.qty {
    width: 64px !important;
    padding: 8px 10px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    text-align: center !important;
    background: #fff !important;
    color: #0f172a !important;
    font-weight: 600;
}
.woocommerce input.qty:focus { border-color: #fbbf24 !important; outline: none !important; box-shadow: 0 0 0 3px rgba(251,191,36,0.2) !important; }

/* ===== Coupon ===== */
.woocommerce .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}
.woocommerce .coupon input[type="text"] {
    padding: 10px 14px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    width: 200px !important;
}
.woocommerce .coupon input[type="text"]:focus { border-color: #fbbf24 !important; outline: none !important; }

/* ===== Buttons (override default purple) ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: #f3f4f6 !important;
    color: #0f172a !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all .15s !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #e5e7eb !important;
    transform: translateY(-1px);
}

/* Primary buttons (Update cart, Apply coupon, etc.) */
.woocommerce button.button[name="update_cart"],
.woocommerce button.button[name="apply_coupon"],
.woocommerce button.button.alt {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(251,191,36,0.3) !important;
}
.woocommerce button.button[name="update_cart"]:hover,
.woocommerce button.button[name="apply_coupon"]:hover,
.woocommerce button.button.alt:hover {
    box-shadow: 0 6px 18px rgba(251,191,36,0.4) !important;
    transform: translateY(-1px);
}

/* Checkout button — main red CTA matching homepage */
.woocommerce a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #fff !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(220,38,38,0.35) !important;
    text-decoration: none !important;
    transition: all .15s !important;
    margin-top: 10px;
}
.woocommerce a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(220,38,38,0.45) !important;
}

/* ===== Cart totals ===== */
.woocommerce .cart_totals {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    border: 2px solid #fef3c7;
}
.woocommerce .cart_totals h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 18px !important;
    color: #0f172a !important;
}
.woocommerce .cart_totals table.shop_table {
    box-shadow: none;
    border-radius: 0;
}
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
    background: transparent !important;
    border-top: 1px solid #f3f4f6 !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
}
.woocommerce .cart_totals table.shop_table th { color: #6b7280 !important; text-transform: none; font-weight: 500 !important; letter-spacing: 0; }
.woocommerce .cart_totals .order-total .amount {
    font-size: 24px;
    color: #dc2626;
    font-weight: 800;
}

/* ===== Checkout form ===== */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 900px) { .woocommerce-checkout form.checkout { grid-template-columns: 1fr; } }
.woocommerce-checkout #customer_details {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    border: 2px solid #fef3c7;
}
.woocommerce-checkout #order_review_heading { margin-bottom: 0; padding-bottom: 0; border-bottom: none; border-radius: 16px 16px 0 0; }
.woocommerce-checkout #order_review { margin-top: -10px; border-radius: 0 0 16px 16px; padding-top: 18px; }
.woocommerce form .form-row label { font-weight: 600; color: #0f172a; font-size: 14px; }
.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: #fff !important;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #fbbf24 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.2) !important;
}

/* ===== My Account ===== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    border: 2px solid #fef3c7;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin: 4px 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: all .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #fef3c7;
    color: #92400e !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251,191,36,0.3);
}
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}

/* My Account login forms */
.woocommerce-account:not(.logged-in) .u-columns,
.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
.woocommerce-account:not(.logged-in) form.woocommerce-form-register {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
    border: 2px solid #fef3c7;
}
.woocommerce-account:not(.logged-in) h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 18px !important;
}

/* Continue shopping link */
.woocommerce a.return-to-shop,
.woocommerce-cart .return-to-shop a.button {
    background: #fff !important;
    color: #0f172a !important;
    border: 2px solid #0f172a !important;
}
.woocommerce a.return-to-shop:hover,
.woocommerce-cart .return-to-shop a.button:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* Layout: cart 2-col */
.woocommerce-cart .woocommerce {
    display: block;
}
.woocommerce-cart .cart-collaterals {
    margin-top: 24px;
}
@media (min-width: 900px) {
    .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper + form,
    .woocommerce-cart form.woocommerce-cart-form {
        margin-bottom: 24px;
    }
}

/* Mobile niceties */
@media (max-width: 640px) {
    .woocommerce, .woocommerce-page { padding: 0 16px; margin: 16px auto 40px; }
    .woocommerce h1, body.woocommerce-cart h1, body.woocommerce-checkout h1, body.woocommerce-account h1 { font-size: 28px; }
    .woocommerce table.shop_table thead { display: none; }
    .woocommerce table.shop_table tr { display: block; padding: 16px 0; border-bottom: 1px solid #f3f4f6; }
    .woocommerce table.shop_table td { display: flex; justify-content: space-between; padding: 8px 16px !important; border: none !important; }
    .woocommerce table.shop_table td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #92400e;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    .woocommerce .coupon { flex-wrap: wrap; }
    .woocommerce .coupon input[type="text"] { width: 100% !important; }
}

/* ===== Fix: cart table header — single seamless gradient bar (not per-cell) ===== */
.woocommerce table.shop_table thead tr {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.woocommerce table.shop_table thead th {
    background: transparent !important;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-right: none !important;
    border-left: none !important;
}
/* Subtle column dividers replaced with light dotted ticks under headers only */
.woocommerce table.shop_table thead th + th { box-shadow: inset 1px 0 0 rgba(217,119,6,0.08); }

/* Make sure quantity input shows even if theme tried to hide it */
.woocommerce table.shop_table td.product-quantity .quantity,
.woocommerce table.shop_table td.product-quantity input.qty {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===== Fix: checkout grid — keep "Votre commande" properly in right column ===== */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0 32px;
    align-items: stretch;
}
.woocommerce-checkout form.checkout > #customer_details {
    grid-column: 1;
    grid-row: 1 / 3;
}
.woocommerce-checkout form.checkout > h3#order_review_heading {
    grid-column: 2;
    grid-row: 1;
    background: #fff;
    border: 2px solid #fef3c7;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 24px 28px 12px !important;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    box-shadow: 0 -4px 16px rgba(15,23,42,0.04);
}
.woocommerce-checkout form.checkout > #order_review {
    grid-column: 2;
    grid-row: 2;
    background: #fff;
    border: 2px solid #fef3c7;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 0 28px 28px !important;
    margin: 0 !important;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}
@media (max-width: 900px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto;
        gap: 24px 0;
    }
    .woocommerce-checkout form.checkout > #customer_details,
    .woocommerce-checkout form.checkout > h3#order_review_heading,
    .woocommerce-checkout form.checkout > #order_review {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ===== Checkout: stack billing details and "Informations complémentaires" vertically ===== */
.woocommerce-checkout #customer_details .col2-set,
.woocommerce-checkout #customer_details .u-columns {
    display: block !important;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}
.woocommerce-checkout #customer_details .col-2 { margin-bottom: 0 !important; }

/* ===== Make Prénom + Nom each full-width (stacked rows) ===== */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    clear: both !important;
}


/* ========== Header: blend logo into the page (no white strip) ========== */
.site-header .site-description,
.site-footer .site-description {
    display: none !important;
}

.site-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.site-header .header-inner,
.site-header .site-branding,
.site-header > div {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.site-header .site-branding {
    display: flex !important;
    align-items: center !important;
}


/* ========== Home: body bg matches hero gradient start so transparent header blends ========== */
body.home {
    background-color: #fffbeb !important;
}
