/**
 * Ecopillfuel - surcharges visuelles du theme.
 * Palette et typographies estimees a partir des maquettes fournies (a ajuster
 * des reception des codes hexa / fichiers officiels - voir themes/CLAUDE.md).
 */

:root {
  --ecopill-cyan: #1cade4;
  --ecopill-blue-cta: #1e88e5;
  --ecopill-green: #4caf50;
  --ecopill-green-light: #e8f5e9;
  --ecopill-blue-border: #42a5f5;
  --ecopill-yellow: #ffd600;
  --ecopill-red: #e53935;
  --ecopill-teal: #55818E;
  --ecopill-text: #333333;

  --ecopill-font-heading: 'Poppins', sans-serif;
  --ecopill-font-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--ecopill-font-body);
  color: var(--ecopill-text);
}

/* ---------------------------------------------------------------------- */
/* Page produit                                                            */
/* ---------------------------------------------------------------------- */

.page-product h1.h1 {
  font-family: var(--ecopill-font-heading);
  font-weight: 700;
  color: var(--ecopill-text);
}
.certif-block{
    padding: 10px;
    background: repeating-radial-gradient(black, transparent 100px);
    min-width: 400px;
    max-width: 600px;
    aspect-ratio: 210 / 297;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ligne d'achat : bouton "Ajouter au panier" + quantite + bulle de prix
   regroupes sur une meme ligne, comme sur la maquette. */
.page-product .product-purchase-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0;
}

.page-product .product-purchase-row .product-add-to-cart {
  margin: 0;
}

.page-product .product-purchase-row .product-prices.js-product-prices {
  margin: 0;
  margin-left: auto;
}

