/*
 * Custom code goes here.
 * Global ABQF styles only.
 * Hero and info-bar are handled directly inside HTML Box modules.
 */

:root {
  --abqf-primary: #7A1E2C;
  --abqf-primary-dark: #5C1621;
  --abqf-light: #FFFFFF;
  --abqf-soft: #F7F7F7;
  --abqf-white: #FFFFFF;
  --abqf-text: #2B2B2B;
}

/* Fond général */
body,
#wrapper,
#main,
#content-wrapper,
#products,
.page-home,
.page-content,
.card,
.product-miniature,
.block-category,
.tabs,
.modal-content {
  background: var(--abqf-white) !important;
  color: var(--abqf-text);
}

/* Liens */
a,
.btn-link,
.nav-link,
.dropdown-item,
.page-link,
.product-title a,
.product-miniature .product-title a,
.h1, .h2, .h3 {
  color: var(--abqf-primary) !important;
}

a:hover,
.btn-link:hover,
.nav-link:hover,
.dropdown-item:hover,
.page-link:hover,
.product-title a:hover,
.product-miniature .product-title a:hover {
  color: var(--abqf-primary-dark) !important;
}

/* Header général */
#header,
.header-nav,
.header-top {
  background: #ffffff !important;
  border-bottom: 1px solid #ececec;
}

#header a,
#header .header-nav a,
#header .top-menu a,
#header .menu a,
#_desktop_user_info a,
#_desktop_cart a,
#search_widget form input[type="text"] {
  color: var(--abqf-primary) !important;
}

#header a:hover,
#header .header-nav a:hover,
#header .top-menu a:hover,
#header .menu a:hover,
#_desktop_user_info a:hover,
#_desktop_cart a:hover {
  color: var(--abqf-primary-dark) !important;
}

/* Menu principal */
#top-menu > li > a,
.top-menu a[data-depth="0"] {
  color: var(--abqf-primary) !important;
  font-weight: 600;
}

#top-menu > li > a:hover,
.top-menu a[data-depth="0"]:hover {
  color: var(--abqf-primary-dark) !important;
}

/* Recherche */
#search_widget button[type="submit"] {
  background: var(--abqf-primary) !important;
  border-color: var(--abqf-primary) !important;
  color: #fff !important;
}

#search_widget button[type="submit"]:hover {
  background: var(--abqf-primary-dark) !important;
  border-color: var(--abqf-primary-dark) !important;
}

/* Boutons */
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.bootstrap-touchspin .input-group-btn-vertical .btn,
.add-to-cart,
button.continue,
button.btn {
  background: var(--abqf-primary) !important;
  border-color: var(--abqf-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover,
.bootstrap-touchspin .input-group-btn-vertical .btn:hover,
.add-to-cart:hover,
button.continue:hover,
button.btn:hover {
  background: var(--abqf-primary-dark) !important;
  border-color: var(--abqf-primary-dark) !important;
  color: #fff !important;
}

/* Prix */
.price,
.product-price,
.current-price,
.current-price span,
.regular-price,
.discount {
  color: var(--abqf-primary) !important;
  font-weight: 700;
}

/* Badges promo / nouveau */
.product-flags li,
.product-flag,
.product-flags .new,
.product-flags .on-sale,
.product-flags .discount {
  background: var(--abqf-primary) !important;
  color: #fff !important;
}

/* Cartes produits */
.product-miniature,
.card {
  border: 1px solid #ececec;
  box-shadow: none;
}

/* Pagination / onglets actifs */
.page-item.active .page-link,
.pagination .current a,
.nav-tabs .nav-link.active {
  background: var(--abqf-primary) !important;
  border-color: var(--abqf-primary) !important;
  color: #fff !important;
}

/* Footer */
#footer,
.footer-container,
.block_newsletter,
.footer-before {
  background: var(--abqf-primary-dark) !important;
  color: #fff !important;
}

#footer a,
.footer-container a,
.block_newsletter a {
  color: #fff !important;
}

#footer a:hover,
.footer-container a:hover,
.block_newsletter a:hover {
  color: #f0f0f0 !important;
}

/* Bandeau info + utilitaires sur la même ligne */
#header .header-nav {
  background: #8d1f2f !important;
  border-bottom: none !important;
}

#header .header-nav .container {
  max-width: 1200px !important;
  width: 100% !important;
}

