/* Container per angolo - supporta badge multipli nello stesso angolo */
.pob-overlay-wrap {
  position: absolute;
  z-index: 30;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Posizionamento angoli */
.pob-top-left { 
  top: 10px; 
  left: 10px; 
  flex-direction: row;
  justify-content: flex-start;
}

.pob-top-right { 
  top: 10px; 
  right: 10px; 
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.pob-bottom-left { 
  bottom: 10px; 
  left: 10px; 
  flex-direction: row;
  justify-content: flex-start;
}

.pob-bottom-right { 
  bottom: 10px; 
  right: 10px; 
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* Gestione spazio per i flag di PrestaShop in alto a sinistra */
.product-flags + * .pob-top-left,
.js-product-flags + * .pob-top-left {
  margin-top: 30px;
}

/* Badge singolo */
.pob-overlay {
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  z-index: 35;
}

.pob-overlay a {
  display: block;
  line-height: 0;
  text-decoration: none;
  position: relative;
  z-index: 36;
  cursor: pointer;
  pointer-events: auto;
}

.pob-overlay img {
  display: block;
  width: auto;
  height: auto;
  /* max-width e filter vengono gestiti dinamicamente via PHP */
  transition: transform 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.pob-overlay a:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .pob-overlay img { 
    max-width: 110px !important;
  }
  
  .pob-overlay-wrap {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .pob-overlay img {
    max-width: 90px !important;
  }
  
  .pob-overlay-wrap {
    gap: 3px;
  }
}