/* ==========================================================
   Popups (cadastro de boas-vindas + finalizar via WhatsApp)
   ========================================================== */
:root {
  --gold: #a8834e;
  --whatsapp-dark: #1da851;
}

body.lira-popup-lock {
  overflow: hidden;
}

.lira-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lira-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lira-popup-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100dvh - 48px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  outline: none;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lira-popup.open .lira-popup-backdrop,
.lira-popup.open .lira-popup-panel {
  opacity: 1;
}

.lira-popup.open .lira-popup-panel {
  transform: none;
}

.lira-popup.closing .lira-popup-panel {
  transform: translateY(8px) scale(0.985);
}

.lira-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.lira-popup-close:hover {
  background: #f2f2f2;
  color: var(--black);
}

.lira-eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lira-eyebrow-line {
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 8px;
  background: var(--gold);
  transform-origin: left;
  animation: lira-line-in 0.6s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes lira-line-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Cadastro de boas-vindas ---------- */
.lira-popup-panel--welcome {
  max-width: 896px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.welcome-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 36px 40px;
}

.welcome-title {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
}

.welcome-text {
  max-width: 384px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #737373;
}

.welcome-form {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
}

.lira-field {
  display: block;
  margin-bottom: 16px;
}

.lira-field-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.lira-field input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

.lira-field input::placeholder {
  color: #c4c4c4;
}

.lira-field input:focus {
  border-bottom-color: var(--gold);
}

.lira-field.invalid input {
  border-bottom-color: #b3261e;
}

.welcome-interests {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.welcome-interest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: #404040;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.welcome-interest:hover {
  border-color: #a3a3a3;
}

.welcome-interest[aria-pressed="true"] {
  border-color: var(--gold);
  background: #faf6f0;
  color: var(--gold);
}

.lira-popup-error {
  min-height: 18px;
  margin: 10px 0 4px;
  font-size: 12px;
  color: #b3261e;
}

.lira-popup-submit {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lira-popup-submit:hover {
  background: #2b2b2b;
}

.welcome-skip {
  align-self: center;
  margin-top: 14px;
  padding: 2px;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 11px;
  color: #a3a3a3;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.welcome-skip:hover {
  color: var(--black);
}

.welcome-success .lira-popup-submit {
  margin-top: 28px;
}

.welcome-image-side {
  position: relative;
  min-height: 560px;
  background: #1a1a1a;
  overflow: hidden;
}

.welcome-image-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Enquadra só o modelo do banner, sem o texto "MASCULINO" ao lado. */
  object-position: 15% center;
  transform: scale(1.14);
  transform-origin: 28% 40%;
  animation: lira-image-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes lira-image-in {
  from { transform: scale(1.22); opacity: 0.6; }
  to { transform: scale(1.14); opacity: 1; }
}

.welcome-image-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}

.welcome-image-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.welcome-image-brand span {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.32em;
}

.welcome-image-brand i {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Finalizar via WhatsApp ---------- */
.lira-popup-panel--order {
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

.order-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px 18px;
}

.order-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 40px 18px 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.order-title svg {
  color: var(--whatsapp-dark);
  flex-shrink: 0;
}

.order-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f7f7;
}

.order-summary--scroll {
  max-height: 210px;
  overflow-y: auto;
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-item img {
  width: 56px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  background: var(--white);
}

.order-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.order-item-brand {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.order-item-name {
  font-size: 13px;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-meta {
  color: #737373;
}

.order-item-price {
  font-weight: 500;
  color: var(--black);
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px 0;
  font-size: 13px;
  font-weight: 500;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.order-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #404040;
}

.order-field em {
  font-style: normal;
  color: #a3a3a3;
}

.order-field input,
.order-phone {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.order-field input {
  padding: 11px 12px;
  outline: none;
}

.order-field input:focus,
.order-phone:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.order-phone {
  display: flex;
  align-items: center;
}

.order-phone-prefix {
  padding: 0 4px 0 12px;
  font-size: 14px;
  color: #737373;
}

.order-phone input {
  flex: 1;
  min-width: 0;
  border: 0;
}

.order-phone input:focus {
  box-shadow: none;
}

.order-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: #525252;
  cursor: pointer;
}

.order-consent input {
  margin-top: 2px;
  accent-color: var(--whatsapp-dark);
}

.order-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 6px;
  background: var(--whatsapp-dark);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.order-submit:hover:not(:disabled) {
  background: #178a43;
}

.order-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-note {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  color: #a3a3a3;
}

@media (max-width: 720px) {
  .lira-popup {
    padding: 12px;
  }

  .lira-popup-panel {
    max-height: calc(100dvh - 24px);
  }

  .lira-popup-panel--welcome {
    display: flex;
    flex-direction: column;
  }

  .welcome-image-side {
    order: -1;
    flex-shrink: 0;
    min-height: 0;
    height: 150px;
  }

  /* Faixa larga: aproxima no rosto do modelo para esconder o texto do banner. */
  .welcome-image-side img {
    object-position: 0 0;
    transform: scale(3);
    transform-origin: 11.5% 4%;
    animation: none;
  }

  .welcome-image-brand {
    bottom: 16px;
  }

  .welcome-form-side {
    justify-content: flex-start;
    padding: 22px 20px 20px;
  }

  .welcome-title {
    margin-top: 14px;
    font-size: 27px;
  }

  .welcome-interests {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-interest {
    flex-direction: row;
    justify-content: center;
  }

  .lira-popup-panel--welcome .lira-popup-close {
    color: var(--white);
    background: rgba(0, 0, 0, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lira-popup-backdrop,
  .lira-popup-panel,
  .lira-eyebrow-line,
  .welcome-image-side img {
    transition: none;
    animation: none;
  }
}
