/* ==========================================================================
   Padaria — folha de estilos
   Paleta inspirada em casca de pão, farinha e trigo.
   Mobile-first: estilos base para celular, @media para telas maiores.
   ========================================================================== */

:root {
    /* Cores da marca Vinipão (extraídas do logo) */
    --brand-brown:  #682B19;  /* marrom do logo */
    --brand-orange: #F29200;  /* laranja "INDÚSTRIA" */
    --brand-red:    #DD2A30;  /* vermelho do gorro (só campanhas de Natal) */

    --flour:   #FFFBF5;   /* fundo */
    --cream:   #FBF0E2;   /* superfícies */
    --wheat:   var(--brand-orange);   /* destaque */
    --crust:   var(--brand-brown);    /* ação principal */
    --crust-d: #4E1F11;
    --espresso:#3A1A10;   /* texto */
    --accent-text: #A35C00; /* laranja escurecido p/ texto pequeno (contraste AA) */
    --muted:   #7A5A4C;
    --line:    #EEDFCB;
    --ok:      #2F6B3B;
    --error:   #A23A2A;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --radius: 14px;
    --radius-lg: 24px;
    --shadow: 0 1px 2px rgba(104,43,25,.06), 0 8px 24px rgba(104,43,25,.08);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--espresso);
    background: var(--flour);
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crust-d); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--espresso); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--crust);
    background: var(--crust); color: #fff; font: 600 .95rem var(--font-body);
    text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--crust-d); border-color: var(--crust-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--crust); }
.btn-ghost:hover { background: var(--crust); color: #fff; }
.btn-light { background: var(--flour); color: var(--espresso); border-color: var(--flour); }
.btn-light:hover { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--espresso); }
.btn-small { padding: .55rem 1.1rem; font-size: .88rem; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .25rem; }

