/* Tema das lojas dos clientes. As cores vêm do loja.json (--c-principal, --c-destaque, --c-fundo). */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: #1f2618; background: var(--c-fundo); line-height: 1.55; }
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.1; margin: 0 0 .4em; }
a { color: var(--c-principal); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.loja-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.loja-aviso { background: #111; color: #fff; text-align: center; font-size: 13px; padding: 8px; }
.loja-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--c-fundo) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,.06); }
.loja-top__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.loja-logo { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--c-principal); text-decoration: none; }
.loja-logo img { max-height: 44px; display: block; }
.loja-nav { display: flex; align-items: center; gap: 20px; }
.loja-nav a { text-decoration: none; color: inherit; font-weight: 500; }
.loja-cart-link { background: var(--c-principal); color: #fff !important; padding: 8px 14px; border-radius: 999px; font-weight: 700 !important; }

.btn-loja { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; border: 0; border-radius: 999px; background: var(--c-destaque); color: #1f2618; padding: 9px 16px; cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s; }
.btn-loja:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-loja:disabled { opacity: .6; cursor: wait; }
.btn-loja--grande { padding: 14px 24px; font-size: 1.05rem; }
.btn-loja--bloco { width: 100%; }

.banner { background: var(--c-principal); color: #fff; border-radius: 28px; padding: 56px 44px; margin: 28px 0 8px; }
.banner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16em; }
.banner p { font-size: 1.1rem; max-width: 36em; opacity: .9; margin: 0 0 24px; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 20px; }
.filtros button { font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(0,0,0,.1); cursor: pointer; }
.filtros button.active { background: #1f2618; color: #fff; border-color: #1f2618; }

.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 24px 0 48px; }
.produto { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.produto__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: color-mix(in srgb, var(--c-destaque) 18%, #fff); overflow: hidden; }
.produto__img img { width: 100%; height: 100%; object-fit: cover; }
.produto__img .tag { position: absolute; top: 10px; left: 10px; background: #1f2618; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.produto--esgotado .produto__img { opacity: .55; }
.thumb-emoji { font-size: 4rem; }
.thumb-emoji.grande { font-size: 9rem; }
.produto__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.produto__body h3 { font-size: 1.2rem; }
.produto__body h3 a { color: inherit; text-decoration: none; }
.produto__body p { margin: 0 0 12px; color: #5c6553; font-size: .9rem; flex: 1; }
.produto__buy { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.produto__buy strong { font-size: 1.15rem; }

.vantagens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-bottom: 60px; text-align: center; }
.vantagens div { background: #fff; border-radius: 18px; padding: 22px; }

.detalhe { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.detalhe__img { background: #fff; border-radius: 24px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.detalhe__img img { width: 100%; height: 100%; object-fit: cover; }
.detalhe h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.detalhe__preco { font-size: 1.8rem; font-weight: 700; margin: 0 0 16px; }
.detalhe__preco small { font-size: .8rem; font-weight: 400; color: #5c6553; }
.detalhe__mais { color: #5c6553; font-size: .95rem; white-space: pre-line; }
.detalhe__comprar { display: flex; gap: 10px; margin-top: 20px; }
.detalhe__comprar input { width: 80px; font: inherit; font-size: 1.05rem; padding: 10px; border-radius: 14px; border: 1px solid rgba(0,0,0,.15); text-align: center; }
.voltar { font-size: .9rem; text-decoration: none; }
.esgotado { font-weight: 700; color: #a33; }

.carrinho { max-width: 760px; padding-top: 36px; padding-bottom: 60px; }
.linha { display: grid; grid-template-columns: 64px 1fr 70px 90px 32px; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; }
.linha__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--c-destaque) 18%, #fff); }
.linha__img img { width: 100%; height: 100%; object-fit: cover; }
.linha input { width: 100%; font: inherit; padding: 8px; border-radius: 10px; border: 1px solid rgba(0,0,0,.15); text-align: center; }
.linha strong { text-align: right; }
.linha__remover { border: 0; background: transparent; font-size: 1rem; cursor: pointer; color: #888; }
.vazio { font-size: 1.1rem; }
.carrinho__fim { background: #fff; border-radius: 20px; padding: 22px; margin-top: 20px; }
.entrega { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.entrega legend { font-weight: 700; margin-bottom: 8px; }
.entrega label { display: block; padding: 10px 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; cursor: pointer; }
.entrega small { color: #5c6553; }
.totais div { display: flex; justify-content: space-between; padding: 6px 0; }
.totais .total { border-top: 1px solid rgba(0,0,0,.1); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; }
.erro { background: #fde2e2; color: #8a1f1f; padding: 10px 14px; border-radius: 10px; }
.nota { font-size: .85rem; color: #5c6553; text-align: center; margin-bottom: 0; }
.obrigado { text-align: center; padding: 90px 20px; }
.grande-emoji { font-size: 4rem; }
.legal { max-width: 780px; padding-top: 36px; padding-bottom: 60px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

.loja-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1f2618; color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 10; max-width: calc(100% - 32px); }
.loja-toast a { color: var(--c-destaque); font-weight: 700; }

.loja-footer { background: #1f2618; color: #c9d0bd; padding: 36px 0 20px; font-size: .92rem; }
.loja-footer strong { color: #fff; font-size: 1.1rem; }
.loja-footer a { color: #e8eddf; }
.loja-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.loja-footer__links { display: flex; flex-direction: column; gap: 6px; }
.loja-footer__legal { border-top: 1px solid #333d2a; margin-top: 24px; padding-top: 16px; font-size: .82rem; }

@media (max-width: 760px) {
  .banner { padding: 36px 24px; border-radius: 22px; }
  .detalhe { grid-template-columns: 1fr; }
  .produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .linha { grid-template-columns: 52px 1fr 60px 28px; }
  .linha__img { width: 52px; height: 52px; }
  .linha strong { display: none; }
  .loja-nav a:not(.loja-cart-link) { display: none; }
}
