/* Convite ML XV · componentes: progresso, countdown, cartões, botões, sheets */

/* ---------- Barra de progresso (stories) ---------- */
.progress {
  position: fixed;
  top: calc(10px + var(--sa-top));
  left: 16px; right: 16px;
  z-index: 20;
  display: flex;
  gap: 5px;
}
.progress i {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(246, 241, 240, .22);
  overflow: hidden;
  position: relative;
}
.progress i::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ouro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.progress i.on::after { transform: scaleX(1); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd-unit > span {
  font-size: 10.5px;
  letter-spacing: .22em;
  margin-left: .22em;
  text-transform: uppercase;
  color: var(--rosa-300);
}
.cd-num {
  display: flex;
  gap: 3px;
}
.cd-cell {
  position: relative;
  width: clamp(30px, 8.6vw, 40px);
  height: clamp(46px, 13vw, 60px);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(96, 0, 37, .82), rgba(58, 0, 23, .88));
  border: 1px solid rgba(200, 168, 107, .38);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.cd-cell b {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(22px, 6.4vw, 30px);
  color: var(--ouro-claro);
  will-change: transform;
}
.cd-sep {
  font-family: "Cinzel", serif;
  font-size: clamp(20px, 6vw, 28px);
  color: var(--ouro);
  opacity: .6;
  padding-top: clamp(8px, 2.6vw, 14px);
}

/* ---------- Cartões de detalhes ---------- */
.card {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(96, 0, 37, .78), rgba(58, 0, 23, .84));
  border: 1px solid rgba(200, 168, 107, .34);
  box-shadow: var(--sombra);
}
.card-ico {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  margin-top: 3px;
  stroke: var(--ouro);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-ico circle[r="0.8"] { fill: var(--ouro); stroke: none; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ouro);
}
.card-body p { font-size: 14.5px; line-height: 1.6; color: var(--rosa-100); }
.card-body strong { color: var(--creme); font-weight: 600; }

