#produto-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#produto-modal.pm-open {
  display: flex;
}
.pm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.pm-box {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: 880px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.pm-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.pm-close:hover { color: #000; }
.pm-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 620px) {
  .pm-content { grid-template-columns: 1fr; }
  .pm-box { padding: 24px 16px 20px; }
}
.pm-img-wrap {
  position: relative;
  background: #f8f8f8;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.pm-img-wrap img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.pm-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pm-info h1 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.35;
}
.pm-stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.pm-sku {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 18px;
}
.pm-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue, #00355d);
  margin-bottom: 4px;
  line-height: 1;
}
.pm-inst {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 22px;
}
.pm-qty {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  width: fit-content;
  overflow: hidden;
}
.pm-qty-btn {
  background: #f0f0f0;
  border: none;
  width: 38px;
  height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 600;
  color: #333;
}
.pm-qty-btn:hover { background: #ddd; }
#pm-qty-val {
  width: 52px;
  height: 42px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #ccc;
  border-right: 1.5px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  -moz-appearance: textfield;
}
#pm-qty-val::-webkit-inner-spin-button,
#pm-qty-val::-webkit-outer-spin-button { -webkit-appearance: none; }
.pm-buy-btn {
  background: var(--blue, #00355d);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 15px 0;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
  font-family: inherit;
}
.pm-buy-btn:hover { background: #004d85; }
.pm-buy-btn.added { background: #2d6a00; }
.pm-esg-msg {
  background: #c00;
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1px;
}
.pm-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}
.pm-share {
  font-size: 0.78rem;
  color: #999;
}
