/* Página de producto 1.4. Copia de docs/referencias/diseno-1.4/producto.html (estilos en línea pasados a clases). */
.ept-p{background:#f3efe8 var(--ept-p-papel) center/cover;font-family:Jost,system-ui,sans-serif;font-size:16px;line-height:1.5;color:#56524c;box-sizing:border-box;padding:4px 0 60px;overflow-x:clip}
.ept-p *,.ept-p *::before,.ept-p *::after{box-sizing:border-box}
.ept-p [hidden]{display:none!important}
.ept-p a{color:#476f43}
.ept-p a:hover{color:#1b1a18}
.ept-p button{font-family:inherit;text-transform:none;letter-spacing:normal}
.ept-p :focus-visible{outline:3px solid #c9a45c;outline-offset:2px}

.ept-p__avisos,.ept-p__ruta,.ept-p__cols,.ept-p__rel{max-width:1280px;margin-left:auto;margin-right:auto;padding-left:40px;padding-right:40px}
.ept-p__avisos:empty{display:none}
.ept-p__avisos .woocommerce-message,.ept-p__avisos .woocommerce-error,.ept-p__avisos .woocommerce-info{margin:0 0 14px}

/* Ruta */
.ept-p__ruta{font-size:14px;margin-bottom:18px;margin-top:0;color:#b5ab9c}
.ept-p__ruta a{color:#8a837a;text-decoration:none}
.ept-p__ruta a:hover{color:#1b1a18;text-decoration:underline}
.ept-p__ruta>span[aria-hidden]{margin:0 2px}
.ept-p__ruta-actual{color:#1d1b19}

/* Dos columnas */
.ept-p__cols{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start}

/* Izquierda: miniaturas + foto */
.ept-p__galeria{flex:1 1 480px;min-width:0;display:flex;gap:14px}
.ept-p__minis{display:flex;flex-direction:column;gap:10px;flex:none}
.ept-p__mini{appearance:none;width:74px;height:74px;border-radius:14px;padding:0;margin:0;overflow:hidden;cursor:pointer;border:1.5px solid #d8d0c2;background:#ece4d6;display:block}
.ept-p__mini.is-on{border:2.5px solid #1b1a18}
.ept-p__mini img{display:block;width:100%;height:100%;object-fit:cover}
.ept-p__foto-caja{flex:1;min-width:0}
.ept-p__foto{appearance:none;display:block;position:relative;width:100%;aspect-ratio:1/1;margin:0;padding:0;border:0;border-radius:26px;overflow:hidden;background:#e7dece;box-shadow:0 24px 50px -30px rgba(40,30,15,.5);cursor:zoom-in}
.ept-p__img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ept-p__foto:hover .ept-p__img{transform:scale(1.04)}
.ept-p__ampliar{position:absolute;left:16px;bottom:16px;background:rgba(255,255,255,.9);color:#1d1b19;font:600 13px/1.4 Poppins,sans-serif;padding:8px 12px;border-radius:999px;pointer-events:none}

/* Derecha */
.ept-p__info{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:18px}
.ept-p__tag{font:600 13px Oswald,sans-serif;letter-spacing:.2em;color:#5d8b58;text-transform:uppercase}
.ept-p .ept-p__titulo{margin:-8px 0 0;font:800 52px/1.05 Poppins,sans-serif;color:#1d1b19;letter-spacing:normal;text-transform:none;overflow-wrap:anywhere}
.ept-p__precio-fila{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.ept-p__precio{font:800 34px/1.3 Poppins,sans-serif;color:#1d1b19}
.ept-p__stock{font-size:15px;color:#476f43}
.ept-p__stock.is-agotado{color:#a4452c}
.ept-p__corta{font-size:17px;line-height:1.55}
.ept-p__corta p{margin:0 0 .6em}
.ept-p__corta p:last-child{margin-bottom:0}

/* Selector */
.ept-p__form{margin:0;display:flex;flex-direction:column;gap:18px}
.ept-p__sel-tit{font:600 15px/1.5 Poppins,sans-serif;color:#1d1b19;margin-bottom:10px}
.ept-p__sel-tit span{font-weight:500;color:#56524c}
.ept-p__sel-lista{display:flex;gap:10px;flex-wrap:wrap}
.ept-p__op{appearance:none;cursor:pointer;margin:0;display:flex;align-items:center;gap:10px;height:48px;min-width:48px;border-radius:999px;border:1.5px solid #d8d0c2;background:#fffdf9;font:500 14px/1.2 Poppins,sans-serif;color:#1d1b19;transition:border-color .15s,background .15s,color .15s}
.ept-p__op:hover{border-color:#1b1a18}
.ept-p__op--color{padding:0 16px 0 6px}
.ept-p__op--color.is-on{border:2.5px solid #1b1a18;padding:0 15px 0 5px}
.ept-p__bolita{width:34px;height:34px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.ept-p__op--txt{padding:0 18px;justify-content:center}
.ept-p__op--txt.is-on{background:#1b1a18;border-color:#1b1a18;color:#fff;font-weight:600}
.ept-p__op.is-agotada{cursor:not-allowed;opacity:.55}
.ept-p__op.is-agotada .ept-p__op-txt{text-decoration:line-through}

/* Cantidad y botón */
.ept-p__compra{display:flex;gap:12px;flex-wrap:wrap}
.ept-p__qty{display:flex;align-items:center;border:1.5px solid #d8d0c2;background:#fffdf9;border-radius:999px;height:58px}
.ept-p__qb{appearance:none;cursor:pointer;border:0;background:none;margin:0;padding:0;width:52px;height:56px;border-radius:50%;font:600 20px/1 Poppins,sans-serif;color:#1d1b19}
.ept-p__qb:hover{background:rgba(27,26,24,.06)}
.ept-p__qn{width:30px;text-align:center;font:700 18px/1 Poppins,sans-serif;color:#1d1b19}
.ept-p .ept-p__agregar{appearance:none;flex:1 1 220px;display:flex;align-items:center;justify-content:center;gap:10px;height:58px;margin:0;padding:0 20px;border:0;background:#5d8b58;color:#fff;border-radius:999px;font:700 17px/1.2 Poppins,sans-serif;cursor:pointer;text-decoration:none;transition:background .15s}
.ept-p .ept-p__agregar:hover{background:#476f43;color:#fff}
.ept-p .ept-p__agregar:disabled{background:#d8d0c2;color:#6b655d;cursor:not-allowed}
.ept-p .ept-p__agregar.is-listo{background:#476f43}

/* Bloque negro de envíos */
.ept-p__envio{background:#1b1a18;color:#e9e3d8;border-radius:20px;padding:18px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ept-p__envio-t{font:600 14px/1.5 Poppins,sans-serif;color:#fff}
.ept-p__envio-d{font-size:14px}
.ept-p__envio-sale{grid-column:1/-1;font-size:14px;color:#c9a45c;font-weight:600}

/* Detalles */
.ept-p__det{border-top:1px solid #e1d8c8}
.ept-p__det details{border-bottom:1px solid #e1d8c8;padding:14px 0}
.ept-p__det summary{font:600 16px/1.5 Poppins,sans-serif;color:#1d1b19;cursor:pointer;min-height:24px}
.ept-p__det-txt{margin-top:10px;font-size:15px;line-height:1.5}
.ept-p__det-txt p{margin:0 0 .7em}
.ept-p__det-txt p:last-child{margin-bottom:0}

/* También te puede gustar */
.ept-p__rel{margin-top:56px}
.ept-p .ept-p__rel h2{margin:0 0 20px;font:800 28px/1.2 Poppins,sans-serif;color:#1d1b19;letter-spacing:normal;text-transform:none}
.ept-p__rel-grilla{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ept-p .ept-p__rel-card{display:block;background:#fffdf9;border-radius:18px;overflow:hidden;text-decoration:none;box-shadow:0 14px 30px -22px rgba(40,30,15,.4);color:inherit;min-width:0}
.ept-p__rel-foto{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:18px 18px 0 0;background:#e7dece}
.ept-p .ept-p__rel-img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .5s ease}
.ept-p__rel-card:hover .ept-p__rel-img{transform:scale(1.04)}
.ept-p__rel-pie{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.ept-p__rel-nombre{font:600 15px/1.3 Poppins,sans-serif;color:#1d1b19;min-width:0}
.ept-p__rel-precio{font:800 15px/1.3 Poppins,sans-serif;color:#476f43;white-space:nowrap}

/* Capa para ampliar */
.ept-p__capa{position:fixed;inset:0;z-index:100020;background:rgba(15,13,11,.88);display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.ept-p__capa-img{max-width:min(100%,1100px);max-height:100%;width:auto;height:auto;border-radius:18px;background:#e7dece;object-fit:contain;cursor:default}
.ept-p__capa-x{position:absolute;top:14px;right:14px;width:48px;height:48px;border-radius:50%;border:0;background:#fff;color:#1d1b19;font:600 20px/1 Poppins,sans-serif;cursor:pointer}
html.ept-p-capa-abierta{overflow:hidden}

/* Barra fija del celular (solo ≤ 767 px) */
.ept-p__barra{display:none}

@media (max-width:900px){
	.ept-p__avisos,.ept-p__ruta,.ept-p__cols,.ept-p__rel{padding-left:24px;padding-right:24px}
	.ept-p__cols{gap:32px}
	.ept-p .ept-p__titulo{font-size:42px}
}
@media (max-width:767px){
	.ept-p{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
	.ept-p__avisos,.ept-p__ruta,.ept-p__cols,.ept-p__rel{padding-left:18px;padding-right:18px}
	.ept-p__cols{gap:24px;display:block}
	.ept-p__galeria{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
	.ept-p__foto-caja{order:1;width:100%}
	.ept-p__minis{order:2;flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:2px 2px 6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
	.ept-p__mini{flex:none}
	.ept-p .ept-p__titulo{font-size:34px}
	.ept-p__precio{font-size:30px}
	.ept-p__info{gap:16px}
	.ept-p__envio{grid-template-columns:minmax(0,1fr)}
	.ept-p__compra{display:flex}
	.ept-p__rel{margin-top:44px}
	.ept-p .ept-p__rel h2{font-size:24px}
	.ept-p__rel-grilla{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
	.ept-p__rel-pie{flex-direction:column;align-items:flex-start;gap:2px}
	.ept-p__op{min-height:48px}

	/* Barra fija: sube sobre el aviso de cookies (--ept-fl-sube lo pone ept-flotante.js). */
	.ept-p__barra{position:fixed;z-index:99995;left:0;right:0;bottom:var(--ept-fl-sube,0px);display:flex;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:#fffdf9;border-top:1px solid #e1d8c8;box-shadow:0 -12px 30px -18px rgba(40,30,15,.45)}
	.ept-p__barra[hidden]{display:none!important}
	.ept-p__barra-p{display:flex;flex-direction:column;min-width:0;flex:none}
	.ept-p__barra-precio{font:800 20px/1.2 Poppins,sans-serif;color:#1d1b19}
	.ept-p__barra-nom{font-size:12px;line-height:1.2;color:#8a837a;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
	.ept-p__barra-nom:empty{display:none}
	.ept-p .ept-p__agregar--barra{flex:1 1 auto;min-width:0;height:52px;font-size:16px;padding:0 14px}

	/* Botón flotante del carrito y WhatsApp: suben por encima de la barra */
	body.ept-producto-page .ept-fl a.ept-fl-boton{bottom:calc(88px + var(--ept-fl-sube,0px) + env(safe-area-inset-bottom,0px))}
	body.ept-producto-page .whatsapp-float,body.ept-producto-page .wa{bottom:calc(156px + var(--ept-fl-sube,0px) + env(safe-area-inset-bottom,0px))!important}
}
@media (prefers-reduced-motion:reduce){
	.ept-p__img,.ept-p__rel-img{transition:none}
	.ept-p__foto:hover .ept-p__img,.ept-p__rel-card:hover .ept-p__rel-img{transform:none}
}