.page-product .product-prices .product-price .current-price-value {
  display: inline-block;
  font-family: var(--ecopill-font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ecopill-red);
  background-color: var(--ecopill-yellow);
  border-radius: 999px;
  padding: 0.4rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Bouton "Ajouter au panier" en bleu CTA, coins arrondis */
.page-product .product-add-to-cart .btn.add-to-cart {
  background-color: var(--ecopill-blue-cta);
  border-color: var(--ecopill-blue-cta);
  font-family: var(--ecopill-font-heading);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem;
  text-transform: none;
}

.page-product .product-add-to-cart .btn.add-to-cart:hover,
.page-product .product-add-to-cart .btn.add-to-cart:focus {
  background-color: var(--ecopill-cyan);
  border-color: var(--ecopill-cyan);
}

.page-product .product-add-to-cart {
  display: flex;
  align-items: center;
  /* gap: 1rem; */
  flex-wrap: wrap;
}
.product-prices div{
  margin-bottom: 0;
}

/* Sur la maquette le bouton precede le selecteur de quantite : on inverse
   l'ordre visuel sans toucher au HTML (qty puis bouton dans le partial). */
.page-product .product-add-to-cart .product-quantity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-product .product-add-to-cart .product-quantity .qty {
  order: 2;
}

.page-product .product-add-to-cart .product-quantity .add {
  order: 1;
}

/* Stepper compact "- 1 +" comme sur la maquette : on detache les boutons
   touchspin (display:contents) pour les replacer de part et d'autre du champ
   via flex/order, sans toucher au plugin JS. */
.page-product .product-quantity .qty .input-group.bootstrap-touchspin {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.page-product .product-quantity .qty .input-group.bootstrap-touchspin input.form-control {
  order: 2;
  width: 2.75rem;
  height: 2.5rem;
  border: none;
  text-align: center;
  background: transparent;
}

.page-product .product-quantity .qty .input-group-btn-vertical {
  display: contents;
}

.page-product .product-quantity .qty .input-group-btn-vertical .btn {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--ecopill-text);
}

.page-product .product-quantity .qty .input-group-btn-vertical .btn:hover {
  background: var(--ecopill-green-light);
}

.page-product .product-quantity .qty .input-group-btn-vertical .bootstrap-touchspin-down {
  order: 1;
}

.page-product .product-quantity .qty .input-group-btn-vertical .bootstrap-touchspin-up {
  order: 3;
}

.page-product .product-quantity .qty .input-group-btn-vertical i {
  position: static;
  font-size: 1.125rem;
}

.page-product .product-quantity .qty .input-group-btn-vertical .touchspin-up::after {
  content: "\E145";
}

.page-product .product-quantity .qty .input-group-btn-vertical .touchspin-down::after {
  content: "\E15B";
}

/* Icone liste de souhaits absente de la maquette */
.page-product .wishlist-button-add {
  display: none;
}

/* Galerie produit : cadre net cote a cote avec les vignettes */
.page-product .product-cover-modal,
.page-product .js-qv-product-cover {
  /* border: 1px solid #e0e0e0; */
  border-radius: 8px;
  overflow: hidden;
}

.page-product .product-images li.thumb-container {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.page-product .product-images li.thumb-container.selected,
.page-product .product-images li.thumb-container:hover {
  border-color: var(--ecopill-cyan);
}
.product-cover img{
  background-color: transparent;
  border: 0;
}
/* Disposition "maquette" : colonne de vignettes a gauche du visuel principal
   (a partir de la tablette - on garde l'empilement par defaut sur mobile,
   plus confortable sur petit ecran). */
@media (min-width: 768px) {
  .page-product .images-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-product .images-container .product-cover {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
  }

  .page-product .images-container .js-qv-mask.mask {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    overflow: visible;
    white-space: normal;
  }

  .page-product .images-container .product-images {
    display: flex;
    flex-direction: column;
    margin-left: 0;
  }
  .page-product .images-container .product-images img.thumb.js-thumb{
    border: 3px solid #2a2929;
  }

  .page-product .images-container .product-images > li.thumb-container {
    margin-bottom: 0.6rem;
  }

  .page-product .images-container .product-images > li.thumb-container > .thumb {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 0;
  }

  .page-product .scroll-box-arrows {
    display: none !important;
  }
}

/* ---------------------------------------------------------------------- */
/* Bloc DESCRIPTIF TECHNIQUE (titre + sous-sections + listes)              */
/* ---------------------------------------------------------------------- */

.page-product .product-description h3,
.page-product .product-description h4,
.page-product .product-description strong:first-child {
  font-family: var(--ecopill-font-heading);
  color: var(--ecopill-green);
  text-transform: uppercase;
}

.page-product .product-description ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.page-product .product-description ul li {
  margin-bottom: 0.4rem;
}

.page-product .product-description h4 {
  margin-top: 1.25rem;
  text-transform: none;
  color: var(--ecopill-text);
  font-weight: 600;
  border-bottom: 2px solid var(--ecopill-green-light);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.product-prices.js-product-prices{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-add-to-cart.js-product-add-to-cart .control-label{
  display: none;
}
.product-quantity #quantity_wanted{
  width: 2rem;
    height: 2.5rem;
}

#product #content{
  max-width: initial;
}

.product-tabs-full .tabs{
  background-color: transparent;
  padding: 0;
}

/* ============================================================
   Header — barre cyan + zone logo/search/actions + nav menu
   ============================================================ */

/* ── 1. Barre cyan supérieure : téléphone + langue ─────────────────────── */
#header .header-nav {
    background-color: var(--ecopill-teal);
    border: 0;
    box-shadow: none;
    min-height: 34px;
    height: auto;
}
.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}
.header-nav-left,
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#header #contact-link,
#header #contact-link span,
#header #contact-link a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
/* Sélecteur de langue dans la barre cyan */
#header .header-nav-right #_desktop_language_selector .language-selector button,
#header .header-nav-right #_desktop_language_selector .expand-more {
    color: #fff;
}
#header .header-nav-right #_desktop_language_selector .dropdown-menu {
    background: #fff;
}
#header .header-nav-right #_desktop_language_selector .dropdown-menu a {
    color: var(--ecopill-text);
}
#header .header-nav-right #_desktop_currency_selector .currency-selector button,
#header .header-nav-right #_desktop_currency_selector .expand-more {
    color: #fff;
}
#language-selector-label {
    display: none;
}

