/* ==========================================================================
   DAN · Pizza Contemporânea
   Folha de estilo única. Portada do projeto original e refinada.

   Sumário
   01. Tokens            08. Onde nos encontrar
   02. Base              09. Rodapé
   03. Utilitários       10. Botões e formulários
   04. Cabeçalho         11. Carrinho
   05. Hero              12. Clube DAN
   06. Faixa do ofício   13. Administração
   07. Cardápio          14. Entrar / cadastro
                         15. Animações
                         16. Responsivo
   17. Promoções         18. Painel: editor
   ========================================================================== */

/* -------------------------------------------------------------- 01. Tokens */

:root {
    --verde:            #14382d;
    --verde-claro:      #25493e;
    --creme:            #faf6ed;
    --creme-claro:      #fffdf8;
    --ouro:             #a77b35;
    --ouro-claro:       #d4ad67;
    --texto:            #14382d;
    --texto-suave:      #6c7066;
    --borda:            #ded7c7;
    --borda-forte:      #c8c6b9;
    --destaque:         #a53e33;
    --raio:             .5rem;

    --fonte-titulo: "Lora", Georgia, "Times New Roman", serif;
    --fonte-texto:  "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;

    --largura: 1240px;
}

/* ---------------------------------------------------------------- 02. Base */

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--creme);
    color: var(--texto);
    font-family: var(--fonte-texto);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3, h4 {
    font-family: var(--fonte-titulo);
    font-weight: 500;
}

h1 em, h2 em, h3 em { font-weight: 500; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ouro);
    outline-offset: 4px;
}

/* --------------------------------------------------------- 03. Utilitários */

.wrap {
    max-width: var(--largura);
    width: calc(100% - 112px);
    margin-inline: auto;
}

.eyebrow {
    display: block;
    font-size: .75rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .17em;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: #fff;
    padding: 10px;
    color: #153d30;
}
.skip-link:focus { top: 12px; }

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

/* ----------------------------------------------------------- 04. Cabeçalho */

.site-header {
    background: var(--verde);
    color: #eee4cd;
    border-bottom: 1px solid #526344;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 12px;
}

/* A logomarca é um PNG dourado com fundo transparente, então basta
   dimensionar. A proporção reservada evita que o cabeçalho "pule"
   enquanto a imagem carrega. */
.brand {
    display: block;
    width: 142px;
    aspect-ratio: 767 / 469;
    flex-shrink: 0;
}
.brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-inner nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
    gap: 14px clamp(14px, 2.4vw, 32px);
    font-size: .875rem;
}
.header-inner nav > a { white-space: nowrap; position: relative; }

/* Sublinhado que cresce no hover — substitui o link "morto" do original. */
.header-inner nav > a:not(.admin-link)::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ouro-claro);
    transition: width .25s ease;
}
.header-inner nav > a:not(.admin-link):hover::after { width: 100%; }

.nav-active { color: #e2bb70; }
.nav-active::after { width: 20px !important; }

.admin-link {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #60705b;
    border-radius: 5px;
    padding: 10px 15px;
    transition: background .2s ease;
}
.admin-link:hover { background: var(--verde-claro); }

/* Botão de menu no celular. Fica acima do painel para virar o "fechar". */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #60705b;
    border-radius: 5px;
    color: inherit;
    padding: 8px 10px;
    align-items: center;
    position: relative;
    z-index: 47;
}
.nav-toggle .icone-fechar { display: none; }
.nav-toggle[aria-expanded="true"] .icone-abrir { display: none; }
.nav-toggle[aria-expanded="true"] .icone-fechar { display: block; }

/* Toque fora do painel também fecha o menu. */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: #0d241ca8;
    z-index: 44;
    opacity: 0;
    transition: opacity .25s ease;
}
.nav-backdrop.aberto { opacity: 1; }

/* ---------------------------------------------------------------- 05. Hero */

.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 1550px;
    margin: auto;
    min-height: 365px;
}
.hero > * { min-width: 0; }

