/* Rediseno de la ficha de producto (04/10/2026). Se carga despues de ediprem-ficha.min.css,
   solo en la ficha (bloque head de product.tpl). Fuente: ediprem/web/ficha_rediseno_20261004/.
   Todo cuelga de #product .ef2 para ganar al CSS combinado del tema. */

#product .ef2 { --ef2-borde: #e4e4e4; --ef2-suave: #f6f6f4; --ef2-gris: #5f6368; --ef2-estrella: #FFBA00; }

/* ---------- Bloque superior: galeria + compra ---------- */
#product .ef2 .ef2-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin: 8px 0 0;
}
#product .ef2 .ef2-galeria, #product .ef2 .ef2-compra { min-width: 0; }
#product .ef2 .ef2-galeria .page-content { margin: 0; padding: 0; }
@media (min-width: 992px) {
  #product .ef2 .ef2-galeria { position: sticky; top: 16px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  #product .ef2 .ef2-top { gap: 24px; }
}
@media (max-width: 767px) {
  #product .ef2 .ef2-top { display: block; }
}
#product .ef2 .product-cover img { border-radius: 8px; }

/* Cabecera de la compra */
#product .ef2 .producto-titulo {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}
#product .ef2 .ef2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0 0 14px;
  font-size: 14px;
}
#product .ef2 .ef2-meta .producto-referencia { margin: 0; }
#product .ef2 .ef2-google { color: inherit; text-decoration: none; white-space: nowrap; }
#product .ef2 .ef2-google:hover { text-decoration: underline; }
#product .ef2 .ef2-estrellas { color: var(--ef2-estrella); letter-spacing: 1px; }

#product .ef2 .ef2-entradilla { margin: 0 0 16px; }
#product .ef2 .ef2-entradilla-texto {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #333;
  line-height: 1.55;
}
#product .ef2 .ef2-entradilla-texto p { margin: 0; }
#product .ef2 .ef2-leer-mas { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 500; color: #111; text-decoration: underline; text-underline-offset: 3px; }
#product .ef2 .ef2-plazo-stock { margin: 0 0 12px; font-weight: 600; }

/* Precio */
#product .ef2 .product-prices { margin: 0 0 12px; }
#product .ef2 .precio-unitario { display: block; margin: 0 0 12px; }
#product .ef2 .label-precio-unitario {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ef2-gris);
  margin: 0 0 2px;
}
#product .ef2 .ef2-precio-linea { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
#product .ef2 .ef2-precio-linea .precio-principal { font-size: 38px; line-height: 1.1; font-weight: 700; color: #111; }
#product .ef2 .ef2-iva { font-size: 15px; color: var(--ef2-gris); font-weight: 400; }
#product .ef2 .ef2-desde {
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f5ec;
  color: #1e6b34;
  font-size: 13px;
  font-weight: 600;
}
#product .ef2 .ef-tramos { max-width: 460px; }
#product .ef2 .precio-volumen-valor small { font-size: 13px; font-weight: 400; }

/* Ventajas junto al precio */
#product .ef2 .ef2-ventajas {
  list-style: none;
  margin: 4px 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#product .ef2 .ef2-ventajas li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ef2-suave);
  font-size: 13px;
  line-height: 1.35;
}
#product .ef2 .ef2-ventajas svg {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ef-amarillo, #fad805);
  color: #111;
}
#product .ef2 .ef2-ventajas b { display: block; font-weight: 600; }
#product .ef2 .ef2-ventajas a { color: inherit; }
@media (max-width: 1199px) and (min-width: 768px) {
  #product .ef2 .ef2-ventajas { grid-template-columns: 1fr; }
  #product .ef2 .ef2-ventajas li { align-items: center; }
  #product .ef2 .ef2-ventajas b { display: inline; }
}
@media (max-width: 767px) {
  #product .ef2 .producto-titulo { font-size: 23px; }
  #product .ef2 .ef2-precio-linea .precio-principal { font-size: 32px; }
  #product .ef2 .ef2-ventajas { grid-template-columns: 1fr; gap: 6px; }
  #product .ef2 .ef2-ventajas li { align-items: center; padding: 8px 10px; }
  #product .ef2 .ef2-ventajas b { display: inline; }
}

/* Resumen y CTA */
#product .ef2 .product-add-to-cart .add-to-cart { min-width: 260px; min-height: 48px; font-size: 15px; border-radius: 8px; }
@media (max-width: 767px) {
  #product .ef2 .product-add-to-cart .add-to-cart { width: 100%; }
}

