/* Hero Section */
.hero-section-product {
  height: calc(100vh - 100px); /*Restamos 100px al tamaño total de la pantalla para que se muestre en la parte inferior el título del producto.*/
  background: no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 0px;
  margin-bottom: 0px;
}

.product-section {
  background-color: transparent;
  padding: 20px 20px;
  margin-top: 0px; /*Compensamos los 140px de padding para que el main no se solape con la cabecera.*/
  /*margin: 0px auto;*/
  color: #333;
}


.product-description {
  display: flex;
  width: calc(100vw - 15px);
  overflow: hidden;
  margin-bottom: 75px;
  height: 700px;
  margin-left: -20px;
}

.contenido-texto {
  flex: 1;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 100px;
  margin-right: 20px;
  margin-bottom: 20px;
  line-height: 25px;
}

.contenido-texto h1{
	width: 400px;
	margin-bottom: 25px;
}

.contenido-texto p{
	width: 400px;
	font-family: 'Gothic';
	text-align: justify;
}

.contenido-imagen {
  width: 50vw;
  min-width: 500px;
  height: calc(100vh - 120px);
  /*overflow: hidden;**/
  display: flex;
  flex-shrink: 0;
}

.contenido-imagen img {
  height: 100%;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
  object-fit: cover;
}

.product-section p.ruta{
	font-size: 0.75rem;
	font-family: 'Gothic';
	color: black;
	margin-left: 15px;
	margin-top: -30px;
	margin-bottom: 30px;
}

.product-section p.ruta a{
	font-family: 'Gothic';
	color: black;
	text-decoration: none;
	margin-bottom: 30px;
	margin-right: 5px;
	margin-left: 5px;
}

.product-section p.ruta a:hover{
	text-decoration: underline;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: left;
  padding-left: 20px;
  min-height: 60px;
  line-height: 60px;
}

/* Nueva lista de tamaños con flechas */
.product-sizes {
   font-family: 'Gothic';
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 30px;
  padding-left: 20px;
  align-items: flex-start;
  margin-top: 50px;
}

.product-sizes a{
	text-decoration: none;
	color: black;
}

.size-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.size-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.size-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  color: #5c3d2e;
  font-size: 0.9rem;
  line-height: 1;
}

.product-thumbnails {
  font-family: 'Gothic';
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  /*padding-left: 20px;*/
  margin: auto;
  text-align: center;
  margin-top: 20px;
  /*border:solid red thin;*/
}

.thumbnail-item {
  width: 360px;
  text-align: left;
  /*border: solid green thin;*/
  margin: auto;
  text-align: center;
}

.thumbnail-item img {
  width: 100%;
  object-fit: cover;
  cursor: pointer; /* para indicar que se puede hacer clic */
}

.thumbnail-item p {
  margin-top: 8px;
  font-size: 0.95rem;
	text-align: center;
}

/* Modal de imagen ampliada */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  transition: 0.3s;
}

.modal-close:hover {
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .product-sizes {
    grid-template-columns: 1fr;
    padding-left: 10px;
  }

  .product-thumbnails {
    justify-content: flex-start;
    gap: 16px;
    padding-left: 10px;
  }

  .thumbnail-item {
    width: 45%;
  }

  .product-description {
    flex-direction: column;
    height: auto;
  }

  .contenido-imagen {
    width: 100vw;
    height: 100vh; /* Altura fija de la imagen en móvil (puedes ajustarla) */
  }

  .contenido-imagen img {
	margin-left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.5rem;
    padding-left: 10px;
  }

  .size-list li {
    font-size: 0.85rem;
  }

  .thumbnail-item {
    width: 100%;
  }
}

