/* Lista de presentes */
.gifts-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(9rem, 16vw, 12rem) 1.5rem clamp(3rem, 6vw, 4rem);
}
.gifts-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.6rem; }
.gifts-hero h1 em { font-style: italic; color: var(--accent); }
.gifts-hero__text { color: var(--muted); max-width: 560px; margin: 0 auto; }

.gift-filters {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 2rem;
  padding: 0 1.5rem clamp(3rem, 6vw, 4.5rem);
}
.gift-filters button {
  font: inherit; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted);
  padding: .4rem 0; cursor: pointer; transition: color .3s, border-color .3s;
}
.gift-filters button:hover { color: var(--ink); }
.gift-filters button.is-active { color: var(--ink); border-color: var(--ink); }

.gift-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem clamp(5rem, 10vw, 8rem);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.gift { display: flex; flex-direction: column; text-align: center; animation: fadeUp .8s both; }
.gift__media { aspect-ratio: 4/5; overflow: hidden; background: var(--ivory); margin-bottom: 1.6rem; }
.gift__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gift:hover .gift__media img { transform: scale(1.04); }
.gift__cat { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.gift h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.gift__price { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); margin: 0 0 1.4rem; }
.gift .btn { margin-top: auto; align-self: center; padding: .9rem 2rem; }

.gift--free .gift__media {
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--white);
}
.gift--free .gift__media span { font-family: var(--serif); font-style: italic; font-size: 4rem; color: var(--accent); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28,28,28,.45); animation: fade .3s both; }
.modal__panel {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--white); padding: 3rem clamp(1.5rem, 5vw, 2.8rem) 2.4rem; text-align: center;
  animation: fadeUp .4s both;
}
.modal__close {
  position: absolute; top: .8rem; right: 1rem; background: none; border: 0;
  font-size: 1.8rem; font-weight: 300; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal h2 { font-size: 2rem; }
.modal__price { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--accent); margin: .4rem 0 1.6rem; }
.modal__custom { text-align: left; margin-bottom: 1.6rem; }
.modal [hidden] { display: none !important; }
.modal__custom input {
  font: inherit; font-size: 1.1rem; color: var(--ink); border: 0; border-bottom: 1px solid var(--line);
  padding: .5rem 0; outline: none; width: 100%; background: transparent;
}
.modal__custom input:focus { border-color: var(--ink); }
.modal__qr { display: grid; place-items: center; margin: 0 auto 1rem; padding: 12px; border: 1px solid var(--line); width: fit-content; }
.modal__qr img, .modal__qr canvas { width: 188px; height: 188px; }
.modal__hint { font-size: .85rem; color: var(--muted); margin: 0 0 1.2rem; }
.copy { display: flex; }
.copy input {
  flex: 1; min-width: 0; font: inherit; font-size: .78rem; color: var(--muted);
  border: 1px solid var(--line); border-right: 0; padding: 0 .8rem; background: var(--ivory);
}
.copy .btn { padding: .9rem 1.2rem; }
.modal__warning { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0; }
.modal__message {
  display: inline-block; margin-top: 1.8rem; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--ink);
}

.nav__links a[aria-current="page"] { opacity: .5; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
