/* Atacadex (18/11/2026): roxo e laranja da logo (DESIGN.md). Texto nunca abaixo de 15 px.
   Roxo = texto, preço, link e filtro; LARANJA = só o botão de ação, com letra roxa bem escura (6,4:1).
   Laranja nunca vira texto sobre fundo claro (2,6:1). Os nomes --verde* ficaram como APELIDOS do roxo. */
:root {
  --roxo: #3b1c78; --roxo-escuro: #2a1257; --roxo-fundo: #efebf8; --laranja: #ff7a1a; --laranja-forte: #e5600a; --tinta-acao: #24104f;
  --fundo: #f7f5fb; --cartao: #ffffff; --linha: #e7e3ef; --linha-forte: #d3cde2;
  --tinta: #1d1730; --mudo: #5d566f; --verde: var(--roxo); --verde-escuro: var(--roxo-escuro); --verde-fundo: var(--roxo-fundo);
  --raio: 12px; --sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 16px/1.5 var(--sistema); }
a { color: var(--verde); }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--verde) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.pular:focus { left: 8px; }

/* ---- topo ---- */
.topo { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--linha); }
.topo-in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.nome { display: block; flex: none; line-height: 0; }
.nome img { display: block; height: 52px; width: auto; }
.busca { flex: 1; max-width: 640px; position: relative; }
.busca input { width: 100%; height: 48px; padding: 0 16px 0 46px; border: 1.5px solid var(--linha-forte); border-radius: 10px; background: #fff; font-size: 16px; }
.busca::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d566f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.busca input:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px var(--verde-fundo); }
.voltar { font-weight: 700; text-decoration: none; margin-right: auto; }
.btn-pedido { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 10px;
  background: var(--laranja); color: var(--tinta-acao); font-weight: 800; text-decoration: none; flex: none; }
