/* ============================================================
   LOSTALE THEME — Feuille de style globale
   Design tokens : Primary #0B1E3F · Accent #3340D3 · CTA #FF6A2C
   ============================================================ */

/* ---------- Reset / base ---------- */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #374151;
    background: #FFFFFF !important;
    margin: 0;
    padding: 0;
}

/* ---------- Force full-width sur le main et la home ----------
   Indispensable car certains thèmes parents (Ecomall) et plugins
   (Elementor) injectent des max-width / float / column qui cassent
   la mise en page Lostale. */

body.home,
body.page-template-default {
    overflow-x: hidden;
}

.ls-main,
.ls-home,
main.ls-main,
main.ls-home {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    display: block !important;
}

.ls-home > * {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Neutralise les sidebars / widgets que d'anciens thèmes pourraient
   injecter à côté du contenu principal. */
.ls-home + aside,
.ls-home + .sidebar,
.ls-home ~ #secondary,
.ls-home ~ .widget-area {
    display: none !important;
}

/* Force les patterns Lostale en pleine largeur. */
.ls-home .alignfull,
.ls-home .wp-block-group.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

a {
    transition: color 0.2s ease;
}

::selection {
    background: #FF6A2C;
    color: #fff;
}

/* ---------- Header (template part) ---------- */

.ls-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* When admin bar is present, offset sticky header */
.admin-bar .ls-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .ls-header {
        top: 46px;
    }
}

/* Flex container alignment fix */
.ls-header > .wp-block-group {
    align-items: center !important;
}

.ls-header .wp-block-site-title {
    margin: 0 !important;
}

.ls-header .wp-block-site-title a {
    color: #0B1E3F !important;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ls-header .wp-block-navigation {
    align-items: center;
}

.ls-header .wp-block-navigation a {
    color: #0B1E3F !important;
    font-weight: 600;
    transition: color 0.2s ease;
    font-size: 15px;
}

.ls-header .wp-block-navigation a:hover {
    color: #FF6A2C !important;
}

/* Hamburger button styling */
.ls-header .wp-block-navigation__responsive-container-open {
    color: #0B1E3F;
    padding: 6px;
}

/* Mobile overlay nav */
.ls-header .wp-block-navigation__responsive-container.is-menu-open {
    padding-top: 80px;
}

.ls-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    gap: 0;
}

.ls-header .wp-block-search {
    max-width: 280px;
}

.ls-header .wp-block-search__input {
    border: 1px solid #E5E7EB !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    background: #F9FAFB;
    height: auto !important;
}

.ls-header .wp-block-search__input:focus {
    border-color: #3340D3 !important;
    background: #fff;
    outline: none;
}

.ls-header .wp-block-search__button {
    background: #0B1E3F !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
}

/* Customer account icon alignment */
.ls-header .wp-block-woocommerce-customer-account {
    display: flex;
    align-items: center;
}

/* Mini cart alignment */
.ls-header .wc-block-mini-cart {
    display: flex;
    align-items: center;
}

/* ---------- Footer ---------- */

.ls-footer a {
    color: #CBD5E1 !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.ls-footer a:hover {
    color: #FF6A2C !important;
}

.ls-footer .wp-block-social-link {
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ls-footer .wp-block-social-link:hover {
    background: #FF6A2C;
    transform: translateY(-2px);
}

/* ---------- Boutons globaux ---------- */

.wp-block-button .wp-block-button__link {
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(255, 106, 44, 0.25);
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 106, 44, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: #0B1E3F !important;
    border: 2px solid #0B1E3F !important;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #0B1E3F !important;
    color: #fff !important;
}

/* ---------- Cards de catégories (pattern categories-grid) ---------- */

.ls-cat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ls-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11, 30, 63, 0.10);
    border-color: #3340D3 !important;
}

.ls-cat-card a {
    color: #3340D3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ls-cat-card a:hover {
    color: #FF6A2C;
}

.ls-cat-card--featured {
    background: linear-gradient(135deg, #0B1E3F 0%, #1E3A8A 100%) !important;
    border: 0 !important;
}

/* ---------- Témoignages ---------- */

.ls-testimonial {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ls-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11, 30, 63, 0.10) !important;
}

/* ---------- Pack mis en avant ---------- */

.ls-featured-pack {
    position: relative;
    overflow: hidden;
}

.ls-featured-pack::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 106, 44, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.ls-featured-pack > .wp-block-columns {
    position: relative;
    z-index: 1;
}

/* ---------- WooCommerce — accord visuel ---------- */

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0B1E3F !important;
    font-weight: 800;
    font-size: 22px;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background: #FF6A2C !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 6px 18px rgba(255, 106, 44, 0.25) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: #e55a1f !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 106, 44, 0.35) !important;
}

.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 18px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(11, 30, 63, 0.08);
    border-color: #3340D3;
}