/* ---------- Header ---------- */
.announce { background: var(--brand-brown); color: var(--cream); text-align: center; font-size: .82rem; padding: .5rem 1rem; }
.announce p { margin: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,239,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--espresso); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.logo-light { color: var(--flour); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.main-nav a { color: var(--espresso); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-color: var(--wheat); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.search input { width: 150px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; }
.cart-link { position: relative; color: var(--espresso); }
.badge { position: absolute; top: -6px; right: -8px; background: var(--crust); color: #fff; font-size: .7rem; border-radius: 999px; padding: 0 .4rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
    .nav-toggle .bar { width: 24px; height: 2px; background: var(--espresso); transition: transform .2s; }
    .main-nav { position: absolute; inset: 100% 0 auto 0; background: var(--flour); border-bottom: 1px solid var(--line); display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 1rem 1.25rem; }
    .main-nav a { display: block; padding: .8rem 0; }
    .search { display: none; }
    .header-actions { margin-left: 0; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: 2rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--brand-brown); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--flour); }
.section-dark .eyebrow { color: var(--brand-orange); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head-center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand-orange); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-media { position: relative; }
.hero-media { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #fff 0, #fff 45%, var(--cream) 46%, var(--cream) 100%); border-radius: var(--radius-lg); padding: clamp(1.5rem, 5vw, 3.5rem); aspect-ratio: 1; }
.hero-media img { width: 82%; height: auto; }
.hero-badge { position: absolute; left: -1rem; bottom: 2rem; background: #fff; border-radius: var(--radius); padding: .9rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; font-size: .9rem; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--crust); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }

.page-hero { padding: 3rem 0 1.5rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Categorias ---------- */
.category-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.category-strip a { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.4rem 1rem; background: var(--cream); border-radius: var(--radius); text-decoration: none; color: var(--espresso); font-weight: 600; transition: background .2s, transform .2s; }
.category-strip a:hover { background: #FBDDA9; transform: translateY(-3px); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--espresso); font-size: .9rem; background: #fff; }
.chip:hover { border-color: var(--crust); color: var(--crust); }
.chip.is-active { background: var(--brand-brown); border-color: var(--brand-brown); color: var(--flour); }

/* ---------- Produtos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,29,21,.12); }
.product-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.pill { position: absolute; top: .8rem; left: .8rem; background: var(--flour); color: var(--espresso); font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.pill-accent { background: var(--brand-orange); }
.pill-season { background: var(--brand-red); color: #fff; }
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-tags { font-size: .75rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .3rem; }
.product-name { font-size: 1.15rem; margin-bottom: .3rem; }
.product-name a { color: inherit; text-decoration: none; }
.product-summary { font-size: .92rem; color: var(--muted); flex: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .5rem; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.price-lg { font-size: 1.7rem; color: var(--crust); }

.product-detail { display: grid; gap: 3rem; }
.product-detail-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream); }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } .product-detail-media { position: sticky; top: 100px; } }
.facts { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.facts li { background: var(--cream); padding: .5rem .9rem; border-radius: 10px; font-size: .9rem; }
.facts strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.buy-box { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.qty { width: 80px; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-align: center; }
.accordion { border-top: 1px solid var(--line); padding: 1rem 0; }
.accordion:last-of-type { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.accordion[open] summary::after { content: "–"; }
.accordion p { margin: .75rem 0 0; color: var(--muted); }

/* ---------- Processo ---------- */
.process { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.process li { border-top: 1px solid rgba(242,233,218,.25); padding-top: 1.5rem; }
.process-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--wheat); display: block; margin-bottom: .5rem; }
.process p { color: rgba(242,233,218,.8); }

/* ---------- Ocasiões ---------- */
.occasions { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.occasion { padding: 2rem; border-radius: var(--radius-lg); background: var(--cream); text-decoration: none; color: var(--espresso); min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .2s; }
.occasion:nth-child(2) { background: #F8E3C8; }
.occasion:nth-child(3) { background: #F3D9CC; }
.occasion:hover { background: #FBDDA9; color: var(--espresso); }
.occasion p { margin: 0; color: var(--muted); }

/* ---------- CTA / Visite ---------- */
.cta-band { background: var(--brand-orange); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; }
.visit, .split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .visit, .split { grid-template-columns: 1fr 1fr; } }
.visit-media img, .split img { border-radius: var(--radius-lg); }
.hours { margin: 1rem 0 1.5rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); max-width: 320px; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); }
.values { list-style: none; padding: 0; }
.values li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: s; background: var(--cream); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--crust); color: #fff; font-weight: 600; margin-bottom: .6rem; }
.steps strong { display: block; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--cream); border-radius: var(--radius); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: .4rem; }
.form label { font-weight: 500; font-size: .9rem; margin-top: .6rem; }
.form input, .form textarea { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.form button { margin-top: 1rem; justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; }
.alert-ok { background: #E3F0E1; color: var(--ok); }
.alert-error { background: #F6E1DC; color: var(--error); }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-top: 1rem; }
.map-placeholder { display: grid; place-items: center; background: var(--cream); color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem; }

/* ---------- Carrinho (fase 2) ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .5rem; border-bottom: 1px solid var(--line); }
.cart-actions { display: flex; justify-content: flex-end; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-brown); color: var(--cream); padding: 4rem 0 1.5rem; margin-top: 2rem; }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-orange); }
.site-footer a { color: var(--cream); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .muted { color: rgba(242,233,218,.65); margin-top: 1rem; }
.site-footer .hours div { border-color: rgba(242,233,218,.15); }
.site-footer .hours dd { color: rgba(242,233,218,.7); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(242,233,218,.15); margin-top: 3rem; padding-top: 1.5rem; color: rgba(242,233,218,.6); }

.whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 60; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Ajustes para celular ---------- */
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .product-body { padding: .8rem .85rem 1rem; }
    .product-name { font-size: 1rem; }
    .product-summary { display: none; }
    .product-footer { flex-direction: column; align-items: flex-start; }
    .hero-badge { left: 1rem; bottom: 1rem; }
    .header-actions .btn-small { white-space: nowrap; padding: .5rem .9rem; font-size: .82rem; }
    .logo span { font-size: 1rem; }
    .category-strip { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Vinipão: marca e encomendas ---------- */
.logo img { height: 66px; width: auto; }
.announce a { color: var(--brand-orange); font-weight: 600; text-decoration: none; }
.announce strong { color: #fff; }
.footer-logo img { height: 80px; width: auto; }

.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--brand-orange); font-weight: 700; margin-right: .4rem; }

.btn-accent { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--espresso); }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--brand-brown); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--brand-red); }
.btn-whatsapp { background: #1F8F4E; border-color: #1F8F4E; }
.btn-whatsapp:hover { background: #17733E; border-color: #17733E; }

/* Faixa sazonal (Natal) — usa o vermelho do gorro do logo */
.season-band { background: var(--brand-red); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; position: relative; overflow: hidden; }
.season-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.season-band h2 { color: #fff; margin-bottom: .3rem; }
.season-band p { margin: 0; color: rgba(255,255,255,.9); }
.season-band .eyebrow { color: #FFE2B0; }
.season-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }

.process-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.process-num { color: var(--brand-orange); }

/* Formulário de encomenda (página do produto) */
.order-form { background: var(--cream); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.order-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.order-form small { font-weight: 400; color: var(--muted); }
.order-form input, .order-form textarea { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; width: 100%; }
.order-form .qty { width: 100%; text-align: left; }
.order-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: .75rem; }
.order-form .btn { justify-self: start; }
.form-hint { font-size: .82rem; color: var(--muted); margin: 0; }
.cart-date { display: grid; gap: .3rem; max-width: 260px; font-weight: 600; margin-bottom: .4rem; }
.cart-date input { padding: .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

.about-logo { max-width: 380px; margin-inline: auto; }
.site-footer address { margin-bottom: 1rem; }
.footer-links li { color: rgba(251,243,230,.85); }

@media (max-width: 600px) {
    .logo img { height: 46px; }
    .announce { font-size: .75rem; }
    .order-row { grid-template-columns: 1fr; }
}
.price { white-space: nowrap; }
.product-footer { flex-wrap: wrap; }

/* ==========================================================================
   Carrinho de compras
   ========================================================================== */
.small { font-size: .88rem; }
.page-hero-tight { padding-bottom: .5rem; }

/* Botão do carrinho no topo */
.cart-button { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 999px; background: var(--brand-brown); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.cart-button:hover { background: var(--crust-d); color: #fff; }
.cart-button .badge { position: static; background: var(--brand-orange); color: var(--espresso); font-weight: 700; font-size: .75rem; min-width: 1.4em; text-align: center; padding: .05rem .4rem; }

/* Botão adicionar nos cards */
.btn-add { padding: .5rem .95rem; }
.btn-add span { font-size: 1.1em; line-height: 1; }
.btn-add.is-added { background: #1F8F4E; border-color: #1F8F4E; }

/* Aviso flutuante */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); opacity: 0; background: var(--espresso); color: #fff; padding: .85rem 1.2rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 80; display: flex; gap: 1rem; align-items: center; max-width: calc(100% - 2rem); transition: opacity .25s, transform .25s; font-size: .92rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--brand-orange); font-weight: 700; white-space: nowrap; }

/* Seletor de quantidade */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; width: fit-content; }
.stepper button { border: 0; background: var(--cream); width: 42px; font-size: 1.2rem; cursor: pointer; color: var(--brand-brown); font-weight: 700; }
.stepper button:hover { background: #FBDDA9; }
.order-form .stepper .qty, .stepper .qty { width: 64px; border: 0; border-radius: 0; text-align: center; padding: .6rem .2rem; -moz-appearance: textfield; font: inherit; }
.stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-sm button { width: 34px; font-size: 1rem; }
.stepper-sm .qty { width: 48px; padding: .4rem .2rem; }
.order-total { display: grid; align-content: end; justify-items: end; gap: .2rem; font-size: .85rem; color: var(--muted); }
.order-total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-brown); }
.order-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* Layout do carrinho */
.cart-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .cart-layout { grid-template-columns: 1fr 360px; } .cart-summary { position: sticky; top: 110px; } }
.cart-main { display: grid; gap: 1.5rem; }
.cart-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.cart-card h2 { font-size: 1.35rem; }
.cart-step { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.cart-step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-orange); color: var(--espresso); font: 700 .9rem var(--font-body); flex: none; }
.checkout .cart-step:not(:first-child) { margin-top: 1.75rem; }

.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: .25rem; }
.cart-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--cream); }
.cart-info { display: grid; gap: .2rem; min-width: 0; }
.cart-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--espresso); text-decoration: none; }
.cart-meta { font-size: .82rem; color: var(--muted); }
.cart-obs input { width: 100%; padding: .45rem .65rem; border: 1px dashed var(--line); border-radius: 8px; font: inherit; font-size: .85rem; background: var(--flour); margin-top: .25rem; }
.cart-qty { display: grid; justify-items: center; gap: .25rem; }
.cart-line-total { font-family: var(--font-display); font-size: 1.1rem; min-width: 92px; text-align: right; white-space: nowrap; }
.cart-more { margin: 1rem 0 0; }
.link-button { background: none; border: 0; padding: .2rem; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--error); }