.btn-pedido:hover { background: var(--laranja-forte); }
.btn-pedido .conta { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: #fff; color: var(--tinta-acao); font-size: 15px; display: grid; place-items: center; }

/* ---- catálogo: filtro lateral + grade ---- */
.loja { max-width: 1320px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filtros { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; padding-right: 4px; }
.filtros-topo, .btn-ver { display: none; }
.grupo + .grupo { margin-top: 28px; }
.grupo h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--tinta); }
.opcoes { list-style: none; margin: 0; padding: 0; }
.opcoes button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--tinta); cursor: pointer; }
@media (hover: hover) { .opcoes button:hover { background: #f2effa; } }
.opcoes button.ativo { background: var(--verde-fundo); color: var(--verde-escuro); font-weight: 700; }
.busca-marca input { width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid var(--linha-forte); border-radius: 8px; margin-bottom: 6px; font-size: 15px; background: #fff; }
.ver-todas { border: 0; background: none; color: var(--verde); font-weight: 700; padding: 8px 12px; cursor: pointer; font-size: 15px; }

.lista-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.lista-topo h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.controles { display: flex; gap: 10px; align-items: center; }
.ordem { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mudo); }
.ordem select { height: 42px; padding: 0 12px; border: 1.5px solid var(--linha-forte); border-radius: 8px; background: #fff; font-size: 15px; color: var(--tinta); }
.btn-filtrar { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip { border: 1.5px solid var(--verde); background: var(--verde-fundo); color: var(--verde-escuro); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; cursor: pointer; }
.chip.limpar { background: none; border-color: transparent; color: var(--mudo); text-decoration: underline; font-weight: 600; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--linha-forte); }
.foto { display: block; position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--linha); text-decoration: none; overflow: hidden; }
.foto img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; display: block; }
.sem-foto { position: absolute; inset: 14px; display: grid; place-items: center; text-align: center; background: #f3f1f8; border-radius: 8px; color: var(--mudo); font-weight: 700; font-size: 15px; padding: 10px; }
.info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.marca { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--verde); letter-spacing: .01em; }
.nm { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nm a { color: var(--tinta); text-decoration: none; }
.nm a:hover { text-decoration: underline; }
.sabores { margin: 6px 0 0; font-size: 15px; color: var(--mudo); }
.pe { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.preco { margin: 0; font-size: 21px; font-weight: 800; color: var(--verde-escuro); letter-spacing: -0.01em; line-height: 1.15; }
.preco small { display: block; font-size: 15px; font-weight: 600; color: var(--mudo); letter-spacing: 0; }
.preco.esg { font-size: 16px; color: var(--mudo); }
.add { display: block; text-align: center; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; background: var(--laranja); color: var(--tinta-acao); border: 1.5px solid var(--laranja); }
.add:hover { background: var(--laranja-forte); border-color: var(--laranja-forte); }
.add.escolher { background: #fff; color: var(--roxo); border-color: var(--roxo); }
.add.escolher:hover { background: var(--roxo-fundo); color: var(--roxo-escuro); border-color: var(--roxo-escuro); }
.add.loading { opacity: .6; }
.add.added::after { content: " ✓"; }
.card .added_to_cart { font-size: 15px; font-weight: 700; text-align: center; }
.card.esgotado .foto, .card.esgotado .nm a { opacity: .6; }
.vazio { padding: 40px 0; text-align: center; color: var(--mudo); }
.vazio button { border: 0; background: none; color: var(--verde); font-weight: 700; text-decoration: underline; cursor: pointer; }
.mais { text-align: center; margin-top: 24px; }
.mais button { height: 48px; padding: 0 28px; border-radius: 10px; border: 1.5px solid var(--verde); background: #fff; color: var(--verde); font-weight: 700; cursor: pointer; }
.mais button:hover { background: var(--verde-fundo); }

.rodape { max-width: 1320px; margin: 24px auto 0; padding: 20px 24px 32px; border-top: 1px solid var(--linha); color: var(--mudo); font-size: 15px; }
.rodape p { margin: 0; max-width: 70ch; }

/* ---- produto, pedido e envio (telas do WooCommerce vestidas) ---- */
.miolo { max-width: 1120px; margin: 0 auto; padding: 28px 24px; }
.miolo-pagina { max-width: 960px; }
.titulo-pagina { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.marca-produto { margin: 0 0 4px; color: var(--verde); font-weight: 700; font-size: 15px; }
.woocommerce div.product .product_title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--verde-escuro); font-size: 28px; font-weight: 800; }
.woocommerce div.product form.cart { margin: 20px 0; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations label { font-weight: 800; font-size: 16px; }
.woocommerce div.product form.cart .variations select { width: 100%; min-width: 0; height: 48px; padding: 0 12px; margin: 6px 0 10px; border: 1.5px solid var(--linha-forte); border-radius: 10px; background: #fff; font-size: 16px; }
.woocommerce .quantity .qty { width: 84px; height: 48px; border: 1.5px solid var(--linha-forte); border-radius: 10px; font-size: 16px; }
.woocommerce button.button, .woocommerce a.button, .woocommerce #respond input#submit, .woocommerce input.button, .woocommerce button.button.alt, .woocommerce a.button.alt {
  background: var(--laranja); color: var(--tinta-acao); border-radius: 10px; font-weight: 800; font-size: 16px; padding: 14px 22px; border: 0; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--laranja-forte); color: var(--tinta-acao); }
.woocommerce button.button.alt.disabled, .woocommerce button.button.disabled, .woocommerce button.button.alt.disabled:hover { background: #e6e1f1; color: var(--roxo-escuro); opacity: 1; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 24px; }
.woocommerce div.product .stock { color: var(--verde); font-weight: 700; }
.woocommerce div.product .out-of-stock { color: var(--mudo); }
.reset_variations { font-size: 15px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: #fff; border-color: var(--linha); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 16px; }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 16px; max-width: 75ch; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--verde) !important; background: #fff; font-size: 16px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--verde) !important; }
.woocommerce table.shop_table { border-radius: var(--raio); background: #fff; font-size: 16px; }
.woocommerce form .form-row label { font-weight: 700; font-size: 16px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { height: 48px; padding: 0 12px; border: 1.5px solid var(--linha-forte); border-radius: 10px; font-size: 16px; background: #fff; }
.woocommerce form .form-row textarea { height: 110px; padding: 10px 12px; }
.woocommerce-checkout #payment { background: var(--verde-fundo); border-radius: var(--raio); }
.woocommerce-checkout #payment div.payment_box { background: #fff; font-size: 15px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }

/* ---- celular ---- */
@media (max-width: 900px) {
  .topo-in { flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; }
  .nome img { height: 36px; }
  .busca { order: 3; flex-basis: 100%; max-width: none; }
  .btn-pedido { height: 44px; }
  .loja { grid-template-columns: 1fr; padding: 16px; gap: 0; }
  .filtros { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; background: #fff; padding: 16px 16px 90px;
    transform: translateX(-102%); transition: transform .22s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 40px rgba(20,32,26,.18); }
  .filtros-abertos .filtros { transform: none; }
  .filtros-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .filtros-topo h2 { margin: 0; font-size: 20px; }
  .fechar { border: 0; background: none; color: var(--verde); font-weight: 700; font-size: 16px; padding: 8px; }
  .btn-ver { display: block; position: fixed; left: 16px; bottom: 16px; width: calc(min(340px, 88vw) - 32px); height: 52px; border: 0; border-radius: 10px; background: var(--laranja); color: var(--tinta-acao); font-weight: 800; font-size: 16px; }
  .fundo-filtros { position: fixed; inset: 0; z-index: 30; background: rgba(20,32,26,.35); }
  .lista-topo h1 { font-size: 23px; flex-basis: 100%; }
  .controles { width: 100%; }
  .btn-filtrar { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 8px; border: 1.5px solid var(--verde); background: #fff; color: var(--verde); font-weight: 700; }
  .ordem { margin-left: auto; }
  .ordem span { display: none; }
  .ordem select { height: 44px; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .foto img, .sem-foto { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .info { padding: 10px 10px 12px; }
  .preco { font-size: 19px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce div.product .product_title { font-size: 24px; }
  .miolo { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .filtros { transition: none; } }
