@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:wght@100..400&display=swap');

* {
    padding: 0;
    margin: 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: 20px;
    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;
}

main {
    padding: 20px;

    margin-top: 50px;
}

.product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-images img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

.thumbnail-images img {
    width: 80px;
    margin-right: 10px;
    cursor: pointer;
}

.product-info {
  padding: 0 10px;
    text-align: center;
    margin-top: 20px;
}
.product-info #product-stock {
    font-weight: bold;
   
}
.price {
    font-size: 24px;
    color: #001f62;
}

.color-options {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.product-info #product-code {
    background: #29026b;
    width: max-content;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 8px;
    color: white;
    display: flex;
    left: 0;
    right: 0;
    margin: auto;
    font-weight: bold;
}

.color-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
}

button {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
}

.add-to-cart {
    background-color: #000;
    color: #fff;
}

.buy-now {
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
}

button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.mensaje-error {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ff4081, #ff6fa8);
  border-left: 4px solid #ff6fa8;
  border-radius: 6px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: none;
}
.mensaje-error.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Estilo para la imagen principal */
.main-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    object-fit: cover;
}

/* Estilo para las miniaturas */
.image-gallery {
    display: flex;
    gap: 10px;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.image-gallery img:hover {
    border: 2px solid #000;
}

/* Estilo para los círculos de color */
.color-options {
    margin-top: 10px;
}

.color-circle {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Otros estilos para la página */
.product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-info {
    margin-top: 20px;
}


/* estilos a la pagina de checkoutcart */

/* estilos al checkoutcart*/
.resumen {
    text-align: center;
    display: block;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.carrito-detalles {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#cart-items {
    margin-bottom: 20px;
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#finalizar-compra {
    padding: 10px 20px;
    background-color: #d92b2b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#finalizar-compra:hover {
    background-color: #b02424;
}


/* Tarjeta de producto */

/* === GRID PROFESIONAL TIPO FALABELLA === */

.mayo {
    max-width: 600px;
    margin: 40px auto 30px;
    padding: 0 25px;
}

.mayo h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideDown .5s forwards ease-out;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.product-grid {
    background: transparent;
    border-radius: 20px;
    padding: 15px;
    transition: .25s ease;
    border: 1px solid #eee;
}

.product-grid:hover {
    background: transparent;
    border-color: transparent;
    transform: scale(1.03);
}



/* === IMÁGENES ESTILO FALABELLA === */
.product-grid img {
    width: 100%;
    height: 170px;
    object-fit: contain;
  
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #ededed;
    cursor: pointer;
}


@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.no-results-box {
    text-align: center;
    padding: 20px;
}

.no-results-box h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 5px;
}

.no-results-box span {
    color: #290568;
    font-weight: bold;
}

.no-results-box p {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #444;
}

.suggested-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.price-container {
    display: flex;
    justify-content: center;
    left: 0;
    right: 0;
    margin: auto;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.new-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #29026b; /* rojo o el color que uses */
}


/* Estilos de los botones */

.btn-comprar {
    background-color: #000;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
}

.btn-carrito {
    background: none;
    border: none;
   border-radius: 10px;
    padding: 8px;
    cursor: pointer;
}
.btn-carrito i {
    font-size: 16px;
    color: black;
}
.btn-carrito i:hover {
    font-size: 16px;
    color: white;
}

.product-item button:hover {
    background-color: #d41983;
    color: white;
}

/* Botones */
button.add-to-cart, button.buy-now {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  button.add-to-cart {
    background-color: #00060a;
    color: white;
    margin-right: 10px;
  }
  
  button.add-to-cart:hover {
    background-color: #01070bf1;
    transform: scale(1.05);
  }
  
  button.buy-now {
    background-color: #f7f2f2;
    color: black;
    border: 1px solid black;
  }
  
  button.buy-now:hover {
    background-color: transparent;
    transform: scale(1.05);
  }
/* Sección de materiales y medidas */

.product-info select {
    width: 50%;
    padding: 6px;
    border-radius: 10px;
    background-color: white;
}

.product-info-extra p {
    font-size: 12px;
}
.product-info-extra ul li {
    font-size: 12px;
}

#product-material, #product-dimensions {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  #product-price-details {
    font-size: 18px;
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  /* Lista de beneficios */
  #benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 12px;
  }
  
  #benefits-list li {
    font-size: 12px;
    padding: 5px 0;
    color: #f01075;

  }
  
  /* Sección "Leer más" */
  #especificaciones {
    font-size: 12px;
    padding: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    display: none; /* Oculta por defecto */
  }
  
  #especificaciones.show {
    display: block;
  }
  
  #leer-mas {
    background-color: #0a0207;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #leer-mas:hover {
    background-color: transparent;
    padding: 10px;
    border: 2px solid rgb(241, 7, 178);
    color: rgb(182, 13, 13);
    font-weight: bold;
  }

  /* Sección de productos recomendados */
  .related-products {
    margin-top: 50px;
  }
  
  .related-products h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .similar-products-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .similar-product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(25% - 20px);
    text-align: center;
  }
  
  .similar-product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .similar-product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  .similar-product-item .product-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
  }
  
  .similar-product-item .product-price {
    font-size: 1.2rem;
    color: #e67e22;
    margin-bottom: 15px;
  }
  
  .similar-product-item a {
    text-decoration: none;
    color: inherit;
  }
  
  .similar-product-item a:hover .product-name {
    color: #3498db;
  }

