/* ============================================================
   JH Product page — premium product detail page (PDP)
   Layout: hero 2-col (gallery sticky + info) + tabs + related + mobile bar
   Paleta: dorado #f6c34f / #d4a040, negro #111, blanco
   ============================================================ */

.jh-product-page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  --jh-pp-gold: #f6c34f;
  --jh-pp-gold-dark: #d4a040;
  --jh-pp-line: #ececec;
  --jh-pp-text-soft: #666;
  --jh-pp-text-muted: #999;
  margin: 0;
  padding: 0;
  /* Romper max-width del padre y ocupar todo el viewport */
  width: auto;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: none;
}

/* Reset wrappers PrestaShop classic + main para que el fondo gris vaya a topes */
body#product, body.product-id { background: #fafafa !important; }
body#product #wrapper, body.product-id #wrapper,
body#product #content-wrapper, body.product-id #content-wrapper,
body#product #main, body.product-id #main,
body#product main, body.product-id main,
body#product .container, body.product-id .container,
body#product .row.product-container, body.product-id .row.product-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100% !important;
}

/* ============================================================
   HERO — gallery + info
   ============================================================ */
.jh-pp-hero {
  max-width: 1340px;
  margin: 0 auto;
  padding: 32px 32px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  background: #fafafa;
}

/* ============================================================
   GALLERY (left column)
   ============================================================ */
