/* As fontes (Space Grotesk + Darker Grotesque) são carregadas no <head>
   das páginas: includes/header.php e includes/admin_layout.php. */

/* ---------- Design tokens ---------- */
:root {
    --bg-deep: #221e30;         /* fundo mais profundo (gradiente) */
    --bg: #332d47;              /* fundo principal */
    --surface: #4a4166;        /* cartões */
    --ink: #f7e1ff;             /* texto principal */
    --ink-soft: #c9b3d6;        /* texto secundário */
    --brand: #ffb525;          /* dourado */
    --brand-dark: #ffcf6e;
    --line: rgba(247, 225, 255, 0.14);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.45);
    --nav-h: 76px;
    --max: 1160px;
    --font-body: 'Darker Grotesque', sans-serif, -apple-system;
    --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

.page { background: var(--bg-deep); scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: none;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Camadas de fundo (mesmo estilo da loading-screen) ----------
   body não é "positioned", então o próprio background dele pintaria por
   cima de qualquer filho com z-index negativo (regra de stacking do CSS).
   Por isso o brilho, o grid e as partículas vivem em divs fixed próprias,
   todas com z-index negativo, na ordem certa entre si. */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 1100px 700px at 50% -8%, rgba(255, 181, 37, 0.07), transparent 60%),
        radial-gradient(ellipse 1400px 1000px at 50% 105%, var(--bg), var(--bg-deep) 55%);
}
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(247, 225, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 225, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 80%);
}

/* ---------- Camada de partículas douradas (ambiente) ---------- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-particle {
    position: absolute;
    bottom: -10px;
    border-radius: 1px;
    background: var(--brand);
    opacity: 0.35;
    animation: bg-particle-drift linear infinite;
}
@keyframes bg-particle-drift {
    from { transform: translateY(0) rotate(0deg); }
    to   { transform: translateY(-120vh) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
    .bg-particle { animation: none; display: none; }
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; font-weight: 600; }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 15px;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: rgba(247, 225, 255, 0.06); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    transition: padding .35s ease;
}

.navbar__inner {
    width: 100%;
    max-width: var(--max);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 0;
    transition: all .35s ease;
}

/* Estado "encolhido" com efeito glass ao rolar a página */
.navbar.is-scrolled {
    padding: 12px 20px;
}
.navbar.is-scrolled .navbar__inner {
    height: 58px;
    padding: 0 14px 0 20px;
    border-radius: 999px;
    border-color: rgba(247, 225, 255, 0.16);
    background: rgba(74, 65, 102, 0.7);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--shadow-md);
    max-width: 900px;
}

.navbar__start { display: flex; align-items: center; gap: 6px; }
.navbar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
/* A logo usa a cor do texto ao redor (ex.: "Store" ao lado dela). */
.navbar__logo { display: inline-flex; color: inherit; }
.frx-logo { display: block; flex: 0 0 auto; color: inherit; }
.navbar__name { letter-spacing: -0.02em; }

.navbar__hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    margin-left: -6px;
    border: none;
    background: transparent;
    color: var(--ink);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease;
}
.navbar__hamburger:hover { background: rgba(247, 225, 255, 0.08); }

.navbar__nav { display: flex; align-items: center; gap: 4px; }
.navbar__link {
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color .2s ease, background .2s ease;
}
.navbar__link:hover { color: var(--ink); background: rgba(247, 225, 255, 0.08); }

.navbar__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Dropdown de categorias (navbar) ---------- */
.nav-dropdown { position: relative; display: inline-flex; }

/* Gatilho padronizado igual aos demais .navbar__link */
.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.nav-dropdown__trigger:hover { color: var(--ink); background: rgba(247, 225, 255, 0.08); }

.nav-dropdown__chevron { transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown__chevron { transform: rotate(180deg); }

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    display: grid;
    gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 200;
}
.nav-dropdown__menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--surface);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
}
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown__item {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.nav-dropdown__item:hover { background: rgba(247, 225, 255, 0.08); color: var(--ink); }
.nav-dropdown__empty {
    display: block;
    padding: 9px 14px;
    font-size: 15px;
    color: var(--ink-soft);
}

/* ---------- Layout de seções ---------- */
main { padding-top: var(--nav-h); }

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 20px;
}
.section__head { max-width: 620px; margin-bottom: 36px; }
.section__title { font-size: clamp(28px, 4vw, 38px); font-weight: 700;}
.section__desc { color: var(--ink-soft); margin: 10px 0 0; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 20px 40px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    background: rgba(255, 181, 37, 0.14);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero__title { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -0.02em; font-weight: 400; line-height: 0.85; }
.hero__subtitle { color: var(--ink-soft); font-size: 20px; margin: 20px 0 28px; max-width: 520px; line-height: 1;}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 40px; margin: 40px 0 0; padding: 0; }
.hero__stats div { margin: 0; }
.hero__stats dt { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); }
.hero__stats dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 18px; }
.hero__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ---------- Cartas da página inicial (losango, sobe ao passar o mouse) ---------- */
.hero-hand {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}
.hero-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 35%;
    aspect-ratio: 3 / 4;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(247, 225, 255, 0.18);
    background: var(--surface);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.25), box-shadow .3s ease, border-color .3s ease;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}
