/* ——— Breadcrumb ligero ——— */
.product-header {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1E1E1E;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-item i {
  margin-right: 0.3rem;
  font-size: 1rem;
  vertical-align: middle;
}

.breadcrumb-item:hover {
  color: #000;
}

.breadcrumb-sep {
  color: #999;
}

.breadcrumb-current {
  color: #333;
  font-weight: 700;
}

.product-title {
  margin-top: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E1E1E;
}

.product-page {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: sans-serif;
  color: #1E1E1E;
  padding-bottom: 4rem;
}

/* Layout principal: galerías y detalles */
.product-main {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Galería */
.product-gallery {
  flex: 1 1 30rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.1);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.thumb-btn {
  border: none;
  background: none;
  padding: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.1rem 0.5rem rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.thumb-btn:hover {
  transform: translateY(-0.15rem);
}

.thumb-btn img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

/* Detalles */
.product-details {
  flex: 1 1 30rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.product-description {
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Precio */
.product-price {
  background: #f0f8ff;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* Botones de compra */
.buy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.buy-btn {
  flex: 1 1 10rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.buy-btn img,
.buy-btn i {
  width: 1.5rem;
  height: 1.5rem;
}

/* Colores por tienda */
.buy-btn.mercado {
  background: #ffe600;
  color: #1e1e1e;
}

.buy-btn.amazon {
  background: #ff9900;
}

.buy-btn.ebay {
  background: #0064d2;
}

.buy-btn.provider {
  background: #444;
}

.buy-btn:hover {
  opacity: 0.85;
  transform: translateY(-0.1rem);
}

/* Responsive */
@media (max-width: 900px) {
  .product-main {
    flex-direction: column;
  }
  .gallery-main img {
    max-height: 400px;
  }
}
