/* ════════════════════════════════════════════════════════════════════════════
   PLANTAS EXPRESS — components.css
   Header, slider, trust strip, categorías, badges, footer, FAB.
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── Header ──────────────────────────────────────────────────────────── */
.pe-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pe-paper);
  border-bottom: 1px solid rgba(24, 35, 26, 0.1);
  margin-top: 0 !important; /* evita franja crema encima del banner en páginas de tienda */
}

/* El banner verde siempre pegado arriba en TODAS las páginas (home, tienda,
   categoría, producto, carrito…). Neutraliza cualquier margen superior que el
   tema padre o WooCommerce pudieran inyectar solo en páginas de la tienda. */
body.woocommerce .pe-header,
body.woocommerce-page .pe-header,
body.pe-shop .pe-header,
body.pe-product .pe-header,
body.archive .pe-header { margin-top: 0 !important; }

.pe-banner:first-child { margin-top: 0 !important; }

/* Header sticky debajo de la barra de administrador de WordPress (solo la ve
   quien está logueado en wp-admin; al visitante no le aparece). */
.admin-bar .pe-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .pe-header { top: 46px; } }

.pe-banner {
  background: var(--pe-green-700);
  color: var(--pe-cream);
}
.pe-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem; padding: 0.5rem 0;
  font-size: 0.8125rem;
}
.pe-banner__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.pe-banner__icon { flex-shrink: 0; }
.pe-banner__sep { opacity: 0.4; }
.pe-banner__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; margin-left: 0.25rem; }
.pe-banner__link:hover { color: var(--pe-butter); }

.pe-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 4rem;
}
@media (min-width: 1024px) { .pe-header__bar { height: 5rem; } }

.pe-header__brand { flex-shrink: 0; }
.pe-logo--header { height: 2.25rem; width: auto; display: block; }
@media (min-width: 1024px) { .pe-logo--header { height: 2.5rem; } }

.pe-nav { display: none; }
@media (min-width: 1024px) {
  .pe-nav--desktop { display: flex; align-items: center; gap: 1.75rem; }
}

.pe-nav__list { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.75rem; }
/* Top-level items stay static so the mega panel anchors to the sticky header
   (full-width), not to the narrow <li>. */
.pe-nav__list > li { position: static; }
.pe-nav__list a {
  font-size: 0.875rem;
  color: rgba(24, 35, 26, 0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex; align-items: center;
}
.pe-nav__list a:hover { color: var(--pe-ink); }
.pe-nav__chevron { margin-left: 0.3rem; opacity: 0.6; transition: transform 0.2s; }
.pe-nav__item--has-mega > a[aria-expanded="true"] .pe-nav__chevron { transform: rotate(180deg); }

/* ─── Header search panel ────────────────────────────────────────────── */
.pe-search-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--pe-paper);
  border-top: 1px solid rgba(24, 35, 26, 0.1);
  box-shadow: 0 24px 48px -24px rgba(31, 51, 32, 0.22);
  z-index: 60;
  padding: 1.25rem 0;
}
.pe-search-panel[hidden] { display: none; }
.pe-search-form { display: flex; align-items: center; gap: 0.75rem; }
.pe-search-form__icon { color: rgba(24, 35, 26, 0.5); flex-shrink: 0; }
.pe-search-input {
  flex: 1; min-width: 0;
  border: none; background: transparent;
  font-family: var(--pe-font-sans); font-size: 1.125rem;
  color: var(--pe-ink); padding: 0.5rem 0;
}
.pe-search-input::placeholder { color: rgba(24, 35, 26, 0.4); }
.pe-search-input:focus { outline: none; }
.pe-search-go {
  flex-shrink: 0;
  background: var(--pe-ink); color: var(--pe-cream) !important;
  border: none; border-radius: var(--pe-radius-pill, 999px);
  padding: 0.55rem 1.4rem; font-weight: 600; font-size: 0.875rem;
  cursor: pointer; transition: background-color 0.18s;
}
.pe-search-go:hover { background: var(--pe-green-700); }
.pe-search-close {
  flex-shrink: 0; background: transparent; border: none; cursor: pointer;
  color: rgba(24, 35, 26, 0.5); padding: 0.4rem; display: inline-grid; place-items: center;
}
.pe-search-close:hover { color: var(--pe-ink); }

.pe-header__actions { display: flex; align-items: center; gap: 0.25rem; }
.pe-icon-btn {
  width: 2.5rem; height: 2.5rem;
  display: inline-grid; place-items: center;
  background: transparent; border: none; cursor: pointer;
  border-radius: var(--pe-radius-pill, 999px);
  color: var(--pe-ink);
  transition: background-color 0.2s;
  padding: 0;
  position: relative;
}
.pe-icon-btn:hover { background: var(--pe-cream); }
.pe-icon-btn--account { display: none; }
@media (min-width: 640px) { .pe-icon-btn--account { display: inline-grid; } }
.pe-icon-btn--mobile { display: inline-grid; }
@media (min-width: 1024px) { .pe-icon-btn--mobile { display: none; } }

.pe-cart-count {
  position: absolute; top: 0.125rem; right: 0.125rem;
  min-width: 1.125rem; height: 1.125rem;
  padding: 0 0.25rem;
  display: inline-grid; place-items: center;
  background: var(--pe-butter); color: var(--pe-ink);
  font-size: 0.625rem; font-weight: 700;
  border-radius: var(--pe-radius-pill, 999px);
  font-feature-settings: "tnum";
}

/* Mobile menu */
.pe-mobile-menu {
  display: block;
  border-top: 1px solid rgba(24, 35, 26, 0.1);
  padding: 0.75rem 1rem;
  max-height: 75vh;
  overflow-y: auto;
}
.pe-mobile-menu[hidden] { display: none; }
.pe-mobile-menu__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.pe-mobile-menu__list a {
  display: block; padding: 0.875rem 0.5rem;
  font-size: 0.875rem; color: rgba(24, 35, 26, 0.85); text-decoration: none;
  border-bottom: 1px solid rgba(24, 35, 26, 0.05);
}

/* ─── Slider ──────────────────────────────────────────────────────────── */
.pe-slider {
  width: 100%;
  background: var(--pe-green-900);
}
.pe-slider__swiper { width: 100%; }
.pe-slide {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px; max-height: 640px;
  overflow: hidden;
}
@media (min-width: 1024px) { .pe-slide { aspect-ratio: 21 / 8; } }

.pe-slide__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.pe-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(31, 51, 32, 0.65), rgba(31, 51, 32, 0.35), rgba(31, 51, 32, 0.1));
}
.pe-slide__inner {
  position: absolute; inset: 0;
  display: flex; align-items: center;
}
.pe-slide__copy {
  max-width: 36rem;
  color: var(--pe-cream);
}
.pe-slide__eyebrow { color: var(--pe-butter); }
.pe-slide__headline {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  margin: 1.25rem 0 0;
  color: var(--pe-cream);
}
.pe-slide__subhead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin: 1.25rem 0 0;
  max-width: 32rem; line-height: 1.55;
  color: rgba(244, 236, 216, 0.9);
}
.pe-slide__cta { margin-top: 2rem; }

/* ─── Light variant: ilustraciones / banners promocionales con fondo claro ─
   El overlay verde se reemplaza por un wash claro y el texto cambia a tinta
   oscura para que sea legible sobre la imagen sin perder contraste.
   ──────────────────────────────────────────────────────────────────────── */
.pe-slide--light .pe-slide__bg { object-fit: cover; }
.pe-slide--light .pe-slide__overlay {
  background: linear-gradient(to right, var(--pe-paper) 0%, var(--pe-paper) 45%, transparent 50%);
}
.pe-slide--light .pe-slide__copy { color: var(--pe-ink); }
.pe-slide--light .pe-slide__eyebrow { color: var(--pe-green-700); }
.pe-slide--light .pe-slide__headline { color: var(--pe-ink); }
.pe-slide--light .pe-slide__subhead { color: rgba(24, 35, 26, 0.75); }

/* ─── Plain variant: foto SIN filtros — la imagen se ve tal cual (sin overlay
   verde). El texto se mantiene cream y se le añade una sombra suave para que
   siga legible sobre cualquier foto, sin alterar la imagen.
   ──────────────────────────────────────────────────────────────────────── */
.pe-slide--plain .pe-slide__overlay { display: none; }
.pe-slide--plain .pe-slide__copy { color: var(--pe-cream); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.pe-slide--plain .pe-slide__eyebrow,
.pe-slide--plain .pe-slide__headline,
.pe-slide--plain .pe-slide__subhead { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }

.pe-slider__dots {
  position: absolute; bottom: 1.25rem; left: 0; right: 0;
  z-index: 20;
  display: flex; justify-content: center; gap: 0.5rem;
}
.swiper-pagination-bullet {
  width: 2.5rem; height: 4px; border-radius: 0; /* rectangular, sin puntas redondeadas */
  background: rgba(24, 35, 26, 0.28) !important; /* track, sirve sobre fondo claro Y oscuro */
  opacity: 1 !important;
  margin: 0 !important;
  position: relative; overflow: hidden;
  transition: background-color 0.3s;
}
/* La barra activa se "llena" durante los 6s del autoplay → muestra cuándo pasa
   al siguiente slide (estilo stories). El relleno se reinicia en cada slide. */
.swiper-pagination-bullet-active::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--pe-butter);
  transform: scaleX(0); transform-origin: left center;
  animation: pe-slide-fill 6s linear forwards;
}
@keyframes pe-slide-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .swiper-pagination-bullet-active::after { animation: none; transform: scaleX(1); }
}

/* ─── Trust strip ─────────────────────────────────────────────────────── */
.pe-trust {
  background: var(--pe-green-700); color: var(--pe-cream);
}
.pe-trust__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding: 3.5rem 0;
}
@media (min-width: 640px) { .pe-trust__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pe-trust__grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding: 4rem 0; } }
.pe-trust__icon { color: var(--pe-butter); }
.pe-trust__title {
  font-family: var(--pe-font-display);
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--pe-cream);
  margin: 0.75rem 0 0.5rem;
}
.pe-trust__body { font-size: 0.875rem; color: rgba(244, 236, 216, 0.85); margin: 0; line-height: 1.55; }

