/* Maquetación dos columnas para página de producto */
.product-page {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4vw;
  min-height: 100vh;
}
.product-img-col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 18em;
  max-width: 25em;
}
@media (max-width: 900px) {
  .product-page {
    flex-direction: column;
    gap: 32px;
    min-height: auto;
  }
  .product-info-col {
    align-items: center;
    min-width: 0;
    max-width: 100%;
  }
}
/* Forzar todos los textos en páginas de producto a blanco */
.product-page, .product-page * {
  color: #fff !important;
}
/* Estilos escarlata para selector de cantidad y botón añadir al carrito */
.product-qty label {
  color: #fff;
  font-weight: bold;
}

/* Miniaturas de producto debajo de la imagen principal */
.product-thumbnails {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
  justify-content: center;
}
.thumbnail {
  width: 4em;
  height: 4em;
  object-fit: cover;
  border: 2px solid #851c01;
  border-radius: 0.5em;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.thumbnail:hover {
  border-color: #d7263d;
  box-shadow: 0 0.13em 0.5em rgba(215,38,61,0.18);
}

#qty-select {
  background: #851c01;
  color: #fff;
  border: 2px solid #851c01;
  border-radius: 0.38em;
  padding: 0.38em 0.75em;
  font-size: 1rem;
  margin-right: 1em;
  margin-bottom: 0.5em;
  outline: none;
}

#qty-select:focus {
  border-color: #d7263d;
}

.add-cart-btn {
  background: linear-gradient(90deg, #630401 0%, #851c01 100%);
  color: #fff;
  border: none;
  border-radius: 0.38em;
  padding: 0.63em 1.75em;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0.13em 0.5em rgba(133,28,1,0.12);
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 0.5em;
}

.add-cart-btn:hover {
  background: linear-gradient(90deg, #630401 0%, #851c01 100%);
  box-shadow: 0 0.25em 1em rgba(215,38,61,0.18);
}
/* Centrado vertical y horizontal de la cuadrícula */
.shop-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  width: 100vw;
  overflow: hidden;
}
/* shop.css: estilos aislados para la tienda */
body {
  background: url('../img/Fondo_Main_FilosPapel_01.png') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}
.shop-title {
  text-align: center;
  color: #fff;
  font-size: 2.2rem;
  margin: 3em 0 2em 0;
  font-family: 'Courier New', Courier, monospace;
}
.product-grid {
  /* Evita el scroll accidental */
  pointer-events: auto;
  user-select: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2em;
  max-width: 90vw;
  margin: 0 auto;
  padding: 0;
  justify-items: center;
  align-items: center;
  box-sizing: border-box;
}
.product-item {
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0;
  transition: none;
}
.product-item:hover {
  /* Sin efecto hover en la imagen */
  box-shadow: none;
}
.product-item img {
  width: 100%;
  max-width: 20em;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 1em;
  background: none;
  cursor: pointer;
}
.product-item span {
  color: #1565c0;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  margin-top: 0.5em;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }
  .product-item img {
    width: 100%;
    max-width: 100vw;
    height: 11em;
    object-fit: contain;
  }
}