.hero-copy {
    padding: 42px 20px 36px max(56px, calc((100vw - var(--largura)) / 2));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hero .eyebrow { color: var(--ouro); }

.hero h1 {
    font-size: clamp(2.25rem, 3.35vw, 3.5rem);
    line-height: 1.14;
    letter-spacing: -.035em;
    margin: 17px 0 18px;
}
.hero h1 em { color: #937039; }

.hero-copy > p {
    color: #697064;
    font-size: .95rem;
    line-height: 1.75;
}

.text-link {
    display: inline-flex;
    gap: 40px;
    align-items: center;
    font-size: .875rem;
    font-weight: 600;
    border-bottom: 1px solid #b6ad94;
    padding: 0 0 7px;
    margin-top: 21px;
    transition: gap .25s ease, border-color .25s ease;
}
.text-link:hover { gap: 52px; border-color: var(--ouro); }
.text-link span { font-size: 1.3rem; }

.hero-signature {
    font-size: .75rem;
    letter-spacing: .09em;
    color: #7a796b;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.hero-signature > span { width: 26px; height: 1px; background: #b5a37d; }

.hero-image {
    position: relative;
    background: #18352c;
    overflow: hidden;
    min-height: 350px;
}
/* Descendente, não filho direto: o <img> fica dentro de um <picture>. */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    object-position: 60% 48%;
}

.hero-seal {
    width: 114px;
    height: 114px;
    border: 1px solid var(--ouro-claro);
    outline: 4px solid #123529;
    box-shadow: 0 0 0 5px #c7a564;
    border-radius: 50%;
    background: #13372e;
    position: absolute;
    right: 23px;
    bottom: 30px;
    color: #efddb6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(9deg);
}
.hero-seal strong {
    font-family: var(--fonte-titulo);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.05;
    margin: 5px 0;
}

.hero-image figcaption {
    position: absolute;
    bottom: 8px;
    left: 15px;
    color: #fff;
    background: #193129bb;
    font-size: .75rem;
    padding: 0 6px;
    border-radius: 3px;
}

/* -------------------------------------------------- 06. Faixa do ofício */

.craft-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 23px max(56px, calc((100vw - var(--largura)) / 2));
    gap: 26px;
    background: #f1ebdd;
    border-top: 1px solid #e7dfce;
    border-bottom: 1px solid #ded6c4;
}
.craft-strip > div { display: flex; gap: 16px; align-items: center; }
.craft-strip > div + div { border-left: 1px solid #d6cdbb; padding-left: 30px; }
.craft-strip svg { color: #a17d43; width: 28px; height: 28px; flex-shrink: 0; }
.craft-strip strong { display: block; font-weight: 600; font-size: .875rem; }
.craft-strip small { display: block; color: #777669; font-size: .8125rem; margin-top: 2px; }

/* ------------------------------------------------------------ 07. Cardápio */

.menu-section { padding-top: 43px; padding-bottom: 64px; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}
.section-heading .eyebrow { color: #8e743f; }
.section-heading h2 {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-top: 8px;
    letter-spacing: -.025em;
}
.section-heading h2 em { color: #a07840; }
.section-heading > p {
    font-size: .875rem;
    text-align: right;
    color: #77796d;
    line-height: 1.7;
}

.menu-tab-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-block: 1px solid var(--borda);
    gap: 20px;
}

.category-tabs {
    display: flex;
    gap: 24px;
    height: 65px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    color: var(--texto-suave);
    font-size: .875rem;
    font-weight: 500;
    padding: 16px 8px;
    height: 100%;
    position: relative;
    white-space: nowrap;
    transition: color .2s ease;
}
.category-tabs button:hover { color: #123c2c; }
.category-tabs button[aria-selected="true"] { color: #123c2c; }
.category-tabs button::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--ouro);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.category-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.menu-caption {
    color: #8c8778;
    font-size: .8125rem;
    font-family: var(--fonte-titulo);
    font-style: italic;
}

.menu-groups { padding-top: 28px; }
.menu-group { margin-bottom: 37px; }

.group-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--borda);
    margin-bottom: 5px;
}
.group-heading h3 { font-size: 1.65rem; }
.group-heading > span {
    font-family: var(--fonte-titulo);
    font-style: italic;
    color: #a0844f;
    font-size: .875rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 58px;
}

.product-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px dashed #dbd3c1;
    min-width: 0;
}

.product-number {
    font-family: var(--fonte-titulo);
    font-size: .875rem;
    color: #a08d65;
    margin-top: 4px;
    flex-shrink: 0;
}

.product-content { flex: 1; min-width: 0; }

.product-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}
.product-title h4 { font-size: 1.375rem; line-height: 1.2; }

/* A linha pontilhada entre nome e preço ajuda o olho a cruzar a coluna. */
.product-guia {
    flex: 1;
    border-bottom: 1px dotted #cfc6ae;
    margin-bottom: 5px;
    min-width: 12px;
}

.product-price {
    font-weight: 700;
    white-space: nowrap;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    color: #1d4435;
}
.product-price.pending {
    font-size: .75rem;
    font-weight: 500;
    color: #846e40;
    border: 1px solid #d7c8a8;
    border-radius: 3px;
    padding: 2px 7px;
}

.product-content p {
    font-size: 1rem;
    color: #737569;
    line-height: 1.75;
    max-width: 410px;
    margin-top: 8px;
}
.product-unit { font-size: .75rem; color: #8b7550; display: block; margin-top: 5px; }

.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 11px;
    flex-wrap: wrap;
}
.product-actions:empty { display: none; }

.add-product, .reward-product {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8125rem;
    border: 1px solid #c8cbb8;
    border-radius: 4px;
    padding: 5px 9px;
    background: transparent;
    color: #284d38;
    min-height: 34px;
    transition: background .18s ease, border-color .18s ease;
}
.add-product:hover { background: #e7eddf; border-color: #a9b394; }

.reward-product {
    border-color: #ded0ad;
    color: #87662e;
    background: #f8f0dd;
}
.reward-product:hover { background: #eee3c6; }
.reward-product:disabled { opacity: .5; cursor: not-allowed; }

.menu-footnote {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--borda);
    padding-top: 20px;
    font-size: .8125rem;
    color: #737769;
}
.menu-footnote svg { flex-shrink: 0; color: var(--ouro); }

.menu-empty {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 40px 20px;
}
.menu-empty svg { color: var(--ouro); margin-bottom: 12px; }
.menu-empty h3 { font-size: 1.5rem; }
.menu-empty p { color: var(--texto-suave); font-size: .95rem; max-width: 420px; }

/* ------------------------------------------------- Faixa do Clube (home) */

.club-ribbon {
    background: #eee5d1;
    border-top: 1px solid #dcd0b8;
    padding: 31px 0;
}
.club-ribbon > .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.club-ribbon .eyebrow { color: #8a6933; }
.club-ribbon h2 { font-size: 1.8rem; line-height: 1.25; margin: 9px 0 7px; }
.club-ribbon p { font-size: .9rem; color: #787261; }
.club-ribbon .button { white-space: nowrap; }

/* ------------------------------------------------ 08. Onde nos encontrar */

.local-section {
    background: var(--verde);
    color: #f2e7cd;
    padding: 58px 0;
}
.local-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.local-section .eyebrow { color: var(--ouro-claro); }
.local-section h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 14px 0 22px;
    letter-spacing: -.02em;
}
.local-section h2 em { color: var(--ouro-claro); }

.local-lista { display: grid; gap: 20px; }
.local-item { display: flex; gap: 14px; align-items: flex-start; }
.local-item svg { color: var(--ouro-claro); flex-shrink: 0; margin-top: 3px; }
.local-item strong {
    display: block;
    font-size: .75rem;
    letter-spacing: .14em;
    font-weight: 700;
    color: #adbd9e;
    margin-bottom: 3px;
}
.local-item span { font-size: 1rem; line-height: 1.6; }
.local-item a:hover { color: var(--ouro-claro); }

.local-mapa {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3f5b4e;
    min-height: 300px;
    background: #102e25;
}
.local-mapa iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.local-mapa-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 300px;
    color: #8fa392;
    font-size: .875rem;
    text-align: center;
    padding: 30px;
}

/* --------------------------------------------------------------- 09. Rodapé */

.site-footer {
    background: var(--verde);
    color: #f3e7cd;
    padding: 28px 0 0;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    gap: 24px;
}
.footer-main p { font-size: .875rem; color: #bac0a9; margin-top: 8px; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
}
.footer-contact .eyebrow { color: #d0ae72; margin-bottom: 9px; }
.footer-contact > a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    transition: color .2s ease;
}
.footer-contact > a:hover { color: var(--ouro-claro); }
.footer-contact > a:first-of-type {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid #456049;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 19px;
    font-size: .75rem;
    color: #b9bda6;
}
.footer-bottom > span:nth-child(2) {
    font-family: var(--fonte-titulo);
    font-style: italic;
}

/* Assinatura de quem fez o site: discreta, em linha própria. */
.footer-credito {
    border-top: 1px solid #2c4b3e;
    background: #10322a;
}
.footer-credito > span {
    display: block;
    padding-block: 13px;
    text-align: center;
    font-size: .75rem;
    letter-spacing: .06em;
    color: #8fa392;
}

/* ------------------------------------------ 10. Botões e formulários */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid #153b2f;
    border-radius: 5px;
    background: #153b2f;
    color: #fff5e2;
    padding: 11px 19px;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
    transition: background .2s ease, transform .12s ease;
}
.button:hover { background: var(--verde-claro); }
.button:active { transform: translateY(1px); }

.button.secondary {
    background: transparent;
    color: #244533;
    border-color: var(--borda-forte);
}
.button.secondary:hover { background: #eee7d7; }

.button.danger { background: var(--destaque); border-color: var(--destaque); color: #fff; }
.button.danger:hover { background: #8d332a; }

.button.gold {
    background: #e4c281;
    color: #173927;
    border-color: #e4c281;
}
.button.gold:hover { background: #d4ad67; }

.button.small { padding: 8px 12px; min-height: 38px; }
.button.bloco { width: 100%; }

.form-field { display: grid; gap: 6px; margin-bottom: 18px; }
.form-field > label { font-size: .875rem; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
    border: 1px solid var(--borda-forte);
    padding: 11px 12px;
    border-radius: 5px;
    background: var(--creme-claro);
    color: #203f32;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: #ab8546; }
.form-field small { font-size: .8125rem; color: #7b7968; line-height: 1.5; }

.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-error {
    font-size: .875rem;
    color: #953a30;
    background: #f9e9e3;
    border: 1px solid #e3c2b6;
    border-radius: 5px;
    padding: 11px 13px;
    line-height: 1.55;
    margin-bottom: 18px;
}
.form-ok {
    font-size: .875rem;
    color: #3d5c33;
    background: #e8efe0;
    border: 1px solid #c3d4b4;
    border-radius: 5px;
    padding: 11px 13px;
    margin-bottom: 18px;
}

.error-panel {
    background: #fff2e8;
    border: 1px solid #dcc9a8;
    padding: 24px;
    border-radius: 6px;
    color: #724426;
    margin: 20px 0;
}
.error-panel h3 { font-size: 1.4rem; }
.error-panel p { margin: 8px 0 16px; }

/* ----------------------------------------------------------- 11. Carrinho */

.cart-float {
    position: fixed;
    bottom: 24px;
    right: 30px;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #d3b773;
    border-radius: 9px;
    background: #103b2d;
    color: #f9f1dd;
    box-shadow: 0 7px 30px #092c2638;
    padding: 16px 23px;
    font-size: .875rem;
    transition: transform .2s ease, opacity .2s ease;
}
.cart-float[hidden] { display: none; }
.cart-float:hover { transform: translateY(-2px); }
.cart-float b {
    display: inline-block;
    border-radius: 4px;
    padding: 1px 7px;
    background: #365a42;
    margin-left: 5px;
}
.cart-float > strong { border-left: 1px solid #6c7958; padding-left: 15px; }

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: #0d241cb0;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.cart-backdrop.aberto { opacity: 1; pointer-events: auto; }

.cart-sheet {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(480px, 100%);
    background: var(--creme);
    z-index: 51;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
    box-shadow: -12px 0 40px #0d241c26;
}
.cart-sheet.aberto { transform: translateX(0); }

.cart-sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid var(--borda);
}
.cart-sheet-heading h2 { font-size: 2rem; font-weight: 500; }
.cart-fechar {
    background: transparent;
    border: 1px solid var(--borda);
    border-radius: 5px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: var(--texto);
}
.cart-fechar:hover { background: #eee7d7; }

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding: 0 24px 28px;
    flex: 1;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--borda);
    padding: 19px 0;
}
.cart-line h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 6px; }
.cart-line > div > span {
    font-size: .8125rem;
    color: #7f734f;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1cdbb;
    border-radius: 5px;
    flex-shrink: 0;
    height: 36px;
    background: var(--creme-claro);
}
.quantity-control button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px; height: 34px;
    background: transparent;
    border: 0;
    color: var(--texto);
}
.quantity-control button:hover { color: var(--ouro); }
.quantity-control > span { min-width: 23px; text-align: center; font-size: .875rem; }

.cart-totals { padding: 17px; background: #eee7d7; border-radius: 5px; }
.cart-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: .875rem;
    margin-bottom: 9px;
}
.cart-totals > div:last-child { margin-bottom: 0; }
.cart-totals > div:first-child strong { font-size: 1.25rem; }
.cart-totals small { font-size: .8125rem; color: #777561; }
.earned-line { color: #597146; }

.checkout-note { font-size: .8125rem; color: #777969; line-height: 1.6; }
.empty-cart { font-size: .95rem; padding: 20px 0; color: var(--texto-suave); }

.order-success {
    padding: 36px 27px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.order-success > svg { color: #507747; }
.order-success h3 { font-size: 2rem; }
.order-success p { font-size: .95rem; color: #6d745f; }
.order-success .button { margin-top: 8px; width: 100%; }

/* Botão flutuante do WhatsApp */
.whats-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 34;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px #0b3a2340;
    transition: transform .2s ease;
}
.whats-float:hover { transform: scale(1.07); }

/* -------------------------------------------------------- 12. Clube DAN */

.club-page { padding-block: 50px 65px; }

.club-intro {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 60px;
}
.club-intro .eyebrow { color: #99763b; }
.club-intro h1 {
    font-size: 3.7rem;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 19px 0 23px;
}
.club-intro h1 em { color: #a17b3e; }
.club-intro > div > p {
    color: #727866;
    max-width: 460px;
    font-size: 1rem;
    line-height: 1.8;
}

.club-rule {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .95rem;
    margin: 23px 0 9px;
}
.club-rule svg { color: var(--ouro); }
.club-intro > div > small {
    display: block;
    font-size: .8125rem;
    color: #7c7c6d;
    max-width: 390px;
}

.loyalty-card {
    border: 1px solid #9b8756;
    outline: 6px solid #143d2c;
    border-radius: 14px;
    background: #143d2c;
    color: #f5e7c6;
    padding: 32px 33px;
    box-shadow: 0 15px 28px #263e2818;
    position: relative;
}
.loyalty-card > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.loyalty-card .eyebrow { color: #d8b97b; }
.loyalty-card > div:first-child > svg { color: #d9be7c; }

.points-caption {
    display: block;
    font-size: .75rem;
    letter-spacing: .13em;
    color: #adbd9e;
    margin-top: 27px;
}
.points-balance {
    font-family: var(--fonte-titulo);
    font-weight: 500;
    font-size: 3.3rem;
    line-height: 1.4;
    display: block;
}
.points-balance > span {
    font-family: inherit;
    font-size: 1.05rem;
    margin-left: 12px;
    color: #d5c38f;
}
.loyalty-card > p {
    font-size: .875rem;
    color: #cad0b5;
    line-height: 1.7;
    margin-bottom: 15px;
    overflow-wrap: anywhere;
}
.loyalty-card > small { color: #aebf9d; font-size: .8125rem; }
.loyalty-card .button { margin-top: 17px; width: 100%; }

.reward-progress { margin-top: 21px; }
.club-progress {
    height: 5px;
    background: #486444;
    border-radius: 3px;
    overflow: hidden;
}
.club-progress > div {
    height: 100%;
    background: #dfbf79;
    border-radius: 3px;
    transition: width .5s ease;
}
.reward-progress small {
    display: block;
    font-size: .8125rem;
    margin-top: 10px;
    color: #c2c7a8;
}

.loyalty-card-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #416348;
    margin-top: 23px;
    padding-top: 15px;
}
.loyalty-card-actions > * {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8125rem;
    color: #c4c6a8;
    background: transparent;
    border: 0;
}
.loyalty-card-actions > *:hover { color: var(--ouro-claro); }

.rewards-section > .group-heading { justify-content: space-between; padding-bottom: 17px; }
.rewards-section h2 { font-size: 2rem; line-height: 1.3; }
.rewards-section h2 em { color: #98743c; }
.rewards-section > .group-heading > svg { color: #a38147; }

.reward-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.reward-card {
    border: 1px solid #d8cfb9;
    border-radius: 6px;
    padding: 24px;
    background: #f6efdf;
    transition: transform .2s ease, box-shadow .2s ease;
}
.reward-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #2a3f2c14; }
.reward-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #917034;
    font-size: .875rem;
    font-weight: 700;
    margin-bottom: 19px;
}
.reward-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.reward-card p { color: #777964; font-size: .9rem; line-height: 1.7; }
.reward-card .text-link { width: 100%; justify-content: space-between; }

.reward-empty {
    background: #f2edde;
    border: 1px dashed #d2cbb7;
    border-radius: 6px;
    margin-top: 22px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 30px;
}

.club-history { margin-top: 40px; }
.history-note { font-size: .8125rem; color: #7d7d6d; margin: 20px 0; }

.customer-orders { display: grid; gap: 18px; }
.customer-order, .admin-order {
    border: 1px solid #ddd4bd;
    padding: 23px;
    border-radius: 6px;
    background: #fffdf6;
}
.order-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.order-title strong { font-size: .95rem; font-weight: 700; color: #284935; }
.order-title small {
    font-size: .75rem;
    color: #8a8875;
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
}
.order-status {
    font-size: .75rem;
    border-radius: 4px;
    padding: 4px 10px;
    background: #e9e7dc;
    white-space: nowrap;
}
.order-status.pendente   { background: #f7ebc9; color: #8b692d; }
.order-status.confirmado { background: #e5efda; color: #4b6d37; }
.order-status.cancelado  { background: #f2e6e1; color: #99674f; }

.customer-order > p { font-size: .95rem; margin: 16px 0; color: #6c755d; }
.order-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: .8125rem;
    color: #81806b;
}
.order-summary > strong { font-size: 1rem; color: #234934; }
.points-positive { color: #5b7b3c; display: inline-flex; align-items: center; gap: 5px; }

.points-ledger > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--borda);
    padding: 18px 0;
    font-size: .95rem;
}
.points-ledger > div strong { font-size: .875rem; font-weight: 500; }
.points-ledger > div small { display: block; font-size: .75rem; color: #878777; margin-top: 3px; }
.points-ledger > div > span { white-space: nowrap; font-weight: 600; }

/* ------------------------------------------------------ 13. Administração */

.admin-page { min-height: 80vh; padding-block: 42px 64px; }

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
}
.admin-heading h1 { font-size: 2.5rem; line-height: 1.2; margin: 8px 0; }
.admin-heading p { font-size: .875rem; color: #77796d; }
.admin-heading .eyebrow { color: var(--ouro); }
.admin-head-actions { display: flex; align-items: center; gap: 12px; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}
.stat {
    background: #f1ecdf;
    border: 1px solid #e2d9c6;
    border-radius: 6px;
    padding: 20px 24px;
}
.stat strong {
    display: block;
    font-size: 2rem;
    font-family: var(--fonte-titulo);
    font-weight: 500;
    line-height: 1.3;
}
.stat span { font-size: .875rem; color: #747366; }

.admin-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f7edda;
    border: 1px solid #e8d4ab;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 24px 0;
    color: #775728;
    font-size: .875rem;
}
.admin-notice svg { flex-shrink: 0; margin-top: 3px; }

.admin-main-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--borda);
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-main-tabs::-webkit-scrollbar { display: none; }
.admin-main-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 15px 4px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--texto-suave);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.admin-main-tabs a:hover { color: #123c2c; }
.admin-main-tabs a.ativo { color: #123c2c; border-bottom-color: var(--ouro); }

.tab-count {
    background: #ded1aa;
    padding: 0 6px;
    border-radius: 3px;
    font-size: .75rem;
    line-height: 1.5;
}

.admin-table-wrap {
    border: 1px solid var(--borda);
    background: var(--creme-claro);
    border-radius: 6px;
    overflow-x: auto;
    margin-top: 20px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
    background: #f2ede1;
    color: #6b715f;
    font-size: .75rem;
    font-weight: 700;
    height: 48px;
    padding: 14px 18px;
    letter-spacing: .04em;
    text-align: left;
    white-space: nowrap;
}
.admin-table td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid var(--borda);
}
.admin-table tr:last-child td { border-bottom: 0; }

.admin-product-name {
    font-family: var(--fonte-titulo);
    font-size: 1.125rem;
    display: block;
    color: #163b2d;
}
.admin-product-description {
    display: block;
    color: #7a7e71;
    font-size: .8125rem;
    max-width: 450px;
    white-space: normal;
    line-height: 1.5;
    margin-top: 4px;
}

.status-pill {
    display: inline-block;
    font-size: .75rem;
    border-radius: 3px;
    padding: 3px 8px;
    color: #2b6043;
    background: #e7eee1;
}
.status-pill.off { color: #807d6a; background: #eeeade; }

.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.icon-button {
    border: 1px solid #ddd5c4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 5px;
    color: #49604a;
    background: transparent;
}
.icon-button:hover { background: #ede7d9; }
.icon-button.delete { color: #994c3b; }
.icon-button.delete:hover { background: #f4e5e0; }

.admin-filter-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}
.admin-filter-row > p { font-size: .875rem; color: #787969; }
.select-control {
    width: 220px;
    min-height: 43px;
    font-size: .875rem;
    background: var(--creme-claro);
    border: 1px solid var(--borda-forte);
    border-radius: 5px;
    padding: 0 12px;
    color: var(--texto);
}

.admin-orders { display: grid; gap: 20px; }
.admin-order ul {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    border-block: 1px solid var(--borda);
}
.admin-order li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: .875rem;
    padding: 12px 0;
}
.admin-order li + li { border-top: 1px dashed #e1daca; }
.admin-order li strong { white-space: nowrap; font-weight: 500; }

.admin-order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.admin-order-actions > div { display: flex; gap: 10px; }

.orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin: 23px 0;
}
.orders-toolbar p { font-size: .8125rem; color: #7d7d6d; }

.loyalty-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-top: 33px;
}
.loyalty-settings > div { max-width: 460px; }
.loyalty-settings h2 { font-size: 2.2rem; margin: 10px 0 15px; line-height: 1.3; }
.loyalty-settings p { font-size: .95rem; color: #727965; line-height: 1.75; }
.loyalty-settings .eyebrow { color: #977335; }
.loyalty-settings form { margin-top: 26px; }
.loyalty-settings aside {
    padding: 30px;
    background: #eee6d1;
    border: 1px solid #daceb2;
    border-radius: 7px;
    align-self: start;
}
.loyalty-settings aside > svg { color: #9d7a3b; }
.loyalty-settings aside h3 { font-size: 1.65rem; margin: 17px 0 12px; }
.loyalty-settings aside p { margin-bottom: 17px; }

/* Janela de edição de produto */
.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: #0d241cb0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dialog-backdrop.aberto { display: flex; }

.editor-dialog {
    max-width: 570px;
    width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 28px;
    background: var(--creme-claro);
    border-radius: 8px;
    box-shadow: 0 20px 60px #0d241c40;
}
.editor-dialog h2 { font-size: 1.8rem; font-weight: 500; margin-bottom: 18px; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--borda);
    padding-top: 20px;
    margin-top: 6px;
}

.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #eee8da;
    padding: 14px;
    border-radius: 5px;
    margin-bottom: 18px;
}
.switch-row label { font-size: .875rem; font-weight: 600; }
.switch-row p { font-size: .8125rem; color: #77776a; }

/* Interruptor acessível construído sobre um checkbox real.
   O input fica invisível, mas cobrindo todo o botão — é ele que recebe
   o clique. O <span> é só o desenho e deixa o clique passar. */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 25px;
    flex-shrink: 0;
}
.switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.switch > span {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: #c4c0af;
    border-radius: 25px;
    transition: background .2s ease;
}
.switch > span::before {
    content: "";
    position: absolute;
    width: 19px; height: 19px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
}
.switch input:checked + span { background: #3e6b4c; }
.switch input:checked + span::before { transform: translateX(19px); }
.switch input:focus-visible + span { outline: 2px solid var(--ouro); outline-offset: 2px; }

/* A área de toque no celular precisa ser maior que o desenho. */
@media (pointer: coarse) {
    .switch input { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
}

/* Aviso flutuante (substitui o toast do original) */
.toast-area {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.toast {
    background: #143d2c;
    color: #f5e7c6;
    padding: 13px 20px;
    border-radius: 6px;
    font-size: .875rem;
    box-shadow: 0 8px 26px #0d241c40;
    animation: toast-entra .3s ease;
    max-width: 90vw;
}
.toast.erro { background: #8d332a; }
@keyframes toast-entra {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------- 14. Entrar / cadastro */

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 110px);
}
.login-aside {
    background: var(--verde);
    color: #f2e5c9;
    padding: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-aside .eyebrow { color: #cfad71; }
.login-aside h1 {
    font-size: 3.3rem;
    line-height: 1.15;
    max-width: 450px;
    margin: 20px 0 24px;
}
.login-aside h1 em { color: #cfad71; }
.login-aside > p { font-size: .95rem; color: #c2c8ae; max-width: 410px; }
.login-aside > img {
    width: 100%;
    aspect-ratio: 2.5;
    object-fit: cover;
    margin-top: 35px;
    max-width: 500px;
    border-radius: 5px;
}

.login-main { display: flex; align-items: center; justify-content: center; padding: 50px; }
.login-card { max-width: 390px; width: 100%; }
.login-card > svg { color: #9f7d43; margin-bottom: 20px; }
.login-card h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 13px; }
.login-card > p { font-size: .95rem; color: #777a6a; margin-bottom: 26px; }
.login-card .back-link {
    display: block;
    text-align: center;
    font-size: .875rem;
    color: #6f785e;
    margin-top: 20px;
}
.auth-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .875rem;
    margin-top: 22px;
    color: #687257;
}
.auth-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------- 15. Animações */

/* Entrada suave conforme a seção aparece na tela.
   Só entra em cena com JavaScript ativo (a classe .js vem do <head>),
   para que uma falha no script nunca esconda conteúdo. */
.js .revelar {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .js .revelar { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 16. Responsivo */

@media (min-width: 1550px) {
    .hero-copy { padding-left: 55px; }
    .hero { border-inline: 1px solid var(--borda); }
}

@media (max-width: 1100px) {
    .wrap { width: calc(100% - 64px); }
    .hero-copy { padding-left: 32px; }
    .craft-strip { padding-inline: 32px; gap: 18px; }
    .craft-strip > div + div { padding-left: 18px; }
    .craft-strip small { font-size: .75rem; }
    .menu-caption { display: none; }
    .product-grid { column-gap: 30px; }
    .product-title { gap: 9px; }
    .product-title h4 { font-size: 1.2rem; }
    .local-grid { gap: 36px; }
    .club-intro { gap: 40px; }
    .club-intro h1 { font-size: 3.1rem; }
    .loyalty-card { padding: 26px; }
    .loyalty-settings { gap: 30px; }
    .reward-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .login-aside, .login-main { padding: 40px; }
    .login-aside h1 { font-size: 2.8rem; }
}

@media (max-width: 760px) {
    .wrap { width: calc(100% - 40px); }

    .header-inner { min-height: 94px; gap: 12px; }
    /* 116px deixa a marca com 71px de altura, que é o espaço útil
       do cabeçalho no celular (94px menos os respiros). */
    .brand { width: 116px; }

    /* Navegação vira painel deslizante */
    .nav-toggle { display: inline-flex; }
    .header-inner nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(300px, 82vw);
        background: var(--verde);
        border-left: 1px solid #3f5b4e;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 84px 24px 30px;
        font-size: 1rem;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.22,.61,.36,1);
        z-index: 45;
    }
    .header-inner nav.aberto { transform: translateX(0); }
    .header-inner nav > a {
        padding: 14px 0;
        border-bottom: 1px solid #2c4b3e;
    }
    .header-inner nav > a::after { display: none; }
    .essence-nav { display: block; }
    .admin-link { justify-content: flex-start; margin-top: 16px; border-color: #4c654e; }

    .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 340px; }
    .hero-copy { padding: 28px 12px 28px 20px; }
    .hero h1 { font-size: 2.05rem; margin-top: 13px; }
    .hero-copy > p { font-size: .875rem; line-height: 1.65; }
    .desktop-break { display: none; }
    .hero-signature { display: none; }
    .text-link { font-size: .8125rem; gap: 16px; }
    .hero-image { min-height: 320px; }
    .hero-image img { object-position: 58% center; }
    .hero-seal { height: 86px; width: 86px; right: 17px; bottom: 30px; }
    .hero-seal strong { font-size: .75rem; }

    .craft-strip { padding: 17px 20px; gap: 13px; }
    .craft-strip > div { gap: 9px; }
    .craft-strip svg { width: 22px; height: 22px; }
    .craft-strip > div + div { padding-left: 13px; }
    .craft-strip strong { font-size: .75rem; line-height: 1.4; }
    .craft-strip small { display: none; }

    .menu-section { padding-top: 32px; }
    .section-heading h2 { font-size: 2.3rem; }
    .section-heading > p { font-size: .8125rem; }
    .product-grid { grid-template-columns: 1fr; }
    .product-row { padding: 21px 0; }
    .product-title h4 { font-size: 1.3rem; }
    .product-content p { max-width: none; }
    .category-tabs { gap: 16px; width: 100%; }
    .category-tabs button { padding-inline: 4px; }

    .local-grid { grid-template-columns: 1fr; gap: 30px; }
    .local-section { padding: 42px 0; }
    .local-section h2 { font-size: 2rem; }

    .club-ribbon > .wrap { align-items: flex-start; flex-direction: column; gap: 22px; }
    .club-ribbon h2 { font-size: 1.65rem; }
    .club-ribbon p { font-size: .875rem; }

    .footer-main { gap: 28px; }
    .footer-bottom { flex-wrap: wrap; }
    .footer-bottom > span:nth-child(2) { display: none; }

    .club-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 45px; }
    .club-intro h1 { font-size: 3rem; }
    .club-page { padding-top: 32px; }
    .loyalty-card { max-width: 500px; outline-width: 4px; }
    .loyalty-settings { grid-template-columns: 1fr; gap: 30px; }
    .loyalty-settings > div { max-width: none; }

    .admin-heading { align-items: flex-start; flex-direction: column; }
    .admin-heading h1 { font-size: 2.15rem; }
    .admin-head-actions { width: 100%; justify-content: space-between; }
    .admin-stats { gap: 10px; }
    .stat { padding: 15px; }
    .stat strong { font-size: 1.75rem; }
    .stat span { font-size: .75rem; }
    .admin-table td, .admin-table th { padding: 14px; }
    .admin-product-description { max-width: 240px; }
    .admin-table .category-cell { display: none; }

    .login-layout { grid-template-columns: 1fr; min-height: 80vh; }
    .login-aside { padding: 32px 25px; min-height: 230px; }
    .login-aside h1 { font-size: 2.3rem; margin: 12px 0; }
    .login-aside > img { display: none; }
    .login-main { padding: 38px 24px; }
    .login-card { max-width: 450px; }

    .menu-footnote { align-items: flex-start; }
    .menu-footnote svg { margin-top: 4px; }

    .cart-float { right: 20px; bottom: 20px; padding: 14px 18px; }
    .whats-float { left: 20px; bottom: 20px; }
}

@media (max-width: 480px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 28px 24px 26px; align-items: center; text-align: center; }
    .hero h1 { font-size: 2.55rem; }
    .hero-copy > p { font-size: .875rem; max-width: 300px; }
    .text-link { margin-top: 16px; gap: 30px; }
    .hero-image { min-height: 235px; }
    .hero-image img { object-position: center 47%; }
    .hero-seal { height: 90px; width: 90px; right: 22px; bottom: 23px; }

    .craft-strip { gap: 10px; padding: 15px; }
    .craft-strip > div { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
    .craft-strip > div + div { padding-left: 10px; }
    .craft-strip svg { width: 21px; height: 21px; }

    .section-heading > p { display: none; }
    .category-tabs { gap: 12px; height: 58px; }
    .category-tabs button { font-size: .8125rem; gap: 3px; }
    .category-tabs svg { width: 15px; height: 15px; }

    .product-title { gap: 10px; flex-wrap: wrap; }
    .product-number { display: none; }
    .product-guia { display: none; }
    .product-title h4 { font-size: 1.3rem; flex: 1; }
    .group-heading h3 { font-size: 1.5rem; }

    .reward-grid { grid-template-columns: 1fr; }

    .footer-main { flex-direction: column; align-items: flex-start; padding-bottom: 27px; }
    .footer-contact { gap: 6px; }
    .footer-main p { font-size: .8125rem; }

    .admin-page { padding-top: 27px; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat { padding: 12px 10px; }
    .stat span { display: block; line-height: 1.45; }
    .admin-filter-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .select-control { width: 100%; }
    .form-columns { grid-template-columns: 1fr; }
    .editor-dialog { padding: 22px; }
    .form-actions .button { flex: 1; }
    .admin-table .availability-cell { display: none; }
    .admin-product-description { max-width: 175px; }
    .admin-table td, .admin-table th { padding-inline: 10px; }
    .row-actions { gap: 4px; }
    .icon-button { width: 31px; height: 34px; }

    .cart-float { left: 20px; right: 20px; justify-content: center; }
    .whats-float { display: none; }
}
/* ============================================ 17. Promoções e editor ====== */

/* -------------------------------------------------- Barra de prévia */

/* Não é fixa: o cabeçalho continua sendo quem gruda no topo. */
.barra-previa {
    background: #8a6a1f;
    color: #fff6e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px max(20px, calc((100vw - var(--largura)) / 2));
    font-size: .8125rem;
}
.barra-previa > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}
.previa-acoes { display: flex; gap: 18px; }
.previa-acoes a {
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.previa-acoes a:hover { color: #fff; }

/* ------------------------------------------------ Tarja de promoção */

.banner-topo {
    display: block;
    padding: 11px 0;
    font-size: .875rem;
    border-bottom: 1px solid #ffffff22;
    transition: filter .2s ease;
}
.banner-topo .wrap {
    display: flex;
    gap: 6px 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}
.banner-topo strong { font-weight: 700; }
.banner-topo em {
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
a.banner-topo:hover { filter: brightness(1.1); }

/* ---------------------------------------------- Bloco de promoção */

.banner-secao { padding: 48px 0; }
.banner-secao-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
}
.banner-secao-grid.sem-imagem {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}
.banner-secao h2 {
    font-size: 2.2rem;
    line-height: 1.22;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
.banner-secao p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: .92;
    margin-bottom: 22px;
    max-width: 52ch;
}
.banner-secao figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px #0d241c2e;
}
.banner-secao figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ------------------------------------------- Foto nos produtos */

.product-row.com-foto { gap: 18px; }

.product-foto {
    margin: 0;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee8dc;
    border: 1px solid var(--borda);
}
.product-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-row.com-foto:hover .product-foto img { transform: scale(1.06); }

/* --------------------------------------------- Cupom no carrinho */

.cupom-bloco { display: grid; gap: 8px; }
.cupom-linha { display: flex; gap: 8px; }
.cupom-linha input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 1px solid var(--borda-forte);
    padding: 11px 12px;
    border-radius: 5px;
    background: var(--creme-claro);
    color: #203f32;
    font-size: .95rem;
    min-width: 0;
}
.cupom-linha button { white-space: nowrap; }

.cupom-aplicado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #e8efe0;
    border: 1px solid #c3d4b4;
    color: #3d5c33;
    padding: 11px 13px;
    border-radius: 5px;
    font-size: .875rem;
}
.cupom-aplicado button {
    background: transparent;
    border: 0;
    color: #6d7f5e;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: .8125rem;
}
.cupom-aplicado button:hover { color: #3d5c33; }

.desconto-linha { color: #597146; }

/* ============================================ 18. Painel: editor ========== */

.editor-aviso {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #f7edda;
    border: 1px solid #e8d4ab;
    color: #775728;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 22px 0;
    font-size: .875rem;
}
.editor-aviso-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.grupo-conteudo {
    border: 1px solid var(--borda);
    border-radius: 7px;
    background: var(--creme-claro);
    margin-bottom: 16px;
    overflow: hidden;
}
.grupo-conteudo > summary {
    padding: 17px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f2ede1;
    font-weight: 600;
    font-size: .95rem;
    list-style: none;
}
.grupo-conteudo > summary::-webkit-details-marker { display: none; }
.grupo-conteudo > summary::after {
    content: "▾";
    color: var(--ouro);
    font-size: 1rem;
    transition: transform .2s ease;
}
.grupo-conteudo[open] > summary::after { transform: rotate(180deg); }
.grupo-conteudo > summary:hover { background: #eee7d7; }
.grupo-conteudo > summary small {
    display: block;
    font-weight: 400;
    color: #7a7e71;
    font-size: .8125rem;
    margin-top: 3px;
}
.grupo-corpo { padding: 22px 20px; }

.campo-conteudo { margin-bottom: 20px; }
.campo-conteudo:last-child { margin-bottom: 0; }
.campo-conteudo > label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.campo-conteudo input,
.campo-conteudo textarea {
    width: 100%;
    border: 1px solid var(--borda-forte);
    padding: 10px 12px;
    border-radius: 5px;
    background: #fffdf8;
    color: #203f32;
    font-size: .95rem;
    line-height: 1.5;
}
.campo-conteudo textarea { min-height: 84px; resize: vertical; }
.campo-conteudo input:focus,
.campo-conteudo textarea:focus { border-color: #ab8546; }
.campo-conteudo small {
    display: block;
    font-size: .8125rem;
    color: #7b7968;
    margin-top: 5px;
}

.voltar-padrao {
    background: transparent;
    border: 0;
    color: #7f7a66;
    font-size: .75rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    font-weight: 400;
}
.voltar-padrao:hover { color: var(--ouro); }

.marca-rascunho {
    display: inline-block;
    background: #f0dcb0;
    color: #7a5a1c;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.barra-salvar {
    position: sticky;
    bottom: 0;
    background: var(--creme);
    border-top: 1px solid var(--borda);
    padding: 16px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 24px;
    z-index: 5;
}
.barra-salvar p { font-size: .8125rem; color: #7a7e71; margin-right: auto; }

/* ------------------------------------------- Envio de imagem */

.campo-imagem {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 18px;
    align-items: start;
    border: 1px solid var(--borda);
    border-radius: 6px;
    padding: 18px;
    background: var(--creme-claro);
    margin-bottom: 18px;
}
.previa-imagem {
    width: 148px;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    overflow: hidden;
    background: #eee8dc;
    border: 1px solid var(--borda);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9484;
    font-size: .75rem;
    text-align: center;
    padding: 8px;
}
.previa-imagem img { width: 100%; height: 100%; object-fit: cover; display: block; }

.campo-imagem input[type="file"] {
    width: 100%;
    font-size: .875rem;
    border: 1px dashed var(--borda-forte);
    padding: 12px;
    border-radius: 5px;
    background: #fffdf8;
    cursor: pointer;
}
.campo-imagem h4 { font-size: 1.05rem; margin-bottom: 4px; }
.campo-imagem p { font-size: .8125rem; color: #7b7968; margin-bottom: 12px; line-height: 1.5; }

/* --------------------------------------- Listas de banner e cupom */

.lista-cartoes { display: grid; gap: 14px; margin-top: 20px; }

.cartao-promo {
    border: 1px solid var(--borda);
    border-radius: 7px;
    background: var(--creme-claro);
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cartao-promo-info { min-width: 0; flex: 1; }
.cartao-promo h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}
.cartao-promo p {
    font-size: .875rem;
    color: #7a7e71;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.cartao-promo-meta {
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-top: 9px;
    font-size: .75rem;
    color: #85836f;
}
.amostra-cor {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    border: 1px solid #00000022;
    vertical-align: -2px;
    margin-right: 4px;
}

.selo-situacao {
    font-size: .75rem;
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
    background: #e9e7dc;
    color: #75736a;
}
.selo-situacao.no-ar      { background: #e5efda; color: #4b6d37; }
.selo-situacao.agendado   { background: #f7ebc9; color: #8b692d; }
.selo-situacao.encerrado  { background: #f2e6e1; color: #99674f; }
.selo-situacao.desligado  { background: #eeeade; color: #807d6a; }

.cupom-codigo {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #1d4435;
}

/* --------------------------------------------- Responsivo do novo */

@media (max-width: 1100px) {
    .banner-secao-grid { gap: 32px; }
    .banner-secao h2 { font-size: 1.9rem; }
}

@media (max-width: 760px) {
    .barra-previa { font-size: .75rem; padding-inline: 20px; }
    .previa-acoes { gap: 14px; }

    .banner-topo { font-size: .8125rem; padding: 10px 0; }

    .banner-secao { padding: 36px 0; }
    .banner-secao-grid { grid-template-columns: 1fr; gap: 26px; }
    .banner-secao h2 { font-size: 1.7rem; }

    .product-foto { width: 76px; height: 76px; }
    .product-row.com-foto { gap: 14px; }

    .campo-imagem { grid-template-columns: 1fr; }
    .previa-imagem { width: 100%; max-width: 260px; }

    .cartao-promo { gap: 14px; }
    .barra-salvar { padding: 14px 0; }
    .barra-salvar p { width: 100%; margin-bottom: 4px; }
}

@media (max-width: 480px) {
    .product-foto { width: 64px; height: 64px; }
    .banner-topo .wrap { gap: 4px 10px; }
    .cupom-linha { flex-direction: column; }
    .cartao-promo { flex-direction: column; align-items: stretch; }
    .cartao-promo .row-actions { justify-content: flex-start; }
}

/* ==================================== 19. Escolha, entrega e PIX ========== */

/* ------------------------------------------- Aviso de fora do horário */

.aviso-fechado {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f7edda;
    border: 1px solid #e8d4ab;
    color: #775728;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 22px;
    font-size: .9rem;
    line-height: 1.6;
}
.aviso-fechado svg { flex-shrink: 0; margin-top: 3px; color: #a17d43; }
.aviso-fechado strong { display: block; }

/* "a partir de" antes do preço, quando há tamanhos */
.a-partir {
    display: block;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: #8b8571;
    text-transform: uppercase;
}

/* ----------------------------------- Janela de montagem da pizza */

.escolha-dialog { max-width: 520px; padding: 0; overflow: hidden; }

.escolha-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--borda);
    background: #f2ede1;
}
.escolha-topo h2 { font-size: 1.6rem; font-weight: 500; margin: 0; }

#escolha-corpo { padding: 22px 24px 24px; max-height: 70dvh; overflow-y: auto; }

.escolha-bloco { margin-bottom: 24px; }
.escolha-bloco:last-of-type { margin-bottom: 18px; }
.escolha-bloco.compacto { margin: 4px 0 18px; }
.escolha-bloco h3 {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--fonte-texto);
    margin-bottom: 10px;
}
.escolha-bloco h3 small { font-weight: 400; color: #7b7968; font-size: .8125rem; }
.escolha-dica { font-size: .8125rem; color: #7b7968; margin-bottom: 10px; }

.escolha-opcoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.escolha-opcoes.duas { grid-template-columns: repeat(2, 1fr); }

.escolha-opcao {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    padding: 13px 14px;
    border: 1px solid var(--borda-forte);
    border-radius: 6px;
    background: var(--creme-claro);
    color: var(--texto);
    transition: border-color .18s ease, background .18s ease;
}
.escolha-opcao:hover:not(:disabled) { border-color: var(--ouro); background: #fffdf6; }
.escolha-opcao.ativa {
    border-color: var(--verde);
    background: #eef2e8;
    box-shadow: inset 0 0 0 1px var(--verde);
}
.escolha-opcao:disabled { opacity: .45; cursor: not-allowed; }
.escolha-opcao strong { font-size: .95rem; font-weight: 600; }
.escolha-opcao small { font-size: .75rem; color: #85836f; }
.escolha-opcao span {
    font-size: .875rem;
    font-weight: 700;
    color: #1d4435;
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

.escolha-rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--borda);
    padding-top: 18px;
    flex-wrap: wrap;
}
.escolha-rodape > div { display: flex; flex-direction: column; }
.escolha-rodape span { font-size: .8125rem; color: #7b7968; }
.escolha-rodape strong { font-size: 1.5rem; font-family: var(--fonte-titulo); font-weight: 500; }

/* --------------------------------------------------- Caixa do PIX */

.pix-caixa {
    width: 100%;
    background: #eef2e8;
    border: 1px solid #c9d6bd;
    border-radius: 7px;
    padding: 18px;
    text-align: left;
    margin-top: 4px;
}
.pix-caixa > strong { display: block; font-size: 1rem; margin-bottom: 6px; color: #2d4a33; }
.pix-caixa p { font-size: .8125rem; color: #6d7f5e; margin-bottom: 12px; line-height: 1.55; }
.pix-caixa code {
    display: block;
    background: #fffdf8;
    border: 1px solid var(--borda);
    border-radius: 5px;
    padding: 11px 12px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .6875rem;
    line-height: 1.5;
    word-break: break-all;
    max-height: 96px;
    overflow-y: auto;
    margin-bottom: 12px;
    color: #3c4a38;
}
.pix-caixa small { display: block; font-size: .75rem; color: #7b8a6d; margin-top: 9px; }

/* --------------------------------------------------- Responsivo */

@media (max-width: 620px) {
    .escolha-opcoes { grid-template-columns: repeat(2, 1fr); }
    .escolha-rodape { flex-direction: column; align-items: stretch; gap: 12px; }
    .escolha-rodape .button { width: 100%; }
}

@media (max-width: 420px) {
    .escolha-opcoes, .escolha-opcoes.duas { grid-template-columns: 1fr; }
    .escolha-opcao { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .escolha-opcao span { margin-left: auto; }
    .escolha-topo { padding: 18px 20px; }
    #escolha-corpo { padding: 18px 20px 20px; }
}

/* ================================ 20. Painel: horários, preços, temas ===== */

/* ------------------------------------------- Horário de atendimento */

.linha-horario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--borda);
}
.linha-horario:last-of-type { border-bottom: 0; }

.dia-horario {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 110px;
}
.dia-horario input {
    width: 17px;
    height: 17px;
    accent-color: #3e6b4c;
    cursor: pointer;
}

.horas-horario {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8125rem;
    color: #7b7968;
}
.horas-horario input {
    border: 1px solid var(--borda-forte);
    border-radius: 5px;
    padding: 7px 9px;
    background: var(--creme-claro);
    color: var(--texto);
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}
.horas-horario input:focus { border-color: #ab8546; outline: none; }

/* Dia desmarcado fica apagado, sem sumir. */
.linha-horario:has(input[type="checkbox"]:not(:checked)) .horas-horario { opacity: .4; }

/* ------------------------------------- Tabela de preços por tamanho */

.tabela-precos th:not(:first-child),
.tabela-precos td:not(:first-child) { width: 120px; text-align: center; }

.campo-preco-tabela {
    width: 100%;
    max-width: 104px;
    border: 1px solid var(--borda-forte);
    border-radius: 5px;
    padding: 8px 10px;
    background: var(--creme-claro);
    color: var(--texto);
    font-size: .875rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.campo-preco-tabela:focus { border-color: #ab8546; outline: none; background: #fffdf6; }
.campo-preco-tabela::placeholder { color: #b8b3a1; }

/* ----------------------------------------------- Cores do tema */

.grade-cores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.grade-cores .form-field { margin-bottom: 0; }
.grade-cores input[type="color"] {
    width: 100%;
    border: 1px solid var(--borda-forte);
    border-radius: 5px;
    background: var(--creme-claro);
    cursor: pointer;
}

/* --------------------------------------------------- Responsivo */

@media (max-width: 760px) {
    .linha-horario { flex-wrap: wrap; gap: 8px; }
    .dia-horario { min-width: 0; }
    .grade-cores { grid-template-columns: 1fr; }
    .tabela-precos th:not(:first-child),
    .tabela-precos td:not(:first-child) { width: 92px; }
    .campo-preco-tabela { max-width: 80px; padding: 7px 8px; }
}

@media (max-width: 480px) {
    .horas-horario { width: 100%; }
    .horas-horario input { flex: 1; min-width: 0; }
}

/* Selo da versão instalada, ao lado do "Olá" no painel */
.selo-versao {
    display: inline-block;
    background: #eee8dc;
    color: #7a7565;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: 1px;
}
