/* ======================================================================
   PL Product Redesign — scoped to body.single-product.pl-pdp
   Mobile-first, mirrors the design ZqirVaYIJz7YoWThSlcDsw
   ====================================================================== */

body.single-product.pl-pdp {
  --pl-bg: #f5f6f8;
  --pl-surface: #fff;
  --pl-ink: #0e1729;
  --pl-ink-2: #4a5568;
  --pl-ink-3: #7a8699;
  --pl-line: #e6e9ef;
  --pl-line-2: #eef0f4;
  --pl-brand: #1f3aa3;
  --pl-brand-2: #2754d6;
  --pl-brand-soft: #e8eeff;
  --pl-accent: #fcd34d;
  --pl-accent-ink: #1c1606;
  --pl-green: #138a4f;
  --pl-red: #d4192b;
  --pl-red-deep: #a8101f;
  --pl-pyr-blue: #0033a0;
  --pl-pyr-red: #d52b1e;
  background: var(--pl-bg);
}

body.single-product.pl-pdp #content,
body.single-product.pl-pdp #primary,
body.single-product.pl-pdp .site-content,
body.single-product.pl-pdp .inside-article {
  background: var(--pl-surface);
  padding: 0;
}

body.single-product.pl-pdp .site-main { padding: 0; }
/* Mobile: phone-shell experience inside the theme's existing container */
body.single-product.pl-pdp #primary {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 110px;
}

/* Desktop: let the theme's container provide the width — no double-centering, no side gutters */
@media (min-width: 901px) {
  body.single-product.pl-pdp #primary {
    max-width: none;
    margin: 0;
    padding: 24px 0 80px;
  }
}

body.single-product.pl-pdp .product { padding: 0; }
body.single-product.pl-pdp .woocommerce-breadcrumb { display: none; }
body.single-product.pl-pdp .woocommerce-notices-wrapper { padding: 0 14px; }

body.single-product.pl-pdp button { font-family: inherit; cursor: pointer; }
body.single-product.pl-pdp img { display: block; max-width: 100%; }

/* Headings + display type */
body.single-product.pl-pdp h1,
body.single-product.pl-pdp h2,
body.single-product.pl-pdp h3,
body.single-product.pl-pdp .pl-title,
body.single-product.pl-pdp .pl-pill,
body.single-product.pl-pdp .pl-stat .num,
body.single-product.pl-pdp .pl-rs-big .n,
body.single-product.pl-pdp .pl-price-now,
body.single-product.pl-pdp .pl-stock-row .right,
body.single-product.pl-pdp .pl-study-pill,
body.single-product.pl-pdp .pl-h-title,
body.single-product.pl-pdp .pl-clinical h3,
body.single-product.pl-pdp .pl-urgency-strip,
body.single-product.pl-pdp .pl-countdown-chip,
body.single-product.pl-pdp .pl-delivery-badge {
  font-family: "Raleway", "Quicksand", system-ui, sans-serif;
}

/* ── Urgency strip ─────────────────────────────────────────────────── */
body.single-product.pl-pdp .pl-urgency-strip {
  background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
  color: #8a4a00;
  font-size: 12px; font-weight: 600;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #f3e0a8;
}
body.single-product.pl-pdp .pl-urgency-strip .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e07a00;
  box-shadow: 0 0 0 0 rgba(224,122,0,.8);
  animation: pl-pulse 1.6s infinite;
  flex-shrink: 0;
}
body.single-product.pl-pdp .pl-urgency-strip .msg { transition: opacity .3s; }
@keyframes pl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,122,0,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(224,122,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,122,0,0); }
}

/* ── Static Gallery (replaces FlexSlider entirely) ───────────────────
   Mobile-first: stack thumbs horizontally below the main image.
   Desktop overrides ↓ are inside the @media (min-width:901px) block. */
