/* =========================================================
   BIOSELF — Ficha de producto individual
   Diseño propio de marca. En is_product() se dan de baja las
   hojas de WooCommerce, así que TODO se estiliza acá.
   Scope: .bioself-product
   ========================================================= */

.bioself-product {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--color-bg);
  overflow-x: clip;
}

.bioself-product .container {
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bioself-product__notices:empty {
  display: none;
}

.bioself-product__notices {
  padding-top: 1.5rem;
}

.bioself-product .woocommerce-message,
.bioself-product .woocommerce-error,
.bioself-product .woocommerce-info {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-sage);
  border-radius: 10px;
  background: var(--color-white);
  font-size: 0.9rem;
}
.bioself-product .woocommerce-error {
  border-left-color: var(--color-error);
}

/* ---------------- Secciones + reveal ---------------- */
.bioself-product__section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.bioself-product__section.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .bioself-product__section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.bioself-product__section-title {
  margin: 0.4rem 0 2.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-deepforest);
}

/* =========================================================
   1. HERO — galería + panel
   ========================================================= */
.bioself-product__hero {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.bioself-product__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ---------------- Galería (stack editorial) ---------------- */
.bioself-product__gallery {
  position: relative;
}

.bioself-gallery__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bioself-badge {
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-deepforest);
}
.bioself-badge--sale {
  background: var(--color-sage);
  color: var(--color-deepforest);
}
.bioself-badge--out {
  background: var(--color-dark-soft);
}

.bioself-gallery__stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

/* La primera imagen y cada 3ª ocupan las dos columnas (mosaico irregular). */
.bioself-gallery__item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(24px) scale(1.03);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
}

.bioself-gallery__item.is-in {
  opacity: 1;
  transform: none;
}

.bioself-gallery__item:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.bioself-gallery__item img,
.bioself-gallery__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.bioself-gallery__item:nth-child(3n + 1) img {
  aspect-ratio: 4 / 3;
}

.bioself-gallery__dots {
  display: none;
}

/* ---------------- Panel de compra ---------------- */
.bioself-product__panel-inner {
  position: sticky;
  top: 1.75rem;
  display: flex;
  flex-direction: column;
}

.bioself-product__cat {
  color: var(--color-dark-soft) !important;
  text-decoration: none;
}

.bioself-product__title {
  margin: 0.6rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-deepforest);
}

.bioself-product__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  color: var(--color-dark-soft);
  text-decoration: none;
}

.bioself-product__price {
  margin: 0.25rem 0 1.1rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-dark);
}

.bioself-product__price del {
  margin-right: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.bioself-product__price ins {
  text-decoration: none;
}

.bioself-product__excerpt {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--color-dark-soft);
}

.bioself-product__excerpt p {
  margin: 0 0 0.75rem;
}

.bioself-product__specs {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 0.5rem;
}

.bioself-product__specs li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-dark);
}

.bioself-product__specs span {
  flex: none;
  width: 5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-top: 1px;
}

/* ---------------- Add to cart (WC form) ---------------- */
.bioself-product__cart {
  margin-top: 1.5rem;
}

.bioself-product__cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin: 0;
}

.bioself-product__cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  overflow: hidden;
}

.bioself-product__cart .quantity label {
  display: none;
}

.bioself-product__cart .qty {
  width: 56px;
  height: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-dark);
  -moz-appearance: textfield;
  appearance: textfield;
}

.bioself-product__cart .qty::-webkit-outer-spin-button,
.bioself-product__cart .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bioself-product__cart .single_add_to_cart_button {
  flex: 1;
  min-width: 12rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--color-deepforest);
  border-radius: 999px;
  background: var(--color-deepforest);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bioself-product__cart .single_add_to_cart_button:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

.bioself-product__cart .single_add_to_cart_button.loading {
  opacity: 0.7;
  cursor: wait;
}