/* ---------- Botões ---------- */
.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  min-height: 58px;
  padding: 16px 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ouro-claro) 0%, var(--ouro) 55%, #a8894f 100%);
  color: #46001b;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(200, 168, 107, .28), var(--sombra);
  cursor: pointer;
  transition: transform .15s ease;
}
.btn-gold:active { transform: scale(.97); }
.btn-ico { width: 24px; height: 24px; stroke: #46001b; stroke-width: 1.5; fill: none; }
.btn-ico .wa-fone { fill: #46001b; stroke: none; }

.btn-ghost {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(200, 168, 107, .55);
  background: rgba(200, 168, 107, .08);
  color: var(--ouro-claro);
  font-family: "Sora", sans-serif;
  font-size: 13.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn-ghost:active { transform: scale(.96); background: rgba(200, 168, 107, .18); }
.content > .btn-ghost { align-self: center; }

/* ---------- Dica de navegação ---------- */
.nav-hint {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--sa-bottom));
  z-index: 15;
  width: 46px; height: 46px;
  margin-left: -23px;
  border: none;
  border-radius: 50%;
  background: rgba(58, 0, 23, .4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.nav-hint svg { width: 20px; stroke: var(--ouro); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bottom sheet ---------- */
.sheet-overlay {
  position: fixed; inset: 0;
  z-index: 30;
  background: rgba(20, 0, 8, .6);
  opacity: 0;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 31;
  padding: 12px 24px calc(26px + var(--sa-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #6d082e 0%, var(--vinho) 40%, #4a001c 100%);
  border-top: 1px solid rgba(200, 168, 107, .4);
  box-shadow: 0 -14px 44px rgba(20, 0, 8, .6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet[hidden] { display: none; }
.sheet { max-height: 80dvh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.sheet-grab {
  width: 42px; height: 4px;
  border-radius: 2px;
  margin: 0 auto 6px;
  background: rgba(246, 241, 240, .3);
}
.sheet-title {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ouro-claro);
  text-align: center;
}
.sheet-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--rosa-300);
  text-align: center;
  margin-bottom: 4px;
}
.sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(200, 168, 107, .45);
  background: rgba(200, 168, 107, .1);
  color: var(--creme);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.sheet-btn:active { transform: scale(.98); background: rgba(200, 168, 107, .2); }
.sheet-btn-alt { border-style: dashed; color: var(--rosa-100); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + var(--sa-bottom));
  z-index: 40;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(232, 213, 168, .96);
  color: #46001b;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sombra);
  opacity: 0;
}

/* ---------- Vitrine de presentes ---------- */
.cat-ico {
  width: clamp(56px, 16vw, 72px);
  height: auto;
  stroke: var(--ouro);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 12px rgba(30, 0, 12, .5));
}
.cat-ico circle[r="1.4"], .cat-ico circle[r="2.2"] { fill: var(--ouro); stroke: none; }
.cat-titulo {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(22px, 6.4vw, 30px);
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ouro-claro);
  text-shadow: 0 2px 18px rgba(30, 0, 12, .55);
}
.presente-item { margin-bottom: 14px; }
.presente-item h4 {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--rosa-100);
  text-align: center;
  margin-bottom: 8px;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(200, 168, 107, .6);
  background: rgba(200, 168, 107, .1);
  color: var(--ouro-claro);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.chip:active { transform: scale(.95); background: rgba(200, 168, 107, .22); }
.chip-breve { opacity: .8; }

.grid-presentes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gift-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(200, 168, 107, .35);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(96, 0, 37, .85), rgba(58, 0, 23, .92));
  box-shadow: var(--sombra);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: "Sora", sans-serif;
  color: inherit;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.gift-card.vis { opacity: 1; transform: translateY(0); }
.gift-card:active { transform: scale(.98); }

.gift-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gift-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px 14px;
}
.gift-nome {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ouro-claro);
}
.gift-preco {
  flex: 1;
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--rosa-300);
}
.gift-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ouro-claro) 0%, var(--ouro) 60%, #a8894f 100%);
  color: #46001b;
  font-weight: 600;
  font-size: 13px;
}

/* outro valor dentro da sheet */
.outro-form { margin-top: 6px; }
.outro-label {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--rosa-300);
  text-align: center;
  margin-bottom: 8px;
}
.outro-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.outro-prefixo {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ouro-claro);
}
.outro-row input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(200, 168, 107, .55);
  background: rgba(58, 0, 23, .6);
  color: var(--creme);
  font-family: "Sora", sans-serif;
  font-size: 17px;
}
.outro-row input:focus { outline: 2px solid rgba(200, 168, 107, .7); outline-offset: 1px; }
.outro-row input::placeholder { color: rgba(215, 166, 179, .55); }
.outro-btn {
  min-height: 50px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--ouro-claro) 0%, var(--ouro) 60%, #a8894f 100%);
  color: #46001b;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.outro-btn:disabled { opacity: .6; }
.outro-btn:active { transform: scale(.96); }

/* ---------- Lista de presentes embutida (tela da home) ---------- */
.screen-gifts { padding-bottom: calc(66px + var(--sa-bottom)); }
.gifts-wrap {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gifts-head { text-align: center; }
.gifts-titulo {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(19px, 5.4vw, 24px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ouro-claro);
  margin-bottom: 6px;
  text-shadow: 0 2px 18px rgba(30, 0, 12, .55);
}
.gifts-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--rosa-100);
  max-width: 34ch;
  margin: 0 auto;
}
.gifts-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  border-radius: 16px;
}
.gifts-continuar { margin: 16px auto 4px; min-height: 52px; font-size: 15px; max-width: 300px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .content { max-width: 520px; gap: 22px; }
  .petal-wrap { width: min(30vw, 480px); }
  .card { padding: 22px 26px; }
  .nav-hint { bottom: 26px; }
}
