@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Meow+Script&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Paytone+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


body {
  margin: 0;
  font-family: sans-serif;
  background: #060d5d;
  max-width: 480px;
  margin: auto;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* o el color de fondo que quieras */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
  
#preloader img {
  width: 100px; /* ajusta el tamaño si quieres */
}

h1{
  margin: 0;
}

a {
  text-decoration: none;
}

header {
  background: #060d5d;; color: #fff; padding: 10px;
  text-align: center; overflow: hidden; position: relative;
}

.carousel {
  white-space: nowrap; animation: scroll 6s linear infinite;
  font-family: Arial, Helvetica, sans-serif; font-weight: bold;
  display: flex; justify-content: center; gap: 20px; align-items: baseline;
}
@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.cart-section {
  padding: 16px;
  min-height: calc(80vh - 80px);
}

.main-section{
  gap: 10px;
  display: grid;
  background: #f5f5f5;
  padding: 16px 16px 130px 16px;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  justify-items: center;  
}

.product-card {
  padding: 10px;
  display: flex;
  background: #fff;
  align-items: center;
  border-radius: 12px;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-card--img{
  max-width: 155px;
  min-width: 155px;
  display: flex;
  align-items: center;
  background-color: #cdcdcd54;
  border-radius: 18px;
}
.product-card img{
  width: 100%;
  border-radius: 18px;
}

.product-card h3 {
    color: #5d5d98;
    text-align: center;
}

.product-card p{
  text-align: center;
  padding: 10px;
  margin: 0;
}

.price {
  color: rgb(46, 184, 18);
  font-weight: bold;
}

.cart-section {
  display: none;
  background: #f5f5f5;
}

.cart-section.active {
  display: block;
}

.btn--selected, .btn--selected strong{
  border-bottom: 3px solid white;
  font-size: .9rem !important;
}

.empty-cart-message {
  text-align: center;
  color: #5d5d98;
  margin-top: 20px;
  height: 500px;
  background-image: url('imgs/logo/logo-1.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position-y: 100px;
}

.content--cart {
  padding: 16px;
  display: flex;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
}

.text--carrito{
  font-weight: 800;
  font-size: 1.7rem;
  color: #5d5d98;
  font-family: 'Montserrat',serif;
}

.cart-items .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

.cart-items {
  padding: 16px;
  overflow-y: auto;
  max-height: 300px;
  margin-bottom: 10px;
}


.cart-items img {
  width: 100px;
  border-radius: 8px;
}

.item {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.item--content {
  display: flex;
  padding: 0.5em;
  align-items: center;
  flex-direction: column;
}

.item--content strong{
  padding: 0.5em;
  text-align: center;
}

.item--prices {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item--prices p {
  margin: 0.5em;
}

.item.enter {
  transform: translateY(10px);
  opacity: 0;
}

.item.enter-active {
  transform: translateY(0);
  opacity: 1;
}

.item.exit {
  transform: translateX(0);
  opacity: 1;
}

.item.exit-active {
  transform: translateX(100%);
  opacity: 0;
}


.cart-precio--nombre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Montserrat',serif;
  font-weight: 800;
}

#close-modal {
  padding: 10px;
  border-radius: 10px;
  border: 0;
  color: white;
  font-family: 'Montserrat',serif;
  font-size: 20px;
  font-weight: 700;
  background-color: #060d5d;;
}

.btns--carrito {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clear-cart-button {
  color: #ffffff;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  background-color: #060d5d;
}

.send-whatsapp {
  width: 100%;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: rgb(13, 141, 13);
}

.btns--counter {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 12px;
  width: 164px;
}

.btns--counter span {
  font-size: 20px;
  font-weight: bold;
}

.dec, .inc {
  border: 0;
  color: white;
  font-size: 20px;
  border-radius: 4px;
  background-color: #060d5d;
  padding: 5px;
}

.remove {
  border: 0;
  font-size: 28px;
  color: #555;
}

.add-btn {
  border: 0;
  width: 100%;
  color: white;
  padding: 10px;
  border-radius: 10px;
  background-color: #060d5d;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
}

#cart-total {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

#cart-total.fade {
  opacity: 0;
  transform: scale(0.95);
}

.item-total {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.item-total.fade {
  opacity: 0;
  transform: scale(0.95);
}


.wave--nav {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.bottom-nav {
  position: fixed;
  bottom: -1.8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #060d5d;
  padding: 10px 0 12px 0;
}

.btn-Inicio, .btn-Menu, .btn-Redes, .btn-Carrito{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.btn-Carrito i {
  font-size: 40px;
}
.btn-Inicio img, .btn-Menu img, .btn-Redes img, .btn-Carrito img {
  width: 40px;
}
#btn-products{
  color: #fff;
}
.bottom-nav button, .logo-button, .btn-Carrito strong, .btn-Menu strong{
  color: #f5f5f5;
  border: none;
  font-size: .7rem;
  cursor: pointer;
  background: none;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

#btn-cart {
  font-size: 28px;
  color: #f5f5f5;
}

.logo-button {
  width: 5rem;
  /* border-radius: 50%; */
}

.toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: green;
  color: white;
  padding: 8px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 10;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: #5d5d98;;
  font-size: 20px;

}

.modal-content a {
  color: #097875;
  text-align: center;
  text-decoration: none;
}

li {
  list-style-type: none;
  display: flex;
  gap: 20px;
  margin-left: 60px;
}

.hidden {
  display: none;
}

@keyframes bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.bounce {
  animation: bounce 0.3s ease;
}