.bioself-product__cart .single_add_to_cart_button.disabled,
.bioself-product__cart .single_add_to_cart_button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Variaciones */
.bioself-product__cart .variations {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.5rem;
}

.bioself-product__cart .variations th,
.bioself-product__cart .variations td {
  display: block;
  padding: 0;
  text-align: left;
}

.bioself-product__cart .variations th {
  margin: 0.75rem 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark-soft);
}

.bioself-product__cart .variations select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  font-size: 0.95rem;
  color: var(--color-dark);
}

.bioself-product__cart .reset_variations {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-dark-soft);
}

.bioself-product__cart .woocommerce-variation-price {
  width: 100%;
  margin: 0.5rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
}

.bioself-product__cart .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

/* ---------------- Video del producto (debajo del CTA) ---------------- */
.bioself-panel-video {
  margin-top: 1.85rem;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.bioself-panel-video.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .bioself-panel-video {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.bioself-panel-video__tag {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.bioself-panel-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-deepforest);
  box-shadow: 0 20px 46px rgba(54, 56, 43, 0.2);
}
.bioself-panel-video__frame video,
.bioself-panel-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Barra de envío gratis dentro del panel */
.bioself-product__panel-inner .bioself-shipping-bar {
  margin: 1.1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: center;
}
.bioself-product__panel-inner .bioself-shipping-bar__track {
  max-width: none;
}

/* WhatsApp */
.bioself-product__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bioself-product__wa svg {
  width: 18px;
  height: 18px;
}
.bioself-product__wa:hover {
  border-color: var(--color-deepforest);
  color: var(--color-deepforest);
}

/* Claims */
.bioself-product__claims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}
.bioself-product__claim {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark-soft);
}

.bioself-product__meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.bioself-product__meta .stock {
  margin: 0;
}
.bioself-product__meta .stock.out-of-stock {
  color: var(--color-error);
}

/* Star rating (reconstruido, sin la fuente de WC) */
.bioself-product .star-rating {
  position: relative;
  display: inline-block;
  width: 5.6em;
  height: 1em;
  font-size: 0.95rem;
  line-height: 1;
  overflow: hidden;
  vertical-align: middle;
}
.bioself-product .star-rating::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  inset: 0;
  letter-spacing: 0.12em;
  color: var(--color-border);
}
.bioself-product .star-rating > span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-size: 0;
}
.bioself-product .star-rating > span::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  inset: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--color-deepforest);
}

/* =========================================================
   BENEFICIOS
   ========================================================= */
.bioself-product-benef {
  background: var(--color-white);
}
.bioself-product-benef__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  max-width: 52rem;
}
.bioself-product-benef__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-dark);
}
.bioself-product-benef__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-deepforest);
}

/* =========================================================
   FÓRMULA — tarjetas de ingredientes que giran
   ========================================================= */
.bioself-product-formula {
  text-align: center;
}
.bioself-formula__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}
.bioself-ingrediente {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  perspective: 1200px;
  outline: none;
}
.bioself-ingrediente__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease);
}
.bioself-ingrediente:hover .bioself-ingrediente__inner,
.bioself-ingrediente:focus .bioself-ingrediente__inner,
.bioself-ingrediente:focus-within .bioself-ingrediente__inner {
  transform: rotateY(180deg);
}
.bioself-ingrediente__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.bioself-ingrediente__face--front {
  border-top: 3px solid var(--color-sage);
}
.bioself-ingrediente--taupe .bioself-ingrediente__face--front { border-top-color: var(--color-taupe); }
.bioself-ingrediente--nature .bioself-ingrediente__face--front { border-top-color: #9aa886; }
.bioself-ingrediente--deepforest .bioself-ingrediente__face--front { border-top-color: var(--color-deepforest); }
.bioself-ingrediente__face--back {
  transform: rotateY(180deg);
  background: var(--color-deepforest);
  border-color: var(--color-deepforest);
  color: var(--color-white);
  justify-content: center;
  gap: 0.5rem;
}
.bioself-ingrediente__initial {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-sage);
}
.bioself-ingrediente--taupe .bioself-ingrediente__initial { color: var(--color-taupe); }
.bioself-ingrediente--nature .bioself-ingrediente__initial { color: #9aa886; }
.bioself-ingrediente--deepforest .bioself-ingrediente__initial { color: var(--color-deepforest); }
.bioself-ingrediente__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}
.bioself-ingrediente__face--front .bioself-ingrediente__name {
  color: var(--color-deepforest);
}
.bioself-ingrediente__pct {
  align-self: flex-end;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-dark-soft);
}
.bioself-ingrediente__func {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(244, 240, 234, 0.88);
}

