/* Estilos para produtos do Medusa */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay i {
  color: white;
  font-size: 24px;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.product-price {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
  margin: 15px 0;
}

.btn-comprar {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-comprar:hover {
  background: #1d4ed8;
}

.btn-comprar:active {
  transform: scale(0.98);
}

/* Validação de Estoque */
.product-stock {
  font-size: 13px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-stock.in-stock {
  color: #10b981;
}

.product-stock.out-of-stock {
  color: #ef4444;
}

.product-stock i {
  font-size: 14px;
}

.product-stock small {
  color: #6b7280;
  font-size: 11px;
  margin-left: 4px;
}

.product-card.out-of-stock {
  opacity: 0.7;
}

.product-card.out-of-stock .product-image {
  filter: grayscale(0.3);
}

.btn-comprar.out-of-stock {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-comprar.out-of-stock:hover {
  background: #9ca3af;
  transform: none;
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
}

.out-of-stock-badge {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.low-stock-badge {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.product-image {
  position: relative;
}

/* Grid de produtos */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .produtos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .product-image {
    height: 150px;
  }
}
