/* ======================
  RESET BÁSICO
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  padding-top: 100px;
}

body.no-scroll {
  overflow: hidden;
}

.row {
  margin-right: 0;
  margin-left: 0;
}

/* ======================
  MARGIM
====================== */
.mt-5,
.my-5 {
  margin-top: 3rem !important
}

.mb-5,
.my-5 {
  margin-bottom: 3rem !important
}

.mt-4,
.my-4 {
  margin-top: 2rem !important
}

.mb-4,
.my-4 {
  margin-bottom: 2rem !important
}

.mt-3,
.my-3 {
  margin-top: 1rem !important
}

.mb-3,
.my-3 {
  margin-bottom: 1rem !important
}

.mt-2,
.my-2 {
  margin-top: .9rem !important
}

.mb-2,
.my-2 {
  margin-bottom: .9rem !important
}

.mt-1,
.my-1 {
  margin-top: .6rem !important
}

.mb-1,
.my-1 {
  margin-bottom: .6rem !important
}

.mt-0,
.my-0 {
  margin-top: 0 !important
}

.mb-0,
.my-0 {
  margin-bottom: 0 !important
}

.ml-5,
.mx-5 {
  margin-left: 3rem !important
}

.mr-5,
.mx-5 {
  margin-right: 3rem !important
}

.ml-4,
.mx-4 {
  margin-left: 2rem !important
}

.mr-4,
.mx-4 {
  margin-right: 2rem !important
}

.ml-3,
.mx-3 {
  margin-left: 1rem !important
}

.mr-3,
.mx-3 {
  margin-right: 1rem !important
}

.ml-2,
.mx-2 {
  margin-left: .9rem !important
}

.mr-2,
.mx-2 {
  margin-right: .9rem !important
}

.ml-1,
.mx-1 {
  margin-left: .6rem !important
}

.mr-1,
.mx-1 {
  margin-right: .6rem !important
}

.ml-0,
.mx-0 {
  margin-left: 0 !important
}

.mr-0,
.mx-0 {
  margin-right: 0 !important
}

.m-auto {
  margin: 0 auto !important
}

.btr-1 {
  margin-right: 2px !important
}

/* ======================
  //TITULO / HEADER
====================== */
.tituloHeader h1 {
  color: #fff;
  font-size: 1.2rem;
}

header {
  background-color: #343a40;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
}

/* ======================
  //RODAPÉ
====================== */
footer {
  background-color: #f1f1f1;
  color: #333;
  font-size: 0.9rem;
  padding: 40px 0;
  border-top: 4px solid #ff9800;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer a:hover {
  color: #ff9800 !important;
}

footer h5 {
  font-weight: 600;
}

a {
  text-decoration: none;
}


/* ======================
  CABEÇALHO
====================== */
.logo-container {
  display: inline-block;
  perspective: 800px;
}