/* ─── Generic section ────────────────────────────────────────────────── */
.pe-section { padding: 4rem 0; }
@media (min-width: 1024px) { .pe-section { padding: 6rem 0; } }
.pe-section--tight { padding: 3rem 0; }
@media (min-width: 1024px) { .pe-section--tight { padding: 4rem 0; } }
.pe-section--cream { background: var(--pe-cream); }
.pe-section--green { background: var(--pe-green-700); color: var(--pe-cream); }
.pe-section--ink { background: var(--pe-green-900); color: var(--pe-cream); }

.pe-section__head {
  display: grid; gap: 1.5rem;
  margin-bottom: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .pe-section__head { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
}
.pe-section__head--simple {
  display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.pe-section__lede { font-size: 1rem; color: rgba(24, 35, 26, 0.65); margin: 0; max-width: 56ch; line-height: 1.55; }
@media (min-width: 1024px) { .pe-section__lede { font-size: 1.125rem; } }
.pe-section__link { font-size: 0.875rem; color: var(--pe-ink); text-decoration: none; }
.pe-section__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ─── Categories ─────────────────────────────────────────────────────── */
.pe-cats {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pe-cats { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.pe-cat {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0 var(--pe-radius-l, 22px) var(--pe-radius-l, 22px) 0;
  background: var(--pe-ink);
  text-decoration: none; color: var(--pe-cream);
}
.pe-cat__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pe-cat:hover .pe-cat__bg { transform: scale(1.05); }
.pe-cat__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31, 51, 32, 0.65), rgba(31, 51, 32, 0.15) 40%, transparent);
}
.pe-cat__copy {
  position: absolute; inset: auto 0 0 0;
  padding: 1.25rem;
}
@media (min-width: 1024px) { .pe-cat__copy { padding: 1.5rem; } }
.pe-cat__eyebrow { font-size: 0.75rem; color: var(--pe-cream); opacity: 0.8; }
.pe-cat__title {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 1.5rem; line-height: 1.15;
  color: var(--pe-cream);
  margin: 0.5rem 0 0;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .pe-cat__title { font-size: 1.875rem; } }
.pe-cat__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  background: var(--pe-butter);
  color: var(--pe-green-900);
  font-size: 0.75rem; font-weight: 600;
  border-radius: var(--pe-radius-pill, 999px);
  letter-spacing: 0.01em;
  transition: background 200ms ease, transform 200ms ease;
}
.pe-cat:hover .pe-cat__cta { background: var(--pe-cream); transform: translateX(2px); }

/* ─── Sale & low-stock badges (rendered by functions.php hooks) ──────── */
.pe-sale-badge {
  display: inline-flex; align-items: center;
  background: var(--pe-error); color: var(--pe-cream);
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem; font-weight: 800;
  border-radius: var(--pe-radius-pill, 999px);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(166, 74, 58, 0.25);
  text-transform: uppercase;
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
}
.pe-low-stock-badge {
  display: inline-flex; align-items: center;
  background: var(--pe-terra); color: var(--pe-cream);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem; font-weight: 600;
  border-radius: var(--pe-radius-pill, 999px);
  position: absolute; top: 3rem; left: 0.75rem; z-index: 2;
}
.pe-feature-badge {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  display: inline-flex; align-items: center;
  background: rgba(244, 236, 216, 0.95); color: var(--pe-ink);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem; font-weight: 500;
  border-radius: var(--pe-radius-pill, 999px);
}
.woocommerce ul.products li.product { position: relative; }

/* ─── Quiz CTA ───────────────────────────────────────────────────────── */
.pe-quizcta {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .pe-quizcta { grid-template-columns: 7fr 5fr; gap: 3rem; }
  .pe-quizcta > .pe-btn { justify-self: end; }
}
.pe-quizcta__body { font-size: 1rem; color: rgba(244, 236, 216, 0.9); max-width: 56ch; margin: 1rem 0 0; line-height: 1.55; }

/* ─── B2B band ───────────────────────────────────────────────────────── */
.pe-b2b {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .pe-b2b { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.pe-b2b__copy .pe-btn { margin-top: 1.5rem; }
.pe-b2b__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pe-b2b__item {
  background: var(--pe-cream); padding: 1.25rem;
  border-radius: var(--pe-radius-l, 22px);
}
.pe-b2b__item h3 {
  font-family: var(--pe-font-display);
  font-size: 1rem !important; font-weight: 600 !important;
  margin: 0;
}
.pe-b2b__item p { font-size: 0.8125rem; color: rgba(24, 35, 26, 0.65); margin: 0.5rem 0 0; line-height: 1.55; }

/* ─── Closer (3 cards) ───────────────────────────────────────────────── */
.pe-closer__head { text-align: center; margin: 0 auto 3rem; max-width: 36rem; }
.pe-closer__grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .pe-closer__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.pe-closer__card {
  display: flex; flex-direction: column;
  padding: 2rem;
  border-radius: var(--pe-radius-l, 22px);
  text-decoration: none;
}
.pe-closer__card h3 {
  font-family: var(--pe-font-display);
  font-size: 1.25rem !important; font-weight: 600 !important;
  margin: 1rem 0 0.75rem;
  line-height: 1.25;
}
.pe-closer__card p { font-size: 0.875rem; line-height: 1.55; flex: 1; margin: 0; }
.pe-closer__card--green { background: var(--pe-green-700); color: var(--pe-cream); }
.pe-closer__card--cream { background: var(--pe-cream); color: var(--pe-ink); transition: background-color 0.2s; }
.pe-closer__card--cream:hover { background: var(--pe-butter); }
.pe-closer__card--butter { background: var(--pe-butter); color: var(--pe-ink); transition: background-color 0.2s; }
.pe-closer__card--butter:hover { background: var(--pe-cream); }
.pe-closer__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-weight: 600; font-size: 0.875rem; }

.pe-newsletter { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.pe-newsletter button { align-self: start; }
/* Dark-surface variant — applies inside the green closer card on home only. */
.pe-closer__card--green .pe-newsletter input[type="email"] {
  background: transparent !important;
  border-color: rgba(244, 236, 216, 0.3) !important;
  color: var(--pe-cream) !important;
}
.pe-closer__card--green .pe-newsletter input[type="email"]::placeholder { color: rgba(244, 236, 216, 0.55); }
.pe-closer__card--green .pe-newsletter button {
  background: var(--pe-cream) !important; color: var(--pe-green-900) !important;
}
.pe-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pe-form-msg { font-size: 0.8125rem; min-height: 1rem; margin: 0; }

/* ─── Ambient image band ─────────────────────────────────────────────── */
.pe-ambient {
  position: relative;
  width: 100%;
  height: clamp(420px, 55vh, 640px);
  overflow: hidden;
  background: var(--pe-green-900);
}
.pe-ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pe-ambient__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31, 51, 32, 0.75), rgba(31, 51, 32, 0.15), transparent);
}
.pe-ambient__caption { position: absolute; inset: auto 0 0 0; padding-bottom: 2.5rem; color: var(--pe-cream); }
.pe-ambient__text {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin: 0.75rem 0 0; max-width: 50ch;
  text-shadow: 0 2px 18px rgba(31, 51, 32, 0.5);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.pe-footer {
  background: var(--pe-green-900) !important;
  color: var(--pe-cream) !important;
}
.pe-footer__inner { padding: 4rem 0; }
@media (min-width: 1024px) { .pe-footer__inner { padding: 6rem 0; } }

.pe-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .pe-footer__grid { grid-template-columns: 5fr 2fr 2fr 3fr; gap: 2.5rem; }
}

.pe-footer__brand-link { display: inline-block; }
.pe-logo--footer { height: 2.5rem; width: auto; display: block; }
.pe-footer__pitch { font-size: 0.875rem; color: rgba(244, 236, 216, 0.7); max-width: 36ch; line-height: 1.55; margin: 1.25rem 0 0; }

.pe-footer__socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.pe-footer__social {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 1px solid rgba(244, 236, 216, 0.2); color: var(--pe-cream);
  border-radius: var(--pe-radius-s, 6px); text-decoration: none;
  transition: background-color 0.2s;
}
.pe-footer__social:hover { background: rgba(244, 236, 216, 0.1); color: var(--pe-cream); }

.pe-footer__heading {
  font-family: var(--pe-font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(244, 236, 216, 0.65);
  margin: 0 0 1.25rem;
}
.pe-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.pe-footer__menu a { font-size: 0.875rem; color: rgba(244, 236, 216, 0.8); text-decoration: none; transition: color 0.2s; }
.pe-footer__menu a:hover { color: var(--pe-cream); }
.pe-footer__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: rgba(244, 236, 216, 0.8); }
.pe-footer__contact li { display: flex; align-items: flex-start; gap: 0.625rem; }
.pe-footer__contact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.625rem; }
.pe-footer__contact a:hover { color: var(--pe-cream); }
.pe-footer__contact-icon { flex-shrink: 0; margin-top: 0.15rem; opacity: 0.85; }
.pe-footer__contact a .pe-footer__contact-icon { margin-top: 0; }

.pe-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 236, 216, 0.1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.75rem; color: rgba(244, 236, 216, 0.5);
}
.pe-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.pe-footer__legal a { color: inherit; text-decoration: none; }
.pe-footer__legal a:hover { color: rgba(244, 236, 216, 0.8); }

/* ─── WhatsApp FAB ───────────────────────────────────────────────────── */
.pe-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--pe-green-700); color: var(--pe-cream);
  padding: 0.75rem 1rem;
  border-radius: 0; /* rectangular, no pill */
  box-shadow: 0 8px 24px -8px rgba(31, 51, 32, 0.4);
  text-decoration: none;
  transition: background-color 0.2s;
}
.pe-fab:hover { background: var(--pe-green-800); color: var(--pe-cream); }
@media (min-width: 1024px) {
  .pe-fab { bottom: 1.75rem; right: 1.75rem; }
}
.pe-fab__label { display: none; font-size: 0.875rem; font-weight: 500; }
@media (min-width: 640px) { .pe-fab__label { display: inline; } }

