/* =========================================================
   LojaTodoDia3D — estilos globais
   Base, grade, cabeçalho, menus, drawers, rodapé e widgets.
   Cores e medidas seguem o tema original (Flatsome + Max Mega Menu).
   ========================================================= */

:root {
  color-scheme: light dark;

  /* Marca: cores tiradas da logo LojaTodoDia3D */
  --cor-primaria: #2644bf;          /* azul royal do "3" */
  --cor-primaria-escura: #1b2f8a;
  --cor-secundaria: #d10838;        /* magenta-vermelho do "D" */
  --cor-destaque: #fbe017;          /* amarelo de "TodoDia" */
  --cor-marinho: #1b0a44;           /* contorno da logo */
  --cor-branco: #ffffff;
  --rgb-primaria: 38 68 191;
  --rgb-branco: 255 255 255;

  /* Tema claro: fundos, texto e linhas */
  --cor-fundo: #ffffff;
  --rgb-fundo: 255 255 255;
  --cor-cartao: #ffffff;            /* menus suspensos, janelas, cartões */
  --cor-superficie: #f6f5fb;
  --cor-superficie-2: #edeaf6;
  --cor-texto: #2b2640;
  --cor-texto-forte: #14102a;
  --cor-texto-suave: #5e5873;
  --cor-texto-fraco: #645e79;
  --cor-borda: #e6e3ef;
  --cor-borda-forte: #cfcadd;
  --cor-borda-painel: #2b2640;
  --rgb-tinta: 0 0 0;               /* véus e linhas finas: escurecem no claro, clareiam no escuro */
  --rgb-sombra: 0 0 0;

  /* Papéis */
  --cor-titulo: var(--cor-primaria);
  --cor-link: var(--cor-primaria);
  --cor-link-hover: var(--cor-secundaria);
  --cor-botao: var(--cor-primaria);
  --cor-botao-hover: var(--cor-primaria-escura);
  --cor-texto-botao: var(--cor-branco);
  --cor-preco: var(--cor-primaria);
  --cor-foco: var(--cor-primaria);
  --cor-estrela: #d46a00;
  --cor-alerta: #c4122f;
  --cor-sucesso: #2e7d4f;
  --cor-texto-destaque: var(--cor-marinho);   /* texto sobre o amarelo */
  --cor-faixa: var(--cor-primaria);           /* barra do topo e faixa de título */
  --cor-texto-faixa: var(--cor-branco);
  --cor-aviso: #f1eff7;
  --cor-rodape: var(--cor-marinho);
  --cor-rodape-inferior: #12072f;
  --cor-texto-rodape: var(--cor-branco);
  --cor-menu-grupo: var(--cor-primaria);
  --cor-menu-grupo-hover: var(--cor-secundaria);
  --cor-menu-hover: rgb(var(--rgb-primaria) / 0.14);
  --cor-overlay: rgb(11 9 26 / 0.6);
  --cor-video: #0b0918;
  --cor-erro-flash: #ffd6de;

  /* Marcas de terceiros */
  --cor-whatsapp: #25d366;
  --cor-facebook: #3a589d;
  --cor-instagram: #3b6994;
  --cor-youtube: #c33223;
  --cor-youtube-play: #ff0000;

  --container: 1050px;
  --header-top-h: 55px;
  --header-main-h: 65px;
  --header-bottom-h: 55px;
  --header-stuck-h: 70px;

  --font: Arial, Helvetica, sans-serif;
  --fonte-titulos: "Poppins", Arial, Helvetica, sans-serif;

  /* Forma e movimento (não são cores: valem para os dois temas) */
  --raio-sm: 8px;
  --raio-md: 12px;
  --raio-lg: 16px;
  --raio-xl: 24px;
  --raio-pilula: 999px;
  --sombra-sm: 0 1px 2px rgb(var(--rgb-sombra) / 0.04), 0 2px 8px rgb(var(--rgb-sombra) / 0.04);
  --sombra-md: 0 2px 4px rgb(var(--rgb-sombra) / 0.04), 0 12px 28px -6px rgb(var(--rgb-sombra) / 0.12);
  --sombra-lg: 0 4px 8px rgb(var(--rgb-sombra) / 0.04), 0 24px 48px -12px rgb(var(--rgb-sombra) / 0.18);
  --ease-suave: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tema escuro: segue a preferência do sistema. Fundos marinho (não preto),
   texto claro e as cores da logo como destaque. */
@media (prefers-color-scheme: dark) {
  :root {
    --cor-fundo: #16132b;
    --rgb-fundo: 22 19 43;
    --cor-cartao: #1f1b3a;
    --cor-superficie: #1f1b3a;
    --cor-superficie-2: #29244a;
    --cor-texto: #ecebf5;
    --cor-texto-forte: #ffffff;
    --cor-texto-suave: #b9b4cc;
    --cor-texto-fraco: #a29cba;
    --cor-borda: #332e52;
    --cor-borda-forte: #4a446b;
    --cor-borda-painel: #4a446b;
    --rgb-tinta: 255 255 255;

    --cor-titulo: #8ea2ff;
    --cor-link: #8ea2ff;
    --cor-link-hover: #ff5c7a;
    --cor-botao: #3d5ce0;
    --cor-botao-hover: #3049c4;
    --cor-preco: #8ea2ff;
    --cor-foco: #8ea2ff;
    --cor-estrela: #fbc02d;
    --cor-alerta: #ff6b81;
    --cor-sucesso: #5fd08a;
    --cor-aviso: #1f1b3a;
    --cor-rodape: #100d22;
    --cor-rodape-inferior: #0b0918;
    --cor-menu-grupo: #8ea2ff;
    --cor-menu-grupo-hover: #ff5c7a;
    --cor-menu-hover: rgb(142 162 255 / 0.16);
    --cor-erro-flash: #5a1a2a;
  }
}

/* ---------- Reset e base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--cor-fundo);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

svg {
  display: block;
}

a {
  color: var(--cor-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--cor-link-hover);
}

p {
  margin: 0 0 1.3em;
}

/* Como no tema original: parágrafos vazios (comuns no conteúdo do WordPress) não ocupam espaço */
p:empty {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--cor-titulo);
  font-weight: 700;
  font-family: var(--fonte-titulos);
  width: 100%;
}