.woocommerce ul.products li.product img {
    border-radius: 12px;
    margin-bottom: 14px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0B1E3F !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .star-rating {
    margin: 6px 0 10px !important;
    font-size: 12px !important;
}

.woocommerce span.onsale {
    background: #FF6A2C !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    top: 12px !important;
    left: 12px !important;
}

/* ==========================================================
   SINGLE PRODUCT — Fiche produit
   ========================================================== */

.woocommerce div.product {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 24px 40px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 48px !important;
    align-items: start !important;
}

.woocommerce div.product > .onsale,
.woocommerce div.product > span.onsale,
.single-product .onsale { display: none !important; }
.woocommerce div.product .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / 3; }
.woocommerce div.product .summary { grid-column: 2; grid-row: 1; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; grid-row: 3; }
.woocommerce div.product .up-sells,
.woocommerce div.product .related { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary { float: none !important; width: 100% !important; }

.woocommerce div.product .woocommerce-product-gallery {
    border-radius: 16px !important; overflow: hidden !important; background: #F9FAFB !important; position: relative !important;
    max-height: 640px !important;
}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 0 !important; width: 100% !important; height: auto !important; object-fit: cover !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important; gap: 8px !important; padding: 12px !important; margin: 0 !important;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 72px !important; width: 72px !important; border-radius: 10px !important; overflow: hidden !important;
    border: 2px solid transparent !important; transition: border-color 0.2s ease !important;
}
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    top: 16px !important; right: 16px !important; width: 40px !important; height: 40px !important;
    background: rgba(255,255,255,0.9) !important; border-radius: 50% !important;
}

.woocommerce div.product .summary.entry-summary { padding: 8px 0 0 0 !important; }
.ls-pd__badges { margin-bottom: 12px !important; }
.ls-pd__badges .ls-pd__badge {
    display: inline-block !important; background: #FF6A2C !important; color: #fff !important;
    font-size: 12px !important; font-weight: 700 !important; padding: 5px 14px !important;
    border-radius: 999px !important; text-transform: uppercase !important; letter-spacing: 0.04em !important;
}

