/* =========================================
   NOVO VISUAL - GATO PRETO MULTIMARCAS
   PRETO | VERMELHO | LARANJA | BRANCO
========================================= */

:root {
  --preto: #1b1b1d;
  --vermelho: #b91c1c;
  --vermelho-escuro: #8f1515;
  --laranja: #f59e0b;
  --fundo: #f5f5f5;
  --branco: #ffffff;
  --texto: #292929;
}

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: Arial, sans-serif;
}

.loja {
  max-width: 1200px;
  margin: 0 auto;
}

/* CABEÇALHO */

.loja header {
  background: linear-gradient(
    135deg, #1b1b1d, #343030
  );
  color: white;
  padding: 42px 25px;
  border-radius: 18px;
  border-bottom: 4px solid var(--vermelho);
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.loja header h1 {
  color: white;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
}

.loja header p {
  color: #e5e5e5;
  font-size: 15px;
}

/* PESQUISA */

.area-pesquisa {
  margin: 24px 0;
}

#pesquisaProduto {
  border: 2px solid #e7e7e7;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

#pesquisaProduto:focus {
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(185,28,28,.10);
}

/* CATEGORIAS */

.categorias-loja {
  gap: 12px;
  padding: 8px 0 22px;
}

.categorias-loja button {
  background: var(--branco);
  color: var(--preto);
  border: 1px solid #dedede;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 0;
  transition: .2s ease;
}

.categorias-loja button:hover {
  background: var(--vermelho);
  color: white;
  border-color: var(--vermelho);
}

/* VITRINE */

.vitrine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}

.produto {
  background: white;
  padding: 20px;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}

@media (hover: hover) {
  .produto:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }
}

/* FOTO PRINCIPAL */


.produto .foto-principal {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 14px;
}



/* GALERIA DE MINIATURAS */
.produto .galeria {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 20px;
}

/* MINIATURAS QUADRADAS */

.produto .galeria img {
  width: calc((100% - 16px) / 3);
  height: 100px;
  object-fit: cover;
  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

/* MINIATURAS DOS PRODUTOS */

.produto .galeria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.produto .galeria img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.produto .galeria img:hover {
  border-color: var(--vermelho);
  transform: scale(1.03);
}

.produto h3 {
  color: var(--preto);
  font-size: 19px;
  margin: 16px 0 8px;
}

.produto p {
  color: #666;
  line-height: 1.6;
}

.produto label {
  font-weight: 600;
  color: #444;
}

.produto select,
.produto input {
  border: 1px solid #dedede;
  border-radius: 9px;
  background: white;
  padding: 12px;
}

.produto select:focus,
.produto input:focus {
  outline: 2px solid var(--laranja);
  outline-offset: 1px;
}

/* PREÇO E BOTÕES */

.preco {
  color: var(--vermelho);
  font-size: 27px;
  font-weight: 800;
  margin: 20px 0 12px;
}

.produto button {
  background: var(--vermelho);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  padding: 14px;
  transition: background .2s;
}

.produto button:hover {
  background: var(--vermelho-escuro);
}

/* BOTÕES GERAIS */

button {
  background: var(--vermelho);
}

button:hover {
  background: var(--vermelho-escuro);
}

/* SACOLA FLUTUANTE */

.sacola-flutuante {
  background: white;
  border-top: 2px solid var(--vermelho);
  box-shadow: 0 -5px 25px rgba(0,0,0,.12);
}

.sacola-flutuante button {
  background: var(--preto);
  color: white;
  border-radius: 12px;
}

.sacola-flutuante button:hover {
  background: #343434;
}

#quantidadeSacola {
  background: var(--laranja);
  color: var(--preto);
  font-weight: 800;
}

/* CARRINHO ABERTO */

.carrinho.sacola-aberta {
  background: white;
  border-top: 5px solid var(--vermelho);
  border-radius: 18px;
}

.carrinho.sacola-aberta .fechar-sacola {
  background: var(--preto);
  color: white;
}

.item-carrinho {
  background: #f7f7f7;
  border: 1px solid #eeeeee;
}

#totalCarrinho {
  color: var(--preto);
  font-weight: 800;
  font-size: 20px;
}

/* PAINEL ADMINISTRATIVO */

.painel-admin {
  display: none;
  border-top: 4px solid var(--vermelho);
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}


.painel-admin input {
  border-color: #dedede;
}

#mensagemAdmin {
  color: #187345;
}



