/* ==================================================
   LISTA DE CASAMENTO — "MAISON ÉDITORIAL"
   Luxo de papelaria fina: filetes dourados, cantos
   retos, serifa Playfair gigante, marfim + navy.
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

:root {
    --primary: #8a6d3b;
    --primary-light: #c9a96e;
    --primary-dark: #6b5430;
    --accent: #1a1a2e;
    --accent-light: #16213e;
    --background: #faf9f7;
    --surface: #ffffff;
    --surface-alt: #f5f4f0;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #999;
    --card: #ffffff;
    --border: #e6e1d7;
    --hairline: rgba(138, 109, 59, 0.30);
    --hairline-soft: rgba(138, 109, 59, 0.16);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 10px;   /* compat: usados por telas injetadas */
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 169, 110, 0.30);
    color: var(--accent);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb {
    background: rgba(138, 109, 59, 0.30);
    border: 2px solid var(--surface-alt);
}
::-webkit-scrollbar-thumb:hover { background: rgba(138, 109, 59, 0.5); }

em {
    font-style: italic;
    color: var(--primary);
}

/* ============ MICRO-COMPONENTES EDITORIAIS ============ */

/* Etiqueta de passo/kicker com traço à esquerda */
.panel-step {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary);
}

.panel-step::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--primary-light);
    flex-shrink: 0;
}

/* Ornamento linha—losango—linha */
.hero-ornament,
.panel-ornament,
.carousel-ornament,
.footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: fit-content;
}

.hero-ornament .line,
.panel-ornament .line,
.carousel-ornament .line,
.footer-ornament .line {
    display: inline-block;
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.hero-ornament .diamond,
.panel-ornament .diamond,
.carousel-ornament .diamond,
.footer-ornament .diamond {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ================= BOTÕES ================= */

.btn-primary {
    position: relative;
    display: inline-block;
    background: var(--accent);
    color: #f5efe4;
    padding: 19px 46px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    overflow: visible;
}

/* Filete dourado interno — assinatura da casa */
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 169, 110, 0.55);
    pointer-events: none;
    transition: border-color 0.35s var(--ease), inset 0.35s var(--ease);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(107, 84, 48, 0.28);
}

.btn-primary:hover::after {
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 4px;
}

.btn-primary.loading {
    opacity: 0.65;
    pointer-events: none;
}

.btn-voltar {
    margin-top: 40px;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--sans);
    padding: 8px 2px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-voltar:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-light);
    transform: translateX(-4px);
}

/* ================= HERO ================= */

.hero {
    --hero-bg-desktop: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2000');
    --hero-bg-mobile: var(--hero-bg-desktop);
    height: 100dvh;
    min-height: 640px;
    background-image: var(--hero-bg-desktop);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #12121f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        background-image: var(--hero-bg-mobile);
    }
}

.overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(18, 18, 31, 0.10), rgba(18, 18, 31, 0.62) 78%),
        linear-gradient(180deg, rgba(18, 18, 31, 0.55) 0%, rgba(22, 33, 62, 0.35) 45%, rgba(15, 15, 26, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 860px;
    padding: 0 40px;
    animation: heroReveal 1.4s var(--ease);
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-indent: 0.5em; /* compensa o tracking no centro */
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 26px;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(3rem, 8.5vw, 6.6rem);
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    color: #ffffff;
    line-height: 1.0;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.30);
}

.hero-ornament {
    margin: 14px auto 26px;
}

.hero p {
    font-size: 0.88rem;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.66);
}

/* Contador em placa com filetes */
.contador-box {
    display: block;
    width: fit-content;
    margin: 34px auto 44px;
    padding: 20px 52px;
    text-align: center;
    border-top: 1px solid rgba(201, 169, 110, 0.45);
    position: relative;
}

.contador-box::before,
.contador-box::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 5px;
    height: 5px;
    background: var(--primary-light);
    transform: rotate(45deg);
}

.contador-box::before { left: -2px; }
.contador-box::after { right: -2px; }