/* Como no tema original: só h1 e h2 têm altura de linha própria; h3–h6 herdam 1.6 do body */
h1, h2 {
  line-height: 1.3;
}

h1 { font-size: 1.7em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.125em; }
h5 { font-size: 1em; }
h6 { font-size: 0.85em; opacity: 0.8; }

@media (max-width: 549px) {
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.2em; }
  h3, h4 { font-size: 1em; }
}

hr {
  border: 0;
  border-top: 1px solid;
  margin: 15px 0;
  opacity: 0.1;
}

table {
  width: 100%;
  margin-bottom: 1em;
  border-spacing: 0;
  border-color: var(--cor-borda);
}

td,
th {
  padding: 0.5em;
  border-bottom: 1px solid var(--cor-borda);
  font-size: 0.9em;
  line-height: 1.3;
  text-align: left;
}

td:first-child,
th:first-child {
  padding-left: 0;
}

td:last-child,
th:last-child {
  padding-right: 0;
}

th {
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

td {
  color: var(--cor-texto-suave);
}

/* Tabela larga: rola na horizontal em telas estreitas (no original ela ficava cortada).
   A margem de baixo da tabela fica dentro da caixa, como no original: ela não se
   junta com a margem do elemento seguinte (ex.: <hr>). */
.table-scroll {
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--cor-foco);
  outline-offset: 2px;
}

/* Conteúdo que no original ficou dentro da caixa de uma tabela: aparece lado a lado
   com ela, como lá (no celular a caixa rola em vez de cortar o que passa da tela) */
.table-row {
  display: flex;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Texto de exemplo dos campos com contraste AA nos dois temas */
::placeholder {
  color: var(--cor-texto-fraco);
  opacity: 1;
}

/* Identidade LojaTodoDia3D: botões e menu na Poppins, como os títulos */
button,
.button,
input[type="submit"],
.mega-link,
.nav-sidebar > li > a {
  font-family: var(--fonte-titulos);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--cor-foco);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  top: 5px;
  left: 5px;
  z-index: 100000;
  padding: 15px 23px;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-weight: 700;
}

/* ---------- Visibilidade por tamanho de tela (pontos do Flatsome) ---------- */

@media (max-width: 849px) {
  .hide-for-medium { display: none !important; }
}
@media (min-width: 850px) {
  .show-for-medium { display: none !important; }
}
@media (max-width: 549px) {
  .hide-for-small { display: none !important; }
}
@media (min-width: 550px) {
  .show-for-small { display: none !important; }
}