/* ---------- Informacion inferior ---------- */
#product .ef2 .ef2-info { margin: 56px 0 24px; }
#product .ef2 .ef2-anclas {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--ef2-borde);
  margin: 0 0 32px;
  scrollbar-width: none;
}
#product .ef2 .ef2-anclas::-webkit-scrollbar { display: none; }
#product .ef2 .ef2-anclas a {
  flex: 0 0 auto;
  padding: 12px 14px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
#product .ef2 .ef2-anclas a:hover, #product .ef2 .ef2-anclas a:focus-visible { border-bottom-color: var(--ef-amarillo, #fad805); color: #111; }

#product .ef2 .ef2-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}
#product .ef2 .ef2-info-main, #product .ef2 .ef2-info-aside { min-width: 0; }
@media (min-width: 992px) {
  #product .ef2 .ef2-info-aside { position: sticky; top: 16px; }
}
@media (max-width: 991px) {
  #product .ef2 .ef2-info-grid { display: flex; flex-direction: column; gap: 0; }
  /* en movil las caracteristicas van justo despues de la descripcion */
  #product .ef2 .ef2-info-aside { display: contents; }
  #product .ef2 #ef-caracteristicas { order: 0; }
  #product .ef2 .ef2-info-main { display: contents; }
  #product .ef2 #ef-descripcion { order: -1; }
  #product .ef2 #ef-personalizacion { order: 1; }
  #product .ef2 #ef-envio { order: 2; }
  #product .ef2 #ef-faq { order: 3; }
  #product .ef2 .ef2-tarjeta-ayuda { order: 4; }
}

#product .ef2 .ef2-bloque { margin: 0 0 44px; scroll-margin-top: 90px; }
#product .ef2 .ef2-bloque h2, #product .ef2 .ef2-tarjeta h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}
#product .ef2 .ef2-h2-sub { font-weight: 400; color: var(--ef2-gris); }
#product .ef2 .product-description { line-height: 1.7; color: #333; max-width: 72ch; }
#product .ef2 .product-description p { margin: 0 0 12px; }

#product .ef2 .ef2-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
#product .ef2 .ef2-chips li { padding: 6px 12px; border: 1px solid var(--ef2-borde); border-radius: 999px; font-size: 14px; background: #fff; }

#product .ef2 .ef2-pasos {
  list-style: none;
  counter-reset: ef2paso;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
}
#product .ef2 .ef2-pasos li {
  counter-increment: ef2paso;
  padding: 16px;
  border-radius: 12px;
  background: var(--ef2-suave);
  font-size: 14px;
  line-height: 1.45;
}
#product .ef2 .ef2-pasos li::before {
  content: counter(ef2paso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin: 0 0 10px;
  border-radius: 50%;
  background: var(--ef-amarillo, #fad805);
  font-weight: 700;
}
#product .ef2 .ef2-pasos b { display: block; margin: 0 0 4px; font-size: 15px; }
#product .ef2 .ef2-pasos span { color: #444; }
@media (max-width: 767px) {
  #product .ef2 .ef2-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#product .ef2 .ef2-enlace { font-weight: 500; color: #111; text-decoration: underline; text-underline-offset: 3px; }

#product .ef2 .ef2-plazos { display: flex; gap: 12px; margin: 0 0 14px; }
#product .ef2 .ef2-plazos div {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ef2-borde);
  border-radius: 12px;
}
#product .ef2 .ef2-plazos b { font-size: 34px; line-height: 1; }
#product .ef2 .ef2-plazos span { font-size: 14px; line-height: 1.3; color: #444; }

#product .ef2 .ef2-faq { border-top: 1px solid var(--ef2-borde); margin: 0 0 16px; }
#product .ef2 .ef2-faq details { border-bottom: 1px solid var(--ef2-borde); }
#product .ef2 .ef2-faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 500;
  font-size: 16px;
}
#product .ef2 .ef2-faq summary::-webkit-details-marker { display: none; }
#product .ef2 .ef2-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 24px; font-weight: 400; }
#product .ef2 .ef2-faq details[open] summary::after { content: "\2013"; }
#product .ef2 .ef2-faq details p { margin: 0 0 16px; color: #444; line-height: 1.6; }