.logo {
  max-height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo--spin {
  animation: spin-y 4s linear infinite;
  transform-style: preserve-3d;
}

@keyframes spin-y {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* ======================
  PRODUTOS
====================== */
.product_tags {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product_tags .badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.product_tags .badge.bg-danger {
  background-color: #ff4f4f;
}

.product_tags .badge.bg-warning {
  background-color: #ff9800;
}

.product_tags .badge.bg-dark {
  background-color: #010101;
}

.btn-whatsapp {
  background-color: #25D366;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1DA851;
}

.card-product {
  background-color: #fff;
  color: #333;
  border: none;
  transition: all 0.3s ease;
  background-color: #fff;
  border-radius: 16px;
  padding: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.card-product:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.card-product img {
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.card-product .card-title,
.card-product p.text-muted,
.card-product .stars-wrapper {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.card-product .text-muted {
  font-size: 0.9rem;
}

.card-product .preco-original {
  color: #999;
  font-size: 0.9rem;
  text-decoration: line-through;
}

.card-product .preco-promocional {
  color: #e63946;
  font-weight: bold;
  font-size: 1.1rem;
}

.card-product .btn {
  padding: 0.4rem 0.5rem;
  font-size: 0.70rem;
}

#imgPrincipal {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background-color: #f8f8f8;
  display: block;
  margin: 0 auto;
}

.estrela {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.estrela.selecionada,
.estrela:hover,
.estrela:hover~.estrela {
  color: #ffc107;
}

/* ======================
  CATALOGO
====================== */
.page-break {
  page-break-after: always;
}

/* ======================
  MODO DARK
====================== */
body.dark-mode {
  background-color: #121212;
  color: #fff;
}

header.dark-mode,
footer.dark-mode {
  background-color: #1d1d1d;
}

.card-product.dark-mode {
  background-color: #333;
  color: #fff;
}

.estrela.dark-mode {
  color: #666;
}

.estrela.selecionada.dark-mode,
.estrela:hover.dark-mode {
  color: #ffc107;
}

/* ======================
  CARRINHO
====================== */
.offcanvas .offcanvas-body {
  font-size: 0.95rem;
}

#carrinho-itens .btn {
  font-size: 0.9rem;
}

/* ======================
  AVALIAÇÃO
====================== */
#formAvaliacao {
  margin-top: 20px;
}

#formAvaliacao .mb-2 {
  margin-bottom: 1rem;
}

#listaAvaliacoes {
  margin-top: 20px;
}

#listaAvaliacoes .mb-3 {
  padding: 15px;
  background-color: #f1f1f1;
  border-radius: 8px;
}

/* ======================
  Paginação Refatorada
====================== */
.paginaArea {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 20px;
}

.paginacaoItem {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  background-color: #f8f9fa;
  color: #010101;
  text-decoration: none;
  border: 1px solid #010101;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.paginacaoItem:hover {
  background-color: #010101;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pag_ativa {
  background-color: #ff9800;
  color: #fff !important;
  border-color: #ff9800;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
  transition: all 0.25s ease-in-out;
}

.pag_ativa:hover {
  background-color: #218838;
  color: #fff;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.4);
}

@media screen and (max-width: 576px) {
  .paginacaoItem {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ======================
  FILTROS
====================== */
#btnMobile {
  padding: 4px 10px;
  font-size: 14px;
  margin-top: 5px;
  float: left;
}

#sidebar-filtros {
  position: fixed;
  top: 0;
  left: -25%;
  width: 25%;
  height: 100%;
  background: #fff;
  z-index: 1050;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

#sidebar-filtros.active {
  left: 0;
}

#sidebar-filtros .filterarea {
  background-color: #f8f9fa;
  color: #212529;
}


aside .form-select,
aside .form-control {
  font-size: 0.9rem;
}

.custom-dropdown {
  width: 220px;
}

h1 {
  font-size: 24px;
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
}


#amount {
  text-align: center;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f9fa;
  color: #333;
  font-size: 15px;
}

#amount:focus {
  border-color: #010101;
  background-color: #ffffff;
  outline: none;
}

#slider-range {
  width: 100%;
  height: 8px;
  background-color: #ddd;
  border-radius: 2px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.filterbox,
.filtercategory {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filtertitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: .4rem;
  margin-bottom: .8rem;
  text-transform: uppercase;
  color: #333;
}

.filtertitle span.migalha {
  padding-left: 2.3rem;
}

.filtertitle span {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.filtertitle i {
  font-size: 1.3rem;
  color: #ff9800;
}

.filtercontent label,
.filtercontent span {
  text-transform: capitalize;
  color: #666;
}

.filtercontent .form-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.filtertitle_label {
  margin-left: 6px;
  flex-grow: 1;
  cursor: pointer;
}

.filtertitle_qtde {
  margin-left: 10px;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.filtercontent label:hover {
  color: #0f5132;
  border-color: #a3cfbb;
  animation: menu .5s;
}

@keyframes menu {
  from {
    transform: translateX(-20px);
    box-shadow: 0 2px 0 0 #0f5132;
  }

  to {
    transform: translateX(0);
    box-shadow: 0 2px 0 00f5132;
  }
}

.star-count {
  margin-left: auto;
}

.star-img {
  height: 18px;
  width: auto;
  padding-left: 2px;
}

.star-min-img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-left: 1px;
  margin-top: -22px;
}

.stars-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ======================
  MODAL
====================== */
#modalInfo,
#modalwarning,
#modalError {
  z-index: 2000 !important;
}