/* ---------- Grade ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.col {
  position: relative;
  width: 100%;
  padding: 0 15px 30px;
}

.small-6  { flex-basis: 50%;  max-width: 50%; }
.small-12 { flex-basis: 100%; max-width: 100%; }

@media (min-width: 550px) {
  .medium-2  { flex-basis: 16.6667%; max-width: 16.6667%; }
  .medium-3  { flex-basis: 25%;      max-width: 25%; }
  .medium-4  { flex-basis: 33.3333%; max-width: 33.3333%; }
  .medium-6  { flex-basis: 50%;      max-width: 50%; }
  .medium-12 { flex-basis: 100%;     max-width: 100%; }
}

@media (min-width: 850px) {
  .large-2  { flex-basis: 16.6667%; max-width: 16.6667%; }
  .large-3  { flex-basis: 25%;      max-width: 25%; }
  .large-4  { flex-basis: 33.3333%; max-width: 33.3333%; }
  .large-6  { flex-basis: 50%;      max-width: 50%; }
  .large-12 { flex-basis: 100%;     max-width: 100%; }
}

/* ---------- Botões ---------- */

.button {
  display: inline-block;
  position: relative;
  min-height: 2.5em;
  max-width: 100%;
  padding: 0 1.2em;
  border: 1px solid rgb(var(--rgb-tinta) / 0.05);
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
  font-size: 0.97em;
  font-weight: bolder;
  line-height: 2.4em;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
  transition: box-shadow 0.3s, opacity 0.3s;
}

.button:hover {
  color: var(--cor-texto-botao);
  box-shadow: inset 0 0 0 100px rgb(var(--rgb-sombra) / 0.2);
}

/* ---------- Títulos de seção ---------- */

.section-title-container {
  display: flow-root; /* a margem do título fica dentro, como no clearfix do tema */
  margin-bottom: 1.5em;
}

.section-title {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0.5em;
}

.section-title b {
  display: block;
  flex: 1;
  height: 2px;
  background-color: currentColor;
  opacity: 0.1;
}

.section-title span {
  text-transform: uppercase;
}

.section-title-bold-center span {
  text-align: center;
  border: 2px solid rgb(var(--rgb-tinta) / 0.1);
  padding: 0.3em 0.8em;
}

/* ---------- Estrelas de avaliação ----------
   Como no tema original: 5 estrelas vazadas por baixo e as cheias por cima,
   cortadas na largura da nota. Os desenhos são máscaras SVG na cor secundária. */
.star-rating {
  --star-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolygon points='8.00,1.20 9.82,6.04 14.99,6.28 10.95,9.51 12.32,14.50 8.00,11.65 3.68,14.50 5.05,9.51 1.01,6.28 6.18,6.04' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  --star-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolygon points='8.00,0.45 10.03,5.76 15.70,6.05 11.28,9.62 12.76,15.10 8.00,12.00 3.24,15.10 4.72,9.62 0.30,6.05 5.97,5.76'/%3E%3C/svg%3E");
  position: relative;
  display: inline-block;
  width: 5.06em;
  height: 1em;
  overflow: hidden;
  font-size: 16px;
  line-height: 1em;
  vertical-align: middle;
}

.star-rating::before,
.star-rating > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5.06em;
  height: 1em;
  background-color: var(--cor-estrela);
  -webkit-mask: var(--star-empty) repeat-x 0 0 / 1.012em 1em;
  mask: var(--star-empty) repeat-x 0 0 / 1.012em 1em;
}

.star-rating > span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}

.star-rating > span::before {
  -webkit-mask-image: var(--star-full);
  mask-image: var(--star-full);
}

.rating-count {
  margin-left: 6px;
  color: var(--cor-texto-fraco);
  font-size: 12px;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */

.header {
  position: relative;
  z-index: 30;
  width: 100%;
}

.header-wrapper {
  position: relative;
  width: 100%;
  background-color: var(--cor-fundo);
}

.header-wrapper.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 1px 3px rgb(var(--rgb-sombra) / 0.08);
  animation: stuckMoveDown 0.6s;
}

.header-wrapper.stuck .header-top {
  display: none;
}

.header-wrapper.stuck {
  --header-main-h: var(--header-stuck-h);
}

@keyframes stuckMoveDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Barra superior */
.header-top {
  position: relative;
  z-index: 11;
  background-color: var(--cor-faixa);
  color: var(--cor-texto-faixa);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-top-h);
}

.top-bar-contact {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.top-bar-contact a {
  color: var(--cor-texto-faixa);
}

.top-bar-contact a:hover {
  opacity: 0.8;
}

.top-bar-wa svg {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.2em;
}

/* Botão RASTREAR */
.btn-rastreio-abrir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--cor-link);
  border-radius: 20px;
  background-color: transparent;
  color: var(--cor-link);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  transition: all 0.2s ease-in-out;
}