/* === CONTENEDOR DE TALLAS === */
#product-tallas {
  text-align: center;
  margin-top: 25px;
  padding: 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

#product-tallas h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e80591;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* CONTENEDOR FLEXIBLE */
.tallas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  
}

/* === BOTONES DE TALLAS === */
.talla-btn {
  position: relative;
  background: #fafafa;
  border: 2px solid #dcdcdc;
  color: #ff6fa8;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 55px;
  text-align: center;
  -webkit-user-select: none; /* Safari 3+, iOS 3+ */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hover */
.talla-btn:hover {
  border-color: #ff6f61;
  color: #ff6f61;
  transform: translateY(-2px);
}

/* Estado activo */
.talla-btn.active {
  background: linear-gradient(135deg, #ff4081, #ff6fa8);
  color: white;
  border-color: #ff6fa8;
  box-shadow: 0 3px 10px rgba(255, 111, 97, 0.4);
  transform: scale(1.05);
}

/* Pequeño check decorativo */
.talla-btn.active::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #27ae60;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* Centrado incluso si hay una sola talla */
.tallas-container:only-child,
.tallas-container > .talla-btn:only-child {
  justify-content: center !important;
}

/* Responsive */
@media (max-width: 600px) {
  .talla-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  #product-tallas {
    padding: 15px;
  }
}

/* Contenedor */

#product-person  {
  text-align: center;
  margin-top: 25px;
  padding: 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
#product-person h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ff6fa8;
  font-weight: bold;
}
.person-container {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
/* Botón base */
.person-btn {
  position: relative;
  padding: 10px 16px;
  border: 2px solid #dcdcdc;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s ease;
  min-width: 110px;
  justify-content: center;
}
#person-buttons label {
  color: #ff6fa8;
}

/* Icono */
.person-btn i {
  font-size: 18px;
  color: #ff6fa8;
}

/* Hover */
.person-btn:hover {
  border-color: #9b59b6;
  background: #f7e9ff;
}

/* Activo */
.person-btn.active {
  border-color: #ff4081;
  background: linear-gradient(135deg, #ff4081, #ff6fa8);
  color: #ffffff;
  font-weight: 600;
}
.person-btn.active i {
  color: #ffffff;
}

/* CHECK decorativo como en tallas */
.person-btn.active::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #fff;
  color: #27ae60;
  font-size: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}


  
  /* estilos para la notificacion de detalles.html */
/* 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: 10px;
  font-size: 12px;
  width: 80;
  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;
}


/* Footer */
footer {
    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 para movil de productos similares */
@media (max-width: 768px) {
    .similar-product-item {
      width: calc(50% - 10px);
    }
  }
  
  @media (max-width: 480px) {
    .similar-product-item {
      width: calc(100% - 20px);
    }
  }
  


@media (max-width: 768px)  {
    .product-grid  {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 20px;
    }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-media a {
        font-size: 20px;
        margin: 0 5px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
    }

    .footer-links a {
        margin-bottom: 10px;
    }
}