/* Cartes produit « place de marché » (reproduit la présentation d'Alibaba) — chargé sur TOUTES les pages, après les autres feuilles.
   Carte blanche arrondie, photo encadrée (marge blanche + coins arrondis), nom sur 2 lignes, prix très gras, ligne grise
   (« En stock »), petit bouton rond « panier » posé sur la photo, en bas à gauche. */
.product-card { padding: 0.65rem; border: 0; border-radius: 14px; box-shadow: none; background: #fff; overflow: visible; }
.product-card:hover, .product-card:focus-within { transform: none; box-shadow: 0 8px 22px rgba(15, 30, 80, 0.13); }
.product-card__media { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #f5f5f5; }
.product-card:hover .product-card__media-img, .product-card:focus-within .product-card__media-img { transform: none; }
.product-card__body { gap: 0.2rem; padding: 0.7rem 0.15rem 0.1rem; position: static; }
.product-card__category { display: none; }
.product-card__name {
  font-size: 0.9rem; font-weight: 400; line-height: 1.35; color: var(--color-ink);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.35em);
}
.product-card__price-row { padding: 0; margin-top: 0.3rem; }
.product-card__price { font-family: var(--font-body); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.product-card__price-old { font-size: 0.78rem; }
.product-card__stock { display: block; padding: 0; font-size: 0.8rem; color: var(--color-ink-soft); }
.product-card__stock--out { color: #c0392b; }
/* Bouton panier : rond blanc sur la photo, en bas à gauche */
.product-card__add {
  position: absolute; left: 0.6rem; bottom: 0.6rem; z-index: 3; margin: 0; width: 38px; height: 38px; min-width: 0; padding: 0;
  border-radius: 50%; font-size: 0; line-height: 0; overflow: hidden; border: 0;
  background-color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  background-repeat: no-repeat; background-position: center; background-size: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.4'/><circle cx='18' cy='20' r='1.4'/><path d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h8.1a2 2 0 0 0 2-1.5L21.5 8H6'/></svg>");
}
.product-card__add:hover { background-color: var(--color-orange-primary); }
.product-card__add.is-added { background-color: #d9f2e1; }
.product-card__add[disabled] { background-image: none; background-color: #ddd; box-shadow: none; }
@media (min-width: 721px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}
@media (max-width: 720px) {
  .product-card { padding: 0.45rem; border-radius: 12px; }
  .product-card__name { font-size: 0.82rem; }
  .product-card__price { font-size: 1.02rem; white-space: nowrap; }
  .product-card__stock { font-size: 0.74rem; }
  .product-card__add { width: 34px; height: 34px; left: 0.45rem; bottom: 0.45rem; }
  .cart-hint { top: auto !important; height: auto !important; }
  .cart-hint::before { display: none; }
}

/* ==========================================================================
   Fiche produit « place de marché » (inspirée d'Alibaba) : galerie (miniatures verticales + grande photo) | infos | panneau d'achat
   ========================================================================== */
@media (min-width: 981px) {
  .product-detail--market {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 300px;
    gap: 1.25rem; align-items: start; padding-block: 0.5rem 2rem;
  }
}
.product-detail--market .product-gallery {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0.75rem; align-items: start;
  background: #fff; border-radius: 14px; padding: 1rem;
}
.product-detail--market .product-gallery__thumbs { display: flex; flex-direction: column; gap: 0.6rem; grid-column: 1; grid-row: 1; }
.product-detail--market .product-gallery__thumb { width: 100%; border-radius: 10px; border-width: 2px; background: #f5f5f5; }
.product-detail--market .product-gallery__main { grid-column: 2; grid-row: 1; margin: 0; border-radius: 12px; background: #f5f5f5; }
.product-detail--market .product-gallery__video { grid-column: 1 / -1; grid-row: 2; }

.product-detail--market .product-info-col, .product-detail--market .product-buy {
  background: #fff; border-radius: 14px; padding: 1.25rem 1.4rem;
}
.product-detail--market .product-info__category { display: none; }
.product-detail--market .product-info__name {
  font-family: var(--font-body); font-size: 1.4rem; font-weight: 600; line-height: 1.3; color: var(--color-ink); margin: 0 0 0.6rem;
}
.product-info__pricebox { border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; padding: 1rem 0; margin: 0.9rem 0; }
.product-detail--market .product-info__price-row { margin: 0; }
.product-detail--market .product-info__price { font-family: var(--font-body); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.product-info__moq { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--color-ink-soft); }
.product-detail--market .product-info__stock { font-size: 0.95rem; color: var(--color-ink-soft); }

.product-buy__title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--color-ink); margin: 0 0 0.5rem; }
.product-buy__text { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--color-ink-soft); }
.product-buy__sep { height: 1px; background: #e8e8e8; margin: 1rem 0; }
.product-buy .product-info__trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.product-buy .product-info__trust-item { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.92rem; color: var(--color-ink); }
.product-buy__pay { display: inline-flex; gap: 0.4rem; margin-left: 0.25rem; }
.product-buy__pay img { height: 18px; width: auto; border-radius: 3px; }
.product-buy .product-info__actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.product-buy .product-info__add { width: 100%; justify-content: center; border-radius: 999px; padding: 0.85rem 1rem; font-size: 1rem; font-weight: 700; }
.product-buy__chat {
  display: flex; width: 100%; justify-content: center; margin-top: 0.7rem; border-radius: 999px; padding: 0.8rem 1rem;
  background: #fff; color: #111; border: 1.5px solid #222; font-weight: 700; text-decoration: none;
}
.product-buy__chat:hover { background: #f3f3f3; }
@media (min-width: 981px) {
  .product-detail--market .product-buy { position: sticky; top: 96px; }
}
@media (max-width: 980px) {
  .product-detail--market { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
  .product-detail--market .product-gallery { grid-template-columns: 1fr; }
  .product-detail--market .product-gallery__thumbs { flex-direction: row; grid-column: 1; grid-row: 2; }
  .product-detail--market .product-gallery__thumb { width: 64px; flex: none; }
  .product-detail--market .product-gallery__main { grid-column: 1; grid-row: 1; }
  .product-detail--market .product-info__name { font-size: 1.15rem; }
  .product-detail--market .product-info__price { font-size: 1.6rem; }
}

/* Petites corrections */
/* Menu des catégories : chaque entrée sur UNE ligne (« Made in Cameroun » et « Maison & Bureaux » passaient sur deux lignes, hauteurs inégales). */
.main-nav__list { flex-wrap: wrap; row-gap: 0; }
.main-nav__link { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1500px) {
  .main-nav__list { column-gap: 0.15rem; }
  .main-nav__link { padding-inline: 0.55rem; font-size: 0.88rem; }
}
/* Entrée « Produits Agrovision » du menu mobile : ancien style en ligne (bloqué par la politique de sécurité), désormais ici. */
[data-local-nav] > .mobile-nav__link { display: block; padding: 0.9rem 1rem; font-weight: 700; }
@media (min-width: 981px) and (max-width: 1320px) {
  .main-nav__link { padding-inline: 0.4rem; font-size: 0.82rem; }
}