.btn-rastreio-abrir svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.btn-rastreio-abrir:hover {
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
}

/* Na barra superior (fundo verde) o botão fica branco para ser legível */
.header-top .btn-rastreio-abrir {
  border-color: var(--cor-texto-faixa);
  color: var(--cor-texto-faixa);
}

.header-top .btn-rastreio-abrir:hover {
  background-color: var(--cor-texto-faixa);
  color: var(--cor-faixa);
}

/* Linha principal: logo, busca, conta e carrinho */
.header-main {
  position: relative;
  z-index: 10;
  height: var(--header-main-h);
  background-color: var(--cor-fundo);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 500px;
  max-width: 100%;
  margin-right: 30px;
}

.logo img {
  display: block;
  width: auto;
  max-height: var(--header-main-h);
  transition: max-height 0.5s;
}

.header-search {
  flex: 1;
  min-width: 0;
}

.header-search .searchform {
  width: 48%;
  margin-left: 49%;
}

.header-actions {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-left: auto;
}

.header-actions > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 7px;
}

.header-divider {
  width: 1px;
  height: 30px !important;
  background-color: rgb(var(--rgb-tinta) / 0.1);
}

.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--cor-texto-fraco);
  transition: all 0.2s;
}

.account-btn svg {
  width: 15px;
  height: 15px;
}

.account-btn:hover {
  border-color: var(--cor-botao);
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
}

.cart-link {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--cor-texto-suave);
}

.cart-link:hover {
  color: var(--cor-texto-forte);
}

.cart-icon {
  position: relative;
  display: block;
}

.cart-icon svg {
  width: 22px;
  height: 22px;
}

[data-icon-label]::after {
  content: attr(data-icon-label);
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 1;
  min-width: 17px;
  height: 17px;
  padding: 0 2px;
  border-radius: 99px;
  background-color: var(--cor-secundaria);
  box-shadow: 1px 1px 3px rgb(var(--rgb-sombra) / 0.3);
  color: var(--cor-texto-botao);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bolder;
  line-height: 17px;
  letter-spacing: -0.5px;
  text-align: center;
  opacity: 0.9;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cor-texto-suave);
}

.header-icon-btn svg {
  width: 24px;
  height: 24px;
}

/* Dropdown do carrinho (desktop) */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: -15px;
  z-index: 9;
  min-width: 260px;
  padding: 0;
  border: 2px solid var(--cor-borda-forte);
  background-color: var(--cor-cartao);
  box-shadow: 1px 1px 15px rgb(var(--rgb-sombra) / 0.15);
  color: var(--cor-texto);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-dropdown::before,
.nav-dropdown::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 18px;
  border: solid transparent;
  pointer-events: none;
}

.nav-dropdown::before {
  border-width: 11px;
  border-bottom-color: var(--cor-borda-forte);
  margin-right: -3px;
}

.nav-dropdown::after {
  border-width: 8px;
  border-bottom-color: var(--cor-cartao);
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.is-revealed > .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.mini-cart-empty {
  padding: 20px;
  text-align: center;
}

.mini-cart-empty-icon svg {
  width: auto;
  height: 80px;
  margin: 0 auto 10px;
  opacity: 0.1;
}

.mini-cart-empty-text {
  margin-bottom: 1em;
  font-size: 0.9em;
}

.mini-cart-return {
  margin: 0;
}

/* Minicarrinho com itens */
.cart-dropdown .mini-cart {
  width: 300px;
}

.mini-cart-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 15px 0;
}

.mini-cart-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 28px 10px 0;
  border-bottom: 1px solid var(--cor-borda);
  font-size: 0.85em;
  line-height: 1.3;
}

.mini-cart-thumb {
  flex: 0 0 60px;
}

.mini-cart-thumb img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.mini-cart-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mini-cart-name {
  color: var(--cor-texto);
}

.mini-cart-name:hover {
  color: var(--cor-link);
}

.mini-cart-qty {
  color: var(--cor-texto-suave);
}

.mini-cart-remove {
  position: absolute;
  top: 10px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid var(--cor-borda-forte);
  border-radius: 50%;
  background: none;
  color: var(--cor-texto-fraco);
  transition: all 0.2s;
}

.mini-cart-remove svg {
  width: 12px;
  height: 12px;
}