#dias {
    font-size: clamp(3.2rem, 6.4vw, 5rem);
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    text-shadow: 0 2px 26px rgba(201, 169, 110, 0.35);
    line-height: 1;
}

.contador-box span {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 500;
}

/* Scroll indicator (legado) */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.hero-scroll-hint .scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ================= RSVP — SPREAD DE CONVITE ================= */

.rsvp {
    padding: 96px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 60px);
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 169, 110, 0.07), transparent 40%),
        var(--background);
}

.rsvp-shell {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    width: 100%;
    max-width: 1080px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(26, 26, 46, 0.10);
}

.rsvp-aside {
    position: relative;
    padding: 64px 56px;
    background:
        radial-gradient(circle at 20% 12%, rgba(201, 169, 110, 0.16), transparent 42%),
        linear-gradient(155deg, var(--accent) 0%, var(--accent-light) 58%, #0f3460 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 22px;
    overflow: hidden;
}

/* filete interno do painel escuro */
.rsvp-aside::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(201, 169, 110, 0.30);
    pointer-events: none;
}

.rsvp-aside > * {
    position: relative;
    z-index: 1;
}

.rsvp-aside .panel-step {
    color: var(--primary-light);
}

.rsvp-aside .panel-step::before {
    background: var(--primary-light);
}

.panel-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
    line-height: 1.08;
    color: #fff;
}

.panel-title em {
    color: var(--primary-light);
}

.panel-text {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 40ch;
}

.panel-ornament {
    margin-top: 6px;
}

.rsvp-card {
    padding: 60px 56px;
}

/* ================= CARD BASE ================= */

.card {
    background: var(--card);
    width: 100%;
    position: relative;
}

.nao-comparece .card,
.rsvp .card {
    margin: 0 auto;
}

.card h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2.4rem;
    line-height: 1.15;
    color: var(--accent);
    text-align: center;
    margin: 14px 0 18px;
}

.card h2 em {
    color: var(--primary);
}

/* ================= FORMULÁRIOS ================= */

.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-group.inline {
    flex: 1;
}

label {
    font-size: 0.66rem;
    font-weight: 600;
    display: block;
    color: var(--primary-dark);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input,
input, select, textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: #fcfbf9;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.input:hover,
input:hover, select:hover, textarea:hover {
    border-color: rgba(138, 109, 59, 0.45);
}

.input:focus,
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 1px 0 0 var(--primary);
}

textarea.input {
    resize: vertical;
    min-height: 110px;
}

#rsvpMessage {
    color: var(--primary);
    font-weight: 600;
}

button {
    border: none;
    font-family: var(--sans);
    cursor: pointer;
}

.rsvp-card .btn-primary,
.farewell-card .btn-primary {
    width: 100%;
    margin-top: 26px;
}

/* ================= NÃO COMPARECE ================= */

.nao-comparece {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 60px);
    padding: 72px 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 16%, rgba(201, 169, 110, 0.06), transparent 45%),
        var(--background);
}

.farewell-card {
    max-width: 620px;
    padding: 64px 56px;
    border: 1px solid var(--hairline);
    box-shadow: 0 26px 70px rgba(26, 26, 46, 0.08);
}

.farewell-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--hairline-soft);
    pointer-events: none;
}

.farewell-card > * {
    position: relative;
    z-index: 1;
}

.farewell-card p {
    color: var(--text-muted);
    line-height: 1.85;
}

.farewell-card h3 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

#naoMensagem {
    color: var(--text-muted);
}

/* ================= PRESENTES ================= */

.presentes {
    padding: 88px 24px 0;
    text-align: center;
    background: var(--background);
}

.presentes-topbar {
    max-width: 1180px;
    margin: 0 auto;
    text-align: right;
}

.comprador-info {
    display: inline-block;
    max-width: 420px;
    margin-bottom: 22px;
    padding: 12px 18px;
    border: 1px solid var(--hairline);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
    word-break: break-word;
}

/* --- Masthead editorial --- */

.presentes-masthead {
    max-width: 980px;
    margin: 0 auto 56px;
}