/* ── 2. Zone principale header : logo | search | compte+panier ─────────── */
#header .header-top {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: none;
    border-bottom: 0;
}
.header-top-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.8rem 0;
}
.header-top-grid .header-top-search{
flex:initial;
}
/* Colonne logo */
.header-top-logo {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 280px;
}
.header-top-logo .logo,
.header-top-logo h1.logo {
    margin: 0;
    padding: 0;
    font-size: 1rem;
}
.header-top-logo .logo img {
    max-height: 70px;
    width: auto;
}

/* Tagline sous le logo */
.shop-tagline {
    font-size: 0.78rem;
    font-style: italic;
    color: #555;
    margin: 3px 0 0 0;
    font-family: var(--ecopill-font-body);
    white-space: nowrap;
}

/* Colonne search (s'étire) */
.header-top-search {
    flex: 1 1 auto;
    min-width: 0;
}
.header-top-search .search-widget {
    max-width: 100%;
    margin: 0;
}
.header-top-search .search-widget form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.header-top-search .search-widget input.search-query {
    flex: 1;
    border: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
}
.header-top-search .search-widget button[type="submit"] {
    border: 0;
    background: transparent;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    color: #666;
}

/* Colonne actions : compte + panier */
.header-top-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
#header .header-top-actions #_desktop_user_info .user-info {
    margin: 0;
    height: auto;
}
#header .header-top-actions #_desktop_user_info a {
    color: var(--ecopill-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}
#header .header-top-actions #_desktop_user_info .material-icons {
    font-size:40px;
    color: var(--ecopill-text);
}
/* Masquer le texte "Sign in / account name" — icône seule */
#header .header-top-actions .user-info .hidden-sm-down {
    display: none !important;
}
#header .header-top-actions #_desktop_cart .blockcart {
    background: transparent;
    padding: 0;
    border: 0;
}
#header .header-top-actions #_desktop_cart .header {
    padding: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
#header .header-top-actions #_desktop_cart .shopping-cart {
    font-size: 40px;
    color: var(--ecopill-text);
}
#header .header-top-actions #_desktop_cart .cart-products-count {
    font-size: 0.78rem;
    color: var(--ecopill-text);
}
/* Masquer le texte "Cart" — icône seule */
#header .header-top-actions #_desktop_cart .hidden-sm-down {
    display: none !important;
}

/* ── 3. Barre de navigation cyan pleine largeur (selectpage) ──────────── */
.header-nav-menu {
    background-color: transparent ;
    width: 100%;
}
.header-nav-menu > .container {
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--ecopill-teal);
}
.header-nav-menu .menu-items {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    flex-wrap: nowrap;
    max-height: 50px;
}
.header-nav-menu .item-of-menu {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.25);
    position: relative;
}
.header-nav-menu .item-of-menu:last-child {
    border-right: 0;
}

/* Liens et dropdowns selectpage */
.header-nav-menu .select-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    cursor: pointer;
}
.header-nav-menu .show-content,
.header-nav-menu .link {
    color: #fff;
    font-family: var(--ecopill-font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.header-nav-menu .link:hover,
.header-nav-menu .show-content:hover {
    background-color: rgba(0,0,0,0.1);
    color: #fff;
}
/* Dropdown selectpage */
.header-nav-menu .select-items {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 0.4rem 0;
}
.header-nav-menu .select-items-item {
    padding: 0;
    border-bottom: 1px solid rgba(26,196,255,0.2);
}
.header-nav-menu .select-items-item:last-child {
    border-bottom: 0;
}
.header-nav-menu .select-items-item a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--ecopill-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
}
.header-nav-menu .select-items-item a:hover {
    background-color: var(--ecopill-green-light);
    color: var(--ecopill-cyan);
}

/* ── 4. Mobile header ──────────────────────────────────────────────────── */
.header-mobile-bar {
    padding: 6px 0;
}
#header .header-mobile-bar .material-icons {
    color: #fff;
    font-size: 24px;
    line-height: 1;
}
#header .header-mobile-bar #_mobile_cart .shopping-cart {
    color: #fff;
    font-size: 20px;
}
#header .header-mobile-bar #_mobile_user_info .material-icons {
    color: #fff;
}
.menu-items-mobile {
    background-color: var(--ecopill-teal);
    width: 100%;
}
.menu-items-mobile .select-block {
    display: block !important;
    padding-left: 32px;
    padding-top: 15px;
    width: 100% !important;
}
.menu-items-mobile .show-content,
.menu-items-mobile .link {
    color: #fff;
    cursor: pointer;
}
.menu-items-mobile .select-items {
    position: static;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.3rem 0 0.3rem 1rem;
    width: 100%;
}
.menu-items-mobile .select-items .select-items-item a {
    display: block;
    color: #fff;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    text-decoration: none;
}

