/* Boutique, catégories et produits similaires Magot */
body.magot-shop {
  --magot-ink: #2b2b2b;
  --magot-muted: #6b6b6b;
  --magot-line: #dcd8d2;
  --magot-soft: #f5f3f0;
  --magot-accent: #c0592b;
  --magot-accent-dark: #a84a22;
}

/* En-tête de liste */
body.magot-shop .woocommerce-breadcrumb { color: var(--magot-muted); font-size: 14px; }
body.magot-shop .woocommerce-breadcrumb a { color: var(--magot-muted); text-decoration: none; }
body.magot-shop .woocommerce-breadcrumb a:hover { color: var(--magot-accent); }
body.magot-shop .woocommerce-products-header__title,
body.magot-shop h1.page-title { color: var(--magot-ink); font-weight: 600; letter-spacing: -.01em; }
body.magot-shop .woocommerce-result-count { color: var(--magot-muted); font-size: 14px; }
body.magot-shop .woocommerce-ordering select {
  border: 1px solid var(--magot-line); border-radius: 999px; padding: 8px 36px 8px 16px;
  background-color: #fff; color: var(--magot-ink); font-size: 14px;
}
body.magot-shop .woocommerce-ordering select:focus { border-color: var(--magot-ink); outline: none; }

/* Grille */
body.magot-shop ul.products { margin-top: 8px; }
body.magot-shop ul.products li.product {
  display: flex; flex-direction: column; text-align: left;
  background: #fff; border: 1px solid var(--magot-line); border-radius: 10px; overflow: hidden;
  padding: 0 0 18px; transition: box-shadow .2s, border-color .2s;
}
body.magot-shop ul.products li.product:hover { border-color: #cfc9c1; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
body.magot-shop ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--magot-ink); text-decoration: none; }
body.magot-shop ul.products li.product a img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 14px; border-radius: 0;
  background: var(--magot-soft); transition: transform .4s ease;
}
body.magot-shop ul.products li.product:hover a img { transform: scale(1.03); }
body.magot-shop ul.products li.product .woocommerce-loop-product__title {
  padding: 0 18px; margin: 0 0 6px; font-size: 1.05em; font-weight: 600; color: var(--magot-ink); line-height: 1.3;
}
body.magot-shop ul.products li.product .price {
  display: block; padding: 0 18px; margin: 0 0 14px; color: var(--magot-ink); font-size: .95em; font-weight: 400;
}
body.magot-shop ul.products li.product .price del { color: var(--magot-muted); opacity: 1; }
body.magot-shop ul.products li.product .price ins { color: var(--magot-accent); font-weight: 600; text-decoration: none; }
body.magot-shop ul.products li.product .price .magot-loop-m2 { color: var(--magot-muted); font-size: .9em; }
body.magot-shop ul.products li.product .price .magot-loop-prix small { color: var(--magot-muted); font-size: .85em; font-weight: 400; }
body.magot-shop ul.products li.product .price .magot-loop-prix .amount { font-weight: 600; }

/* Bouton de la carte */
body.magot-shop ul.products li.product .button {
  align-self: flex-start; margin: auto 18px 0; padding: 9px 18px; border-radius: 999px;
  background: #fff; color: var(--magot-ink); border: 1px solid var(--magot-line);
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
body.magot-shop ul.products li.product .button:hover,
body.magot-shop ul.products li.product .button:focus { background: var(--magot-accent); border-color: var(--magot-accent); color: #fff; }
body.magot-shop ul.products li.product .button:focus-visible { outline: 2px solid var(--magot-accent); outline-offset: 2px; }
body.magot-shop ul.products li.product .added_to_cart { padding: 8px 18px 0; color: var(--magot-accent); font-size: 14px; }

/* Étiquette promo */
body.magot-shop ul.products li.product .onsale,
body.magot-shop span.onsale {
  min-width: 0; min-height: 0; line-height: 1; padding: 6px 12px; border-radius: 999px;
  background: var(--magot-accent); color: #fff; font-size: 12px; font-weight: 600;
  top: 12px; left: 12px; right: auto; margin: 0;
}

/* Pagination */
body.magot-shop .woocommerce-pagination ul.page-numbers { border: 0; display: inline-flex; gap: 6px; }
body.magot-shop .woocommerce-pagination ul.page-numbers li { border: 0; }
body.magot-shop .woocommerce-pagination ul.page-numbers li .page-numbers {
  min-width: 40px; padding: 10px 12px; border: 1px solid var(--magot-line); border-radius: 999px; color: var(--magot-ink);
}
body.magot-shop .woocommerce-pagination ul.page-numbers li .page-numbers.current,
body.magot-shop .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { background: var(--magot-ink); border-color: var(--magot-ink); color: #fff; }

/* Produits similaires sous la fiche produit */
body.magot-shop .related.products > h2,
body.magot-shop .upsells.products > h2 { font-size: 1.4em; font-weight: 600; color: var(--magot-ink); margin: 40px 0 18px; }

@media (max-width: 768px) {
  body.magot-shop ul.products li.product { padding-bottom: 14px; }
  body.magot-shop ul.products li.product .woocommerce-loop-product__title,
  body.magot-shop ul.products li.product .price { padding: 0 12px; }
  body.magot-shop ul.products li.product .button { margin: auto 12px 0; padding: 8px 14px; font-size: 13px; }
}

/* Pages Elementor (widget Produits) : on prend le pas sur les couleurs du kit Elementor */
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title { color: var(--magot-ink) !important; font-family: inherit; }
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .price,
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .price .amount { color: var(--magot-ink) !important; }
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .price .magot-loop-m2,
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .magot-price-request { color: var(--magot-muted) !important; }
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .button {
  background: #fff !important; color: var(--magot-ink) !important; border: 1px solid var(--magot-line) !important; border-radius: 999px !important; }
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product .button:hover { background: var(--magot-accent) !important; border-color: var(--magot-accent) !important; color: #fff !important; }
body.magot-shop .elementor-widget-woocommerce-products ul.products { gap: 24px; }
body.magot-shop .elementor-widget-woocommerce-products ul.products li.product a img { margin-bottom: 14px !important; }
/* Mobile : en-tête compact sur les pages listes (pas l'accueil) pour voir les premiers produits dès l'arrivée */
@media (max-width: 767px) {
  body.magot-shop:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner { padding-top: 16px !important; padding-bottom: 12px !important; gap: 8px !important; }
  body.magot-shop:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-text-editor p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
  body.magot-shop:not(.home) .mg-cat-chips { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; margin-right: -16px; }
  body.magot-shop:not(.home) .mg-cat-chips::-webkit-scrollbar { display: none; }
  body.magot-shop:not(.home) .mg-cat-chips a { flex: 0 0 auto; white-space: nowrap; }
}
/* Filtres JetSmartFilters */
body.magot-shop .jet-smart-filters-checkboxes .jet-filter-label { font-weight: 600; color: var(--magot-ink); margin-top: 10px; }
body.magot-shop .jet-checkboxes-list__item { color: var(--magot-ink); }
body.magot-shop .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator { background: var(--magot-accent); border-color: var(--magot-accent); }
