/* ============================================================
   Casamento Day e Marcelo — Folha de estilos
   ============================================================ */

:root {
    --rose-1: #fbfaf7;
    --rose-2: #f5f1e8;
    --rose-3: #e4e9e4;
    --rose-4: #8fa492;
    --blush: #6e8573;
    --wine: #2b3e32;
    --wine-deep: #1c2b21;
    --gold: #bd9c56;
    --gold-soft: #ebdcb9;
    --ink: #2c3530;
    --muted: #5c6e61;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 18px 50px -22px rgba(43, 62, 50, 0.25);
    --shadow-card: 0 24px 60px -28px rgba(43, 62, 50, 0.35);
    --radius: 18px;
    --maxw: 1180px;
    --font-display: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background: var(--rose-2);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Fundo animado
   ============================================================ */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 18% 12%, #f2eae0 0%, transparent 42%),
        radial-gradient(circle at 82% 8%, #eef3ee 0%, transparent 40%),
        radial-gradient(circle at 75% 88%, #eae3d5 0%, transparent 48%),
        radial-gradient(circle at 10% 85%, #e1e9e3 0%, transparent 45%),
        linear-gradient(135deg, #f7f4eb 0%, #f1ebe0 40%, #e9efe9 70%, #e2ebd9 100%);
    background-size: 200% 200%;
    animation: gradientShift 22s ease-in-out infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50%; }
    50%  { background-position: 40% 30%, 60% 40%, 50% 60%, 30% 70%, 100% 50%; }
    100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50%; }
}

.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: floatOrb 18s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: #dce5dd; top: -60px; left: -40px; animation-delay: 0s; }
.orb-2 { width: 320px; height: 320px; background: #f0e7d5; bottom: -80px; right: -60px; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: #e8eae3; top: 40%; left: 55%; animation-delay: -11s; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 40px) scale(0.94); }
}

/* Pétalas e brilhos gerados via JS */
.petals, .sparkles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.petal {
    position: absolute;
    top: -8%;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #a7bca9, #748e77);
    border-radius: 150% 0 150% 0;
    opacity: 0.85;
    animation: fall linear infinite;
}
.petal:nth-child(odd) { background: linear-gradient(135deg, #dfcfab, #c3a15c); border-radius: 0 150% 0 150%; }
@keyframes fall {
    0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.9; }
    100% { transform: translateY(110vh) translateX(var(--drift, 80px)) rotate(540deg); opacity: 0; }
}

.spark {
    position: absolute;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 235, 200, 0.9);
    animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50%      { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Cabeçalho
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.monogram {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--wine);
    line-height: 1;
}
.monogram .amp { color: var(--gold); }
.header-nav { display: flex; gap: 1.6rem; }
.header-nav a {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--wine);
    font-weight: 500;
    position: relative;
}
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.header-nav a:hover::after { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    position: relative;
}
.hero-content { animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-pretitle {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--blush);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 7.5vw, 5.2rem);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 1.1;
    color: var(--wine-deep);
    font-weight: 500;
    text-shadow: 0 4px 20px rgba(255, 200, 220, 0.4);
}
.hero-title .name { display: inline-block; animation: floatName 6s ease-in-out infinite; }
.hero-title .name:nth-child(3) { animation-delay: 1s; }
.hero-title .ampersand {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.1em;
    text-transform: none;
    letter-spacing: normal;
    margin: 0 0.15em;
    font-weight: normal;
    animation: pulseHeart 2.4s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes floatName {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto 1.5rem;
    max-width: 360px;
}
.hero-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-divider .heart { fill: var(--rose-4); animation: beat 1.8s ease-in-out infinite; }
@keyframes beat {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.18); }
    40%      { transform: scale(1); }
    60%      { transform: scale(1.12); }
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 2.4rem;
}
.hero-cta {
    display: inline-block;
    padding: 0.95rem 2.6rem;
    background: linear-gradient(135deg, var(--wine), var(--blush));
    color: #fff;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px -10px rgba(138, 59, 92, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(138, 59, 92, 0.7);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid var(--blush);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}
.scroll-hint span {
    width: 4px;
    height: 8px;
    background: var(--blush);
    border-radius: 4px;
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(-6px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

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

/* ============================================================
   Seções
   ============================================================ */
.products-section { padding: 6rem 1.5rem 4rem; }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--wine-deep);
    font-weight: 600;
}
.section-desc {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--muted);
    margin-top: 0.8rem;
}

/* ============================================================
   Grid de produtos
   ============================================================ */