@media (max-width: 767px) {
    .header-top-grid {
        display: none;
    }
}

/* Classe utilitaire texte vert (color-g dans le HTML back-office) */
.color-g {
  color: var(--ecopill-green);
}
#custom-text .color-b {
    background-color: var(--ecopill-teal);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   Page d'accueil — layout général
   ============================================================ */

/* Slider / carousel */
.page-home #carousel {
    margin-bottom: 0;
}
.page-home .carousel-inner {
    height: 380px;
    background-color: var(--ecopill-cyan);
}
.page-home .carousel-inner figure {
    width: 100%;
    height: 100%;
}
.page-home .carousel-inner figure img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}
#carousel .carousel-inner img {
    max-width: 100%;
}

/* Bandeau ps_banner — fond vert (mode texte, sans image) */
.banner-wrapper {
    padding: 1.25rem 1rem;
}
.banner-header-green {
    background: transparent;
    padding: 0;
    text-align: center;
}
.banner-header-green h2 {
    color: var(--ecopill-green) !important;
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
    margin-bottom: 0;
}
.banner-cta-link,
.banner-cta-link:hover {
    text-decoration: none;
}
.banner-cta-text {
    display: block;
    color: #fff;
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.55;
}

/* Section "Nos Additifs" */
.page-home .featured-products {
    padding: 2rem 0;
}
.page-home .nos-additifs-title {
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--ecopill-teal);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Cartes produits — accueil */
.page-home .product-miniature .thumbnail-container {
    border: 5px solid var(--ecopill-teal);
    /* border-radius: 10px; */
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.page-home .product-miniature .thumbnail-container:hover {
    box-shadow: 0 4px 16px rgba(85, 129, 142, 0.25);
}
.page-home .product-miniature .product-title {
    text-align: center;
    padding: 0.75rem 1rem 0.5rem;
    margin: 0;
    background: #fff;
}
.page-home .product-miniature .product-title a {
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ecopill-teal);
    text-decoration: none;
}
.page-home .product-miniature .product-title a:hover {
    color: var(--ecopill-green);
}
/* Description courte : "Traitement de carburant" + "Compatible avec" + icônes */
.product-miniature .miniature-desc {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    flex: 1 1 auto;
}
.product-miniature .miniature-desc img {
    max-width: 100%;
    height: auto;
}

/* Bloc texte personnalisé (ps_customtext) — structure */
#custom-text {
    padding: 2rem 1rem;
    margin-bottom: 0;
    background-color: transparent;
}
#custom-text h2 {
    font-size: 2rem;
}

