/* PelotaPadel – Completa tu pack. Todo va bajo body.pp-on: solo se aplica a quien ve los cambios. */
body.pp-on{
	--pp-lima:#cbe86b; --pp-lima-osc:#a9c94a; --pp-lima-suave:#f4f9e1;
	--pp-negro:#111; --pp-gris:#6b6b6b; --pp-linea:#e6e6e6;
}

/* ---------- Ficha más ancha ---------- */
@media (min-width:1280px){
	body.pp-wide #main > .page-container{ width:100%; max-width:1460px; padding-left:30px; padding-right:30px; box-sizing:border-box; }
	body.pp-wide div.product .images-thumbnails{ width:52%; }
	body.pp-wide div.product .summary.entry-summary{ width:48%; box-sizing:border-box; padding-left:40px; }
}
/* La foto acompaña al bajar: la plantilla pone overflow:hidden en #page, que lo impide; clip recorta igual sin bloquearlo. */
body.pp-wide .pp-top{ display:flow-root; }
@media (min-width:1024px){
	body.pp-wide #page{ overflow:clip; }
	body.pp-wide div.product .images-thumbnails{ position:sticky; top:20px; z-index:1; }
}

/* ---------- Aviso de entrega ---------- */
body.pp-on .pp-entrega{ display:flex; align-items:center; gap:12px; background:var(--pp-lima-suave); border:1px solid #e3efbf; border-radius:8px; padding:11px 14px; margin:0 0 16px; font-size:13.5px; line-height:1.4; color:#111; }
body.pp-on .pp-entrega[hidden]{ display:none; }
body.pp-on .pp-entrega i{ width:34px; height:34px; flex:0 0 34px; border-radius:50%; background:#fff; display:grid; place-items:center; }
body.pp-on .pp-entrega svg,
body.pp-on .pp-confianza svg{ width:20px; height:20px; stroke:#111; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.pp-on .pp-entrega b{ white-space:nowrap; }
body.pp-on .pp-entrega small{ display:block; color:var(--pp-gris); font-size:12.5px; margin-top:2px; }
body.pp-on .pp-entrega small.pp-envio-ok{ color:#3d7a00; }
body.pp-on .pp-entrega small.pp-envio-ok b{ white-space:normal; }

/* ---------- Completa tu pack ---------- */
body.pp-on .pp-pack-wrap{ clear:both; margin:18px 0 20px; }
body.pp-on .pp-pack-wrap:empty{ display:none; }
body.pp-on .pp-pack{ border:1px solid var(--pp-linea); border-radius:10px; overflow:hidden; background:#fff; font-size:14px; color:#111; }
body.pp-on .pp-pack-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 16px; background:var(--pp-negro); color:#fff; }
body.pp-on .pp-pack-head h3{ margin:0; color:#fff; font-size:17px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; line-height:1.2; }
body.pp-on .pp-pack-head small{ display:block; font-size:12px; color:#bbb; margin-top:2px; text-transform:none; }
body.pp-on .pp-item{ display:grid; grid-template-columns:22px 58px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 16px; border-top:1px solid var(--pp-linea); transition:opacity .15s; }
body.pp-on .pp-item:first-child{ border-top:0; }
body.pp-on .pp-item.is-off{ opacity:.45; }
body.pp-on .pp-check{ width:20px; height:20px; min-width:0; border:2px solid #bbb; border-radius:5px; display:grid; place-items:center; cursor:pointer; background:#fff; padding:0; margin:0; line-height:1; box-shadow:none; }
body.pp-on .pp-check svg{ width:12px; height:12px; opacity:0; }
body.pp-on .pp-check.is-on{ background:var(--pp-lima); border-color:var(--pp-lima); }
body.pp-on .pp-check.is-on svg,
body.pp-on .pp-check.is-fixed svg{ opacity:1; }
body.pp-on .pp-check.is-fixed{ cursor:default; background:#111; border-color:#111; }
body.pp-on .pp-thumb{ width:58px; height:58px; border:1px solid var(--pp-linea); border-radius:6px; object-fit:contain; padding:4px; background:#fff; box-sizing:border-box; }
body.pp-on .pp-tipo{ font-size:12px; font-style:italic; color:#5b7a00; margin-bottom:2px; line-height:1.3; }
body.pp-on .pp-name{ display:block; font-weight:500; line-height:1.3; font-size:13.5px; color:#111; }
body.pp-on .pp-var{ margin-top:5px; font-size:12px; color:#333; display:flex; align-items:center; gap:6px; }
body.pp-on .pp-var select{ font-size:12px; padding:2px 6px; height:auto; min-height:0; width:auto; border:1px solid #ccc; border-radius:4px; }
body.pp-on .pp-alt-btn{ background:none; border:0; padding:0; margin:4px 0 0; color:#111; font-size:12px; font-weight:400; text-transform:none; text-decoration:underline; text-underline-offset:2px; cursor:pointer; display:inline-flex; gap:4px; align-items:center; box-shadow:none; min-height:0; line-height:1.4; }
body.pp-on .pp-alt-btn:hover{ background:none; color:#111; }
body.pp-on .pp-alt-btn svg{ width:10px; height:10px; transition:transform .2s; }
body.pp-on .pp-alt-btn.is-open svg{ transform:rotate(180deg); }
body.pp-on .pp-price{ text-align:right; white-space:nowrap; font-weight:700; font-size:15px; }
body.pp-on .pp-price del{ display:block; color:#999; font-size:12px; font-weight:400; }
body.pp-on .pp-alts{ grid-column:2/-1; display:none; gap:8px; overflow-x:auto; padding:4px 0 2px; scroll-snap-type:x mandatory; }
body.pp-on .pp-alts.is-open{ display:flex; }
body.pp-on .pp-alt{ flex:0 0 118px; scroll-snap-align:start; border:1px solid var(--pp-linea); border-radius:8px; padding:8px; cursor:pointer; background:#fff; text-align:left; font:inherit; color:#111; box-shadow:none; text-transform:none; min-height:0; line-height:1.3; }
body.pp-on .pp-alt:hover{ border-color:#999; background:#fff; color:#111; }
body.pp-on .pp-alt.is-sel{ border-color:var(--pp-lima); box-shadow:0 0 0 2px var(--pp-lima-suave); }
body.pp-on .pp-alt img{ width:100%; height:70px; object-fit:contain; margin-bottom:6px; }
body.pp-on .pp-alt span{ display:block; font-size:11.5px; line-height:1.25; height:2.5em; overflow:hidden; font-weight:400; }
body.pp-on .pp-alt strong{ font-size:12.5px; }
body.pp-on .pp-pack-foot{ background:#fafafa; border-top:1px solid var(--pp-linea); padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
body.pp-on .pp-tot small{ display:block; color:var(--pp-gris); font-size:12px; }
body.pp-on .pp-tot b{ font-size:22px; }
body.pp-on .pp-envio{ display:block; color:#5b7a00; font-weight:700; font-size:12.5px; margin-top:2px; }
body.pp-on .pp-add{ background:#111; color:#fff; border:0; border-radius:6px; font-size:15px; font-weight:500; text-transform:uppercase; padding:0 22px; height:48px; cursor:pointer; }
body.pp-on .pp-add:hover{ background:#333; color:#fff; }
body.pp-on .pp-add[disabled]{ opacity:.6; cursor:wait; }
body.pp-on .pp-msg{ padding:0 16px 12px; background:#fafafa; color:#c0392b; font-size:13px; }
body.pp-on .pp-msg:empty{ display:none; }
body.pp-on .pp-msg.is-ok{ color:#3d7a00; }
body.pp-on .pp-msg a{ text-decoration:underline; }

/* ---------- Bloque de confianza ---------- */
body.pp-trust-on .summary .hookmeup-hook .tabla_productos{ display:none; }
body.pp-on .pp-confianza{ clear:both; display:grid; grid-template-columns:repeat(5,1fr); gap:6px; border:1px solid var(--pp-linea); border-radius:10px; padding:16px 8px; background:#fff; margin:0 0 18px; }
/* Sin pack (no palas): separación entre el botón de compra y el bloque */
body.pp-on form.cart + .pp-confianza, body.pp-on form.cart ~ .pp-confianza{ margin-top:18px; }
body.pp-on .pp-confianza > div{ text-align:center; padding:0 4px; }
body.pp-on .pp-confianza i{ width:44px; height:44px; border-radius:50%; background:var(--pp-lima-suave); display:grid; place-items:center; margin:0 auto 8px; }
body.pp-on .pp-confianza b{ display:block; font-size:12.5px; line-height:1.25; font-weight:700; color:#000; }
body.pp-on .pp-confianza span{ display:block; font-size:11.5px; color:var(--pp-gris); line-height:1.3; margin-top:2px; }

/* ---------- Descripción en desplegable ---------- */
body.pp-on .pp-acordeon{ margin:20px 0; border-bottom:1px solid var(--pp-linea); clear:both; }
body.pp-on .pp-acc-item{ border-top:1px solid var(--pp-linea); }
body.pp-on .pp-acc-item > summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:16px 2px; font-weight:700; font-size:14px; text-transform:uppercase; letter-spacing:.3px; color:#000; }
body.pp-on .pp-acc-item > summary::-webkit-details-marker{ display:none; }
body.pp-on .pp-acc-item > summary:after{ content:""; width:22px; height:22px; flex:0 0 22px; border-radius:50%; background:var(--pp-lima-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") center/10px no-repeat; transition:transform .2s; }
body.pp-on .pp-acc-item[open] > summary:after{ transform:rotate(45deg); }
body.pp-on .pp-acc-body{ padding:0 2px 10px; line-height:1.75; }

/* ---------- Reseñas a ancho completo ---------- */
body.pp-reviews-on .summary .hookmeup-hook .ti-widget{ display:none !important; }
body.pp-on .pp-resenas{ clear:both; background:#f6f7f2; box-shadow:0 0 0 100vmax #f6f7f2; clip-path:inset(0 -100vmax); padding:40px 0; margin:30px 0 40px; }
body.pp-on .pp-res-head{ display:flex; align-items:center; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; margin:0 0 22px; }
body.pp-on .pp-resenas-title{ font-size:24px; font-weight:700; text-transform:uppercase; margin:0; }
body.pp-on .pp-res-badges{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
body.pp-on .pp-badge{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--pp-linea); border-radius:99px; padding:8px 18px 8px 10px; color:#111; text-decoration:none; min-height:48px; box-sizing:border-box; }
body.pp-on a.pp-badge:hover{ border-color:#bbb; color:#111; }
body.pp-on .pp-badge-g svg{ width:30px; height:30px; flex:0 0 30px; }
body.pp-on .pp-badge-g b{ font-size:18px; }
body.pp-on .pp-badge-g i{ font-style:normal; color:#f6b500; letter-spacing:1px; }
body.pp-on .pp-badge-g small{ display:block; font-size:12px; color:var(--pp-gris); line-height:1.2; }
body.pp-on .pp-badge-tp{ width:380px; max-width:100%; padding:8px 12px; }
@media (max-width:767px){ body.pp-on .pp-res-badges, body.pp-on .pp-badge-tp{ width:100%; } body.pp-on .pp-badge-tp{ padding:8px 10px; } }
body.pp-on .pp-badge-tp .trustpilot-widget{ width:100%; }

/* ---------- Móvil ---------- */
@media (max-width:600px){
	body.pp-on .pp-item{ grid-template-columns:22px 50px minmax(0,1fr); }
	body.pp-on .pp-thumb{ width:50px; height:50px; }
	body.pp-on .pp-price{ grid-column:3; text-align:left; }
	body.pp-on .pp-price del{ display:inline; margin-right:6px; }
	body.pp-on .pp-add{ width:100%; }
	body.pp-on .pp-confianza{ display:flex; flex-wrap:wrap; justify-content:center; gap:16px 0; }
	body.pp-on .pp-confianza > div{ flex:0 0 33.33%; box-sizing:border-box; }
	body.pp-on .pp-resenas{ padding:30px 0; }
	body.pp-on .pp-resenas-title{ font-size:20px; }
}

/* ---------- Nota de Google bajo el título ---------- */
body.pp-on .pp-rating{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#333; text-decoration:none; margin:0 0 10px; }
body.pp-on .pp-rating:hover{ color:#000; text-decoration:underline; }
body.pp-on .pp-rating-stars{ color:#f6b500; letter-spacing:1px; font-size:14px; }

/* Trustpilot ya sale junto al título de reseñas: se oculta el que el plugin de Trustpilot mete más abajo */
body.pp-reviews-on [id^="trustpilot-widget-trustbox-"]{ display:none !important; }

/* ---------- Barra fija de compra (solo móvil) ---------- */
body.pp-on .pp-sticky{ display:none; }
@media (max-width:767px){
	body.pp-on .pp-sticky{ display:flex; align-items:center; gap:10px; position:fixed; left:0; right:0; bottom:0; z-index:9990; background:#fff; border-top:1px solid var(--pp-linea); box-shadow:0 -4px 16px rgba(0,0,0,.08); padding:8px 12px calc(8px + env(safe-area-inset-bottom)); transform:translateY(110%); transition:transform .25s; }
	body.pp-on .pp-sticky.is-visible{ transform:none; }
	body.pp-on .pp-sticky img{ width:44px; height:44px; object-fit:contain; border:1px solid var(--pp-linea); border-radius:6px; background:#fff; }
	body.pp-on .pp-sticky-info{ flex:1; min-width:0; line-height:1.25; }
	body.pp-on .pp-sticky-name{ display:block; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#111; }
	body.pp-on .pp-sticky-price{ font-size:15px; font-weight:700; }
	body.pp-on .pp-sticky-price del{ color:#999; font-weight:400; font-size:12px; margin-right:4px; }
	body.pp-on .pp-sticky-price ins{ text-decoration:none; }
	body.pp-on .pp-sticky-btn{ background:var(--pp-lima); color:#fff; border:0; border-radius:6px; font-weight:700; text-transform:uppercase; font-size:14px; padding:0 18px; height:44px; }
	body.pp-sticky-on .ht-ctc, body.pp-sticky-on .ht_ctc_chat_style{ bottom:calc(80px + env(safe-area-inset-bottom, 0px)) !important; transition:bottom .25s; }
}

/* ---------- ¿Por qué comprar en PelotaPadel? ---------- */
body.pp-on .pp-why{ clear:both; margin:10px 0 50px; }
body.pp-on .pp-why-title{ text-align:center; font-size:26px; font-weight:700; text-transform:uppercase; margin:0 0 26px; letter-spacing:.3px; }
body.pp-on .pp-why-title span{ background:linear-gradient(transparent 62%, var(--pp-lima) 62%); padding:0 4px; }
body.pp-on .pp-why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
body.pp-on .pp-why-card{ position:relative; background:#111; color:#fff; border-radius:14px; padding:28px 26px 24px; overflow:hidden; }
body.pp-on .pp-why-num{ position:absolute; top:14px; right:20px; font-size:44px; font-weight:900; color:rgba(203,232,107,.14); line-height:1; }
body.pp-on .pp-why-card i{ width:50px; height:50px; border-radius:50%; background:var(--pp-lima); display:grid; place-items:center; margin-bottom:16px; }
body.pp-on .pp-why-card svg{ width:24px; height:24px; stroke:#111; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body.pp-on .pp-why-card h3{ color:#fff; font-size:18px; font-weight:700; text-transform:uppercase; margin:0 0 10px; letter-spacing:.3px; }
body.pp-on .pp-why-card p{ color:#cfcfcf; font-size:14px; line-height:1.6; margin:0 0 16px; }
body.pp-on .pp-why-chips{ display:flex; flex-wrap:wrap; gap:6px; }
body.pp-on .pp-why-chips span{ border:1px solid rgba(203,232,107,.45); color:var(--pp-lima); border-radius:99px; font-size:12px; padding:3px 10px; white-space:nowrap; }
@media (max-width:900px){
	body.pp-on .pp-why-grid{ grid-template-columns:1fr; gap:12px; }
	body.pp-on .pp-why-card{ padding:22px 20px 20px; }
	body.pp-on .pp-why-title{ font-size:21px; }
}

/* ---------- Cabecera sin foto: migas + título ---------- */
body.pp-head-on .breadcrumb-title-wrapper{ background:none !important; height:auto !important; min-height:0 !important; padding:0 !important; border:0 !important; }
body.pp-head-on .breadcrumb-title-wrapper:before,
body.pp-head-on .breadcrumb-title-wrapper:after{ display:none !important; }
body.pp-head-on .breadcrumb-title-wrapper .breadcrumb-content{ height:auto !important; min-height:0 !important; padding:16px 0 0 !important; text-align:left !important; display:block !important; }
body.pp-head-on .breadcrumb-title-wrapper .breadcrumb-title{ display:flex !important; flex-direction:column-reverse; align-items:flex-start; padding:0 !important; height:auto !important; position:static !important; transform:none !important; text-align:left !important; }
body.pp-head-on .breadcrumb-title-wrapper .breadcrumbs,
body.pp-head-on .breadcrumb-title-wrapper .breadcrumbs *{ color:var(--pp-gris) !important; font-size:13px !important; text-shadow:none !important; }
body.pp-head-on .breadcrumb-title-wrapper .breadcrumbs a{ color:#333 !important; }
body.pp-head-on .breadcrumb-title-wrapper .breadcrumbs a:hover{ color:#000 !important; text-decoration:underline; }
body.pp-head-on .breadcrumb-title-wrapper .heading-title{ color:#000 !important; text-align:left !important; margin:8px 0 14px !important; font-size:30px !important; line-height:1.1 !important; text-shadow:none !important; }
body.pp-head-on #main > .page-container[class*="show_breadcrumb_"]{ margin-top:0 !important; padding-top:14px !important; }
/* La descripción corta empieza con el mismo título que ya es el H1: se oculta */
body.pp-head-on .woocommerce-product-details__short-description > h2:first-child{ display:none; }
@media (min-width:1280px){
	body.pp-head-on.pp-wide .breadcrumb-title-wrapper .breadcrumb-content{ width:100% !important; max-width:1460px !important; margin:0 auto !important; padding-left:40px !important; padding-right:40px !important; box-sizing:border-box; }
}
@media (max-width:767px){
	body.pp-head-on .breadcrumb-title-wrapper .breadcrumb-content{ padding:12px 16px 0 !important; }
	body.pp-head-on .breadcrumb-title-wrapper .breadcrumb-title{ align-items:stretch; }
	body.pp-head-on .breadcrumb-title-wrapper .breadcrumbs{ white-space:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
	body.pp-head-on .breadcrumb-title-wrapper .breadcrumbs::-webkit-scrollbar{ display:none; }
	body.pp-head-on .breadcrumb-title-wrapper .heading-title{ font-size:24px !important; }
}
/* Título del producto (H1) en la columna derecha, con el estilo del antiguo título */
body.pp-head-on .summary h1.product_title{ font-size:28px; line-height:1.15; font-weight:700; text-transform:uppercase; color:#000; margin:0 0 12px; }
@media (max-width:767px){ body.pp-head-on .summary h1.product_title{ font-size:22px; } }
/* Categorías: botón "Filtro" en negro (texto e icono) */
body.pp-head-on .prod-cat-show-top-content-button a,
body.pp-head-on .prod-cat-show-top-content-button a:after,
body.pp-head-on .prod-cat-show-top-content-button a:hover{ color:#000 !important; }
/* Categorías en móvil: fuera la columna de filtros apilada arriba (Categorías, Precio, Talla);
   los mismos filtros están en el botón "Filtro" */
@media (max-width:767px){
	body.pp-head-on:not(.single-product) aside.ts-sidebar:not(.product-category-top-content){ display:none !important; }
}

/* Pack con producto con tallas (zapatillas) */
body.pp-on .pp-pick-size{ color:#c0392b; font-weight:500; }
body.pp-on .pp-note{ color:var(--pp-gris); font-style:italic; }
body.pp-on .pp-check[disabled]{ opacity:.4; cursor:not-allowed; }

/* Miniaturas de la ficha: se ven desde el principio, sin esperar al carrusel de la plantilla (su JS lo retrasa WP Rocket) */
body.pp-on .thumbnails.ts-slider.loading{ height:auto !important; max-height:400px; overflow:hidden !important; }
body.pp-on .thumbnails.ts-slider.loading:before,
body.pp-on .thumbnails.ts-slider.loading:after{ display:none !important; }
