/* ELECTRODIS MOBILE V7 - TEST OP-IN
   Actif uniquement quand : ecran <=767px + classe edm7-active (posee par le JS en mode test).
   Ne modifie jamais les pages de paiement. CSS independant de custom.css / electrodis-v2.css.
   #682469 est repris de vos personnalisations existantes (header.tpl).
   #e36631 est une couleur d'accent provisoire, a valider. */
@media screen and (max-width: 767px) {
  html.edm7-active {
    --edm7-purple:#682469; --edm7-orange:#e36631;
    --edm7-ink:#271d2a; --edm7-muted:#655c68;
    --edm7-outline:#ece8ee; --edm7-bg:#f7f6f8;
    scroll-padding-top:125px;
  }
  html.edm7-active body { background:var(--edm7-bg); }
  /* Ancien en-tete cache UNIQUEMENT quand l'en-tete mobile test est operationnel. */
  html.edm7-active #header,
  html.edm7-active .header_content { display:none !important; }
  html.edm7-active #edm7-header { display:block !important; }
  html.edm7-active #edm7-header, html.edm7-active #edm7-header * {box-sizing:border-box;}
  html.edm7-active #edm7-header {position:sticky; top:0; z-index:999; background:#fff; color:var(--edm7-ink); box-shadow:0 2px 12px #25172b14; font-family:Arial,Helvetica,sans-serif;}
  html.edm7-active #edm7-header .edm7-row {display:flex;align-items:center;gap:10px;padding:9px 12px 7px;min-height:61px;}
  html.edm7-active #edm7-header button,
  html.edm7-active #edm7-header input {font:inherit;}
  html.edm7-active #edm7-header button {cursor:pointer;}
  html.edm7-active #edm7-header .edm7-iconbutton,
  html.edm7-active #edm7-header .edm7-cart,
  html.edm7-active #edm7-header .edm7-account {flex:0 0 40px;height:40px;display:grid;place-items:center;border:0;border-radius:9px;background:#f7f3f8;color:var(--edm7-purple);position:relative;padding:0;text-decoration:none;}
  html.edm7-active #edm7-header .edm7-cart {background:#fff1ec;color:#ab461f;}
  html.edm7-active #edm7-header .edm7-logo {display:flex;align-items:center;flex:1;min-width:0;height:43px;}
  html.edm7-active #edm7-header .edm7-logo img {max-width:100%;max-height:43px;object-fit:contain;object-position:left center;width:auto;height:auto;display:block;}
  html.edm7-active #edm7-header .edm7-count {position:absolute;top:-6px;right:-5px;border-radius:14px;background:var(--edm7-orange);color:white;min-width:18px;padding:1px 4px;font-size:11px;font-weight:700;line-height:17px;text-align:center;}
  html.edm7-active #edm7-header .edm7-search {display:flex;align-items:center;gap:8px;margin:0 12px 10px;padding:0 0 0 11px;border:1px solid #e2dde3;border-radius:11px;background:#faf9fb;height:46px;overflow:hidden;}
  html.edm7-active #edm7-header .edm7-search input[type="search"] {flex:1;min-width:0;height:100%;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--edm7-ink);outline:none;padding:0 2px;font-size:15px;}
  html.edm7-active #edm7-header .edm7-search button {height:100%;min-width:49px;border:0;background:var(--edm7-purple);color:white;display:grid;place-items:center;}
  html.edm7-active #edm7-header :is(a,button,input):focus-visible {outline:3px solid var(--edm7-orange);outline-offset:2px;}
  html.edm7-active #edm7-header .edm7-chips {display:flex;gap:8px;overflow-x:auto;padding:0 12px 9px;scrollbar-width:none;}
  html.edm7-active #edm7-header .edm7-chips::-webkit-scrollbar {display:none;}
  html.edm7-active #edm7-header .edm7-chips a {flex:0 0 auto;padding:7px 11px;border:1px solid #e3dce6;border-radius:999px;font-size:12px;font-weight:700;color:var(--edm7-purple);text-decoration:none;background:white;}
  html.edm7-active #edm7-header .edm7-chips a:active {background:#f6eef8;}
  html.edm7-active #edm7-drawer {position:fixed;inset:0;z-index:1000;background:#1a1023a8;display:none;align-items:stretch;}
  html.edm7-active #edm7-drawer.is-open {display:flex;}
  html.edm7-active #edm7-drawer .edm7-drawer-box {width:min(330px,85vw);max-height:100dvh;overflow:auto;background:white;padding:14px 16px calc(22px + env(safe-area-inset-bottom));box-shadow:4px 0 24px #170c1f36;}
  html.edm7-active #edm7-drawer .edm7-drawer-head {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;color:var(--edm7-purple);font-size:20px;font-weight:800;}
  html.edm7-active #edm7-drawer .edm7-close {height:38px;width:38px;border:1px solid var(--edm7-outline);background:#fff;border-radius:9px;font-size:22px;}
  html.edm7-active #edm7-drawer .edm7-category {display:flex;align-items:center;justify-content:space-between;padding:13px 2px;border-bottom:1px solid var(--edm7-outline);text-decoration:none;color:var(--edm7-ink);font-size:15px;font-weight:700;}
  html.edm7-active #edm7-drawer .edm7-muted {font-size:13px;color:var(--edm7-muted);}
  /* La page conserve ses listes, prix et vrais boutons d'achat PrestaShop. */
  html.edm7-active #wrapper {padding-top:8px!important;}
  html.edm7-active #wrapper .container {max-width:100%;}
  html.edm7-active body#index #slider_row {display:none!important;} /* carrousel de la page d'accueil, pas les produits */
  html.edm7-active body#index .homeslider-container {display:none!important;}
  html.edm7-active body#index .ed-home-hero-services,
  html.edm7-active body#index .ed-hero-services {display:none!important;}
  html.edm7-active body#index .featured-products .products,
  html.edm7-active body#category #js-product-list .products,
  html.edm7-active body#search #js-product-list .products {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;}
  html.edm7-active body#index .featured-products .products > *,
  html.edm7-active body#category #js-product-list .products > *,
  html.edm7-active body#search #js-product-list .products > * {width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;flex:initial!important;float:none!important;}
  html.edm7-active body#index .featured-products .product-miniature,
  html.edm7-active body#category #js-product-list .product-miniature,
  html.edm7-active body#search #js-product-list .product-miniature {width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;border:1px solid var(--edm7-outline);border-radius:10px;background:white;overflow:hidden;padding:5px;}
  html.edm7-active .product-miniature img {max-width:100%;height:auto;}
  html.edm7-active .product-miniature .product-title {font-size:13px;line-height:1.3;}
  html.edm7-active .product-miniature .price {font-size:17px;font-weight:800;color:var(--edm7-purple);}
  html.edm7-active :is(.featured-products, #js-product-list) {padding-left:8px;padding-right:8px;}
  html.edm7-active #edm7-test-label {position:fixed;right:7px;bottom:8px;z-index:1002;background:#682469;color:white;border-radius:5px;padding:5px 8px;font:11px/1.3 Arial,sans-serif;pointer-events:none;}
}
/* Redimensionnement en mode desktop : aucune regle ci-dessus ne s'applique. */
@media screen and (min-width: 768px) {
  #edm7-header, #edm7-drawer, #edm7-test-label {display:none!important;}


}


/* ELECTRODIS - CORRECTION LOGOS MARQUES MOBILE */

@media screen and (max-width: 767px) {

  body#product .product-manufacturer img,
  body#product .manufacturer-logo,
  body#product .manufacturer-logo img,
  body#product .product-brand img,
  body#product .brand-logo,
  body#product .brand-logo img,
  body#product img[alt="LG" i],
  body#product img[alt="Logo LG" i],
  body#product img[src*="/img/m/"] {

    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 110px !important;
    max-height: 45px !important;
    object-fit: contain !important;
    margin: 8px auto !important;

  }

}

/* FIN CORRECTION LOGOS MARQUES */