/* =========================================================
   ANTES / DESPUÉS
   ========================================================= */
.bioself-product-ba {
  background: var(--color-taupe);
  text-align: center;
}
.bioself-product-ba .bioself-product__section-title {
  color: var(--color-deepforest);
}
.bioself-product-ba__frame {
  max-width: 46rem;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(54, 56, 43, 0.18);
}
.bioself-product-ba__frame .bioself-compare {
  aspect-ratio: 3 / 2;
}

/* =========================================================
   CÓMO USAR — timeline
   ========================================================= */
.bioself-product-ritual {
  background: var(--color-white);
}
.bioself-ritual__steps {
  list-style: none;
  counter-reset: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
  max-width: 40rem;
}
.bioself-ritual__steps::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--color-border);
}
.bioself-ritual__step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.bioself-ritual__step.is-in {
  opacity: 1;
  transform: none;
}
.bioself-ritual__num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-deepforest);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
}
.bioself-ritual__step p {
  margin: 0;
  padding-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
}

/* =========================================================
   ACORDEÓN (detalle técnico)
   ========================================================= */
.bioself-product-detail {
  background: var(--color-white);
}
.bioself-accordion {
  max-width: 46rem;
  border-top: 1px solid var(--color-border);
}
.bioself-accordion__item {
  border-bottom: 1px solid var(--color-border);
}
.bioself-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-deepforest);
  text-align: left;
}
.bioself-accordion__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}
.bioself-accordion__icon::before,
.bioself-accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--color-deepforest);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.bioself-accordion__icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}
.bioself-accordion__icon::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}
.bioself-accordion__item.is-open .bioself-accordion__icon::after {
  transform: scaleY(0);
}
.bioself-accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.bioself-accordion__item.is-open .bioself-accordion__body {
  grid-template-rows: 1fr;
}
.bioself-accordion__content {
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-dark);
}
.bioself-accordion__content > *:first-child { margin-top: 0; }
.bioself-accordion__item.is-open .bioself-accordion__content {
  padding-bottom: 1.4rem;
}
.bioself-accordion__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bioself-accordion__content th,
.bioself-accordion__content td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.bioself-accordion__content th {
  width: 30%;
  color: var(--color-dark-soft);
  font-weight: 600;
}

/* =========================================================
   RESEÑAS
   ========================================================= */
