
/* Lock background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Modal overlay */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmodal-hidden {
  display: none;
}

/* Dimmed backdrop */
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Dialog */
.pm-dialog {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border: 1px solid rgba(23,48,66,0.10);
  border-radius: 20px;
  padding: 24px 22px 20px;
  width: min(92%, 620px);
  max-width: 620px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
  z-index: 1;
  overflow: hidden;
}

/* Close button */
.pm-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

/* Image */
.pm-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  height: auto;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(248,250,252,1), rgba(241,245,249,1));
  border: 1px solid rgba(23,48,66,0.06);
}

/* Text */
.pm-title {
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #10212f;
}

.pm-desc {
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: rgba(17,17,17,0.82);
  text-align: left;
}

.pm-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(197,160,89,0.12);
  border: 1px solid rgba(197,160,89,0.30);
  font-weight: 800;
  font-size: 1.06rem;
  margin: 4px auto 12px;
  color: #6d4f14;
}

/* Add-to-cart button in modal */
.pm-add-btn {
  width: 100%;
  margin-top: 4px;
}

.pm-meta {
  text-align: left;
}

.pm-meta__line {
  line-height: 1.55;
}

@media (min-width: 700px) {
  .pm-dialog {
    padding: 26px 26px 22px;
  }
}

/* Small tweak for very small screens */
@media (max-width: 480px) {
  .pm-dialog {
    padding: 18px 14px 16px;
    border-radius: 12px;
  }
}