/* ─── WooCommerce overrides (price, badges, cards) ───────────────────── */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
  font-family: var(--pe-font-display) !important;
  font-weight: 800 !important;
  color: var(--pe-ink) !important;
  font-feature-settings: "tnum";
}
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
  color: rgba(24, 35, 26, 0.45) !important;
  font-weight: 500 !important;
}
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins { background: transparent !important; text-decoration: none; }
.woocommerce ul.products li.product .price ins .amount,
.woocommerce div.product p.price ins .amount { color: var(--pe-error) !important; font-weight: 800 !important; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--pe-font-sans) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  color: var(--pe-ink); padding: 0 !important; margin: 0 0 0.25rem !important;
}

.woocommerce ul.products li.product img { border-radius: 0 var(--pe-radius-l, 22px) var(--pe-radius-l, 22px) 0; }

.woocommerce span.onsale { display: none !important; } /* we use pe-sale-badge instead */

/* ─── WooCommerce notices ────────────────────────────────────────────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: none !important;
  border-radius: var(--pe-radius-m, 12px) !important;
  font-family: var(--pe-font-sans) !important;
  font-weight: 500;
}
.woocommerce-message { background: var(--pe-green-100) !important; color: var(--pe-green-900) !important; }
.woocommerce-info { background: var(--pe-cream) !important; color: var(--pe-green-900) !important; }
.woocommerce-error { background: rgba(166, 74, 58, 0.1) !important; color: var(--pe-error) !important; }
/* Enlaces dentro de los avisos info ("Haz clic aquí para acceder", "introducir
   tu código"): verde legible. Antes el enlace salía blanco e invisible sobre el cream. */
.woocommerce-info,
.woocommerce-info a {
  color: var(--pe-green-900) !important;
}
.woocommerce-info a {
  color: var(--pe-green-700) !important;
  text-decoration: underline !important; text-underline-offset: 3px; font-weight: 600;
}

/* ─── Checkout polish (visual only) ──────────────────────────────────── */
/* Hide the default page title on checkout (custom header used instead) — but
   keep it on the order-received page. */
.woocommerce-checkout:not(.woocommerce-order-received) .pe-page__head { display: none; }
.pe-checkout-head { margin-bottom: 2.25rem; }
.pe-checkout-head__title { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0.5rem 0 0; }
.pe-checkout-head__lede { margin: 0.75rem 0 0; color: rgba(24, 35, 26, 0.6); font-size: 1rem; max-width: 52ch; }

/* Order review = cream rounded panel */
.woocommerce-checkout #order_review {
  background: var(--pe-cream);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1.5rem;
}
.woocommerce-checkout #order_review .shop_table { background: transparent !important; border: none !important; }
.woocommerce-checkout #order_review .shop_table th,
.woocommerce-checkout #order_review .shop_table td { border: none !important; padding: 0.6rem 0 !important; }
.woocommerce-checkout #order_review .cart_item { border-bottom: 1px solid rgba(24, 35, 26, 0.08); }
/* Product thumbnail + name in the review table */
.pe-corev { display: flex; align-items: center; gap: 0.75rem; }
.pe-corev__thumb img {
  width: 48px; height: 48px; border-radius: 0;
  object-fit: cover; display: block; margin: 0 !important;
}
.pe-corev__text { display: flex; flex-direction: column; gap: 0.1rem; }
.pe-corev__name { font-weight: 500; line-height: 1.3; }
.pe-corev__qty { font-size: 0.8125rem; color: rgba(24, 35, 26, 0.55); }

/* Place-order button: green + full width */
.woocommerce-checkout #place_order,
.woocommerce-checkout #payment #place_order {
  background: var(--pe-green-700) !important; color: var(--pe-cream) !important;
  width: 100%; float: none !important;
  border-radius: 0 !important; /* rectangular, sin bordes redondeados */
  padding: 1rem 1.5rem !important; font-weight: 600 !important; font-size: 1rem !important;
  margin-top: 0.5rem;
}
.woocommerce-checkout #place_order:hover { background: var(--pe-green-800) !important; }

/* Payment methods as cards */
.woocommerce-checkout .wc_payment_methods { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.625rem; }
.woocommerce-checkout .wc_payment_methods li.wc_payment_method {
  border: 1px solid rgba(24, 35, 26, 0.12); border-radius: var(--pe-radius-m, 12px);
  padding: 0.875rem 1rem; background: var(--pe-paper);
  list-style: none;
}
.woocommerce-checkout .wc_payment_methods li.wc_payment_method > label {
  font-weight: 600; margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
}
.woocommerce-checkout .wc_payment_methods .payment_box {
  background: transparent !important; margin-top: 0.5rem; font-size: 0.8125rem;
  color: rgba(24, 35, 26, 0.7);
}
.woocommerce-checkout .wc_payment_methods .payment_box::before { display: none !important; }

/* ─── Checkout: integrar todo al tono cremita (sin recuadros blancos/grises) ── */

/* El bloque de pago (#payment) por defecto trae fondo claro: lo integramos. */
.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.form-row,
.woocommerce-checkout #payment .place-order {
  background: transparent !important; border: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
.woocommerce-checkout #payment::before,
.woocommerce-checkout #payment .payment_box::before { display: none !important; }

/* Texto de privacidad ("Tus datos personales…") y términos, sin caja. */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  background: transparent !important; border: none !important; padding: 0 !important;
  color: rgba(24, 35, 26, 0.7); font-size: 0.875rem;
}

/* Métodos de pago: SIN caja/fondo, todo el área en un solo color cremita. */
.woocommerce-checkout .wc_payment_methods li.wc_payment_method {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
/* Radio del método de pago: amarillo de marca (antes salía morado). */
.woocommerce-checkout #payment input[type="radio"],
.woocommerce-checkout .wc_payment_methods input[type="radio"] {
  accent-color: var(--pe-butter) !important;
}

/* ─── Order-received / "Listo. Vamos en camino." ──────────────────────── */
.pe-thankyou { padding-top: 3rem; padding-bottom: 4rem; }
.pe-thankyou__payment p { margin: 0 0 0.6rem; color: rgba(24, 35, 26, 0.78); font-size: 0.9375rem; line-height: 1.6; }
.pe-thankyou__payment p:last-child { margin-bottom: 0; }
.pe-thankyou__payment h2 { font-family: var(--pe-font-display); font-weight: 800; font-size: 1.0625rem; margin: 0 0 0.5rem; }
.pe-thankyou__order .woocommerce-order-details__title,
.pe-thankyou__order .woocommerce-column__title {
  font-family: var(--pe-font-display); font-weight: 800; font-size: 1.25rem; margin: 0 0 1rem;
}
.pe-thankyou__order .woocommerce-customer-details { margin-top: 2rem; }
.pe-thankyou__order table.woocommerce-table--order-details { width: 100%; border-collapse: collapse; margin: 0; }
.pe-thankyou__order table.woocommerce-table--order-details th,
.pe-thankyou__order table.woocommerce-table--order-details td {
  padding: 0.65rem 0; border: none; border-bottom: 1px solid rgba(24, 35, 26, 0.08); text-align: left;
}
.pe-thankyou__order address { font-style: normal; color: rgba(24, 35, 26, 0.7); line-height: 1.6; }

/* Encabezado gris de la tabla del resumen (Producto/Subtotal) → transparente. */
.woocommerce-checkout #order_review .shop_table thead,
.woocommerce-checkout #order_review .shop_table thead th,
.woocommerce-checkout #order_review .shop_table tfoot,
.woocommerce-checkout #order_review .shop_table tfoot th,
.woocommerce-checkout #order_review .shop_table tfoot td {
  background: transparent !important;
}

/* Cupón: sin caja, solo texto + link subrayado integrado al diseño. */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: transparent !important; border: none !important;
  padding: 0 0 1rem !important; margin: 0 0 1rem !important;
  color: rgba(24, 35, 26, 0.7) !important; font-size: 0.9375rem;
  display: block;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none !important; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a,
.woocommerce-checkout .checkout_coupon .button {
  color: var(--pe-green-700) !important; text-decoration: underline !important; text-underline-offset: 2px;
  background: transparent !important; border: none !important; padding: 0 !important; font-weight: 500;
}
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
  background: transparent !important; border: 1px solid rgba(24, 35, 26, 0.12) !important;
  border-radius: var(--pe-radius-m, 12px) !important; padding: 1rem !important;
}

