
:root{--tms-red:#e00020;--tms-bg:#090a0d;--tms-white:#f5f6f7;--tms-muted:#b4b7bd;--tms-line:#34383f}
body{max-width:100%;overflow-x:hidden}
body{font-family:Inter,Arial,sans-serif}
/* Le fond racing et le plein écran sont réservés à l'accueil et à la page CMS TMAX.
   Les pages produit, panier et commande conservent la structure native du thème Classic. */
body#index,body#cms{background:#090a0d url('../img/tms-red-grey.png') center/cover fixed!important;color:var(--tms-white)!important}
body#index #header,body#index #footer,body#index .breadcrumb,body#index .page-header,
body#cms #header,body#cms #footer,body#cms .breadcrumb,body#cms .page-header{display:none!important}
body#index #content-wrapper,body#index #wrapper,body#cms #content-wrapper,body#cms #wrapper{background:transparent!important;padding:0!important}
body#index #main,body#cms #main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.tms-home{max-width:1160px;width:calc(100% - 40px);margin:0 auto;padding:58px 0 80px}
.tms-intro{text-align:center;max-width:900px;margin:0 auto 42px;padding:28px 34px 30px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:linear-gradient(180deg,rgba(5,6,8,.82),rgba(5,6,8,.68));box-shadow:0 18px 55px rgba(0,0,0,.35);backdrop-filter:blur(3px)}
.tms-logo{display:block;width:min(340px,78%);height:auto;max-height:112px;object-fit:contain;margin:0 auto 18px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.65))}
.tms-intro h1{font-size:clamp(34px,5.5vw,64px);line-height:1.02;text-transform:uppercase;letter-spacing:-2px;margin:8px 0 16px;color:#fff;text-shadow:0 3px 14px rgba(0,0,0,.9);font-weight:900}
.tms-intro p{color:#f0f2f5;font-size:17px;margin:0 auto;max-width:700px;text-shadow:0 2px 9px rgba(0,0,0,.95)}
.tms-choices{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.tms-choice{min-height:390px;position:relative;overflow:hidden;border:1px solid #555;border-radius:8px;padding:34px;display:flex;flex-direction:column;justify-content:flex-end;color:var(--tms-white)!important;text-decoration:none!important;background:linear-gradient(180deg,rgba(5,6,8,.06) 25%,rgba(5,6,8,.88) 100%),url('../img/tms-red-grey.png') center/cover;transition:transform .2s,border-color .2s}
.tms-tmax{background:#08090b url('../img/tms-red-grey.png') center/cover;justify-content:center;align-items:flex-start;padding:34px}
.tms-tmax:before{content:'';position:absolute;inset:0;background:url('../img/tmax-card-blue-graphite-composition.png') right center/auto 100% no-repeat;z-index:0;pointer-events:none}
.tms-tmax:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,5,7,.22) 0%,rgba(4,5,7,.10) 40%,rgba(4,5,7,0) 68%);z-index:0;pointer-events:none}
.tms-tmax h2,.tms-tmax p,.tms-tmax .tms-cta{position:relative;z-index:1}
.tms-tmax h2,.tms-tmax p,.tms-tmax .tms-cta{max-width:42%}
.tms-choice.tms-tmax p{max-width:42%;width:42%;font-size:13px;line-height:1.35;text-shadow:0 2px 8px #000}
.tms-choice.tms-tmax h2{max-width:42%;text-shadow:0 2px 10px #000}
.tms-choice.tms-tmax .tms-cta{max-width:42%;white-space:nowrap}
.tms-choice h2{font-size:clamp(36px,5vw,58px);line-height:1;margin:12px 0;text-transform:uppercase;color:#fff;font-weight:900}
.tms-choice p{color:#e0e2e5;max-width:470px;font-size:14px;margin:0 0 22px}
.tms-cta{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;background:var(--tms-red);padding:13px 20px;border-radius:3px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}
.tms-auto{background:linear-gradient(180deg,rgba(5,6,8,.25),rgba(5,6,8,.94)),linear-gradient(135deg,#34383f,#101114 65%)}
.tms-tag{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#ff5964;font-weight:900}
.tms-coming{display:inline-flex;align-self:flex-start;margin-bottom:12px;padding:5px 9px;border:1px solid #777;border-radius:3px;color:#d6d6d6;font-size:10px;font-weight:900;letter-spacing:1px;text-transform:uppercase}
.tms-choice:hover{transform:translateY(-4px);border-color:var(--tms-red)}
@media(max-width:720px){.tms-home{padding:34px 0 52px}.tms-choices{grid-template-columns:1fr}.tms-choice{min-height:330px;padding:26px}.tms-tmax{justify-content:flex-end}.tms-choice.tms-tmax h2,.tms-choice.tms-tmax p,.tms-choice.tms-tmax .tms-cta{max-width:52%}
.tms-choice.tms-tmax p{width:52%}.tms-tmax h2{font-size:38px}.tms-tmax p{font-size:13px}.tms-intro{margin-bottom:28px;padding:24px 18px 26px}.tms-logo{width:min(290px,82%);max-height:90px;margin-bottom:14px}.tms-intro p{font-size:15px}.tms-intro h1{letter-spacing:-1.2px}}

/* TMS TMAX CMS page */
.tms-product-page{--tp-bg:#0b0c0f;--tp-panel:#14171c;--tp-red:#e00020;--tp-white:#f5f6f7;--tp-muted:#c7cbd1;--tp-line:#34383f;background:transparent;color:var(--tp-white);font-family:Inter,Arial,sans-serif;line-height:1.55;width:100%;max-width:100%;min-width:0;margin:0;overflow:visible}
.tms-product-page *{box-sizing:border-box}
.tms-product-wrap{width:min(1160px,calc(100% - 40px));margin:0 auto}
.tms-product-header{position:sticky;top:0;z-index:20;background:rgba(11,12,15,.96);border-bottom:1px solid var(--tp-line)}
.tms-product-nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.tms-product-brand img{display:block;width:235px;height:68px;object-fit:contain}
.tms-product-nav nav{display:flex;gap:22px;font-size:13px;color:#d6d9de}
.tms-product-nav a,.tms-product-page a{text-decoration:none;color:inherit}
.tms-product-nav nav a:hover{color:var(--tp-red)}
.tms-product-cta,.tms-product-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--tp-red);color:white!important;border:0;padding:12px 18px;font-weight:800;font-size:13px;letter-spacing:.2px;border-radius:3px}
.tms-product-btn.secondary{background:transparent;border:1px solid #68717c}
.tms-product-hero{padding:82px 0 70px;background:linear-gradient(90deg,rgba(5,6,8,.55),rgba(5,6,8,.72)),url('../img/tms-red-grey.png') center 42%/cover;border-bottom:1px solid var(--tp-line)}
.tms-product-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:45px;align-items:center}
.tms-product-eyebrow{color:#ff3b49;text-transform:uppercase;letter-spacing:2.5px;font-size:11px;font-weight:900}
.tms-product-page h1{font-size:clamp(38px,6vw,68px);line-height:1.02;letter-spacing:-2px;margin:15px 0 20px;text-transform:uppercase;color:white}
.tms-product-page h1 span{color:var(--tp-red)}
.tms-product-page p{color:#c0c5cc;font-size:15px}
.tms-product-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.tms-product-photo{margin:0;overflow:hidden;border:1px solid #343a43;border-radius:8px;background:#08090b;box-shadow:0 18px 45px rgba(0,0,0,.35)}
.tms-product-photo img{display:block;width:100%;height:100%;object-fit:cover}
.tms-product-photo.hero{aspect-ratio:1.62}
.tms-product-photo.product{aspect-ratio:1.38}
.tms-product-photo.product img{object-fit:contain;padding:10px}
.tms-product-trust{background:#101318;border-bottom:1px solid var(--tp-line)}
.tms-product-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:20px 0;color:#d1d5da;font-size:12px}
.tms-product-trust-grid b{display:block;color:white;font-size:14px}
.tms-product-section{padding:76px 0}
.tms-product-section.shaded{background:rgba(10,12,16,.86);border-top:1px solid var(--tp-line);border-bottom:1px solid var(--tp-line)}
.tms-product-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}
.tms-product-section h2,.tms-product-remote h2,.tms-product-contact h2{font-size:clamp(27px,4vw,40px);line-height:1.1;margin:8px 0 0;text-transform:uppercase;color:white}
.tms-product-section-head p{max-width:480px;margin:0;font-size:14px;color:var(--tp-muted)}
.tms-product-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.tms-product-info{background:var(--tp-panel);border:1px solid var(--tp-line);padding:28px;border-radius:6px}
.tms-product-info h3{font-size:25px;margin:4px 0 8px;color:white}
.tms-product-info h4{color:white}
.tms-product-price,.tms-product-service-price{font-size:28px;font-weight:900;margin:14px 0;color:white}
.tms-product-price small{font-size:11px;color:var(--tp-muted);font-weight:500}
.tms-product-info p,.tms-product-services p,.tms-product-remote p{font-size:13px;color:var(--tp-muted)}
.tms-product-muted{font-size:11px!important;color:var(--tp-muted)!important}
.tms-product-option{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--tp-line);color:white}
.tms-product-option small{display:block;color:var(--tp-muted);font-size:12px}
.tms-product-option strong{white-space:nowrap}
.tms-product-services{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.tms-product-services article{background:var(--tp-panel);border:1px solid var(--tp-line);padding:25px;border-radius:6px}
.tms-product-services h3{color:white;margin:0 0 8px;font-size:19px}
.tms-product-services .tms-product-service-price{font-size:28px}
.tms-product-remote{background:linear-gradient(120deg,rgba(35,37,42,.94),rgba(12,13,16,.96));border:1px solid var(--tp-line);padding:30px;border-radius:6px;display:grid;grid-template-columns:1fr auto;gap:25px;align-items:center}
.tms-product-about{max-width:780px;font-size:15px}
.tms-product-contact{padding:45px 0;background:var(--tp-red)}
.tms-product-contact h2{margin:0}
.tms-product-contact p{color:#ffe1e2;font-size:13px}
@media(max-width:800px){.tms-product-nav nav{display:none}.tms-product-hero-grid,.tms-product-layout,.tms-product-services{grid-template-columns:1fr}.tms-product-hero{padding:58px 0}.tms-product-trust-grid{grid-template-columns:repeat(2,1fr)}.tms-product-section-head{display:block}.tms-product-section-head p{margin-top:12px}.tms-product-remote{grid-template-columns:1fr}.tms-product-section{padding:54px 0}}
@media(max-width:520px){.tms-product-brand img{width:190px}.tms-product-info{padding:20px}.tms-product-hero-grid{gap:28px}.tms-product-trust-grid{gap:12px}.tms-product-trust-grid div{font-size:11px}.tms-product-trust-grid b{font-size:13px}}

/* TMS selectable kit options */
.tms-selectable-option{align-items:center}
.tms-selectable-option label{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:1;cursor:pointer;color:#fff}
.tms-selectable-option input[type=checkbox]{width:21px;height:21px;flex:0 0 21px;accent-color:#e60026;cursor:pointer}
.tms-kit-total{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 8px;padding:16px 0;border-top:1px solid var(--tp-line);color:#fff;font-weight:700}
.tms-kit-total strong{font-size:24px;white-space:nowrap}

/* =====================================================================
   TMS 1.0.20 — habillage des pages natives PrestaShop (produit, panier, commande)

   CAUSE DU PROBLÈME CORRIGÉE : ce fichier s'appelait theme.css, comme celui du thème parent
   Classic. Il le remplaçait, donc TOUT le style natif (grille, boutons, onglets, fenêtre
   « produit ajouté au panier », panier, commande) n'était plus chargé. Il s'appelle maintenant
   custom.css : PrestaShop le charge EN PLUS du CSS de Classic, après lui.
   On ne reconstruit donc plus la mise en page : on ne change que les couleurs.
   ===================================================================== */

/* ---------- Boutons principaux : rouge TMS (fiche produit, fenêtre panier, panier, commande) ---------- */
.btn-primary,.btn-primary:not(:disabled):not(.disabled){background:#df0025!important;border-color:#df0025!important;color:#fff!important}
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):hover,.btn-primary:not(:disabled):not(.disabled):active{background:#b8001e!important;border-color:#b8001e!important;color:#fff!important}
.btn-primary.disabled,.btn-primary:disabled{background:#6b3038!important;border-color:#6b3038!important;opacity:.7}
.product-flag,.product-flags li.product-flag{background:#df0025!important;color:#fff!important}

/* ---------- En-tête sombre TMS (toutes les pages sauf accueil / page TMAX, où il est masqué) ---------- */
#header,#header .header-nav,#header .header-top{background:#090a0d!important;color:#f5f6f7;box-shadow:none}
#header .header-nav{border-bottom:1px solid #30343b;max-height:none}
#header a,#header .material-icons,#header .header-nav span,#header .header-nav .expand-more{color:#f5f6f7!important}
#header a:hover{color:#ff6672!important}
/* Menu de démonstration de Classic (Vêtements, Accessoires, Art) : masqué tant que le menu n'est pas configuré. */
#header #_desktop_top_menu{display:none!important}
/* Logo TMS à la place du logo de la boutique */
#header #_desktop_logo img.logo,#header #_mobile_logo img.logo{display:none!important}
#header #_desktop_logo a,#header #_mobile_logo a{display:block;width:225px;max-width:100%;height:62px;background:url('../img/tms-logo.png') left center/contain no-repeat}
#header #_desktop_logo h1{margin:0}

/* ---------- Pied de page sombre, sans les blocs de démonstration ---------- */
#footer,#footer .footer-container{background:#090a0d!important;box-shadow:none;color:#d9dce1}
#footer a,#footer p,#footer li,#footer .h3,#footer .h4,#footer .text-uppercase,#footer .footer-container .links ul>li a{color:#d9dce1!important}
#footer a:hover{color:#ff6672!important}
#footer .block_newsletter,#footer #block-reassurance,#footer .blockreassurance,.blockreassurance_product,#block-reassurance{display:none!important}

/* ---------- Fiche produit : fond racing, panneau sombre, textes clairs ---------- */
body#product{background:#090a0d url('../img/tms-red-grey.png') center top/cover fixed}
body#product #wrapper,body#product #content-wrapper{background:transparent!important;color:#f5f6f7}
body#product #main{background:rgba(9,10,13,.86);border:1px solid #34383f;border-radius:10px;padding:24px}

/* Fil d'Ariane lisible sur le fond sombre */
body#product .breadcrumb{background:transparent}
body#product .breadcrumb li,body#product .breadcrumb li a,body#product .breadcrumb li span{color:#f5f6f7}
body#product .breadcrumb li a:hover{color:#ff6672}
body#product .breadcrumb li:after{color:#e00020}

/* Textes : clairs, mais uniquement dans la zone produit (la fenêtre « ajouté au panier » reste en clair) */
body#product #main :is(h1,h2,h3,h4,.h1,.h2,.h3,.h4,.h5,.h6){color:#fff}
body#product #main :is(p,li,label,dt,dd,td,th,.control-label,.current-price,.product-price,.tax-shipping-delivery-label,.product-unit-price,#description){color:#e8eaed}
body#product #main a{color:#ff6672}
body#product #main .btn,body#product #main .btn *{color:inherit}

/* Galerie */
body#product .product-cover{background:#111318;border:1px solid #34383f;border-radius:9px;overflow:hidden}
body#product .product-images,body#product .product-images>li{list-style:none}
body#product .product-images>li.thumb-container .thumb{border:1px solid #34383f;border-radius:6px;background:#111318}
body#product .product-images>li.thumb-container .thumb.selected,
body#product .product-images>li.thumb-container .thumb:hover{border-color:#df0025}

/* Onglets Description / Détails */
body#product .tabs{background:#14171c;box-shadow:none;border:1px solid #34383f;border-radius:8px}
body#product .tabs .nav-tabs{border-bottom:1px solid #34383f}
body#product .tabs .nav-tabs .nav-link{color:#b4b7bd!important;background:transparent;border:0}
body#product .tabs .nav-tabs .nav-link.active,body#product .tabs .nav-tabs .nav-link:hover{color:#fff!important;border-bottom:3px solid #df0025}
body#product .product-features>dl.data-sheet dt.name,
body#product .product-features>dl.data-sheet dd.value{background:#1b1f26;color:#e8eaed}

/* Produits associés : cartes sombres */
body#product .product-miniature .thumbnail-container,
body#product .product-miniature .product-description{background:#14171c!important}
body#product .product-miniature :is(.product-title,.product-title a,.price,.regular-price,.discount-percentage){color:#fff!important}

/* Blocs non configurés : avis clients (le texte « Aucun avis… » était blanc sur fond blanc), partage, liste d'envies */
body#product [id*="product-comment"],body#product [class*="product-comment"],
body#product .social-sharing,body#product .wishlist-button-add,body#product .product-wishlist{display:none!important}

/* ---------- Mobile ---------- */
@media(max-width:767px){
  body#product #main{padding:14px}
  #header #_desktop_logo a,#header #_mobile_logo a{width:180px;height:52px}
}

/* ---------- TMS 1.0.23 — disponibilité lisible (« Derniers articles en stock ») ---------- */
body#product #product-availability{display:inline-flex;align-items:center;gap:8px;margin:10px 0 0;padding:7px 12px;border:1px solid #4a505a;border-radius:6px;background:rgba(255,255,255,.08)!important;color:#fff!important;font-weight:700;line-height:1.3}
body#product #product-availability *{color:inherit!important;background:transparent!important}
body#product #product-availability:has(.product-last-items){background:rgba(255,193,7,.16)!important;border-color:#ffc107;color:#ffd75e!important}
body#product #product-availability:has(.product-unavailable){background:rgba(223,0,37,.2)!important;border-color:#df0025;color:#ff9aa5!important}
body#product #product-availability:has(.product-available){background:rgba(46,204,113,.14)!important;border-color:#2ecc71;color:#8ff0b6!important}

/* Cases d'options : texte aligné à gauche (Classic aligne les libellés à droite) */
.tms-flexfuel-option label{text-align:left}
.tms-ff-text{align-items:flex-start;text-align:left}

/* Photo du kit (ID 20) : PrestaShop complète l'image en carré avec des bandes blanches ; on recadre en 4/3 */
body#product.product-id-20 .product-cover{position:relative;aspect-ratio:4/3}
body#product.product-id-20 .product-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- TMS 1.0.24 — listes à puces des descriptions produit ---------- */
/* L'éditeur place chaque ligne dans <li><p>…</p></li> : on remet la puce à l'extérieur, alignée sur la 1re ligne. */
body#product :is(#description,.product-description,.product-short-description,.product-information) ul{
  list-style:disc outside!important;margin:0 0 1rem!important;padding:0 0 0 1.5rem!important}
body#product :is(#description,.product-description,.product-short-description,.product-information) ol{
  list-style:decimal outside!important;margin:0 0 1rem!important;padding:0 0 0 1.5rem!important}
body#product :is(#description,.product-description,.product-short-description,.product-information) li{
  display:list-item!important;list-style:inherit!important;margin:0 0 .4rem!important;padding:0!important}
body#product :is(#description,.product-description,.product-short-description,.product-information) li>p{
  display:block!important;margin:0!important}
body#product :is(#description,.product-description) li::marker{color:#df0025}

/* ---------- TMS 1.0.25 — accueil et page TMAX en pleine largeur ---------- */
/* Classic place le contenu dans un .container de ~1140 px : sur grand écran, la page sombre restait plus étroite
   que la fenêtre et laissait deux bandes de fond mal alignées au défilement. */
body#index #wrapper>.container,body#cms #wrapper>.container,
body#index #wrapper .container,body#cms #wrapper .container{max-width:none!important;width:100%!important;padding-left:0!important;padding-right:0!important}
body#index #wrapper .row,body#cms #wrapper .row{margin-left:0!important;margin-right:0!important}
body#index #content-wrapper,body#cms #content-wrapper{width:100%!important;max-width:100%!important;flex:0 0 100%!important;padding-left:0!important;padding-right:0!important}
body#index #main,body#cms #main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}


/* ---------- Description du kit MaxxECU : hiérarchie et lecture ---------- */
.tms-kit-description{margin-top:20px;padding-top:18px;border-top:1px solid var(--tp-line)}
.tms-kit-description h4{margin:18px 0 6px;color:#fff;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tms-kit-description h4:first-child{margin-top:0}
.tms-kit-description p{margin:0 0 10px;color:var(--tp-muted);font-size:14px;line-height:1.65}


/* =====================================================================
   TMS 1.0.27 — lisibilité et correction responsive mobile
   - Un seul fond racing sur la page CMS : évite les raccords verticaux.
   - Le contenu ne peut plus dépasser la largeur de l'écran.
   - Les colonnes du kit et les blocs texte passent proprement en mobile.
   - Contraste renforcé sur les textes descriptifs.
   ===================================================================== */

/* Fond unique sur la page CMS : le bloc TMS reste transparent */
body#cms{
  background:#090a0d url('../img/tms-red-grey.png') center top / cover fixed no-repeat !important;
  color:#f5f6f7 !important;
}
body#cms #wrapper,
body#cms #content-wrapper,
body#cms #main,
body#cms .tms-product-page{
  min-width:0 !important;
  max-width:100% !important;
}
body#cms .tms-product-page{
  width:100% !important;
  overflow:visible !important;
  background:transparent !important;
}
body#cms .tms-product-wrap{
  width:min(1160px, calc(100% - 40px)) !important;
  max-width:100% !important;
  min-width:0 !important;
}
body#cms .tms-product-page *,
body#cms .tms-product-page *::before,
body#cms .tms-product-page *::after{
  min-width:0;
  overflow-wrap:anywhere;
}
body#cms .tms-product-info,
body#cms .tms-product-services article{
  min-width:0;
  overflow-wrap:anywhere;
}
body#cms .tms-product-info p,
body#cms .tms-product-services p,
body#cms .tms-product-section-head p,
body#cms .tms-product-page .tms-product-about{
  color:#e1e4e8 !important;
  line-height:1.7;
}
body#cms .tms-product-info h3,
body#cms .tms-product-info h4,
body#cms .tms-product-services h3,
body#cms .tms-product-section h2,
body#cms .tms-product-page h1{
  color:#fff !important;
}
body#cms .tms-product-price small{
  color:#c7cbd1 !important;
}
body#cms .tms-product-nav{
  flex-wrap:wrap;
}
body#cms .tms-product-brand{
  max-width:100%;
}
body#cms .tms-product-brand img{
  max-width:100%;
  height:auto;
  max-height:68px;
}
body#cms .tms-product-btn,
body#cms .tms-product-cta{
  max-width:100%;
  white-space:normal;
  text-align:center;
}

/* Fiche produit native : empêche les colonnes ou images de forcer une largeur fixe */
body#product #wrapper,
body#product #content-wrapper,
body#product #main,
body#product .container,
body#product .row,
body#product .product-container,
body#product .product-information,
body#product .tabs{
  min-width:0;
  max-width:100%;
}
body#product #main{
  overflow:hidden;
}
body#product .product-cover,
body#product .product-cover img,
body#product .images-container,
body#product .product-images{
  max-width:100%;
}
body#product .product-cover img{
  object-fit:contain !important;
}

