@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:wght@100..400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playwrite DE Grund", cursive;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* hasta aqui */
/* Contenedor del loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenedor de las bolitas */
.loader {
    display: flex;
    justify-content: space-between;
    width: 100px;
}

/* Estilos de las bolitas */
.dot {
    width: 20px;
    height: 20px;
    background-color: #f30d5e; /* Color de la bolita */
    border-radius: 50%;
    animation: wave 1s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

/* Animación de ola para las bolitas */
@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-15px);
    }
}

/* Texto de "Cargando..." */
.loading-text {
    margin-top: 10px;
    font-size: 15px;
    color: #f20d55;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
}

/* Animación de ola para el texto */
.loading-text span {
    display: inline-block;
    animation: wave-text 1s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-text {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 100px;
}

.nav-icons i {
    font-size: 24px;
    margin: 0 10px;
    cursor: pointer;
}

.menu-toggle {
    cursor: pointer;
}
.menu-toggle i {
    font-size: 24px;
}

/* Menú lateral */
.sidebar {
    position: fixed;
    left: -250px;
    top: 56px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.sidebar-active {
    left: 0;
}


/* Ocultar el contenedor de búsqueda por defecto */
/* Search bar */
.search-bar {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.suggestions {
    margin-top: 5px;
}

.suggestions div {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-top: none;
    background-color: white;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}

/* Estilos para productos */
.productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    
}
.producto {
    margin-top: 50px;
}

.producto {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
   
    text-align: center;
    position: relative;
}

.producto img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out; /* Animación suave */
}

.producto img:hover {
    transform: scale(1.1); /* Aumenta el tamaño de la imagen al pasar el mouse */
}

/* Efecto combinado: zoom + sombra */
.producto img:hover {
    transform: scale(1.1); /* Zoom */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave */
}


.producto h2 {
    font-size: 12px;
    margin: 10px 0;
}

.producto p {
    font-size: 14px;
    color: #555;
}

.colores-disponibles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.colores-disponibles .color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.acciones-producto {
    position: relative;
    margin-top: 10px;
}
/* destcuentos */
.descuento {
    background-color: #f43394;
    color: #fff;
    padding: 5px 10px;
    font-size: 5px;
    border-radius: 5px;
    position: absolute;
    top: -30px;
    left: -10px;
    margin: auto;
}


.precio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.moneda,
.precio-tachado,
.precio-oferta {
    white-space: nowrap; /* NO permite que S/ se separe del precio */
}

.precio-tachado {
    text-decoration: line-through;
    color: #a0a0a0;
}

.precio-oferta {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e80000;
}

/* MÓVIL */
@media (max-width: 480px) {
    .precio {
        flex-direction: column;
        align-items: center; /* << ahora sí se centra bonito */
        gap: 0;
    }
}



.btn-comprar {
    background-color: #000000;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
}

.btn-carrito {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
}

.btn-carrito i {
    font-size: 16px;
}

.nav-icons{
    position: relative;
  }

  /* estilos a la notificacion de agregar un producto */
/* Estilos del icono del carrito */
/* Estilos del icono del carrito */
.cart-notification {
    position: absolute;
    top: -10px;
    right: 0;
    background-color: rgb(246, 18, 121);
    color: white;
    padding: 5px 8px;
    border-radius: 100%;
    font-size: 12px;
    font-weight: bold;
}


.notification {
  position: absolute;
  right: 10px;
  top: 65px; /* Ajusta si tu header es más grande */
  background: #e20498;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  width: max-content;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.notification.show {
  opacity: 1;
  pointer-events: auto;
}

.notification-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.notification-buttons button {
  background: white;
  color: #27ae60;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}


/* estilos al checkoutcart.html */


.carrito-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.carrito-item img.carrito-item-image {
    width: 100px; /* Ajusta este valor según el tamaño deseado */
    height: auto;
    margin-right: 15px;
    object-fit: cover; /* Esto asegura que la imagen se escale correctamente */
    border-radius: 5px; /* Agrega un borde redondeado si es necesario */
}

.carrito-item-details {
    flex-grow: 1;
}

.carrito-item-details h3 {
    font-size: 1.2em;
    margin: 0;
}

.carrito-item-details p {
    margin: 5px 0;
}

#carrito-items {
    max-width: 800px;
    margin: 0 auto;
}

#subtotal-amount, #total-amount {
    font-weight: bold;
    font-size: 1.2em;
}

.mensaje-error {
  margin-top: 10px;
  padding: 8px;
  background: red;
  color: #fdfafb;
  font-size: 12px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  display: none;
}


/* Footer */
footer {
    display: grid;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto; /* Empuja el footer hacia el final de la página */ 

}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.social-media {
    margin-bottom: 15px;
}

.social-media a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1da1f2;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 14px;
}
/* Estilos generales para el contenedor de paginación */


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
    font-family: Arial, sans-serif;
}

/* Estilos para los botones de paginación */
.pagination button {
    padding: 5px 8px;
    font-size: 16px;
    color: #0c0000;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #ddd;
    border-color: #ccc;
}

/* Estilos para la flecha desactivada */
.pagination button:disabled {
    color: #aaa;
    background-color: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
}

/* Estilos para la página activa */
.pagination .active {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}



/* Responsive */
@media screen and (max-width: 768px) {
    .productos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .producto {
        max-width: 400px;
        margin: 0 auto;
    }
    .producto {
        margin-top: 50px;
    }
}




#mensaje-compra-minima {
    background-color: #f91c3d; /* Fondo rosado claro */
    color: #f3f0f0; /* Rojo elegante */
    border: 1px solid #ffcccc;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 12px;
    text-align: center;
    display: none; /* Inicialmente oculto */
    animation: fadeIn 0.5s ease forwards;
}

/* Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* --- BOTÓN WHATSAPP PREMIUM (Dark + Glass + Bounce) --- */
/* --- BOTÓN WHATSAPP PREMIUM PRO --- */

.btn-whatsapp-premium {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;

   background: linear-gradient(135deg, #ff4081, #ff6fa8);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  cursor: pointer;

  animation: float 3s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;

  z-index: 9999;
}

/* Ícono */
.btn-whatsapp-premium img {
  width: 65%;
  height: 65%;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.4));
}

/* Hover */
.btn-whatsapp-premium:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

/* Tooltip */
.tooltip {
  position: absolute;
  right: 80px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.3s;
  white-space: nowrap;
}

.btn-whatsapp-premium:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Animación flotante suave */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}