.item-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.item-actions .btn {
  background: transparent;
  color: #aaa;
  border: none;
  font-size: 1rem;
  width: 22px;
  height: 22px;
}

.quantity-badge {
  font-size: 1.3rem;
  color: #fff;
  min-width: 30px;
}

/* 🔢 Badge de quantité responsif */
.item-quantity {
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1vw, 10px);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.fancy-btn {
  --translate-offset: -10%;
  transform: translateY(var(--translate-offset));
  backdrop-filter: blur(8px);
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  /* ⬅️ subtle corners */
  color: #fff;
  bottom: 0 !important;
  width: 48%;
  height: 100%;
  z-index: 1;
  padding: 0;
  overflow: visible;
  position: absolute;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  /* iOS tap highlight */
}

.fancy-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.fancy-btn:active {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}


.btn-label {
  font-size: 0.65rem;
  padding: 1px 2px;
  color: #fff;
  z-index: 2;
}

@media (min-width: 768px) {
  .fancy-btn {
    --translate-offset: -10%;
    transform: translateY(var(--translate-offset));
    backdrop-filter: blur(8px);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* ⬅️ subtle corners */
    width: 48%;
    height: 100%;
    /* desktop = léger dépassement */
    --translate-offset: -5%;
    border-radius: 4px;
    bottom: 0 !important;
    z-index: 1;
    padding: 0;
    overflow: visible;
    position: absolute;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-label {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
}


@keyframes slide-out-right {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(60px);
  }
}

@keyframes slide-in-from-right-to-center {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-out-right {
  animation: slide-out-right 0.2s ease forwards;
}

.slide-in-from-right {
  animation: slide-in-from-right-to-center 0.3s ease forwards;
}

.btn-page {
  min-width: 40px;
  text-align: center;
}

.zebradex-pagination {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
  gap: 0.25rem;
  padding-bottom: 0.25rem;
}

.zebradex-pagination .btn-page {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  min-width: 2.2rem;
  text-align: center;
  white-space: nowrap;
  border: 1px solid white;
  background-color: black;
  color: white;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.zebradex-pagination .btn-page.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.zebradex-pagination .btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.card-missing {
  filter: grayscale(95%);
}


/* 📱 Responsive mobile */
@media (max-width: 480px) {
  .item-price {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}

/* ❤️🔁 Boutons overlay wishlist / tradelist (Glass & Scale) */
.zbd-overlay-btn,
.overlay-action-btn {
  position: absolute;
  bottom: 4%;
  z-index: 10;

  /* 📏 SCALING: Relative to card width */
  width: 15%;
  min-width: 28px;
  max-width: 48px;
  aspect-ratio: 1/1;
  height: auto;
  /* override fixed height */

  padding: 0;
  border-radius: 50%;

  /* 💎 GLASSMORPHISM */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  color: white;
  font-size: clamp(12px, 3vw, 18px);
  /* Responsive icon */

  /* Grid center (more robust than flex for 1/1 aspect ratio) */
  display: grid;
  place-items: center;

  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy pop */
  cursor: pointer;
}

/* Hover Effect */
.zbd-overlay-btn:hover,
.overlay-action-btn:hover {
  transform: scale(1.15) translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Position */
.zbd-overlay-btn.wishlist-btn,
.overlay-action-btn.wishlist-btn {
  left: 4%;
}

.zbd-overlay-btn.tradelist-btn,
.overlay-action-btn.tradelist-btn {
  right: 4%;
}

/* ❤️ Active Wishlist (Ruby Red Glass) */
.zbd-overlay-btn.active.wishlist-btn,
.overlay-action-btn.active.wishlist-btn {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.85), rgba(220, 53, 69, 0.6)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.5) !important;
  color: #fff !important;
}

/* 🔁 Active Tradelist (Cyan Glass) */
.zbd-overlay-btn.active.tradelist-btn,
.overlay-action-btn.active.tradelist-btn {
  background: linear-gradient(135deg, rgba(13, 202, 240, 0.85), rgba(13, 202, 240, 0.6)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.5) !important;
  color: #fff !important;
}

/* Icon reset */
.zbd-overlay-btn i,
.overlay-action-btn i {
  line-height: 0;
  /* Critical for vertical centering in grid */
  display: block;
  padding: 0;
  margin: 0;
}

/* 🔖 Étiquette cliquable - UX */
.zbd-card-header {
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.zbd-card-header:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.zbd-card-header:active {
  background: rgba(255, 255, 255, 0.12);
}

/* 🔖 Chevron indicateur - toujours visible pour mobile */
.zbd-header-chevron {
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, color 0.2s ease;
}

.zbd-card-header:hover .zbd-header-chevron {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(2px);
}

/* 🔖 Icônes miniatures wishlist/tradelist dans l'étiquette */
.zbd-card-icons {
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  line-height: 1;
  flex-wrap: nowrap;
}

/* Mini indicateurs de variantes (R / P / M) dans l'étiquette */
.zbd-variant-mini-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.15rem;
  transform: translateY(-0.5px);
}

.zbd-variant-mini {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.zbd-variant-mini.active {
  color: var(--zbd-accent, #F0B90B);
}

@media (max-width: 576px) {
  .zbd-card-icons {
    gap: 0.35rem !important;
    overflow: hidden;
    max-width: 100%;
  }

  .zbd-variant-mini-icons {
    gap: 0.1rem;
    margin-left: -0.05rem;
    transform: translate(-2px, -0.5px);
  }

  .zbd-variant-mini {
    font-size: 0.45rem;
  }
}

/* 🔖 Prix dans l'étiquette */
.zbd-card-status .zbd-price-text {
  font-size: clamp(0.65rem, 1.3vw, 0.8rem);
}

.zbd-icon-wishlist,
.zbd-icon-tradelist {
  opacity: 0.4;
  transition: opacity 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.zbd-icon-wishlist {
  color: #888;
}

.zbd-icon-tradelist {
  color: #888;
}

.zbd-icon-wishlist.active {
  opacity: 1;
  color: #dc3545;
  /* Rouge pour wishlist */
}

.zbd-icon-tradelist.active {
  opacity: 1;
  color: #0dcaf0;
  /* Cyan pour tradelist */
}

img {
  touch-action: manipulation;
}

/* 🔧 PRICE PILL (centered & no chevron padding) */
.zebradex-price-btn {
  position: relative;
  font-size: 0.60rem;
  max-width: 75px;
  /* ❌ top: 50% removed to avoid vertical drift */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.2rem 0.6rem;
  /* symmetric (chevron removed) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (min-width: 576px) {
  .zebradex-price-btn {
    font-size: 0.85rem;
    max-width: none;
    padding: 0.35rem 0.75rem;
    /* symmetric */
  }
}

/* (legacy) chevron class kept but unused */
.chevron-absolute {
  position: absolute;
  top: 50%;
  right: 0.1rem;
  transform: translateY(-50%);
  height: 1em;
  width: auto;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.zebradex-price-btn:hover .chevron-absolute {
  transform: translateY(-50%) translateX(2px);
}

/* ╭───────────────────────────────────────────────────────────────╮
   │ 🧱 Disable blur/gloss for + / − buttons (cards only)          │
   ╰───────────────────────────────────────────────────────────────╯ */
.img-wrapper>.fancy-btn,
.img-wrapper>.fancy-btn:hover,
.img-wrapper>.fancy-btn:active {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ⛳️ Variables de largeur + durée/easing du edge-flash */
.img-wrapper>.fancy-btn {
  --edge-flash-width: 90%;
  /* largeur de la bande de flash */
  --edge-flash-hard: 50%;
  /* pic lumineux vers 22% de la bande */
  --edge-flash-soft: 90%;
  /* fin du fade vers 60% de la bande */
  --edge-flash-duration: .80s;
  --edge-flash-ease: ease-in-out;
}

/* ⏱ timers */
@keyframes reveal-timer {
  from {
    opacity: 1;
  }

  to {
    opacity: 1;
  }
}

/* ✨ fade plus doux : pic rapide puis traîne plus longue */
@keyframes edge-flash {
  0% {
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  70% {
    opacity: .35;
  }

  100% {
    opacity: 0;
  }
}

/* pendant reveal : au-dessus de l'image (2), sous le badge (5) */
.img-wrapper>.fancy-btn.reveal-left,
.img-wrapper>.fancy-btn.reveal-right {
  z-index: 4 !important;
  animation: reveal-timer var(--edge-flash-duration, .18s) linear;
}

/* ⚡ zone de flash limitée à 70% de la largeur du bouton */
.img-wrapper>.fancy-btn.reveal-left::after,
.img-wrapper>.fancy-btn.reveal-right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--edge-flash-width, 70%);
  pointer-events: none;
  opacity: 0;
  animation: edge-flash var(--edge-flash-duration, .18s) var(--edge-flash-ease, ease-out) forwards;
  border-radius: inherit;
}

/* left edge highlight */
.img-wrapper>.fancy-btn.reveal-left::after {
  left: 0;
  background:
    linear-gradient(to right,
      rgba(255, 255, 255, 0.85) 0,
      rgba(255, 255, 255, 0.45) var(--edge-flash-hard),
      rgba(255, 255, 255, 0.00) var(--edge-flash-soft));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.22);
}

/* right edge highlight */
.img-wrapper>.fancy-btn.reveal-right::after {
  right: 0;
  background:
    linear-gradient(to left,
      rgba(255, 255, 255, 0.85) 0,
      rgba(255, 255, 255, 0.45) var(--edge-flash-hard),
      rgba(255, 255, 255, 0.00) var(--edge-flash-soft));
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {

  .img-wrapper>.fancy-btn.reveal-left,
  .img-wrapper>.fancy-btn.reveal-right {
    animation: none;
  }

  .img-wrapper>.fancy-btn.reveal-left::after,
  .img-wrapper>.fancy-btn.reveal-right::after {
    animation: none;
    opacity: .85;
  }
}

/* overshoot haut + stretch bas */
.img-wrapper {
  overflow: visible;
}

/* 🔘 Demi-cercle décoratif sur le bord gauche de l'image */
.half-circle-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(16px, 3vw, 24px);
  height: clamp(32px, 6vw, 48px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 100px 100px 0;
  /* Arrondi à droite pour pointer vers l'intérieur */
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

  /* Centrage de l'icône */
  display: grid;
  place-items: center;
  color: white;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
}

/* 🔘 Demi-cercle décoratif sur le bord droit de l'image */
.half-circle-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(16px, 3vw, 24px);
  height: clamp(32px, 6vw, 48px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px 0 0 100px;
  /* Arrondi à gauche pour pointer vers l'intérieur */
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

  /* Centrage de l'icône */
  display: grid;
  place-items: center;
  color: white;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
}

/* ✨ Animation flash pour les demi-cercles */
@keyframes half-circle-pulse {
  0% {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
  }

  25% {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }

  50% {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }

  100% {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
  }
}

.half-circle-left.half-circle-flash,
.half-circle-right.half-circle-flash {
  animation: half-circle-pulse 0.80s ease-in-out forwards;
}

.img-wrapper>.fancy-btn {
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  transform: none !important;
  overflow: hidden;
}

.img-wrapper>.fancy-btn.btn-minus {
  border-radius: .5rem 0 0 .5rem !important;
  /* Arrondis à gauche (haut-gauche et bas-gauche) */
}

.img-wrapper>.fancy-btn.btn-plus {
  border-radius: 0 .5rem .5rem 0 !important;
  /* Arrondis à droite (haut-droite et bas-droite) */
}

/* supprimer le liserai central */
.img-wrapper>.fancy-btn.btn-minus,
.img-wrapper>.fancy-btn.btn-minus:hover,
.img-wrapper>.fancy-btn.btn-minus:active,
.img-wrapper>.fancy-btn.btn-minus.reveal-left {
  border-right-color: transparent !important;
  border-right-width: 0 !important;
}

.img-wrapper>.fancy-btn.btn-plus,
.img-wrapper>.fancy-btn.btn-plus:hover,
.img-wrapper>.fancy-btn.btn-plus:active,
.img-wrapper>.fancy-btn.btn-plus.reveal-right {
  border-left-color: transparent !important;
  border-left-width: 0 !important;
}

/* aussi pendant press (état natif) : sous le badge */
.img-wrapper>.fancy-btn:active {
  z-index: 4 !important;
}

/* 🔎 Responsive icon size for the "no price" loupe */
.zbd-icon-search {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .zbd-icon-search {
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) {
  .zbd-icon-search {
    font-size: 0.85rem;
  }
}
