/* Modal shell */
.pzlzs-modal {
  border: 0;
  padding: 0;
  width: min(980px, calc(100vw - 24px));
  max-height: min(85vh, 760px);
}

.pzlzs-modal::backdrop {
  background: rgba(0,0,0,.55);
}

.pzlzs-modal__frame {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pzlzs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.pzlzs-modal__title {
  margin: 0;
  font-weight: 700;
}

.pzlzs-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.pzlzs-modal__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.pzlzs-modal__body {
  padding: 14px 16px 16px;
  overflow: auto;
}

.pzlzs-modal__loading {
  padding: 10px 0;
  opacity: .8;
}

/* Conteúdo */
.pzlzs__mobile {
  margin-bottom: 12px;
}

.pzlzs__select-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.pzlzs__select {
  width: 100%;
  height: 44px;
}

/* layout desktop */
.pzlzs__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.pzlzs__nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pzlzs__nav-btn {
  width: 100%;
  text-align: left;
  padding: 5px 0;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.pzlzs__nav-btn.is-active {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.20);
  font-weight: 700;
}

.pzlzs__nav-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.pzlzs__title {
  margin: 0 0 8px 0;
  font-weight: 800;
}

.pzlzs__subtitle {
  margin: 14px 0 8px 0;
  font-weight: 800;
}

.pzlzs__desc p { margin: 0 0 10px 0; }

.pzlzs__needs {
  margin: 0;
  padding-left: 18px;
}

.pzlzs__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pzlzs__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.pzlzs__placeholder {
  opacity: .75;
}

/* Mobile behavior */
@media (max-width: 991px) {
  .pzlzs__layout {
    grid-template-columns: 1fr;
  }

  .pzlzs__nav {
    display: none;
  }

  .pzlzs__gallery {
    grid-template-columns: 1fr;
  }

  .pzlzs-modal {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}

/* Scroll lock quando modal aberta */
html.is-modal-open,
html.is-modal-open body {
  overflow: hidden;
}

/* Desktop: esconde o seletor mobile */
@media (min-width: 992px) {
  .pzlzs__mobile { display: none; }
}


.pzlzs-trigger {
  font-size: 12px;
  line-height: 1.3em;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  color: rgba(37, 55, 47, 0.9);
}

.pzlzs-trigger:hover {
  color: rgba(37, 55, 47, 1);
}