/* Brilho suave que aparece na carta selecionada */
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 207, 110, 0.22), transparent 45%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
/* Carta "selecionada": sobe, endireita um pouco e vem para a frente */
.hero-card:hover,
.hero-card:focus-visible,
.hero-card.is-selected {
    z-index: 10;
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) translateY(-18px) rotate(0deg) scale(1.08);
    border-color: rgba(255, 181, 37, 0.75);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 181, 37, 0.35), 0 0 32px rgba(255, 181, 37, 0.28);
}
.hero-card:hover::after,
.hero-card:focus-visible::after,
.hero-card.is-selected::after { opacity: 1; }

@media (max-width: 900px) {
    .hero-hand { max-width: 440px; }
}
/* Celular: losango um pouco menor para caber inteiro na tela */
@media (max-width: 560px) {
    .hero-hand { max-width: 360px; }
    .hero-card { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-card { transition: box-shadow .2s ease, border-color .2s ease; }
}

/* ---------- Categorias ---------- */
.categories { display: flex; flex-wrap: wrap; gap: 12px; }
.category-chip {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-weight: 500;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, border-color .2s ease;
}
.category-chip:hover { transform: translateY(-2px); border-color: var(--brand); }

/* ---------- Produtos ---------- */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; background: var(--bg); }
.product-card__media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.product-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}
.product-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__category { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.product-card__title { font-size: 20px; margin: 8px 0; }
.product-card__desc { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; flex: 1; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }

.products__more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Catálogo completo (produtos.php) ---------- */
.catalog {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}
.catalog__filters { position: sticky; top: calc(var(--nav-h) + 20px); }
.catalog__count { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }

.filters {
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.filters__group { display: flex; flex-direction: column; gap: 10px; }
.filters__label { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); }
.filters__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg);
    color: var(--ink);
}
.filters__checks { display: flex; flex-direction: column; gap: 8px; }
.filters__check { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.filters__check input { accent-color: var(--brand); width: 16px; height: 16px; }
.filters__empty { font-size: 14px; color: var(--ink-soft); margin: 0; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg);
    color: var(--ink);
}
.filters__price span { color: var(--ink-soft); }
.filters__submit { width: 100%; }
.filters__clear { text-align: center; font-size: 14px; color: var(--ink-soft); text-decoration: underline; }
.filters__clear:hover { color: var(--ink); }

@media (max-width: 900px) {
    .catalog { grid-template-columns: 1fr; }
    .catalog__filters { position: static; }
}

/* ---------- CTA ---------- */
.cta {
    max-width: var(--max);
    margin: 0 auto 72px;
    padding: 0 20px;
}
.cta__inner {
    background: linear-gradient(145deg, var(--surface), var(--bg-deep));
    border: 1px solid var(--line);
    box-shadow: 0 0 70px rgba(255, 181, 37, 0.08), var(--shadow-md);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
}
.cta__title { font-size: clamp(28px, 4vw, 42px); color: #fff; }
.cta__desc { color: rgba(255, 255, 255, 0.75); max-width: 560px; margin: 16px auto 28px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 20px 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}
.footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 0; }
.footer__tagline { color: var(--ink-soft); font-size: 14px; margin: 4px 0 0; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--ink-soft); font-size: 15px; }
.footer__nav a:hover { color: var(--ink); }
.footer__contact p { font-weight: 600; margin: 0 0 10px; }
.footer__contact a { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 6px; }
.footer__contact a:hover { color: var(--brand-dark); }
.footer__bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 14px;
    text-align: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 40px; }
    .hero__media { order: -1; }
    .products { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .navbar__nav { display: none; }
    .navbar__hamburger { display: inline-flex; }
    .navbar__name { display: none; }
    .navbar__actions .btn,
    .navbar__actions .user-menu { display: none; }
}