.woocommerce div.product .product_title {
    font-size: clamp(24px, 3vw, 34px) !important; font-weight: 800 !important;
    color: #0B1E3F !important; line-height: 1.2 !important; margin: 0 0 16px !important;
}
.woocommerce div.product .summary .price {
    font-size: 14px !important; margin-bottom: 24px !important;
    display: flex !important; align-items: baseline !important; gap: 10px !important;
}
.woocommerce div.product .summary .price del { font-size: 16px !important; color: #9CA3AF !important; }
.woocommerce div.product .summary .price ins,
.woocommerce div.product .summary .price > .woocommerce-Price-amount {
    font-size: 28px !important; font-weight: 800 !important; color: #0B1E3F !important; text-decoration: none !important;
}

.woocommerce div.product form.cart {
    border-top: 1px solid #F1F3F5 !important; padding-top: 24px !important;
    margin-top: 0 !important; margin-bottom: 24px !important;
    display: flex !important; align-items: center !important; gap: 12px !important;
}
.woocommerce div.product form.cart div.quantity { margin-right: 0 !important; }
.woocommerce div.product form.cart .quantity .qty {
    width: 56px !important; height: 52px !important; border: 1px solid #E5E7EB !important;
    border-radius: 12px !important; font-size: 16px !important; font-weight: 600 !important;
    text-align: center !important; color: #0B1E3F !important;
}
.woocommerce div.product form.cart .button {
    flex: 1 !important; padding: 16px 32px !important; font-size: 16px !important;
    font-weight: 700 !important; border-radius: 12px !important; background: #FF6A2C !important;
    color: #fff !important; border: none !important; cursor: pointer !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}
.woocommerce div.product form.cart .button:hover { background: #ff5410 !important; transform: translateY(-1px) !important; }

.woocommerce div.product .product_meta {
    font-size: 13px !important; color: #6B7280 !important;
    padding-top: 20px !important; border-top: 1px solid #F1F3F5 !important;
}
.woocommerce div.product .product_meta a { color: #3340D3 !important; text-decoration: none !important; font-weight: 500 !important; }
.woocommerce div.product .product_meta a:hover { text-decoration: underline !important; }

.woocommerce div.product .woocommerce-tabs { margin-top: 48px !important; border-top: 1px solid #E5E7EB !important; }
/* Hide tabs when only corrupted description tab remains */
.woocommerce div.product .woocommerce-tabs:has(ul.tabs li:only-child) { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #E5E7EB !important; padding: 0 !important; margin: 0 0 32px !important;
    list-style: none !important; display: flex !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    margin: 0 28px 0 0 !important; padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 16px 0 !important; color: #6B7280 !important; font-weight: 600 !important;
    font-size: 15px !important; border-bottom: 2px solid transparent !important;
    transition: color 0.2s ease, border-color 0.2s ease !important; display: inline-block !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #0B1E3F !important; border-bottom-color: #FF6A2C !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a { color: #0B1E3F !important; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel { padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 { display: none !important; }

/* Masquer la description qui contient du code CSS/HTML parasite */
#tab-description { display: none !important; }
#tab-description style { display: none !important; }
.woocommerce-Tabs-panel style { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li:first-child { display: none !important; }

.woocommerce div.product .up-sells,
.woocommerce div.product .related.products {
    margin-top: 48px !important; padding-top: 40px !important; border-top: 1px solid #E5E7EB !important;
}
.woocommerce div.product .up-sells > h2,
.woocommerce div.product .related.products > h2 { font-size: 22px !important; font-weight: 700 !important; color: #0B1E3F !important; margin-bottom: 24px !important; }
.woocommerce div.product .up-sells ul.products,
.woocommerce div.product .related.products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
.woocommerce div.product .up-sells ul.products li.product,
.woocommerce div.product .related.products ul.products li.product {
    width: 100% !important; margin: 0 !important; border: 1px solid #E5E7EB !important;
    border-radius: 14px !important; overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important; background: #fff !important;
}
.woocommerce div.product .up-sells ul.products li.product:hover,
.woocommerce div.product .related.products ul.products li.product:hover {
    transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(11,30,63,0.08) !important;
}
.woocommerce div.product .up-sells ul.products li.product a img,
.woocommerce div.product .related.products ul.products li.product a img { border-radius: 0 !important; width: 100% !important; }
.woocommerce div.product .up-sells ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important; font-weight: 600 !important; color: #0B1E3F !important; padding: 12px 14px 4px !important;
}
.woocommerce div.product .up-sells ul.products li.product .price,
.woocommerce div.product .related.products ul.products li.product .price {
    padding: 0 14px 12px !important; font-size: 15px !important; font-weight: 700 !important;
}
.ls-product.ls-main { padding-bottom: 0 !important; }

/* ==========================================================
   CART PAGE — Layout pro & compact
   ========================================================== */

/* ---- Simple block layout — NO display:contents ---- */
.woocommerce-cart .woocommerce:not(.wc-block-store-notices) {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 24px !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Collapse empty store-notices wrapper above */
.woocommerce-cart .wc-block-store-notices.woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.woocommerce-cart .wc-block-store-notices .woocommerce-notices-wrapper:empty,
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none !important;
}

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
    margin-bottom: 0 !important;
}

/* Cart-collaterals: 2-column grid (cross-sells left, totals right) */
.woocommerce-cart .cart-collaterals {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 28px !important;
    align-items: start !important;
    margin-top: 28px !important;
}

/* Cross-sells: left column */
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cross-sells {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Cart totals: right column */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cart_totals {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    position: static !important;
    box-sizing: border-box !important;
}

/* Page title compact */
.woocommerce-cart .entry-title,
.woocommerce-cart .wp-block-post-title,
.woocommerce-cart h1.cart_title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    margin-bottom: 8px !important;
}

/* ---- Cart table modern rewrite ---- */
.woocommerce-cart table.shop_table {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid #E5E7EB;
    width: 100% !important;
    table-layout: auto;
}

.woocommerce-cart table.shop_table thead {
    background: #F9FAFB;
}

.woocommerce-cart table.shop_table thead th {
    border: 0 !important;
    padding: 14px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #6B7280 !important;
    white-space: nowrap;
}

.woocommerce-cart table.shop_table tbody td {
    border: 0 !important;
    border-top: 1px solid #F3F4F6 !important;
    padding: 16px !important;
    vertical-align: middle !important;
    font-size: 14px;
    color: #374151;
}

.woocommerce-cart table.shop_table tbody tr:first-child td {
    border-top: 0 !important;
}

/* Product thumbnail compact */
.woocommerce-cart table.shop_table .product-thumbnail {
    width: 80px !important;
    padding-right: 0 !important;
}

.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 12px !important;
    border: 1px solid #F3F4F6;
}

/* Product name */
.woocommerce-cart table.shop_table .product-name {
    font-weight: 600 !important;
    color: #0B1E3F !important;
    font-size: 14px !important;
}

.woocommerce-cart table.shop_table .product-name a {
    color: #0B1E3F !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s;
}

.woocommerce-cart table.shop_table .product-name a:hover {
    color: #3340D3 !important;
}

/* Prices compact */
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal {
    font-weight: 700 !important;
    color: #0B1E3F !important;
    font-size: 15px !important;
    white-space: nowrap;
}

/* ---- Quantity controls styled +/- ---- */
.woocommerce-cart table.shop_table .product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: #F9FAFB;
}

.woocommerce-cart table.shop_table .product-quantity .quantity input.qty {
    width: 44px !important;
    height: 38px !important;
    text-align: center !important;
    border: 0 !important;
    background: transparent !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #0B1E3F !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce-cart table.shop_table .product-quantity .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart table.shop_table .product-quantity .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove button → subtle × icon */
.woocommerce-cart table.shop_table .product-remove {
    width: 40px !important;
    text-align: center !important;
}

.woocommerce-cart table.shop_table .product-remove a.remove {
    color: #9CA3AF !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

/* ---- Coupon row compact ---- */
.woocommerce-cart table.shop_table td.actions {
    padding: 16px !important;
    border-top: 1px solid #F3F4F6 !important;
    background: #FAFAFA;
}

.woocommerce-cart .coupon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.woocommerce-cart .coupon label {
    display: none !important;
}

.woocommerce-cart .coupon #coupon_code {
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    height: auto !important;
    width: 180px !important;
    background: #fff !important;
    transition: border-color 0.2s;
}

.woocommerce-cart .coupon #coupon_code:focus {
    border-color: #3340D3 !important;
    outline: none;
}

.woocommerce-cart .coupon .button {
    padding: 10px 18px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    background: #0B1E3F !important;
    color: #fff !important;
    box-shadow: none !important;
}

.woocommerce-cart .coupon .button:hover {
    background: #162d5a !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Update cart button → discreet */
.woocommerce-cart .actions > .button[name="update_cart"] {
    background: transparent !important;
    color: #6B7280 !important;
    border: 1px solid #E5E7EB !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    float: right;
}

.woocommerce-cart .actions > .button[name="update_cart"]:hover {
    background: #F3F4F6 !important;
    color: #0B1E3F !important;
    border-color: #D1D5DB !important;
    transform: none !important;
    box-shadow: none !important;
}

.woocommerce-cart .actions > .button[name="update_cart"]:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* ---- Cart totals sidebar card ---- */
.woocommerce-cart .cart_totals {
    background: #F9FAFB !important;
    padding: 24px 20px !important;
    border-radius: 16px !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.woocommerce-cart .cart_totals > h2 {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce-cart .cart_totals table.shop_table {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    border: 0 !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
    color: #6B7280 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right !important;
    color: #0B1E3F !important;
    font-weight: 700 !important;
}

/* Shipping method */
.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
    font-size: 13px !important;
    color: #374151 !important;
    margin-bottom: 4px;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-methods li label {
    font-weight: 600;
}

/* Free shipping badge */
.woocommerce-cart .cart_totals .woocommerce-shipping-methods .shipping_method + label .woocommerce-Price-amount,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods .amount {
    color: #16A34A !important;
    font-weight: 700 !important;
}

/* Order total row */
.woocommerce-cart .cart_totals .order-total th {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    padding-top: 16px !important;
    border-top: 1px solid #E5E7EB !important;
}

.woocommerce-cart .cart_totals .order-total td {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    padding-top: 16px !important;
    border-top: 1px solid #E5E7EB !important;
}

/* Checkout CTA button — prominent */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 20px !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #FF6A2C !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(255, 106, 44, 0.3) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: #e55a1f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(255, 106, 44, 0.4) !important;
}

/* Secure checkout hint */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout::after {
    content: "🔒 Paiement 100% sécurisé";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin-top: 10px;
    font-weight: 500;
}

/* ---- Cross-sells section ---- */
.woocommerce-cart .cross-sells {
    margin-top: 0 !important;
    padding-top: 32px !important;
    border-top: 1px solid #E5E7EB !important;
}

.woocommerce-cart .cross-sells > h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    margin-bottom: 20px !important;
}

.woocommerce-cart .cross-sells ul.products,
.woocommerce-cart .cross-sells ul.products.columns-2,
.woocommerce-cart .cross-sells ul.products.columns-3,
.woocommerce-cart .cross-sells ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    list-style: none !important;
}

/* Kill WooCommerce clearfix pseudo-elements — they become ghost grid cells */
.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce-cart .cross-sells ul.products li.product,
.woocommerce-cart .cross-sells ul.products[class*="columns-"] li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    padding: 12px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    background: #fff !important;
    border: 1px solid #F3F4F6 !important;
    transition: box-shadow 0.2s ease !important;
}

.woocommerce-cart .cross-sells ul.products li.product:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Hide sale badges in cross-sells — too cluttered */
.woocommerce-cart .cross-sells ul.products li.product .onsale,
.woocommerce-cart .cross-sells span.onsale {
    display: none !important;
}

.woocommerce-cart .cross-sells ul.products li.product img {
    border-radius: 10px !important;
}

.woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
}

.woocommerce-cart .cross-sells ul.products li.product .price {
    font-size: 14px !important;
}

.woocommerce-cart .cross-sells ul.products li.product .button,
.woocommerce-cart .cross-sells ul.products li.product a.button {
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* ---- Empty cart ---- */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 60px 24px;
    font-size: 16px;
    color: #6B7280;
}

.woocommerce-cart .return-to-shop .button {
    background: #0B1E3F !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
}

/* ---- Cart notices ---- */
.woocommerce-cart .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* ==========================================================
   CHECKOUT — Layout pro moderne
   ========================================================== */

/* ---- Container checkout ---- */
.woocommerce-checkout .woocommerce:not(.wc-block-store-notices) {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 24px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .wc-block-store-notices.woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* ---- Page title ---- */
.woocommerce-checkout .entry-title,
.woocommerce-checkout .wp-block-post-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    margin-bottom: 12px !important;
}

/* ---- Coupon notice ---- */
.woocommerce-checkout .woocommerce-info {
    background: #EEF2FF !important;
    border: 1px solid #C7D2FE !important;
    border-left: 4px solid #3340D3 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    color: #1E1B4B !important;
    margin-bottom: 24px !important;
}

.woocommerce-checkout .woocommerce-info a {
    color: #3340D3 !important;
    font-weight: 600 !important;
}

/* ---- Form: 2-column grid (fields left, order summary right) ---- */
.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    grid-template-rows: auto 1fr !important;
    gap: 0 32px !important;
    align-items: start !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Kill WooCommerce clearfix pseudo-elements */
.woocommerce-checkout form.checkout::before,
.woocommerce-checkout form.checkout::after {
    display: none !important;
    content: none !important;
}

/* ---- Customer details: left column ---- */
.woocommerce-checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 100% !important;
    float: none !important;
}

/* Stack billing + shipping vertically */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout #customer_details .col-2 {
    margin-top: 28px !important;
}