.masthead-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hairline), var(--hairline), transparent);
    position: relative;
}

.masthead-rule::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -2px;
    transform: translateX(-50%) rotate(45deg);
    width: 5px;
    height: 5px;
    background: var(--primary-light);
}

.presentes-logo-slot {
    width: 140px;
    height: 140px;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentes-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.presentes-kicker {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
}

.presentes-kicker::before,
.presentes-kicker::after {
    content: "";
    display: inline-block;
    width: 42px;
    height: 1px;
    background: var(--primary-light);
    flex-shrink: 0;
}

.presentes-masthead h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.5rem, 5.4vw, 4.2rem);
    line-height: 1.06;
    color: var(--accent);
    margin: 20px auto 18px;
    max-width: 20ch;
}

.presentes-masthead h2 em {
    color: var(--primary);
}

.presentes-masthead p {
    max-width: 56ch;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.presentes-tags {
    list-style: none;
    margin: 26px auto 40px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.presentes-tags li {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
}

.presentes-tags li:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    transform: rotate(45deg);
    margin: 0 20px;
}

/* --- Faixa "como funciona" com colunas fileteadas --- */

.presentes-toolbar {
    max-width: 1180px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
}

.toolbar-card {
    background: transparent;
    border: none;
    padding: 30px 36px;
    text-align: left;
    transition: background 0.3s var(--ease);
}

.toolbar-card:not(:first-child) {
    border-left: 1px solid var(--hairline-soft);
}

.toolbar-card:hover {
    background: rgba(201, 169, 110, 0.045);
}

.toolbar-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.toolbar-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.88rem;
}

.toolbar-card-highlight { /* compat */ }

/* ================= CARROSSEL DE FOTOS DO CASAL ================= */

.couple-carousel {
    max-width: 920px;
    margin: 48px auto;
    text-align: center;
}

.couple-carousel.hidden {
    display: none;
}

.carousel-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.carousel-title {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--accent);
    margin: 0;
}

.carousel-frame {
    position: relative;
    background: var(--surface);
    padding: 10px;
    border: 1px solid var(--hairline);
    box-shadow: 0 26px 60px rgba(26, 26, 46, 0.14);
    isolation: isolate;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.carousel-track {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

/* Preenche as sobras (fotos verticais) com a própria imagem desfocada,
   em vez de cortar a foto ou deixar barras chapadas. */
.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.55) saturate(1.1);
    transform: scale(1.18);
}

.carousel-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,0.22) 100%);
    pointer-events: none;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(18, 18, 31, 0.5);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
    z-index: 3;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.carousel-arrow:hover {
    background: rgba(138, 109, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.65);
}

.carousel-arrow:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

.carousel-prev { left: 22px; }
.carousel-next { right: 22px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 0;
    border: none;
    background: rgba(138, 109, 59, 0.25);
    transform: rotate(45deg);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.carousel-dot.is-active {
    background: var(--primary);
    transform: rotate(45deg) scale(1.25);
}

.carousel-dot:hover {
    background: var(--primary-light);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* ================= FAIXA DO CARRINHO ================= */

.cart-banner {
    max-width: 1180px;
    margin: 0 auto 6px;
    padding: 24px 10px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline-soft);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.cart-banner-info strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--accent);
}

