/* ============================================
   LISTA DE CASAMENTO — Visual Premium Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&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: #e8e5e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.hero {
    height: 100dvh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2000') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201, 169, 110, 0.12), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(26, 26, 46, 0.15), transparent 50%),
        linear-gradient(
            160deg,
            rgba(26, 26, 46, 0.82) 0%,
            rgba(22, 33, 62, 0.55) 40%,
            rgba(26, 26, 46, 0.70) 100%
        );
}

/* Decorative particles on hero */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -60px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.15), transparent 70%);
    animation: floatOrb 8s ease-in-out infinite;
}

.hero::after {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: -40px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.10), transparent 70%);
    animation: floatOrb 6s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.08); }
}

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

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

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.05;
    text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

/* Decorative divider under hero h1 */
.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px auto 20px;
    width: fit-content;
}

.hero-ornament .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

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

.hero p {
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.55);
}

/* Scroll indicator */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    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; }
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.4s var(--ease);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(138, 109, 59, 0.3);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(138, 109, 59, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(138, 109, 59, 0.3);
}

/* ================= RSVP ================= */

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

.nao-comparece {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 60px);
    padding: 40px 20px;
    text-align: center;
    background: var(--background);
}

.nao-comparece .card,
.rsvp .card {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.card {
    background: var(--card);
    padding: 44px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Subtle gold accent bar on cards */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
}

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

.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s var(--ease);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
}

.input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

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

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

.card h2 {
    text-align: center;
    margin-bottom: 28px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    display: block;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

button {
    width: 100%;
    margin-top: 24px;
    border: none;
    font-family: 'Inter', sans-serif;
}

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

.presentes {
    padding: 80px 20px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(201, 169, 110, 0.05), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(26, 26, 46, 0.03), transparent 35%),
        var(--background);
}

.presentes-header {
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 40px 360px 40px 36px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(201, 169, 110, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.06), transparent 20%),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 55%, #0f3460 100%);
    color: #fff;
    text-align: left;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.presentes-header::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.06);
    filter: blur(30px);
}

.presentes-brand-block {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.presentes-logo-slot {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentes-logo-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.presentes-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.08;
    margin: 6px 0 10px;
    color: #fff;
}

.presentes-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.25);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.presentes-heading p {
    max-width: 620px;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.comprador-info {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 5;
    max-width: 300px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(201, 169, 110, 0.14);
    border: 1px solid rgba(201, 169, 110, 0.32);
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.presentes-tags {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    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;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.55;
    margin: 0 14px;
}

.presentes-toolbar {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.toolbar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.toolbar-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;
}

.toolbar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 169, 110, 0.2);
}

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

.toolbar-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

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

.toolbar-card-highlight {
    /* mantém o mesmo fundo branco dos demais cards;
       o destaque vem da borda dourada superior já presente em ::before */
}

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

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

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

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

.carousel-intro .presentes-kicker {
    color: var(--primary);
    background: rgba(201, 169, 110, 0.12);
    border-color: rgba(201, 169, 110, 0.28);
}

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

.carousel-ornament {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-light);
}

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

.carousel-ornament .diamond {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12);
}

.carousel-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--accent);
    box-shadow:
        0 30px 70px rgba(26, 26, 46, 0.22),
        0 0 0 1px rgba(201, 169, 110, 0.18) inset,
        0 0 0 8px rgba(255, 255, 255, 0.85);
    isolation: isolate;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    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;
}

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

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.35), transparent 55%),
        linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 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: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(26, 26, 46, 0.45);
    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), transform 0.25s var(--ease), border-color 0.25s var(--ease);
    z-index: 3;
}

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

.carousel-arrow:hover {
    background: rgba(201, 169, 110, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.05);
}

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

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

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

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

.carousel-dot.is-active {
    width: 28px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}

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

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

@media (max-width: 980px) {
    .couple-carousel {
        margin: 22px auto 22px;
        padding: 0 8px;
    }
    .carousel-title {
        font-size: 1.6rem;
    }
    .carousel-frame {
        border-radius: var(--radius-lg);
        box-shadow:
            0 18px 40px rgba(26, 26, 46, 0.20),
            0 0 0 1px rgba(201, 169, 110, 0.18) inset,
            0 0 0 5px rgba(255, 255, 255, 0.85);
    }
    .carousel-arrow {
        width: 42px;
        height: 42px;
    }
    .carousel-prev { left: 12px; }
    .carousel-next { right: 12px; }
}

@media (max-width: 600px) {
    .couple-carousel {
        margin: 16px auto 18px;
    }
    .carousel-intro {
        gap: 10px;
        margin-bottom: 16px;
    }
    .carousel-title {
        font-size: 1.3rem;
    }
    .carousel-ornament .line {
        width: 36px;
    }
    .carousel-viewport {
        aspect-ratio: 4 / 5;
    }
    .carousel-frame {
        box-shadow:
            0 12px 28px rgba(26, 26, 46, 0.18),
            0 0 0 1px rgba(201, 169, 110, 0.18) inset,
            0 0 0 4px rgba(255, 255, 255, 0.85);
    }
    .carousel-arrow {
        width: 38px;
        height: 38px;
    }
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .carousel-dots {
        margin-top: 14px;
        gap: 8px;
    }
}

