/* =========================================================
   PECADO’S — PRODUCT PAGE
   Móvil primero • Diseño compacto • CTA sticky en móvil
   ========================================================= */

/* Paleta de marca (solo aquí, no invade tu main.css) */
:root {
  --gold: #b69856;
  --gold-700: #a3874a;
  --text: #2e2e2e;
  --muted: #555;
  --muted-2: #777;
  --line: #e9e9e9;
  --panel: #ffffff;
  --hero: #f4f4f4;
}

/* ---------- Layout base ---------- */
main { margin-top: 0; }
.product-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---------- Hero + Breadcrumbs ---------- */
.product-hero {
  background: var(--hero);
  padding: 0 .75rem 1rem;
}
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 1.75rem;
  margin: 1rem .75rem .5rem;
  font-family: 'Poppins', sans-serif;
  font-size: .75rem;
  color: #666;
}
.breadcrumbs a,
.breadcrumb-current {
  padding: 0 .25rem;
  line-height: 1.75rem;
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #aaa; }
.breadcrumb-current { color: var(--gold); font-weight: 600; }

.product-hero__img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  box-sizing: border-box;
}
/* HERO VERTICAL 3:4 */
.product-hero__img {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;          /* <-- vertical fijo */
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  margin: .75rem auto 0;
  transition: transform .25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.product-hero__img:hover { transform: scale(1.015); }

/* ---------- Info básica ---------- */
.product-info {
  text-align: center;
  justify-content: center;
  padding: 1.25rem 1rem .25rem;
}
.product-info__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .5rem;
}
.product-info__desc {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto;
}

/* ---------- Card de compra (selectores) ---------- */
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.selector-group { margin-bottom: 1.1rem; }
.selector-group__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .6rem;
  text-align: left;
}
.selector-group__title--mt { margin-top: 1rem; }

/* Chips de tamaño */
.chips {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: .55rem .9rem;
  border: none;
  border-radius: 10px;
  background: #f6f6f6;
  font-family: 'Red Hat Display', sans-serif;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, color .2s, transform .06s;
}
.chip:active { transform: translateY(1px); }
.chip.active { background: var(--gold); color: #fff; }
.chip--disabled {
  background: #e0e0e0;
  color: #777;
  cursor: not-allowed;
  /* opcional: bloquear clic también por CSS */
  /* pointer-events: none; */
}

.product-hint {
  margin: .35rem 0 0;
  font-family: 'Red Hat Display', sans-serif;
  font-size: .9rem;
  color: var(--muted-2);
}

/* Stepper */
.stepper {
  display: flex; align-items: center; gap: .75rem;
}
.stepper__btn {
  width: 2.5rem; height: 2.5rem;
  background: #eee; border: 1px solid #ddd;
  border-radius: 10px; font-size: 1.2rem; cursor: pointer;
}
.stepper__value {
  min-width: 2rem; text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--text);
}

/* ---------- Resumen + CTA ---------- */
.order-summary {
  background: var(--panel);
  padding: .75rem 1rem 1.25rem;
}
.order-summary__container {
  max-width: 520px;
  margin: 0 auto;
  margin-bottom: 0.25rem;
}
.order-summary__total {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: .25rem 0 1rem;
}
.order-summary__total #order-total { font-weight: 700; }

/* Botones */
.btn {
  display: block; width: 100%;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1rem; border-radius: 12px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .06s;
  padding: .95rem 1.25rem;
  text-decoration: none; text-align: center;
  margin-bottom: .75rem;
}
.btn:active { transform: translateY(1px); }

.btn--add {
  background: var(--gold); color: #fff; border: none;
}
.btn--add:hover { background: var(--gold-700); }

.btn--view {
  background: #fff; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--view:hover { background: var(--gold); color: #fff; }

/* Beneficios */
.product-benefits {
  display: flex; flex-wrap: wrap;
  gap: .5rem .75rem;
  list-style: none; padding: .25rem 0 0; margin: .25rem 0 0;
  font-family: 'Red Hat Display', sans-serif;
  margin-bottom: 0.2rem;
  font-size: .9rem; color: var(--muted);
}
.product-benefits li::before {
  content: "•"; color: var(--gold); margin-right: .4rem;
}
.product-benefits__note {
  margin: .25rem 0 0;
  font-family: 'Red Hat Display', sans-serif;
  font-size: .85rem; color: var(--muted-2);
}

/* ---------- Sticky de CTA en móvil ---------- */
.order-summary--sticky {
  position: sticky; bottom: 0;
  box-shadow: 0 -10px 24px rgba(0,0,0,.07);
  background: var(--panel);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 20;
}

/* ---------- Desktop: dos columnas limpias ---------- */
@media (min-width: 1025px) {
  .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 1.75rem;
    align-items: start;
    margin-top: 1.5rem;
  }
  .product-info { text-align: center; }

  .product-info__title {
    margin: 1rem 0rem;
    font-size: 2.5rem;

  }
  .product-info__desc {
   margin: 2rem auto; 
   max-width: 34rem;
  }
  .product-card {
    width: 100%;
    max-width: 34rem;          /* o 36rem si lo quieres un pelín más ancho */
    margin: 0 auto 1.5rem;     /* ¡auto en L/R para centrar! */
    justify-self: center;      /* por si el contenedor es grid */
    }
  
  .product-hero { padding: 0 2rem 1rem; }
  .product-details {
    margin: 0;                 /* anula margin-right: 2rem; anterior */
    padding: 0 2rem;           /* aire simétrico igual que el hero; ajusta si quieres */
  }
  .product-card { margin: 0; margin: 1rem; margin-bottom: 5rem; }
  .order-summary { background: transparent; padding: 0; }
  .order-summary--sticky { position: static; box-shadow: none; padding-bottom: 0; }
  .order-summary__container { margin-bottom: 1.5rem; }
}

/* ---------- Pequeños refinamientos ---------- */
@media (min-width: 768px) {
  .breadcrumbs { height: 2rem; font-size: .875rem; margin: 1rem 1.5rem .75rem; }
  .product-hero__img { max-width: 560px; aspect-ratio: 3 / 4;}

}

/* =========================================================
   TOAST (notificación “añadido al carrito”)
   — Reaparecen con el mismo comportamiento que en carrito —
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  animation: toast-in .3s forwards, toast-out .3s forwards 4.2s;
}
/* Tablet/Desktop: bottom-right */
@media (min-width: 768px) {
  .toast {
    left: auto; right: 24px; bottom: 24px;
    transform: none;
  }
}
/* Ocultar forzado si se requiere */
.toast--hide { display: none !important; }

/* Animaciones */
@keyframes toast-in {
  from { opacity: 0; transform: translateY(100%) translateX(-50%); }
  to   { opacity: 1; transform: translateY(0) translateX(-50%); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) translateX(-50%); }
  to   { opacity: 0; transform: translateY(100%) translateX(-50%); }
}
@media (min-width: 768px) {
  @keyframes toast-in {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(100%); }
  }
}