body.single-product.pl-pdp .pl-gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "main" "thumbs";
  gap: 12px;
  background: transparent;
  padding: 12px 14px 4px;
  margin: 0;
}
body.single-product.pl-pdp .pl-main-img {
  grid-area: main;
  position: relative;
  background: #f7f9fc;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pl-line-2);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
body.single-product.pl-pdp .pl-main-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
body.single-product.pl-pdp .pl-main-img img {
  width: 86%;
  max-width: 86%;
  max-height: 86%;
  height: auto;
  margin: 0 auto;
  display: block;
  transition: transform .25s;
}
body.single-product.pl-pdp .pl-main-img:hover img { transform: scale(1.04); }

body.single-product.pl-pdp .pl-thumbs {
  grid-area: thumbs;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.single-product.pl-pdp .pl-thumbs::-webkit-scrollbar { display: none; }
body.single-product.pl-pdp .pl-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1.5px solid var(--pl-line);
  background: #f3f5f9;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
body.single-product.pl-pdp .pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.single-product.pl-pdp .pl-thumb:hover { border-color: var(--pl-ink-3); }
body.single-product.pl-pdp .pl-thumb.active {
  border-color: var(--pl-brand);
  border-width: 2px;
}

/* Hide any leftover WC FlexSlider DOM if still present from cache */
body.single-product.pl-pdp .woocommerce-product-gallery { display: none !important; }

/* ── Delivery / discount badge over photo ─────────────────────────── */
body.single-product.pl-pdp .pl-delivery-badge {
  position: absolute;
  left: 24px; top: 24px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.01em; color: #fff;
  white-space: nowrap;
  background: linear-gradient(95deg, #e21b2c 0%, #b8101f 100%);
  box-shadow: 0 3px 8px rgba(212,25,43,.32), 0 1px 0 rgba(255,255,255,.4) inset;
  animation: pl-shake 4s ease-in-out infinite;
  transform-origin: 30% 50%;
}
body.single-product.pl-pdp .pl-delivery-badge .flag {
  width: 12px; height: 9px; border-radius: 1.5px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
  display: flex; flex-direction: column;
}
body.single-product.pl-pdp .pl-delivery-badge .flag span { flex: 1; display: block; }
body.single-product.pl-pdp .pl-delivery-badge .flag .r { background: var(--pl-pyr-red); }
body.single-product.pl-pdp .pl-delivery-badge .flag .w { background: #fff; position: relative; }
body.single-product.pl-pdp .pl-delivery-badge .flag .w::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, #ffd24a 0 22%, transparent 23%);
}
body.single-product.pl-pdp .pl-delivery-badge .flag .b { background: var(--pl-pyr-blue); }
body.single-product.pl-pdp .pl-delivery-badge .truck,
body.single-product.pl-pdp .pl-delivery-badge .spark { width: 12px; height: 12px; flex-shrink: 0; fill: #fff; }
@keyframes pl-shake {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-3deg); }
  92% { transform: rotate(4deg); }
  94% { transform: rotate(-3deg); }
  96% { transform: rotate(2deg); }
  98% { transform: rotate(-1deg); }
}
body.single-product.pl-pdp .pl-delivery-badge.discount {
  background: linear-gradient(95deg, #d4192b 0%, #7a0814 100%);
  animation: pl-shake 3s ease-in-out infinite, pl-glow 1.6s ease-in-out infinite;
}
@keyframes pl-glow {
  0%, 100% { box-shadow: 0 6px 16px rgba(212,25,43,.4); }
  50%      { box-shadow: 0 6px 22px rgba(255,80,80,.7); }
}

/* ── Countdown chip ────────────────────────────────────────────────── */
body.single-product.pl-pdp .pl-countdown-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
  color: #8a0e1c;
  padding: 8px 12px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600;
  margin: 8px 14px 0;
}
body.single-product.pl-pdp .pl-countdown-chip .timer {
  margin-left: auto;
  font-weight: 800;
  color: var(--pl-red);
  font-variant-numeric: tabular-nums;
  background: #fff; padding: 4px 8px; border-radius: 6px;
  border: 1px solid #ffd0d0;
  font-size: 12px;
}

/* ── Info block ────────────────────────────────────────────────────── */
body.single-product.pl-pdp div.product .summary,
body.single-product.pl-pdp .pl-info {
  padding: 16px 16px 0 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product.pl-pdp .pl-pill-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
body.single-product.pl-pdp .pl-pill {
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  background: var(--pl-brand-soft); color: var(--pl-brand);
  letter-spacing: 0.02em;
}
body.single-product.pl-pdp .pl-pill-green { background: #e6f8ee; color: var(--pl-green); }
body.single-product.pl-pdp .pl-pill-red {
  background: #fff0f1; color: var(--pl-red-deep);
  display: inline-flex; align-items: center; gap: 4px;
}
body.single-product.pl-pdp .pl-pill-red .pulse-sm {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pl-red); animation: pl-pulse 1.4s infinite;
}

body.single-product.pl-pdp .pl-title,
body.single-product.pl-pdp .product_title.entry-title {
  font-size: 22px !important; font-weight: 700 !important; line-height: 1.25 !important;
  margin: 0 0 8px !important; letter-spacing: -0.01em;
  color: var(--pl-ink);
}

body.single-product.pl-pdp .pl-rating {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--pl-ink-2);
  margin-bottom: 8px;
}
body.single-product.pl-pdp .pl-rating .stars { color: #f5b301; letter-spacing: 1px; }
body.single-product.pl-pdp .pl-rating strong { color: var(--pl-ink); }
body.single-product.pl-pdp .pl-rating a { color: var(--pl-brand); text-decoration: underline; }
body.single-product.pl-pdp .pl-rating .sold-count { color: var(--pl-green); font-weight: 600; }

/* Hide WC-default rating injected outside our block */
body.single-product.pl-pdp .summary .woocommerce-product-rating { display: none; }

body.single-product.pl-pdp .pl-price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin: 6px 0 4px;
}
body.single-product.pl-pdp .pl-price-now { display: inline-flex; align-items: baseline; gap: 10px; }
body.single-product.pl-pdp .pl-price-now,
body.single-product.pl-pdp .pl-price-now .woocommerce-Price-amount {
  font-size: 28px; font-weight: 800; color: var(--pl-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
body.single-product.pl-pdp.discount .pl-price-now { color: var(--pl-red-deep); }
body.single-product.pl-pdp .pl-price-now del .woocommerce-Price-amount,
body.single-product.pl-pdp .pl-price-now del {
  font-size: 16px; color: var(--pl-ink-3);
  font-weight: 500;
  text-decoration: line-through;
}
body.single-product.pl-pdp .pl-price-now ins { background: transparent; text-decoration: none; }
body.single-product.pl-pdp .pl-micro {
  font-size: 12px; color: #8a0e1c; font-weight: 600;
  margin-bottom: 12px;
}

/* Save tag (-33%) chip in price row */
body.single-product.pl-pdp .pl-save-tag {
  display: inline-block;
  background: var(--pl-red); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
  letter-spacing: 0.02em;
  font-family: "Raleway", sans-serif;
  vertical-align: middle;
}

/* Stock urgency */
body.single-product.pl-pdp .pl-stock-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
body.single-product.pl-pdp .pl-stock-bar {
  flex: 1; height: 6px; background: #f1f3f7; border-radius: 999px;
  margin: 0 10px; overflow: hidden;
}
body.single-product.pl-pdp .pl-stock-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #f5b301, #e07a00);
  border-radius: 999px;
}
body.single-product.pl-pdp .pl-stock-row .left { font-size: 12px; color: var(--pl-ink-2); font-weight: 600; }
body.single-product.pl-pdp .pl-stock-row .right { font-size: 11px; color: #b8101f; font-weight: 700; }

/* Highlights */
body.single-product.pl-pdp .pl-highlights {
  background: #fafbfd;
  border: 1px solid var(--pl-line-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 14px;
}
body.single-product.pl-pdp .pl-h-title {
  font-size: 12px; font-weight: 700;
  color: var(--pl-ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
body.single-product.pl-pdp .pl-highlights ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
body.single-product.pl-pdp .pl-highlights li {
  font-size: 13.5px; color: var(--pl-ink); line-height: 1.4;
  padding-left: 22px; position: relative;
}
body.single-product.pl-pdp .pl-highlights li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pl-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2l2.3 2.3 4.7-4.7' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 12px;
}

/* Social proof */
body.single-product.pl-pdp .pl-social-bar {
  display: flex; align-items: center; gap: 10px;
  background: #f0f7ff;
  border: 1px solid #cfe1ff;
  color: #0d3b8a;
  padding: 10px 12px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600;
  margin-bottom: 12px;
}
body.single-product.pl-pdp .pl-social-bar .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #1f8e3a;
  box-shadow: 0 0 0 0 rgba(31,142,58,.6);
  animation: pl-pulse-green 1.8s infinite;
  flex-shrink: 0;
}
body.single-product.pl-pdp .pl-social-bar .msg { transition: opacity .3s; }
@keyframes pl-pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(31,142,58,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(31,142,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,142,58,0); }
}

/* Quantity + add to cart */
body.single-product.pl-pdp form.cart {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin: 4px 0 12px !important;
}
body.single-product.pl-pdp form.cart .quantity {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--pl-line);
  border-radius: 14px;
  overflow: hidden; background: #fff;
  margin: 0 !important;
}
body.single-product.pl-pdp form.cart .quantity input.qty {
  width: 100% !important; height: 48px !important;
  border: 0; text-align: center;
  font-size: 16px; font-weight: 700;
  background: transparent; outline: none;
  -moz-appearance: textfield;
}
body.single-product.pl-pdp form.cart .quantity input::-webkit-outer-spin-button,
body.single-product.pl-pdp form.cart .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
body.single-product.pl-pdp form.cart .button.single_add_to_cart_button,
body.single-product.pl-pdp form.cart .single_add_to_cart_button {
  height: 48px; border-radius: 14px !important; border: 0;
  background: var(--pl-accent) !important; color: var(--pl-accent-ink) !important;
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.01em;
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 14px rgba(252, 211, 77, 0.4);
  transition: transform .12s, box-shadow .12s;
  text-transform: none !important;
  text-shadow: none;
  /* width: 100% — quitado 2026-05-09: causaba franja blanca a la derecha en producción */
}
body.single-product.pl-pdp.discount form.cart .single_add_to_cart_button {
  background: var(--pl-red) !important; color: #fff !important;
  box-shadow: 0 6px 14px rgba(212,25,43,0.4);
  animation: pl-cta-pulse 1.6s ease-in-out infinite;
}
@keyframes pl-cta-pulse {
  0%,100% { box-shadow: 0 6px 14px rgba(212,25,43,0.35); }
  50%     { box-shadow: 0 6px 22px rgba(212,25,43,0.65); }
}
body.single-product.pl-pdp form.cart .single_add_to_cart_button:active {
  transform: translateY(1px);
}

/* Trust grid */
body.single-product.pl-pdp .pl-trust {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f8f1;
  border: 1px solid #d6eed6;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}
body.single-product.pl-pdp .pl-trust .t {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #1f4f29;
}
body.single-product.pl-pdp .pl-trust .t svg {
  width: 18px; height: 18px; color: #1f4f29; flex-shrink: 0;
}

/* Divider between sections */
body.single-product.pl-pdp .pl-divider {
  height: 8px; background: #f5f6f8;
  border-top: 1px solid var(--pl-line-2);
  border-bottom: 1px solid var(--pl-line-2);
}

/* Tabs sticky */
body.single-product.pl-pdp .pl-tabs {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-top: 1px solid var(--pl-line-2);
  border-bottom: 1px solid var(--pl-line-2);
  display: flex;
}
body.single-product.pl-pdp .pl-tabs button {
  flex: 1; border: 0; background: transparent;
  padding: 12px 4px;
  font-size: 13px; font-weight: 700;
  color: var(--pl-ink-3);
  letter-spacing: 0.01em;
  position: relative;
}
body.single-product.pl-pdp .pl-tabs button.active { color: var(--pl-brand); }
body.single-product.pl-pdp .pl-tabs button.active::after {
  content: "";
  position: absolute; left: 22%; right: 22%; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--pl-brand);
}
body.single-product.pl-pdp .pl-tabs .count {
  background: #f1f3f7; color: var(--pl-ink-2);
  border-radius: 999px;
  padding: 1px 7px; font-size: 11px;
  margin-left: 4px; font-weight: 700;
}
body.single-product.pl-pdp .pl-tabs button.active .count { background: var(--pl-brand-soft); color: var(--pl-brand); }

/* Sections */
body.single-product.pl-pdp .pl-section { padding: 16px; }
body.single-product.pl-pdp .pl-section h2 {
  font-size: 17px !important; font-weight: 700 !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.01em;
}
/* .pl-scroll-target unificado más abajo (junto a .pl-related-rail) para incluir overflow-x: hidden */

/* Description card */
body.single-product.pl-pdp .pl-desc-card {
  background: #fff;
  border: 1px solid var(--pl-line-2);
  border-radius: 16px;
  padding: 16px;
  color: var(--pl-ink-2);
  line-height: 1.55;
  font-size: 14px;
}
body.single-product.pl-pdp .pl-desc-card p { margin: 0 0 12px; }
body.single-product.pl-pdp .pl-desc-card p:last-child { margin-bottom: 0; }
body.single-product.pl-pdp .pl-desc-card strong { color: var(--pl-ink); }

body.single-product.pl-pdp .pl-ingr-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin: 14px 16px;
}
body.single-product.pl-pdp .pl-ingr {
  background: var(--pl-brand-soft); color: var(--pl-brand);
  border-radius: 12px; padding: 10px 8px;
  text-align: center;
  font-size: 12px; font-weight: 700;
  line-height: 1.2;
}
body.single-product.pl-pdp .pl-ingr .pct { display: block; font-size: 16px; font-weight: 800; }

body.single-product.pl-pdp .pl-free-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 16px 14px;
}
body.single-product.pl-pdp .pl-free-list .pl-free {
  background: #fff;
  border: 1px solid var(--pl-line);
  color: var(--pl-ink);
  font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
body.single-product.pl-pdp .pl-free-list .pl-free::before {
  content: "✕"; color: var(--pl-red); font-weight: 800;
}

/* Clinical results */
body.single-product.pl-pdp .pl-clinical {
  background: #fff;
  border: 1px solid var(--pl-line-2);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 16px 0;
}
body.single-product.pl-pdp .pl-clinical h3 {
  font-size: 13px; font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pl-ink-2);
}
body.single-product.pl-pdp .pl-clinical p.sub { font-size: 12px; color: var(--pl-ink-3); margin: 0 0 14px; }
body.single-product.pl-pdp .pl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.single-product.pl-pdp .pl-stat {
  background: #f7f9fc;
  border-radius: 12px; padding: 12px;
  text-align: center;
}
body.single-product.pl-pdp .pl-stat .num {
  font-size: 26px; font-weight: 800; color: var(--pl-brand);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
body.single-product.pl-pdp .pl-stat .lbl { font-size: 11px; color: var(--pl-ink-2); margin-top: 2px; line-height: 1.3; }
body.single-product.pl-pdp .pl-study-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0f7ff; color: var(--pl-brand);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 10px;
}

/* SEO long collapse */
body.single-product.pl-pdp .pl-seo-long {
  background: #fff;
  border: 1px solid var(--pl-line-2);
  border-radius: 16px;
  margin: 12px 16px 0;
  overflow: hidden;
}
body.single-product.pl-pdp .pl-seo-toggle {
  width: 100%;
  background: transparent; border: 0;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--pl-ink);
  text-align: left;
}
body.single-product.pl-pdp .pl-seo-toggle svg { transition: transform .2s; color: var(--pl-ink-2); }
body.single-product.pl-pdp .pl-seo-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
body.single-product.pl-pdp .pl-seo-body {
  display: none;
  padding: 0 16px 16px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--pl-ink-2);
}
body.single-product.pl-pdp .pl-seo-body.open { display: block; }
body.single-product.pl-pdp .pl-seo-body h4 {
  font-size: 14px; font-weight: 700; color: var(--pl-ink);
  margin: 14px 0 6px;
}