.botao-excluir,
.item-carrinho button {
  background: var(--vermelho);
}

/* CELULAR */

@media (max-width: 600px) {
  body {
    padding: 0 0 100px;
  }

  .loja {
    padding: 12px;
  }

  .loja header {
    padding: 28px 16px;
    border-radius: 14px;
  }

  .loja header h1 {
    font-size: 24px;
  }

  .vitrine {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }

  .produto {
    padding: 10px;
    border-radius: 12px;
  }

  .produto .foto-principal {
    height: 155px;
  }

  .produto .galeria img {
    height: 42px;
  }

  .produto h3 {
    font-size: 14px;
  }

  .produto p,
  .produto label {
    font-size: 12px;
  }

  .produto select,
  .produto input {
    padding: 9px 6px;
    font-size: 13px;
  }

  .preco {
    font-size: 19px;
  }

  .produto button {
    font-size: 12px;
    padding: 11px 5px;
  }

  .carrinho.sacola-aberta {
    width: 94%;
    max-height: 85vh;
    top: 5%;
  }
}

/* CORREÇÃO DO PAINEL ADMINISTRATIVO */

#painelAdmin {
  display: none;
  width: min(100% - 32px, 1000px);
  margin: 20px auto 35px;
  padding: 28px;
  background: #ffffff;
  border-radius: 18px;
  border-top: 4px solid #b91c1c;
  box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

#painelAdmin label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: #292929;
}

#painelAdmin input,
#painelAdmin textarea,
#painelAdmin select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #dddddd;
  border-radius: 9px;
  font-size: 15px;
  background: white;
}

#painelAdmin button {
  width: auto;
  min-width: 110px;
  padding: 12px 18px;
  margin: 8px 6px 8px 0;
  border-radius: 9px;
}

#painelAdmin .item-admin {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
}



@media (max-width: 600px) {
  #painelAdmin {
    width: calc(100% - 24px);
    padding: 18px;
  }

  #painelAdmin button {
    max-width: 100%;
  }
}

/* CABEÇALHO PREMIUM GATO PRETO */

.loja .cabecalho-premium {
  background: linear-gradient(
    125deg,
    #141414 0%,
    #292323 65%,
    #391818 100%
  );
  border-bottom: 4px solid #b91c1c;
  border-radius: 20px;
  padding: 35px;
  color: white;
}

.marca-loja {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.logo-oficial {
  width: 145px;
  height: 115px;
  object-fit: contain;
  flex-shrink: 0;
}

.loja header .marca-texto h1 {
  color: white;
  font-size: 27px;
  margin: 0 0 8px;
}

.loja header .marca-texto p {
  color: #dddddd;
  margin: 0;
}

.destaque-loja {
  padding: 48px 0 20px;
  max-width: 720px;
}

.etiqueta-destaque {
  display: inline-block;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.loja header .destaque-loja h2 {
  color: white;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.loja header .destaque-loja p {
  font-size: 16px;
  line-height: 1.7;
  color: #dddddd;
  margin-bottom: 28px;
}

.botao-explorar {
  display: inline-block;
  background: #b91c1c;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 10px;
  transition: background .2s;
}

.botao-explorar:hover {
  background: #8f1515;
}

/* CELULAR */

@media (max-width: 600px) {

  .loja .cabecalho-premium {
    padding: 22px 18px;
  }

  .marca-loja {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .logo-oficial {
    width: 130px;
    height: 110px;
  }

  .loja header .marca-texto h1 {
    font-size: 22px;
  }

  .destaque-loja {
    padding: 32px 0 10px;
    text-align: center;
  }

  .loja header .destaque-loja h2 {
    font-size: 27px;
  }

  .loja header .destaque-loja p {
    font-size: 14px;
  }

  .botao-explorar {
    width: 100%;
    text-align: center;
  }
}

/* LOGO MAIS VISÍVEL */

.logo-oficial {
  width: 190px;
  height: 150px;
  object-fit: contain;
}

/* PESQUISA MAIOR */

.area-pesquisa {
  max-width: 650px;
  margin: 25px 0;
}

#pesquisaProduto {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 12px;
}

/* CATEGORIAS MAIS ELEGANTES */

.categorias-loja {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.categorias-loja button {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  background: #ffffff;
  color: #1b1b1d;
  border: 1px solid #dddddd;
  width: auto;
}

.categorias-loja button:hover {
  background: #b91c1c;
  color: white;
  border-color: #b91c1c;
}

/* CELULAR */

@media (max-width: 600px) {
  .logo-oficial {
    width: 160px;
    height: 130px;
  }

  .area-pesquisa {
    max-width: 100%;
  }

  .categorias-loja {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
  }

  .categorias-loja button {
    flex-shrink: 0;
    padding: 10px 15px;
    font-size: 13px;
  }
}
/* ACESSO ADMINISTRATIVO NO RODAPÉ */

#abrirAdmin {
  display: block;
  width: fit-content;
  margin: 35px auto 115px;
  padding: 10px 16px;
  background: transparent;
  color: #777;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  font-size: 12px;
}

#abrirAdmin:hover {
  background: #1b1b1d;
  color: white;
}

/* CORREÇÃO DO BANNER NO CELULAR */

@media (max-width: 600px) {

  .loja,
  .cabecalho-premium,
  .destaque-loja {
    min-width: 0;
    max-width: 100%;
  }

  .loja .cabecalho-premium {
    padding: 22px 16px;
    overflow: hidden;
  }

  .destaque-loja {
    width: 100%;
    box-sizing: border-box;
  }

  .loja header .destaque-loja h2 {
    font-size: clamp(23px, 6vw, 27px);
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .botao-explorar {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 15px 10px;
    text-align: center;
    white-space: normal;
  }

  .vitrine,
  .produto {
    min-width: 0;
  }
}


/* CORREÇÃO FINAL DA SACOLA */

.sacola-flutuante {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: white;
  border-top: 2px solid #b91c1c;
}

.sacola-flutuante button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
  background: #1b1b1d;
  color: white;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
}

.carrinho {
  display: none;
}

.carrinho.sacola-aberta {
  display: block !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 30px);
  max-width: 500px;
  max-height: 85dvh;
  overflow-y: auto;
  z-index: 1001;
  padding: 22px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.7);
}

