/* MTHEONE SHOP — base: cores, tipografia, cabeçalho, rodapé, botões, carrinho */
:root {
  --preto: #0B0B0B;
  --dourado: #C9A15B;
  --dourado-escuro: #A47E3C;
  /* tons derivados só do preto e do dourado */
  --preto-2: #141310;
  --linha: rgba(201, 161, 91, .22);
  --texto: rgba(255, 255, 255, .92);
  --texto-suave: rgba(255, 255, 255, .62);
  --fonte: "Jost", "Helvetica Neue", Arial, sans-serif;
  --raio: 14px;
  --margem: clamp(16px, 4vw, 48px);
  --topo: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.05; margin: 0; font-weight: 600; letter-spacing: -.02em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--margem); }
.ouro { color: var(--dourado); }
.rotulo {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--dourado); font-weight: 500;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--dourado); background: transparent;
  color: var(--dourado); font-weight: 500; letter-spacing: .02em;
  transition: background .25s, color .25s, transform .2s;
}
.btn:hover { background: rgba(201, 161, 91, .1); }
.btn:active { transform: scale(.97); }
.btn--ouro { background: var(--dourado); color: var(--preto); }
.btn--ouro:hover { background: #d6b273; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Logo (SVG em linha usa a Jost carregada pela página) */
.logo svg { height: 26px; width: auto; display: block; }
.logo text, .logo-svg text { font-family: var(--fonte); }

/* Cabeçalho */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topo.rolou, .topo.solido {
  background: rgba(11, 11, 11, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--linha);
}
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu { display: none; gap: 32px; font-size: 15px; }
.menu a { color: var(--texto-suave); transition: color .2s; position: relative; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--dourado); }
.topo-acoes { display: flex; align-items: center; gap: 6px; }
.icone-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: none; border: 0; color: var(--dourado);
}
.icone-btn svg { width: 24px; height: 24px; }
.contador {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--dourado); color: var(--preto);
  font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.contador[hidden] { display: none; }
.contador.pulo { animation: pulo .45s ease; }
@keyframes pulo { 40% { transform: scale(1.35); } }

/* Menu do celular */
.menu-movel {
  position: fixed; inset: 0; z-index: 60; background: var(--preto);
  display: flex; flex-direction: column; padding: calc(var(--topo) + 24px) var(--margem) 32px;
  gap: 8px; transform: translateY(-100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.menu-movel.aberto { transform: none; }
.menu-movel a { font-size: 34px; font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.menu-movel a[aria-current="page"] { color: var(--dourado); }
.menu-movel .fechar { position: absolute; top: 12px; right: var(--margem); }

@media (min-width: 900px) {
  .menu { display: flex; }
  .so-movel { display: none !important; }
  :root { --topo: 76px; }
  .logo svg { height: 30px; }
}

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding: 56px 0 32px; margin-top: 80px; color: var(--texto-suave); font-size: 14px; }
.rodape-grade { display: grid; gap: 32px; }
.rodape h4 { color: var(--dourado); font-weight: 500; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 12px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape a:hover { color: var(--dourado); }
.rodape .logo svg { height: 64px; }
.rodape-fim { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linha); font-size: 12px; }
@media (min-width: 760px) { .rodape-grade { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Gaveta do carrinho */
.carrinho-fundo {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.carrinho {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 100%); background: var(--preto-2); border-left: 1px solid var(--linha);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.carrinho-aberto .carrinho { transform: none; }
.carrinho-aberto .carrinho-fundo { opacity: 1; pointer-events: auto; }
.carrinho-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--linha); }
.carrinho-topo h2 { font-size: 22px; }
.carrinho-lista { flex: 1; overflow-y: auto; padding: 8px 20px; }
.carrinho-vazio { text-align: center; padding: 48px 8px; color: var(--texto-suave); }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.item img { width: 64px; height: 80px; object-fit: contain; }
.item-nome { font-weight: 500; line-height: 1.25; }
.item-preco { color: var(--dourado); font-size: 14px; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--linha); border-radius: 999px; margin-top: 8px; }
.qtd button { width: 32px; height: 32px; background: none; border: 0; color: var(--dourado); font-size: 18px; }
.qtd span { min-width: 22px; text-align: center; font-size: 14px; }
.item-remover { background: none; border: 0; color: var(--texto-suave); font-size: 13px; text-decoration: underline; }
.carrinho-rodape { padding: 20px; border-top: 1px solid var(--linha); display: grid; gap: 12px; }
.carrinho-total { display: flex; justify-content: space-between; font-size: 18px; }
.carrinho-total strong { color: var(--dourado); }
.carrinho-aviso { font-size: 13px; color: var(--texto-suave); margin: 0; }
#finalizar[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pagamento { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pagamento legend { font-size: 13px; color: var(--texto-suave); padding: 0; margin-bottom: 8px; }
.pagamento label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--linha); border-radius: 999px; cursor: pointer; font-size: 15px; }
.pagamento label:has(input:checked) { border-color: var(--dourado); color: var(--dourado); }
.pagamento input { accent-color: var(--dourado); margin: 0; }
.avista { font-size: .62em; font-weight: 400; color: var(--texto-suave); margin-left: 4px; white-space: nowrap; }

/* Aviso rápido */
.aviso-rapido {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  background: var(--dourado); color: var(--preto); padding: 12px 20px; border-radius: 999px;
  font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; white-space: nowrap;
}
.aviso-rapido.mostrar { opacity: 1; transform: translate(-50%, 0); }

/* Preço */
.preco { color: var(--dourado); font-weight: 500; }
.esgotado { color: var(--texto-suave); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Aviso de cookies */
.aviso-cookies {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 16px; background: var(--preto-2); border: 1px solid var(--dourado); border-radius: var(--raio);
  box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: 14px; color: var(--texto-suave);
}
.aviso-cookies p { margin: 0; flex: 1 1 260px; }
.aviso-cookies a { color: var(--dourado); text-decoration: underline; }
.aviso-cookies .btn { min-height: 40px; padding: 0 22px; }