/* Inputs + selects del checkout: mismo estilo de marca (borde suave, fondo paper). */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout .woocommerce-input-wrapper select {
  background: var(--pe-paper, #fbf9f2) !important;
  border: 1px solid rgba(24, 35, 26, 0.15) !important;
  border-radius: var(--pe-radius-m, 12px) !important;
  min-height: 3rem; padding: 0.5rem 0.9rem !important;
  color: var(--pe-ink, #18231a) !important;
}
.woocommerce-checkout .form-row select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2318231a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 0.9rem center !important;
  padding-right: 2.4rem !important;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none; border-color: var(--pe-green-700, #3d5b39) !important;
}

/* ─── Mi Cuenta: layout 2 columnas auto-contenido ────────────────────────
   El grid 2-col va INLINE en la plantilla my-account.php (.pe-account) para
   sobrevivir a un optimizador. Aquí solo refinamos: en móvil pasa a 1 columna,
   y neutralizamos los floats de WooCommerce. */
@media (max-width: 767px) {
  .woocommerce-account .pe-account { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important; width: auto !important; margin: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }

/* Navegación como lista de pills */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.9rem; border-radius: var(--pe-radius-m, 12px);
  color: var(--pe-ink, #18231a); text-decoration: none; font-size: 0.95rem;
  transition: background-color 0.15s;
}
.woocommerce-MyAccount-navigation li a:hover { background: rgba(24, 35, 26, 0.05); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--pe-cream, #f4ecd8); font-weight: 600; }

/* Tabla de pedidos: integrada, sin recuadros */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td { background: transparent !important; border: none !important; }
.woocommerce-account .woocommerce-orders-table { width: 100%; }
.woocommerce-account .woocommerce-orders-table thead th { text-align: left; padding: 0.6rem 0.75rem; font-weight: 600; border-bottom: 1px solid rgba(24, 35, 26, 0.12) !important; }
.woocommerce-account .woocommerce-orders-table tbody td { padding: 0.85rem 0.75rem; border-bottom: 1px solid rgba(24, 35, 26, 0.08) !important; vertical-align: middle; }
.woocommerce-account .woocommerce-orders-table .woocommerce-button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--pe-green-700, #3d5b39) !important; color: var(--pe-cream, #f4ecd8) !important;
  padding: 0.5rem 1rem !important; border-radius: var(--pe-radius-pill, 999px) !important;
  font-size: 0.875rem !important; text-decoration: none;
}

/* ─── Shop toolbar (count + per-page + ordering) ─────────────────────── */
.pe-shop__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 1.5rem;
  margin: 0 0 2rem; padding: 1rem 0;
  border-top: 1px solid rgba(24, 35, 26, 0.1);
  border-bottom: 1px solid rgba(24, 35, 26, 0.1);
}
.pe-shop__toolbar .woocommerce-result-count {
  margin: 0 !important; font-size: 0.875rem; color: rgba(24, 35, 26, 0.6);
  float: none !important;
}
.pe-shop__controls { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.pe-perpage { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.pe-perpage__label { font-size: 0.8125rem; color: rgba(24, 35, 26, 0.6); }
.pe-shop__controls .woocommerce-ordering { margin: 0 !important; float: none !important; }
.pe-shop__controls select,
.pe-perpage select {
  font-family: var(--pe-font-sans); font-size: 0.875rem; line-height: 1.2;
  padding: 0.5rem 2.25rem 0.5rem 0.95rem;
  border: 1px solid rgba(24, 35, 26, 0.15); border-radius: var(--pe-radius-pill, 999px);
  background-color: var(--pe-paper); color: var(--pe-ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2318231a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}

/* ─── Pagination ─────────────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination {
  margin-top: 3.5rem !important; text-align: center; clear: both;
}
.woocommerce nav.woocommerce-pagination ul { border: none !important; display: inline-flex !important; gap: 0.25rem; }
.woocommerce nav.woocommerce-pagination ul li { border: none !important; margin: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--pe-font-sans) !important;
  font-weight: 600 !important;
  border-radius: var(--pe-radius-pill, 999px) !important;
  border: 1px solid rgba(24, 35, 26, 0.15) !important;
  width: 2.5rem; height: 2.5rem; line-height: 2.5rem;
  margin: 0 0.125rem; padding: 0 !important;
  background: transparent !important; color: var(--pe-ink) !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--pe-cream) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--pe-ink) !important; color: var(--pe-cream) !important; border-color: var(--pe-ink) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   PHASE 2 — Page templates, WooCommerce overrides, drawer, blog
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── Page hero (Calidad / Envíos / B2B / Club / Quiz) ────────────────── */
.pe-pg-hero { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .pe-pg-hero--with-image { grid-template-columns: 6fr 6fr; gap: 3rem; align-items: center; }
}
.pe-pg-hero__title { margin: 1.25rem 0 0; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.pe-pg-hero__lede {
  margin: 1.5rem 0 0; max-width: 60ch; line-height: 1.6;
  font-size: 1.0625rem; color: rgba(24, 35, 26, 0.7);
}
@media (min-width: 1024px) { .pe-pg-hero__lede { font-size: 1.125rem; } }
.pe-pg-hero__media {
  border-radius: var(--pe-radius-l, 22px); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--pe-cream);
}
@media (min-width: 1024px) { .pe-pg-hero__media { aspect-ratio: 5 / 6; } }
.pe-pg-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pe-icon-circle {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  background: var(--pe-green-100); color: var(--pe-green-700);
  border-radius: var(--pe-radius-pill, 999px);
  margin-bottom: 1rem;
}

/* ─── Pillars (4-up bloques numerados sobre verde) ───────────────────── */
.pe-pillars {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .pe-pillars { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1024px) { .pe-pillars { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.pe-pillars__item {
  border-top: 1px solid rgba(244, 236, 216, 0.18);
  padding-top: 1.5rem;
}
.pe-pillars__num {
  font-family: var(--pe-font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--pe-butter);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}
.pe-pillars__title {
  font-family: var(--pe-font-display);
  font-weight: 700;
  font-size: 1.125rem !important;
  color: var(--pe-cream) !important;
  margin: 0 0 0.625rem;
  line-height: 1.25;
}
.pe-pillars__body {
  font-size: 0.9375rem;
  color: rgba(244, 236, 216, 0.8);
  margin: 0; line-height: 1.6;
}

/* ─── 3-image photo band ──────────────────────────────────────────────── */
.pe-photo-band {
  display: grid; grid-template-columns: 1fr;
  gap: 0.25rem;
}
@media (min-width: 640px) { .pe-photo-band { grid-template-columns: repeat(3, 1fr); } }
.pe-photo-band img {
  display: block; width: 100%; height: clamp(220px, 40vh, 360px);
  object-fit: cover;
}

/* ─── Emotional 2-col layout ──────────────────────────────────────────── */
.pe-emotional {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .pe-emotional { grid-template-columns: 6fr 6fr; gap: 4rem; } }
.pe-emotional__paragraphs { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.pe-emotional__paragraphs p { margin: 0; line-height: 1.7; color: rgba(24, 35, 26, 0.78); font-size: 1.0625rem; }
.pe-emotional__media {
  border-radius: var(--pe-radius-l, 22px); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--pe-cream);
}
.pe-emotional__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pe-checklist {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.pe-checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9375rem; color: rgba(24, 35, 26, 0.78); line-height: 1.55;
}
.pe-checklist__dot {
  flex-shrink: 0; width: 0.5rem; height: 0.5rem; margin-top: 0.5rem;
  background: var(--pe-green-700);
  border-radius: var(--pe-radius-pill, 999px);
}

/* ─── Familia closing ─────────────────────────────────────────────────── */
.pe-familia { max-width: 50rem; margin: 0 auto; text-align: center; }
.pe-familia__title { margin: 0.75rem 0 0; font-size: clamp(2rem, 3.5vw, 2.75rem); }
.pe-familia__paragraphs {
  margin: 1.75rem 0 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.pe-familia__paragraphs p {
  margin: 0; line-height: 1.7;
  color: rgba(24, 35, 26, 0.75); font-size: 1.0625rem;
}
.pe-familia__note { margin: 1.25rem 0 0; font-size: 0.875rem; color: rgba(24, 35, 26, 0.55); }
.pe-familia__note a { color: var(--pe-green-700); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Stats row (Envíos hero) ─────────────────────────────────────────── */
.pe-stats-row {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: 1fr 1fr;
}
.pe-stat {
  background: var(--pe-green-700, #3d5b39);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1.25rem;
}
.pe-stat svg { color: var(--pe-butter, #e9d8a6); }
.pe-stat__label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(244, 236, 216, 0.75); margin: 0.5rem 0 0.25rem; font-weight: 600;
}
.pe-stat__value {
  font-family: var(--pe-font-display);
  font-weight: 800; font-size: 1.625rem; color: var(--pe-cream, #f4ecd8);
  margin: 0; letter-spacing: -0.02em;
}
.pe-stat__sub { font-size: 0.75rem; color: rgba(244, 236, 216, 0.6); margin: 0.125rem 0 0; }

/* ─── Zones table (Envíos) ────────────────────────────────────────────── */
.pe-zones-table-wrap {
  margin-top: 2rem;
  background: transparent; /* integrada al cremita, sin panel blanco */
  border: none;
  overflow: hidden;
}
.pe-zones-table { width: 100%; border-collapse: collapse; }
.pe-zones-table th, .pe-zones-table td {
  text-align: left;
  padding: 1rem 0.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(24, 35, 26, 0.1);
}
.pe-zones-table th {
  font-family: var(--pe-font-sans);
  font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(24, 35, 26, 0.55);
  background: transparent; /* sin barra gris en el encabezado */
}
.pe-zones-table tr:last-child td { border-bottom: none; }
.pe-zones-table td:last-child {
  font-family: var(--pe-font-display);
  font-weight: 700; color: var(--pe-ink);
  font-feature-settings: "tnum";
}
.pe-zones-note { margin: 1rem 0 0; font-size: 0.8125rem; color: rgba(24, 35, 26, 0.55); line-height: 1.55; max-width: 56ch; }

/* ─── Pay grid (Envíos) ───────────────────────────────────────────────── */
.pe-pay-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pe-pay-grid { grid-template-columns: repeat(3, 1fr); } }
.pe-pay-card {
  background: var(--pe-paper);
  border: 1px solid rgba(24, 35, 26, 0.08);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1.75rem;
}
.pe-pay-card__icon { color: var(--pe-green-700); }
.pe-pay-card h3 {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.125rem !important;
  margin: 0.875rem 0 0.5rem;
}
.pe-pay-card p { font-size: 0.9375rem; line-height: 1.6; color: rgba(24, 35, 26, 0.7); margin: 0 0 0.75rem; }
.pe-pay-card__best {
  font-size: 0.8125rem !important;
  background: var(--pe-cream); padding: 0.625rem 0.875rem;
  border-radius: var(--pe-radius-m, 12px);
  margin-top: 1rem !important; color: rgba(24, 35, 26, 0.75) !important;
}
.pe-pay-card__best strong { color: var(--pe-ink); font-weight: 700; }

/* ─── Arrow list (verde band) ─────────────────────────────────────────── */
.pe-arrow-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.875rem;
}
.pe-arrow-list li {
  display: flex; align-items: flex-start; gap: 0.875rem;
  font-size: 1rem; line-height: 1.55;
  color: rgba(244, 236, 216, 0.88);
}
.pe-arrow-list__bullet {
  flex-shrink: 0; color: var(--pe-butter);
  font-family: var(--pe-font-display); font-weight: 700;
  font-size: 1.125rem;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.pe-faq-wrap { max-width: 52rem; margin: 0 auto; }
.pe-faq { margin-top: 2rem; }
.pe-faq__item {
  border-top: 1px solid rgba(24, 35, 26, 0.08);
  padding: 1.5rem 0;
}
.pe-faq__item:last-child { border-bottom: 1px solid rgba(24, 35, 26, 0.08); }
.pe-faq__item dt {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.0625rem;
  color: var(--pe-ink);
  margin: 0 0 0.5rem;
}
.pe-faq__item dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: rgba(24, 35, 26, 0.72); }
.pe-faq__more { margin: 2rem 0 0; font-size: 0.875rem; color: rgba(24, 35, 26, 0.6); }
.pe-faq__more a { color: var(--pe-green-700); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Clients strip (B2B) ─────────────────────────────────────────────── */
.pe-clients-strip { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(24, 35, 26, 0.08); }
.pe-clients-strip__grid {
  display: grid; gap: 0.75rem 2rem; margin-top: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .pe-clients-strip__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pe-clients-strip__grid { grid-template-columns: repeat(6, 1fr); } }
.pe-clients-strip__name {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 0.9375rem;
  color: rgba(24, 35, 26, 0.55);
  letter-spacing: -0.01em;
}
.pe-clients-strip__item--logo {
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 60px;
}
.pe-clients-strip__item--logo img {
  max-height: 48px; width: auto; max-width: 100%;
  object-fit: contain;
  opacity: 0.7; filter: grayscale(1);
  transition: opacity 200ms ease, filter 200ms ease;
}
.pe-clients-strip__item--logo:hover img { opacity: 1; filter: grayscale(0); }

/* ─── B2B form layout ─────────────────────────────────────────────────── */
.pe-b2b-form-wrap, .pe-club-form-wrap {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .pe-b2b-form-wrap, .pe-club-form-wrap { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .pe-b2b-form-wrap__lede, .pe-club-form-wrap__lede { position: sticky; top: 6rem; }
}

.pe-info-card {
  margin-top: 2rem;
  background: var(--pe-cream);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1.5rem;
}
.pe-info-card .pe-eyebrow { color: var(--pe-green-700); }
.pe-info-card ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pe-info-card li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; line-height: 1.55; color: rgba(24, 35, 26, 0.78);
}
.pe-info-card li span { color: var(--pe-green-700); font-weight: 700; flex-shrink: 0; }

/* ─── Form (B2B + Club) ───────────────────────────────────────────────── */
.pe-form { display: flex; flex-direction: column; gap: 1.5rem; }
.pe-form__row { display: flex; flex-direction: column; gap: 0.5rem; }
.pe-form__row label,
.pe-form__legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pe-ink);
  margin: 0;
}
.pe-form__grid-2 {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pe-form__grid-2 { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.pe-form__error {
  font-size: 0.8125rem; color: var(--pe-error);
  margin: 0; min-height: 1rem;
}
.pe-form__hint { font-size: 0.75rem; color: rgba(24, 35, 26, 0.55); margin: 0; line-height: 1.5; }
.pe-form__submit { align-self: start; padding: 1rem 2rem !important; font-size: 1rem !important; }
.pe-form__submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.pe-form__success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  padding: 1.75rem;
  background: var(--pe-green-100);
  border-radius: var(--pe-radius-l, 22px);
}
/* El cuadro de éxito permanece oculto hasta que el JS lo revela tras enviar. */
.pe-form__success[hidden] { display: none !important; }
.pe-form__success svg { color: var(--pe-green-700); }
.pe-form__success h3 {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.125rem !important;
  margin: 0.5rem 0 0; color: var(--pe-green-900);
}
.pe-form__success p { margin: 0.25rem 0 0; font-size: 0.9375rem; color: rgba(24, 35, 26, 0.75); }
.pe-form__success a { color: var(--pe-green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Radio grid ──────────────────────────────────────────────────────── */
.pe-radio-grid {
  display: grid; gap: 0.625rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .pe-radio-grid { grid-template-columns: repeat(3, 1fr); } }
.pe-radio-grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px)  { .pe-radio-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.pe-radio {
  position: relative; display: block; cursor: pointer;
}
.pe-radio input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.pe-radio span {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  border: 1.5px solid rgba(24, 35, 26, 0.12);
  border-radius: var(--pe-radius-m, 12px);
  text-align: center;
  background: var(--pe-paper);
  transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.pe-radio:hover span { border-color: rgba(24, 35, 26, 0.25); }
.pe-radio input:checked + span {
  background: var(--pe-ink); color: var(--pe-cream);
  border-color: var(--pe-ink);
}
.pe-radio input:focus-visible + span {
  outline: 2px solid var(--pe-ink);
  outline-offset: 2px;
}

/* ─── Drop zone (B2B) ─────────────────────────────────────────────────── */
.pe-dropzone {
  position: relative; cursor: pointer;
  border: 2px dashed rgba(24, 35, 26, 0.18);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1.75rem 1.5rem;
  text-align: center; background: var(--pe-paper);
  transition: border-color 0.18s, background-color 0.18s;
}
.pe-dropzone:hover, .pe-dropzone:focus-visible {
  border-color: var(--pe-green-700);
  background: var(--pe-cream);
  outline: none;
}
.pe-dropzone.is-drag {
  border-color: var(--pe-green-700);
  background: var(--pe-green-100);
}
.pe-dropzone__icon { display: inline-grid; color: var(--pe-green-700); margin-bottom: 0.5rem; }
.pe-dropzone__text { margin: 0; font-size: 0.9375rem; color: rgba(24, 35, 26, 0.78); }
.pe-dropzone__text strong { color: var(--pe-green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pe-dropzone__hint { margin: 0.375rem 0 0; font-size: 0.75rem; color: rgba(24, 35, 26, 0.55); }
.pe-dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}

/* Files preview list */
.pe-files {
  list-style: none; padding: 0; margin: 0.875rem 0 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.pe-file {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2rem;
  align-items: center; gap: 0.75rem;
  background: var(--pe-cream);
  border-radius: var(--pe-radius-m, 12px);
  padding: 0.5rem 0.75rem;
}
.pe-file__thumb {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--pe-radius-s, 6px);
  background: rgba(24, 35, 26, 0.06);
  display: inline-grid; place-items: center;
  overflow: hidden;
  color: rgba(24, 35, 26, 0.5);
}
.pe-file__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-file__body { min-width: 0; }
.pe-file__name {
  font-size: 0.8125rem; font-weight: 600;
  margin: 0; color: var(--pe-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pe-file__size { font-size: 0.6875rem; color: rgba(24, 35, 26, 0.55); margin: 0.125rem 0 0; }
.pe-file__remove {
  width: 2rem; height: 2rem;
  display: inline-grid; place-items: center;
  border: none; background: transparent;
  border-radius: var(--pe-radius-pill, 999px);
  color: rgba(24, 35, 26, 0.55);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
  padding: 0;
}
.pe-file__remove:hover { background: rgba(24, 35, 26, 0.08); color: var(--pe-error); }

/* ─── Tiers (Plant Club) ──────────────────────────────────────────────── */
.pe-tiers__head { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; }
.pe-tiers {
  display: grid; gap: 1.25rem; align-items: stretch;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .pe-tiers { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.pe-tier {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--pe-paper);
  border: 1px solid rgba(24, 35, 26, 0.08);
  border-radius: var(--pe-radius-l, 22px);
  padding: 2rem;
}
.pe-tier--popular {
  background: var(--pe-green-700); color: var(--pe-cream);
  border-color: var(--pe-green-700);
  transform: translateY(0);
}
@media (min-width: 768px) { .pe-tier--popular { transform: translateY(-1rem); } }
.pe-tier__badge {
  position: absolute; top: -0.625rem; left: 50%; transform: translateX(-50%);
  background: var(--pe-butter); color: var(--pe-green-900);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: var(--pe-radius-pill, 999px);
}
.pe-tier__name {
  font-family: var(--pe-font-display);
  font-weight: 800; font-size: 1.5rem !important;
  margin: 0; color: inherit !important;
}
.pe-tier--popular .pe-tier__name { color: var(--pe-cream) !important; }
.pe-tier__pitch {
  font-size: 0.9375rem; line-height: 1.55;
  color: rgba(24, 35, 26, 0.7);
  margin: 0.625rem 0 1.25rem;
}
.pe-tier--popular .pe-tier__pitch { color: rgba(244, 236, 216, 0.85); }
.pe-tier__price {
  font-family: var(--pe-font-display); font-weight: 800;
  font-size: 2.25rem; letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-feature-settings: "tnum";
}
.pe-tier__price-suffix { font-size: 0.875rem; font-weight: 500; opacity: 0.6; }
.pe-tier__list {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-direction: column; gap: 0.625rem;
  flex: 1;
}
.pe-tier__list li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.875rem; line-height: 1.5;
  color: rgba(24, 35, 26, 0.78);
}
.pe-tier__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--pe-green-700); font-weight: 800;
}
.pe-tier--popular .pe-tier__list li { color: rgba(244, 236, 216, 0.88); }
.pe-tier--popular .pe-tier__list li::before { color: var(--pe-butter); }
.pe-tier__cta { width: 100%; }

/* ─── Quiz state machine ──────────────────────────────────────────────── */
.pe-quiz {
  /* Sin caja cream: el quiz va sobre el fondo de la página, como el prototipo. */
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.pe-quiz__progress { margin-bottom: 1.5rem; }
.pe-quiz__progress-text {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; font-weight: 600; color: rgba(24, 35, 26, 0.55);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
.pe-quiz__progress-bar {
  height: 0.375rem; background: var(--pe-cream);
  border-radius: var(--pe-radius-pill, 999px); overflow: hidden;
}
.pe-quiz__progress-fill {
  height: 100%; background: var(--pe-green-700);
  border-radius: var(--pe-radius-pill, 999px);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pe-quiz__title {
  font-family: var(--pe-font-display);
  font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  margin: 0.5rem 0 1.5rem; line-height: 1.2;
  letter-spacing: -0.02em;
}

.pe-quiz__options {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.pe-quiz__option {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--pe-paper);
  border: 1px solid rgba(24, 35, 26, 0.15);
  border-radius: 0;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, transform 0.18s;
  color: var(--pe-ink);
  font-family: var(--pe-font-sans);
}
.pe-quiz__option:hover,
.pe-quiz__option:focus-visible {
  border-color: var(--pe-green-700);
  background: var(--pe-cream);
  color: var(--pe-green-900) !important; /* texto verde legible (antes salía blanco) */
}
.pe-quiz__option:hover span:not([aria-hidden]),
.pe-quiz__option:focus-visible span:not([aria-hidden]) { color: var(--pe-green-900) !important; }
.pe-quiz__option [aria-hidden="true"] {
  color: rgba(24, 35, 26, 0.35);
  font-weight: 600;
}
.pe-quiz__option:hover [aria-hidden="true"],
.pe-quiz__option:focus-visible [aria-hidden="true"] { color: var(--pe-green-700) !important; }

.pe-quiz__back {
  margin-top: 1.5rem;
  background: transparent; border: none;
  font-size: 0.875rem; color: rgba(24, 35, 26, 0.6);
  cursor: pointer; padding: 0;
}
.pe-quiz__back:hover { color: var(--pe-ink); }

/* Quiz result */
.pe-quiz__result-head { margin-bottom: 2rem; }
.pe-quiz__result-head h2 {
  font-family: var(--pe-font-display);
  font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  margin: 0.5rem 0 0.75rem; letter-spacing: -0.02em;
}
.pe-quiz__result-head p { margin: 0; font-size: 0.9375rem; color: rgba(24, 35, 26, 0.7); line-height: 1.55; }

.pe-quiz__recs {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: flex; flex-direction: column; gap: 0.875rem;
}
.pe-quiz__rec {
  display: grid; gap: 1rem;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  background: var(--pe-paper);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1rem;
}
@media (min-width: 640px) { .pe-quiz__rec { grid-template-columns: 5rem 1fr auto; padding: 1.25rem; } }
.pe-quiz__rec-thumb {
  display: block;
  width: 4.5rem; height: 4.5rem;
  border-radius: var(--pe-radius-m, 12px);
  overflow: hidden;
  background: var(--pe-cream);
}
@media (min-width: 640px) { .pe-quiz__rec-thumb { width: 5rem; height: 5rem; } }
.pe-quiz__rec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-quiz__rec-body h3 {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.0625rem !important;
  margin: 0.25rem 0 0.25rem;
}
.pe-quiz__rec-body h3 a { color: var(--pe-ink); text-decoration: none; }
.pe-quiz__rec-body h3 a:hover { color: var(--pe-green-700); }
.pe-quiz__rec-body p { font-size: 0.8125rem; color: rgba(24, 35, 26, 0.65); margin: 0; line-height: 1.5; }
.pe-quiz__rec-action {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(24, 35, 26, 0.08);
}
@media (min-width: 640px) {
  .pe-quiz__rec-action {
    grid-column: auto; padding-top: 0; border-top: none;
    flex-direction: column; align-items: flex-end;
  }
}
.pe-quiz__rec-price {
  font-family: var(--pe-font-display);
  font-weight: 800; font-size: 1rem; color: var(--pe-ink);
  font-feature-settings: "tnum";
}
.pe-quiz__rec-action a {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--pe-green-700); text-decoration: none;
}
.pe-quiz__rec-action a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pe-quiz__email {
  background: var(--pe-green-700); color: var(--pe-cream);
  border-radius: var(--pe-radius-l, 22px);
  padding: 1.75rem;
}
.pe-quiz__email h3 {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.0625rem !important;
  color: var(--pe-cream) !important;
  margin: 0.5rem 0 1rem; line-height: 1.4;
}
.pe-quiz__email-form { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 480px) { .pe-quiz__email-form { flex-direction: row; } }
.pe-quiz__email-form input {
  flex: 1;
  background: rgba(244, 236, 216, 0.12) !important;
  border-color: rgba(244, 236, 216, 0.25) !important;
  color: var(--pe-cream) !important;
}
.pe-quiz__email-form input::placeholder { color: rgba(244, 236, 216, 0.5); }
.pe-quiz__email-form button {
  background: var(--pe-butter) !important;
  color: var(--pe-green-900) !important;
}
.pe-quiz__email .pe-form-msg { color: rgba(244, 236, 216, 0.85); }

/* ─── Cart drawer ─────────────────────────────────────────────────────── */
.pe-cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(24, 35, 26, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.pe-cart-overlay.is-open { opacity: 1; }

.pe-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: 100%; max-width: 28rem;
  background: var(--pe-paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px -8px rgba(31, 51, 32, 0.2);
}
.pe-cart-drawer.is-open { transform: translateX(0); }
.pe-cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(24, 35, 26, 0.08);
}
.pe-cart-drawer__head h2 {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.125rem !important;
  margin: 0;
}
.pe-cart-drawer__close {
  width: 2.25rem; height: 2.25rem;
  display: inline-grid; place-items: center;
  background: transparent; border: none; cursor: pointer;
  border-radius: var(--pe-radius-pill, 999px);
  color: var(--pe-ink); padding: 0;
  transition: background-color 0.18s;
}
.pe-cart-drawer__close:hover { background: var(--pe-cream); }
.pe-cart-drawer__body {
  flex: 1; overflow-y: auto;
  padding: 1.5rem;
}

/* Drawer content */
.pe-drawer__progress { margin-bottom: 1.5rem; }
.pe-drawer__progress-text { font-size: 0.8125rem; line-height: 1.5; margin: 0 0 0.5rem; color: rgba(24, 35, 26, 0.7); }
.pe-drawer__progress-text strong { color: var(--pe-ink); }
.pe-drawer__progress-bar {
  height: 0.375rem; background: rgba(24, 35, 26, 0.08);
  border-radius: var(--pe-radius-pill, 999px); overflow: hidden;
}
.pe-drawer__progress-fill {
  height: 100%; background: var(--pe-green-700);
  border-radius: var(--pe-radius-pill, 999px);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pe-drawer__lines {
  list-style: none !important; padding: 0 !important; margin: 0 0 1.5rem !important;
  display: flex; flex-direction: column; gap: 1rem;
}
.pe-drawer__line {
  display: grid; align-items: flex-start; gap: 0.875rem;
  grid-template-columns: 5rem 1fr;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(24, 35, 26, 0.08);
}
.pe-drawer__line:last-child { border-bottom: none; padding-bottom: 0; }
.pe-drawer__line-thumb {
  width: 5rem; height: 5rem;
  border-radius: var(--pe-radius-m, 12px);
  overflow: hidden;
  background: var(--pe-cream);
  display: block;
}
.pe-drawer__line-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; margin: 0 !important; }
.pe-drawer__line-body { min-width: 0; }
.pe-drawer__line-name {
  display: block;
  font-family: var(--pe-font-sans) !important;
  font-weight: 500 !important; font-size: 0.875rem !important;
  color: var(--pe-ink) !important; text-decoration: none !important;
  line-height: 1.35;
  margin: 0;
}
.pe-drawer__line-name:hover { color: var(--pe-green-700) !important; }
.pe-drawer__line-sci {
  font-style: italic; font-size: 0.75rem;
  color: rgba(24, 35, 26, 0.6);
  margin: 0.15rem 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pe-drawer__line-price {
  font-size: 0.875rem; font-weight: 600; color: var(--pe-ink);
  margin: 0.4rem 0 0;
  font-feature-settings: "tnum";
  white-space: nowrap; /* el precio nunca se parte (RD$1,790.00 en una línea) */
}
.pe-drawer__line-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: 0.6rem;
}
.pe-drawer__qty {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(24, 35, 26, 0.15);
  border-radius: var(--pe-radius-s, 6px);
}
.pe-drawer__qty-btn {
  display: inline-grid; place-items: center;
  width: 1.85rem; height: 1.85rem;
  background: transparent; border: none; cursor: pointer;
  color: var(--pe-ink);
  transition: background-color 0.15s;
}
.pe-drawer__qty-btn:hover { background: var(--pe-cream); }
.pe-drawer__qty-num {
  min-width: 1.9rem; text-align: center;
  font-size: 0.8125rem; color: var(--pe-ink);
  font-feature-settings: "tnum";
}
.pe-drawer__line-remove {
  font-size: 0.75rem !important; color: rgba(24, 35, 26, 0.55) !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: color 0.15s;
}
.pe-drawer__line-remove:hover { color: var(--pe-error) !important; }
.pe-cart-drawer.is-loading .pe-drawer__lines { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }

/* Con el carrito abierto, esconde botones flotantes de WhatsApp (FAB del tema y
   los plugins más comunes) para que no tapen el subtotal / CTA del drawer. */
body.pe-cart-open .pe-fab,
body.pe-cart-open .joinchat,
body.pe-cart-open .joinchat__button,
body.pe-cart-open .ht-ctc-chat,
body.pe-cart-open .ht_ctc_chat_box,
body.pe-cart-open .wa-chat-box,
body.pe-cart-open .wa-widget,
body.pe-cart-open [class*="whatsapp-chat"],
body.pe-cart-open [id*="whatsapp"] { display: none !important; }

.pe-drawer__totals {
  border-top: 1px solid rgba(24, 35, 26, 0.08);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.875rem;
}
.pe-drawer__totals-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--pe-font-display);
  font-weight: 800; font-size: 1.125rem;
  font-feature-settings: "tnum";
}
.pe-drawer__totals-note {
  font-size: 0.75rem; color: rgba(24, 35, 26, 0.55);
  margin: 0;
}
.pe-drawer__checkout { width: 100%; padding: 1rem !important; font-size: 0.9375rem !important; }
.pe-drawer__whatsapp {
  text-align: center; font-size: 0.8125rem;
  color: rgba(24, 35, 26, 0.6);
  text-decoration: underline; text-underline-offset: 3px;
}
.pe-drawer__whatsapp:hover { color: var(--pe-green-700); }

.pe-drawer__empty {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
  padding: 4rem 1rem;
}
.pe-drawer__empty p { margin: 0.75rem 0 0.5rem; color: rgba(24, 35, 26, 0.65); font-size: 0.9375rem; }
.pe-drawer__shop-link {
  font-size: 0.875rem; font-weight: 600; color: var(--pe-green-700);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Lock body scroll while drawer is open (handled in JS by setting overflow:hidden) */

/* ─── Shop archive ───────────────────────────────────────────────────── */
.pe-shop { padding-top: 0px; padding-bottom: 4rem; }
@media (min-width: 1024px) { .pe-shop { padding-top: 0px; padding-bottom: 6rem; } }

.pe-shop__head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2rem;
}
.pe-shop__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 0;
}
.pe-shop__lede {
  font-size: 0.9375rem; color: rgba(24, 35, 26, 0.6);
  max-width: 36ch; margin: 0; line-height: 1.55;
}

.pe-filters {
  display: flex; flex-direction: column; gap: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(24, 35, 26, 0.08);
}
.pe-filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.pe-filter-row__label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; color: rgba(24, 35, 26, 0.5);
  margin-right: 0.25rem;
}

.pe-pill {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(24, 35, 26, 0.15);
  border-radius: var(--pe-radius-pill, 999px);
  font-size: 0.8125rem; font-weight: 500;
  color: var(--pe-ink); text-decoration: none;
  transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.pe-pill:hover { border-color: var(--pe-ink); }
.pe-pill.is-active {
  background: var(--pe-ink); color: var(--pe-cream);
  border-color: var(--pe-ink);
}

.pe-empty {
  text-align: center; padding: 4rem 1rem;
  color: rgba(24, 35, 26, 0.6);
}
.pe-empty p { margin: 0 0 1rem; font-size: 0.9375rem; }
.pe-empty__reset {
  font-size: 0.875rem; font-weight: 600;
  color: var(--pe-green-700); text-decoration: underline; text-underline-offset: 3px;
}

/* ─── Storefront layout overrides (survive CSS optimizers) ─────────────────
   We OWN the product grid and the full-width layout here instead of relying on
   Storefront's parent stylesheet. If an optimizer (e.g. 10Web "Remove Unused
   CSS") strips the parent CSS, the shop must NOT collapse into a single giant
   column and the sidebar must NOT leak into checkout/account.
   See pe_force_full_width() in functions.php. */

/* Product grid — columns defined by us, not Storefront */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  margin: 0 !important; padding: 0 !important; list-style: none !important;
}
@media (min-width: 700px) and (max-width: 1023px) {
  ul.products           { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.25rem; }
  ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  ul.products           { grid-template-columns: repeat(4, 1fr); gap: 2.25rem 1.5rem; }
  ul.products.columns-1 { grid-template-columns: 1fr; }
  ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
  ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
  ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
  ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }
}
/* Neutralize Storefront's float-based item widths/margins */
ul.products li.product {
  width: auto !important; float: none !important; clear: none !important;
}

/* Full-width: hide sidebar, widen the main column to 100% */
.pe-full-width #primary,
.pe-full-width.woocommerce #primary,
.pe-full-width.woocommerce-page #primary {
  width: 100% !important; float: none !important; margin: 0 !important;
}
.pe-full-width #secondary { display: none !important; }

/* ─── Standard page (page.php): Contacto, Cómo comprar, legal, login… ──── */
.pe-page {
  background: var(--pe-paper);
  padding: 2.5rem 0 4.5rem;
}
.pe-page__inner--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.pe-page__head { margin-bottom: 1.5rem; }
.pe-page__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
}
/* Readable long-form copy for legacy/utility pages */
.pe-prose { font-size: 1rem; line-height: 1.7; color: rgba(24, 35, 26, 0.82); }
.pe-prose > * { margin: 0 0 1.1rem; }
.pe-prose > *:last-child { margin-bottom: 0; }
.pe-prose h1, .pe-prose h2, .pe-prose h3, .pe-prose h4 {
  font-family: var(--pe-font-display);
  color: var(--pe-ink);
  line-height: 1.2;
  margin: 2rem 0 0.75rem;
}
.pe-prose h2 { font-size: 1.5rem; }
.pe-prose h3 { font-size: 1.2rem; }
.pe-prose h4 { font-size: 1.05rem; }
.pe-prose a {
  color: var(--pe-green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pe-prose ul, .pe-prose ol { padding-left: 1.25rem; }
.pe-prose li { margin: 0.35rem 0; }
.pe-prose img { max-width: 100%; height: auto; border-radius: var(--pe-radius-l, 22px); }
.pe-prose strong { color: var(--pe-ink); }

/* Single post cover + comments (single.php) */
.pe-post__cover { margin: 0 0 2rem; }
/* aspect-ratio + cover van INLINE en single.php (a prueba de 10Web). El inline
   fija 16/9; en desktop subimos a 16/7 (panorámica como el prototipo) con
   !important para ganarle al inline cuando este CSS está presente. */
@media (min-width: 1024px) { .pe-post__cover { aspect-ratio: 16 / 7 !important; } }
.pe-post__cover-img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  border-radius: 0; display: block;
}
.pe-post__comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(24, 35, 26, 0.08); }

/* ─── Single post: cabecera, meta, callout, relacionados ─────────────────── */
.pe-post__back-wrap { margin: 0 0 1.25rem; }
.pe-post__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; color: rgba(24, 35, 26, 0.6); text-decoration: none;
  transition: color 0.15s;
}
.pe-post__back:hover { color: var(--pe-green-700, #3d5b39); }

.pe-post__head { margin-bottom: 1.75rem; }
.pe-post__lede {
  margin: 1rem 0 0; font-size: 1.1875rem; line-height: 1.55;
  color: rgba(24, 35, 26, 0.6);
}
.pe-post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin: 1.25rem 0 0; font-size: 0.875rem; color: rgba(24, 35, 26, 0.55);
}
.pe-post__meta-time { display: inline-flex; align-items: center; gap: 0.35rem; }

.pe-post__callout {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem;
  background: var(--pe-cream, #f4ecd8); border-radius: var(--pe-radius-l, 22px);
}
.pe-post__callout-eyebrow { margin: 0 0 0.5rem; }
.pe-post__callout-text { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: rgba(24, 35, 26, 0.75); }
.pe-post__callout-text a { color: var(--pe-green-700, #3d5b39); text-decoration: underline; text-underline-offset: 2px; }

.pe-post__related { margin-top: 0; }
.pe-post__related-title { margin: 0.5rem 0 2rem; }
.pe-post__related-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pe-post__related-grid { grid-template-columns: 1fr 1fr; } }

/* Blog list / archives / search (index.php) */
.pe-postlist { display: grid; gap: 2.5rem; }
.pe-postcard { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .pe-postcard { grid-template-columns: 5fr 7fr; align-items: center; }
}
.pe-postcard__media {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--pe-radius-l, 22px); background: var(--pe-cream);
}
.pe-postcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-postcard__title {
  font-family: var(--pe-font-display); font-size: 1.4rem; line-height: 1.2;
  margin: 0.4rem 0 0.5rem;
}
.pe-postcard__title a { color: var(--pe-ink); text-decoration: none; }
.pe-postcard__title a:hover { color: var(--pe-green-700); }
.pe-postcard__excerpt { color: rgba(24, 35, 26, 0.7); line-height: 1.6; margin: 0 0 0.75rem; }
.pe-postcard__more { color: var(--pe-green-700); font-weight: 600; text-decoration: none; }
.pe-postcard__more:hover { text-decoration: underline; }

/* ─── Product card (content-product.php) ─────────────────────────────── */
.woocommerce ul.products li.product.pe-card,
.pe-card {
  list-style: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important; /* override Storefront's centered product text */
}
.pe-card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--pe-cream);
  border-radius: 0 var(--pe-radius-l, 22px) var(--pe-radius-l, 22px) 0;
  margin-bottom: 0.875rem;
}
.pe-card__media img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; margin: 0 !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pe-card__media:hover img { transform: scale(1.04); }
/* Body is a row: [name + sci + price] on the left, + button on the right
   (aligned to the top), matching the prototype. */
.pe-card__body {
  padding: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
}
.pe-card__info { min-width: 0; }
.pe-card__title {
  font-family: var(--pe-font-sans) !important;
  font-weight: 600 !important; font-size: 0.9375rem !important;
  margin: 0 !important; padding: 0 !important;
  line-height: 1.3;
}
.pe-card__title a { color: var(--pe-ink); text-decoration: none; font-weight: 600; }
.pe-card__title a:hover { color: var(--pe-green-700); }
.pe-card__sci {
  font-size: 0.75rem; color: rgba(24, 35, 26, 0.55);
  margin: 0.15rem 0 0; font-style: italic;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Price: new (red) price first, struck original after — matches the prototype.
   The card now renders <ins>/<del> directly (content-product.php), so target
   .pe-card__price itself, not a .price wrapper. CSS is a fallback for the inline
   styles (10Web "Remove Unused CSS" safety). */
.pe-card__price {
  margin-top: 0.5rem;
  display: flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--pe-font-display); font-weight: 800; font-size: 1rem;
  color: var(--pe-ink);
}
.pe-card__price ins { text-decoration: none; color: var(--pe-error, #a64a3a); font-weight: 800; }
.pe-card__price del { font-size: 0.8125rem; font-weight: 600; color: rgba(24, 35, 26, 0.45); }
.pe-card__price .amount { font-family: var(--pe-font-display); }
.pe-card__add {
  width: 2.25rem; height: 2.25rem;
  display: inline-grid !important; place-items: center;
  background: var(--pe-ink) !important; color: var(--pe-cream) !important;
  border: none !important; border-radius: var(--pe-radius-pill, 999px) !important;
  cursor: pointer; padding: 0 !important;
  flex-shrink: 0; margin-top: 0.25rem;
  transition: background-color 0.18s, transform 0.18s;
}
.pe-card__add:hover { background: var(--pe-green-700) !important; transform: scale(1.06); }
.pe-card__add.loading { opacity: 0.6; }
.pe-card__add.added::after { content: "✓"; position: absolute; }

/* WC-injected "View cart" link after AJAX add */
.woocommerce ul.products li.product .added_to_cart {
  display: none !important; /* drawer opens automatically; hide WC's link */
}

/* ─── PDP (single-product.php) ───────────────────────────────────────── */
.pe-pdp-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(24, 35, 26, 0.5);
  padding: 1.5rem var(--pe-gutter);
}
.pe-pdp-crumbs a { color: rgba(24, 35, 26, 0.65); text-decoration: none; }
.pe-pdp-crumbs a:hover { color: var(--pe-ink); }
.pe-pdp-crumbs__current { color: var(--pe-ink); font-weight: 500; }

.pe-pdp {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .pe-pdp { grid-template-columns: 6fr 6fr; gap: 3rem; padding-bottom: 6rem; }
}

.pe-pdp__media-inner {
  position: relative;
  aspect-ratio: 1 / 1; /* square like the prototype, keeps the asymmetric corners */
  background: var(--pe-cream);
  border-radius: 0 var(--pe-radius-l, 22px) var(--pe-radius-l, 22px) 0;
  overflow: hidden;
}
.pe-pdp__media-inner .pe-sale-badge,
.pe-pdp__media-inner .pe-low-stock-badge { top: 1rem; left: 1rem; }
.pe-pdp__img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; margin: 0 !important;
  border-radius: 0 !important;
}

.pe-pdp__detail {
  position: relative;
}
@media (min-width: 1024px) {
  .pe-pdp__detail-sticky { position: sticky; top: 6rem; }
}

.pe-pdp__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0.5rem 0 0;
}
.pe-pdp__sci {
  font-style: italic; font-size: 0.9375rem;
  color: rgba(24, 35, 26, 0.55); margin: 0.5rem 0 0;
}
.pe-pdp__reviews { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0 0; font-size: 0.8125rem; color: rgba(24, 35, 26, 0.6); }
.pe-pdp__blurb { margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.6; color: rgba(24, 35, 26, 0.78); }
.pe-pdp__blurb p { margin: 0 0 0.75rem; }
.pe-pdp__blurb p:last-child { margin-bottom: 0; }

.pe-pdp__specs {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}
.pe-pdp__specs li {
  display: block;
  background: var(--pe-cream);
  padding: 0.75rem;
  border-radius: 0; /* cuadrado, como el prototipo */
}
.pe-pdp__specs li svg { color: var(--pe-green-700); margin-bottom: 0.375rem; display: block; }
.pe-pdp__specs-label {
  display: block;
  font-size: 0.625rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
  color: rgba(24, 35, 26, 0.65);
  margin: 0 0 0.375rem;
}
.pe-pdp__specs-value {
  font-size: 0.75rem; font-weight: 500;
  color: var(--pe-ink); margin: 0;
  line-height: 1.25;
}

.pe-pdp__buy {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.pe-pdp__price {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.875rem;
}
/* Price: the PDP renders <span.pe-pdp__price-now>/<span.pe-pdp__price-was>
   directly (single-product.php) with inline styles. These rules are a fallback
   (10Web "Remove Unused CSS" safety); the inline styles win if CSS is stripped. */
.pe-pdp__price-now {
  font-family: var(--pe-font-display); font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1;
  letter-spacing: -0.02em; font-feature-settings: "tnum";
}
.pe-pdp__price-now .amount { color: inherit; }
.pe-pdp__price-was {
  font-family: var(--pe-font-display); font-weight: 600;
  font-size: 1.125rem; color: rgba(24, 35, 26, 0.45);
  text-decoration: line-through;
}
.pe-sale-badge--inline {
  position: static !important;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.625rem !important;
  box-shadow: none !important;
}

.pe-pdp__form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.pe-pdp__form .quantity {
  flex-shrink: 0;
  display: inline-flex; align-items: stretch;
  border: 1.5px solid rgba(24, 35, 26, 0.14);
  border-radius: var(--pe-radius-s, 6px);
  overflow: hidden;
}
.pe-pdp__form .quantity input.qty {
  width: 3rem !important; height: auto;
  text-align: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--pe-font-display) !important;
  font-weight: 700 !important; font-size: 1rem !important;
  padding: 0.5rem 0.25rem !important;
  -moz-appearance: textfield;
}
.pe-pdp__form .quantity input.qty::-webkit-outer-spin-button,
.pe-pdp__form .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pe-qty-btn {
  display: inline-grid; place-items: center; width: 2.75rem;
  background: transparent; border: none; cursor: pointer;
  color: var(--pe-ink); transition: background-color 0.15s;
}
.pe-qty-btn:hover { background: var(--pe-cream); }
.pe-pdp__form .single_add_to_cart_button {
  flex: 1; min-width: 12rem;
  background: var(--pe-green-700) !important;
}
.pe-pdp__form .single_add_to_cart_button:hover { background: var(--pe-green-800) !important; }

.pe-pdp__trust {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.pe-pdp__trust li {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.8125rem; color: rgba(24, 35, 26, 0.78);
}
.pe-pdp__trust svg { color: var(--pe-green-700); flex-shrink: 0; }

.pe-pdp__whatsapp {
  display: inline-block;
  text-align: left;
  font-size: 0.8125rem; color: var(--pe-green-700);
  text-decoration: underline; text-underline-offset: 3px;
}
.pe-pdp__whatsapp:hover { color: var(--pe-green-700); }

/* PDP caresheet */
.pe-pdp-care {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .pe-pdp-care { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.pe-pdp-care__lede h2 { margin-top: 0.5rem; }
.pe-pdp-care__body { font-size: 1rem; line-height: 1.7; color: rgba(24, 35, 26, 0.78); }
.pe-pdp-care__body p { margin: 0 0 1rem; }
.pe-pdp-care__body h3 {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.125rem !important;
  margin: 1.75rem 0 0.5rem;
}
.pe-pdp-care__body ul, .pe-pdp-care__body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.pe-pdp-care__body li { margin: 0 0 0.375rem; }

/* Related products section */
.related.products h2, .related h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  margin: 0 0 2rem;
}

/* ─── Blog (category.php) ────────────────────────────────────────────── */
.pe-blog__title { margin-top: 0.5rem; font-size: clamp(2.25rem, 4vw, 3.25rem); }

.pe-blog__pills {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem;
}

.pe-blog-featured {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  text-decoration: none; color: inherit;
}
@media (min-width: 1024px) { .pe-blog-featured { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; } }
.pe-blog-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pe-cream);
  border-radius: var(--pe-radius-l, 22px);
}
.pe-blog-featured__media img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pe-blog-featured:hover .pe-blog-featured__media img { transform: scale(1.03); }
.pe-blog-featured__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--pe-butter); color: var(--pe-green-900);
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--pe-radius-pill, 999px);
}
.pe-blog-featured__title { margin: 0.5rem 0; }
.pe-blog-featured__excerpt {
  font-size: 1rem; line-height: 1.6;
  color: rgba(24, 35, 26, 0.7);
  margin: 0.75rem 0;
}
.pe-blog-featured__more {
  display: inline-block; margin-top: 1rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--pe-green-700);
}
.pe-blog-featured:hover .pe-blog-featured__more { text-decoration: underline; text-underline-offset: 3px; }

.pe-blog__meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(24, 35, 26, 0.5);
  margin: 0.5rem 0 0;
}

.pe-blog__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .pe-blog__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1024px) { .pe-blog__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.pe-blog-card { display: flex; flex-direction: column; }
.pe-blog-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pe-cream);
  border-radius: var(--pe-radius-l, 22px);
  margin-bottom: 1rem;
}
.pe-blog-card__media img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pe-blog-card__media:hover img { transform: scale(1.04); }
.pe-blog-card__cat { color: var(--pe-green-700); margin-bottom: 0.5rem; }
.pe-blog-card__title {
  font-family: var(--pe-font-display);
  font-weight: 700; font-size: 1.125rem !important;
  margin: 0 0 0.5rem; line-height: 1.3;
}
.pe-blog-card__title a { color: var(--pe-ink); text-decoration: none; }
.pe-blog-card__title a:hover { color: var(--pe-green-700); }
.pe-blog-card__excerpt {
  font-size: 0.9375rem; line-height: 1.55;
  color: rgba(24, 35, 26, 0.65);
  margin: 0;
}

.pe-pagination-wrap { margin-top: 3.5rem; }

/* ─── Mega menu (full-width panel, matches prototype) ────────────────── */
.pe-megamenu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--pe-paper);
  border-top: 1px solid rgba(24, 35, 26, 0.1);
  box-shadow: 0 28px 56px -28px rgba(31, 51, 32, 0.28);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.pe-megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.pe-mega {
  display: grid; grid-template-columns: 7fr 5fr; gap: 3rem;
  padding-top: 2rem; padding-bottom: 2.5rem;
  align-items: stretch;
}
.pe-mega__eyebrow { margin-bottom: 1.25rem; }
.pe-mega__subs { min-width: 0; }
.pe-mega__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1.5rem;
}
.pe-mega__item { padding: 0; }
.pe-mega__link {
  display: block; padding: 0.75rem; margin: 0 -0.5rem;
  border-radius: var(--pe-radius-m, 12px);
  text-decoration: none !important;
  transition: background-color 0.15s;
}
.pe-mega__link:hover { background: var(--pe-cream); }
.pe-mega__sub-label {
  display: block;
  font-family: var(--pe-font-display);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: var(--pe-ink) !important;
  transition: color 0.15s;
}
.pe-mega__link:hover .pe-mega__sub-label { color: var(--pe-green-700) !important; }
.pe-mega__sub-desc { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: rgba(24, 35, 26, 0.55); }
.pe-mega__all {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--pe-green-700) !important; text-decoration: none !important;
  transition: gap 0.15s;
}
.pe-mega__all:hover { gap: 0.75rem; }

.pe-mega__card {
  position: relative; display: block;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--pe-radius-l, 22px);
  background: var(--pe-green-900);
  text-decoration: none !important;
}
.pe-mega__card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pe-mega__card:hover .pe-mega__card-img { transform: scale(1.04); }
.pe-mega__card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31, 51, 32, 0.85), rgba(31, 51, 32, 0.3) 50%, transparent);
}
.pe-mega__card-copy { position: absolute; inset: auto 0 0 0; padding: 1.25rem 1.5rem; }
.pe-mega__card-eyebrow { color: var(--pe-butter) !important; }
.pe-mega__card-tagline {
  display: block; margin-top: 0.5rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1.35;
  color: var(--pe-cream); max-width: 28ch;
}

@media (max-width: 1023px) { .pe-megamenu { display: none !important; } }

div.product::before, .single-product div.product::after {
    content: none!important;
    display: table;
}

ul.products::before,ul.products::after {
  content: none!important;
  display: none;
}