/* Panier et commande : textes lisibles, sans débordement horizontal */
body#cart #main,
body#order #main,
body#checkout #main{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
body#cart .cart-grid,
body#cart .cart-grid-body,
body#cart .cart-grid-right,
body#order .checkout,
body#checkout .checkout{
  min-width:0;
  max-width:100%;
}

/* Téléphones */
@media (max-width: 767px){
  html, body{
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  body#cms{
    background-attachment:scroll !important;
    background-position:center top !important;
    background-size:auto 100% !important;
  }
  body#cms .tms-product-wrap{
    width:calc(100% - 28px) !important;
  }
  body#cms .tms-product-header{
    position:relative;
  }
  body#cms .tms-product-nav{
    min-height:64px;
    justify-content:center;
    padding:8px 0;
  }
  body#cms .tms-product-brand img{
    width:190px;
    height:auto;
    max-height:58px;
  }
  body#cms .tms-product-hero{
    padding:38px 0 34px !important;
    background-position:center top !important;
  }
  body#cms .tms-product-hero-grid,
  body#cms .tms-product-layout,
  body#cms .tms-product-services{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:18px !important;
  }
  body#cms .tms-product-section{
    padding:38px 0 !important;
  }
  body#cms .tms-product-section-head{
    display:block !important;
    margin-bottom:20px !important;
  }
  body#cms .tms-product-section-head p{
    margin-top:10px !important;
  }
  body#cms .tms-product-photo,
  body#cms .tms-product-photo.product,
  body#cms .tms-product-photo.hero{
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:1.25;
  }
  body#cms .tms-product-info,
  body#cms .tms-product-services article{
    width:100% !important;
    padding:18px !important;
  }
  body#cms .tms-product-info h3{
    font-size:clamp(20px, 6vw, 25px) !important;
    line-height:1.2;
  }
  body#cms .tms-product-price,
  body#cms .tms-product-service-price{
    font-size:25px !important;
  }
  body#cms .tms-product-page p{
    font-size:14px !important;
  }
  body#cms .tms-product-trust-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  body#cms .tms-product-contact{
    padding:32px 0 !important;
  }

  body#product #main{
    padding:12px !important;
    border-radius:7px;
  }
  body#product .product-information,
  body#product .product-actions,
  body#product .product-variants,
  body#product .tabs,
  body#product .product-prices{
    min-width:0 !important;
    max-width:100% !important;
  }
  body#product .product-quantity,
  body#product .product-add-to-cart{
    flex-wrap:wrap;
  }
  body#product .product-add-to-cart .add-to-cart{
    max-width:100%;
    white-space:normal;
  }
  body#cart .cart-item,
  body#cart .cart-overview,
  body#cart .cart-summary,
  body#order .checkout-step,
  body#checkout .checkout-step{
    min-width:0 !important;
    max-width:100% !important;
  }
  body#cart table,
  body#order table,
  body#checkout table{
    display:block;
    max-width:100%;
    overflow-x:auto;
  }
}