.cart-banner {
    max-width: 1180px;
    margin: 0 auto 10px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    transition: all 0.3s ease;
}

.cart-banner strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

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

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

.cart-count {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(201, 169, 110, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(138, 109, 59, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1);
    opacity: 1;
}

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

.floating-cart:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 36px rgba(138, 109, 59, 0.45), 0 6px 16px rgba(0, 0, 0, 0.18);
}

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

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

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-sizing: border-box;
}

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

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

@media (max-width: 640px) {
    .floating-cart {
        right: 18px;
        bottom: 18px;
        width: 58px;
        height: 58px;
    }
    .floating-cart svg {
        width: 24px;
        height: 24px;
    }
}

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

/* ================= GIFT CARDS ================= */

.gift-card {
    background: var(--surface);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    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(-8px);
    box-shadow: 0 20px 50px rgba(138, 109, 59, 0.12);
    border-color: rgba(201, 169, 110, 0.25);
}

.gift-card.is-selected {
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(138, 109, 59, 0.18);
    transform: translateY(-4px);
}

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

.gift-card.is-selected::after {
    content: "Selecionado";
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    pointer-events: none;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

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

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

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

/* Card content with padding */
.gift-head,
.gift-desc,
.gift-card button,
.gift-links {
    padding-left: 22px;
    padding-right: 22px;
}

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

.gift-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
}

.gift-head h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--accent);
    line-height: 1.3;
}

.price {
    background: rgba(201, 169, 110, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid rgba(201, 169, 110, 0.15);
}

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

.gift-desc {
    color: var(--text-muted);
    margin: 14px 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

.gift-card button {
    width: calc(100% - 44px);
    margin: 18px auto 22px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.gift-card button.is-selected {
    background: rgba(201, 169, 110, 0.1) !important;
    color: var(--primary);
    box-shadow: none;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

.gift-card h3 {
    font-family: 'Playfair Display', serif;
}

.gift-card span {
    display: block;
    font-weight: 600;
    margin: 15px 0;
}

/* ================= PAGAMENTO (Review) ================= */

.payment-review-card {
    max-width: 860px;
}

.payment-review-text {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.review-empty-state {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    color: var(--text-muted);
    text-align: center;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.review-item:hover {
    border-color: var(--primary-light);
    background: rgba(201, 169, 110, 0.03);
}

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

.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: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
}

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

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

.remove-item-btn:hover,
.review-secondary-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.review-summary {
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08), rgba(138, 109, 59, 0.05));
    border: 1px solid rgba(201, 169, 110, 0.15);
    text-align: left;
}

.review-summary span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.review-summary strong {
    font-size: 2rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.review-summary p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

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

/* ================= PAGAMENTO ================= */

.pagamento {
    min-height: 100dvh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(201, 169, 110, 0.04), transparent 40%),
        var(--background);
}

.tabs {
    display: flex;
    margin: 20px 0;
    gap: 10px;
}

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

.tab.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(138, 109, 59, 0.25);
}

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

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

#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loadingOverlay .loading-text {
    color: white;
    margin-top: 18px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.12);
    border-top: 3px solid var(--primary-light);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    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); }
}

/* ================= CONTADOR PREMIUM ================= */

.contador-box {
    margin: 28px 0 40px 0;
    text-align: center;
}

#dias {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-family: 'Playfair Display', serif;
    letter-spacing: 6px;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 2px 20px rgba(201, 169, 110, 0.3);
    line-height: 1;
}

.contador-box span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-top: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-weight: 500;
}

/* ================= BOTÃO VOLTAR ================= */

.btn-voltar {
    margin-top: 32px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 10px 20px;
    border-radius: 999px;
}

.btn-voltar:hover {
    color: var(--primary-dark);
    transform: translateX(-6px);
    background: rgba(201, 169, 110, 0.06);
}

/* ================= FOOTER ================= */

.site-footer {
    max-width: 1180px;
    margin: 56px auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 52px 56px 28px;
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
    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 {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 40px;
}

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

.footer-label {
    display: block;
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Brand column */
.footer-brand h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.footer-date {
    margin: 6px 0 18px;
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 46ch;
}

/* Nav column */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-light);
}

/* Contact column */
.footer-line {
    margin: 0 0 12px;
    font-size: 0.95rem;
    word-break: break-word;
}

.footer-line a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    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: var(--primary);
    border-bottom-color: var(--primary);
}

.footer-note {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.22);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

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

.footer-legal a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

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

.footer-sep {
    color: var(--border);
    user-select: none;
}

