.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pm-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pm-modal {
  background: #1f1e21;
  border: 1px solid #3a383d;
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

.pm-overlay.active .pm-modal {
  transform: translateY(0) scale(1);
}

.pm-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

.pm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 0 28px 28px;
  font-family: "Bebas Neue", Helvetica;
}

.pm-media {
  border-radius: 12px;
  overflow: hidden;
  background: #2f2e31;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-category {
  color: #8dd4e6;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.pm-name {
  color: #fff;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.2;
}

.pm-price {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.pm-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
}

.pm-stock.in-stock {
  background: rgba(40, 167, 69, 0.15);
  color: #4ade80;
}

.pm-stock.low-stock {
  background: rgba(255, 193, 7, 0.15);
  color: #fbbf24;
}

.pm-stock.out-of-stock {
  background: rgba(220, 53, 69, 0.15);
  color: #f87171;
}

.pm-description {
  color: #b3b0b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.pm-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pm-qty-label {
  color: #b3b0b8;
  font-size: 0.9rem;
}

.pm-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #3a383d;
  border-radius: 8px;
  overflow: hidden;
}

.pm-qty-control button {
  width: 38px;
  height: 38px;
  background: #2f2e31;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.pm-qty-control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pm-qty-control input {
  width: 52px;
  height: 38px;
  text-align: center;
  background: #1f1e21;
  border: none;
  color: #fff;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.pm-qty-control input::-webkit-outer-spin-button,
.pm-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-family: "Bebas Neue", Helvetica;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

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

.pm-btn-cart {
  background: #8dd4e6;
  color: #1f1e21;
}

.pm-btn-cart:disabled {
  background: #44424a;
  color: #88858f;
  cursor: not-allowed;
}

.pm-btn-wpp {
  background: #25d366;
  color: #fff;
}

.pm-btn-wpp:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .pm-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pm-media {
    min-height: 240px;
  }

  .pm-name {
    font-size: 1.35rem;
  }
}