.mini-cart-remove:hover {
  border-color: var(--cor-alerta);
  color: var(--cor-alerta);
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  margin: 0 15px;
  padding: 10px 0;
  border-bottom: 2px solid var(--cor-borda);
  font-size: 0.9em;
}

.mini-cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 15px;
}

.mini-cart-buttons .button {
  width: 100%;
}

.button.button-outline {
  border: 2px solid var(--cor-link);
  background-color: transparent;
  color: var(--cor-link);
}

.button.button-outline:hover {
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
  box-shadow: none;
}

.drawer .mini-cart-list {
  max-height: none;
  padding: 0;
}

.drawer .mini-cart-total {
  margin: 0;
}

.drawer .mini-cart-buttons {
  padding: 15px 0;
}

/* Botão "Adicionar ao carrinho": carregando e adicionado */
.button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.button.added::after {
  content: " ✓";
}

/* Busca */
.searchform {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field {
  width: 100%;
  height: 2.507em;
  padding: 0 2.6em 0 1em;
  border: 1px solid rgb(var(--rgb-tinta) / 0.09);
  border-radius: 99px;
  background-color: rgb(var(--rgb-tinta) / 0.03);
  font-size: 0.97em;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-field:focus {
  outline: none;
  border-color: var(--cor-foco);
  background-color: var(--cor-fundo);
}

.search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-submit {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cor-texto-suave);
}

.search-submit svg {
  width: 17px;
  height: 17px;
}

.live-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--cor-borda-forte);
  border-radius: 4px;
  background-color: var(--cor-cartao);
  box-shadow: 0 4px 15px rgb(var(--rgb-sombra) / 0.12);
  text-align: left;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--cor-borda);
  color: var(--cor-texto);
  font-size: 0.85em;
  line-height: 1.3;
}

.live-search-item:last-child {
  border-bottom: 0;
}

.live-search-item:hover,
.live-search-item:focus-visible {
  background-color: var(--cor-superficie-2);
  color: var(--cor-texto);
}

.live-search-item img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.live-search-name {
  flex: 1;
}

.live-search-price {
  color: var(--cor-preco);
  font-weight: 700;
  white-space: nowrap;
}

.live-search-empty {
  margin: 0;
  padding: 12px;
  color: var(--cor-texto-suave);
  font-size: 0.85em;
}

/* Linha inferior: mega menu */
.header-bottom {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  min-height: var(--header-bottom-h);
  background-color: var(--cor-fundo);
}

.header-bottom-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.mega-item {
  position: static;
}

.mega-item.is-flyout {
  position: relative;
}

.mega-link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px 0 0;
  color: var(--cor-texto-forte);
  font-size: 15px;
  line-height: 40px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mega-item:hover > .mega-link,
.mega-item:focus-within > .mega-link {
  color: var(--cor-link);
}