.cart-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-banner-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-count {
    padding: 10px 18px;
    border: 1px solid var(--hairline);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cart-review-btn {
    margin-top: 0;
    width: auto;
    padding: 15px 32px;
}

/* ================= ORDENAÇÃO ================= */

.presentes-sort-bar {
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 16px 10px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.presentes-sort-bar label {
    margin: 0;
    font-size: 0.66rem;
    color: var(--text-muted);
}

.presentes-sort-bar select {
    max-width: 260px;
    width: auto;
    padding: 11px 14px;
    cursor: pointer;
    margin: 0;
}

/* ================= CARRINHO FLUTUANTE ================= */

.floating-cart {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 60px;
    height: 60px;
    border-radius: 2px;
    border: 1px solid rgba(201, 169, 110, 0.6);
    background: var(--accent);
    color: var(--primary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(15, 15, 26, 0.35);
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, background 0.3s ease;
    transform: scale(1);
    opacity: 1;
}

.floating-cart::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 169, 110, 0.30);
    pointer-events: none;
}

.floating-cart.is-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.floating-cart:hover {
    transform: scale(1.06) translateY(-2px);
    background: var(--accent-light);
}

.floating-cart:active {
    transform: scale(0.95);
}

.floating-cart svg {
    width: 26px;
    height: 26px;
}

.floating-cart-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.floating-cart-pulse {
    animation: floatingCartPulse 0.45s ease;
}

@keyframes floatingCartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ================= GRID DE PRESENTES ================= */

.grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 34px 26px;
}

.gift-card {
    background: var(--surface);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.gift-card:hover::before {
    opacity: 1;
}

.gift-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 109, 59, 0.45);
    box-shadow: 0 22px 48px rgba(26, 26, 46, 0.10);
}

.gift-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 18px 44px rgba(138, 109, 59, 0.16);
    transform: translateY(-3px);
}

.gift-card.is-selected::before {
    opacity: 1;
}

.gift-card.is-selected::after {
    content: "Selecionado";
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--hairline);
    pointer-events: none;
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.gift-media {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface-alt), #ebe8e1);
    position: relative;
}

.gift-media::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(26, 26, 46, 0) 80%, rgba(26, 26, 46, 0.08) 100%);
    pointer-events: none;
}

.gift-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}

.gift-card:hover .gift-media img {
    transform: scale(1.06);
}

.gift-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 28px 0;
}

.gift-head h3 {
    margin: 0;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1.12;
}

.price {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gift-card .price strong { font-weight: 600; }

.gift-desc {
    color: var(--text-muted);
    margin: 12px 0 0;
    padding: 0 28px;
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
    text-align: left;
}

.gift-links { margin-top: 10px; padding: 0 28px; text-align: left; }
.gift-links a { color: var(--primary); text-decoration: none; font-weight: 600; }
.gift-links a:hover { text-decoration: underline; }

/* Botão do card — ghost navy que preenche */
.gift-card button.btn-primary {
    width: calc(100% - 56px);
    margin: 24px 28px 28px;
    padding: 15px 14px;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(26, 26, 46, 0.30);
    border-radius: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    box-shadow: none;
}

.gift-card button.btn-primary::after {
    display: none;
}

.gift-card button.btn-primary:hover {
    background: var(--accent);
    color: #f5efe4;
    border-color: var(--accent);
    transform: none;
    box-shadow: 0 10px 24px rgba(26, 26, 46, 0.18);
}

.gift-card button.is-selected,
.gift-card button.btn-primary.is-selected {
    background: rgba(201, 169, 110, 0.10) !important;
    color: var(--primary-dark);
    border-color: rgba(138, 109, 59, 0.55);
    box-shadow: none;
}

.gift-card h3 {
    font-family: var(--sans);
}

/* ================= PAGAMENTO (REVISÃO) ================= */

.pagamento {
    min-height: 100dvh;
    padding: 96px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 18%, rgba(201, 169, 110, 0.05), transparent 42%),
        var(--background);
}

.payment-review-card {
    max-width: 880px;
    padding: 64px 60px;
    border: 1px solid var(--hairline);
    box-shadow: 0 30px 80px rgba(26, 26, 46, 0.09);
    text-align: center;
}

.payment-review-card > .panel-step {
    justify-content: center;
}

.payment-review-card .panel-step::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--primary-light);
    flex-shrink: 0;
}

.payment-review-text {
    color: var(--text-muted);
    text-align: center;
    max-width: 54ch;
    margin: 0 auto 30px;
}

.review-empty-state {
    padding: 30px;
    border: 1px dashed var(--hairline);
    background: transparent;
    color: var(--text-muted);
    text-align: center;
}

.review-list {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
    border-top: 1px solid var(--hairline-soft);
    text-align: left;
}

