@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/poppins-800.woff2") format("woff2");
}
@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/caveat-700.woff2") format("woff2");
}

:root {
    --color-primary: #1a5d3a;
    --color-primary-dark: #0f3d26;
    --color-accent: #d4a017;
    --color-bg: #f7f7f5;
    --color-text: #222;
    --color-danger: #b3261e;
    --color-success: #1a5d3a;
    --radius: 8px;
    --font-family: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; }

.site-body {
    background: linear-gradient(180deg, #f3faf5 0%, var(--color-bg) 320px);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--color-primary-dark);
    color: #fff;
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.9rem 0.3rem 0.3rem;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.brand-logo {
    display: block;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 3px 10px rgba(212, 160, 23, 0.4);
}

.brand-text-shine {
    letter-spacing: 0.01em;
}

/* Reflexo diagonal passando pela marca (logo + texto) de tempos em tempos -
   efeito unico ("sheen"), sem mexer na cor/legibilidade do texto (a versao
   anterior, com gradiente no proprio texto, ficou poluida). */
.brand::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -75%;
    width: 45%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: brand-sheen 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes brand-sheen {
    0% { left: -75%; }
    30% { left: 130%; }
    100% { left: 130%; }
}

.link-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.nav-menu { position: relative; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    margin-top: 0;
    transition: background 0.15s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.2); }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 61, 38, 0.22);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 50;
    flex-direction: column;
    animation: nav-dropdown-in 0.18s ease-out;
}
.nav-dropdown.open { display: flex; }

.nav-dropdown a, .nav-dropdown .link-button {
    display: block;
    width: 100%;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    margin-top: 0;
}
.nav-dropdown a:hover, .nav-dropdown .link-button:hover { background: var(--color-bg); }

.nav-dropdown-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #999;
    padding: 0.55rem 0.85rem 0.15rem;
}
.nav-dropdown-group a { padding-left: 1.35rem; font-size: 0.9rem; }

@keyframes nav-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Destaque animado no link "RV Sorteios" do menu da loja - ele leva pra um
   site diferente (rifas), entao precisa se diferenciar visualmente do resto
   dos itens do menu. */