/* Reviews */
body.single-product.pl-pdp .pl-reviews-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  background: #fff;
  border: 1px solid var(--pl-line-2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
body.single-product.pl-pdp .pl-rs-big { text-align: center; }
body.single-product.pl-pdp .pl-rs-big .n {
  font-size: 36px; font-weight: 800; line-height: 1; color: var(--pl-ink);
  letter-spacing: -0.02em;
}
body.single-product.pl-pdp .pl-rs-big .stars-big { color: #f5b301; font-size: 14px; letter-spacing: 1px; margin: 4px 0 2px; }
body.single-product.pl-pdp .pl-rs-big .total { font-size: 11px; color: var(--pl-ink-3); }
body.single-product.pl-pdp .pl-rs-bars { display: grid; gap: 4px; align-content: center; }
body.single-product.pl-pdp .pl-rs-bar {
  display: grid; grid-template-columns: 14px 1fr 30px; gap: 8px;
  align-items: center; font-size: 11px; color: var(--pl-ink-2);
}
body.single-product.pl-pdp .pl-rs-bar .track {
  height: 6px; background: #f1f3f7; border-radius: 999px; overflow: hidden;
}
body.single-product.pl-pdp .pl-rs-bar .fill { height: 100%; background: #f5b301; border-radius: 999px; }
body.single-product.pl-pdp .pl-rs-bar .pct-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Review filters (chips) */
body.single-product.pl-pdp .pl-review-filters {
  display: flex; gap: 6px; overflow-x: auto;
  margin: 0 0 12px; padding-bottom: 4px;
  scrollbar-width: none;
}
body.single-product.pl-pdp .pl-review-filters::-webkit-scrollbar { display: none; }
body.single-product.pl-pdp .pl-filter-chip {
  flex-shrink: 0;
  background: #fff; border: 1px solid var(--pl-line);
  color: var(--pl-ink-2);
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
body.single-product.pl-pdp .pl-filter-chip.active {
  background: var(--pl-ink); color: #fff; border-color: var(--pl-ink);
}

body.single-product.pl-pdp .pl-review {
  background: #fff;
  border: 1px solid var(--pl-line-2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
body.single-product.pl-pdp .pl-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
body.single-product.pl-pdp .pl-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pl-brand-soft); color: var(--pl-brand);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
body.single-product.pl-pdp .pl-review-meta { flex: 1; min-width: 0; }
body.single-product.pl-pdp .pl-review-meta .name {
  font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
body.single-product.pl-pdp .pl-verified-tag {
  background: #e6f8ee; color: var(--pl-green);
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px;
}
body.single-product.pl-pdp .pl-verified-tag svg { width: 10px; height: 10px; }
body.single-product.pl-pdp .pl-review-meta .when { font-size: 11px; color: var(--pl-ink-3); }
body.single-product.pl-pdp .pl-review .stars-r { color: #f5b301; font-size: 12px; letter-spacing: 1px; }
body.single-product.pl-pdp .pl-review .body { font-size: 13.5px; line-height: 1.5; color: var(--pl-ink); margin: 6px 0 0; }
body.single-product.pl-pdp .pl-helpful {
  display: flex; gap: 12px; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--pl-ink-3);
}
body.single-product.pl-pdp .pl-helpful button {
  background: transparent; border: 1px solid var(--pl-line);
  color: var(--pl-ink-2); font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
}
body.single-product.pl-pdp .pl-review-photos {
  display: flex; gap: 6px; margin-top: 10px;
}
body.single-product.pl-pdp .pl-review-photos .rp {
  width: 56px; height: 56px; border-radius: 8px;
  background: linear-gradient(135deg, #d8e1f0 25%, #cad5e8 25%, #cad5e8 50%, #d8e1f0 50%, #d8e1f0 75%, #cad5e8 75%);
  background-size: 8px 8px;
}

body.single-product.pl-pdp .pl-reviews-cta { text-align: center; padding: 8px 0 4px; }
body.single-product.pl-pdp .pl-reviews-link {
  display: inline-block;
  background: #fff; border: 1.5px solid var(--pl-ink);
  color: var(--pl-ink); font-weight: 700; font-size: 13px;
  padding: 10px 22px; border-radius: 999px;
  text-decoration: none;
}

/* Related rail — horizontal-scroll carousel.
   Flex (not grid) because grid-auto-columns with a percent width was leaking
   the rail's intrinsic width to its ancestors on mobile, leaving a huge blank
   strip on the right. Flex with flex-basis on the cards keeps the rail's own
   width tied to its parent and overflow-x scrolls cleanly. */
body.single-product.pl-pdp .pl-related-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 0 16px 4px;
  scrollbar-width: none;
  /* Aislamiento: evita que el ancho intrínseco del flex content expanda al body.
     Sin esto, en mobile el body adquiere scroll horizontal y el .pl-sticky-cta
     (position:fixed con right:0) queda anclado al body extendido y desaparece
     del viewport visible. */
  max-width: 100%;
  contain: layout paint;
}
body.single-product.pl-pdp .pl-related-rail::-webkit-scrollbar { display: none; }

/* Contenedor del rail: corta cualquier overflow horizontal del rail antes de que
   llegue al body. Doble red de seguridad para que el sticky CTA no se rompa. */
body.single-product.pl-pdp .pl-scroll-target {
  scroll-margin-top: 110px;
  max-width: 100%;
  overflow-x: hidden;
}
body.single-product.pl-pdp .pl-related-rail::-webkit-scrollbar { display: none; }
body.single-product.pl-pdp .pl-rel-card {
  flex: 0 0 46%;
  background: #fff;
  border: 1px solid var(--pl-line-2);
  border-radius: 14px;
  padding: 8px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
body.single-product.pl-pdp .pl-rel-card .ph {
  aspect-ratio: 1; border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f5f7fb;
  display: grid; place-items: center;
}
body.single-product.pl-pdp .pl-rel-card .ph img { width: 100%; height: 100%; object-fit: cover; }
body.single-product.pl-pdp .pl-rel-card .nm {
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  height: 32px; overflow: hidden;
}
body.single-product.pl-pdp .pl-rel-card .pr {
  font-size: 13.5px; font-weight: 800; color: var(--pl-ink);
  margin-top: 4px; font-variant-numeric: tabular-nums;
}

/* Sticky bottom CTA — replaces solcito-sticky-atc */
body.single-product .solcito-sticky-atc { display: none !important; }
body.single-product.pl-pdp .pl-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--pl-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 44px 1fr 1.5fr;
  gap: 10px; align-items: center;
  max-width: 480px; margin: 0 auto;
}
body.single-product.pl-pdp .pl-sticky-cta .mini {
  width: 44px; height: 44px; border-radius: 10px;
  background: #f5f7fb; display: grid; place-items: center;
  overflow: hidden;
}
body.single-product.pl-pdp .pl-sticky-cta .mini img { width: 80%; }
body.single-product.pl-pdp .pl-sticky-cta .body { display: grid; }
body.single-product.pl-pdp .pl-sticky-cta .pn {
  font-size: 15px; font-weight: 800; color: var(--pl-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
body.single-product.pl-pdp.discount .pl-sticky-cta .pn { color: var(--pl-red-deep); }
body.single-product.pl-pdp .pl-sticky-cta .pn .woocommerce-Price-amount { font-size: 15px; }
body.single-product.pl-pdp .pl-sticky-cta .pl {
  font-size: 11px; color: var(--pl-ink-3);
  margin-top: 1px;
}
body.single-product.pl-pdp.discount .pl-sticky-cta .pl { color: #8a0e1c; font-weight: 700; }
body.single-product.pl-pdp .pl-sticky-cta .add {
  height: 48px; border-radius: 14px; border: 0;
  background: var(--pl-accent); color: var(--pl-accent-ink);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
body.single-product.pl-pdp.discount .pl-sticky-cta .add {
  background: var(--pl-red); color: #fff;
  animation: pl-cta-pulse 1.6s ease-in-out infinite;
}

/* Cart modal — replaces solcito-added-panel */
body.single-product.pl-pdp .solcito-added-panel { display: none !important; }
body.single-product.pl-pdp .pl-cart-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none;
  align-items: flex-end; justify-content: center;
}
body.single-product.pl-pdp .pl-cart-modal.open { display: flex; }
body.single-product.pl-pdp .pl-cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 17, 17, 0.55);
  animation: pl-fadein .25s ease;
}
body.single-product.pl-pdp .pl-cart-sheet {
  position: relative;
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 22px 18px 18px;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
  animation: pl-slideup .3s cubic-bezier(.2,.9,.3,1.05);
  max-height: 92vh; overflow-y: auto;
}
@keyframes pl-fadein { from { opacity: 0 } to { opacity: 1 } }
@keyframes pl-slideup { from { transform: translateY(100%) } to { transform: translateY(0) } }
body.single-product.pl-pdp .pl-cart-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f2f3f5; border: 0; color: var(--pl-ink);
  display: grid; place-items: center;
}
body.single-product.pl-pdp .pl-cart-success {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
body.single-product.pl-pdp .pl-cart-check {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pl-green); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  animation: pl-pop .35s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes pl-pop { from { transform: scale(0) } to { transform: scale(1) } }
body.single-product.pl-pdp .cs-title { font-weight: 800; font-size: 17px; color: var(--pl-ink); }
body.single-product.pl-pdp .cs-sub { font-size: 12.5px; color: var(--pl-ink-3); margin-top: 2px; }
body.single-product.pl-pdp .pl-cart-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 12px; align-items: center;
  background: #fafbfd;
  border: 1px solid var(--pl-line-2);
  border-radius: 14px; padding: 10px 12px;
  margin-bottom: 12px;
}
body.single-product.pl-pdp .ci-img {
  width: 56px; height: 56px; border-radius: 10px;
  background: #fff; display: grid; place-items: center;
  border: 1px solid var(--pl-line-2);
  overflow: hidden;
}
body.single-product.pl-pdp .ci-img img { width: 80%; }
body.single-product.pl-pdp .ci-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--pl-ink); }
body.single-product.pl-pdp .ci-meta { font-size: 12px; color: var(--pl-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
body.single-product.pl-pdp .pl-cart-progress {
  background: #f0f7ff; border: 1px solid #cfe1ff;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
body.single-product.pl-pdp .pl-cart-progress.is-free {
  background: transparent; border: 0; padding: 2px 2px 0; margin-bottom: 8px;
}
body.single-product.pl-pdp .pl-cart-progress.is-free .cp-row { margin-bottom: 0; color: var(--pl-ink); font-size: 13.5px; }
body.single-product.pl-pdp .cp-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #0d3b8a; margin-bottom: 6px; }
body.single-product.pl-pdp .cp-icon { font-size: 14px; }
body.single-product.pl-pdp .cp-bar { height: 6px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid #cfe1ff; }
body.single-product.pl-pdp .cp-fill { height: 100%; background: linear-gradient(90deg, #1f8e3a, #5fc480); border-radius: 999px; transition: width .4s; }
body.single-product.pl-pdp .pl-cross-sell {
  border: 1px dashed #ffce12;
  background: #fffaeb;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 14px;
}
body.single-product.pl-pdp .xs-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px; color: var(--pl-ink);
}
body.single-product.pl-pdp .xs-head--free { display: flex; justify-content: flex-end; margin-bottom: 6px; }
body.single-product.pl-pdp .xs-tag {
  background: var(--pl-accent); color: var(--pl-accent-ink);
  font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
}
body.single-product.pl-pdp .xs-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
body.single-product.pl-pdp .xs-img {
  width: 44px; height: 44px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pl-line-2);
  display: grid; place-items: center; font-size: 22px;
  overflow: hidden;
}
body.single-product.pl-pdp .xs-img img { width: 100%; height: 100%; object-fit: cover; }
body.single-product.pl-pdp .xs-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
body.single-product.pl-pdp .xs-price { font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
body.single-product.pl-pdp .xs-was {
  color: var(--pl-ink-3); text-decoration: line-through; margin-right: 4px;
}
body.single-product.pl-pdp .xs-price strong { color: var(--pl-green); font-weight: 800; }
body.single-product.pl-pdp .xs-add {
  background: #fff; border: 1.5px solid var(--pl-ink);
  color: var(--pl-ink); font-weight: 700; font-size: 12px;
  padding: 7px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
}
body.single-product.pl-pdp .pl-cart-ctas {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 8px; margin-bottom: 12px;
}
body.single-product.pl-pdp .cm-secondary {
  height: 48px; border-radius: 14px;
  border: 1.5px solid var(--pl-ink);
  background: #fff; color: var(--pl-ink);
  font-weight: 700; font-size: 13.5px;
}
body.single-product.pl-pdp .cm-primary {
  height: 48px; border-radius: 14px;
  border: 0; background: var(--pl-accent); color: var(--pl-accent-ink);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 6px 14px rgba(255,206,18,0.4);
  text-decoration: none;
}
body.single-product.pl-pdp .pl-cart-trust {
  display: flex; justify-content: space-around; gap: 6px;
  font-size: 11px; color: var(--pl-ink-2);
  border-top: 1px solid var(--pl-line-2);
  padding-top: 10px;
}

/* hide some legacy elements WC adds we don't want here */
body.single-product.pl-pdp .product_meta,
body.single-product.pl-pdp .woocommerce-tabs,
body.single-product.pl-pdp .related.products,
body.single-product.pl-pdp .upsells.products,
body.single-product.pl-pdp .single_variation_wrap > .woocommerce-variation-add-to-cart > .quantity > .screen-reader-text,
body.single-product.pl-pdp .yith-wcpr-points-message,
body.single-product.pl-pdp .solcito-scroll-hint,
body.single-product.pl-pdp .solcito-trust-badges {
  display: none !important;
}

/* discount-only show/hide */
body.single-product.pl-pdp .discount-only { display: none; }
body.single-product.pl-pdp.discount .discount-only { display: inline-flex; }

/* Description grid + reviews grid wrappers — single-column on mobile */
body.single-product.pl-pdp .pl-desc-grid,
body.single-product.pl-pdp .pl-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ──────────────────────────────────────────────────────────────────────
   DESKTOP RESPONSIVE (≥901px) — based on Pagina Producto Escritorio.html
   2-col gallery+info above fold, full-width sections below
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 901px) {

  /* Container & product wrapper become a CSS grid.
     `!important` necesario porque mu-plugin solcito-css-v2 fuerza
     `display: flex !important` y `width: 48% !important` sobre .summary
     y .images; nuestra grid debe ganarle. */
  body.single-product.pl-pdp div.product,
  body.woocommerce-page.single-product.pl-pdp div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
    grid-column-gap: 36px !important;
    flex-wrap: nowrap !important;
    align-items: start;
    background: var(--pl-surface);
    padding: 0;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
  }
  /* Reset solcito legacy widths on summary and any leftover .images wrapper */
  body.single-product.pl-pdp div.product div.summary,
  body.woocommerce-page.single-product.pl-pdp div.product div.summary {
    width: auto !important;
    margin-right: 0 !important;
    float: none !important;
  }
  body.single-product.pl-pdp div.product div.images,
  body.woocommerce-page.single-product.pl-pdp div.product div.images {
    width: auto !important;
    margin-right: 0 !important;
  }

  /* Urgency strip spans full width above the grid */
  body.single-product.pl-pdp .pl-urgency-strip {
    grid-column: 1 / -1;
    border-radius: 16px 16px 0 0;
    margin: -1px -1px 0;
  }

  /* ── Static Gallery: 2-col inner grid (thumbs | main).
     76px column for vertical thumbs, 1fr for the square main image.
     Sticky disabled per user request — gallery scrolls with the page. */
  body.single-product.pl-pdp .pl-gallery {
    grid-column: 1;
    grid-row: 2;
    padding: 24px 0 24px 24px;
    margin: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "thumbs main";
    gap: 14px;
    align-items: start;
    background: transparent;
  }
  body.single-product.pl-pdp .pl-thumbs {
    grid-area: thumbs;
    flex-direction: column;
    gap: 8px;
    max-height: 540px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body.single-product.pl-pdp .pl-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }
  body.single-product.pl-pdp .pl-main-img {
    grid-area: main;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
  }
  body.single-product.pl-pdp .pl-main-img img {
    width: 78%;
    max-width: 78%;
    max-height: 78%;
  }

  /* Info / summary column on the right */
  body.single-product.pl-pdp div.product .summary,
  body.single-product.pl-pdp .pl-info {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 24px 24px 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Bigger title and price */
  body.single-product.pl-pdp .pl-title,
  body.single-product.pl-pdp .product_title.entry-title {
    font-size: 28px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em;
  }
  body.single-product.pl-pdp .pl-price-now,
  body.single-product.pl-pdp .pl-price-now .woocommerce-Price-amount {
    font-size: 38px;
  }
  body.single-product.pl-pdp .pl-price-now del .woocommerce-Price-amount,
  body.single-product.pl-pdp .pl-price-now del { font-size: 18px; }

  /* Form cart: 2-col grid (qty | add-to-cart) — mobile design has no buy-now */
  body.single-product.pl-pdp form.cart {
    grid-template-columns: 132px 1fr;
    gap: 10px;
    max-width: 100%;
  }
  body.single-product.pl-pdp form.cart .quantity,
  body.single-product.pl-pdp form.cart .quantity input.qty,
  body.single-product.pl-pdp form.cart .single_add_to_cart_button {
    height: 54px !important;
  }
  body.single-product.pl-pdp form.cart .single_add_to_cart_button {
    font-size: 15px;
  }

  /* Trust badges row (4 cols on desktop) — kept in info column per mobile design */
  body.single-product.pl-pdp .pl-trust {
    grid-template-columns: repeat(4, 1fr);
  }

  /* ── Below-fold section (tabs/desc/reviews/related) ──
     Lives OUTSIDE div.product as <section class="pl-below"> — see the
     "Pagina Producto Escritorio.html" design. Centered with a 1240px max-width
     wrapper that mirrors the design's .below / .below-wrap. */
  body.single-product.pl-pdp .pl-below {
    background: #fff;
    border-top: 1px solid var(--pl-line);
  }
  body.single-product.pl-pdp .pl-below-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 56px;
  }

  /* Tabs sticky inside .pl-below-wrap */
  body.single-product.pl-pdp .pl-tabs {
    justify-content: flex-start;
    gap: 4px;
  }
  body.single-product.pl-pdp .pl-tabs button {
    flex: 0 0 auto;
    padding: 16px 22px;
    font-size: 14px;
  }
  body.single-product.pl-pdp .pl-tabs button.active::after {
    left: 22px; right: 22px;
  }

  /* Section padding & headings */
  /* .pl-section now lives inside .pl-below-wrap (which already centers and caps
     width to 1240px), so drop the redundant max-width/margin and zero out the
     horizontal padding — the wrapper supplies it. */
  body.single-product.pl-pdp .pl-section { padding: 32px 0; max-width: none; margin: 0; }
  body.single-product.pl-pdp .pl-section h2 { font-size: 24px !important; margin: 0 0 18px !important; }

  /* ── Description grid: main (1.5fr) + clinical sidecar (1fr) side-by-side ── */
  body.single-product.pl-pdp #pl-desc.has-clinical .pl-desc-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  /* When there is NO clinical sidecar, the desc-grid is single-column. Make the
     desc-main fill the full width, and split the long description text into 2
     typographic columns so the section uses the whole screen instead of
     leaving an empty right side. */
  body.single-product.pl-pdp #pl-desc:not(.has-clinical) .pl-desc-grid {
    grid-template-columns: 1fr;
  }
  body.single-product.pl-pdp #pl-desc:not(.has-clinical) .pl-desc-main {
    width: 100%;
  }
  body.single-product.pl-pdp #pl-desc:not(.has-clinical) .pl-desc-card {
    columns: 2;
    column-gap: 32px;
  }
  body.single-product.pl-pdp #pl-desc:not(.has-clinical) .pl-desc-card > * {
    break-inside: avoid;
  }
  body.single-product.pl-pdp .pl-desc-card {
    padding: 24px;
    font-size: 15px;
    border-radius: 18px;
  }
  body.single-product.pl-pdp .pl-ingr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
  }
  body.single-product.pl-pdp .pl-ingr { padding: 14px 10px; font-size: 12.5px; }
  body.single-product.pl-pdp .pl-ingr .pct { font-size: 22px; }
  body.single-product.pl-pdp .pl-free-list { margin: 10px 0 0; }

  /* Clinical sidecar: full-height, no horizontal margin (it's now grid item) */
  body.single-product.pl-pdp #pl-desc .pl-clinical {
    margin: 0;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(160deg, #fff 0%, #f0f7ff 100%);
  }
  body.single-product.pl-pdp #pl-desc .pl-clinical h3 {
    font-size: 18px; font-weight: 800;
    text-transform: none; letter-spacing: -0.01em;
    color: var(--pl-ink);
    margin: 0 0 4px;
  }
  body.single-product.pl-pdp #pl-desc .pl-clinical p.sub { font-size: 13px; margin: 0 0 18px; }
  body.single-product.pl-pdp #pl-desc .pl-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  body.single-product.pl-pdp #pl-desc .pl-stat {
    background: #fff; border: 1px solid var(--pl-line-2);
    border-radius: 14px; padding: 14px 12px;
  }
  body.single-product.pl-pdp #pl-desc .pl-stat .num { font-size: 30px; }

  body.single-product.pl-pdp .pl-seo-long {
    margin: 20px 0 0;
    grid-column: 1 / -1;
    max-width: 1240px;
  }
  body.single-product.pl-pdp .pl-seo-body { columns: 2; column-gap: 32px; }
  body.single-product.pl-pdp .pl-seo-body p { break-inside: avoid; }
  body.single-product.pl-pdp .pl-seo-body h4 { break-after: avoid; }

  /* ── Reviews grid: sticky 320px summary + 1fr main ── */
  body.single-product.pl-pdp .pl-reviews-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  body.single-product.pl-pdp .pl-reviews-summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    position: sticky;
    top: 80px;
    margin: 0;
  }
  body.single-product.pl-pdp .pl-rs-big .n { font-size: 56px; }
  body.single-product.pl-pdp .pl-rs-big .stars-big { font-size: 18px; letter-spacing: 2px; margin: 8px 0 4px; }
  body.single-product.pl-pdp .pl-rs-big .total { font-size: 13px; margin-bottom: 16px; }
  body.single-product.pl-pdp .pl-rs-bars { gap: 5px; margin-top: 14px; }
  body.single-product.pl-pdp .pl-rs-bar { grid-template-columns: 22px 1fr 36px; gap: 8px; font-size: 12px; }
  body.single-product.pl-pdp .pl-rs-bar .track { height: 8px; }

  /* Reviews list 2-col on desktop */
  body.single-product.pl-pdp .pl-reviews-main #plReviewList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  body.single-product.pl-pdp .pl-review {
    margin-bottom: 0;
    padding: 18px;
  }
  body.single-product.pl-pdp .pl-review-filters {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
    margin-bottom: 18px;
  }
  body.single-product.pl-pdp .pl-filter-chip { padding: 8px 14px; font-size: 12.5px; }
  body.single-product.pl-pdp .pl-reviews-cta { padding: 18px 0 0; }

  /* Horizontal-scroll rail on desktop too: ~4 cards visible (each ~23%),
     remaining cards reveal as you scroll. Snap aligns cards to the left edge
     so the scroll always lands on a card boundary. */
  body.single-product.pl-pdp .pl-related-rail {
    gap: 16px;
    padding: 4px 0 12px;
    margin: 0;
    max-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.single-product.pl-pdp .pl-rel-card {
    flex: 0 0 calc((100% - 16px * 3) / 4);
    padding: 14px;
    border-radius: 16px;
    transition: transform .15s, box-shadow .15s;
  }
  body.single-product.pl-pdp .pl-rel-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(14,23,41,0.08); }
  body.single-product.pl-pdp .pl-rel-card .nm { font-size: 13.5px; height: auto; min-height: 36px; line-height: 1.35; }
  body.single-product.pl-pdp .pl-rel-card .pr { font-size: 16px; margin-top: 6px; }

  /* Sticky bottom CTA: hide on desktop (replaced by buy-now button) */
  body.single-product.pl-pdp .pl-sticky-cta { display: none; }

  /* Cart modal: side drawer on desktop */
  body.single-product.pl-pdp .pl-cart-modal {
    align-items: stretch;
    justify-content: flex-end;
  }
  body.single-product.pl-pdp .pl-cart-sheet {
    border-radius: 0;
    max-width: 460px;
    height: 100vh;
    max-height: 100vh;
    animation: pl-slidein .25s cubic-bezier(.2,.9,.3,1.05);
  }
  @keyframes pl-slidein { from { transform: translateX(100%) } to { transform: translateX(0) } }

  /* Restore generatepress padding around the article */
  body.single-product.pl-pdp .inside-article { padding: 0 !important; background: transparent; }
  body.single-product.pl-pdp .site-content { background: var(--pl-bg); }

  /* Add some bottom padding back since sticky-cta is hidden */
  body.single-product.pl-pdp #primary { padding-bottom: 24px; }
}

/* Wider screens: cap at design max width */
@media (min-width: 1280px) {
  body.single-product.pl-pdp div.product { max-width: 1240px; margin-left: auto; margin-right: auto; }
}