.mega-indicator {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.mega-panel,
.flyout {
  position: absolute;
  top: 100%;
  z-index: 999;
  background-color: var(--cor-cartao);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.mega-item:hover > .mega-panel,
.mega-item:focus-within > .mega-panel,
.mega-item:hover > .flyout,
.mega-item:focus-within > .flyout {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-panel {
  left: 15px;
  right: 15px;
  padding: 10px 15px;
  border: 1px solid var(--cor-borda-painel);
  border-radius: 5px;
}

.mega-row {
  display: flex;
  flex-wrap: wrap;
}

.mega-col {
  width: calc(var(--span) / 12 * 100%);
  padding: 0 10px;
}

.mega-group {
  padding: 15px 0;
}

.mega-group-title {
  display: block;
  padding: 0 0 5px;
  color: var(--cor-menu-grupo);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

a.mega-group-title:hover {
  color: var(--cor-menu-grupo-hover);
}

.mega-group-title small {
  font-size: 12px;
  font-weight: 400;
  color: var(--cor-texto-suave);
}

.mega-list a {
  display: block;
  margin-left: 5px;
  padding: 10px 0;
  border-top: 1px solid var(--cor-borda);
  color: var(--cor-texto-forte);
  font-size: 14px;
  line-height: 1.4;
}

.mega-list a:hover,
.mega-list a:focus-visible {
  background-color: var(--cor-menu-hover);
  color: var(--cor-texto-forte);
}

.flyout {
  left: 0;
  width: 250px;
  border: 1px solid var(--cor-borda-painel);
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}

.flyout a {
  display: block;
  padding: 0 10px;
  color: var(--cor-texto-forte);
  font-size: 14px;
  line-height: 35px;
}

.flyout a:hover {
  color: var(--cor-texto-forte);
  text-decoration: underline;
}

.selo-novo {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  background-color: var(--cor-destaque);
  color: var(--cor-texto-destaque) !important;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Cartão de lançamento dentro do mega menu */
.card-lanc {
  display: block;
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--cor-superficie);
  transition: background-color 0.2s;
}

.card-lanc:hover {
  background-color: var(--cor-superficie-2);
}

.card-lanc img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: var(--cor-branco);
}

.card-lanc__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: var(--cor-destaque);
  color: var(--cor-texto-destaque);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.card-lanc__nome {
  display: block;
  margin: 6px 0 2px;
  color: var(--cor-texto-forte);
  font-size: 16px;
}

.card-lanc__desc {
  display: block;
  color: var(--cor-texto-suave);
  font-size: 13px;
  line-height: 1.4;
}

.card-lanc__cta {
  display: block;
  margin-top: 8px;
  color: var(--cor-link);
  font-size: 13px;
  font-weight: 600;
}

/* Aviso de frete abaixo do cabeçalho */
.header-notice {
  position: relative;
  z-index: 1;
  padding: 10px;
  background-color: var(--cor-aviso);
  text-align: center;
}

.header-notice small {
  font-size: 0.8em;
}

/* Cabeçalho em tablet e celular */
@media (max-width: 849px) {
  .header-inner {
    justify-content: space-between;
  }

  .logo {
    flex: 1 1 auto;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin: 0 10px;
  }

  .logo img {
    max-width: 100%;
    max-height: calc(var(--header-main-h) - 14px);
  }
}

@media (max-width: 549px) {
  :root {
    --header-main-h: 70px;
  }
}

/* =========================================================
   DRAWERS (menu mobile e carrinho)
   ========================================================= */

body.drawer-open {
  overflow: hidden;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background-color: var(--cor-overlay);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-overlay.is-open {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1050;
  width: min(var(--drawer-width), calc(100% - 50px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--cor-fundo);
  box-shadow: 0 0 10px rgb(var(--rgb-sombra) / 0.2);
  transition: transform 0.3s ease;
}

.drawer:focus {
  outline: none;
}

.drawer-left {
  --drawer-width: 300px;
  left: 0;
  transform: translateX(-100%);
}

.drawer-right {
  --drawer-width: 360px;
  right: 0;
  transform: translateX(100%);
}

.drawer.is-open {
  transform: none;
}

.drawer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cor-texto-suave);
}

.drawer-close svg {
  width: 22px;
  height: 22px;
}

/* Menu lateral */
.nav-sidebar {
  padding: 50px 0 30px;
}

.nav-sidebar > li {
  position: relative;
  border-top: 1px solid var(--cor-borda);
}

.nav-sidebar > li:first-child {
  border-top: 0;
}

.nav-sidebar > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 56px 10px 20px;
  color: var(--cor-texto-suave);
  font-size: 0.8em;
  font-weight: bolder;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-sidebar > li > a:hover {
  background-color: rgb(var(--rgb-tinta) / 0.05);
  color: var(--cor-texto-forte);
}

.nav-sidebar .toggle {
  position: absolute;
  top: 7px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cor-texto-fraco);
  transition: transform 0.3s;
}

.nav-sidebar .toggle svg {
  width: 18px;
  height: 18px;
}

.nav-sidebar li.is-open > .toggle {
  transform: rotate(180deg);
}

.nav-sidebar .sub-menu {
  display: none;
  padding: 0 20px 15px 30px;
}

.nav-sidebar li.is-open > .sub-menu {
  display: block;
}

.nav-sidebar .sub-menu a {
  display: block;
  padding: 5px 0;
  color: var(--cor-texto-suave);
  font-size: 0.85em;
  line-height: 1.4;
}

.nav-sidebar .sub-menu a:hover {
  color: var(--cor-texto-forte);
}

.nav-sidebar .sub-menu > li.has-children > a {
  margin-top: 6px;
  color: var(--cor-texto-forte);
  font-size: 0.8em;
  font-weight: bolder;
  text-transform: uppercase;
}

.nav-sidebar .sub-menu small {
  color: var(--cor-texto-suave);
  font-size: 11px;
  text-transform: none;
}

.nav-sidebar .sub-menu-list {
  padding-left: 10px;
}

.sidebar-search {
  padding: 0 20px 15px;
}

.sidebar-newsletter svg {
  width: 16px;
  height: 16px;
}

.sidebar-social {
  padding: 15px 20px;
}

.sidebar-contact {
  padding: 15px 20px 0;
}

.sidebar-contact p {
  margin: 0;
  font-size: 13px;
  color: var(--cor-texto-suave);
}

.sidebar-contact a {
  color: var(--cor-link);
}

.sidebar-contact .top-bar-wa {
  color: var(--cor-whatsapp);
}

/* Carrinho lateral */
.cart-popup-inner {
  padding: 30px 20px;
}

.cart-popup-title {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cor-titulo);
}

.is-divider {
  width: 100%;
  max-width: 30px;
  height: 3px;
  margin: 1em auto;
  background-color: rgb(var(--rgb-tinta) / 0.1);
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  opacity: 0.6;
}

.payment-icon {
  display: inline-flex;
  padding: 3px 5px;
  border-radius: 5px;
  background-color: rgb(var(--rgb-tinta) / 0.1);
}

.payment-icon svg {
  width: 32px;
  height: 16px;
  fill: currentColor;
}

/* Ícones sociais */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1em;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icons--outline {
  gap: 7px;
  margin-bottom: 13.2px;
}

.social-icons--outline .social-icon {
  width: 33px;
  height: 33px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--cor-texto-fraco);
}