.bioself-product-reviews {
  background: var(--color-bg);
}
.bioself-product-reviews #reviews #comments > h2 {
  display: none;
}
.bioself-product-reviews .commentlist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}
.bioself-product-reviews .commentlist li.review {
  padding: 1.4rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.bioself-product-reviews .comment_container {
  display: flex;
  gap: 1rem;
}
.bioself-product-reviews .comment_container img.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  margin: 0;
  position: static;
}
.bioself-product-reviews .comment-text {
  flex: 1;
  min-width: 0;
}
.bioself-product-reviews .comment-text .star-rating {
  margin-bottom: 0.4rem;
}
.bioself-product-reviews .comment-text .meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.bioself-product-reviews .comment-text .meta strong {
  color: var(--color-dark);
  font-family: var(--font-heading);
}
.bioself-product-reviews .comment-text .description p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-dark);
}
.bioself-product-reviews #review_form_wrapper {
  max-width: 46rem;
  margin-top: 2rem;
}
.bioself-product-reviews #respond {
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.bioself-product-reviews #reply-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-deepforest);
}
.bioself-product-reviews #respond p {
  margin: 0 0 1rem;
}
.bioself-product-reviews #respond label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark-soft);
}
.bioself-product-reviews #respond input[type="text"],
.bioself-product-reviews #respond input[type="email"],
.bioself-product-reviews #respond textarea,
.bioself-product-reviews #respond select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
}
.bioself-product-reviews #respond .form-submit input {
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--color-deepforest);
  border-radius: 999px;
  background: var(--color-deepforest);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.bioself-product-reviews .comment-form-rating .stars a {
  color: var(--color-taupe);
}
.bioself-product-reviews .comment-form-rating .stars.selected a.active ~ a {
  color: var(--color-border);
}
.bioself-product-reviews .woocommerce-noreviews {
  color: var(--color-text-muted);
}

/* =========================================================
   RELACIONADOS
   ========================================================= */
.bioself-product-related {
  background: var(--color-white);
}
.bioself-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.bioself-related__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-dark);
}
.bioself-related__media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 4 / 5;
  margin-bottom: 0.75rem;
}
.bioself-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.bioself-related__card:hover .bioself-related__media img {
  transform: scale(1.04);
}
.bioself-related__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.bioself-related__price {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--color-dark-soft);
}
.bioself-related__price del {
  color: var(--color-text-muted);
  margin-right: 0.35rem;
}
.bioself-related__price ins {
  text-decoration: none;
}

/* =========================================================
   BARRA FIJA MOBILE
   ========================================================= */
.bioself-product__stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(54, 56, 43, 0.1);
}
.bioself-product__stickybar-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bioself-product__stickybar-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.bioself-product__stickybar .button-primary {
  flex: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.bioself-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(54, 56, 43, 0.96);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bioself-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.bioself-lightbox__fig {
  margin: 0;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
}
.bioself-lightbox__fig img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  animation: bioself-lb-in 0.3s var(--ease);
}
@keyframes bioself-lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
.bioself-lightbox__close,
.bioself-lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(244, 240, 234, 0.4);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.bioself-lightbox__close:hover,
.bioself-lightbox__nav:hover {
  background: rgba(244, 240, 234, 0.15);
}
.bioself-lightbox__close {
  top: 4vw;
  right: 4vw;
}
.bioself-lightbox__nav--prev { left: 3vw; }
.bioself-lightbox__nav--next { right: 3vw; }
.bioself-lightbox__count {
  position: absolute;
  bottom: 4vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 234, 0.75);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .bioself-product__hero-inner {
    grid-template-columns: 1fr;
  }
  .bioself-product__panel-inner {
    position: static;
  }
  .bioself-formula__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bioself-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  /* Galería como carrusel horizontal con snap. */
  .bioself-gallery__stack {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bioself-gallery__stack::-webkit-scrollbar {
    display: none;
  }
  .bioself-gallery__item,
  .bioself-gallery__item:nth-child(3n + 1) {
    flex: 0 0 82%;
    grid-column: auto;
    scroll-snap-align: center;
  }
  .bioself-gallery__item img {
    aspect-ratio: 1 / 1;
  }
  .bioself-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
  }
  .bioself-gallery__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
  }
  .bioself-gallery__dot.is-active {
    background: var(--color-deepforest);
  }

  .bioself-product__stickybar {
    display: flex;
  }
  .bioself-product__stickybar[hidden] {
    display: none;
  }

  .bioself-product-benef__list {
    grid-template-columns: 1fr;
  }
  .bioself-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bioself-product__cart form.cart {
    gap: 0.6rem;
  }
  .bioself-product__cart .single_add_to_cart_button {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .bioself-formula__grid {
    grid-template-columns: 1fr;
    max-width: 20rem;
    margin-inline: auto;
  }
}