.nav-dropdown a.nav-link-sorteios {
    background: linear-gradient(120deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    color: #fff;
    font-weight: 600;
    animation: nav-sorteios-shimmer 3s ease-in-out infinite;
}
.nav-dropdown a.nav-link-sorteios:hover {
    background: linear-gradient(120deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    color: #fff;
}

@keyframes nav-sorteios-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Destaque no link "RV Imports Eletronicos" do menu da pagina de rifas -
   mesma ideia (avisar que o link leva pra outro site), mas com efeito e
   cores diferentes do .nav-link-sorteios acima: paleta da loja (indigo/
   ciano) e pulso de brilho ao redor em vez de brilho correndo no fundo. */
.nav-dropdown a.nav-link-loja {
    background: linear-gradient(120deg, var(--store-primary), var(--store-accent));
    color: #fff;
    font-weight: 600;
    animation: nav-loja-pulse 2s ease-in-out infinite;
}
.nav-dropdown a.nav-link-loja:hover {
    background: linear-gradient(120deg, var(--store-primary-dark), var(--store-accent));
    color: #fff;
}

@keyframes nav-loja-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}

.inline-form { display: inline; }

main.container { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 60vh; }

.flash-messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; }
.flash-success { background: #e3f2e6; color: var(--color-success); }
.flash-danger { background: #fbe4e2; color: var(--color-danger); }
.flash-warning { background: #fff4dd; color: #8a5a00; }
.flash-info { background: #e6f0fb; color: #1a4a8a; }

.card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.25rem;
}

/* Variante ainda mais suave, com leve elevacao ao passar o mouse (area do cliente) */
.card--soft {
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 61, 38, 0.09);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card--soft:hover { box-shadow: 0 12px 34px rgba(15, 61, 38, 0.14); transform: translateY(-1px); }

.text-hint { font-size: 0.88rem; color: #666; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table-responsive { overflow-x: auto; padding: 0; }
.table-responsive table { border-radius: 12px; overflow: hidden; }

.progress-bar { background: #eee; border-radius: 999px; overflow: hidden; height: 10px; }
.progress-bar-fill { background: linear-gradient(90deg, var(--color-accent), #e8b93a); height: 100%; }

.raffle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.raffle-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.raffle-card-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f3d26, #1a5d3a);
}
.raffle-card-image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }

.raffle-card-body { padding: 1rem 1.1rem 1.1rem; }
.raffle-card--no-image .raffle-card-body { padding-top: 1.4rem; }
.raffle-card--no-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.raffle-card-description { margin: 0 0 0.65rem; font-size: 0.88rem; color: #444; line-height: 1.35; }

.raffle-card-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}
.raffle-card-price-card-label { font-size: 0.72rem; color: #666; }
.raffle-card-price-card-value { font-size: 1rem; font-weight: 800; color: var(--color-primary-dark); }

.raffle-card .progress-bar { margin-bottom: 0.4rem; }
.raffle-card .text-hint { margin: 0 0 0.75rem; }
.raffle-card .btn { width: 100%; text-align: center; margin-top: 0; padding: 0.55rem 1rem; font-size: 0.88rem; }

/* ==========================================================================
   RV Imports Eletrônicos — loja (vitrine)
   Paleta e componentes próprios (indigo/violeta + ciano), isolados das
   classes de rifa acima: nada aqui é usado nas páginas de rifa, e nada
   das classes de rifa é reaproveitado aqui.
   ========================================================================== */

:root {
    --store-primary: #4f46e5;
    --store-primary-dark: #3730a3;
    --store-accent: #06b6d4;
    --store-bg: #f7f7fb;
    --store-ink: #1e1b3a;
    --store-muted: #6b6884;
    --store-radius-lg: 24px;
}

.store-body {
    background:
        radial-gradient(1100px 520px at 12% -10%, rgba(79, 70, 229, 0.14), transparent 60%),
        radial-gradient(900px 480px at 100% 0%, rgba(6, 182, 212, 0.12), transparent 55%),
        var(--store-bg);
    min-height: 100vh;
}

/* --- Header (glass, sticky) --- */
.store-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(30, 27, 58, 0.06);
}
.store-header nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; }

.store-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--store-ink);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}
.store-brand-logo { display: block; height: 34px; width: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(30, 27, 58, 0.18); }

.store-header .nav-toggle { background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.16); color: var(--store-primary-dark); }
.store-header .nav-toggle:hover { background: rgba(79, 70, 229, 0.14); }

/* --- Hero --- */
.store-hero { text-align: center; padding: 2.75rem 0.5rem 0.5rem; max-width: 640px; margin: 0 auto; }
.store-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(79, 70, 229, 0.08);
    color: var(--store-primary-dark);
    border: 1px solid rgba(79, 70, 229, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.product-grid-wrap { position: relative; }

/* Flutua por cima dos cards (nao empurra o layout) - vidro fosco (blur)
   sobre o topo do carrossel, some ao rolar o dedo/mouse pra descobrir. */
.store-scroll-hint {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(20, 17, 40, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 10px 24px -8px rgba(20, 17, 40, 0.35);
    pointer-events: none;
}
.store-scroll-hint-icon { display: inline-block; animation: store-scroll-hint-nudge 1.4s ease-in-out infinite; }
@keyframes store-scroll-hint-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .store-scroll-hint-icon { animation: none; }
}

.store-hero-title {
    font-size: 2.1rem;
    line-height: 1.18;
    margin: 0 0 0.65rem;
    color: var(--store-ink);
    background: linear-gradient(120deg, var(--store-ink), var(--store-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.store-hero-subtitle { color: var(--store-muted); font-size: 1rem; margin: 0; line-height: 1.55; }

/* --- Grid de produtos --- */
.store-category-heading {
    margin: 2.75rem 0 1rem;
    font-size: 1.15rem;
    color: var(--store-ink);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(30, 27, 58, 0.08);
    /* .store-header e sticky (~64px) - sem isso, o link do menu
       "#categoria-N" rola o titulo pra debaixo do header, escondido, e so
       a foto do produto fica visivel (ver app/static/js/nav.js). */
    scroll-margin-top: 5rem;
}
.store-category-heading:first-of-type { margin-top: 2.25rem; }

/* Rolagem horizontal (carrossel) em vez de quebrar linha - cada card tem
   largura fixa, o proximo card ja "espia" na borda como dica visual, alem
   da mensagem flutuante de arraste (ver .store-scroll-hint). */
.product-grid-wrap { margin-top: 2.25rem; }
.store-category-heading + .product-grid-wrap { margin-top: 0; }

.product-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.6rem;
    -webkit-overflow-scrolling: touch;
}
.product-grid::-webkit-scrollbar { height: 7px; }
.product-grid::-webkit-scrollbar-track { background: transparent; }
.product-grid::-webkit-scrollbar-thumb { background: rgba(79, 70, 229, 0.25); border-radius: 999px; }
.product-grid::-webkit-scrollbar-thumb:hover { background: rgba(79, 70, 229, 0.4); }

.product-card {
    background: #fff;
    border-radius: var(--store-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(30, 27, 58, 0.05);
    box-shadow: 0 1px 2px rgba(30, 27, 58, 0.04), 0 12px 28px -8px rgba(30, 27, 58, 0.12);
    display: flex;
    flex-direction: column;
    flex: 0 0 260px;
    width: 260px;
    scroll-snap-align: start;
    animation: store-card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 60ms);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.18);
    box-shadow: 0 1px 2px rgba(30, 27, 58, 0.04), 0 22px 40px -10px rgba(79, 70, 229, 0.28);
}

.product-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(100deg, #eef0ff 25%, #f5f3ff 37%, #eef0ff 63%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-media:not(.product-card-media--empty) { background-size: 400% 100%; animation: store-shimmer 2.2s ease-in-out infinite; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-media--empty { color: var(--store-primary); opacity: 0.5; }
.product-card-media--empty svg { width: 40px; height: 40px; }

.product-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-card-tag {
    display: inline-block;
    background: rgba(79, 70, 229, 0.09);
    color: var(--store-primary-dark);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin: 0 0 0.5rem;
}
.product-card-name { margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 700; color: var(--store-ink); }
.product-card-description { margin: 0 0 1rem; font-size: 0.86rem; color: var(--store-muted); line-height: 1.45; flex: 1; }

.product-card-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    background: none;
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--store-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    margin: 0 0 0.85rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.product-card-video-btn:hover { background: rgba(79, 70, 229, 0.08); border-color: rgba(79, 70, 229, 0.4); }
.product-card-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--store-primary);
    color: #fff;
    font-size: 0.55rem;
    line-height: 1;
    padding-left: 1px;
}

.product-card-footer { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; margin-top: auto; }
.product-card-price { font-size: 1.08rem; font-weight: 800; color: var(--store-ink); }
.product-card-price--unset { font-size: 0.82rem; font-weight: 700; color: #8b87a3; }

.product-card-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--store-primary), #6d28d9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px -4px rgba(79, 70, 229, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card-cta img { width: 18px; height: 18px; border-radius: 50%; }
.product-card-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 24px -4px rgba(79, 70, 229, 0.55); }
.product-card-cta:active { transform: translateY(0) scale(0.98); }

/* --- Estado vazio --- */
.store-empty-state {
    text-align: center;
    max-width: 420px;
    margin: 2.5rem auto 0;
    padding: 3rem 1.75rem;
    background: #fff;
    border-radius: var(--store-radius-lg);
    box-shadow: 0 12px 34px -10px rgba(30, 27, 58, 0.14);
}
.store-empty-state-icon {
    width: 64px; height: 64px; margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.12));
    color: var(--store-primary);
}
.store-empty-state-icon svg { width: 28px; height: 28px; }
.store-empty-state h2 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--store-ink); }
.store-empty-state p { margin: 0 0 1.4rem; color: var(--store-muted); font-size: 0.92rem; line-height: 1.55; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--store-primary), #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 30px -6px rgba(79, 70, 229, 0.6); }
.store-btn img { width: 19px; height: 19px; border-radius: 50%; }

