@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap");

body {
  margin: 0;
  line-height: inherit;
  background-color: rgb(248, 248, 248);
  font-family: "poppins", sans-serif;
}

*,
::after,
::before {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: rgb(214, 214, 214);
}

.content-banner {
  overflow: hidden;
  max-width: 1800px;
  width: 100%;
  display: none;
  justify-content: center;
  margin-bottom: 40px;
}

.content-banner-mobile {
  display: none;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  margin-bottom: 40px;
}

@media (min-width: 700px) {
  .content-banner {
    display: flex;
  }
}

@media (max-width: 700px) {
  .content-banner-mobile {
    display: flex;
  }
}

.banner-track,
.banner-track-mobile {
  display: flex;
  width: 400%;
  transition: transform 0.5s ease;
}

.banner {
  width: 100%;
  flex-shrink: 0;
}

.banner-mobile {
  width: 100%;
  flex-shrink: 0;
}

.title-lojas {
  font-size: 24px;
  font-weight: 600;
}

.box-lojas {
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
  margin-bottom: 28px;
}

.lojas-track {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
  width: max-content;
  position: relative;
  animation: slide 90s linear infinite;
  align-items: center;
}

.loja {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-66.5%);
  }
}

@media (max-width: 700px) {
  .loja {
    width: 100px;
    height: 100px;
    margin: 6px;
  }

  .lojas-track {
    animation: scroll 10s linear infinite;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#loggedInActions {
  align-items: center;
  gap: 1rem;
}

.login-button {
  margin-left: 16px;
  padding: 11px 16px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-button:hover {
  background-color: #f3f4f6;
}

.register-button {
  margin-left: 16px;
  padding: 11px 16px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.register-button:hover {
  background-color: #f3f4f6;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(63, 146, 255, 0.5);
  padding: 4px;
}

.user-nome {
  font-weight: 600;
}

@media (max-width: 700px) {
  .user-nome {
    font-size: 14px;
    max-width: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-options.hidden {
  display: none;
}

.user-options button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-align: left;
  padding: 5px 0;
}

.user-options button:hover {
  text-decoration: underline;
}

.logout {
  color: red;
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.container-box {
  padding: 0 15px 0 15px;
  width: 100%;
  max-width: 1800px;
}

.sessao {
  margin-bottom: 32px;
}

.titulo-sessao {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.grid-produtos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 700px) {
  .grid-produtos {
    justify-content: center;
  }
}

.loading-indicador {
  text-align: center;
  padding: 24px 0;
  color: #6b7280;
  display: none;
}

.button-categori {
  background-color: rgb(211, 230, 255);
  color: #000;
  font-weight: 400;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.button-categori:hover {
  background-color: rgb(193, 220, 255);
}

.card {
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  width: 100%;
  margin: 10px;
  max-width: 270px;
  flex-direction: column;
  transition: transform 0.3s ease;
}

@media (max-width: 700px) {
  .card {
    max-width: 100%;
  }
}

.card:hover {
  transform: scale(1.03);
}

.image {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #f97316;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 9999px;
  display: none;
  z-index: 10;
}

.content-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.content-info h2 {
  font-weight: 600;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-info p {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.content-info label {
  color: #2563eb;
  font-weight: 700;
  font-size: 28px;
  margin-top: 5px;
}

.box-buttons {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.button1 {
  text-align: center;
  background-color: #16a34a;
  color: #ffffff;
  padding: 8px;
  border-radius: 4px;
}

.button1:hover {
  background-color: #15803d;
}

@keyframes pulse-smooth {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.5);
  }

  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(255, 90, 90, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 90, 90, 0);
  }
}

.button2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff5858, #ff934f);
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 90, 90, 0.4);
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  animation: pulse-smooth 2.5s infinite;
}

.button2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 90, 90, 0.5);
  opacity: 0.95;
  cursor: pointer;
}

.button2:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(255, 90, 90, 0.3);
  cursor: pointer;
}

@keyframes fireBurst {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-40px) scale(0.6);
    opacity: 0;
  }
}

@keyframes priceChange {
  0% {
    transform: scale(1);
    color: #10b981;
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    color: #059669;
    opacity: 1;
  }

  100% {
    transform: scale(1);
    color: #1f2937;
    opacity: 1;
  }
}

.preco-atual {
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

.preco-animado {
  animation: priceChange 0.6s ease-in-out;
}

.price-thermometer {
  width: 100%;
  height: 16px;
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}

.price-thermometer-fill {
  height: 100%;
  width: 0%;
  transition: width 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.price-thermometer-text {
  white-space: nowrap;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  max-width: 384px;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  animation: gp-fadeIn 0.3s ease-in-out;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.modal-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-erro {
  color: #dc2626;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.modal-botoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.modal-botoes-checkout {
  display: flex;
  align-items: center;
  margin-top: 17px;
  gap: 8px;
}

.btn-registrar {
  padding: 8px 16px;
  background-color: #10b981;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-registrar:hover {
  background-color: #059669;
}

.btn-cancelar {
  padding: 8px 16px;
  background-color: #d1d5db;
  border-radius: 4px;
}

.btn-entrar {
  padding: 8px 16px;
  background-color: #2563eb;
  color: white;
  border-radius: 4px;
}

.btn-comprar {
  padding: 8px 16px;
  background-color: #16a34a;
  color: white;
  border-radius: 4px;
}

.modal-label {
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

.modal-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.modal-link:hover {
  text-decoration: underline;
}

.modal-checkout {
  width: 60%;
  background-color: #ffffff;
  border-radius: 8px;
  animation: gp-fadeIn 0.3s ease-in-out;
  padding: 26px;
  max-height: 80vh;
  overflow-y: auto;
  max-width: 1100px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  display: flex;
}

.modal-checkout-esquerda {
  width: 70%;
  border: 1px solid #cecece;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  border-radius: 6px;
  margin-right: 38px;
}

.modal-checkout-direita {
  width: 50%;
}

@media (max-width: 700px) {
  .modal-checkout {
    width: 94%;
    max-height: 80vh;
    overflow-y: auto;
    flex-direction: column;
  }

  .modal-checkout-esquerda {
    width: 100%;
    margin-right: 0;
  }

  .modal-checkout-direita {
    width: 100%;
    margin-top: 12px;
  }
}

.modal-checkout-direita nav {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.modal-checkout-direita nav p {
  font-size: 14px;
  font-weight: 300;
  padding: 10px;
  border-radius: 4px;
  margin-top: 19px;
  color: rgb(0, 0, 0);
  background: rgb(192, 232, 255);
}

.modal-dados-produto {
  display: flex;
  flex-direction: column;
}

.nome-produto {
  font-weight: 600;
  font-size: 26px;
}

.preco-produto {
  font-size: 29px;
  font-weight: 600;
  margin-top: 20px;
  color: rgb(35, 70, 139);
}

.imagem-produto {
  width: 500px;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
}

.info-entrega {
  font-size: 14px;
}

.tab-bar {
  position: fixed;
  display: none;
  bottom: 0;
  left: 0;
  padding: 11px 3px 10px 3px;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #ccc;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.31);
  z-index: 1000;
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-size: 12px;
}

@media (max-width: 700px) {
  .tab-bar {
    display: flex;
  }
}

.icon {
  width: 23px;
  margin-bottom: 2px;
}

.vendido-badge {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  background-color: red;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px 110px;
  font-size: 18px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}