.social-icons--outline .social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icons--outline .facebook:hover  { background-color: var(--cor-facebook); border-color: var(--cor-facebook); color: var(--cor-branco); }
.social-icons--outline .instagram:hover { background-color: var(--cor-instagram); border-color: var(--cor-instagram); color: var(--cor-branco); }
.social-icons--outline .youtube:hover   { background-color: var(--cor-youtube); border-color: var(--cor-youtube); color: var(--cor-branco); }

.social-icons--plain .social-icon {
  width: 32px;
  height: 32px;
  color: var(--cor-texto-fraco);
}

.social-icons--plain .social-icon:hover {
  color: var(--cor-texto-forte);
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.footer-wrapper {
  position: relative;
  width: 100%;
}

.footer-widgets {
  padding: 30px 0 0;
  border-top: 1px solid rgb(var(--rgb-sombra) / 0.05);
  background-color: var(--cor-rodape);
  color: var(--cor-texto-rodape);
}

.footer-row {
  max-width: var(--container);
}

.footer-col {
  flex: 0 0 100%;
  max-width: 100%;
  padding-bottom: 0;
  margin-bottom: 1.5em;
}

/* Como no original (large-columns-4): empilhadas até 849px, 4 colunas a partir de 850px */
@media (min-width: 850px) {
  .footer-col { flex-basis: 25%; max-width: 25%; }
}

.footer-col h3 {
  color: var(--cor-texto-rodape);
}

.footer-col a:not(.button):not(.social-icon) {
  color: var(--cor-texto-rodape);
}

.footer-col a:not(.button):not(.social-icon):hover {
  opacity: 0.8;
}

.footer-col .button {
  margin-bottom: 1em;
}

.absolute-footer {
  padding: 10px 0 15px;
  background-color: var(--cor-rodape-inferior);
  color: rgb(var(--rgb-branco) / 0.8);
  font-size: 0.9em;
}

@media (max-width: 849px) {
  .absolute-footer {
    text-align: center;
  }
}

/* =========================================================
   MODAL "RASTREAR PEDIDO"
   ========================================================= */

.modal-rastreio {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cor-overlay);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal-rastreio__box {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 15px;
  background-color: var(--cor-cartao);
  box-shadow: 0 10px 25px rgb(var(--rgb-sombra) / 0.2);
}

.modal-rastreio h3 {
  margin-top: 0;
  color: var(--cor-texto-forte);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.modal-rastreio p {
  margin-bottom: 25px;
  color: var(--cor-texto-suave);
  font-size: 14px;
  text-align: center;
}

.modal-rastreio form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
}

.modal-rastreio input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--cor-borda-forte);
  border-radius: 8px;
  background-color: var(--cor-superficie);
  font-size: 16px;
}

.modal-rastreio button[type="submit"] {
  width: 100%;
  padding: 14px 15px;
  border: 0;
  border-radius: 8px;
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-rastreio button[type="submit"]:hover {
  background-color: var(--cor-botao-hover);
}

.btn-rastreio-fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 0 5px;
  border: 0;
  background: none;
  color: var(--cor-texto-fraco);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.btn-rastreio-fechar:hover {
  color: var(--cor-texto-suave);
}

/* =========================================================
   WIDGET DE WHATSAPP
   ========================================================= */

#whatsapp-icon {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--cor-whatsapp);
  box-shadow: 0 2px 6px rgb(var(--rgb-sombra) / 0.3);
  color: var(--cor-branco);
  transition: transform 0.3s ease-in-out;
}