.carrinho.sacola-aberta .fechar-sacola {
  display: block !important;
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #1b1b1d;
  color: white;
  border-radius: 9px;
}

.carrinho button:not(.fechar-sacola) {
  display: block;
  width: 100%;
  padding: 13px;
  background: #b91c1c;
  color: white;
  border: none;
  border-radius: 9px;
  font-weight: bold;
}

#quantidadeSacola {
  background: #f59e0b;
  color: #1b1b1d;
  padding: 4px 9px;
  border-radius: 20px;
}

body {
  padding-bottom: 100px;
}




/* GARANTIR VISIBILIDADE DO BACKUP */

#painelAdmin #botaoBackup {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #292929;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* VITRINE PROFISSIONAL - CELULAR */

@media (max-width: 600px) {

  .vitrine {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .produto {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,.07);
  }

  .produto .foto-principal {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 10px;
  }

  .produto .galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 8px 0;
  }

  .produto .galeria img {
    width: 100%;
    height: 48px;
    object-fit: contain;
    border-radius: 7px;
    background: #fafafa;
  }

  .produto h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0 6px;
    min-height: 40px;
  }

  .produto p {
    font-size: 12px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 8px;
  }

  .produto label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 9px 0 4px;
  }

  .produto select,
  .produto input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: white;
    font-size: 13px;
  }

  .produto .preco {
    margin-top: auto;
    padding-top: 18px;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 800;
    color: #b91c1c;
  }

  .produto button {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 6px;
    background: #b91c1c;
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
  }

  .produto button:hover {
    background: #8f1515;
  }
}

/* ACABAMENTO DA VITRINE NO CELULAR */

@media (max-width: 600px) {

  .loja {
    padding-bottom: 20px;
  }

  .vitrine {
    margin-bottom: 20px;
  }

  .produto {
    align-self: start;
  }

  #abrirAdmin {
    margin: 25px auto 20px;
  }

  body {
    padding-bottom: 100px;
  }

  .sacola-flutuante {
    bottom: 0;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .sacola-flutuante button {
    min-height: 52px;
  }
}

/* RODAPÉ GATO PRETO MULTIMARCAS */

.rodape-loja {
  margin-top: 35px;
  background: #1b1b1d;
  color: white;
  border-radius: 16px;
  padding: 30px 25px 20px;
}

.rodape-conteudo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.rodape-loja h3 {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 12px;
}

.rodape-loja p {
  color: #dddddd;
  font-size: 14px;
  line-height: 1.6;
}

