/* JH Sistemas - estilos de la ficha de producto (antes en themes/classic/assets/css/custom.css) */

/* ==== JH Sistemas: ficha de producto (agregado 2026-10) ==== */
/* Se usa con las clases jh-* que van en el Resumen y la Descripción de cada producto. */

.jh-resumen { margin: 10px 0 14px; color: #333; }

.jh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.jh-chips span { background: #eaf7fb; color: #1b7f97; border: 1px solid #bfe6f0; border-radius: 20px; padding: 3px 11px; font-size: 13px; font-weight: 600; }

.jh-puntos, .jh-modelos, .jh-puntos li, .jh-modelos li { list-style: none !important; }
.jh-puntos { padding: 0; margin: 0 0 12px; }
.jh-puntos li { position: relative; padding: 3px 0 3px 22px; font-size: 15px; }
.jh-puntos li::before { content: "✔"; position: absolute; left: 0; top: 3px; color: #1a8f4a; font-weight: 700; }

.jh-aviso { background: #fff8e1; border: 1px solid #f1d58a; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin: 0 0 12px; }

.jh-sellos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.jh-sellos div { border: 1px solid #e3e8ec; border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 12px; color: #4a5a66; background: #fff; line-height: 1.3; }
.jh-sellos b { display: block; font-size: 20px; margin-bottom: 2px; }

.jh-desc { color: #333; line-height: 1.5; }
.jh-intro { font-size: 15px; margin-bottom: 14px; }
.jh-h { font-size: 17px; color: #1b7f97; margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #eaf7fb; text-transform: none; }

.jh-specs { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14px; }
.jh-specs td { padding: 6px 8px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.jh-specs td:first-child { width: 45%; color: #5b6b78; }
.jh-specs tr:nth-child(odd) td { background: #f8fbfc; }

.jh-series { padding-left: 18px; margin: 0; font-size: 14px; }
.jh-series li { margin: 2px 0; }

.jh-nota { font-size: 13px; color: #5b6b78; margin: 0 0 8px; }
.jh-modelos { list-style: none; margin: 0; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 0 14px; font-size: 13px; line-height: 1.75;
  max-height: 300px; overflow-y: auto; overflow-x: hidden; border: 1px solid #e3e8ec; border-radius: 8px; background: #fbfcfd; }
.jh-modelos li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.jh-faq .jh-q { font-weight: 700; margin: 12px 0 2px; color: #222; }
.jh-faq .jh-q::before { content: "＋ "; color: #1b7f97; }
.jh-faq p { margin: 0 0 4px; font-size: 14px; }

@media (max-width: 767px) {
  .jh-sellos { grid-template-columns: repeat(2, 1fr); }
  .jh-modelos { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); max-height: 260px; }
}

/* Preguntas frecuentes desplegables (＋ / －): las activa jh-desktop-product-zoom.js */
.jh-faq-js .jh-q { cursor: pointer; position: relative; margin: 0; padding: 10px 0 10px 24px; border-top: 1px solid #eef1f4; }
.jh-faq-js .jh-q::before { content: "＋"; position: absolute; left: 0; top: 9px; color: #1b7f97; }
.jh-faq-js .jh-q.abierta::before { content: "－"; }
.jh-faq-js .jh-q:hover { color: #1b7f97; }
.jh-faq-js .jh-q + p { display: none; margin: 0 0 10px 24px; }
.jh-faq-js .jh-q.abierta + p { display: block; }

/* Estrellas de las opiniones debajo del título del producto (product.tpl) */
.jh-estrellas-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: -6px 0 12px; }
/* Sin opiniones no ocupa espacio; el módulo agrega has-reviews cuando hay al menos una. */
.jh-estrellas-titulo:not(.has-reviews) { display: none; }
.jh-estrellas-titulo .product-list-reviews { position: static; width: auto; justify-content: flex-start; align-items: center; background: none; padding: 0; }
.jh-estrellas-titulo .product-list-reviews .comments-nb { font-size: 13px; color: #555; margin-left: 6px; }
.jh-estrellas-titulo .jh-ver-opiniones { display: none; font-size: 13px; color: #1b7f97; }
.jh-estrellas-titulo.has-reviews .jh-ver-opiniones { display: inline; }

/* Precio e "Incluido IGV" juntos (el tema separaba cada línea con 10px + 10px) */
.product-prices .product-price,
.product-prices .current-price { margin-bottom: 0 !important; }
.product-prices .current-price-value { line-height: 1.2; }
.product-prices .tax-shipping-delivery-label { margin-top: 4px !important; margin-bottom: 14px !important; line-height: 1.3; }
