* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--color-ink);
    background-color: var(--color-page);
    background-image: repeating-linear-gradient(135deg, rgba(176, 138, 78, .035) 0, rgba(176, 138, 78, .035) 1px, transparent 1px, transparent 18px);
    font-family: var(--font-body);
    line-height: 1.6;
}
button, select { font: inherit; }
input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .65rem 1rem; background: var(--color-wine); color: white; }

.site-header {
    position: sticky; top: 0; z-index: 20;
    min-height: 92px; padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    background: rgba(255, 253, 249, .96); border-bottom: 1px solid var(--color-line);
    box-shadow: 0 8px 30px rgba(57,43,29,.05);
    backdrop-filter: blur(12px);
}
.brand { width: 78px; height: 78px; min-width: 78px; min-height: 78px; padding: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; border: 2px solid transparent; background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, linear-gradient(135deg, #765735 0%, #f4e3c2 28%, #9c7845 50%, #fff1d2 73%, #715230 100%) border-box; box-shadow: 0 5px 15px rgba(57,43,29,.08), inset 0 0 9px rgba(255,255,255,.55); }
.brand-mark { position: relative; width: 44px; height: 44px; display: block; flex: 0 0 44px; overflow: hidden; color: transparent; font-size: 0; }
.brand > .brand-mark { border: 0; background: transparent; }
.brand-mark::before, .brand-mark::after { position: absolute; color: #34414a; font: 700 .96rem/1 Arial, sans-serif; }
.brand-mark::before { content: "A"; top: 5px; left: 7px; }
.brand-mark::after { content: "E"; right: 7px; bottom: 5px; }
.brand-mark > span { position: absolute; top: 50%; left: 50%; width: 34px; height: 1.5px; margin: 0; background: linear-gradient(90deg, var(--color-gold-dark), #ead7b6); font-size: 0; transform: translate(-50%, -50%) rotate(-48deg); transform-origin: center; }
.brand-date { margin: 0; color: var(--color-gold-dark); font: 600 .46rem/1 var(--font-body); letter-spacing: .07em; white-space: nowrap; }
.main-menu { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.main-menu a { position: relative; padding: 1.7rem 0 1.5rem; text-decoration: none; text-transform: uppercase; letter-spacing: .09em; font: 600 .68rem/1.2 var(--font-body); color: var(--color-muted); }
.main-menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 1.15rem; height: 1px; background: var(--color-gold); transition: left .2s, right .2s; }
.main-menu a:hover::after, .main-menu a[aria-current="page"]::after { left: 0; right: 0; }
.main-menu a[aria-current="page"] { color: var(--color-wine); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 6px 0; background: var(--color-ink); }

.eyebrow { margin: 0 0 .8rem; color: var(--color-gold-dark); text-transform: uppercase; letter-spacing: .22em; font-size: .68rem; font-weight: 700; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; }
h1 { margin: 0 0 1.3rem; font-size: clamp(3rem, 6vw, 5.2rem); color: var(--color-wine); }
h2 { margin: 0; font-size: clamp(2.35rem, 4vw, 3.7rem); }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }

.catalog { max-width: var(--content-width); margin: 0 auto; padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(5rem, 8vw, 8rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; padding: 0 .2rem; }
.sort-control { display: grid; gap: .4rem; color: var(--color-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.sort-control select { min-width: 190px; padding: .75rem 2.5rem .75rem .9rem; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-line); }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.gift-card { min-width: 0; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 10px 25px rgba(57,43,29,.045); transition: transform .2s, box-shadow .2s; }
.gift-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px var(--color-shadow); }
.gift-card__media { position: relative; aspect-ratio: 1.28 / 1; display: grid; place-items: center; padding: 1.25rem; overflow: hidden; background: radial-gradient(circle at center, #fffdf9 0, #f0e4d4 100%); border-bottom: 1px solid var(--color-line); }
.gift-card__media img { width: 100%; height: 100%; object-fit: contain; }
.gift-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-gold-dark); background: linear-gradient(145deg, #f9f4ec, #eadbc8); }
.gift-placeholder::before, .gift-placeholder::after { content: ""; position: absolute; width: 40%; height: 40%; border: 1px solid rgba(176,138,78,.35); transform: rotate(45deg); }
.gift-placeholder::after { width: 31%; height: 31%; }
.gift-placeholder > span { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; background: rgba(255,253,249,.84); border: 1px solid var(--color-gold); font: 600 1.35rem/1 var(--font-display); color: var(--color-wine); }
.gift-placeholder span span { color: var(--color-gold); }
.gift-card__body { flex: 1; padding: 1.4rem 1.4rem 1.25rem; display: flex; flex-direction: column; }
.gift-card h3 { margin: 0 0 .7rem; font-size: 1.65rem; color: var(--color-wine-dark); }
.gift-card__description { margin: 0; color: var(--color-muted); font-size: .9rem; }
.gift-card__footer { margin-top: auto; padding-top: 1.3rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.gift-card__price { margin: 0; color: var(--color-ink); font: 600 1.35rem/1.1 var(--font-display); white-space: nowrap; }
.gift-card__price small { display: block; margin-bottom: .25rem; color: var(--color-muted); font: 600 .58rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; }
.button--gift { min-height: 40px; padding: .55rem 1rem; background: var(--color-gold); color: #fff; font-size: .78rem; font-weight: 700; }
.button--gift:disabled { cursor: not-allowed; opacity: .55; }
.gift-unavailable { padding: .55rem .7rem; color: var(--color-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gift-card--custom { border-color: var(--color-gold); }
.notice, .prototype-note { padding: 1rem 1.2rem; text-align: center; color: var(--color-muted); background: var(--color-surface); border: 1px solid var(--color-line); }
.prototype-note { margin: 2rem 0 0; font-size: .82rem; border: 0; background: transparent; }

.site-footer { min-height: 410px; padding: 4rem 1.5rem 3rem; display: grid; place-items: center; align-content: center; gap: 1.5rem; color: var(--color-muted); background: var(--color-wine-dark); }
.footer-brand { width: 260px; min-height: 268px; padding: 27px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--color-ink); text-decoration: none; border: 3px solid transparent; background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, linear-gradient(135deg, #765735 0%, #f4e3c2 28%, #9c7845 50%, #fff1d2 73%, #715230 100%) border-box; box-shadow: 0 14px 35px rgba(20,10,14,.24), inset 0 0 14px rgba(255,255,255,.58); }
.brand-mark--footer { width: 68px; height: 66px; flex-basis: 68px; }
.brand-mark--footer::before, .brand-mark--footer::after { font-size: 1.45rem; }
.brand-mark--footer::before { top: 8px; left: 12px; }
.brand-mark--footer::after { right: 11px; bottom: 8px; }
.brand-mark--footer > span { width: 52px; height: 2px; }
.footer-brand__copy { display: grid; justify-items: center; line-height: 1; }
.footer-brand__copy strong { font: 500 1.18rem/1.15 var(--font-display); letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; }
.footer-brand__copy > span { margin: 8px 0 9px; color: #34414a; font: italic 1.32rem/1 var(--font-display); }
.footer-brand__copy small { margin-top: 17px; display: flex; align-items: center; gap: 12px; color: #34414a; font: 500 .78rem/1 var(--font-display); letter-spacing: .12em; }
.footer-brand__copy small i { width: 1px; height: 18px; display: inline-block; background: var(--color-gold-dark); }
.site-footer > p { margin: 0; color: #eadfcf; font: 500 .72rem/1.5 var(--font-body); letter-spacing: .14em; text-align: center; text-transform: uppercase; }

.checkout-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-gold); border-radius: var(--radius-card); box-shadow: 0 30px 80px rgba(30,18,20,.28); }
.checkout-dialog::backdrop { background: rgba(34,24,25,.64); backdrop-filter: blur(5px); }
.checkout-form { position: relative; padding: clamp(1.5rem, 5vw, 2.6rem); display: grid; gap: 1rem; }
.checkout-form h2 { margin-bottom: .5rem; font-size: clamp(2rem, 5vw, 3rem); color: var(--color-wine); }
.dialog-close { position: absolute; top: .75rem; right: .9rem; width: 42px; height: 42px; color: var(--color-muted); background: transparent; border: 0; font-size: 1.9rem; cursor: pointer; }
.form-field { display: grid; gap: .4rem; color: var(--color-muted); font-size: .78rem; font-weight: 700; }
.form-field span > small { font-weight: 400; }
.form-field input, .form-field textarea { width: 100%; padding: .78rem .9rem; color: var(--color-ink); background: #fffefa; border: 1px solid var(--color-line); border-radius: 3px; outline: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--color-gold-dark); box-shadow: 0 0 0 3px rgba(176,138,78,.12); }
.money-input { display: flex; align-items: center; background: #fffefa; border: 1px solid var(--color-line); }
.money-input i { padding-left: .9rem; font-style: normal; }
.money-input input { border: 0; }
.payment-options { margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; border: 0; }
.payment-options legend { width: 100%; margin-bottom: .55rem; color: var(--color-muted); font-size: .78rem; font-weight: 700; }
.payment-options label { position: relative; min-height: 80px; display: flex; cursor: pointer; }
.payment-options input { position: absolute; opacity: 0; }
.payment-options label > span { width: 100%; padding: .85rem; display: grid; align-content: center; gap: .2rem; background: #fffefa; border: 1px solid var(--color-line); border-radius: 4px; }
.payment-options input:checked + span { border-color: var(--color-gold-dark); box-shadow: 0 0 0 3px rgba(176,138,78,.13); }
.payment-options small { color: var(--color-muted); font-size: .7rem; font-weight: 400; }
.privacy-check { display: flex; align-items: flex-start; gap: .65rem; color: var(--color-muted); font-size: .72rem; cursor: pointer; }
.privacy-check input { margin-top: .25rem; accent-color: var(--color-wine); }
.button--submit { width: 100%; color: #fff; background: var(--color-wine); font-weight: 700; }
.button--submit:disabled { opacity: .65; cursor: wait; }
.button--outline { color: var(--color-wine); background: transparent; border-color: var(--color-wine); }
.form-error { margin: 0; color: #8d202c; font-size: .78rem; }

.result-page { min-height: 100vh; padding: 28px 14px; display: grid; place-items: center; }
.result-card { width: min(620px, 100%); padding: clamp(1.6rem, 6vw, 3.5rem); text-align: center; background: var(--color-surface); border: 1px solid var(--color-gold); box-shadow: 0 20px 60px var(--color-shadow); }
.result-card h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
.result-card .button { margin-top: 1.2rem; }
.result-card--pix { width: min(680px, 100%); }
.pix-value { margin: 1rem 0; color: var(--color-wine); font: 600 2rem/1 var(--font-display); }
.pix-qr { width: min(320px, 85%); margin: 1.2rem auto; background: #fff; border: 10px solid #fff; }
.copy-pix { display: grid; gap: .4rem; text-align: left; color: var(--color-muted); font-size: .72rem; font-weight: 700; }
.copy-pix textarea { width: 100%; padding: .75rem; resize: none; overflow-wrap: anywhere; color: var(--color-ink); background: #fffefa; border: 1px solid var(--color-line); font: .7rem/1.4 monospace; }
.pix-note { margin: 1.4rem 0 .4rem; color: var(--color-muted); font-size: .82rem; }
.order-code { margin-top: 1.5rem; color: var(--color-muted); font: .68rem/1.4 monospace; }

@media (max-width: 1100px) {
    .site-header { padding-inline: 20px; }
    .main-menu { gap: .85rem; }
    .main-menu a { letter-spacing: .045em; font-size: .61rem; }
    .catalog { margin-inline: 20px; }
}
@media (max-width: 850px) {
    .menu-toggle { position: absolute; top: 20px; right: 20px; display: block; }
    .main-menu { position: absolute; left: 0; right: 0; top: 92px; display: none; padding: 1rem 20px 1.4rem; background: var(--color-surface); border-bottom: 1px solid var(--color-line); box-shadow: 0 14px 24px var(--color-shadow); }
    .main-menu.is-open { display: grid; }
    .main-menu a { padding: .7rem 0; }
    .main-menu a::after { bottom: .45rem; }
    .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .brand-date { font-size: .44rem; letter-spacing: .05em; }
    .catalog { margin-inline: 12px; }
    h1 { font-size: 3.15rem; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .sort-control select { width: 100%; }
    .gift-grid { grid-template-columns: 1fr; }
    .gift-card__media { aspect-ratio: 1.45 / 1; }
    .payment-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Ajuste final do cabeçalho compacto. */
.site-header { min-height: 70px; }
.site-header .brand { width: 58px; height: 58px; min-width: 58px; min-height: 58px; padding: 2px; }
.site-header .brand > .brand-mark { transform: scale(.72); margin: -7px 0 -6px; }
.site-header .brand-date { font-size: .34rem; letter-spacing: .035em; }
@media (max-width: 850px) {
    .main-menu { top: 70px; }
}

/* Reflexo metálico da identidade visual. */
.brand,
.footer-brand {
    background:
        linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
        linear-gradient(120deg, #654521 0%, #a77d43 18%, #fff8e7 34%, #c69d5c 48%, #fff2cf 63%, #8a6232 80%, #5c3f21 100%) border-box;
    background-size: 100% 100%, 240% 240%;
    animation: frame-light 7s ease-in-out infinite;
}

.brand-mark > span {
    background: linear-gradient(90deg, #6c4b26 0%, #c49a5a 30%, #fff9e9 50%, #d7b77a 66%, #74522b 100%);
    background-size: 240% 100%;
    box-shadow: 0 0 5px rgba(255, 238, 198, .75);
    animation: slash-light 4.5s ease-in-out infinite;
}

@keyframes frame-light {
    0%, 100% { background-position: 0 0, 0% 50%; }
    50% { background-position: 0 0, 100% 50%; }
}

@keyframes slash-light {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .brand,
    .footer-brand,
    .brand-mark > span { animation: none; }
}

/* Espaço entre o menu e a lista de presentes */
.catalog {
    padding-top: 20px;
}