/* ---------- Menu mobile (hambúrguer) ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 20, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.mobile-menu__panel {
    position: relative;
    width: min(300px, 84vw);
    height: 100%;
    background: rgba(74, 65, 102, 0.7);
    border-right: 1px solid rgba(247, 225, 255, 0.16);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--shadow-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    animation: mobileMenuIn .22s ease;
}
@keyframes mobileMenuIn {
    from { transform: translateX(-16px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 999px;
    transition: background .2s ease;
}
.mobile-menu__close:hover { background: rgba(247, 225, 255, 0.08); color: var(--ink); }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link {
    padding: 12px 10px;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
}
.mobile-menu__link:hover { background: rgba(247, 225, 255, 0.08); }
.mobile-menu__link--sub { padding-left: 22px; font-family: var(--font-body); font-size: 15px; color: var(--ink-soft); }
.mobile-menu__label {
    margin: 8px 0 0;
    padding: 0 10px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-soft);
}

.mobile-menu__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.mobile-menu__actions .btn { width: 100%; }
.mobile-menu__email { margin: 0; font-size: 13px; color: var(--ink-soft); word-break: break-all; }

@media (max-width: 560px) {
    .products { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .hero__stats { gap: 24px; }
    .navbar__actions .btn { padding: 9px 16px; font-size: 14px; }
    .cta__inner { padding: 48px 24px; }
}

/* ---------- Carrinho de compras (navbar) ---------- */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.cart-btn:hover { background: rgba(247, 225, 255, 0.08); color: var(--ink); }
.cart-btn svg { display: block; }
.cart-btn__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---------- Menu do usuário ---------- */
.navbar__actions { gap: 10px; }

.user-menu { position: relative; display: inline-flex; }
.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    transition: box-shadow .2s ease;
}
.user-menu__trigger:hover { box-shadow: 0 0 0 3px rgba(255, 181, 37, 0.20); }
.user-menu__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.user-menu.is-open .user-menu__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu__email { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); word-break: break-all; }
.user-menu__logout {
    display: block;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    transition: background .2s ease;
}
.user-menu__dropdown form + form,
.user-menu__dropdown a.user-menu__logout {
    margin-bottom: 8px;
}
.user-menu__logout:hover { background: rgba(255, 181, 37, 0.10); color: var(--brand-dark); }

/* ---------- Modal de autenticação ---------- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal.is-open { display: flex; }
/* Permite rolar o modal em telas baixas (celular) sem cortar o topo. */
.auth-modal { overflow-y: auto; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.auth-modal__dialog { margin: auto 0; }
.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 20, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.auth-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(74, 65, 102, 0.7);
    border: 1px solid rgba(247, 225, 255, 0.16);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
    animation: authIn .25s ease;
}
@keyframes authIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 999px;
    transition: background .2s ease;
}
.auth-modal__close:hover { background: rgba(247, 225, 255, 0.08); color: var(--ink); }