.review-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline-soft);
    transition: background 0.3s var(--ease);
}

.review-item:hover {
    background: rgba(201, 169, 110, 0.04);
}

.review-item strong,
.review-item span {
    display: block;
}

.review-item strong {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--accent);
}

.review-item span {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.9rem;
}

.review-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.qty-btn,
.remove-item-btn,
.review-secondary-btn {
    width: auto;
    margin-top: 0;
    padding: 11px 18px;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.25s var(--ease);
}

.qty-btn {
    background: transparent;
    border: 1px solid var(--hairline);
    color: var(--primary);
}

.qty-btn:hover {
    background: rgba(201, 169, 110, 0.12);
    border-color: var(--primary);
}

.remove-item-btn,
.review-secondary-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.remove-item-btn:hover,
.review-secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(201, 169, 110, 0.06);
}

.review-summary {
    margin-top: 0;
    padding: 30px 8px 0;
    border-top: 1px solid var(--hairline);
    background: none;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.review-summary span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.review-summary strong {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
    font-family: var(--sans);
    font-weight: 600;
}

.review-summary p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 34ch;
    text-align: right;
}

.review-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

.review-pay-btn {
    width: auto;
    margin-top: 0;
}

.review-secondary-btn {
    padding: 17px 30px;
}

/* Tabs legadas do fluxo de pagamento */
.tabs {
    display: flex;
    margin: 20px 0;
    gap: 10px;
}

.tab {
    flex: 1;
    padding: 12px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: var(--sans);
    font-weight: 600;
}

.tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.qrcode {
    background: var(--surface-alt);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    margin: 15px 0;
    font-weight: 600;
}

/* ================= LOADING OVERLAY ================= */

#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 31, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loadingOverlay .loading-text {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.spinner {
    border: 2px solid rgba(255,255,255,0.14);
    border-top: 2px solid var(--primary-light);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= HIDDEN / TRANSITIONS ================= */

.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

section {
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-in {
    animation: fadeIn 0.7s var(--ease) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================= FOOTER — NAVY DE BORDA A BORDA ================= */

.site-footer {
    margin: 96px calc(50% - 50vw) 0;
    background:
        radial-gradient(circle at 84% 0%, rgba(201, 169, 110, 0.10), transparent 36%),
        radial-gradient(circle at 10% 100%, rgba(255, 255, 255, 0.03), transparent 30%),
        linear-gradient(165deg, var(--accent) 0%, var(--accent-light) 55%, #0f3460 100%);
    border: none;
    border-top: 1px solid rgba(201, 169, 110, 0.35);
    padding: 80px 24px 34px;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary), var(--primary-light), transparent);
}

.site-footer .footer-inner {
    max-width: 780px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-col { min-width: 0; }

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-label {
    display: block;
    margin: 0;
    color: var(--primary-light);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    text-transform: uppercase;
}

.footer-brand h3 {
    margin: 0;
    font-family: var(--serif);
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.12;
    font-weight: 500;
}

.footer-date {
    margin: 0;
    color: var(--primary-light);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-transform: uppercase;
}

.footer-ornament {
    margin: 6px auto 2px;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    line-height: 1.85;
    max-width: 58ch;
}

/* Navegação central */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 38px;
}

.footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    border-bottom-color: rgba(201, 169, 110, 0.55);
}

/* Contato */
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-line {
    margin: 0;
    font-size: 0.98rem;
    word-break: break-word;
}

.footer-line a {
    color: var(--primary-light);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(201, 169, 110, 0.45);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-line a:hover {
    color: #ffffff;
    border-bottom-color: var(--primary-light);
}

.footer-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.86rem;
    line-height: 1.75;
    max-width: 52ch;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    padding: 9px 18px;
    border: 1px solid rgba(201, 169, 110, 0.35);
    background: rgba(201, 169, 110, 0.08);
    color: var(--primary-light);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--primary-light);
    transform: rotate(45deg);
}

/* Base do footer */
.footer-bottom {
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.82rem;
}

