/* Para navegadores basados en WebKit (Chrome, Safari, Opera) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Elimina el margen por defecto que a veces agregan */
}

/* Para Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Para Internet Explorer y Edge (generalmente se remueven con el -webkit-appearance en Edge moderno, pero por si acaso) */
input[type="number"] {
  appearance: textfield; /* Para navegadores modernos */
}
/* Estilos Generales del Contenedor */
.product-page-container {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 40px auto;
  margin-top: 90px;
  padding: 20px;
  background-color: #f0f2f5; /* Fondo similar al de la imagen */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sección del Producto Principal */
.main-product-section {
  display: flex;
  border-radius: 10px;
  justify-content: center;
  margin-bottom: 100px;
  max-width: 1600px;
  margin-inline: auto;
  margin-top: 180px;

  .wc-forward {
    display: none;
  }
}

.main-product-image-container {
  background-color: #ffd700; /* Color amarillo de fondo */
  background-image: var(--boranico-amarillo-bg);
  background-size: contain;
  background-repeat: repeat;
  display: flex;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 416px;
  height: 616px;
  box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.25);
}

.main-product-image {
  max-width: 80%;
  height: auto;
  display: block;
}

.main-product-details {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  justify-content: center;
}

.product-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  color: #2d385d;
}

.product-description {
  font-size: 1.3rem;
  color: #2d385d;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
  font-family: "Oswald", sans-serif;
}

.product-description .read-more {
  color: #2d385d;
  text-decoration: underline;
  font-weight: normal;
}

.price-label {
  font-size: 0.9em;
  color: #3d385d;
  margin: 0;
  font-family: "Oswald";
}

.product-price {
  font-size: 2.8em;
  font-weight: 900;
  margin-top: -12px;
  color: #3d385d;
  margin-bottom: 15px;
  font-family: "Anton SC";
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.quantity-button {
  background-color: white;
  border: 2.25px solid #ffd700;
  padding: 8px 15px;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  color: #2d385d;
  cursor: pointer;
  transition: background-color 0.2s;

  &:focus {
    background-color: white !important;
    border-color: #fece00;
    color: #2d385d;
  }
}

.quantity-button::selection {
  background-color: unset !important ;
}

.quantity-button.minus {
  border-radius: 5px 0px 0px 5px;
}

.quantity-button,
.plus {
  border-radius: 0 5px 5px 0;
}

.quantity-button:hover {
  color: #ffd700;
  background-color: unset;
  border-color: #ffd700;
}

.quantity-input {
  width: 60px;
  height: 50px !important;
  text-align: center;
  border-top: 2.25px solid #ffd700 !important;
  background-color: transparent;
  border-bottom: 2.25px solid #ffd700 !important;
  padding: 8px 0;
  font-family: "Oswald";
  font-size: 1.2em;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 14px;
  margin-bottom: 48px;
}

.buy-now-button,
.add-to-cart-button {
  padding: 10px 50px !important;
  padding-bottom: 11px !important;
  border: none;
  border-radius: 30px !important;
  white-space: nowrap;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  font-family: "Oswald" !important;
  transition: background-color 0.3s ease;
}

.buy-now-button {
  background-color: #ffd700; /* Botón oscuro */
  background-image: var(--boranico-amarillo-bg);
  background-size: cover;
  text-transform: uppercase;
  color: #fff;
  background-position: 0 0;
  transition: background-position 0.3s ease;
}

.buy-now-button:hover {
  animation: backgroundMove 17s infinite forwards;
}

@keyframes backgroundMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -500px 0;
  }
}

.add-to-cart-button {
  background-color: transparent !important; /* Botón claro */
  color: #2d385d !important;
  line-height: unset !important ;
  border: 2px solid #2d385d !important;
}

.add-to-cart-button:hover {
  background-color: #ffd700 !important;
  color: white !important;
  border: #ffd700 !important;
}

/* - ----------------------------------------------------- Sección de Productos Relacionados */

.related-products-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Espacio entre los botones de scroll y la lista */
}

.related-products-list {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Permite scroll horizontal si hay muchos productos */
  -webkit-overflow-scrolling: touch; /* Para un scroll más suave en móviles */
  scrollbar-width: none; /* Oculta la barra de desplazamiento para Firefox */
  -ms-overflow-style: none; /* Oculta la barra de desplazamiento para IE/Edge */
  flex-wrap: nowrap; /* Asegura que los ítems permanezcan en una línea */
}

.related-products-list::-webkit-scrollbar {
  display: none; /* Oculta la barra de desplazamiento para Chrome/Safari */
}

.related-product-image-container {
  background-color: #eef2f3;
  display: flex;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 266px;
  height: 324px;
  box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;

  &:hover {
    border: 1px solid #fece00;
  }
}

.related-product-item {
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .wc-forward {
    display: none;
  }
}

.related-product-image {
  max-width: 80%;
  height: auto;
}

.related-product-title {
  font-size: 1.2em;
  color: #2d385d;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  margin: 14px 0;
}

.related-product-price {
  font-size: 1.5em;
  font-weight: 900;
  margin-top: -12px;
  color: #3d385d;
  margin-bottom: 10px;
  font-family: "Anton SC";
}

.add-to-cart-button.small {
  padding: 7px 20px;
  font-size: 0.9em;
  border-radius: 20px;
}

/* Botones de Scroll */
.scroll-button {
  padding: unset !important;
  background-color: unset !important;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  cursor: pointer;
}

.left-arrow {
  transform: rotate(180deg);
}

.scroll-button:hover {
  color: #ffd700;
}

@media (max-width: 768px) {
  .main-product-section {
    flex-direction: column;

    .main-product-image-container {
      width: 90%;
      margin-inline: auto;
    }
  }

  .main-product-details {
    padding: 20px;
    margin-inline: auto;
    max-width: 90%;
  }

  .price-label {
    font-size: 1.5rem;
  }

  .product-title {
    font-size: 2.8em;
    text-align: center;
  }

  .product-price {
    font-size: 3em;
    display: flex;
    justify-content: center;
    margin-top: 2px;
  }

  .quantity-selector {
    justify-content: center;
  }

  .product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .buy-now-button,
  .add-to-cart-button {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
  }

  .related-products-list {
    overflow-x: hidden; /* Oculta los productos fuera del área visible */
    width: 280px; /* Ajusta al ancho de un solo producto (ajusta según tu diseño) */
    flex-wrap: nowrap; /* No permite que los productos se envuelvan */
    gap: 20px;
    scroll-behavior: smooth;
    /* Si usas JS para mover el carrusel, puedes usar transform: translateX(...) */
  }

  .related-product-item {
    flex: 0 0 100%; /* Cada producto ocupa el 100% del ancho del contenedor */
    max-width: 280px;
    transition: transform 0.5s;
  }

  .scroll-button {
    display: flex; /* Asegúrate de que las flechas sean visibles en mobile */
  }
}

@media (max-width: 480px) {
  .product-page-container {
    padding: 10px;
  }

  .related-product-item {
    flex: 0 0 90%; /* Un producto por fila en pantallas muy pequeñas */
  }
}