/* ---- Section headings ---- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #E5E7EB !important;
    text-transform: none !important;
}

/* ---- Form fields modern ---- */
.woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
}

.woocommerce-checkout .form-row label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout .form-row label .required {
    color: #DC2626 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #0B1E3F !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #3340D3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(51, 64, 211, 0.1) !important;
    background: #fff !important;
}

/* Select2 dropdowns (WooCommerce uses Select2) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    height: 46px !important;
    padding: 8px 14px !important;
    background: #fff !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
    color: #0B1E3F !important;
    font-size: 15px !important;
    padding: 0 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

.woocommerce-checkout .select2-container--open .select2-selection--single {
    border-color: #3340D3 !important;
    box-shadow: 0 0 0 3px rgba(51, 64, 211, 0.1) !important;
}

/* ---- Ship to different checkbox ---- */
.woocommerce-checkout .woocommerce-shipping-fields #ship-to-different-address {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}

.woocommerce-checkout .woocommerce-shipping-fields #ship-to-different-address input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #3340D3 !important;
}

/* ---- Order notes textarea ---- */
.woocommerce-checkout .woocommerce-additional-fields textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* ---- Order review: right column sticky ---- */
.woocommerce-checkout #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-top: 0 !important;
}

.woocommerce-checkout #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    position: sticky !important;
    top: 24px !important;
}