/* Colonne gauche : message */
#header .header-nav .left-nav {
  display: flex;
  align-items: center;
}

#header .header-nav .left-nav .abqf-topbar {
  padding: 10px 0 !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left !important;
}

/* On neutralise le wrapper full width dans ce cas */
#header .header-nav .left-nav #abqf-topbar-wrapper {
  width: auto !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Colonne droite : langue / connexion / panier */
#header .header-nav .right-nav,
#header .header-nav .right-nav a,
#header .header-nav .right-nav span,
#header .header-nav .right-nav .expand-more {
  color: #ffffff !important;
  font-weight: 500;
}

/* Hover discret */
#header .header-nav .right-nav a:hover,
#header .header-nav .right-nav .expand-more:hover {
  color: rgba(255,255,255,0.8) !important;
}

/* Icônes */
#header .header-nav .material-icons,
#header .header-nav i {
  color: #ffffff !important;
}

/* Panier : on enlève le bleu agressif */
#_desktop_cart .blockcart,
#_desktop_cart .header,
#_desktop_cart .header a {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Hover panier */
#_desktop_cart .blockcart:hover,
#_desktop_cart .header:hover,
#_desktop_cart .header a:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}

/* Petits espacements plus propres */
#_desktop_language_selector,
#_desktop_user_info,
#_desktop_cart {
  margin-left: 18px;
}
/* on supprime le logo Prestashop du header */
#_desktop_logo {
  display: none !important;
}

/* zone principale sous la barre info */
#header .header-top {
  background: #ffffff !important;
  padding: 26px 0;
  border-bottom: 1px solid #ececec;
}

#header .header-top > .container {
  max-width: 1200px;
}

/* meilleur alignement vertical */
#header .header-top .row {
  align-items: center;
}

/* menu principal plus propre */
#top-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

#top-menu > li {
  margin: 0 !important;
}

#top-menu > li > a,
.top-menu a[data-depth="0"] {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: #7A1E2C !important;
}

/* hover menu */
#top-menu > li > a:hover,
.top-menu a[data-depth="0"]:hover {
  color: #5C1621 !important;
}

/* recherche plus élégante */
#search_widget {
  display: flex;
  justify-content: flex-end;
}

#search_widget form {
  width: 190px;
}

#search_widget form input[type="text"] {
  height: 36px !important;
  padding: 6px 12px 6px 34px !important;
  font-size: 0.9rem;
  border-radius: 6px !important;
  background: #f6f2f2 !important;
  border: 1px solid #e2dcdc !important;
}

#search_widget form button[type="submit"] {
  background: transparent !important;
  border: none !important;
  color: #7A1E2C !important;
}
#search_widget {
  transform: translateY(-1px);
}
/* ===== Étape 3 : titres de sections ===== */
.h1,
.h2,
.h3,
.block-category .h1,
.products-section-title,
.section-title,
h2.products-section-title {
  color: #7A1E2C !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Titre "Produits populaires" */
.featured-products .h2,
.featured-products h2,
.products-section-title {
  text-align: center;
  margin-bottom: 28px;
  font-size: 2rem;
}

/* ===== Étape 4 : cartes produits ===== */
.product-miniature {
  background: #f3eeee !important;
  border: 1px solid #ece7e7 !important;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: none !important;
}

.product-miniature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(91, 21, 32, 0.08) !important;
}

/* image produit plus propre */
.product-miniature .thumbnail-container,
.product-miniature .product-thumbnail {
  background: #ffffff !important;
}

/* contenu carte */
.product-miniature .product-description {
  padding: 14px 16px 18px;
  text-align: center;
}

/* nom produit */
.product-miniature .product-title,
.product-miniature .product-title a {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #7A1E2C !important;
}

/* prix */
.product-miniature .price,
.product-miniature .product-price-and-shipping {
  margin-top: 8px;
}

.product-miniature .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #7A1E2C !important;
}