@media (max-width: 640px) {
    .cart-item { grid-template-columns: 60px 1fr auto; grid-template-areas: "thumb info info" "thumb qty total"; }
    .cart-thumb { grid-area: thumb; align-self: start; }
    .cart-thumb img { width: 60px; height: 60px; }
    .cart-info { grid-area: info; }
    .cart-qty { grid-area: qty; justify-items: start; grid-auto-flow: column; align-items: center; gap: .75rem; }
    .cart-line-total { grid-area: total; }
}

/* Formulário de fechamento */
.checkout label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; margin-top: .75rem; }
.checkout input:not([type=radio]):not([type=checkbox]), .checkout select, .checkout textarea { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; width: 100%; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { border-color: var(--brand-orange); outline: 2px solid rgba(242,146,0,.25); }
.checkout .is-invalid { border-color: var(--error) !important; background: #FFF6F4 !important; }
.checkout .form-hint { font-weight: 400; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { border: 0; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.choice legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.choice-option { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0 !important; }
.choice-option:has(input:checked) { border-color: var(--brand-orange); background: #FFF7EA; }
.choice-option input { margin-top: .25rem; accent-color: var(--brand-brown); }
.choice-option span { display: grid; gap: .15rem; }
.choice-option small { font-weight: 400; color: var(--muted); }
.delivery-fields { margin-top: .25rem; padding: .25rem 0 0; }
.check { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; }
.check input { accent-color: var(--brand-brown); width: 18px; height: 18px; }

/* Resumo */
.summary { margin: 1rem 0; }
.summary div { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.summary dd { margin: 0; font-weight: 600; }
.summary-total { border-bottom: 0 !important; padding-top: .9rem !important; }
.summary-total dt { font-weight: 700; }
.summary-total dd { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-brown); }
.btn-block { width: 100%; margin: 1rem 0 .5rem; padding: 1rem; font-size: 1rem; }
.cart-summary .link-button { display: block; margin: 0 auto; }

.empty img { margin: 0 auto 1rem; }
.empty h2 { font-size: 1.5rem; }
.sent { background: #EAF6EE; }
.sent-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* Dados da empresa (CNPJ) */
.company-data { display: grid; gap: .2rem; }
.company-data strong { color: rgba(251,243,230,.9); font-weight: 600; }
.company-table { margin: 1.5rem 0 0; background: #fff; border-radius: var(--radius); padding: .5rem 1.5rem; box-shadow: var(--shadow); }
.company-table div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.company-table div:last-child { border-bottom: 0; }
.company-table dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.company-table dd { margin: 0; }
@media (max-width: 600px) { .company-table div { grid-template-columns: 1fr; gap: .2rem; } }

@media (max-width: 600px) {
    .cart-button .cart-label { display: none; }
    .cart-button { padding: .55rem .8rem; }
    .product-footer .btn-add { width: 100%; }
}
.grid-2 { align-items: start; }
.checkout label { align-content: start; }
.stepper { flex: none; }
@media (max-width: 640px) {
    .cart-qty { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
    .cart-item { grid-template-columns: 60px 1fr auto; }
}

/* Aviso de arquivos desatualizados */
.site-warning { background: #FFF3CD; color: #6B4E00; text-align: center; padding: .8rem 1rem; font-weight: 600; position: relative; z-index: 100; }
.site-warning a { color: var(--brand-brown); }

/* Botão flutuante do carrinho */
.cart-float { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 58px; height: 58px; border-radius: 50%; background: var(--brand-brown); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(104,43,25,.35); z-index: 60; transition: transform .2s; }
.cart-float:hover { transform: scale(1.07); color: #fff; }
.cart-float .badge { position: absolute; top: -4px; right: -4px; background: var(--brand-orange); color: var(--espresso); font-weight: 700; font-size: .75rem; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 .3rem; border-radius: 999px; }
@media (min-width: 901px) { .cart-float { display: none; } }  /* no computador o carrinho já está no topo */
.toast { bottom: 5.5rem; }
@media (min-width: 901px) { .toast { bottom: 1.5rem; } }
.toast { width: max-content; }
@media (max-width: 600px) {
    .toast { left: 1rem; right: 1rem; width: auto; transform: translateY(20px); justify-content: space-between; }
    .toast.is-visible { transform: none; }
    .pill { font-size: .68rem; padding: .25rem .55rem; top: .55rem; left: .55rem; }
}

/* ==========================================================================
   Chocotones + "Em breve"
   ========================================================================== */
.script-title { font-family: "Dancing Script", "Brush Script MT", cursive; font-weight: 700; color: var(--brand-red); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; margin-bottom: .75rem; letter-spacing: 0; }

/* Destaque estilo "cardápio" (como no material de divulgação) */
.feature-choco { display: grid; gap: 0; background: #F3E2CC; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature-choco-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; max-height: 420px; }
.feature-choco-body { padding: clamp(1.75rem, 4vw, 3.25rem); position: relative; }
@media (min-width: 900px) {
    .feature-choco { grid-template-columns: 1fr 1.15fr; }
    .feature-choco-media { order: 2; }
    .feature-choco-media img { max-height: none; height: 100%; }
}
.price-list { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: .9rem; }
.price-list li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline; gap: .75rem; }
.price-name { font: 700 1.35rem var(--font-body); text-transform: uppercase; letter-spacing: .02em; color: var(--brand-brown); text-decoration: none; }
.price-name::before { content: "✦ "; color: var(--brand-brown); font-size: .8em; }
.price-dots { border-bottom: 2px dotted rgba(104,43,25,.45); transform: translateY(-.3rem); }
.price-value { font: 700 1.35rem var(--font-body); color: var(--brand-brown); white-space: nowrap; }
.price-list .btn-add { align-self: center; }
@media (max-width: 520px) {
    .price-list li { grid-template-columns: auto 1fr auto; row-gap: .4rem; }
    .price-list .btn-add { grid-column: 1 / -1; justify-self: start; }
    .price-name, .price-value { font-size: 1.15rem; }
}

.product-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.size-tag { position: absolute; right: .8rem; bottom: .8rem; background: var(--brand-brown); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }

/* Seletor de tamanho na página do produto */
.size-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.25rem 0 .5rem; }
.size-picker-label { width: 100%; font-weight: 600; font-size: .9rem; }
.size-option { display: grid; gap: .1rem; min-width: 104px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--espresso); background: #fff; text-align: center; }
.size-option strong { font-size: .95rem; }
.size-option span { font-size: .85rem; color: var(--muted); }
.size-option:hover { border-color: var(--brand-orange); color: var(--espresso); }
.size-option.is-active { border-color: var(--brand-brown); background: var(--brand-brown); color: #fff; }
.size-option.is-active span { color: rgba(255,255,255,.85); }

/* "Em breve" */
.soon-badge { display: inline-block; background: var(--brand-orange); color: var(--espresso); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; vertical-align: middle; }
.soon-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.soon-card { position: relative; background: var(--cream); border: 1.5px dashed #E7C9A2; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem 1.5rem; }
.soon-card .soon-badge { position: absolute; top: 1rem; right: 1rem; }
.soon-card img { opacity: .75; margin-bottom: .75rem; }
.soon-card h3 { margin-bottom: .3rem; }
.soon-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.chip-soon { color: var(--muted); border-style: dashed; }
.chip-soon small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); font-weight: 700; margin-left: .2rem; }
.chip-soon.is-active small { color: var(--brand-orange); }
.soon-note { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: #FFF4E2; border: 1px solid #F6D9A8; border-radius: 12px; padding: .75rem 1rem; color: var(--espresso); margin: -0.5rem 0 1.75rem; }
.soon-empty .soon-badge { margin-bottom: .75rem; }
/* destaque: a foto acompanha a altura do texto em vez de esticar a seção */
@media (min-width: 900px) {
    .feature-choco-media { position: relative; min-height: 460px; }
    .feature-choco-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
}
.feature-choco-media img { object-position: center 25%; }

/* ==========================================================================
   Seção Natal + regra de entrega
   ========================================================================== */
.section-natal { background: radial-gradient(circle at 15% 10%, rgba(242,146,0,.10), transparent 40%), radial-gradient(circle at 85% 90%, rgba(221,42,48,.07), transparent 45%), #FFF6EA; border-top: 1px solid #F6E2C6; border-bottom: 1px solid #F6E2C6; }
.natal-head { margin-bottom: 2rem; }
.natal-title { font-family: "Dancing Script", "Brush Script MT", cursive; font-weight: 700; color: var(--brand-red); font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; margin: 0 0 .4rem; }
.natal-title span { color: var(--brand-orange); font-size: .45em; vertical-align: middle; }
.natal-sub { margin: 3rem 0 1.25rem; align-items: center; }
.natal-sub h3 { font-size: 1.5rem; margin: 0; }

.choice-option.is-locked { opacity: .7; cursor: not-allowed; background: #FAF6F0; }
.choice-option.is-locked input { cursor: not-allowed; }
.lock-tag { font-style: normal; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #EFE4D6; color: var(--muted); padding: .15rem .5rem; border-radius: 999px; margin-left: .35rem; vertical-align: middle; }
.delivery-progress { color: var(--accent-text) !important; font-weight: 600 !important; }
.delivery-progress.is-ok { color: #1F8F4E !important; }
.is-readonly { background: #F6F1EA !important; color: var(--muted); }
.footer-note { font-size: .85rem; color: rgba(251,243,230,.7) !important; margin-top: .3rem; }

/* Selo "Foto real" */
.photo-tag { position: absolute; left: .8rem; bottom: .8rem; background: rgba(255,255,255,.92); color: var(--espresso); font-weight: 600; font-size: .72rem; padding: .3rem .65rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.photo-tag::before { content: "📷 "; }
.photo-tag-lg { left: 1.25rem; bottom: 1.25rem; font-size: .82rem; padding: .4rem .85rem; z-index: 1; }
.feature-choco-media { position: relative; }
figure.product-detail-media { margin: 0; }
.photo-caption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .photo-tag { font-size: .62rem; left: .5rem; bottom: .5rem; padding: .22rem .5rem; } .size-tag { right: .5rem; bottom: .5rem; font-size: .66rem; } }

/* Tarja "Versão do desenvolvedor" (somente versão PHP com dev.enabled) */
.dev-ribbon { position: sticky; top: 0; z-index: 90; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; padding: .45rem 1rem; background: repeating-linear-gradient(-45deg, #1E3A8A, #1E3A8A 14px, #1D4ED8 14px, #1D4ED8 28px); color: #fff; font-size: .82rem; text-align: center; }
.dev-ribbon strong { letter-spacing: .04em; text-transform: uppercase; }
.dev-ribbon span { opacity: .9; }
.dev-ribbon ~ .site-header { top: 34px; }
@media (max-width: 600px) { .dev-ribbon { font-size: .72rem; } .dev-ribbon span { display: none; } .dev-ribbon ~ .site-header { top: 29px; } }
.sent-registered { color: #1F8F4E; font-weight: 700; margin-bottom: .5rem; }

/* Pedido registrado no sistema */
.registered { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center; border-top: 6px solid #1F8F4E; }
.registered:focus { outline: none; }
.registered-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #E6F4EA; color: #1F8F4E; display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.registered h2 { font-size: 1.8rem; margin-bottom: .4rem; }
.registered-code { font-size: 1.05rem; }
.registered-code strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; color: var(--brand-brown); background: var(--cream); padding: .15rem .5rem; border-radius: 6px; }
.registered-summary { text-align: left; margin: 1.25rem 0; background: var(--flour); border-radius: 12px; padding: .5rem 1rem; }
.registered-summary div { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.registered-summary div:last-child { border-bottom: 0; }
.registered-summary dt { color: var(--muted); font-size: .9rem; }
.registered-summary dd { margin: 0; font-weight: 600; }
.registered-optional { margin: 1.5rem 0 .5rem; padding: 1rem 1.25rem; border: 1.5px dashed var(--line); border-radius: 14px; background: #FCFAF6; }
.registered-optional p { margin: .5rem 0 .75rem; color: var(--muted); font-size: .95rem; }
.failed { background: #FFF6F4; }
@media (max-width: 520px) { .registered-summary div { grid-template-columns: 1fr; gap: .1rem; } }