/* ---- Order review card ---- */
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* ---- Order review table ---- */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #6B7280 !important;
    font-weight: 600 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
    background: transparent !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    border: none !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    background: transparent !important;
    vertical-align: top !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-name {
    color: #0B1E3F !important;
    font-weight: 600 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-total {
    text-align: right !important;
    font-weight: 700 !important;
    color: #0B1E3F !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #F3F4F6 !important;
}

/* Subtotal / Shipping / Total */
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
    color: #6B7280 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    color: #0B1E3F !important;
    font-weight: 700 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #F3F4F6 !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    padding-top: 16px !important;
    border-top: 2px solid #E5E7EB !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0B1E3F !important;
    padding-top: 16px !important;
    border-top: 2px solid #E5E7EB !important;
}

/* ---- Payment section ---- */
.woocommerce-checkout #payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 20px !important;
}

.woocommerce-checkout #payment::before,
.woocommerce-checkout #payment::after {
    display: none !important;
    content: none !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 8px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: #3340D3 !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
    font-weight: 700 !important;
    color: #0B1E3F !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
    max-height: 24px !important;
    width: auto !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: #3340D3 !important;
    width: 18px !important;
    height: 18px !important;
}

.woocommerce-checkout #payment .payment_box {
    background: #F9FAFB !important;
    border-radius: 8px !important;
    padding: 14px !important;
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #6B7280 !important;
    border: none !important;
}

.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}

/* ---- Terms & privacy ---- */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 16px 0 !important;
    font-size: 13px !important;
    color: #6B7280 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
    font-size: 12px !important;
    color: #9CA3AF !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #3340D3 !important;
}

/* ---- Place order CTA button ---- */
.woocommerce-checkout #place_order {
    display: block !important;
    width: 100% !important;
    background: #FF6A2C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(255, 106, 44, 0.3) !important;
    transition: all 0.2s ease !important;
}

.woocommerce-checkout #place_order:hover {
    background: #e55a1f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(255, 106, 44, 0.4) !important;
}

/* Secure payment hint after button */
.woocommerce-checkout #payment .place-order::after {
    content: "\1F512  Paiement 100% s\00e9 curis\00e9  \2022  Donn\00e9 es chiffr\00e9 es SSL";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin-top: 12px;
    font-weight: 500;
}

/* ---- Shipping methods in order review ---- */
.woocommerce-checkout .woocommerce-shipping-methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
}

.woocommerce-checkout .woocommerce-shipping-methods li {
    font-size: 13px !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
}

.woocommerce-checkout .woocommerce-shipping-methods li label {
    font-weight: 600 !important;
    display: inline !important;
}

/* Free shipping highlight */
.woocommerce-checkout .woocommerce-shipping-methods .amount {
    color: #16A34A !important;
    font-weight: 700 !important;
}

/* Breadcrumb WooCommerce */

.woocommerce .woocommerce-breadcrumb {
    color: #6B7280;
    font-size: 13px;
    margin-bottom: 20px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #3340D3;
}

/* Notices */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 12px !important;
    padding: 16px 20px !important;
    border-top: 0 !important;
    border-left: 4px solid #3340D3 !important;
    background: #EEF2FF !important;
    color: #1E1B4B !important;
    font-size: 14px;
}

.woocommerce-message {
    border-left-color: #16A34A !important;
    background: #DCFCE7 !important;
    color: #14532D !important;
}

.woocommerce-error {
    border-left-color: #DC2626 !important;
    background: #FEE2E2 !important;
    color: #7F1D1D !important;
}

/* Mini cart dans le header */

.wc-block-mini-cart__button {
    color: #0B1E3F !important;
}

.wc-block-mini-cart__badge {
    background: #FF6A2C !important;
    color: #fff !important;
}


/* ---------- Mini cart drawer ---------- */

