/* =================================================
   Maison Drabiec — custom.css (UX boost 2026-05-08)
   Chargé apre̒s theme.css via mdseoboost displayHeader
   ================================================= */

/* === STICKY HEADER DESKTOP === */
@media (min-width: 992px) {
  .header,
  header.header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow .2s ease;
  }
}

/* === STICKY CTA MOBILE on FICHE PRODUIT ===
   Bandeau fixe en bas mobile avec bouton Ajouter au panier
   Clone le bouton via JS, mais en CSS-only on cache/affiche selon scroll */
@media (max-width: 991px) {
  .product__add-to-cart-container .product-add-to-cart .add-to-cart {
    /* Garder version normale aussi */
  }

  /* Container sticky bottom pour fiche produit */
  body.page-product .md-mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.10);
    padding: 12px 16px;
    z-index: 1019;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e5e5e5;
  }

  body.page-product .md-mobile-sticky-cta .md-sticky-price {
    font-size: 1.15em;
    font-weight: 700;
    color: #2c2c2c;
    flex: 0 0 auto;
  }

  body.page-product .md-mobile-sticky-cta .md-sticky-add {
    flex: 1 1 auto;
    background: #2c2c2c;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
  }

  body.page-product .md-mobile-sticky-cta .md-sticky-add:hover,
  body.page-product .md-mobile-sticky-cta .md-sticky-add:focus {
    background: #b18b3f;
  }

  /* Marge bas du body pour eviter masquage contenu */
  body.page-product {
    padding-bottom: 80px;
  }
}

/* === MOBILE MENU BURGER PLUS VISIBLE === */
@media (max-width: 991px) {
  button.navbar-toggler,
  .header__nav-toggle,
  .js-mobile-nav-toggle {
    background: #2c2c2c !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 12px;
  }

  button.navbar-toggler .material-icons,
  .header__nav-toggle .material-icons {
    color: #fff !important;
  }
}

/* === SEARCH BAR PLUS VISIBLE (desktop) === */
@media (min-width: 992px) {
  .header .header__search input[type="text"],
  .header .search-widget input[type="text"] {
    border: 1.5px solid #b18b3f;
    border-radius: 4px;
  }

  .header .header__search input::placeholder {
    color: #888;
  }
}

/* === CTA AJOUTER AU PANIER (desktop) plus visible === */
.product__add-to-cart-container .add-to-cart,
.product-add-to-cart .add-to-cart,
button.add-to-cart,
.btn.add-to-cart {
  background: #2c2c2c !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 1.05em !important;
  padding: 14px 28px !important;
  border-radius: 4px !important;
  transition: background .15s ease;
}

.product__add-to-cart-container .add-to-cart:hover,
.product-add-to-cart .add-to-cart:hover,
button.add-to-cart:hover,
.btn.add-to-cart:hover {
  background: #b18b3f !important;
}

/* === AVERTISSEMENT ENFANTS HERO PRODUIT === */
.md-product-warning {
  background: #fff7e6;
  border-left: 4px solid #ff9900;
  padding: 10px 14px;
  margin: 0 0 16px 0;
  font-size: 0.92em;
  border-radius: 4px;
  color: #663c00;
}

.md-product-warning strong {
  color: #cc7a00;
}

/* === FOOTER trust signals plus visibles === */
@media (min-width: 992px) {
  footer.footer .footer__container {
    padding-top: 32px;
  }
}

/* === Reassurance tiles plus contrast === */
.reassurance__container .reassurance__item {
  padding: 16px 12px;
}

.reassurance__title {
  font-weight: 700;
  font-size: 0.95em;
}

.reassurance__description {
  font-size: 0.85em;
  color: #555;
}

/* === Cart : add some breathing space === */
@media (max-width: 768px) {
  .cart-grid__products,
  .cart-grid__aside {
    padding: 12px;
  }

  .cart-summary {
    padding: 16px;
  }
}

/* === Lien "Continuer mes achats" plus visible === */
.cart__continue-shopping,
.btn-continue-shopping {
  border: 2px solid #2c2c2c;
  color: #2c2c2c;
  font-weight: 600;
}