#product .ef2 .ef2-tarjeta {
  padding: 22px;
  border: 1px solid var(--ef2-borde);
  border-radius: 14px;
  background: #fff;
  margin: 0 0 16px;
  scroll-margin-top: 90px;
}
@media (max-width: 991px) {
  #product .ef2 #ef-caracteristicas { margin: 0 0 44px; }
}
#product .ef2 .ef2-ficha { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); margin: 0; font-size: 14px; }
#product .ef2 .ef2-ficha dt, #product .ef2 .ef2-ficha dd { margin: 0; padding: 9px 0; border-bottom: 1px solid #efefef; }
#product .ef2 .ef2-ficha dt { color: var(--ef2-gris); font-weight: 400; padding-right: 12px; }
#product .ef2 .ef2-ficha dd { font-weight: 500; overflow-wrap: anywhere; }
#product .ef2 .ef2-ficha dt:last-of-type, #product .ef2 .ef2-ficha dd:last-of-type { border-bottom: 0; }

#product .ef2 .ef2-tarjeta-ayuda { background: var(--ef2-suave); border-color: transparent; }
#product .ef2 .ef2-tarjeta-ayuda p { color: #444; font-size: 14px; line-height: 1.5; }
#product .ef2 .ef2-tarjeta-ayuda .ef-ayuda-btn { display: flex; justify-content: center; width: 100%; margin: 8px 0 0; }

/* #wrapper lleva overflow-x:hidden y eso anula position:sticky. clip recorta igual sin crear
   contenedor de scroll (Chrome 90+, Safari 16+; en navegadores viejos solo se pierde lo fijo). */
#product #wrapper { overflow-x: clip; overflow-y: visible; }
#product .ef2 .ef2-bloque p a:not(.ef2-enlace) { color: #111; text-decoration: underline; text-underline-offset: 3px; }

/* Resumen de compra: tarjeta con filas etiqueta/valor y boton a todo el ancho */
#product .ef2 .product-add-to-cart .product-quantity {
  display: block;
  margin: 16px 0 0;
  padding: 18px 20px 20px;
  background: #fff;
  border: 2px solid #111;
  border-radius: 14px;
}
#product .ef2 .product-add-to-cart #unit_product_price,
#product .ef2 .product-add-to-cart .product-quantity .qty,
#product .ef2 .product-add-to-cart #total_price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px 0;
  float: none;
  font-size: 15px;
}
#product .ef2 .product-add-to-cart .product-quantity .qty label { margin: 0; font-size: 15px; font-weight: 400; }
#product .ef2 .product-add-to-cart .product-quantity #quantity_wanted {
  width: auto; max-width: 120px; height: auto; padding: 0; border: 0; text-align: right; font-weight: 700; font-size: 15px;
}
#product .ef2 .product-add-to-cart #total_price { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ef2-borde); font-size: 17px; }
#product .ef2 .product-add-to-cart #total_price strong { font-size: 24px; }
#product .ef2 .product-add-to-cart .ef-total-hint { width: 100%; max-width: none; margin: 4px 0 0; text-align: left; }
#product .ef2 .product-add-to-cart .add { display: block; width: 100%; margin: 14px 0 0; padding: 0; background: none; float: none; }
#product .ef2 .product-add-to-cart .add .add-to-cart { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0; }
#product .ef2 .ef-garantias { margin-top: 12px; }
#product .ef2 .product-add-to-cart, #product .ef2 .product-add-to-cart .ef-garantias { background: transparent; }
#product .ef2 .product-add-to-cart .product-quantity .qty { align-items: center; }
@media (max-width: 767px) {
  #product .ef2 .ef2-ventajas { gap: 2px; margin-bottom: 18px; }
  #product .ef2 .ef2-ventajas li { background: none; padding: 4px 0; }
  #product .ef2 .ef2-ventajas svg { width: 24px; height: 24px; }
}
/* Sin tabla de tramos el precio por volumen ya va en la etiqueta "Desde X € por volumen" */
#product .ef2 .precio-volumen { display: none; }


/* Guia de tallas (medidas por talla del proveedor) */
#product .ef2 .ef2-guia-tallas { width: 100%; margin: 18px 0 0; border-collapse: collapse; font-size: 14px; }
#product .ef2 .ef2-guia-tallas caption { caption-side: top; text-align: left; padding: 0 0 8px; font-weight: 700; color: #111; }
#product .ef2 .ef2-guia-tallas caption span { font-weight: 400; color: var(--ef2-gris); }
#product .ef2 .ef2-guia-tallas th, #product .ef2 .ef2-guia-tallas td { padding: 7px 8px; border-bottom: 1px solid #efefef; text-align: center; }
#product .ef2 .ef2-guia-tallas thead th { color: var(--ef2-gris); font-weight: 500; font-size: 13px; background: var(--ef2-suave); }
#product .ef2 .ef2-guia-tallas tbody th { font-weight: 600; text-align: left; }

