/* ============================================================
   CAROUSEL PRODUITS AMAZON — [yoyo_amazon]
   Réutilise les variables déjà définies dans main.css (--amazon, --dark, --border, --white, --muted, --xmuted)
   ============================================================ */

.yoyo-az-block { margin: 32px 0; }

.yoyo-az-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark, #1f2124);
  margin-bottom: 16px;
}

.yoyo-az-wrap { position: relative; }

.yoyo-az-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.yoyo-az-track::-webkit-scrollbar { display: none; }

.yoyo-az-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border, #ebebeb);
  border-radius: 14px;
  padding: 20px 18px 18px;
  background: var(--white, #fff);
  transition: box-shadow .2s, transform .2s;
}
.yoyo-az-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); transform: translateY(-3px); }

.yoyo-az-imgwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  margin-bottom: 14px;
}
.yoyo-az-imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

.yoyo-az-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark, #1f2124);
  line-height: 1.35;
  text-decoration: none;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yoyo-az-name:hover { text-decoration: underline; }

.yoyo-az-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.yoyo-az-merchant {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #69727d);
  flex: 1 0 auto;
}

.yoyo-az-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark, #1f2124);
}

.yoyo-az-cta {
  background: var(--amazon, #ff9900);
  color: #111;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  width: 100%;
  text-align: center;
}
.yoyo-az-cta:hover { background: #e88800; color: #111; text-decoration: none; }

.yoyo-az-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff4d6;
  color: var(--dark, #1f2124);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  z-index: 2;
}
.yoyo-az-arrow:hover { background: var(--amazon, #ff9900); color: #111; }
.yoyo-az-prev { left: -18px; }
.yoyo-az-next { right: -18px; }

.yoyo-az-disclosure {
  font-size: 11px;
  color: var(--xmuted, #9ca3af);
  margin-top: 10px;
}

@media (max-width: 640px) {
  .yoyo-az-arrow { display: none; }
  .yoyo-az-card { flex-basis: 220px; }
}