.custom-card-group {
    border: 4px solid var(--ecopill-teal);
    border-radius: 30px;
    padding: 0.9rem 1.75rem;
    background: #55818e1f;
    /* max-width: 95%; */
    margin: 1.5rem 0 0.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.custom-card-group .custom-card {
    /* padding: 0.35rem 0; */
    line-height: 1.7;
    text-align: start;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.custom-card-group .custom-card::before {
    content: "\2713";
    color: var(--ecopill-green);
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1.7;
}
.def-block {
    margin-top: 0.1rem;
    text-align: start;
}
.def-block ul {
    list-style: none;
    padding-left: 0;
}
.def-block li {
    color: #666;
    padding: 0.1rem 0;
    font-size: 10px;
}

@media (max-width: 767px) {
    .page-home .carousel-inner {
        height: 220px;
    }
    .banner-cta-text {
        font-size: 1rem;
    }
    .custom-card-group {
        border-radius: 20px;
        padding: 0.75rem 1.25rem;
        width: auto;
    }
    .page-home .nos-additifs-title {
        font-size: 1.5rem;
    }
}

.d-none {
    display: none;
}

/* ============================================================
   Miniatures produit — barre d'action [ATC] [qty] [prix]
   ============================================================ */

.product-miniature .thumbnail-container {
    display: flex;
    flex-direction: column;
}

/* Espace interne de la description */
.product-miniature .product-description {
    padding: 0.6rem 0.75rem 0.4rem;
    flex: 1 1 auto;
}
.product-miniature .product-title {
    font-family: var(--ecopill-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}
.product-miniature .product-title a {
    color: var(--ecopill-text);
}

/* Barre d'action en bas de la carte */
.product-miniature .miniature-action-bar {
    padding: 0.5rem 0.75rem 0.65rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}
.product-miniature .miniature-action-bar form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

/* Bouton "Ajouter au panier" */
.product-miniature .miniature-atc-btn {
    background-color: var(--ecopill-blue-cta);
    border-color: var(--ecopill-blue-cta);
    color: #fff;
    font-family: var(--ecopill-font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    text-transform: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}
.product-miniature .miniature-atc-btn:hover,
.product-miniature .miniature-atc-btn:focus {
    background-color: var(--ecopill-cyan);
    border-color: var(--ecopill-cyan);
    color: #fff;
}
.product-miniature .miniature-atc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sélecteur de quantité : [–] [n] [+] */
.product-miniature .miniature-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    height: 1.9rem;
}
.product-miniature .miniature-qty-btn {
    border: 0;
    background: transparent;
    width: 1.6rem;
    height: 100%;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--ecopill-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.product-miniature .miniature-qty-btn:hover {
    background: var(--ecopill-green-light);
}
.product-miniature .miniature-qty-input {
    width: 1.8rem;
    height: 100%;
    border: 0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.85rem;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}
.product-miniature .miniature-qty-input::-webkit-outer-spin-button,
.product-miniature .miniature-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.product-miniature .miniature-qty-input:focus {
    outline: none;
}

/* Prix — valeur en rouge à droite */
.product-miniature .miniature-price-val {
    color: var(--ecopill-red);
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Sur mobile : la barre d'action passe en colonne */
@media (max-width: 479px) {
    .product-miniature .miniature-action-bar form {
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-miniature .miniature-price-val {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}
#header a.Home-page {
    color: white;
}
.Home-page .material-icons{
    display: none;
}

.js-top-menu-bottom{
    background-color:#55818ee3 ;
    padding: 0 20px;
}
.vertical-links.menu-items-mobile{
    padding-bottom: 10px;
}
#mobile_top_menu_wrapper{
    padding: 0;
}

#header .header-nav .cart-preview.active{
    background-color: transparent;
}
#header{
    box-shadow: none;

}

#header, #header .header-top{
    /*background-color: #f6f6f6;*/
}
#wrapper{
    background-color:white;
}
#wrapper > .container,.header-top > .container,.header-nav > .container{
    padding-left: 0;
    padding-right: 0;
}

.featured-products .product-subtitle {
    display: none;
}

.all-product-link{
    display: none;
}

#header .header-nav-menu .select-items-item a{
    color: var(--ecopill-text);
}

#header .header-nav-menu .select-items-item a.Home-page.color-red{
       color:#ca3f3f;
}

/* ---------------------------------------------------------------------- */
/* Bloc produit ECOTORQUE — présentation spécifique                        */
/* ---------------------------------------------------------------------- */