.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    margin-top: 16px;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-soft);
    transition: background .2s ease, color .2s ease;
}
.auth-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-alert {
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}
.auth-alert--error { background: rgba(200, 60, 40, 0.18); color: #ff8a75; border: 1px solid rgba(200, 60, 40, 0.35); }
.auth-alert--success { background: rgba(40, 150, 90, 0.18); color: #6fe3a8; border: 1px solid rgba(40, 150, 90, 0.35); }

.auth-form { display: none; flex-direction: column; gap: 14px; }
/* Tela "Confirme seu e-mail" no modal */
.auth-modal.is-verifying .auth-tabs { display: none; }
.auth-verify [hidden] { display: none !important; }
.auth-verify { align-items: center; text-align: center; }
.auth-verify__icon {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 4px auto 2px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--brand);
    background: rgba(255, 181, 37, 0.12);
    animation: verify-float 2.6s ease-in-out infinite;
}
.auth-verify__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--brand);
    opacity: 0;
    animation: verify-ring 2.6s ease-out infinite;
}
.auth-verify__badge {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0533d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    animation: verify-pop .5s .3s cubic-bezier(.2, 1.6, .4, 1) both;
}
.auth-verify__title { margin: 0; }
.auth-verify__desc { margin: 0; line-height: 1.5; }
.auth-verify__desc strong { color: var(--ink); word-break: break-all; }
.auth-verify__hint { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.auth-verify__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    background: rgba(247, 225, 255, 0.06);
    border: 1px solid var(--line);
}
.auth-verify__dots { display: inline-flex; gap: 4px; }
.auth-verify__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    animation: verify-dot 1.2s ease-in-out infinite;
}
.auth-verify__dots i:nth-child(2) { animation-delay: .15s; }
.auth-verify__dots i:nth-child(3) { animation-delay: .3s; }
.auth-verify__status.is-done { color: #6fe3a8; border-color: rgba(40, 150, 90, 0.45); background: rgba(40, 150, 90, 0.15); }
.auth-verify__status.is-done .auth-verify__dots { display: none; }
.auth-verify .auth-form__submit { width: 100%; }

@keyframes verify-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes verify-ring { 0% { transform: scale(.9); opacity: .6; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes verify-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes verify-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
/* Envelope -> sinal de verificado verde (quando o e-mail é confirmado) */
.auth-verify__mail,
.auth-verify__check { transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.auth-verify__check {
    position: absolute;
    opacity: 0;
    transform: scale(.5) rotate(-20deg);
}
.auth-verify__check circle { stroke-dasharray: 164; stroke-dashoffset: 164; }
.auth-verify__check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.auth-verify__badge { transition: transform .25s ease, opacity .25s ease; }

.auth-verify__icon.is-success {
    color: #3ddc84;
    background: rgba(61, 220, 132, 0.14);
    animation: verify-success-bump .6s .15s ease both;
    transition: background .4s ease, color .4s ease;
}
.auth-verify__icon.is-success::after {
    border-color: #3ddc84;
    animation: verify-success-ring .9s .35s ease-out both;
}
.auth-verify__icon.is-success .auth-verify__mail { opacity: 0; transform: scale(.3) rotate(15deg); }
.auth-verify__icon.is-success .auth-verify__check { opacity: 1; transform: scale(1) rotate(0); transition-delay: .15s; }
.auth-verify__icon.is-success .auth-verify__check circle { animation: verify-draw .5s .25s ease-out forwards; }
.auth-verify__icon.is-success .auth-verify__check path { animation: verify-draw .35s .65s ease-out forwards; }
.auth-verify__icon.is-success .auth-verify__badge { animation: none; transform: scale(0); opacity: 0; }

@keyframes verify-draw { to { stroke-dashoffset: 0; } }
@keyframes verify-success-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes verify-success-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Celular: tela de confirmação mais compacta */
@media (max-width: 560px) {
    .auth-modal { padding: 16px; }
    .auth-modal__dialog { padding: 24px 20px; }
    .auth-verify { gap: 12px; }
    .auth-verify__icon { width: 84px; height: 84px; }
    .auth-verify__icon svg { width: 58px; height: 58px; }
    .auth-verify__icon .auth-verify__check { width: 60px; height: 60px; }
    .auth-verify__badge { top: 10px; right: 8px; width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
    .auth-verify__title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-verify__icon, .auth-verify__icon::after, .auth-verify__badge, .auth-verify__dots i { animation: none; }
    .auth-verify__icon.is-success, .auth-verify__icon.is-success::after { animation: none; }
    .auth-verify__check circle, .auth-verify__check path { stroke-dashoffset: 0; }
}

/* Campo-armadilha anti-robô: fora da tela, invisível para pessoas */
.auth-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.auth-form.is-active { display: flex; }
.auth-form__title { font-size: 24px; }
.auth-form__desc { margin: -6px 0 4px; color: var(--ink-soft); font-size: 15px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-field input {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 181, 37, 0.15);
}
.auth-form__submit { width: 100%; margin-top: 4px; }
.auth-form__switch { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }
.auth-form__switch button {
    background: none;
    border: none;
    color: var(--brand-dark);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}
.auth-form__switch button:hover { text-decoration: underline; }
/* Página "Criar nova senha" */
.reset-page { display: flex; justify-content: center; padding-top: calc(var(--nav-h) + 40px); }
.reset-card {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 28px;
    background: rgba(74, 65, 102, 0.7);
    border: 1px solid rgba(247, 225, 255, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.reset-card__title { font-size: 26px; margin: 0; }
.reset-card__desc { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.reset-card__form { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 560px) { .reset-card { padding: 26px 20px; } }

.auth-form__forgot { margin: -6px 0 0; text-align: right; }
.auth-form__forgot button {
    background: none;
    border: none;
    padding: 0;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
}
.auth-form__forgot button:hover { color: var(--brand-dark); text-decoration: underline; }

.auth-modal__dialog--wide { max-width: 560px; }
.address-field-row { display: flex; gap: 12px; }
.address-field-row .auth-field { flex: 1; min-width: 0; }
.auth-field--wide { flex: 2 !important; }
.auth-field--inline { flex-direction: row; align-items: center; gap: 8px; }
.auth-field--inline input[type="checkbox"] { width: auto; accent-color: var(--brand); }

/* ---------- Toast (mensagens de status) ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 300;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: #1f7a4d; color: #fff; }
.toast--error { background: #a33223; color: #fff; }

/* ---------- Painel administrativo ---------- */
.admin { background: var(--bg); }

/* Login do painel */
.admin-login__wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.admin-login__card { width: 100%; max-width: 400px; }
.admin-login__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-login__title { font-size: 24px; margin: 0 0 16px; }
.admin-login__desc { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.admin-login__link { align-self: center; font-size: 14px; color: var(--ink-soft); }
.admin-login__link:hover { color: var(--brand-dark); text-decoration: underline; }
button.admin-login__link { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.admin-login__inline { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-soft); font-size: 14px; }
.admin-login__code { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Código do admin: caixinhas animadas (assets/js/admin-otp.js) ---------- */
.otp__stage, .otp__error { display: none; }
.otp.js-otp .otp__stage { display: flex; }
.otp.js-otp .otp__fallback,
.otp.js-otp .otp__submit { display: none; }
.otp__error:not([hidden]) { display: block; margin: 0; }

.otp__stage {
    --otp-w: 46px;
    --otp-h: 56px;
    --otp-gold: var(--brand);
    --otp-green: #3ddc84;
    --otp-red: #ff6b5b;
    position: relative;
    justify-content: center;
    align-items: center;
    min-height: 104px;
    margin: 4px 0 2px;
}
.otp__boxes { display: flex; gap: 8px; }

.otp__box {
    position: relative;
    width: var(--otp-w);
    height: var(--otp-h);
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(247, 225, 255, 0.16);
    background: linear-gradient(180deg, rgba(247, 225, 255, 0.07), rgba(247, 225, 255, 0.02)), var(--bg-deep);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 16px rgba(0, 0, 0, 0.25);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    caret-color: var(--otp-gold);
    outline: none;
    transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), border-color .2s ease, box-shadow .2s ease, opacity .3s ease;
}
.otp__box:focus {
    border-color: var(--otp-gold);
    box-shadow: 0 0 0 3px rgba(255, 181, 37, 0.18), 0 0 18px rgba(255, 181, 37, 0.35);
}
.otp__box.is-filled { border-color: rgba(255, 181, 37, 0.45); }
.otp__box.is-pop { animation: otp-pop .28s cubic-bezier(.2, 1.6, .4, 1); }

/* Fase 1: leque de cartas */
.otp__stage.is-fan .otp__box,
.otp__stage.is-stack .otp__box { border-color: rgba(255, 181, 37, 0.4); }
.otp__stage.is-fan .otp__box {
    transform: translate(var(--fan-x), var(--fan-y)) rotate(var(--fan-r));
    transition-delay: calc(var(--i) * 25ms);
}
/* Fase 2: todas se juntam num único cartão no centro */
.otp__stage.is-stack .otp__box {
    transform: translate(var(--stack-x), 0) rotate(var(--stack-r));
    color: transparent;
    transition-delay: calc((5 - var(--i)) * 20ms);
}

/* Cartão de verificação (anel que se desenha + check) */
.otp__check {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 74px;
    margin: -37px 0 0 -32px;
    opacity: 0;
    transform: scale(.9);
    pointer-events: none;
    transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.otp__check svg { display: block; position: relative; z-index: 1; overflow: visible; }
.otp__ring-base {
    fill: var(--bg-deep);
    stroke: rgba(247, 225, 255, 0.16);
    stroke-width: 2;
}
.otp__ring {
    stroke: var(--otp-gold);
    stroke-width: 3;
    stroke-dasharray: 22 78;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 4px rgba(255, 181, 37, 0.6));
}
.otp__tick {
    stroke: var(--otp-green);
    stroke-width: 4;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.otp__stage.is-checking .otp__boxes .otp__box { opacity: 0; }
.otp__stage.is-checking .otp__check { opacity: 1; transform: scale(1); }
.otp__stage.is-checking .otp__ring { animation: otp-ring-spin 1s linear infinite; }

/* Acerto: anel completo verde, brilho, check e raios */
.otp__stage.is-success .otp__ring {
    animation: none;
    stroke: var(--otp-green);
    stroke-dasharray: 100 0;
    filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.8));
    transition: stroke .3s ease, stroke-dasharray .45s ease;
}
.otp__stage.is-success .otp__ring-base { fill: rgba(61, 220, 132, 0.12); stroke: rgba(61, 220, 132, 0.4); }
.otp__stage.is-success .otp__check { animation: otp-bump .55s .1s ease both; }
.otp__stage.is-success .otp__tick { animation: otp-draw .4s .35s ease-out forwards; }

.otp__rays { position: absolute; inset: 0; }
.otp__rays i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 9px;
    margin: -4.5px 0 0 -1px;
    border-radius: 2px;
    background: var(--otp-green);
    opacity: 0;
}
.otp__stage.is-success .otp__rays i { animation: otp-ray .7s .2s ease-out both; }
.otp__rays i:nth-child(1)  { --a: 0deg; }
.otp__rays i:nth-child(2)  { --a: 30deg; }
.otp__rays i:nth-child(3)  { --a: 60deg; }
.otp__rays i:nth-child(4)  { --a: 90deg; }
.otp__rays i:nth-child(5)  { --a: 120deg; }
.otp__rays i:nth-child(6)  { --a: 150deg; }
.otp__rays i:nth-child(7)  { --a: 180deg; }
.otp__rays i:nth-child(8)  { --a: 210deg; }
.otp__rays i:nth-child(9)  { --a: 240deg; }
.otp__rays i:nth-child(10) { --a: 270deg; }
.otp__rays i:nth-child(11) { --a: 300deg; }
.otp__rays i:nth-child(12) { --a: 330deg; }

/* Erro: cartão treme em vermelho; depois as caixinhas voltam tremendo */
.otp__stage.is-error .otp__ring { animation: none; stroke: var(--otp-red); stroke-dasharray: 100 0; filter: drop-shadow(0 0 6px rgba(255, 107, 91, 0.7)); }
.otp__stage.is-error .otp__check { animation: otp-shake .4s ease; }
.otp__boxes.is-wrong .otp__box { border-color: var(--otp-red); animation: otp-shake .4s ease; }

.admin-login__title.is-success { color: var(--otp-green, #3ddc84); transition: color .3s ease; }

@keyframes otp-pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
@keyframes otp-ring-spin { to { stroke-dashoffset: -100; } }
@keyframes otp-draw { to { stroke-dashoffset: 0; } }
@keyframes otp-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes otp-ray {
    0%   { opacity: 0; transform: rotate(var(--a)) translateY(-34px) scaleY(.4); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(-58px) scaleY(1); }
}
@keyframes otp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}

@media (max-width: 400px) {
    .otp__stage { --otp-w: 40px; --otp-h: 50px; }
    .otp__boxes { gap: 6px; }
    .otp__box { font-size: 22px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .otp__box, .otp__check { transition: none; }
    .otp__stage.is-fan .otp__box, .otp__stage.is-stack .otp__box { transform: none; }
    .otp__stage.is-checking .otp__ring { animation-duration: 2s; }
    .otp__box.is-pop, .otp__stage.is-success .otp__check, .otp__stage.is-success .otp__rays i { animation: none; }
    .otp__stage.is-success .otp__tick { animation: none; stroke-dashoffset: 0; }
}

.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.admin-topbar__right { display: flex; align-items: center; gap: 10px; }
.admin-topbar__badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    background: rgba(255, 181, 37, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

.admin-main { max-width: var(--max); margin: 0 auto; padding: 32px 20px 64px; }
.admin-head { margin-bottom: 24px; }
.admin-head__title { 
    font-weight: 900;
    font-size: clamp(26px, 4vw, 34px); 
}

.admin-head__desc { 
    font-weight: 400;
    color: var(--ink-soft); 
    margin: 6px 0 0; 
}

.admin-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.admin-alert--success { background: rgba(40, 150, 90, 0.18); color: #6fe3a8; border: 1px solid rgba(40, 150, 90, 0.35); }
.admin-alert--error { background: rgba(200, 60, 40, 0.18); color: #ff8a75; border: 1px solid rgba(200, 60, 40, 0.35); }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: start;
}
.admin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.admin-card__title { 
    font-weight: 600;
    font-size: 20px; 
    margin-bottom: 18px; 
}

.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    resize: vertical;
}
.admin-form textarea:focus,
.admin-form input[type="file"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 181, 37, 0.15);
}
.admin-form input[type="file"] {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink-soft);
}
.admin-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; }
.admin-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.admin-hint { margin: -6px 0 0; font-size: 13px; color: var(--ink-soft); }

.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-empty { color: var(--ink-soft); }
.admin-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}
.admin-item__img { border-radius: 10px; object-fit: cover; width: 56px; height: 56px; }
.admin-item__info { flex: 1; min-width: 0; }
.admin-item__name { font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.admin-item__star {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    padding: 2px 8px;
    border-radius: 999px;
}
.admin-item__meta { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.admin-item__del {
    border: 1px solid var(--line);
    background: transparent;
    color: #ff8a75;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.admin-item__del:hover { background: rgba(200, 60, 40, 0.15); border-color: rgba(200, 60, 40, 0.4); }

@media (max-width: 820px) {
    .admin-grid { grid-template-columns: 1fr; }
}

/* ---------- Painel administrativo: navegação por abas ---------- */
.admin-nav {
    display: flex;
    gap: 6px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
}
.admin-nav__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-soft);
    padding: 12px 16px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.admin-nav__link:hover { color: var(--ink); }
.admin-nav__link.is-active { color: var(--brand); border-color: var(--brand); }

/* ---------- Painel administrativo: KPIs do dashboard ---------- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-card__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.stat-card__value { margin: 8px 0 0; font-size: 28px; font-weight: 700; }

/* ---------- Painel administrativo: itens em duas colunas / ações ---------- */
.admin-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-item__edit {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    background: rgba(255, 181, 37, 0.16);
    border: 1px solid rgba(255, 181, 37, 0.4);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.admin-item__edit:hover { background: rgba(255, 181, 37, 0.26); }

/* ---------- Painel administrativo: selos de status ---------- */
.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.status-badge--pendente  { background: rgba(255, 181, 37, 0.18); color: var(--brand-dark); }
.status-badge--pago,
.status-badge--concluido,
.status-badge--ativo     { background: rgba(40, 150, 90, 0.22); color: #6fe3a8; }
.status-badge--cancelado,
.status-badge--inativo   { background: rgba(200, 60, 40, 0.22); color: #ff8a75; }
.status-badge--enviado   { background: rgba(43, 100, 200, 0.24); color: #7fb2ff; }

/* ---------- Painel administrativo: modal (usado nos formulários de edição) ---------- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}
.modal.is-open { display: flex; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 20, 0.6);
}
.modal__dialog {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal__close {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-soft);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
}
.modal__close:hover { color: var(--ink); }
.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ---------- Controle de quantidade (produto e carrinho) ---------- */
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}
.qty__btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}
.qty__btn:hover { background: rgba(247, 225, 255, 0.08); }
.qty__input {
    width: 46px;
    height: 38px;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    color: var(--ink);
    -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

/* ---------- Página de produto ---------- */
.product-page__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}
.product-page__back:hover { color: var(--ink); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
    width: 72px; height: 72px; padding: 0;
    border-radius: 12px; overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--surface);
    transition: border-color .15s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--brand); }

.product-info__category { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.product-info__title { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 14px; }
.product-info__price {
    display: flex; align-items: baseline; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 28px;
    color: var(--ink); margin: 0 0 18px;
}
.product-info__price-label { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.product-info__desc { color: var(--ink-soft); font-size: 16px; margin: 0 0 24px; }
.product-info__perks {
    list-style: none; margin: 28px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
    color: var(--ink-soft); font-size: 14px;
}
.product-info__perks li { padding-left: 22px; position: relative; }
.product-info__perks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.product-form { display: flex; flex-direction: column; gap: 22px; }
.product-form__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-form__submit { flex: 1; min-width: 220px; }

.variations__label { font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.variations__options { display: flex; flex-wrap: wrap; gap: 10px; }
.variation { cursor: pointer; display: inline-flex; position: relative; }
.variation input { position: absolute; opacity: 0; pointer-events: none; }
.variation__box {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 16px; min-width: 88px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--surface);
    transition: border-color .15s ease, background .15s ease;
}
.variation input:checked + .variation__box { border-color: var(--brand); background: rgba(255, 181, 37, 0.08); }
.variation__type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); }
.variation__value { font-weight: 700; font-size: 14px; }
.variation__price { font-size: 13px; color: var(--ink-soft); }
.variation__out { font-size: 11px; color: #ff8a75; font-weight: 700; }
.variation.is-out { opacity: .5; }
.variation.is-out .variation__box { cursor: not-allowed; }

@media (max-width: 820px) {
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Produtos relacionados (reaproveita .products / .product-card) ---------- */
.related { margin-top: 12px; }

/* ---------- Página do carrinho ---------- */
.cart-empty {
    text-align: center; padding: 60px 20px;
    color: var(--ink-soft);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    display: grid;
    grid-template-columns: 76px 1fr auto auto;
    align-items: center; gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.cart-item__media img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 15px; }
.cart-item__name:hover { color: var(--brand-dark); }
.cart-item__variation { font-size: 13px; color: var(--ink-soft); }
.cart-item__unit { font-size: 13px; color: var(--ink-soft); }
.cart-item__qty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cart-item__update { border: none; background: transparent; color: var(--brand-dark); font-weight: 700; font-size: 12px; cursor: pointer; }
.cart-item__update:hover { text-decoration: underline; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item__subtotal { font-family: var(--font-body); font-weight: 700; font-size: 16px; }
.cart-item__remove {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
    border-radius: 10px; cursor: pointer; transition: .15s ease;
}
.cart-item__remove:hover { background: rgba(200, 60, 40, 0.15); border-color: rgba(200, 60, 40, 0.4); color: #ff8a75; }
.cart-items__clear { text-align: right; margin-top: 4px; }
.cart-link { border: none; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.cart-link:hover { color: #ff8a75; text-decoration: underline; }

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: calc(var(--nav-h) + 16px);
}
.cart-summary__title { font-size: 19px; }

.cart-summary__lines { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.cart-summary__lines > div { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.cart-summary__lines dt, .cart-summary__lines dd { margin: 0; font-weight: 500; }
.cart-summary__discount dd { color: #6fe3a8; font-weight: 700; }
.cart-summary__total { padding-top: 14px; border-top: 1px solid var(--line); }
.cart-summary__total dt, .cart-summary__total dd { font-family: var(--font-body); font-weight: 700; font-size: 19px; color: var(--ink); }
.cart-summary__checkout { width: 100%; }
.cart-summary__note { font-size: 12px; color: var(--ink-soft); text-align: center; margin: 0; }

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas: "media info" "qty qty" "right right";
    }
    .cart-item__media { grid-area: media; }
    .cart-item__info { grid-area: info; }
    .cart-item__qty { grid-area: qty; flex-direction: row; justify-content: space-between; }
    .cart-item__right { grid-area: right; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Dois botões: comprar agora / adicionar ao carrinho ---------- */
.product-form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-form__actions .btn { flex: 1; min-width: 200px; }

@media (max-width: 480px) {
    .product-form__actions { flex-direction: column; }
    .product-form__actions .btn { width: 100%; }
}

/* ---------- Rodapé: redes sociais e formas de pagamento ---------- */
.footer__social-col p { font-weight: 600; margin: 0 0 10px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.footer__social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

.footer__payments {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 20px 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
}
.footer__payments-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.footer__payments-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}
.payment-badge img {
    display: block;
    width: 50px;
    height: 30px;
    object-fit: contain;
}

/* Ajusta o grid do rodapé para acomodar a 4ª coluna (redes sociais) */
@media (min-width: 901px) {
    .footer__inner { grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr; }
}
@media (max-width: 560px) {
    .footer__payments { justify-content: center; text-align: center; }
}

/* ---------- Seletor de método de pagamento (checkout) ---------- */
.payment-method {
    border: none;
    margin: 0;
    padding: 0px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.payment-method legend {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    padding: 0 0 4px;
}
.payment-method__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-size: 14px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.payment-method__option:hover { border-color: rgba(255, 181, 37, 0.4); }
.payment-method__option input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    flex-shrink: 0;
}
.payment-method__option:has(input:checked) {
    border-color: var(--brand);
    background: rgba(255, 181, 37, 0.08);
    color: var(--ink);
    font-weight: 600;
}

/* ---------- Frete (carrinho) ---------- */
.shipping { display: flex; flex-direction: column; gap: 12px; }
.shipping__field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.shipping__row { display: flex; gap: 8px; }
.shipping__row input {
    flex: 1; min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--font-body); font-size: 14px;
    background: var(--bg); color: var(--ink);
}
.shipping__row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 181, 37, 0.15); }
.shipping__chosen {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13px;
    background: rgba(40, 150, 90, 0.16);
    border: 1px solid rgba(40, 150, 90, 0.35);
    color: #6fe3a8;
    padding: 10px 14px;
    border-radius: 10px;
}
.shipping__change { border: none; background: transparent; color: #6fe3a8; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 12px; }
.shipping__options { display: flex; flex-direction: column; gap: 8px; }
.shipping__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.shipping__option:hover { border-color: rgba(255, 181, 37, 0.4); }
.shipping__option input { width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.shipping__option:has(input:checked) { border-color: var(--brand); background: rgba(255, 181, 37, 0.08); color: var(--ink); font-weight: 600; }

/* ---------- Cupom (carrinho) ---------- */
.coupon { display: flex; flex-direction: column; gap: 12px; }
.coupon__field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input {
    flex: 1; min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--font-body); font-size: 14px;
    background: var(--bg); color: var(--ink);
}
.coupon__row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 181, 37, 0.15); }
.coupon__applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13px;
    background: rgba(40, 150, 90, 0.16);
    border: 1px solid rgba(40, 150, 90, 0.35);
    color: #6fe3a8;
    padding: 10px 14px;
    border-radius: 10px;
}
.coupon__change { border: none; background: transparent; color: #6fe3a8; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 12px; }

/* ---------- Pagamento Pix (página de confirmação do pedido) ---------- */
.pix-payment {
    max-width: 420px;
    margin: 0 auto 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.pix-payment__qr {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pix-payment__qr img { width: 100%; height: 100%; object-fit: contain; }
.pix-payment__code {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pix-payment__code label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: left;
}
.pix-payment__code textarea {
    width: 100%;
    resize: none;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
}
.pix-payment__code textarea:focus { outline: none; border-color: var(--brand); }
.pix-payment__status {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pix-payment__status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
    animation: pix-pulse 1.4s ease-in-out infinite;
}
@keyframes pix-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}