body {
    font-family: "Zilla Slab", serif;
    font-weight: 300;
    font-style: normal;
  }
  
  




  .theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  
  .theme-switch .switch {
    position: relative;
    display: inline-block;
    width: 40px;   /* ancho reducido */
    height: 20px;  /* alto reducido */
  }
  
  .theme-switch .switch input.checbox {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #444;
    transition: 0.4s;
    border-radius: 20px;
  }
  
  .theme-switch .slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  
  .theme-switch input.checbox:checked + .slider {
    background-color: black
  }
  
  .theme-switch input.checbox:checked + .slider::before {
    transform: translateX(20px);
  }
  
  .theme-switch .icon {
    font-size: 1.2rem;
    color: #fff;
  }
  
  p{
    color: white;
  }


  .product-slider {
    padding: 1rem;
    overflow-x: hidden;
  }
  
  .slider-track-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin; /* Firefox */
  }
  
  .slider-track-scroll::-webkit-scrollbar {
    height: 6px;
  }
  .slider-track-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
  }
  
  .product-card {
    min-width: 220px;
    flex-shrink: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 0.5rem;
    text-align: center;
    scroll-snap-align: start;
  }
  
  .product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .product-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.3rem;
  }
  
  .product-card p {
    font-weight: bold;
    color: #1a1a1a;
  }
  
  .product-card small {
    color: #777;
  }
  
/* Temas */
.light-theme {
  background-color: #d9d9d9;
  color: #000;
}

.dark-theme {
  background-color: #212529;
  color: #fff;
}

/* Switch deslizable */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #999;
  transition: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Posición cuando está activado (modo oscuro) */
input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider::before {
  transform: translateX(26px)
}

/* Contendor para las dos cards como grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}


/* Cada tarjeta de producto */
.product-card { 
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* sombra más suave */
  width: 100%;
  max-width: 300px;
  padding: 5px;
  text-align:center;
  overflow: hidden; /* Oculta bordes sobresalientes */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 0.5em;
  color: #333;
}

.product-card p {
  font-weight: bold;
  color: #28a745;
  margin-bottom: 12px;
}

.product-card button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.product-card button:hover {
  background-color: #0056b3;
}


.product-card button {
  border-radius:20px !important; /* sin bordes redondeados */
  font-size: 0.80rem;          /* más pequeño */
  padding: 2px 6px;            /* menos espacio interno */
}



  
.btn-polish {
  background-color: #d32d2f !important;
  color: #fff !important; 
  border: 2px solid #d71c1f !important; 
  box-shadow: none !important;
  border-radius: none;
}



.form-wrapper {
  max-width: 500px;
  padding: 1rem;
  color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}





.contenido-carrito {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem; /* separación moderada */
  flex-wrap: wrap;
  text-align: left;
}

.lista-carrito {
  min-width: 180px;
}

#btn-pagar {
  height: 25px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}


.btn-polish-white {
  background-color: white;
  color: #333;
  border: 1px solid #ccc;
}

.btn-polish-white:hover {
  background-color: #f2f2f2;
  color: #000;
}

@media (min-width: 768px) and (max-width: 1179px) {
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
  }
}






@media (max-width: 767px) {
  /* Estilos para móviles */




  .product-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 8px;
    max-width: 600px;
    margin: 0 auto; /* Centra horizontalmente */
    padding: 0 50px; /* Opcional: agrega espacio lateral en móviles */
  }




}




@media (min-width: 1180px) {

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
  }
  



}


.skeleton {
  background-color: #e0e0e0;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.skeleton-img {
  width: 100%;
}

.skeleton-text {
  height: 16px;
  background-color: #ccc;
  margin: 5px 0;
  border-radius: 4px;
}
  


.skeleton-card {
  background: linear-gradient(90deg, #e0e0e0 25%, #f8f8f8 37%, #e0e0e0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}


.loading-card-slider {
  width: 200px;
  height: 300px;
  background-color: #333;
  border-radius: 10px;
  margin-right: 15px;
  animation: loading 1.5s infinite ease-in-out;
}


@keyframes loading {
  0% { background-color: #444; }
  50% { background-color: #555; }
  100% { background-color: #444; }
}


.loading-card {
  width: 100%;
  min-height: 300px;
  background-color: #333;
  background-size: 300% 300%;
  animation: loading 1.5s infinite ease-in-out;
  border-radius: 10px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}



.product-card {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
  padding: 0;
  background-color: transparent; /* SIN fondo al inicio */
}

.product-card.loaded {
  background-color: #fff; /* Fondo blanco solo al cargar */
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


.grid-products.loaded .product-card {
  background-color: #fff; /* Fondo blanco solo cuando el grid está cargado */
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}



.loading-card-grid {
  height: 340px;
  border-radius: 10px;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}


#gridProductsSection .grid-products {
  width: 90%;  /* Cambia a 75% o 70% según lo desees */
  margin: 0 auto;  /* Centrado horizontal */
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas */
  gap: 20px;  /* Espacio entre las cartas */
  padding-top: 20px;
  padding: 20px;
}