#whatsapp-icon:hover {
  transform: scale(1.1);
}

#whatsapp-icon svg {
  width: 50%;
  height: 50%;
}

#whatsapp-text {
  position: fixed;
  right: 95px;
  bottom: 40px;
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 8px 22px 8px 8px;
  border: 1px solid var(--cor-whatsapp);
  border-radius: 8px;
  background-color: var(--cor-cartao);
  box-shadow: 0 2px 6px rgb(var(--rgb-sombra) / 0.2);
  color: var(--cor-texto);
  font-size: 14px;
  cursor: pointer;
}

#whatsapp-text-close {
  position: absolute;
  top: -3px;
  right: 4px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--cor-texto-suave);
  font-size: 16px;
  line-height: 1.4;
}

#form-pre-whatsapp {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2147483646;
  width: 370px;
  max-width: 95%;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--cor-superficie-2);
  box-shadow: 8px 5px 15px -3px rgb(var(--rgb-sombra) / 0.3);
  font-family: var(--font);
}

.wpp-head {
  position: relative;
  display: flex;
  gap: 25px;
  padding: 20px;
  background-color: var(--cor-faixa);
  color: var(--cor-texto-faixa);
}

.wpp-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--cor-branco);
  object-fit: cover;
}

.wpp-title {
  display: flex;
  flex-direction: column;
  margin-top: 7px;
  font-size: 18px;
  font-weight: bolder;
}

.wpp-title span {
  margin-top: -2px;
  font-size: 14px;
  font-weight: 400;
}

.wpp-close {
  position: absolute;
  top: 7px;
  right: 15px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cor-texto-faixa);
}

.wpp-body {
  display: flex;
  flex-direction: column;
  padding: 0 10px 0 0;
}

.wpp-bubble {
  max-width: 80%;
  margin: 10px 0 0 10px;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--cor-cartao);
  box-shadow: 0 1px var(--cor-borda-forte);
  color: var(--cor-texto);
  font-size: 14px;
}

.wpp-error.flash {
  animation: flash-red 0.6s ease;
}

@keyframes flash-red {
  0%   { background-color: var(--cor-cartao); }
  50%  { background-color: var(--cor-erro-flash); }
  100% { background-color: var(--cor-cartao); }
}

.wpp-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 10px 0 0;
}

.wpp-form input,
.wpp-form select {
  width: 80%;
  height: 40px;
  margin-bottom: 4px;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 5px;
  background-color: var(--cor-fundo);
  box-shadow: 0 1px var(--cor-borda-forte);
  font-size: 14px;
}

.wpp-submit {
  width: 50%;
  height: 40px;
  margin: 0 0 10px;
  border: 0;
  border-radius: 5px;
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
  font-size: 14px;
}

.wpp-submit:hover {
  background-color: var(--cor-botao-hover);
}

/* =========================================================
   AVISO DE COOKIES
   ========================================================= */

#cookie-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  background-color: var(--cor-marinho);
  color: var(--cor-branco);
  font-size: 13px;
  line-height: 20px;
  transition: opacity 0.3s;
}

#cookie-notice.is-hiding {
  opacity: 0;
}

.cookie-notice-container {
  position: relative;
  padding: 15px 50px 15px 30px;
  text-align: center;
}

.cn-text {
  display: inline-block;
  margin: 0 10px 0 0;
}

.cn-text a {
  color: var(--cor-branco);
  text-decoration: underline;
}

.cn-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cn-button {
  display: inline-block;
  padding: 8.5px 10px;
  border: 0;
  border-radius: 3px;
  background-color: var(--cor-botao);
  color: var(--cor-texto-botao);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.25px;
}

.cn-button:hover {
  color: var(--cor-texto-botao);
  box-shadow: inset 0 0 0 99em rgb(var(--rgb-sombra) / 0.1);
}

.cn-close {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cor-branco);
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
}

.cn-close:hover {
  opacity: 1;
}

/* Telas pequenas: widgets flutuantes menores */
@media (max-width: 549px) {
  #whatsapp-icon {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  #whatsapp-text {
    right: 78px;
    bottom: 26px;
    font-size: 13px;
  }

  .cookie-notice-container {
    padding: 15px 40px 15px 16px;
  }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
