/* product-fix.css - product page polish (tp-*) 2026-11-15. Revert: delete this file + product-fix.js */

/* 1) Sticky section nav: left aligned, equal indent, active = left bar (no text shift) */
@media (min-width:1101px){
body .tp-layout>.tp-nav{align-items:stretch!important;text-align:left!important}
body .tp-layout>.tp-nav a{display:block!important;width:100%;box-sizing:border-box;text-align:left!important;justify-content:flex-start!important;
  padding:8px 14px 8px 16px!important;margin-left:-2px!important;border-left:3px solid transparent!important;border-radius:0 8px 8px 0!important;white-space:normal}
body .tp-layout>.tp-nav a.on,body .tp-layout>.tp-nav a[aria-current]{border-left-color:#6d28d9!important;background:#efe8fc;color:#6d28d9;font-weight:600;padding:8px 14px 8px 16px!important}
}

/* 2) Logos: fixed box, img never collapses (outside .cover-logo / hero) */
body :not(.cover-logo):not(.tp-hero-main)>.product-icon.pb2-logo{padding:6px!important;box-sizing:border-box!important}
body :not(.cover-logo):not(.tp-hero-main)>.product-icon.pb2-logo>img{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;object-fit:contain!important;opacity:1!important;visibility:visible!important;display:block}
body .tp-alt .product-icon.pb2-logo,body .tp-alt .product-icon.pb2-mono,
body .related :not(.cover-logo)>.product-icon.pb2-logo{width:48px!important;height:48px!important;min-width:48px!important;flex:none!important;border-radius:12px!important}
body .tp-alt .product-icon.pb2-logo{padding:6px!important}

/* 3) Facts row */
body .tp-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;align-items:stretch}
body .tp-fact{align-items:flex-start!important;text-align:left!important;justify-content:flex-start}
body .tp-fact>div{text-align:left!important;min-width:0}
body .tp-fact small{min-height:2.6em;line-height:1.3;display:block}
body .tp-fact b{line-height:1.35;text-align:left}
body .tp-fact:has(b:empty),body .tp-fact.pf-empty{display:none!important}
body .tp-actions{display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;align-items:center;gap:10px!important;margin:0 0 20px!important;text-align:left}
body .tp-actions a{padding:9px 15px!important}
body .tp-actions small{flex:0 0 100%;margin:2px 0 0 2px!important;text-align:left}

/* 4) Hero CTA box */
body .tp-hero-cta{align-items:stretch}
body .tp-hero-cta a.button.purple{display:flex!important;align-items:center;justify-content:center;gap:6px;text-align:center}
body .tp-cta-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
body .tp-cta-row .button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;box-sizing:border-box;padding:12px 10px!important;font-size:15px!important;white-space:nowrap!important;text-align:center}
body .tp-cta-row .button svg{flex:none;width:17px;height:17px}
@media (max-width:360px){body .tp-cta-row{grid-template-columns:1fr!important}}
body .tp-hero-cta .tp-verified{display:flex;justify-content:flex-start!important;align-items:flex-start;text-align:left!important;margin-top:2px}
body .tp-price .text-link{display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;padding:10px 14px;border:1px solid #e0d9f1;border-radius:10px;background:#fff;text-decoration:none}
body .tp-hero-cta .ux2-price-pill{display:flex!important;align-items:center;justify-content:center!important;text-align:center!important;margin:0!important;width:100%;box-sizing:border-box}
body .tp-price .text-link:hover{border-color:#6d28d9}

/* 5) Gallery: 50/50 - one large left, 2x2 right (3 photos + "+" slot) */
body .tp-gal .tp-gal-grid.pf-gal{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:10px!important;aspect-ratio:16/5!important;border-radius:16px;overflow:hidden}
body .tp-gal .pf-gal>.tp-gal-item,body .tp-gal .pf-gal>.pf-plus{grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;position:relative;display:block;min-width:0;min-height:0;box-sizing:border-box;overflow:hidden;border-radius:12px;background:#eaf0f6}
body .tp-gal .pf-gal>.tp-gal-item:first-child{grid-area:1/1/3/3!important}
body .tp-gal .pf-gal>.tp-gal-item.is-extra{display:none!important}
body .tp-gal .pf-gal>.tp-gal-item img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:cover;display:block}
/* k = number of right-side cells */
body .tp-gal .pf-k1>:nth-child(2){grid-column:3/5!important;grid-row:1/3!important}
body .tp-gal .pf-k2>:nth-child(2){grid-column:3/5!important;grid-row:1!important}
body .tp-gal .pf-k2>:nth-child(3){grid-column:3/5!important;grid-row:2!important}
body .tp-gal .pf-k3>:nth-child(4){grid-column:3/5!important;grid-row:2!important}
/* low-res original: centered, not upscaled, blurred backdrop */
body .tp-gal .pf-gal>.tp-gal-item.pf-low::before{content:"";position:absolute;inset:-12%;background:var(--pf-bg) center/cover no-repeat;filter:blur(20px) saturate(1.1);opacity:.85}
body .tp-gal .pf-gal>.tp-gal-item.pf-low img{inset:auto;top:50%;left:50%;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform:translate(-50%,-50%)!important}
body .tp-gal .pf-gal>.tp-gal-item.pf-low:hover img{transform:translate(-50%,-50%)!important}
/* "+N" overlay */
body .tp-gal .tp-gal-more{font-size:26px;font-weight:700;letter-spacing:.5px}
/* "+" add slot */
body .tp-gal .pf-plus{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;border:2px dashed #9fbad6;background:linear-gradient(135deg,#f3f8fe,#f7f4fd)!important;color:#6d28d9;text-decoration:none;cursor:pointer;transition:border-color .15s,background .15s}
body .tp-gal .pf-plus:hover{border-color:#6d28d9;background:#eaf2fd!important}
body .tp-gal .pf-plus:focus-visible{outline:3px solid #6d28d9;outline-offset:-3px}
body .tp-gal .pf-plus b{font-size:clamp(34px,4.6vw,56px);font-weight:300;line-height:1}
body .tp-gal .pf-plus span{font-size:15px;font-weight:600}
body .tp-gal .pf-plus small{font-size:12px;color:#5d7a92}
@media (max-width:760px){
body .tp-gal .tp-gal-grid.pf-gal{grid-template-columns:1fr 1fr!important;grid-template-rows:none!important;grid-auto-rows:auto;aspect-ratio:auto!important;gap:8px!important}
body .tp-gal .pf-gal>.tp-gal-item,body .tp-gal .pf-gal>.pf-plus{aspect-ratio:16/10;grid-column:auto!important;grid-row:auto!important}
body .tp-gal .pf-gal>.tp-gal-item:first-child{grid-area:auto!important;grid-column:1/-1!important}
body .tp-gal .pf-gal>:last-child:nth-child(even){grid-column:1/-1!important}
}