/* TMS 1.0.28 — panier vide : conserver un libellé lisible
   Le thème Classic applique un fond clair au bloc panier lorsqu'il est vide.
   On force le même traitement visuel que lorsque le panier contient des articles. */
#header .header-nav #_desktop_cart,
#header .header-nav #_desktop_cart .blockcart,
#header .header-nav .blockcart,
#_desktop_cart,
#_desktop_cart .blockcart,
#_desktop_cart .cart-preview,
#header .blockcart,
#header .cart-preview{
  background:#e00020 !important;
  color:#fff !important;
  border-color:#e00020 !important;
}
#header .header-nav #_desktop_cart a,
#header .header-nav .blockcart a,
#_desktop_cart a,
#_desktop_cart .cart-preview a,
#header .blockcart a,
#header .cart-preview a{
  color:#fff !important;
  background:transparent !important;
  text-decoration:none !important;
}
#header .header-nav #_desktop_cart *,
#header .header-nav .blockcart *,
#_desktop_cart *,
#header .blockcart *,
#header .cart-preview *{
  color:#fff !important;
}
#header .header-nav #_desktop_cart .shopping-cart,
#header .header-nav #_desktop_cart .cart-products-count,
#_desktop_cart .shopping-cart,
#_desktop_cart .cart-products-count{
  color:#fff !important;
}
#header .header-nav #_desktop_cart:hover,
#header .header-nav .blockcart:hover,
#_desktop_cart:hover,
#header .blockcart:hover{
  background:#b8001e !important;
  color:#fff !important;
}
#header .header-nav #_desktop_cart .cart-preview,
#_desktop_cart .cart-preview{
  box-shadow:none !important;
}
