.custom-product-card {
  flex: 0 0 calc(17% - 16px); /* 5 cards por linha (100% / 5) */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.custom-product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.brand-circle {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  z-index: 2;
}

.custom-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border: none;
  border-radius: 50%;
  background: #fff;
}


/* Tablets */
@media (max-width: 1024px) {
  .custom-product-card {
    flex: 0 0 calc(30% - 16px); /* 4 por linha */
  }
}

/* Celulares médios */
@media (max-width: 768px) {
  .custom-product-card {
    flex: 0 0 calc(51% - 16px); /* 2 por linha */
  }
  .btn.btn-primary.btn-sm span {
      font-size: 6.5pt;
    }
    .btn.btn-outline-primary.btn-sm span {
      font-size: 6.5pt;
    }
  
  @media (max-width: 390px) {
  /* Estilos específicos para iPhone 12 e similares */
  .custom-product-card {
    flex: 0 0 calc(52% - 16px); /* 2 por linha */
  }
  
   .btn.btn-primary.btn-sm span {
      font-size: 6pt;
    }
    .btn.btn-outline-primary.btn-sm span {
      font-size: 6pt;
    }
}

  @media (max-width: 380px) {
    /* Estilos específicos para iPhone 12 e similares */
    .custom-product-card {
      flex: 0 0 calc(52% - 16px); /* 2 por linha */
    }

    .btn.btn-primary.btn-sm span {
      font-size: 4.5pt;
    }
    .btn.btn-outline-primary.btn-sm span {
      font-size: 4.5pt;
    }
  }

  .card-title {
    font-size: 12pt;
  }
}

/* Celulares pequenos 
@media (max-width: 480px) {
    .custom-product-card {
    flex: 0 0 100%; /* 1 por linha se necessário 
  }
    .custom-product-image {
    height: 160px;
  }
} */

  @media (max-width: 900px) {
  .custom-product-card {
    width: 180px;
  }

   .custom-product-image {
    height: 150px;
  }
}

.custom-product-image-wrapper {
  position: relative;
}

.promo-badge-modern {
  background: linear-gradient(90deg, #ff3366 0%, #ff6a00 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.35em 1em 0.35em 0.5em;
  border-radius: 2em 0.7em 2em 0.7em;
  box-shadow: 0 2px 8px rgba(255,51,102,0.15);
  letter-spacing: 0.03em;
  animation: badge-pop 0.5s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 2;
  min-width: 70px;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  border: none;
}

.promo-badge-modern svg {
  display: inline-block;
  vertical-align: middle;
}

.promo-badge-text {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes badge-pop {
  0% { transform: scale(0.7) rotate(-10deg);}
  70% { transform: scale(1.1) rotate(2deg);}
  100% { transform: scale(1) rotate(0);}
}

@media (max-width: 768px) {
  .promo-badge-modern {
    font-size: 0.85rem;
    padding: 0.25em 0.7em 0.25em 0.4em;
    min-width: 56px;
  }
  .promo-badge-modern svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  .promo-badge-modern {
    font-size: 0.75rem;
    padding: 0.18em 0.5em 0.18em 0.3em;
    min-width: 44px;
  }
  .promo-badge-modern svg {
    width: 12px;
    height: 12px;
  }
}