/* Bannière noire en haut */
.ecotorque-banner {
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.ecotorque-banner p {
    margin: 0.2rem 0;
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
}
.ecotorque-banner .banner-line-white { color: #fff; font-size: 1.1rem; }
.ecotorque-banner .banner-line-red   { color: var(--ecopill-red); font-size: 1rem; }

/* Sous-titre centré */
.ecotorque-subtitle {
    text-align: center;
    margin: 1rem 0 1.5rem;
    color: var(--ecopill-teal);
    font-family: var(--ecopill-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Layout deux colonnes : image | carte */
.ecotorque-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.ecotorque-image {
    flex: 0 0 45%;
}
.ecotorque-image img {
    width: 100%;
    border-radius: 8px;
}

/* Carte de droite avec bordure rouge */
.ecotorque-feature-card {
    flex: 1;
    border: 2px solid var(--ecopill-red);
    border-radius: 22px;
    padding: 1rem 1.5rem;
    background: #fff;
}
.ecotorque-feature-card .ecotorque-card-title {
    color: var(--ecopill-red);
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Remplacer la couleur de bordure du custom-card-group à l'intérieur */
.ecotorque-feature-card .custom-card-group {
    border-color: var(--ecopill-red);
    box-shadow: none;
    margin: 0 0 1rem;
}

/* Bouton lien "Ajouter au panier" (lien vers page produit) */
.ecotorque-atc-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.ecotorque-atc-btn {
    background-color: var(--ecopill-blue-cta);
    color: #fff !important;
    font-family: var(--ecopill-font-heading);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    text-decoration: none !important;
    white-space: nowrap;
}
.ecotorque-atc-btn:hover {
    background-color: var(--ecopill-teal);
}
.ecotorque-price-label {
    margin-left: auto;
    color: var(--ecopill-red);
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}
.ecotorque-footnote {
    font-size: 11px;
    color: #666;
    margin-top: 0.4rem;
}

/* Section "Compatible avec" */
.ecotorque-compatible {
    margin-top: 1.5rem;
}
.ecotorque-compatible h4 {
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    color: var(--ecopill-text);
    margin-bottom: 0.75rem;
}
.ecotorque-compatible .compat-category {
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}
.ecotorque-compatible img {
    max-height: 50px;
    width: auto;
    margin: 0.2rem;
}

/* Mobile */
@media (max-width: 767px) {
    .ecotorque-layout {
        flex-direction: column;
    }
    .ecotorque-image {
        flex: 0 0 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT SPOTLIGHT — présentation produit unique (Bootstrap columns)
   Structure :
     .sp-banner    → bannière noire pleine largeur
     .sp-subtitle  → sous-titre pleine largeur
     .row.sp-custom → col-5 (image) | col-7 (custom-card-group + action)
     .sp-compat    → Compatible avec pleine largeur
   ═══════════════════════════════════════════════════════════════════════════ */

.product-spotlight-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order:1;
}
.product-spotlight-wrapper .product-miniature {
    display: block;
}
.page-home .product-spotlight-wrapper .product-miniature .thumbnail-container {
    border: 0;
    background-color: transparent;
}
.page-home .product-spotlight-wrapper  .product-miniature .thumbnail-container:hover {
    box-shadow: none;
}

/* Conteneur principal — bloc simple, plus de grille CSS */
.spotlight-container {
    display: block;
    background: #fff;
    overflow: hidden;
}

/* display:contents → sp-banner + sp-subtitle remontent dans le flux normal */
.product-spotlight {
    display: contents;
}

/* ── Bannière noire ── */
.sp-banner {
    background: #ff8f3fed;
    padding: 0.9rem 2rem;
    text-align: center;
}
.sp-banner p { margin: 0; line-height: 1.6; }
.sp-banner .banner-line-white {
    color: #fff;
    font-weight: 700;
    font-size: 32px;
}
.sp-banner .banner-line-red {
    color: var(--ecopill-red);
    font-weight: 600;
    font-size: 28px;
}

/* ── Sous-titre ── */
.sp-subtitle {
    text-align: center;
    padding: 0.85rem 2rem 0.75rem;
    font-size: 0.95rem;
    color: var(--ecopill-teal);
    line-height: 1.5;
    font-size:26px;
}
.sp-subtitle strong {
    color: var(--ecopill-teal);
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size:28px;
}

/* ── Row Bootstrap : annule les marges négatives qui créent un débordement ── */
.sp-custom {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: stretch;
}

/* Colonne image (col-sm-12 col-lg-5) */
.sp-custom > .col-lg-5 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 1rem 1rem;
}
.sp-custom > .col-lg-5 img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    display: block;
}

/* Carte droite (custom-card-group.col-7) :
   override max-width:95% et margin:auto de .custom-card-group par défaut */
   .sp-custom {
        margin-top: 1.5rem;
   }
.sp-custom .custom-card-group {
    max-width: 100% !important;
    margin: 0;
    border-color: var(--ecopill-red);
    box-shadow: none;
    background-color: white;
    display: flex;
    flex-direction: column;
}
.sp-custom .custom-card-group .custom-card::before {
    color: red;
}

.sp-custom .ecotorque-card-title {
    color: var(--ecopill-red);
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ── Action panier (dans custom-card-group) ── */
.sp-action {
    padding: 0.5rem 0 0;
    margin: 1rem 0;
}
.sp-action form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sp-action .miniature-atc-btn {
    background: var(--ecopill-blue-cta);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
    font-family: var(--ecopill-font-heading);
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.sp-action .miniature-atc-btn:hover { background: var(--ecopill-teal); }
.sp-action .miniature-price-val {
    margin-left: auto;
    color: var(--ecopill-red);
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Note de bas de carte ── */
.sp-footnote .ecotorque-footnote {
    font-size: 11px;
    color: #666;
    margin: 0.25rem 0 0;
}

/* ── Compatible avec (pleine largeur) ── */
.sp-compat {
    padding: 1rem 1.5rem 1.25rem;
    /* border-top: 1px solid #f0f0f0; */
}
.sp-compat h4 {
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    color: var(--ecopill-text);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.sp-compat .compat-category {
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.9rem;
}
.sp-compat img {
    /* max-height: 50px; */
    width: auto;
    margin: 0.2rem;
}

/* ── Mobile : empilement vertical (col-lg = breakpoint 992px) ── */
@media (max-width: 991px) {
    .sp-custom > .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100% !important;
        margin: 0.5rem auto !important;
    }
    .sp-custom .custom-card-group {
        flex: 0 0 100%;
        max-width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    #header .header-nav .blockcart{
        background:transparent;
    }
    .blockcart .cart-products-count{
        color:white;
    }
    
    .top-logo .text-center{
        display:none;
    }
}

.featured-products .wishlist-button-add {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE mbvehiclegroups — variante thème ecopillfuel
   Surcharge uniquement .mb-vehicle-groups--ecopillfuel (classe ajoutée
   dans le template override du thème). Le CSS du module (front.css) reste
   inchangé pour les autres thèmes.
   ═══════════════════════════════════════════════════════════════════════════ */

.mb-vehicle-groups--ecopillfuel .mb-vehicle-groups-headline span {
    background: var(--ecopill-blue-cta);
    color: #fff;
    border-radius: 22px;
    padding: 0.5rem 1.5rem;
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size:22px;
}
.mb-vehicle-groups--ecopillfuel .mb-vehicle-group-title-wrap{
    text-align: center;
}
.mb-vehicle-groups--ecopillfuel  .mb-vehicle-image-link{
    display: flex;
    justify-content: center;
    align-items: center;
}
.mb-vehicle-groups--ecopillfuel  .mb-vehicle-image-link  img{
        border: 4px solid var(--ecopill-teal);
    border-radius: 60px;
    padding: 0.5rem;
    background: #55818e1f;
    /* max-width: 95%; */
    /* margin: 1.5rem 0 0.5rem 0; */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
    width: 250px;
    height: 250px;
    max-width: 300px;
}
.mb-vehicle-groups--ecopillfuel .mb-vehicle-group-row {
    background: transparent;
    /* border-left: 4px solid var(--ecopill-teal); */
    border-radius: 0px;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
}

.mb-vehicle-groups--ecopillfuel .mb-vehicle-group-title {
    background: var(--ecopill-teal);
    color: #fff;
    border-radius: 18px;
    padding: 0.35rem 0.9rem;
    font-family: var(--ecopill-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}
/* .mb-vehicle-groups--ecopillfuel .mb-vehicle-group-title:hover {
    background: var(--ecopill-red);
    color: #fff;
} */

.mb-vehicle-groups--ecopillfuel .mb-vehicle-name {
    color: var(--ecopill-text);
    font-family: var(--ecopill-font-body);
    font-weight: 600;
}
/* .mb-vehicle-groups--ecopillfuel .mb-vehicle-name:hover {
    color: var(--ecopill-red);
} */

#footer {
    background-color: #D9D9D9;
    padding-top: 0 !important;
}

.block-social ul li.block-social-message {
    width: auto;
    margin-top: 24px;
    color: #4A4A4A;
    margin-left: 10px;
}
.block-social ul li {
    background-color: initial;
    margin: 1.125rem;
    margin-left: 0;
}

.block-social ul li.block-social-message:hover {
    transform: none;
    background-color: initial;
    cursor: initial;
}

.block-social ul li.block-social-message {
    width: auto;
    margin-top: 24px;
    color: #4A4A4A;
    margin-left: 10px;
}

.block-social ul li:hover {
    transform: scale(1.1);
    background-color: initial;
}

.logo-ligne {
    margin: 0.5rem 0;
    border: .7px solid #313333;
}

.color-black {
    color: #000;
}
.color-b {
    color: #1AC4FF !important;
}

.page-authentication #content {
    max-width: 920px;
}


.form-control {
    width: 100%;
    border-radius: .375rem;
    border-style: none;
    --tw-bg-opacity: 1;
    background-color: rgb(248 248 248 / var(--tw-bg-opacity));
    padding: .75rem 1.25rem;
    font-family: Karla, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    line-height: 1.625;
    --tw-text-opacity: 1;
}

.gender .form-control-label {
    text-align: start;
    padding-left: 1.6rem;
    color: #7A7A7A;
    max-width: fit-content;
}
.form-check-label.label-register {
    text-align: start;
}
.block_newsletter {
    background: transparent;
    padding-top: 10px;
}

#login-form .input-group-btn > .btn{
    height:50px;
}
.col-md-9.links{
    text-transform: uppercase;
}
.product-flags li.product-flag.on-sale{
    display:none;
}
.product-spotlight p {
    font-size:26px;
}

.mb-vehicle-groups-headline{
    margin-bottom:4rem;
}
.product-information .product-subimage{
    display:none;
}
.d-none{
    display:none !important;
}
.tabs .nav-tabs{
    border-bottom:0px;
}
.tabs .nav-tabs .nav-link.active {
    color: black;
    border: none;
    border-bottom: 0;
    padding:0;
    font-size:xx-large;
}
.product-subtitle.h1{
    margin-bottom:1rem;
}
.logo >p{
    padding-left:10px;
    padding-top: 0px !important;
}
.logo-ligne{
    margin:0.5rem 10px;
}
.logo .slogna{
    font-size: 17px !important;
    color: black;
    font-weight: bold;
}
#carousel .carousel-inner img {
    max-width: 100%;
}

.page-home .carousel-inner figure img {
    height: 100%;
}

#block-newsletter-label{
    display:none;
}

.product-attachments{
    margin-top:1.5rem;
    text-align:end;
}
.footer-image-list{
    display: flex;
    justify-content: center;
    flex-flow: wrap;
    padding-bottom:2rem;
}
.footer-image-list img{
    max-width:150px;
    height:150px;
    
}

.analyse-block-container {
    background-color: white;
    margin: 3rem 0;
    padding: 5px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    border-radius: 5px;
}

#carouselCategories{
    position: relative;
    display: flex;
    justify-content: center;
    /* background-color:#fAfAfA; */
}

#carouselCategories img{
    width:380px;
    height:200px;
}

#carouselCategories .carousel-inner{
    width:auto;
    padding: 0 25px;
}

#carouselProductUses .carousel-control-prev,#carouselCategories .carousel-control-prev{
    /* top: 40%; */
    position: absolute;
    bottom: 20px;
    color: white;
    left: 0;
}

#carouselProductUses .carousel-control-next,#carouselCategories .carousel-control-next{
    /* top: 40%; */
    position: absolute;
    right: 0;
    bottom: 20px;
    color: white;
}
@media (width<768px){
    #carouselCategories img {
        width:200px;
        height:160px;
    }
}

#carouselCategories .carousel .carousel-inner {
    height: 98%;
    margin-top: 2%;
}

.products.cms-products{
    margin-top:3rem;
    display:flex;
}

select.form-control:not([size]):not([multiple])
 {
     height: 2.625rem;
 }
.cms-products .product-subtitle,.cms-products .wishlist-button-add{
    display:none;
}

.product-spotlight .sp-banner {
    box-shadow: 0 30px 10px rgb(249 149 85 / 20%);
}

.product-additional-info.js-product-additional-info{
    display:none;
}