.wc-block-mini-cart__title {
    display: none !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__content {
    background: #fff !important;
    padding: 0 !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close-wrapper {
    padding: 16px 20px !important;
    border-bottom: 1px solid #F1F3F5 !important;
}

.wc-block-mini-cart__items {
    padding: 0 20px !important;
}

.wc-block-mini-cart__products-table {
    padding: 0 !important;
}

.wc-block-cart-items .wc-block-cart-items__row {
    padding: 20px 0 !important;
    border-bottom: 1px solid #F1F3F5 !important;
}

.wc-block-cart-items .wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

.wc-block-cart-item__image img {
    border-radius: 10px !important;
    border: 1px solid #F1F3F5 !important;
}

.wc-block-cart-item__wrap .wc-block-components-product-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0B1E3F !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

a.wc-block-components-product-name:hover {
    color: #3340D3 !important;
}

.wc-block-mini-cart__drawer .wc-block-components-product-metadata {
    display: none !important;
}

.wc-block-mini-cart__drawer .wc-block-components-product-backorder-badge {
    font-size: 11px !important;
    color: #6B7280 !important;
    background: #F3F4F6 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    display: inline-block !important;
    margin-top: 4px !important;
}

.wc-block-cart-item__prices { margin-top: 6px !important; }
.wc-block-cart-item__prices .wc-block-components-product-price__regular { color: #9CA3AF !important; font-size: 13px !important; }
.wc-block-cart-item__prices .wc-block-components-product-price__value { color: #0B1E3F !important; font-weight: 700 !important; font-size: 15px !important; }

.wc-block-mini-cart__drawer .wc-block-components-sale-badge {
    background: #ECFDF5 !important; color: #059669 !important; border: none !important;
    border-radius: 6px !important; font-size: 11px !important; font-weight: 600 !important; padding: 2px 8px !important;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector { border: 1px solid #E5E7EB !important; border-radius: 8px !important; overflow: hidden !important; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button { background: #F9FAFB !important; color: #0B1E3F !important; border: none !important; font-size: 16px !important; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button:hover { background: #EEF2FF !important; color: #3340D3 !important; }
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__input { border: none !important; font-weight: 600 !important; color: #0B1E3F !important; }

.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link { color: #9CA3AF !important; transition: color 0.2s !important; }
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:hover { color: #DC2626 !important; }

.wc-block-mini-cart__footer { padding: 20px !important; border-top: 1px solid #F1F3F5 !important; background: #FAFBFC !important; }
.wc-block-mini-cart__footer .wc-block-components-totals-item__label { font-size: 15px !important; font-weight: 600 !important; color: #0B1E3F !important; }
.wc-block-mini-cart__footer .wc-block-components-totals-item__value { font-size: 18px !important; font-weight: 700 !important; color: #0B1E3F !important; }
.wc-block-mini-cart__footer .wc-block-components-totals-item__description { font-size: 12px !important; color: #9CA3AF !important; margin-top: 4px !important; }
.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions { display: flex !important; gap: 10px !important; margin-top: 16px !important; }

.wc-block-mini-cart__footer-cart.wp-block-woocommerce-mini-cart-cart-button-block {
    display: block !important; text-align: center !important; padding: 12px 20px !important;
    border-radius: 10px !important; font-weight: 600 !important; font-size: 14px !important;
    text-decoration: none !important; border: 1px solid #E5E7EB !important;
    background: #fff !important; color: #0B1E3F !important; transition: all 0.2s ease !important;
}
.wc-block-mini-cart__footer-cart.wp-block-woocommerce-mini-cart-cart-button-block:hover { border-color: #3340D3 !important; color: #3340D3 !important; background: #EEF2FF !important; }

.wc-block-mini-cart__footer-checkout.wp-block-woocommerce-mini-cart-checkout-button-block {
    display: block !important; text-align: center !important; padding: 12px 20px !important;
    border-radius: 10px !important; font-weight: 600 !important; font-size: 14px !important;
    text-decoration: none !important; background: #3340D3 !important;
    color: #fff !important; border: none !important; transition: all 0.2s ease !important;
}
.wc-block-mini-cart__footer-checkout.wp-block-woocommerce-mini-cart-checkout-button-block:hover { background: #2830B0 !important; }

.wc-block-cart-item__total .wc-block-components-product-price__value { font-weight: 700 !important; font-size: 15px !important; color: #0B1E3F !important; }

/* ---------- Pagination ---------- */

.wp-block-query-pagination,
.woocommerce nav.woocommerce-pagination ul {
    gap: 8px !important;
    margin-top: 40px !important;
}

.wp-block-query-pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    color: #0B1E3F !important;
    font-weight: 600;
    background: #fff !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.wp-block-query-pagination .page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: #3340D3 !important;
    background: #EEF2FF !important;
    color: #3340D3 !important;
}

.wp-block-query-pagination .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0B1E3F !important;
    color: #fff !important;
    border-color: #0B1E3F !important;
}

/* ==========================================================
   RESPONSIVE — Design mobile cohérent et cadré
   ========================================================== */

/* ---- Reassurance bar : toujours 2x2 en dessous de 782px ---- */
.ls-reassurance .wp-block-columns {
    flex-wrap: wrap !important;
}

@media (max-width: 782px) {
    .ls-reassurance .wp-block-columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .ls-reassurance .wp-block-column {
        flex-basis: auto !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
    }

    .ls-reassurance {
        padding: 20px 16px !important;
    }
}

/* ---- Tablet : ≤1024px ---- */
@media (max-width: 1024px) {
    .ls-featured-pack {
        padding: 40px !important;
    }
}

/* ---- Mobile large : ≤782px ---- */
@media (max-width: 782px) {
    /* Header compact */
    .ls-header {
        padding: 10px 16px !important;
    }

    .ls-header .wp-block-search {
        display: none !important;
    }

    /* Navigation overlay (hamburger) */
    .ls-header .wp-block-navigation__responsive-container {
        z-index: 9999;
    }

    .ls-header .wp-block-navigation__responsive-container-content {
        padding: 80px 32px 32px !important;
    }

    .ls-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
        font-size: 20px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Padding latéral global des sections pleine largeur */
    .ls-home .wp-block-group.alignfull {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Categories grid → 2 colonnes */
    .ls-home .wp-block-group.alignfull > .wp-block-columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .ls-home .wp-block-group.alignfull > .wp-block-columns > .wp-block-column {
        min-width: 0 !important;
    }

    /* Featured pack → empilé */
    .ls-featured-pack {
        padding: 32px 20px !important;
    }

    .ls-featured-pack > .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .ls-featured-pack .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Value prop → empilé */
    .ls-home .wp-block-group[class*="has-primary"] > .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    /* Footer compact */
    .ls-footer {
        padding: 48px 20px 24px !important;
    }

    .ls-footer .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    .ls-footer .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Témoignages → 2 colonnes */
    .ls-testimonial {
        margin-bottom: 0;
    }

    /* Section headings */
    .ls-home h2.wp-block-heading {
        font-size: clamp(22px, 5vw, 32px) !important;
    }

    /* Espacements sections réduits */
    .ls-home .wp-block-group.alignfull {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    /* Checkout — single column on tablet */
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .woocommerce-checkout #customer_details {
        grid-row: auto !important;
    }

    .woocommerce-checkout #order_review_heading {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .woocommerce-checkout #order_review {
        grid-column: 1 !important;
        grid-row: auto !important;
        position: static !important;
    }

    .woocommerce-checkout .woocommerce:not(.wc-block-store-notices) {
        padding: 16px !important;
    }

    /* Cart page — single column on tablet */
    .woocommerce-cart .woocommerce:not(.wc-block-store-notices) {
        padding: 16px !important;
    }

    .woocommerce-cart .cart-collaterals {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .woocommerce-cart .cart-collaterals .cart_totals,
    .woocommerce-cart .cart_totals {
        order: -1 !important;
        width: 100% !important;
    }

    .woocommerce-cart .cross-sells ul.products,
    .woocommerce-cart .cross-sells ul.products.columns-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ---- Tablette : single product <=768px ---- */
@media (max-width: 768px) {
    .woocommerce div.product { grid-template-columns: 1fr !important; }
    .woocommerce div.product .woocommerce-product-gallery { grid-row: 1; grid-column: 1; }
    .woocommerce div.product .summary { grid-row: 2; grid-column: 1; }
    .woocommerce div.product .woocommerce-tabs { grid-row: 3; grid-column: 1; }
    .woocommerce div.product .up-sells ul.products,
    .woocommerce div.product .related.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Mobile : ≤600px ---- */
@media (max-width: 600px) {
    /* Categories → 2 colonnes reste bien */

    /* WooCommerce product grid → 2 colonnes */
    .woocommerce ul.products[class*="columns-"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .woocommerce ul.products[class*="columns-"] li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
    }

    .woocommerce ul.products[class*="columns-"] li.product .button {
        padding: 10px 16px !important;
        font-size: 12px !important;
    }

    /* Product grid Lostale block → 2 colonnes */
    .ls-pg__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }


    /* Fiches produit mobile : bouton compact + meilleur alignement */
    .ls-pg__body { padding: 10px 12px 14px !important; gap: 6px !important; }
    .ls-pg__title-link { font-size: 13px !important; min-height: 2.5em !important; }
    .ls-pg__price { font-size: 15px !important; gap: 4px !important; }
    .ls-pg__price del { font-size: 12px !important; }
    .ls-pg__cta { padding: 10px 10px !important; font-size: 12px !important; margin-top: 8px !important; white-space: nowrap !important; }
    .ls-pg__badge { font-size: 10px !important; padding: 3px 8px !important; top: 8px !important; left: 8px !important; }

    /* Hero text */
    .ls-hero {
        min-height: 380px !important;
        padding: 48px 0 !important;
    }

    .ls-hero__inner {
        padding: 0 20px !important;
    }

    .ls-hero__title {
        font-size: clamp(26px, 7vw, 38px) !important;
        margin-bottom: 14px !important;
    }

    .ls-hero__subtitle {
        font-size: 15px !important;
        margin-bottom: 24px !important;
    }

    .ls-hero__ctas {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .ls-hero__cta {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    /* Slider hero mobile */
    .ls-slider { height: auto !important; min-height: 380px !important; }
    .ls-slider__content { padding: 0 16px !important; }
    .ls-slider__title { font-size: clamp(24px, 7vw, 36px) !important; margin-bottom: 12px !important; }
    .ls-slider__subtitle { font-size: 14px !important; margin-bottom: 20px !important; }
    .ls-slider__ctas { flex-direction: column !important; gap: 10px !important; }
    .ls-slider__cta { text-align: center !important; justify-content: center !important; width: 100% !important; padding: 13px 20px !important; font-size: 14px !important; white-space: nowrap !important; }

    /* Single Product mobile */
    .woocommerce div.product {
        display: flex !important; flex-direction: column !important;
        padding: 0 16px 24px !important; gap: 0 !important;
    }
    .woocommerce div.product .woocommerce-product-gallery { border-radius: 14px !important; margin-bottom: 20px !important; }
    .woocommerce div.product .summary.entry-summary { padding: 0 !important; }
    .woocommerce div.product .product_title { font-size: 22px !important; margin-bottom: 10px !important; }
    .woocommerce div.product .summary .price ins,
    .woocommerce div.product .summary .price > .woocommerce-Price-amount { font-size: 24px !important; }
    .woocommerce div.product form.cart { flex-wrap: wrap !important; padding-top: 16px !important; }
    .woocommerce div.product form.cart .button {
        flex: 1 1 0 !important; min-width: 0 !important; padding: 14px 20px !important;
        font-size: 15px !important; border-radius: 12px !important;
    }
    .woocommerce div.product .woocommerce-tabs { margin-top: 28px !important; }
    .woocommerce div.product .woocommerce-tabs ul.tabs li { margin-right: 16px !important; }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 14px !important; padding: 12px 0 !important; }
    .woocommerce div.product .up-sells ul.products,
    .woocommerce div.product .related.products ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .woocommerce div.product .up-sells > h2,
    .woocommerce div.product .related.products > h2 { font-size: 18px !important; }

    /* Sections padding réduit */
    .ls-home .wp-block-group.alignfull {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Reassurance bar → plus compact */
    .ls-reassurance {
        padding: 16px 12px !important;
    }

    .ls-reassurance .wp-block-columns {
        gap: 10px !important;
    }

    .ls-reassurance p {
        font-size: 12px !important;
    }

    .ls-reassurance p[style*="font-size:32px"] {
        font-size: 24px !important;
    }

    /* Categories cards compact */
    .ls-cat-card {
        padding: 18px !important;
    }

    /* Featured pack compact */
    .ls-featured-pack {
        padding: 24px 16px !important;
    }

    .ls-featured-pack h2 {
        font-size: clamp(22px, 5vw, 32px) !important;
    }

    /* ---- Cart mobile — card-style rows ---- */
    .woocommerce-cart .woocommerce:not(.wc-block-store-notices) {
        padding: 12px !important;
    }

    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table thead,
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tfoot,
    .woocommerce-cart table.shop_table tr,
    .woocommerce-cart table.shop_table td {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart table.shop_table thead {
        display: none !important;
    }

    .woocommerce-cart table.shop_table tbody tr {
        position: relative;
        padding: 16px !important;
        border-bottom: 1px solid #F3F4F6;
        display: grid !important;
        grid-template-columns: 72px 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 14px;
        align-items: center;
    }

    .woocommerce-cart table.shop_table tbody tr td {
        border: 0 !important;
        padding: 0 !important;
    }

    /* Thumbnail: top-left */
    .woocommerce-cart table.shop_table .product-thumbnail {
        grid-row: 1 / 3;
        grid-column: 1;
        width: auto !important;
    }

    .woocommerce-cart table.shop_table .product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
    }

    /* Product name: top center */
    .woocommerce-cart table.shop_table .product-name {
        grid-row: 1;
        grid-column: 2;
        font-size: 13px !important;
    }

    /* Remove: top right */
    .woocommerce-cart table.shop_table .product-remove {
        grid-row: 1;
        grid-column: 3;
        width: auto !important;
    }

    /* Hide individual price column on mobile */
    .woocommerce-cart table.shop_table .product-price {
        display: none !important;
    }

    /* Quantity + subtotal on same row */
    .woocommerce-cart table.shop_table .product-quantity {
        grid-row: 2;
        grid-column: 2;
    }

    .woocommerce-cart table.shop_table .product-subtotal {
        grid-row: 2;
        grid-column: 3;
        text-align: right !important;
        font-size: 14px !important;
    }

    /* Coupon stacked */
    .woocommerce-cart .coupon {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .woocommerce-cart .coupon #coupon_code {
        width: 100% !important;
    }

    .woocommerce-cart .coupon .button {
        width: 100% !important;
        text-align: center !important;
    }

    .woocommerce-cart .actions > .button[name="update_cart"] {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 10px !important;
    }

    /* Cart totals full-width */
    .woocommerce-cart .cart_totals {
        width: 100% !important;
        float: none !important;
        padding: 20px 16px;
    }

    .woocommerce-cart .cart_totals .order-total td {
        font-size: 20px !important;
    }

    /* Cross-sells → 2 colonnes */
    .woocommerce-cart .cross-sells ul.products,
    .woocommerce-cart .cross-sells ul.products.columns-2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .woocommerce-cart .cross-sells ul.products li.product {
        padding: 10px !important;
    }
}

/* ---- Ultra petit : ≤380px ---- */
@media (max-width: 380px) {
    .woocommerce ul.products[class*="columns-"] {
        grid-template-columns: 1fr !important;
    }

    .ls-pg__grid {
        grid-template-columns: 1fr !important;
    }

    .ls-header .wp-block-site-title a {
        font-size: 16px !important;
    }

    .ls-reassurance .wp-block-columns {
        grid-template-columns: 1fr 1fr !important;
    }

    .woocommerce-cart .cross-sells ul.products,
    .woocommerce-cart .cross-sells ul.products.columns-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Helpers d'accessibilité ---------- */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

:focus-visible {
    outline: 2px solid #3340D3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Cookies / RGPD compat ---------- */

#cookie-notice,
.cli-modal-content {
    font-family: Inter, sans-serif !important;
}