.products-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(28px);
    animation: cardIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 70px -30px rgba(94, 37, 64, 0.65);
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}
.card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-3), var(--gold-soft));
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .card-image img { transform: scale(1.07); }
.card-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8);
}
.card-store {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255,255,255,0.9);
    color: var(--wine);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-category {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 600;
}
.card-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--wine-deep);
    font-weight: 600;
    line-height: 1.2;
}
.card-desc {
    font-size: 0.88rem;
    color: var(--muted);
    flex: 1;
}
.card-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--wine);
}
.card-coupon {
    background: linear-gradient(135deg, rgba(255, 235, 205, 0.6), rgba(255, 210, 180, 0.4));
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}
.coupon-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
}
.coupon-code {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.coupon-code:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(201, 168, 106, 0.6); }
.code-text { font-weight: 700; color: var(--wine); letter-spacing: 0.04em; }
.code-copy {
    font-size: 0.68rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.card-buy {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, var(--wine), var(--blush));
    color: #fff;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-buy:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(138, 59, 92, 0.6); }

/* Estado vazio */
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 4rem 1rem;
    max-width: 480px;
    margin: 0 auto;
}
.empty-state svg { color: var(--rose-4); margin-bottom: 1rem; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--wine); margin-bottom: 0.5rem; }

/* ============================================================
   Seção Pix
   ============================================================ */
.pix-section {
    padding: 5rem 1.5rem 3rem;
}
.pix-card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
.pix-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 70px -30px rgba(43, 62, 50, 0.45);
}
.pix-icon-wrapper {
    color: #32bcad;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: rgba(50, 188, 173, 0.08);
    border-radius: 50%;
    animation: pulsePix 3s ease-in-out infinite;
}
@keyframes pulsePix {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(50, 188, 173, 0.2); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(50, 188, 173, 0); }
}
.pix-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.pix-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.pix-bank-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 45, 98, 0.1));
}
.pix-card-content {
    width: 100%;
}
.pix-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: left;
}
.pix-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1.1rem;
}
.pix-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pix-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
}
.pix-value {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--wine-deep);
    font-weight: 600;
    word-break: break-all;
}
.pix-value-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.btn-copy-pix {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--wine), var(--blush));
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-copy-pix:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(43, 62, 50, 0.6);
}
.btn-copy-pix svg {
    stroke: currentColor;
}
.pix-copy-label {
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .pix-card {
        padding: 2.2rem 1.6rem;
        gap: 1.5rem;
    }
    .pix-value {
        font-size: 0.95rem;
    }
    .pix-value-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .btn-copy-pix {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
}

/* ============================================================
   Mensagem
   ============================================================ */
.message-section { padding: 3rem 1.5rem 6rem; }
.message-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-soft);
}
.message-icon { color: var(--rose-4); margin-bottom: 1rem; }
.message-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--wine-deep);
    margin-bottom: 0.8rem;
}
.message-card p { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--muted); }

/* ============================================================
   Rodapé
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}
.footer-monogram {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--wine);
}
.footer-monogram span { color: var(--gold); }
.footer-names { font-family: var(--font-serif); font-size: 1.3rem; color: var(--wine-deep); margin: 0.3rem 0; }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.admin-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blush);
    opacity: 0.8;
}
.admin-link:hover { opacity: 1; }

.footer-details {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(43, 62, 50, 0.04);
}

.footer-detail-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    padding: 0.8rem 1.2rem;
    color: var(--wine);
    border-radius: 8px;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.footer-detail-item.is-link {
    background: rgba(255, 255, 255, 0.3);
    border: 1px dashed rgba(110, 133, 115, 0.35); /* usando --blush */
    cursor: pointer;
}

.footer-detail-item.is-link:hover {
    transform: translateY(-3px);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--gold);
    border-style: solid;
    box-shadow: 0 10px 25px rgba(43, 62, 50, 0.08);
}

.footer-detail-icon {
    flex-shrink: 0;
    color: var(--blush);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-detail-item.is-link:hover .footer-detail-icon {
    color: var(--gold);
    transform: scale(1.1);
}

.footer-detail-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--wine-deep);
}

.detail-value strong {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--wine);
}

/* Responsivo para o rodapé */
@media (max-width: 768px) {
    .footer-details {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        margin: 2rem 1rem;
        padding: 1.2rem;
    }
    
    .footer-detail-item {
        justify-content: flex-start;
        padding: 0.8rem;
    }
    
    .footer-detail-item:not(:last-child) {
        border-bottom: 1px solid rgba(43, 62, 50, 0.06);
        border-radius: 0;
    }
    
    .footer-detail-item.is-link {
        border-width: 1px;
        border-style: dashed;
    }
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--wine-deep);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Painel administrativo
   ============================================================ */
.admin-body { background: var(--rose-1); }

.admin-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.admin-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-brand { display: flex; align-items: center; gap: 0.8rem; }
.admin-brand strong { display: block; color: var(--wine-deep); font-size: 0.95rem; }
.admin-brand span { font-size: 0.78rem; color: var(--muted); }
.login-monogram { font-family: var(--font-display); font-size: 2rem; color: var(--wine); line-height: 1; }
.login-monogram.small { font-size: 1.7rem; }
.login-monogram span { color: var(--gold); }
.admin-nav { display: flex; gap: 1rem; align-items: center; }
.admin-nav a { font-size: 0.82rem; color: var(--wine); font-weight: 500; }
.admin-nav .logout { color: #c0392b; }

.admin-main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.admin-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 40px -20px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}
.admin-card-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--wine-deep);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--rose-2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--wine);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.field input, .field textarea, .field select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--rose-2);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--ink);
    background: #fffdfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blush);
    box-shadow: 0 0 0 3px rgba(233, 140, 174, 0.18);
}
.field textarea { resize: vertical; }

