/* =========================================================
   PN — Bloc produits en bas d’article
   ========================================================= */

.pn-article-shop-bottom {
  --pn-brand: #759739;
  --pn-radius: 0px;

  background: linear-gradient(
    to bottom,
    #dce3cf 0%,
    #eff1ec 48%,
    #dce3cf 70%,
    #eff1ec 100%
  );

  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  padding: clamp(16px, 2vw, 20px) 0;
  margin: clamp(28px, 3vw, 40px) auto 0;
  width: 100%;
  border-radius: var(--pn-radius);
}

/* Contrainte largeur */
.pn-article-shop-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}

/* Titre principal */
.pn-article-shop-heading {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  margin: 8px 0 .35rem 0;
  color: var(--pn-brand);
  text-align: center;
}

/* Groupes */
.pn-shop-group {
  margin-top: clamp(14px, 2vw, 18px);
}

.pn-shop-group-title h3 {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  margin: 0 0 .6rem 0;
}

.pn-shop-group-title {
  position: relative;
  text-align: center;
  text-transform: uppercase;
  color: #3a3a3a;
  font-weight: 700;
  margin: 18px 0;
  padding: 10px 0;
}

.pn-shop-group-title a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.pn-shop-group-title a:hover {
  border-color: var(--pn-brand);
}

/* Séparateurs */
.pn-shop-group-title::before,
.pn-shop-group-title::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60px;
  height: 1px;
  background: #ccc;
  transform: translateX(-50%);
}

.pn-shop-group-title::before {
  top: 0;
}

.pn-shop-group-title::after {
  bottom: 0;
}

/* Scroll horizontal */
.pn-shop-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 180px);
  gap: clamp(12px, 2vw, 16px);
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: var(--pn-brand) #f0f0f0;
}

.pn-shop-scroll:focus {
  outline: 2px solid var(--pn-brand);
  outline-offset: 2px;
}

/* Scrollbar WebKit */
.pn-shop-scroll::-webkit-scrollbar {
  height: 8px;
}

.pn-shop-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 999px;
}

.pn-shop-scroll::-webkit-scrollbar-thumb {
  background: var(--pn-brand);
  border-radius: 999px;
  transition: background-color .2s ease;
}

.pn-shop-scroll::-webkit-scrollbar-thumb:hover {
  background: #5e7c2f;
}

/* =========================================================
   Cartes produits
   ========================================================= */

.pn-shop-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  scroll-snap-align: start;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-width: 0;
}

.pn-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
  border-color: #e4e4e4;
}

/* Image */
.pn-shop-thumb {
  width: 100%;
  height: auto;
  display: block;
}

/* Titre */
.pn-shop-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Espace si YARPP avant */
.pn-yarpp + .pn-article-shop-bottom {
  margin-top: clamp(20px, 2.5vw, 28px);
}

/* Sécurité typographique */
.pn-article-shop-bottom a {
  color: inherit;
}

.pn-article-shop-bottom img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   Bouton voir tous
   ========================================================= */

.pn-shop-seeall {
  text-align: center;
  margin: 20px 0 0;
}

.pn-shop-btn-all {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: #759739;
  color: #fff !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.pn-shop-btn-all:hover,
.pn-shop-btn-all:focus {
  background: #5e7d2f;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.pn-shop-btn-all:focus-visible {
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Mobile */
@media (max-width: 480px) {
  .pn-shop-scroll {
    grid-auto-columns: minmax(58vw, 72vw);
  }
}

/* Intermédiaire */
@media (min-width: 922px) and (max-width: 1310px) {
  .pn-article-shop-inner {
    max-width: none;
    width: 92vw;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 2vw, 24px);
    padding-right: clamp(16px, 2vw, 24px);
  }

  .pn-shop-scroll {
    grid-auto-columns: minmax(200px, 22vw);
    gap: clamp(10px, 1.6vw, 16px);
  }
}

/* Grand écran */
@media (min-width: 1200px) {
  .pn-shop-scroll {
    grid-auto-columns: minmax(160px, 200px);
  }
}

/* Très large */
@media (min-width: 1400px) {
  .pn-article-shop-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}