/* Customer orders: matches the existing Mille Fiori theme, no checkout overrides. */
.entete__commandes { flex-shrink: 0; }
.entete__commandes .wp-block-button__link { white-space: nowrap; }
body.woocommerce-account .wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
body.woocommerce-account.admin-bar .wp-site-blocks { min-height: calc(100vh - 32px); }
body.woocommerce-account .wp-site-main { flex: 1 0 auto; width: min(calc(100% - 48px), 1160px); margin: 0 auto; padding: 42px 0 56px; }
body.woocommerce-account .wp-site-main .woocommerce { width: 100%; margin: 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation { width: 24%; }
body.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; min-width: 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne); }
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--ligne); }
body.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; font-size: 14px; }
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--encre); color: var(--papier); }
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible,
body.woocommerce-account .woocommerce-MyAccount-content a:focus-visible { outline: 2px solid var(--sauge); outline-offset: 3px; }
body.woocommerce-account h1.mf-commandes-titre { margin: 0 0 12px; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; }
body.woocommerce-account .mf-commandes-intro { margin: 0 0 24px; color: var(--encre-doux); font-size: 15px; }
body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce h3 { margin: 20px 0 16px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.2; }
body.woocommerce-account .woocommerce p { margin-bottom: 16px; overflow-wrap: anywhere; }
body.woocommerce-account .woocommerce table.shop_table { margin: 22px 0; border-color: var(--ligne); border-radius: 0; font-size: 14px; }
body.woocommerce-account .woocommerce table.shop_table th,
body.woocommerce-account .woocommerce table.shop_table td { padding: 14px 12px; }
body.woocommerce-account .woocommerce table.shop_table th { background: var(--ivoire); }
body.woocommerce-account .woocommerce .button { border-radius: 0; background: var(--encre); color: var(--papier); padding: 11px 18px; font-size: 13px; line-height: 1.4; }
body.woocommerce-account .woocommerce .button:hover { background: var(--sauge); color: var(--papier); }
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register { padding: 24px; border-color: var(--ligne); border-radius: 0; }
body.woocommerce-account .woocommerce .input-text,
body.woocommerce-account .woocommerce select { max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 0; background: var(--papier); color: var(--encre); }
body.woocommerce-account .woocommerce .woocommerce-customer-details address { border-color: var(--ligne); border-radius: 0; padding: 18px; }
@media (max-width: 1100px) {
  .entete__inner { gap: 14px; flex-wrap: wrap; padding-block: 12px; }
  .entete__commandes .wp-block-button__link { padding-inline: 14px; }
}
@media (max-width: 768px) {
  body.woocommerce-account .wp-site-main { width: calc(100% - 32px); padding-block: 28px 40px; }
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
  body.woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 28px; }
  body.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  body.woocommerce-account .woocommerce-MyAccount-navigation li { border: 1px solid var(--ligne); }
  body.woocommerce-account .woocommerce-MyAccount-navigation a { padding: 10px; font-size: 13px; }
  body.woocommerce-account .woocommerce table.shop_table th,
  body.woocommerce-account .woocommerce table.shop_table td { padding: 12px 10px; }
  body.woocommerce-account .woocommerce table.shop_table_responsive tbody th[scope="row"] { display: block; width: 100%; text-align: right; }
  body.woocommerce-account .woocommerce table.shop_table_responsive tbody th[scope="row"]::before { content: attr(data-title) ":"; float: left; }
  body.woocommerce-account .woocommerce form.login,
  body.woocommerce-account .woocommerce form.register { padding: 16px; }
}
@media (max-width: 600px) {
  .entete .entete__inner { gap: 12px; }
  .entete .marque { order: 1; flex-basis: calc(100% - 48px); }
  .entete nav.wp-block-navigation.navigation { order: 2; position: static; width: auto; padding: 0; margin: 0 0 0 auto; border: 0; background: transparent; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .entete .wp-block-navigation__container.navigation { position: static; width: auto; padding: 0; border: 0; background: transparent; }
  .entete .entete__cta { display: none; }
  .entete .entete__panier { order: 3; margin: 0; }
  .entete .entete__commandes { order: 4; margin: 0; }
  .entete .entete__panier .wp-block-button__link,
  .entete .entete__commandes .wp-block-button__link { min-height: 44px; padding: 10px 16px; }
}
/* The current WooCommerce single-product template uses blocks, not .product_title/.summary. */
body.single-product .wp-site-blocks > .woocommerce.product { width: 100% !important; max-width: none !important; margin: 0 !important; flex: 1; }
body.single-product .woocommerce.product > main { width: min(calc(100% - 48px), 1160px); margin: 0 auto; padding: 18px 0 30px; }
body.single-product .woocommerce.product > main > .wp-block-columns { display: grid !important; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px) !important; align-items: center; margin: 16px 0 24px !important; }
body.single-product .woocommerce.product > main > .wp-block-columns > .wp-block-column { min-width: 0; margin: 0; }
body.single-product main h1.wp-block-post-title { margin: 0 0 16px !important; max-width: 26ch; font-size: 38px !important; line-height: 1.12 !important; }
body.single-product main .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery { float: none !important; width: 100% !important; max-width: 360px; margin: 0 !important; opacity: 1 !important; }
body.single-product main .wp-block-woocommerce-product-image-gallery img.wp-post-image { width: 100% !important; height: min(42vh, 360px) !important; max-height: 360px; object-fit: contain; object-position: center; }
body.single-product main .wp-block-woocommerce-product-price { margin: 0 0 14px; }
body.single-product main .wp-block-woocommerce-product-price .wc-block-components-product-price { font-family: var(--serif); font-size: 28px !important; }
body.single-product main .wp-block-woocommerce-add-to-cart-form { margin-top: 16px; }
body.single-product main form.cart { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
body.single-product main form.cart .quantity { margin: 0; }
body.single-product main form.cart .qty { width: 64px; min-height: 44px; }
body.single-product main form.cart .single_add_to_cart_button { min-height: 44px; margin: 0; padding: 12px 18px; border-radius: 0; background: var(--encre); color: var(--papier); }
body.single-product main .wp-block-post-excerpt { max-width: 56ch; font-size: 15px; }
body.single-product main .wp-block-woocommerce-product-sku,
body.single-product main .wp-block-post-terms { font-size: 13px; margin-top: 14px; }
body.single-product main .woocommerce-tabs h2,
body.single-product main > h2.wp-block-heading { font-size: 26px !important; line-height: 1.2; margin-bottom: 12px; }
body.single-product main .woocommerce-tabs pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; }
body.single-product main > .wp-block-woocommerce-product-collection,
body.single-product main > h2.wp-block-heading { display: none; }
@media (max-width: 720px) {
  body.single-product .woocommerce.product > main { width: calc(100% - 32px); }
  body.single-product .woocommerce.product > main > .wp-block-columns { display: block !important; }
  body.single-product main .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery { max-width: 320px; margin: 0 auto 24px !important; }
  body.single-product main .wp-block-woocommerce-product-image-gallery img.wp-post-image { height: min(45vh, 300px) !important; }
  body.single-product main h1.wp-block-post-title { font-size: 30px !important; }
}


/* Keep the shop footer below its content, including on short desktop screens. */
body.woocommerce-shop .pied,
body.post-type-archive-product .pied {
    position: static !important;
    inset: auto !important;
}
body.woocommerce-shop > .wp-site-blocks > main,
body.post-type-archive-product > .wp-site-blocks > main { flex: 1 0 auto; }
body.woocommerce-shop > .wp-site-blocks > .wp-block-template-part:last-child,
body.post-type-archive-product > .wp-site-blocks > .wp-block-template-part:last-child { margin-top: auto !important; }