.file-upload { position: relative; }
.file-upload input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.file-preview {
    border: 2px dashed var(--rose-3);
    border-radius: 12px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background: #fffdfb;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.file-preview:hover { border-color: var(--blush); background: #fff8fb; }
.file-preview img { max-height: 220px; object-fit: contain; }
.file-hint { font-size: 0.78rem; color: var(--muted); padding: 0.6rem; }
.file-empty { text-align: center; color: var(--muted); padding: 1.5rem; }
.file-empty svg { color: var(--rose-4); margin-bottom: 0.4rem; }
.file-empty p { font-size: 0.9rem; color: var(--ink); }
.file-empty small { font-size: 0.72rem; color: var(--muted); }

.form-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--wine), var(--blush)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(138,59,92,0.5); }
.btn-ghost { background: transparent; color: var(--wine); border: 1.5px solid var(--rose-3); }
.btn-ghost:hover { background: var(--rose-1); }
.btn-danger { background: #fde8e8; color: #c0392b; }
.btn-danger:hover { background: #f8d0d0; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.76rem; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
    padding: 0.7rem 0.8rem;
    border-bottom: 2px solid var(--rose-2);
}
.admin-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rose-1); vertical-align: middle; }
.admin-table tr:hover td { background: #fff8fb; }
.col-thumb { width: 64px; }
.col-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.thumb-empty { color: var(--rose-3); }
.row-tag {
    display: inline-block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-left: 0.4rem;
}
.col-actions { white-space: nowrap; }
.inline { display: inline; }
code { background: var(--rose-1); padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.82rem; color: var(--wine); }
.empty-inline { color: var(--muted); padding: 1.5rem 0; text-align: center; }

/* Alertas */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: #e7f7ec; color: #1e7a3a; border: 1px solid #b6e2c4; }
.alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.alert-info { background: #e7f0fa; color: #2c5aa0; border: 1px solid #bcd0f0; }

/* Login */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}
.admin-login-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-card);
    text-align: center;
}
.admin-login-card h1 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--wine-deep); margin: 0.5rem 0 0.3rem; }
.login-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.8rem; }
.admin-login-card .field { text-align: left; margin-bottom: 1.1rem; }
.back-link { display: block; margin-top: 1.4rem; font-size: 0.8rem; color: var(--blush); }

/* ============================================================
   Estoque Esgotado e Badges de Status (Admin)
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-badge.status-available {
    background-color: #e2ebd9;
    color: #2b3e32;
    border: 1px solid rgba(43, 62, 50, 0.15);
}
.status-badge.status-sold-out {
    background-color: #ffdce0;
    color: #900;
    border: 1px solid rgba(153, 0, 0, 0.15);
}

.btn-warning {
    background: linear-gradient(135deg, #d39e00, #b58900) !important;
    color: #fff !important;
}
.btn-warning:hover {
    box-shadow: 0 8px 18px -8px rgba(181, 137, 0, 0.6) !important;
    transform: translateY(-1px);
}
.btn-success {
    background: linear-gradient(135deg, #28a745, #218838) !important;
    color: #fff !important;
}
.btn-success:hover {
    box-shadow: 0 8px 18px -8px rgba(33, 136, 56, 0.6) !important;
    transform: translateY(-1px);
}

/* ============================================================
   Estilos Esgotado (Público)
   ============================================================ */
.product-card.is-sold-out {
    opacity: 0.82;
    box-shadow: 0 10px 30px -15px rgba(43, 62, 50, 0.15);
}
.product-card.is-sold-out .card-image img {
    filter: grayscale(100%);
    opacity: 0.55;
}
.card-sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(43, 62, 50, 0.92);
    color: var(--gold-soft);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 5;
    pointer-events: none;
}
.product-card.is-sold-out .card-buy {
    background: #e0e0e0 !important;
    color: #888 !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid #ccc;
}

/* Bloco de aviso de compra (WhatsApp) */
.card-notice {
    background: rgba(245, 241, 232, 0.6);
    border: 1px dashed rgba(143, 164, 146, 0.4);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.45;
}
.card-notice p {
    margin-bottom: 0.35rem;
}
.card-notice p:last-child {
    margin-bottom: 0;
}
.card-notice strong {
    color: var(--wine-deep);
}
.card-notice-title {
    font-weight: 600;
    color: var(--wine);
    margin-bottom: 0.2rem;
}
.whatsapp-links {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gold) !important;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
}
.whatsapp-btn:hover {
    color: var(--wine) !important;
    transform: translateY(-1px);
}
.whatsapp-btn svg {
    fill: currentColor;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .header-nav { gap: 1rem; }
    .header-nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
    .products-grid { gap: 1.3rem; }
    .hero { min-height: 88vh; }
    .hero-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }
    .hero-title .name {
        display: block;
    }
    .hero-title .ampersand {
        margin: 0.2rem 0;
    }
    .scroll-hint { display: none; }
}