.footer-taxa-note {
    margin: 0;
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

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

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
    .presentes-header {
        padding: 28px 28px 28px 28px;
    }

    .comprador-info {
        position: static;
        max-width: 100%;
        margin-bottom: 18px;
    }

    .presentes-brand-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .presentes-heading h2 {
        font-size: 1.8rem;
    }

    .site-footer {
        padding: 44px 36px 24px;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 4px;
    }

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

    .presentes-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Tablet portrait --- */
@media (max-width: 800px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: left;
    }

    .footer-brand {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

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

    .presentes-toolbar {
        grid-template-columns: 1fr;
    }

    .payment-review-card {
        max-width: 100%;
    }

    .review-summary {
        padding: 20px;
    }

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

/* --- Phone landscape / small tablet --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .hero p {
        font-size: 0.88rem;
        letter-spacing: 1px;
    }

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

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-scroll-hint {
        bottom: 20px;
    }

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

    .card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
        max-width: 100%;
    }

    .card h2 {
        font-size: 1.5rem;
        margin-bottom: 22px;
    }

    .btn-primary {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
    }

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

    .gift-card button {
        width: calc(100% - 36px);
        min-height: 48px;
    }

    .gift-media {
        height: 180px;
    }

    .gift-head {
        padding-top: 16px;
        flex-wrap: wrap;
    }

    .gift-head,
    .gift-desc,
    .gift-card button,
    .gift-links {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tabs {
        flex-direction: column;
    }

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

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

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

    .input {
        padding: 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    input, select {
        padding: 14px;
        font-size: 16px;
    }

    label {
        margin-top: 10px;
        font-size: 0.82rem;
    }

    .cart-banner,
    .review-item {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

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

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

    .cart-review-btn,
    .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;
    }

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

    #dias {
        font-size: 2.8rem;
    }

    .contador-box {
        margin: 22px 0 32px;
    }

    .presentes {
        padding: 32px 8px;
    }

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

    .nao-comparece {
        min-height: auto;
        padding: 40px 14px;
    }

    .pagamento {
        padding: 40px 14px;
        min-height: auto;
    }

    .presentes-header {
        padding: 28px 18px 28px;
        border-radius: var(--radius-lg);
    }

    .presentes-brand-block {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .presentes-logo-slot {
        width: 48px;
        height: 48px;
    }

    .presentes-logo-slot img {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .presentes-heading {
        flex: 1;
        min-width: 0;
    }

    .presentes-heading h2 {
        font-size: 1.45rem;
        margin: 12px 0 10px;
    }

    .presentes-heading p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Kicker em largura total: alinha lado direito com o chip/título */
    .presentes-kicker {
        display: flex;
        justify-content: center;
        width: 100%;
        font-size: 0.7rem;
        padding: 8px 12px;
        letter-spacing: 0.16em;
        box-sizing: border-box;
    }

    .presentes-tags {
        font-size: 0.66rem;
        margin-top: 14px;
        letter-spacing: 0.05em;
    }

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

    .comprador-info {
        font-size: 0.78rem;
        padding: 8px 12px;
        margin-bottom: 14px;
        line-height: 1.4;
        border-radius: 10px;
    }

    .toolbar-card {
        padding: 18px 20px;
    }

    .site-footer {
        padding: 32px 22px 20px;
        margin: 36px auto 0;
        border-radius: var(--radius-lg);
    }

    .site-footer .footer-inner {
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-label {
        margin-bottom: 12px;
        font-size: 0.7rem;
    }

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

    .footer-date {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

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

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

    .btn-voltar {
        width: 100%;
        text-align: center;
        margin-top: 24px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- Phone portrait --- */
@media (max-width: 480px) {
    .hero {
        min-height: 100dvh;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 0.82rem;
        letter-spacing: 0.5px;
    }

    .hero-ornament {
        gap: 10px;
        margin: 6px auto 16px;
    }

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

    .hero-ornament .diamond {
        width: 6px;
        height: 6px;
    }

    .card {
        padding: 22px 16px;
        border-radius: 20px;
    }

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

    .presentes-header {
        padding: 26px 16px 26px;
    }

    .presentes-brand-block {
        gap: 10px;
    }

    .presentes-heading h2 {
        font-size: 1.3rem;
        margin: 10px 0 8px;
    }

    .presentes-heading p {
        font-size: 0.82rem;
    }

    .presentes-logo-slot {
        width: 44px;
        height: 44px;
    }

    .presentes-logo-slot img {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .presentes-kicker {
        font-size: 0.66rem;
        padding: 7px 10px;
    }

    .comprador-info {
        font-size: 0.74rem;
        padding: 7px 10px;
        margin-bottom: 12px;
    }

    .gift-card.is-selected::after {
        top: 14px;
        right: 14px;
        padding: 5px 10px;
        font-size: 0.68rem;
    }

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

    .price {
        padding: 5px 10px;
        font-size: 0.82rem;
    }

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

    .grid {
        margin-top: 20px;
    }

    .review-item {
        padding: 14px;
    }

    .review-summary {
        padding: 16px;
    }

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

    .footer-label {
        font-size: 0.68rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }

    #dias {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }

    .contador-box span {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
}

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

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

    .card {
        padding: 18px 14px;
    }

    .btn-primary {
        padding: 14px;
        font-size: 0.92rem;
    }

    .presentes-header {
        padding: 20px 14px 20px;
    }

    .presentes-heading h2 {
        font-size: 1.2rem;
    }

    .gift-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .site-footer {
        padding: 20px 12px 16px;
    }
}

/* --- 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));
    }
}