.modal.fade .modal-dialog {
  transform: translateY(-100%);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

.modal-content {
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

/* ======================
  MERCADO PAGO VIEW
====================== */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  z-index: 9999;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.tt_pagar {
  width: 500px;
  margin: 0 auto;
  padding: 0px 0px 3px 3px;
  text-align: center;
  color: #3498db;
}

.card-page {
  width: 500px;
  margin: 0 auto;
}

.card-page-status {
  width: 500px;
  margin: 0 auto;
}

.paym-retor {
  margin-top: -30px;
}



/* ======================
  RESPONSIVIDADE
====================== */
@media (min-width: 1400px) {
  .row-cols-xxl-6>* {
    flex: 0 0 auto;
    width: 16.6667%;
  }
}

@media (max-width: 1100px) {
  .product_tags .badge {
    padding: 2px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
  }
}

@media (max-width: 1024px) {
  #sidebar-filtros {
    left: -35%;
    width: 35%;
  }
}

@media (max-width: 991.98px) {
  .tituloHeader h1 {
    font-size: .9rem;
  }

  .mobile-nav .navbar-nav {
    padding-top: 1rem;
  }

  .mobile-nav .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .mobile-nav form.d-flex {
    flex-direction: column;
  }

  .mobile-nav form.d-flex input,
  .mobile-nav form.d-flex button {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .mobile-nav #toggle-mode,
  .mobile-nav .btn {
    width: 100%;
  }

  .mobile-nav .dropdown-menu {
    width: 100%;
    text-align: left;
  }

  .navbar-content.show-navbar {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 945px) {
  #sidebar-filtros {
    left: -45%;
    width: 45%;
  }
}

@media (max-width: 768px) {
  .navbar-brand span {
    font-size: 0.85rem;
  }

  .navbar .btn,
  .navbar form input,
  .navbar form button,
  .navbar .dropdown-toggle {
    font-size: 0.75rem !important;
    padding: 4px 8px;
  }

  .navbar .fa {
    font-size: 0.9rem;
  }

  .navbar .dropdown-menu {
    font-size: 0.8rem;
  }

  .navbar .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  #navbarContent {
    display: none;
  }

  #navbarContent.show-navbar {
    align-items: flex-start !important;
    text-align: left;
  }

  #navbarToggleBtn {
    display: inline-block;
  }

  #sidebar-filtros {
    left: -80%;
    width: 80%;
  }

  .card-product .card-title {
    font-size: 0.85rem;
  }

  .card-product .text-muted {
    font-size: 0.75rem;
  }

  .card-product .preco-original,
  .card-product .preco-promocional {
    font-size: 0.9rem;
  }

  .card-product .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  .card-product .stars-wrapper img {
    width: 14px;
  }

  .card-product img {
    max-height: 150px;
  }

  /* Ajustes nos textos do card de produto */
  .card-product .preco-promocional {
    font-size: 1rem;
  }

  .card-product .fst-italic {
    display: none;
  }

  /* Ajuste no formulário */
  #formAvaliacao {
    margin-top: 10px;
  }

  .product_tags {
    top: 10px;
    left: 10px;
  }

  /* Estilos de Transição para Hover das Estrelas */
  .estrela:hover {
    color: #ff9800;
    transition: color 0.3s ease;
  }

  /* Estilos para Adicionar uma "Nota de Avaliação" ao lado das estrelas */
  .estrela.selecionada {
    color: #ffc107;
  }

  /* Estilos de campo de avaliação */
  textarea {
    resize: none;
  }

  textarea:focus,
  input:focus {
    outline: 2px solid #e63946;
    border-color: #e63946;
  }
}


@media (min-width: 769px) {
  #navbarToggleBtn {
    display: none;
  }
}

@media (max-width: 576px) {
  .card-img-top {
    max-height: 140px;
    object-fit: contain;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .preco-promocional {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #sidebar-filtros {
    left: -95%;
    width: 95%;
  }

  .card-product .card-title {
    font-size: 0.75rem;
  }

  .card-product .btn {
    font-size: 0.8rem;
  }

  .card-product .preco-promocional {
    font-size: 0.85rem;
  }

  .card-product .btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
  }
}

@media (max-width: 430px) {
  .tituloHeader h1 {
    font-size: .7rem;
  }
}