.rodape-loja a {
  display: inline-block;
  background: #b91c1c;
  color: white;
  padding: 11px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: bold;
}

.rodape-inferior {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #444;
  text-align: center;
  color: #aaaaaa;
  font-size: 12px;
}

@media (max-width: 600px) {
  .rodape-loja {
    padding: 25px 18px;
  }

  .rodape-conteudo {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* FAIXA DE BENEFÍCIOS */

.beneficios-loja {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 0 0 30px;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 16px;
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-bottom: 3px solid #b91c1c;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.beneficio-icone {
  flex-shrink: 0;
  font-size: 28px;
}

.beneficio strong {
  display: block;
  color: #1b1b1d;
  font-size: 14px;
}

.beneficio p {
  margin: 5px 0 0;
  color: #666666;
  font-size: 12px;
  line-height: 1.4;
}

/* ADAPTAÇÃO PARA CELULAR */

@media (max-width: 600px) {

  .beneficios-loja {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 25px;
  }

  .beneficio {
    padding: 13px 15px;
    gap: 14px;
  }

  .beneficio-icone {
    font-size: 25px;
  }

  .beneficio strong {
    font-size: 13px;
  }

  .beneficio p {
    font-size: 12px;
  }
}

/* VISUALIZADOR DE FOTOS */

.visualizador-fotos {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.visualizador-fotos.ativo {
  display: flex;
}

#fotoAmpliada {
  display: block;
  max-width: 95%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

.fechar-foto {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  margin: 0;
  padding: 0;
  background: #b91c1c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 3001;
}

/* INDICAR QUE AS FOTOS PODEM SER AMPLIADAS */

.produto .foto-principal,
.produto .galeria img {
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .visualizador-fotos {
    padding: 10px;
  }

  #fotoAmpliada {
    max-width: 100%;
    max-height: 80vh;
  }

  .fechar-foto {
    top: 15px;
    right: 15px;
  }
}

/* SETAS DA GALERIA AMPLIADA */

.seta-foto {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(185, 28, 28, 0.9);
  color: white;
  font-size: 25px;
  cursor: pointer;
  z-index: 3001;
}

.seta-anterior {
  left: 15px;
}

.seta-proxima {
  right: 15px;
}

.seta-foto:hover {
  background: #8f1515;
}

.contador-fotos {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0,0,0,.65);
  color: white;
  font-size: 14px;
}

@media (max-width: 600px) {
  .seta-foto {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .seta-anterior {
    left: 5px;
  }

  .seta-proxima {
    right: 5px;
  }

  #fotoAmpliada {
    max-width: calc(100% - 35px);
    max-height: 75vh;
  }
}

/* SELO E DESTAQUE DOS PRODUTOS */

.imagem-produto {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fafafa;
}

.imagem-produto .foto-principal {
  display: block;
  width: 100%;
  object-fit: contain;
}

.selo-produto {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 7px 10px;
  background: #1b1b1d;
  color: #ffffff;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.info-tamanhos {
  display: inline-block;
  margin: 8px 0;
  color: #777777;
  font-size: 12px;
  font-weight: 600;
}

.produto .preco {
  color: #b91c1c;
  font-size: 26px;
  font-weight: 800;
}


/* AJUSTES PARA CELULAR */

@media (max-width: 600px) {
  .selo-produto {
    top: 6px;
    left: 6px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .info-tamanhos {
    font-size: 11px;
  }

  .produto .preco {
    font-size: 21px;
  }
}

/* ====================================
   MELHORIAS NOS CARTÕES DOS PRODUTOS
   GATO PRETO MULTIMARCAS
==================================== */

/* Organização dos cartões */
.vitrine {
  align-items: stretch;
}

.produto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  min-width: 0;
}

/* Foto principal */
.produto .imagem-produto {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
  border-radius: 12px;
}

.produto .foto-principal {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Miniaturas */
.produto .galeria {
  display: flex;
  gap: 6px;
  width: 100%;
}

.produto .galeria img {
  min-width: 0;
  object-fit: contain;
}

/* Título */
.produto h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 6px 0;
}

/* Descrição */
.produto > p {
  line-height: 1.5;
}

/* Texto dos tamanhos */
.produto .info-tamanhos {
  display: block;
  margin: 5px 0;
  color: #777;
  font-size: 12px;
}

/* Campos de seleção */
.produto select,
.produto input[type="number"] {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

/* Espaçamento dos rótulos */
.produto label {
  display: inline-block;
  margin: 5px 4px 5px 0;
  font-size: 13px;
  font-weight: 600;
}

/* Campo quantidade */
.produto input[type="number"] {
  width: 80px;
}

/* Preço */
.produto .preco {
  color: #b91c1c;
  font-size: 27px;
  font-weight: 800;
  margin: 12px 0 4px;
}

/* Botão de compra */
.produto button {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

/* Botão principal do produto */
.produto > button {
  width: 100%;
  background: #b91c1c;
  color: white;
}

.produto > button:hover {
  background: #8f1515;
}

/* AJUSTES NO CELULAR */
@media (max-width: 600px) {

  .produto {
    padding: 10px;
    gap: 8px;
  }

  .produto .imagem-produto {
    height: 190px;
  }

  .produto h3 {
    font-size: 15px;
  }

  .produto label {
    font-size: 11px;
  }

  .produto select,
  .produto input[type="number"] {
    font-size: 12px;
    min-height: 36px;
  }

  .produto .preco {
    font-size: 22px;
  }

  .produto > button {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
    padding: 10px 6px;
  }

}
/* ALINHAR PREÇOS E BOTÕES DOS PRODUTOS */

.produto .preco {
  margin-top: auto;
}

body {
  background: #f8f5f1;
}


/* JANELA VER DETALHES - VERSÃO ORGANIZADA */

.modal-detalhes {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  padding: 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.modal-detalhes.ativo {
  display: flex;
}

.conteudo-detalhes {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90dvh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px;
  background: white;
  border-radius: 16px;
}

.grade-detalhes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.grade-detalhes > div {
  min-width: 0;
}

.foto-detalhes {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: contain;
  border-radius: 10px;
}

.miniaturas-detalhes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.miniaturas-detalhes img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.fechar-detalhes {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #b91c1c;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.informacoes-detalhes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.informacoes-detalhes h2 {
  margin: 0 30px 4px 0;
  font-size: 24px;
  color: #222;
}

.informacoes-detalhes p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

.informacoes-detalhes label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.informacoes-detalhes select,
.informacoes-detalhes input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #222;
  font-size: 15px;
}

.preco-detalhes {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 800;
  color: #b91c1c;
}

.botao-comprar-detalhes {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 9px;
  background: #b91c1c;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.botao-comprar-detalhes:hover {
  background: #8f1515;
}

/* JANELA DE DETALHES NO CELULAR */

@media (max-width: 700px) {
  .modal-detalhes {
    padding: 10px;
  }

  .conteudo-detalhes {
    padding: 18px;
    max-height: 90dvh;
  }

  .grade-detalhes {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .foto-detalhes {
    height: auto;
    max-height: 280px;
  }

  .miniaturas-detalhes img {
    width: 55px;
    height: 55px;
  }

  .informacoes-detalhes h2 {
    font-size: 20px;
  }

  .informacoes-detalhes select,
  .informacoes-detalhes input {
    padding: 10px;
  }
}

/* ACABAMENTO DA JANELA DE DETALHES */

.informacoes-detalhes {
  gap: 12px;
}

.informacoes-detalhes h2 {
  margin: 10px 0;
}

.informacoes-detalhes p {
  line-height: 1.6;
}

.informacoes-detalhes label {
  margin-bottom: -8px;
}

.informacoes-detalhes select,
.informacoes-detalhes input {
  padding: 12px;
}

.preco-detalhes {
  color: #a00000;
  margin: 12px 0;
}

.botao-comprar-detalhes {
  display: block;
  background: #a00000;
}

.botao-comprar-detalhes:hover {
  background: #780000;
}

@media (max-width: 700px) {
  .modal-detalhes {
    padding: 10px;
  }

  .conteudo-detalhes {
    padding: 18px;
    max-height: 90vh;
  }

  .foto-detalhes {
    max-height: 320px;
    object-fit: contain;
  }

  .informacoes-detalhes h2 {
    font-size: 20px;
  }

  .miniaturas-detalhes img {
    width: 55px;
    height: 55px;
  }
}
/* BOTÃO FECHAR PAINEL ADMINISTRATIVO */

#painelAdmin .fechar-painel-admin {
  display: block;
  width: fit-content;
  margin: 0 0 20px auto;
  padding: 10px 16px;
  background: #292929;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

#painelAdmin .fechar-painel-admin:hover {
  background: #b91c1c;
}
/* BOTÃO FINALIZAR PELO WHATSAPP */

.carrinho button.botao-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  padding: 16px 20px;

  background-color: #25D366 !important;
  color: #ffffff !important;

  border: none !important;
  border-radius: 12px;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
  transition: all 0.2s ease;
}

.carrinho button.botao-whatsapp:hover {
  background-color: #128C7E !important;
  transform: translateY(-2px);
}

.carrinho .icone-whatsapp {
  font-size: 24px;
  font-weight: bold;
}

/* CARRINHO PROFISSIONAL */

.carrinho .item-carrinho {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.foto-item-carrinho {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f7f7;
  flex-shrink: 0;
}

.conteudo-item-carrinho {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conteudo-item-carrinho strong {
  color: #222;
  font-size: 15px;
}

.carrinho .detalhes-item-carrinho,
.carrinho .preco-unitario-carrinho {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.controles-carrinho {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrinho .botao-quantidade {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  background: #f3f3f3;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.carrinho .botao-quantidade:hover {
  background: #e8e8e8;
}

.quantidade-item {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.subtotal-item {
  font-size: 17px !important;
  color: #b91c1c !important;
}

.carrinho .remover-item-carrinho {
  width: fit-content;
  padding: 6px 0;
  background: transparent;
  color: #b91c1c;
  border: none;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.carrinho .remover-item-carrinho:hover {
  background: transparent;
  color: #8f1515;
}

@media (max-width: 480px) {
  .foto-item-carrinho {
    width: 70px;
    height: 70px;
  }

  .carrinho .item-carrinho {
    gap: 10px;
  }
}
/* AJUSTE DOS BOTÕES DO CARRINHO */

.carrinho .controles-carrinho {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.carrinho .controles-carrinho .botao-quantidade {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;

  padding: 0 !important;
  background: #f3f3f3 !important;
  color: #222 !important;

  border: 1px solid #ddd !important;
  border-radius: 8px;

  font-size: 20px;
  font-weight: 700;
}

.carrinho .quantidade-item {
  min-width: 25px;
  text-align: center;
}

.carrinho button.remover-item-carrinho {
  width: auto !important;
  padding: 5px 0 !important;

  background: transparent !important;
  color: #b91c1c !important;

  border: none !important;
  box-shadow: none !important;

  font-size: 13px;
  text-decoration: underline;
}
/* CARRINHO - BOTÃO REMOVER COMPACTO */

.carrinho .conteudo-item-carrinho {
  align-items: flex-start;
}

.carrinho .controles-carrinho {
  justify-content: flex-start;
}

.carrinho button.remover-item-carrinho {
  display: inline-block;
  align-self: flex-start;

  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 3px 0 !important;

  background: transparent !important;
  color: #b91c1c !important;

  border: none !important;
  box-shadow: none !important;

  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* CHECKOUT PELO WHATSAPP */

.carrinho .dados-checkout {
  margin: 20px 0;
  padding: 18px;
  background: #f8f8f8;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
}

.carrinho .dados-checkout h3 {
  margin: 0 0 16px;
  font-size: 17px;
  color: #222;
}

.carrinho .dados-checkout label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.carrinho .dados-checkout input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 13px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 15px;
}

.carrinho .dados-checkout input:focus {
  outline: 2px solid #25D366;
  outline-offset: 1px;
}

.carrinho .aviso-frete {
  margin: 12px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

/* JANELA DE CONFIRMAÇÃO DO PEDIDO */

.modal-confirmacao {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.7);
  padding: 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.modal-confirmacao.ativo {
  display: flex;
}

.conteudo-confirmacao {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 25px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
}

.conteudo-confirmacao h2 {
  margin: 0 35px 8px 0;
  font-size: 23px;
  color: #222;
}

.conteudo-confirmacao > p {
  color: #666;
  font-size: 14px;
}

.fechar-confirmacao {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
}

.dados-resumo {
  margin: 20px 0;
  padding: 14px;
  background: #f7f7f7;
  border-radius: 10px;
}

.dados-resumo h3,
#resumoConfirmacao > h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.dados-resumo p {
  margin: 5px 0;
  font-size: 14px;
}

.produto-resumo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}

.produto-resumo p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.produto-resumo strong:last-child {
  color: #b91c1c;
}

.total-resumo {
  margin-top: 20px;
  font-size: 21px;
  font-weight: 800;
  color: #222;
}

.frete-resumo {
  font-size: 13px;
  color: #666;
}

.acoes-confirmacao {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.acoes-confirmacao button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.acoes-confirmacao .botao-voltar-confirmacao {
  background: #eeeeee;
  color: #333;
}

.acoes-confirmacao .botao-enviar-confirmacao {
  background: #25D366;
  color: #fff;
}

.acoes-confirmacao .botao-enviar-confirmacao:hover {
  background: #128C7E;
}

/* PRODUTOS COM FOTOS NA CONFIRMAÇÃO */

#resumoConfirmacao .produto-resumo {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

#resumoConfirmacao .foto-produto-resumo {
  width: 95px;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f7f7;
  flex-shrink: 0;
}

#resumoConfirmacao .informacoes-produto-resumo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

#resumoConfirmacao .informacoes-produto-resumo > strong:first-child {
  font-size: 15px;
  color: #222;
}

#resumoConfirmacao .informacoes-produto-resumo p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

#resumoConfirmacao .subtotal-produto-resumo {
  margin-top: 5px;
  font-size: 17px;
  color: #b91c1c;
}

@media (max-width: 480px) {
  #resumoConfirmacao .foto-produto-resumo {
    width: 80px;
    height: 95px;
  }
}

/* INFORMAÇÕES ORGANIZADAS NO CARRINHO */

.carrinho .detalhes-item-carrinho {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 5px 0;
}

.carrinho .detalhes-item-carrinho p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.carrinho .conteudo-item-carrinho {
  gap: 6px;
}

/* NOTIFICAÇÃO DE PRODUTO ADICIONADO */

.aviso-carrinho {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 12000;

  width: calc(100% - 40px);
  max-width: 380px;
  box-sizing: border-box;

  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 8px 35px rgba(0,0,0,0.2);

  display: none;
}

.aviso-carrinho.ativo {
  display: block;
  animation: aparecerAviso 0.25s ease;
}

.aviso-carrinho-topo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aviso-carrinho-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 34px;
  height: 34px;

  background: #e5f9ec;
  color: #16a34a;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
}

.aviso-carrinho-topo strong {
  display: block;
  font-size: 15px;
  color: #222;
}

.aviso-carrinho-topo p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #666;
}

.aviso-carrinho-acoes {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.aviso-carrinho-acoes button {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.aviso-carrinho-acoes .aviso-continuar {
  background: #f1f1f1;
  color: #333;
}

.aviso-carrinho-acoes .aviso-ver-sacola {
  background: #b91c1c;
  color: white;
}

@keyframes aparecerAviso {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .aviso-carrinho {
    right: 10px;
    bottom: 80px;
    width: calc(100% - 20px);
    max-width: none;
  }
}

/* GERENCIAMENTO DE PEDIDOS */

.admin-pedidos {
  margin: 25px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
}

.admin-pedidos h3 {
  margin: 0 0 10px;
  color: #222;
}

.admin-pedidos > p {
  color: #666;
  font-size: 14px;
}

.botao-atualizar-pedidos {
  background: #222;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  margin: 12px 0;
}

.resumo-pedidos-admin {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 15px 0;
}

.resumo-pedidos-admin > div {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.resumo-pedidos-admin strong {
  display: block;
  font-size: 25px;
  color: #222;
}

.resumo-pedidos-admin span {
  font-size: 12px;
  color: #666;
}

#listaPedidosAdmin {
  margin-top: 15px;
}

@media (max-width: 480px) {
  .admin-pedidos {
    padding: 12px;
  }
}

.pedido-admin-card {
  padding: 15px;
  margin-bottom: 12px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.pedido-admin-card h4 {
  margin: 0 0 10px;
  color: #222;
}

.pedido-admin-card p {
  margin: 6px 0;
  font-size: 14px;
}

/* STATUS E CONFIRMAÇÃO DE PAGAMENTO */

.status-pedido-admin {
  font-weight: 700;
  color: #333;
}

.botao-confirmar-pagamento {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  background: #16803c;
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.botao-confirmar-pagamento:hover {
  background: #11632e;
}

.botao-iniciar-producao {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  background: #252525;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.botao-iniciar-producao:hover {
  background: #444;
}

/* BOTÕES DE ENVIO E ENTREGA */

.botao-status-pedido {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  background: #252525;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.botao-status-pedido:hover {
  background: #444444;
}

/* DETALHES DOS PRODUTOS NOS PEDIDOS */

.titulo-itens-pedido {
  font-size: 16px;
  margin: 18px 0 10px;
  font-weight: 700;
}

.itens-pedido-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-pedido-admin {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px;
}

.detalhes-item-pedido strong {
  display: block;
  font-size: 15px;
  margin-bottom: 9px;
  color: #222;
}

.detalhes-item-pedido p {
  margin: 5px 0;
  font-size: 13px;
  color: #444;
}

.detalhes-item-pedido .subtotal-item-pedido {
  font-weight: 700;
  color: #111;
  margin-top: 10px;
}

.total-pedido-admin {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ddd;
  font-size: 17px;
  font-weight: 800;
  color: #111;
}

/* FOTOS DAS ESCULTURAS NO PAINEL */

.item-pedido-admin {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.foto-item-pedido {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  flex-shrink: 0;
}

.detalhes-item-pedido {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .foto-item-pedido {
    width: 75px;
    height: 75px;
  }

  .item-pedido-admin {
    gap: 10px;
  }
}

/* BOTÃO IMPRIMIR FICHA DE PRODUÇÃO */

.botao-ficha-producao {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  background: #354f8c;
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.botao-ficha-producao:hover {
  background: #263b6b;
}

.filtros-pedidos-admin {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.filtros-pedidos-admin input,
.filtros-pedidos-admin select {
  flex: 1;
  min-width: 190px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #222;
}

.filtros-pedidos-admin input:focus,
.filtros-pedidos-admin select:focus {
  outline: 2px solid #333;
  outline-offset: 1px;
}

/* RESUMO FINANCEIRO ADMINISTRATIVO */

.financeiro-admin {
  margin: 25px 0;
}

.financeiro-admin h3 {
  margin-bottom: 15px;
  font-size: 19px;
}

.financeiro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.financeiro-card {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
}

.financeiro-card span {
  display: block;
  color: #555;
  font-size: 13px;
  margin-bottom: 12px;
}

.financeiro-card strong {
  display: block;
  color: #222;
  font-size: 23px;
}

@media (max-width: 700px) {
  .financeiro-cards {
    grid-template-columns: 1fr;
  }
}

/* ORGANIZAÇÃO DO PAINEL ADMINISTRATIVO */

.financeiro-admin {
  width: 100%;
  margin: 20px 0 25px;
}

.financeiro-admin h3 {
  margin-bottom: 15px;
  font-size: 19px;
}

.financeiro-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.financeiro-card {
  min-width: 0;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.financeiro-card span {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

.financeiro-card strong {
  display: block;
  font-size: 23px;
  color: #222;
}

.resumo-pedidos-admin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.resumo-pedidos-admin > div {
  min-width: 0;
  text-align: center;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 20px;
}

.resumo-pedidos-admin strong {
  display: block;
  font-size: 24px;
}

.resumo-pedidos-admin span {
  display: block;
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

@media (max-width: 700px) {
  .financeiro-cards {
    grid-template-columns: 1fr;
  }

  .resumo-pedidos-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* IDENTIFICAÇÃO DE PEDIDOS DE TESTE */

.etiqueta-pedido-teste {
  display: inline-block;
  margin-left: 12px;
  padding: 5px 9px;
  background: #fff0d6;
  color: #8a5400;
  border: 1px solid #f1d59c;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .etiqueta-pedido-teste {
    margin: 7px 0 0;
  }
}

/* TELEFONE DO CLIENTE NO CHECKOUT */

.campo-telefone-cliente {
  margin-top: 14px;
}

.campo-telefone-cliente label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.campo-telefone-cliente input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .produto .foto-principal {
    height: 280px;
  }

  .produto .galeria {
    gap: 8px;
  }

  .produto .galeria img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }
}
/* MINIATURAS DOS PRODUTOS */

.produto .galeria {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.produto .galeria img {
  display: block;
  width: calc((100% - 16px) / 3);
  height: 100px;
  flex: 0 0 calc((100% - 16px) / 3);

  object-fit: cover;
  object-position: center;

  background: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  cursor: pointer;
}

.produto .galeria img:hover {
  border-color: var(--vermelho);
}
/* CORREÇÃO DEFINITIVA DAS MINIATURAS */

.produto .galeria {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.produto .galeria img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
/* FOTO PRINCIPAL DO PRODUTO */

.produto .foto-principal {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
/* FOTO PRINCIPAL SEM CORTES */

.produto .foto-principal {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: transparent;
  border-radius: 12px;
}
