/* ═══════════════════════════════════════════════════════════
   MAGIA PIURA — Página "Producto (detalle)"
   Reutiliza styles.css + productos.css (toolbar, prod-card, testimonials).
   Aquí solo el bloque de detalle y la sección "También podrías llevar".
   Frame de Figma "Nuestros productos - detalle" (node 1712:480) · BEM
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   DETALLE DEL PRODUCTO
═══════════════════════════════════════════════════════════ */
.detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.detail__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail__badge {
  align-self: flex-start;
  padding: 4px 16px;
  background: var(--color-tan);
  border-radius: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-cream);
}

.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail__tag {
  padding: 6px 16px;
  background: rgba(193, 178, 161, 0.5);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-brown);
}

.detail__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--color-brown);
  line-height: 1.2;
}

.detail__desc {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--color-brown);
  line-height: 1.5;
  max-width: 520px;
}

.detail__price {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--color-brown);
}

/* Botón grande "Agregar al carrito" (reutiliza la mecánica de .prod-card__add) */
.detail__cart {
  align-self: stretch;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  padding: 16px 28px;
  background: var(--color-tan);
  border: none;
  border-radius: 2px;
}

.detail__cart:hover {
  background: var(--color-brown);
}

.detail__cart .prod-card__add-label {
  color: var(--color-cream);
  min-width: 0;
}

.detail__cart .prod-card__step {
  color: var(--color-cream);
}

.detail__cart .prod-card__step svg {
  fill: var(--color-cream);
}

/* ═══════════════════════════════════════════════════════════
   "TAMBIÉN PODRÍAS LLEVAR…"
═══════════════════════════════════════════════════════════ */
.related {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}

.related__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-brown);
  text-align: center;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .detail {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
    padding: 32px var(--gutter);
  }
  .detail__media {
    flex: 1;
    max-width: 560px;
    position: sticky;
    top: 110px;
  }
  .detail__info {
    flex: 1;
    padding-top: 8px;
  }
}