.jh-pp-gallery {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jh-pp-gallery__wrap {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: start;
}
.jh-pp-gallery__main {
  position: relative;
  background: #fff;
  border: 1px solid var(--jh-pp-line);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jh-pp-gallery__main--empty {
  flex-direction: column;
  gap: 12px;
  color: var(--jh-pp-text-muted);
}
.jh-pp-gallery__main-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  position: relative;
}
/* FIX: imagen principal cubre el marco completo (object-fit: cover) en vez
   de dejar bordes blancos por contain. */
.jh-pp-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.jh-pp-gallery__main-link:hover .jh-pp-gallery__main-img {
  transform: scale(1.08);
}
.jh-pp-gallery__zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.jh-pp-gallery__main-link:hover .jh-pp-gallery__zoom-icon {
  opacity: 1;
  transform: translateY(0);
}
/* Thumbs verticales en desktop */
.jh-pp-gallery__thumbs {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.jh-pp-gallery__thumb {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 2px solid var(--jh-pp-line);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, transform .12s ease;
}
/* FIX: thumbs cubren el marco sin bordes blancos */
.jh-pp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jh-pp-gallery__thumb:hover { border-color: #ccc; transform: translateY(-1px); }
.jh-pp-gallery__thumb.is-active {
  border-color: var(--jh-pp-gold-dark);
  box-shadow: 0 0 0 3px rgba(246, 195, 79, .15);
}

/* ============================================================
   INFO (right column)
   ============================================================ */
.jh-pp-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jh-pp-breadcrumb {
  font-size: 12px;
  color: var(--jh-pp-text-muted);
  letter-spacing: .02em;
}
.jh-pp-breadcrumb a {
  color: var(--jh-pp-text-soft);
  text-decoration: none;
  transition: color .15s ease;
}
.jh-pp-breadcrumb a:hover { color: #111; }
.jh-pp-breadcrumb__sep { margin: 0 6px; color: var(--jh-pp-text-muted); }
.jh-pp-breadcrumb__cur { color: #111; font-weight: 500; }

.jh-pp-brand {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(246, 195, 79, .15), rgba(246, 195, 79, .08));
  color: var(--jh-pp-gold-dark);
  border: 1px solid rgba(246, 195, 79, .35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  width: max-content;
  transition: transform .15s ease;
}
.jh-pp-brand:hover { transform: translateY(-1px); color: var(--jh-pp-gold-dark); }

.jh-pp-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: #111;
}

.jh-pp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--jh-pp-text-soft);
  min-height: 1px; /* placeholder si vacío */
}
.jh-pp-rating:empty { display: none; }

.jh-pp-ref {
  margin: 0;
  font-size: 12px;
  color: var(--jh-pp-text-muted);
}
.jh-pp-ref strong { color: #555; font-weight: 600; }

.jh-pp-desc-short {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--jh-pp-text-soft);
  padding: 14px 16px;
  background: #f7f7f7;
  border-left: 3px solid var(--jh-pp-gold);
  border-radius: 0 10px 10px 0;
}
.jh-pp-desc-short p { margin: 0; }
.jh-pp-desc-short p + p { margin-top: 8px; }

/* PRECIO */
.jh-pp-price-block {
  padding: 18px 0;
  border-top: 1px solid var(--jh-pp-line);
  border-bottom: 1px solid var(--jh-pp-line);
}
.jh-pp-prices__discount-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.jh-pp-prices__regular {
  font-size: 18px;
  color: var(--jh-pp-text-muted);
  text-decoration: line-through;
}
.jh-pp-prices__badge {
  display: inline-block;
  padding: 4px 10px;
  background: #dc2626;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.jh-pp-prices__current-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.jh-pp-prices__current {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 900;
  color: #111;
  letter-spacing: -.02em;
  line-height: 1;
}
.jh-pp-prices__tax {
  font-size: 12.5px;
  color: var(--jh-pp-text-muted);
}
.jh-pp-prices__unit {
  margin-top: 6px;
  font-size: 12px;
  color: var(--jh-pp-text-muted);
}
.jh-pp-shipping-hint {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* ACTIONS: qty + cta + stock */
.jh-pp-actions { display: flex; flex-direction: column; gap: 14px; }
.jh-pp-cart-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jh-pp-stock { min-height: 1px; }
.jh-pp-stock__indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.jh-pp-stock__indicator.is-available {
  background: rgba(22, 163, 74, .08);
  color: #16a34a;
}
.jh-pp-stock__indicator.is-low {
  background: rgba(234, 88, 12, .08);
  color: #ea580c;
}
.jh-pp-stock__indicator.is-out {
  background: rgba(220, 38, 38, .08);
  color: #dc2626;
}
.jh-pp-stock__indicator svg { width: 8px; height: 8px; }

.jh-pp-qty { display: flex; align-items: center; gap: 14px; }
.jh-pp-qty__label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 0;
}
.jh-pp-qty__stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.jh-pp-qty__btn {
  width: 42px;
  height: 44px;
  background: #fff;
  border: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: background .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jh-pp-qty__btn:hover { background: #f7f7f7; }
.jh-pp-qty__btn:active { background: #eee; }
.jh-pp-qty__input {
  width: 50px;
  height: 44px;
  border: 0;
  border-left: 1.5px solid #eee;
  border-right: 1.5px solid #eee;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  color: #111;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  outline: none;
}
/* QUITAR las flechas nativas spin del navegador (Chrome/Safari/Edge/Firefox) */
input.jh-pp-qty__input::-webkit-outer-spin-button,
input.jh-pp-qty__input::-webkit-inner-spin-button,
.jh-pp-qty input[type="number"]::-webkit-outer-spin-button,
.jh-pp-qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  display: none !important;
}
.jh-pp-qty input[type="number"] {
  -moz-appearance: textfield !important;
}
.jh-pp-qty__input:focus { background: #fffaef; }

/* CTA principal */
.jh-pp-add-to-cart {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #111, #000);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 18px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .12s ease, box-shadow .25s ease;
  overflow: hidden;
  min-height: 56px;
  box-shadow: 0 6px 18px rgba(17, 17, 17, .18);
}
.jh-pp-add-to-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--jh-pp-gold), var(--jh-pp-gold-dark));
  opacity: 0;
  transition: opacity .25s ease;
}
.jh-pp-add-to-cart > * { position: relative; z-index: 1; }
.jh-pp-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(246, 195, 79, .35);
  color: #111;
}
.jh-pp-add-to-cart:hover::before { opacity: 1; }
.jh-pp-add-to-cart:active { transform: translateY(0); }
.jh-pp-add-to-cart__arrow { transition: transform .2s ease; }
.jh-pp-add-to-cart:hover .jh-pp-add-to-cart__arrow { transform: translateX(4px); }
.jh-pp-add-to-cart.is-disabled,
.jh-pp-add-to-cart:disabled {
  background: #ddd !important;
  color: #999 !important;
  cursor: not-allowed;
  box-shadow: none;
}
.jh-pp-add-to-cart.is-disabled::before { display: none; }
.jh-pp-min-qty {
  margin: 0;
  font-size: 12px;
  color: var(--jh-pp-text-muted);
  font-style: italic;
}

/* TRUST badges — texto puede ser largo, dejamos que respire bien */
.jh-pp-trust {
  list-style: none;
  margin: 8px 0 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--jh-pp-line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.jh-pp-trust li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  min-width: 0;
}
.jh-pp-trust > li > svg { color: var(--jh-pp-gold-dark); margin-top: 2px; flex-shrink: 0; }
.jh-pp-trust__text { min-width: 0; }
.jh-pp-trust strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.3;
}
.jh-pp-trust span {
  display: block;
  color: var(--jh-pp-text-muted);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

/* WISHLIST + SHARE */
.jh-pp-secondary {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.jh-pp-wishlist, .jh-pp-share {
  flex: 1;
  background: #fff;
  border: 1px solid var(--jh-pp-line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.jh-pp-wishlist:hover, .jh-pp-share:hover {
  background: #fff8e7;
  color: #111;
  border-color: var(--jh-pp-gold);
}
.jh-pp-wishlist.is-active {
  background: #fff8e7;
  color: var(--jh-pp-gold-dark);
  border-color: var(--jh-pp-gold);
}
.jh-pp-wishlist.is-active svg { fill: var(--jh-pp-gold-dark); }

.jh-pp-share-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--jh-pp-line);
  border-radius: 10px;
  margin-top: 6px;
  animation: jhPpShareIn .2s ease;
}
@keyframes jhPpShareIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.jh-pp-share-menu a, .jh-pp-share-menu button {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  background: #f4f4f4;
  border: 0;
  border-radius: 999px;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.jh-pp-share-menu a:hover, .jh-pp-share-menu button:hover {
  background: #111;
  color: #fff;
}

/* ============================================================
   TABS
   ============================================================ */
.jh-pp-tabs {
  max-width: 1340px;
  margin: 0 auto;
  padding: 32px 32px 48px;
  background: #fff;
  border-top: 1px solid var(--jh-pp-line);
}
.jh-pp-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--jh-pp-line);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jh-pp-tabs__nav::-webkit-scrollbar { display: none; }
.jh-pp-tab {
  padding: 14px 22px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jh-pp-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.jh-pp-tab:hover { color: #555; }
.jh-pp-tab.is-active {
  color: #111;
  border-bottom-color: var(--jh-pp-gold);
}
.jh-pp-tabs__content { min-height: 200px; }
.jh-pp-tab-pane { display: none; animation: jhPpTabIn .25s ease; }
.jh-pp-tab-pane.is-active { display: block; }
@keyframes jhPpTabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.jh-pp-tab-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111;
}
.jh-pp-description {
  font-size: 15px;
  line-height: 1.75;
  color: #2a2a2a;
}
.jh-pp-description p { margin: 0 0 14px; }
.jh-pp-description ul, .jh-pp-description ol {
  padding-left: 24px;
  margin: 0 0 14px;
}
.jh-pp-description li { margin-bottom: 4px; }
.jh-pp-description img { max-width: 100%; height: auto; border-radius: 10px; }
.jh-pp-description a { color: var(--jh-pp-gold-dark); text-decoration: underline; text-underline-offset: 2px; }

/* FEATURES */
.jh-pp-features {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--jh-pp-line);
}
.jh-pp-features__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--jh-pp-line);
  font-size: 13.5px;
}
.jh-pp-features__label {
  margin: 0;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: .04em;
}
.jh-pp-features__value { margin: 0; color: #111; }

/* SHIPPING info */
.jh-pp-shipping { display: grid; gap: 18px; }
.jh-pp-shipping__item {
  padding: 16px 18px;
  background: #fafafa;
  border-left: 3px solid var(--jh-pp-gold);
  border-radius: 0 10px 10px 0;
}
.jh-pp-shipping__item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.jh-pp-shipping__item p { margin: 0; font-size: 13px; color: var(--jh-pp-text-soft); line-height: 1.5; }

/* REVIEWS empty state */
.jh-pp-reviews-empty {
  padding: 32px;
  text-align: center;
  background: #fafafa;
  border-radius: 12px;
  color: var(--jh-pp-text-muted);
}

/* ATTACHMENTS */
.jh-pp-attachment {
  padding: 16px 18px;
  border: 1px solid var(--jh-pp-line);
  border-radius: 10px;
  margin-bottom: 12px;
}
.jh-pp-attachment h4 { margin: 0 0 4px; font-size: 14.5px; }
.jh-pp-attachment h4 a { color: #111; text-decoration: none; font-weight: 700; }
.jh-pp-attachment p { margin: 0 0 8px; font-size: 13px; color: var(--jh-pp-text-soft); }
.jh-pp-attachment__link {
  font-size: 12.5px;
  color: var(--jh-pp-gold-dark);
  text-decoration: none;
  font-weight: 700;
}
.jh-pp-attachment__link:hover { text-decoration: underline; }

/* ============================================================
   RELATED / Cross-sell
   ============================================================ */
.jh-pp-related {
  max-width: 1340px;
  margin: 0 auto;
  padding: 48px 32px;
  background: #fafafa;
}
.jh-pp-related__title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111;
}
.jh-pp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.jh-pp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100050;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: jhPpLightboxIn .3s ease;
}
@keyframes jhPpLightboxIn { from { opacity: 0; } to { opacity: 1; } }
.jh-pp-lightbox[hidden] { display: none !important; }
.jh-pp-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.jh-pp-lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.jh-pp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.jh-pp-lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.jh-pp-lightbox__nav--prev { left: 18px; }
.jh-pp-lightbox__nav--next { right: 18px; }
.jh-pp-lightbox__stage {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jh-pp-lightbox__stage img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.jh-pp-lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.jh-pp-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--jh-pp-line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
}
.jh-pp-mobile-bar[hidden] { display: none !important; }
.jh-pp-mobile-bar__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.jh-pp-mobile-bar__img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f7f7;
  flex-shrink: 0;
}
.jh-pp-mobile-bar__text { display: flex; flex-direction: column; min-width: 0; }
.jh-pp-mobile-bar__name {
  font-size: 12.5px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jh-pp-mobile-bar__price {
  font-size: 14px;
  font-weight: 800;
  color: #111;
}
.jh-pp-mobile-bar__cta {
  background: linear-gradient(135deg, #111, #000);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  flex-shrink: 0;
}
.jh-pp-mobile-bar__cta:hover {
  background: linear-gradient(135deg, var(--jh-pp-gold), var(--jh-pp-gold-dark));
  color: #111;
}

/* ============================================================
   MOBILE responsive
   ============================================================ */
@media (max-width: 900px) {
  .jh-pp-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 32px;
  }
  .jh-pp-gallery { position: static; }
  .jh-pp-gallery__wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Thumbs horizontales con swipe en mobile */
  .jh-pp-gallery__thumbs {
    order: 1;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }
  .jh-pp-gallery__thumb { width: 64px; height: 64px; flex: 0 0 64px; }
  .jh-pp-trust {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }
  .jh-pp-trust li { font-size: 11.5px; }
  .jh-pp-trust strong { font-size: 12px; }
  .jh-pp-trust span { font-size: 11px; }
  .jh-pp-tabs { padding: 24px 16px 32px; }
  .jh-pp-tab { padding: 12px 16px; font-size: 12.5px; }
  .jh-pp-tab-title { font-size: 18px; }
  .jh-pp-related { padding: 32px 16px; }
  .jh-pp-related__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Mobile bar SIEMPRE visible en mobile */
  .jh-pp-mobile-bar { display: flex !important; }
  .jh-pp-mobile-bar[hidden] { display: none !important; }
  /* Padding bottom para que el sticky bar no tape contenido */
  .jh-product-page { padding-bottom: 80px; }
}

/* ============================================================
   PRODUCTCOMMENTS módulo — overrides estéticos GLOBALES
   El módulo inyecta sus botones con .btn .btn-primary y a veces fuera del
   tab pane. Cubrimos: cualquier botón productcomments en TODO el body de
   product, dentro del modal de post-comment, y el typical botón "Escribir
   reseña" con id #product-comments-list-header_open o similar.
   ============================================================ */
body#product .product-comments .btn,
body.product-id .product-comments .btn,
body#product #product-comments-list-header .btn,
body.product-id #product-comments-list-header .btn,
body#product .open-comment-form,
body.product-id .open-comment-form,
body#product .post-product-comment,
body.product-id .post-product-comment,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .btn,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] button.btn,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] a.btn,
#post-product-comment-modal .btn,
#post-product-comment-modal button.btn {
  background: linear-gradient(135deg, #111, #000) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 22px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 4px 12px rgba(17, 17, 17, .15);
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center;
  line-height: 1.2;
}
/* Iconos dentro del botón productcomments (.material-icons del módulo) */
body#product .product-comments .btn .material-icons,
body.product-id .product-comments .btn .material-icons,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .btn .material-icons,
body#product .open-comment-form .material-icons,
body.product-id .open-comment-form .material-icons {
  font-size: 16px !important;
  margin: 0 !important;
}
body#product .product-comments .btn:hover,
body.product-id .product-comments .btn:hover,
body#product #product-comments-list-header .btn:hover,
body.product-id #product-comments-list-header .btn:hover,
body#product .open-comment-form:hover,
body.product-id .open-comment-form:hover,
body#product .post-product-comment:hover,
body.product-id .post-product-comment:hover,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .btn:hover,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] button.btn:hover,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] a.btn:hover,
#post-product-comment-modal .btn:hover,
#post-product-comment-modal button.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f6c34f, #d4a040) !important;
  color: #111 !important;
  box-shadow: 0 8px 20px rgba(246, 195, 79, .3);
}
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .btn-secondary {
  background: #f4f4f4 !important;
  color: #555 !important;
  box-shadow: none !important;
}
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .btn-secondary:hover {
  background: #111 !important;
  color: #fff !important;
}
/* Los wrappers internos del módulo reviews */
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] #product-comments-list-header,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .product-comment-list,
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .product-comment {
  font-family: inherit;
  color: #2a2a2a;
}
.jh-pp-tab-pane[data-jh-pp-pane="reviews"] .product-comment {
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--jh-pp-line);
}
/* Si productcomments aparece, ocultar nuestro placeholder vacío */
.jh-pp-tab-pane[data-jh-pp-pane="reviews"]:has(.product-comment-list, .product-comment, #product-comments-list-header) .jh-pp-reviews-empty {
  display: none;
}