/* coeur / wishlist plus discret */
.product-miniature .highlighted-informations,
.product-miniature .wishlist-button-add,
.product-miniature .btn-product {
  box-shadow: none !important;
}

/* badge promo plus propre */
.product-flags {
  top: 12px !important;
  left: 12px !important;
}

.product-flags li {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* plus d'air entre les cartes */
.products .product,
.featured-products .product {
  margin-bottom: 26px;
}
/* ===== Adoucir tous les blancs trop agressifs ===== */

/* fond général du catalogue */
body,
#wrapper,
#main,
#content-wrapper,
.page-home,
.page-content,
#products {
  background: #faf7f7 !important;
}

/* bandeau blanc menu/recherche */
#header .header-top {
  background: #f7f2f2 !important;
}

/* cartes produits */
.product-miniature {
  background: #f3eeee !important;
  border: 1px solid #e7dddd !important;
  border-radius: 12px;
}

/* zone image dans la carte */
.product-miniature .thumbnail-container,
.product-miniature .product-thumbnail {
  background: #f8f4f4 !important;
}

/* zone texte sous le produit */
.product-miniature .product-description {
  background: #efe8e8 !important;
}

/* titres de sections */
.featured-products,
.products,
section.featured-products {
  background: #faf7f7 !important;
}

/* recherche un peu moins blanche */
#search_widget form input[type="text"] {
  background: #efe8e8 !important;
  border: 1px solid #ddd1d1 !important;
}

/* petites cartes / blocs généraux */
.card,
.block-category,
.tabs,
.modal-content {
  background: #f3eeee !important;
}
/* ===== Étape suivante : footer plus propre ===== */

/* fond général footer */
#footer,
.footer-container,
.block_newsletter,
.footer-before {
  background: #5b1520 !important;
  color: rgba(255,255,255,0.92) !important;
  border: none !important;
}

/* espace global */
.footer-container {
  padding-top: 38px !important;
  padding-bottom: 28px !important;
}

/* titres colonnes */
#footer .h3,
#footer h3,
.footer-container .h3,
.footer-container h3,
.block_newsletter h3 {
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

/* liens footer */
#footer a,
.footer-container a,
.block_newsletter a {
  color: rgba(255,255,255,0.88) !important;
  text-decoration: none;
}

#footer a:hover,
.footer-container a:hover,
.block_newsletter a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* texte secondaire */
#footer p,
#footer li,
.footer-container p,
.footer-container li,
.block_newsletter p {
  color: rgba(255,255,255,0.78) !important;
  line-height: 1.7;
}

/* listes plus aérées */
#footer ul,
.footer-container ul {
  padding-left: 0;
  list-style: none;
}

#footer li,
.footer-container li {
  margin-bottom: 6px;
}

/* newsletter */
.block_newsletter form input[type="email"] {
  background: rgba(255,255,255,0.96) !important;
  border: none !important;
  border-radius: 8px 0 0 8px !important;
  color: #2b2b2b !important;
  height: 44px !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
}

.block_newsletter form button[type="submit"] {
  background: #7A1E2C !important;
  border: none !important;
  color: #fff !important;
  border-radius: 0 8px 8px 0 !important;
  height: 44px !important;
  font-weight: 700;
  padding: 0 18px !important;
}

.block_newsletter form button[type="submit"]:hover {
  background: #8d1f2f !important;
}

/* description newsletter */
.block_newsletter .newsletter-text,
.block_newsletter .conditions {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.92rem;
}

/* réseaux sociaux */
.block-social ul li,
.social-sharing li {
  margin-right: 8px !important;
}

.block-social ul li a,
.social-sharing li a {
  background: rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.block-social ul li a:hover,
.social-sharing li a:hover {
  background: rgba(255,255,255,0.2) !important;
}

/* ligne copyright */
.footer-after,
.footer-container .copyright,
#footer .copyright {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.92rem;
  text-align: center;
  margin-top: 18px;
}

/* petit nettoyage des blocs */
#footer .block-contact,
#footer .links,
#footer .blockcms {
  margin-bottom: 12px;
}
.footer-container {
  display: none !important;
}