/* styles.css */


.product-container {
  display: flex;
  max-width: 900px;
  margin: auto;
  margin-top: 100px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-image {
  width: 300px;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  margin-bottom: 15px;
}

.image-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.image-gallery img {
  width: 80px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.image-gallery img:hover {
  transform: scale(1.1);
}

.fade {
  opacity: 0.3;
}

.image-gallery img {
  width: 80px;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.image-gallery img:hover {
  transform: scale(1.1);
}

.image-gallery img.active {
  border-color: #007185;
}


.specs-table {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
}

.specs-table th, .specs-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.specs-table th {
  background-color: #f2f2f2;
  text-align: left;
}


.product-details {
  margin-left: 30px;
  flex: 1;
}

.price {
  font-size: 24px;
  color: #e91e63;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-left: 10px;
}

.description {
  margin: 10px 0;
}

label {
  display: block;
  margin-top: 10px;
}

select, input[type="number"] {
  padding: 5px;
  margin-top: 5px;
  width: 100px;
}

.product-button {
  background-color: #007185;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-button:hover {
  background-color: #005f6b;
}

#cart-message {
  margin-top: 15px;
  padding: 10px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
}

.hidden {
  display: none;
}


.reviews {
  margin-top: 15px;
}

.shipping {
  margin-top: 10px;
  font-weight: bold;
  color: #555;
}

/* Sección extra-info */
.extra-info {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.extra-info h3 {
  margin-top: 20px;
  font-size: 20px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Tabla de especificaciones */
.specs-table {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
}

.specs-table th, .specs-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.specs-table th {
  background-color: #f2f2f2;
  text-align: left;
}

/* Secciones de texto */
.faq-section,
.featured-reviews,
.delivery-info {
  margin-top: 30px;
  line-height: 1.6;
  color: #444;
}

.faq-section strong,
.featured-reviews strong {
  color: #222;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    align-items: center;
  }

  .product-details {
    margin-left: 0;
    margin-top: 20px;
  }

  .image-gallery {
    justify-content: center;
  }

  .extra-info {
    padding: 15px;
  }
}

.breadcrumbs {
  margin-top: 20px;
  max-width: 900px;
  margin: 20px auto;
  font-size: 14px;
  color: #555;
}

.breadcrumbs a {
  color: #007185;
  text-decoration: none;
}

.breadcrumbs span {
  font-weight: bold;
}

/*Productos relacionados*/
.related-products {
  max-width: 900px;
  margin: 40px auto;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
}

.related-item {
  width: 150px;
  text-align: center;
}

.related-item img {
  width: 100%;
  border-radius: 5px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 300px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.modal-content select {
  margin: 10px 0;
  padding: 5px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.modal-content button {
  background-color: #007185;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

.modal-content button:hover {
  background-color: #005f6b;
}



/*promo banner*/
.promo-banner {
  margin-top: 60px;
  max-width: 900px;
  margin: 20px auto;
  background-color: #fffae6;
  color: #b36b00;
  padding: 10px;
  text-align: center;
  border: 1px dashed #ffd700;
  border-radius: 5px;
  font-weight: bold;
}

/*Media Queries*/
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .product-image img#main-image {
    width: 100%;
    max-width: 300px;
  }

  .image-gallery {
    flex-wrap: wrap;
    justify-content: center;
  }

  .image-gallery img {
    width: 70px;
    margin: 5px;
  }

  .product-details {
    width: 100%;
    margin-top: 20px;
    margin-left: 0;
  }

  .product-details select,
  .product-details input[type="number"],
  .product-details button {
    width: 100%;
    margin-bottom: 10px;
  }

  .extra-info,
  .related-products {
    padding: 0 15px;
  }

  .specs-table th,
  .specs-table td {
    font-size: 14px;
  }

  .related-products .product-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .related-item {
    width: 45%;
    margin-bottom: 20px;
  }

  .related-item img {
    width: 100%;
    height: auto;
  }

  .modal-content {
    width: 90%;
    max-width: 320px;
  }

  .modal-content select,
  .modal-content button {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .promo-banner {
    margin-top: 200px; /* Aumentamos el espacio para evitar superposición */
    z-index: 1;
    position: relative;
  }

  .breadcrumbs {
    margin-top: 30px;
    z-index: 1;
    position: relative;
  }
}
