/* Auxine Reco : styles repris des designs Clerk du site (ex-CSS servi par Clerk) + cartes .aux-vitrine__*.
   Les règles .aux-vitrine__* existent aussi dans le CSS additionnel du thème : elles sont identiques,
   le doublon est volontaire pour que le plugin reste autonome. */

/* ===== Cartes vitrine ===== */
.aux-reco .aux-vitrine__item { display: flex; flex-direction: column; position: relative; margin: 0; padding: 0; }
.aux-reco .aux-vitrine__media { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #f6f7f5; }
.aux-reco .aux-vitrine__media img { width: 100%; height: 100%; object-fit: contain; display: block; color: transparent; }
.aux-reco .aux-vitrine__badge { position: absolute; top: 10px; left: 10px; background: #f59f0c; color: #111; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: 3px; }
.aux-reco .aux-vitrine__tag { position: absolute; top: 38px; left: 10px; background: #eeee22; color: #111; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 3px; }
.aux-reco .aux-vitrine__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.35em); margin: 12px 0 0; font-size: 14px; line-height: 1.35; font-weight: 600; color: #222; text-decoration: none; }
.aux-reco .aux-vitrine__title:hover { color: #1d7c28; }
.aux-reco .aux-vitrine__rating { line-height: 1; margin: 6px 0 0; }
.aux-reco .clerk-star { font-size: 12px; color: #ccc; }
.aux-reco .clerk-star-full { color: #ee9e13; }
.aux-reco .aux-vitrine__price { margin: auto 0 0; font-size: 15px; font-weight: 600; color: #111; }
.aux-reco .aux-vitrine__price del { font-weight: 400; font-size: 13px; color: #8a8f88; margin-right: 6px; }
.aux-reco .aux-vitrine__price ins { text-decoration: none; color: #c47a00; font-weight: 600; }
.aux-reco .aux-vitrine__item .aux-vitrine__btn { display: block; width: 100%; margin-top: 12px; height: 40px; line-height: 38px; padding: 0; text-align: center; font-family: inherit; font-size: 14px; font-weight: 600; color: #1d7c28; background: #fff; border: 1px solid #1d7c28; border-radius: 4px; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.aux-reco .aux-vitrine__item .aux-vitrine__btn:hover { background: #1d7c28; color: #fff; }
.aux-reco .aux-vitrine__item .aux-vitrine__btn.loading { color: transparent !important; opacity: 1; position: relative; }
.aux-reco .aux-vitrine__item .aux-vitrine__btn.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(29, 124, 40, .25); border-left-color: #1d7c28; border-radius: 50%; animation: aux-reco-spin .45s linear infinite; }
.aux-reco .aux-vitrine__item .aux-vitrine__btn.added { background: #1d7c28; color: #fff; }
.aux-reco .aux-vitrine__item .added_to_cart { display: none; }
@keyframes aux-reco-spin { to { transform: rotate(360deg); } }

/* ===== Accueil / panier : .clerk-wrapper + grille-carrousel ===== */
.aux-reco--vitrine { display: block; width: 100%; }
.aux-reco .clerk-wrapper .clerk-headline { font-size: 30px; font-weight: 700; color: #111; text-align: center; margin: 0 0 28px; line-height: 1.2; font-family: Inter, sans-serif; }
.aux-reco .aux-grid-viewport { position: relative; }
.aux-reco .aux-grid-track { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -12px; }
.aux-reco .aux-grid-track::-webkit-scrollbar { display: none; }
.aux-reco .clerk-slider-item { flex: 0 0 25%; max-width: 25%; padding: 0 12px; box-sizing: border-box; scroll-snap-align: start; display: flex; }
.aux-reco .clerk-slider-item .aux-vitrine__item { width: 100%; }
.aux-reco .aux-grid-arrow { position: absolute; top: calc(50% - 40px); width: 36px; height: 36px; border: 1px solid #d0d4cf; border-radius: 50%; background: #fff; color: #111; font-size: 22px; line-height: 34px; text-align: center; cursor: pointer; padding: 0; z-index: 5; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.aux-reco .aux-grid-prev { left: -18px; }
.aux-reco .aux-grid-next { right: -18px; }
.aux-reco-cart { margin: 40px 0 16px; }
.aux-panier-vide__clerk .aux-reco { margin: 56px 0 24px; }
@media (max-width: 992px) {
  .aux-reco .clerk-wrapper .clerk-headline { font-size: 24px; margin-bottom: 20px; }
  .aux-reco .clerk-slider-item { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
  .aux-reco .aux-grid-track { margin: 0 -8px; }
  .aux-reco .aux-grid-arrow { width: 30px; height: 30px; line-height: 28px; font-size: 20px; top: calc(50% - 50px); }
  .aux-reco .aux-grid-prev { left: 0; }
  .aux-reco .aux-grid-next { right: 0; }
}

/* ===== Fiche produit : .aux-pp ===== */
.aux-reco--pp { display: block; width: 100%; }
.aux-reco .aux-pp { max-width: 1254px; margin: 48px auto 40px; padding: 0 27px; box-sizing: border-box; font-family: Inter, sans-serif; }
.aux-reco .aux-pp__title { font-size: 26px; font-weight: 700; color: #111; text-align: left; margin: 0 0 22px; line-height: 1.2; }
.aux-reco .aux-pp__viewport { position: relative; }
.aux-reco .aux-pp__track { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -12px; }
.aux-reco .aux-pp__track::-webkit-scrollbar { display: none; }
.aux-reco .aux-pp__item { flex: 0 0 25%; max-width: 25%; padding: 0 12px; box-sizing: border-box; scroll-snap-align: start; display: flex; }
.aux-reco .aux-pp__item .aux-vitrine__item { width: 100%; }
.aux-reco .aux-pp__arrow { position: absolute; top: calc(50% - 40px); width: 36px; height: 36px; border: 1px solid #d0d4cf; border-radius: 50%; background: #fff; color: #111; font-size: 22px; line-height: 34px; text-align: center; cursor: pointer; padding: 0; z-index: 5; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.aux-reco .aux-pp__prev { left: -18px; }
.aux-reco .aux-pp__next { right: -18px; }
@media (max-width: 992px) {
  .aux-reco .aux-pp { padding: 0 15px; margin: 36px 0 28px; }
  .aux-reco .aux-pp__title { font-size: 22px; margin-bottom: 16px; }
  .aux-reco .aux-pp__item { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
  .aux-reco .aux-pp__track { margin: 0 -8px; }
  .aux-reco .aux-pp__arrow { width: 30px; height: 30px; line-height: 28px; font-size: 20px; top: calc(50% - 50px); }
  .aux-reco .aux-pp__prev { left: 0; }
  .aux-reco .aux-pp__next { right: 0; }
}

/* ===== Mini-panier : .clerk-mc ===== */
.aux-reco--mc { display: block; width: 100%; }
.shoptimizer-mini-cart-wrap .widget_shopping_cart_content > .aux-reco-minicart { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6e8e4; min-height: 153px; }
.shoptimizer-mini-cart-wrap .aux-reco-minicart--empty { display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid #e6e8e4; text-align: left; }
.aux-reco .clerk-mc { font-family: Inter, sans-serif; padding: 6px 0 4px; }
.aux-reco .clerk-mc .clerk-mc-headline { font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #222; text-align: left; margin: 0 0 10px; line-height: 1.35; }
.aux-reco .clerk-mc-viewport { position: relative; padding: 0 30px; }
.aux-reco .clerk-mc-track { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.aux-reco .clerk-mc-track::-webkit-scrollbar { display: none; }
.aux-reco .clerk-mc-slide { flex: 0 0 100%; max-width: 100%; scroll-snap-align: start; }
.aux-reco .clerk-mc-card { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; background: #fff; }
.aux-reco .clerk-mc-media { flex: 0 0 72px; width: 72px; display: flex; flex-direction: column; align-items: center; }
.aux-reco .clerk-mc-imglink { position: relative; width: 72px; display: block; }
.aux-reco .clerk-mc-img { width: 72px; height: 72px; object-fit: contain; display: block; border-radius: 6px; background: #f6f7f5; }
.aux-reco .clerk-mc-badge { position: absolute; top: 4px; left: 4px; background: #f59f0c; color: #111; font-size: 11px; font-weight: 600; padding: 2px 5px; border-radius: 3px; line-height: 14px; z-index: 1; }
.aux-reco .clerk-mc-rating { display: inline-flex; line-height: 1; margin: 6px 0 0; }
.aux-reco .clerk-mc-star { color: #ccc; font-size: 12px; }
.aux-reco .clerk-mc-star.on { color: #ee9e13; }
.aux-reco .clerk-mc-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; height: 106px; }
.aux-reco .clerk-mc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; font-weight: 600; color: #222; text-decoration: none; height: 37px; margin: 0 0 4px; }
.aux-reco .clerk-mc-title:hover { color: #222; }
.aux-reco .clerk-mc-price { display: block; font-size: 15px; font-weight: 600; color: #111; margin: 0; line-height: 1.3; }
.aux-reco .clerk-mc-from { color: #555; font-weight: 400; font-size: 13px; }
.aux-reco .clerk-mc-old { color: #8a8f88; font-weight: 400; font-size: 13px; text-decoration: line-through; margin-right: 6px; }
.aux-reco .clerk-mc-new { color: #1d7c28; font-weight: 600; text-decoration: none; }
.aux-reco .clerk-mc-btn { display: block; width: 100%; box-sizing: border-box; position: relative; margin-top: auto; flex: 0 0 36px; background: #fff; color: #1d7c28; border: 1px solid #1d7c28; border-radius: 4px; height: 36px; line-height: 34px; font-size: 13px; font-weight: 600; font-family: inherit; padding: 0 12px; cursor: pointer; text-align: center; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
@media (hover: hover) and (pointer: fine) { .aux-reco .clerk-mc-btn:hover { background: #1d7c28; color: #fff; } }
.aux-reco .clerk-mc-btn.loading { color: transparent !important; pointer-events: none; }
.aux-reco .clerk-mc-btn.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(29, 124, 40, .25); border-left-color: #1d7c28; border-radius: 50%; animation: aux-reco-spin .6s linear infinite; }
.aux-reco .clerk-mc-btn.added { background: #1d7c28; color: #fff; }
.aux-reco .clerk-mc-info .added_to_cart { display: none; }
.aux-reco .clerk-mc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); color: #111; font-size: 20px; line-height: 28px; text-align: center; cursor: pointer; z-index: 6; padding: 0; }
.aux-reco .clerk-mc-prev { left: 0; }
.aux-reco .clerk-mc-next { right: 0; }

/* Clones de boucle : hors lecture d'écran, mêmes dimensions */
.aux-reco [data-aux-clone] { pointer-events: auto; }

/* Garde-fous contre les styles globaux du thème (boutons .button, liens, ins/del) */
.aux-reco a.aux-vitrine__btn, .aux-reco a.clerk-mc-btn { text-transform: none; letter-spacing: 0; box-shadow: none; }
.aux-reco a.clerk-mc-btn { font-size: 13px; line-height: 34px; padding: 0 12px; height: 36px; }
.aux-reco a.aux-vitrine__btn { font-size: 14px; line-height: 38px; padding: 0; height: 40px; }
.aux-reco .added_to_cart { display: none !important; }
.aux-reco ins { background: none; text-decoration: none; }
.aux-reco del { text-decoration: line-through; }