.footer-legal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.footer-legal a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
}

.footer-taxa-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.74rem;
    line-height: 1.6;
    text-align: left;
}

/* ================= RESPONSIVO ================= */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
    .rsvp-shell {
        grid-template-columns: 1fr 1.15fr;
    }

    .rsvp-aside {
        padding: 48px 40px;
    }

    .rsvp-card {
        padding: 48px 40px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px 20px;
    }

    .toolbar-card {
        padding: 26px 26px;
    }
}

/* --- Tablet portrait --- */
@media (max-width: 900px) {
    .rsvp-shell {
        grid-template-columns: 1fr;
    }

    .rsvp-aside {
        padding: 44px 36px;
        gap: 16px;
    }

    .panel-title {
        font-size: 2rem;
    }

    .rsvp-card {
        padding: 44px 36px;
    }
}

@media (max-width: 800px) {
    .presentes-toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar-card:not(:first-child) {
        border-left: none;
        border-top: 1px solid var(--hairline-soft);
    }

    .payment-review-card {
        max-width: 100%;
        padding: 48px 32px;
    }

    .review-summary p {
        text-align: left;
        max-width: 100%;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-copyright,
    .footer-taxa-note {
        text-align: center;
    }
}

/* --- Phone landscape / small tablet --- */
@media (max-width: 768px) {
    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 26px;
    }

    .hero-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.4em;
        text-indent: 0.4em;
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .hero p {
        font-size: 0.7rem;
        letter-spacing: 0.26em;
        text-indent: 0.26em;
    }

    .hero-ornament .line,
    .panel-ornament .line,
    .footer-ornament .line {
        width: 44px;
    }

    .contador-box {
        margin: 24px auto 34px;
        padding: 16px 34px;
    }

    #dias {
        font-size: 2.9rem;
    }

    .contador-box span {
        font-size: 0.6rem;
        letter-spacing: 0.3em;
        text-indent: 0.3em;
    }

    .btn-primary {
        width: 100%;
        padding: 18px 20px;
        font-size: 0.72rem;
        min-height: 54px;
    }

    .rsvp {
        padding: 44px 16px 40px;
        min-height: auto;
    }

    .rsvp-aside {
        padding: 36px 26px;
    }

    .rsvp-aside::before {
        inset: 10px;
    }

    .rsvp-card {
        padding: 34px 22px;
    }

    .panel-title {
        font-size: 1.8rem;
    }

    .panel-text {
        font-size: 0.88rem;
    }

    .panel-step {
        font-size: 0.62rem;
        letter-spacing: 0.26em;
    }

    .nao-comparece {
        min-height: auto;
        padding: 44px 16px;
    }

    .farewell-card {
        padding: 42px 24px;
    }

    .farewell-card::after {
        inset: 8px;
    }

    .card h2 {
        font-size: 1.7rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .input,
    input, select, textarea {
        padding: 14px;
        font-size: 16px; /* evita zoom no iOS */
    }

    label {
        font-size: 0.62rem;
    }

    /* --- Presentes --- */
    .presentes {
        padding: 44px 14px 0;
    }

    .presentes-topbar {
        text-align: left;
    }

    .comprador-info {
        display: block;
        max-width: 100%;
        font-size: 0.8rem;
        padding: 10px 14px;
        margin-bottom: 16px;
    }

    .presentes-masthead {
        margin-bottom: 34px;
    }

    .presentes-logo-slot {
        width: 100px;
        height: 100px;
        margin: 28px auto 16px;
    }

    .presentes-kicker {
        font-size: 0.62rem;
        letter-spacing: 0.26em;
        gap: 12px;
    }

    .presentes-kicker::before,
    .presentes-kicker::after {
        width: 26px;
    }

    .presentes-masthead h2 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
        margin: 16px auto 14px;
    }

    .presentes-masthead p {
        font-size: 0.88rem;
    }

    .presentes-tags {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        margin: 20px auto 28px;
    }

    .presentes-tags li:not(:first-child)::before {
        margin: 0 12px;
        width: 3px;
        height: 3px;
    }

    .toolbar-card {
        padding: 22px 18px;
        text-align: left;
    }

    .toolbar-card strong::before {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .cart-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 4px;
        text-align: left;
        gap: 14px;
    }

    .cart-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .cart-count {
        text-align: center;
    }

    .cart-review-btn {
        width: 100%;
        min-height: 50px;
    }

    .presentes-sort-bar {
        justify-content: space-between;
        padding: 14px 4px 0;
        margin-bottom: 26px;
    }

    .presentes-sort-bar select {
        flex: 1;
        max-width: none;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .gift-media {
        height: 260px;
    }

    .gift-head {
        padding: 20px 20px 0;
    }

    .gift-head h3 {
        font-size: 1.3rem;
    }

    .gift-desc,
    .gift-links {
        padding-left: 20px;
        padding-right: 20px;
    }

    .gift-card button.btn-primary {
        width: calc(100% - 40px);
        margin: 20px 20px 22px;
        min-height: 48px;
    }

    /* --- Revisão --- */
    .pagamento {
        padding: 44px 16px;
        min-height: auto;
    }

    .payment-review-card {
        padding: 40px 20px;
    }

    .review-item {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 2px;
        gap: 12px;
    }

    .review-item-actions,
    .review-actions {
        justify-content: stretch;
    }

    .review-pay-btn,
    .review-secondary-btn,
    .remove-item-btn,
    .qty-btn {
        width: 100%;
        min-height: 48px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .review-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 2px 0;
    }

    .review-summary strong {
        font-size: 2.3rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        min-height: 48px;
    }

    .btn-voltar {
        margin-top: 28px;
        min-height: 48px;
    }

    /* --- Footer --- */
    .site-footer {
        margin-top: 48px;
        padding: 52px 20px 26px;
    }

    .site-footer .footer-inner {
        gap: 30px;
        margin-bottom: 34px;
    }

    .footer-brand h3 {
        font-size: 1.8rem;
    }

    .footer-date {
        font-size: 0.66rem;
    }

    .footer-copy,
    .footer-note {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 10px 26px;
    }

    .footer-links a {
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .footer-line a {
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

@media (max-width: 640px) {
    .floating-cart {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
    .floating-cart svg {
        width: 22px;
        height: 22px;
    }

    /* Formato mais alto no celular: aproveita melhor as fotos verticais */
    .carousel-viewport {
        aspect-ratio: 3 / 4;
    }
}

/* --- Phone portrait --- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.9rem, 11vw, 2.4rem);
    }

    .hero-eyebrow {
        font-size: 0.58rem;
    }

    .hero p {
        font-size: 0.64rem;
    }

    .hero-ornament {
        gap: 12px;
        margin: 10px auto 18px;
    }

    .hero-ornament .line {
        width: 30px;
    }

    #dias {
        font-size: 2.5rem;
    }

    .contador-box {
        padding: 14px 26px;
    }

    .rsvp-aside {
        padding: 30px 20px;
    }

    .rsvp-card {
        padding: 28px 16px;
    }

    .panel-title {
        font-size: 1.6rem;
    }

    .farewell-card {
        padding: 34px 18px;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .presentes-masthead h2 {
        font-size: 1.7rem;
    }

    .gift-head h3 {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.05rem;
    }

    .gift-desc {
        font-size: 0.84rem;
    }

    .gift-card.is-selected::after {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 0.58rem;
    }

    .review-summary strong {
        font-size: 2rem;
    }

    .footer-brand h3 {
        font-size: 1.55rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Very small screens --- */
@media (max-width: 360px) {
    body {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .rsvp-card {
        padding: 24px 12px;
    }

    .btn-primary {
        padding: 15px 14px;
        font-size: 0.66rem;
        letter-spacing: 0.18em;
    }

    .presentes-masthead h2 {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 40px 14px 22px;
    }
}

/* --- Safe area for notched devices --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .hero {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .site-footer {
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
    }
}