@keyframes store-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes store-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .product-card { animation: none; }
    .product-card-media:not(.product-card-media--empty) { animation: none; }
}

@media (max-width: 640px) {
    .store-hero { padding: 1.75rem 0.25rem 0.25rem; }
    .store-hero-title { font-size: 1.55rem; }
    .store-hero-subtitle { font-size: 0.9rem; }
    .product-grid { gap: 0.9rem; }
    .product-grid-wrap { margin-top: 1.5rem; }
    .store-scroll-hint { font-size: 0.66rem; padding: 0.35rem 0.7rem; top: 0.5rem; right: 0.5rem; }
    .product-card { flex-basis: 180px; width: 180px; }
    .store-category-heading { margin: 1.75rem 0 0.75rem; font-size: 1rem; }
    .store-category-heading:first-of-type { margin-top: 1.5rem; }
    .product-card-body { padding: 0.9rem 0.95rem 1.05rem; }
}

.finished-raffles-heading { margin-top: 2.5rem; }

.finished-raffle-winner-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: linear-gradient(135deg, #fff7e0, #fdecc0);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.75rem;
}
.finished-raffle-winner-label { font-size: 0.7rem; font-weight: 700; color: #8a5a00; text-transform: uppercase; letter-spacing: 0.03em; }
.finished-raffle-winner-name { font-size: 0.92rem; font-weight: 700; color: #6b4e00; }

.raffle-result-card { text-align: center; max-width: 420px; }
.raffle-result-label { font-size: 0.8rem; color: #777; margin: 0 0 0.3rem; }
.raffle-result-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 0 0 0.6rem;
    letter-spacing: 0.03em;
}
.raffle-result-winner { font-size: 1.05rem; margin: 0 0 0.5rem; }


form.form-box { max-width: 480px; }
label { display: block; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    margin-top: 0.25rem;
    font: inherit;
}

input::placeholder, textarea::placeholder {
    color: #b7b7b7;
    opacity: 1;
    font-weight: 400;
}
.field-errors { color: var(--color-danger); font-size: 0.85rem; margin: 0.2rem 0 0; padding: 0; list-style: none; }

button, .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(15, 61, 38, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 61, 38, 0.32); }
button:active, .btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(15, 61, 38, 0.25); }
button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, var(--color-danger), #8a1d17); box-shadow: 0 4px 14px rgba(179, 38, 30, 0.22); }
.btn-secondary { background: linear-gradient(135deg, #6b6b6b, #444); box-shadow: none; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid #f2f2f2; }
th { background: #fafafa; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; font-weight: 700; }
tbody tr:hover td { background: #fafbfa; }
tbody tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.78rem; }
.badge-draft { background: #eee; }
.badge-active, .badge-paid { background: #e3f2e6; color: var(--color-success); }
.badge-finished { background: #e6f0fb; color: #1a4a8a; }
.badge-cancelled, .badge-paused, .badge-refunded { background: #fbe4e2; color: var(--color-danger); }
.badge-pending { background: #fff4dd; color: #8a5a00; }
.badge-expired { background: #eee; color: #666; }

.account-subtitle { color: #555; margin: -0.5rem 0 1.5rem; }

.account-order { animation: checkout-fade-in 0.4s ease-out; }

.account-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.account-order-header .checkout-eyebrow { margin: 0; }

.account-order-numbers { justify-content: flex-start; margin: 0.75rem 0; }

.account-order-empty { color: #777; font-size: 0.9rem; margin: 0.75rem 0; }

.account-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.account-order-meta { color: #777; font-size: 0.85rem; }

.account-order-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.account-order-link:hover { text-decoration: underline; }

.account-empty-state { text-align: center; padding: 2.5rem 1.25rem; color: #555; }

.site-footer { text-align: center; padding: 1.5rem; color: #777; font-size: 0.85rem; }

/* --- Botoes flutuantes (WhatsApp / Instagram) --- */

.floating-actions {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 40;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.floating-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28); }

.floating-btn img { width: 100%; height: 100%; border-radius: 50%; display: block; }

.error-page { text-align: center; padding: 3rem 1rem; }

.admin-shell { display: flex; min-height: 100vh; background: var(--color-bg); }

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--color-primary-dark), #0a2618);
    color: #fff;
    padding: 1.5rem 0 1.25rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    font-weight: 800;
    font-size: 1.05rem;
}

.admin-nav { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; padding: 0 0.75rem; overflow-y: auto; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-nav-link.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 3px 0 0 var(--color-accent); }

.admin-nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.9rem 0.9rem 0.2rem;
}
/* "Cadastro" tem o mesmo visual de botao que os demais links (ex: Produtos),
   so que e um <button> que expande/recolhe o submenu abaixo (ver admin.js). */
.admin-nav-link--toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.admin-nav-chevron { margin-left: auto; font-size: 0.65rem; transition: transform 0.15s ease; }
.admin-nav-link--toggle.is-open .admin-nav-chevron { transform: rotate(180deg); }

.admin-nav-submenu { display: none; flex-direction: column; gap: 0.2rem; margin-top: 0.2rem; }
.admin-nav-submenu.is-open { display: flex; }
.admin-nav-link--sub { padding-left: 2.1rem; font-size: 0.88rem; }

.admin-sidebar-footer { padding: 1rem 0.75rem 0; }
.admin-sidebar-footer .btn { width: 100%; margin-top: 0; }

.admin-content { flex: 1; padding: 2rem 2.5rem; max-width: 1280px; }

/* Hamburguer + backdrop do menu off-canvas - ficam ocultos no desktop,
   viram visiveis dentro do breakpoint 900px abaixo. */
.admin-nav-toggle { display: none; }
.admin-sidebar-backdrop { display: none; }

/* --- Admin: Produtos/Categorias (RV Imports Eletronicos) ---
   Paginas com midia (fotos/video) se beneficiam de um layout em cards em
   vez das tabelas simples usadas no resto do admin (rifas/pedidos/clientes,
   que nao tem foto por linha). Reaproveita .card/.badge/.btn existentes. */

.admin-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-page-header h1 { margin: 0; }

.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }

.admin-product-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; margin-bottom: 0; }

.admin-product-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #f1f3f0, #e4e8e2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-product-card-placeholder { color: #99a19b; font-size: 0.82rem; font-weight: 600; }
.admin-product-card-badge { position: absolute; top: 0.6rem; right: 0.6rem; }

.admin-product-card-body { padding: 1rem 1.1rem 0.2rem; flex: 1; }
.admin-product-card-category { margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #8a8f86; }
.admin-product-card-name { margin: 0 0 0.35rem; font-size: 1rem; }
.admin-product-card-price { margin: 0 0 0.35rem; font-weight: 800; color: var(--color-primary-dark); }
.admin-product-card-media-count { margin: 0; font-size: 0.78rem; color: #777; }

.admin-product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.85rem;
}

/* --- Formulario de produto, em secoes separadas --- */
.admin-form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: start; }
.admin-form-grid .card { margin-bottom: 1.25rem; }

.admin-form-card-title { font-size: 1rem; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #eee; }
.admin-form-card-subtitle { font-weight: 500; color: #888; font-size: 0.85rem; }

.admin-photo-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.admin-photo-thumb { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; }
.admin-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-photo-thumb-delete { position: absolute; top: 4px; right: 4px; margin: 0; }
.admin-photo-remove-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.admin-photo-remove-btn:hover { background: var(--color-danger); }

.admin-video-preview { width: 100%; max-width: 100%; border-radius: 10px; display: block; margin-bottom: 0.6rem; background: #000; }
.admin-danger-link { color: var(--color-danger); font-size: 0.85rem; }
.admin-form-submit-row { margin-top: 1.25rem; }

@media (max-width: 900px) {
    .admin-form-grid { grid-template-columns: 1fr; }

    .admin-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        position: fixed;
        top: 0.85rem;
        left: 0.85rem;
        z-index: 60;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 10px;
        background: var(--color-primary-dark);
        cursor: pointer;
    }
    .admin-nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 55;
        width: 260px;
        max-width: 80vw;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    .admin-sidebar.is-open { transform: translateX(0); box-shadow: 8px 0 24px rgba(0, 0, 0, 0.25); }
    /* Botao hamburguer fica fixo no canto por cima da sidebar (mesmo com
       ela aberta, pra dar pra fechar de novo) - abre espaco aqui pra nao
       sobrepor o texto da marca. */
    .admin-brand { padding-left: 3.25rem; }

    .admin-sidebar-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(0, 0, 0, 0.45);
    }

    .admin-content { padding: 4.25rem 1.1rem 2rem; max-width: 100%; }
}

/* --- Dashboard: cards de estatistica + seletor de rifa --- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-card-label { font-size: 0.8rem; color: #777; font-weight: 600; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--color-primary-dark); line-height: 1; }

.stat-card--split { flex-direction: row; gap: 1.5rem; }
.stat-card-split-item { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 0; }
.stat-card-split-item + .stat-card-split-item { padding-left: 1.5rem; border-left: 1px solid #eee; }

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.admin-section-header h2 { margin: 0; }

.raffle-selector-form select {
    margin-top: 0;
    min-width: 260px;
    font-weight: 600;
}

/* --- Checkout / pagamento Pix --- */

.checkout-card {
    max-width: 480px;
    margin: 1rem auto;
    padding: 2rem 1.75rem;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(15, 61, 38, 0.12);
    animation: checkout-fade-in 0.4s ease-out;
}

.checkout-card--muted {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.checkout-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.checkout-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.35rem;
}

.checkout-title {
    font-size: 1.35rem;
    margin: 0 0 1.25rem;
    color: var(--color-primary-dark);
}

.success-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkout-pending-quantity {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.checkout-pending-quantity-count { font-size: 2.5rem; font-weight: 800; color: var(--color-primary-dark); line-height: 1; }
.checkout-pending-quantity-label { font-size: 1rem; color: #666; }

.success-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.checkout-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 0.25rem 0 1.25rem;
}

.checkout-timer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    background: #fff7e6;
    border: 1px solid #f1d9a0;
    border-radius: 14px;
    padding: 0.6rem 1.5rem;
    margin: 0 auto 1.5rem;
}

.checkout-timer-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a6a1a;
}

.checkout-timer-value {
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #8a6a1a;
}

.checkout-timer--urgent { background: #fdeceb; border-color: #f3b7b0; animation: checkout-pulse 1s infinite; }
.checkout-timer--urgent .checkout-timer-label,
.checkout-timer--urgent .checkout-timer-value { color: var(--color-danger); }
.checkout-timer--expired .checkout-timer-value { color: var(--color-danger); }

.checkout-qr {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1rem;
    display: inline-block;
    margin-bottom: 1.25rem;
}
.checkout-qr img { width: 220px; max-width: 100%; display: block; border-radius: 8px; }

.checkout-copycode {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.checkout-copycode input {
    flex: 1;
    font-family: monospace;
    font-size: 0.78rem;
    background: #f7f7f5;
    margin-top: 0;
}
.checkout-copycode .btn { margin-top: 0; white-space: nowrap; }
.btn-copied { background: var(--color-success) !important; }

.checkout-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
}

.checkout-loading { padding: 1.5rem 0; }
.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border: 4px solid #eee;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Tela de parabens --- */

.success-screen {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem 1.75rem;
    text-align: center;
    background: linear-gradient(160deg, #ffffff, #f3fbf5);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(15, 61, 38, 0.16);
    animation: checkout-fade-in 0.5s ease-out;
}

.success-emoji {
    font-size: 4rem;
    animation: success-bounce 1.2s ease-in-out infinite;
}

.success-title {
    font-size: 2.2rem;
    margin: 0.25rem 0 0.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.success-subtitle {
    color: #555;
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
}

.success-message {
    color: #444;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
}

/* --- Hero da rifa (raffle_detail) - o foco visual da pagina --- */

.raffle-hero {
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 24px;
    margin-bottom: 1.75rem;
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 61, 38, 0.28);
}

.raffle-hero-image {
    width: 100%;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f3d26, #1a5d3a);
}
.raffle-hero-image img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
}

.raffle-hero-body { position: relative; padding: 1.35rem 1.5rem 1.5rem; }
.raffle-hero-body::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.3), transparent 70%);
    pointer-events: none;
}

.raffle-hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin: 0;
}

.raffle-hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.raffle-hero-description-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    margin: 0 auto 0.9rem;
    max-width: 480px;
    text-align: center;
}

.raffle-hero-description-label {
    font-family: "Caveat", cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.15rem;
    line-height: 1;
}

.raffle-hero-description { color: #fff; margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }

.raffle-hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}
.raffle-hero-price small { font-size: 0.7rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); }

.raffle-hero-progress { margin-top: 0.9rem; max-width: 420px; position: relative; }
.progress-bar--hero { background: rgba(255, 255, 255, 0.2); height: 7px; }
.raffle-hero-progress-label { font-size: 0.74rem; color: rgba(255, 255, 255, 0.85); margin: 0.4rem 0 0; }

.scarcity-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #fff3d6, #ffe2a8);
    border: 1px solid #f1c97a;
    color: #8a5a00;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.18);
    animation: scarcity-pulse 2.2s ease-in-out infinite;
}
.scarcity-badge-icon { font-size: 1rem; }

@keyframes scarcity-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

.regulation-disclosure {
    width: fit-content;
    max-width: 100%;
    margin: -0.5rem auto 1.25rem;
}
.regulation-disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: fit-content;
    margin: 0 auto;
    color: var(--color-text-muted, #8a8f98);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.regulation-disclosure-summary::-webkit-details-marker { display: none; }
.regulation-disclosure-arrow { font-size: 0.7rem; transition: transform 0.2s ease; }
.regulation-disclosure[open] .regulation-disclosure-arrow { transform: rotate(180deg); }
.regulation-disclosure-content {
    margin: 0.6rem auto 0;
    max-width: 640px;
    color: #4b5563;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-line;
    text-align: left;
}

.quantity-heading {
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
}

/* --- Nota "numeros automaticos" --- */

.auto-numbers-note {
    display: block;
    background: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
}
.auto-numbers-note p { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--color-text); }

/* --- Grade de selecao rapida de quantidade --- */

.quantity-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.quantity-quick-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: linear-gradient(160deg, #1c2333, #0f1420);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.1rem 0.5rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quantity-quick-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24); }

.quantity-quick-tile--popular {
    background: linear-gradient(160deg, #e3f9e9, #c9f2d6);
    color: var(--color-primary-dark);
    box-shadow: 0 6px 18px rgba(26, 93, 58, 0.22);
}

.quantity-quick-tile-badge {
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(26, 93, 58, 0.35);
}

.quantity-quick-tile-amount { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.quantity-quick-tile-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

/* --- Stepper + botao de participar --- */

.quantity-cta-row {
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border-radius: 14px;
    padding: 0.35rem;
    flex-shrink: 0;
}
.quantity-stepper-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--color-primary-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease;
}
.quantity-stepper-btn:hover { background: #f0f0f0; }

.quantity-stepper input {
    width: 3.4rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-top: 0;
    padding: 0.3rem 0;
}

.quantity-cta {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 61, 38, 0.3);
    margin-top: 0;
    min-width: 0;
    flex-wrap: wrap;
}
.quantity-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 61, 38, 0.38); }

.quantity-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.quantity-cta-label { white-space: nowrap; }
.quantity-cta-total { white-space: nowrap; opacity: 0.9; }

.quantity-warning {
    background: #fbe4e2;
    color: var(--color-danger);
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

/* --- Titulos premiados: lista, sem revelar o numero antes de pago --- */

.prize-section { margin-top: 1.75rem; margin-bottom: 1.75rem; }

.prize-section-heading { font-size: 1.05rem; font-weight: 700; margin: 0; }
.prize-section-subheading { font-size: 0.85rem; color: #777; margin: 0.15rem 0 0.9rem; }

.prize-list { display: flex; flex-direction: column; gap: 0.55rem; }

.prize-list-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.prize-list-row--won { background: linear-gradient(135deg, #fffaf0, #fdecc0); }

.prize-list-number {
    flex-shrink: 0;
    background: #4b5563;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}
.prize-list-row--won .prize-list-number { background: linear-gradient(135deg, var(--color-accent), #a87c0f); }

.prize-list-description {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.85rem;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prize-list-row--won .prize-list-description { color: #6b4e00; font-weight: 600; }

.prize-list-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.prize-list-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-success); }
.prize-list-dot--won { background: var(--color-accent); }

/* --- Numero premiado --- */

.success-number--won {
    background: linear-gradient(135deg, var(--color-accent), #a87c0f);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-accent);
}

.prize-won-section {
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fff7e0, #fdecc0);
    border: 1px solid #f1d9a0;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    animation: success-bounce-in 0.5s ease-out;
}

.prize-won-title {
    font-size: 1.1rem;
    margin: 0 0 0.85rem;
    color: #8a5a00;
}

.prize-won-item + .prize-won-item {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e3c988;
}

.prize-won-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), #a87c0f);
    color: #fff;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.prize-won-description { margin: 0.25rem 0 0; color: #5c4200; font-size: 0.95rem; }

.account-order-prizes {
    background: #fff7e0;
    border: 1px solid #f1d9a0;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    margin: 0.5rem 0;
}
.account-order-prize { margin: 0; color: #5c4200; font-size: 0.88rem; }
.account-order-prize + .account-order-prize { margin-top: 0.4rem; }

@keyframes success-bounce-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes checkout-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes checkout-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes success-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- Responsivo (celular) --- */

@media (max-width: 640px) {
    .site-header nav { padding: 0.75rem 1rem; }
    .brand { font-size: 1rem; }
    main.container { padding-top: 1.1rem; padding-bottom: 2rem; }

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }
    .quantity-heading { font-size: 0.82rem; }
    .scarcity-badge { font-size: 0.68rem; padding: 0.5rem 0.8rem; gap: 0.3rem; }

    .floating-actions { right: 0.85rem; bottom: 0.85rem; gap: 0.6rem; }
    .floating-btn { width: 2.75rem; height: 2.75rem; }

    .card { padding: 1rem; }
    .raffle-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.85rem; }

    .quantity-quick-grid { gap: 0.5rem; }
    .quantity-quick-tile { padding: 0.85rem 0.35rem; border-radius: 12px; }
    .quantity-quick-tile-amount { font-size: 1.25rem; }
    .quantity-quick-tile-label { font-size: 0.6rem; }

    .quantity-cta-row { flex-direction: column; }
    .quantity-stepper { justify-content: center; }
    .quantity-cta { padding: 0.75rem 1rem; }

    .checkout-card, .success-screen { padding: 1.75rem 1.25rem; margin: 1rem auto; }
    .success-title { font-size: 1.8rem; }
    .checkout-amount { font-size: 1.6rem; }

    .checkout-copycode { flex-direction: column; }
    .checkout-copycode .btn { width: 100%; }

    .prize-list-row { padding: 0.45rem 0.7rem; gap: 0.5rem; }
    .prize-list-description { font-size: 0.78rem; }
    .prize-list-status { font-size: 0.72rem; }

    .raffle-hero { border-radius: 18px; }
    .raffle-hero-image { max-height: 220px; }
    .raffle-hero-image img { max-height: 220px; }
    .raffle-hero-body { padding: 1.1rem 1.1rem 1.25rem; }
    .raffle-hero-eyebrow { font-size: 0.62rem; }
    .raffle-hero-price { font-size: 0.85rem; padding: 0.35rem 0.7rem; }
    .raffle-hero-description-label { font-size: 1.35rem; }

    .raffle-card-image { height: 110px; }

    .account-order-header, .account-order-footer { flex-wrap: wrap; gap: 0.5rem; }

    table { font-size: 0.85rem; }
    th, td { padding: 0.5rem 0.6rem; }
}

/* --- Modal de video do produto (vitrine) --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.video-modal.is-open { display: flex; }
.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 30, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.video-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 720px; }
.video-modal-dialog video { width: 100%; max-height: 80vh; border-radius: 16px; display: block; background: #000; }
.video-modal-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.15s ease;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.24); }
body.modal-open { overflow: hidden; }

/* --- Modal de foto em tela cheia (vitrine) --- */
.product-card-media-zoom { display: block; width: 100%; height: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.image-modal.is-open { display: flex; }
.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 30, 0.86);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.image-modal-dialog { position: relative; z-index: 1; max-width: min(92vw, 900px); max-height: 88vh; }
.image-modal-dialog img { max-width: 100%; max-height: 88vh; border-radius: 12px; display: block; }
.image-modal-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.15s ease;
}
.image-modal-close:hover { background: rgba(255, 255, 255, 0.24); }

@media (max-width: 640px) {
    .video-modal-close { top: auto; bottom: -2.75rem; right: 0.25rem; }
    .image-modal-close { top: auto; bottom: -2.75rem; right: 0.25rem; }
}
