v4: Real product image generation + conversion PDP output
Image Generation: - Downloads actual product images from justvitamins.co.uk - Sends real photo as reference to Gemini (image-to-image) - Generates 5 ecommerce-grade variations maintaining product consistency: Hero (clean studio), Lifestyle (kitchen scene), Scale (hand reference), Detail (ingredients close-up), Banner (wide hero) - Uses Nano Banana Pro for hero/lifestyle/banner, Nano Banana for fast shots PDP Output: - Demo A now renders as a real ecommerce product detail page - Gallery: original + AI-generated images with clickable thumbnails - Above the fold: H1, value props, price block, trust bar, CTAs - Key Benefits: Feature → Benefit → Proof format, 5 icon cards - Stats bar, Why This Formula, 5★ review, FAQ accordion - Meta SEO (Google preview), Ad Hooks (5 platform-targeted), Email sequences Prompts: - Conversion-optimised based on Cialdini/Kahneman principles - EFSA health claim compliance baked into every prompt - Feature → Benefit → Proof bullet structure - Price anchoring, social proof, urgency psychology
This commit is contained in:
@@ -144,6 +144,116 @@ h1{font-size:clamp(2.2rem,5.5vw,3.5rem);font-weight:800;line-height:1.08;letter-
|
||||
footer{padding:1.5rem 0;border-top:1px solid var(--border);display:flex;justify-content:space-between;font-family:'JetBrains Mono',monospace;font-size:.72rem;color:var(--muted)}
|
||||
footer a{color:var(--accent);text-decoration:none}
|
||||
|
||||
/* ═══ PDP LAYOUT ═══ */
|
||||
.pdp-page{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;animation:fadeUp .5s ease}
|
||||
|
||||
/* Above the fold — gallery + info */
|
||||
.pdp-atf{display:grid;grid-template-columns:1fr 1fr;gap:0}
|
||||
.pdp-gallery{background:var(--bg);padding:1.5rem;border-right:1px solid var(--border)}
|
||||
.pdp-info{padding:1.5rem 2rem}
|
||||
.pdp-gallery-main{position:relative;border-radius:10px;overflow:hidden;background:#0a0e14;margin-bottom:.75rem;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
|
||||
.pdp-gallery-main img{max-width:100%;max-height:100%;object-fit:contain}
|
||||
.pdp-gallery-badge{position:absolute;top:.6rem;left:.6rem;font-family:'JetBrains Mono',monospace;font-size:.6rem;font-weight:700;padding:.2rem .5rem;border-radius:4px;background:rgba(6,10,15,.85);color:var(--accent);border:1px solid var(--border)}
|
||||
.pdp-thumbs{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0}
|
||||
.pdp-thumb{width:72px;height:72px;border-radius:8px;overflow:hidden;cursor:pointer;border:2px solid transparent;position:relative;flex-shrink:0;background:var(--bg);transition:.2s}
|
||||
.pdp-thumb.wide{width:110px}
|
||||
.pdp-thumb.active{border-color:var(--accent)}
|
||||
.pdp-thumb:hover{border-color:var(--border2)}
|
||||
.pdp-thumb img{width:100%;height:100%;object-fit:cover}
|
||||
.pdp-thumb-label{position:absolute;bottom:0;left:0;right:0;font-size:.5rem;font-weight:700;text-align:center;padding:.12rem;font-family:'JetBrains Mono',monospace;background:rgba(6,10,15,.85)}
|
||||
.pdp-thumb-label.orig{color:var(--muted)}
|
||||
.pdp-thumb-label.ai{color:var(--cyan)}
|
||||
|
||||
/* Info panel */
|
||||
.pdp-breadcrumb{font-family:'JetBrains Mono',monospace;font-size:.68rem;color:var(--muted);margin-bottom:.5rem}
|
||||
.pdp-title{font-size:1.35rem;font-weight:700;line-height:1.25;margin-bottom:.4rem}
|
||||
.pdp-subhead{font-size:.9rem;color:var(--text2);margin-bottom:.75rem;line-height:1.5}
|
||||
.pdp-value-props{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:1rem}
|
||||
.pdp-vp{font-size:.72rem;font-weight:600;color:var(--accent);background:var(--glow);padding:.2rem .5rem;border-radius:4px}
|
||||
|
||||
/* Price block */
|
||||
.pdp-price-block{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:1rem;margin-bottom:1rem}
|
||||
.pdp-price-main{font-size:1.8rem;font-weight:800;color:var(--text)}
|
||||
.pdp-price-qty{font-size:.78rem;color:var(--muted);margin-left:.3rem}
|
||||
.pdp-price-daily{font-size:.82rem;color:var(--accent);font-weight:600;margin-top:.25rem}
|
||||
.pdp-price-compare{font-size:.75rem;color:var(--muted);margin-top:.1rem}
|
||||
|
||||
/* Trust bar */
|
||||
.pdp-trust-bar{display:flex;gap:.6rem;margin-bottom:1rem;flex-wrap:wrap}
|
||||
.pdp-trust-item{display:flex;align-items:center;gap:.25rem;font-size:.72rem;font-weight:600;color:var(--text2);background:var(--bg);padding:.3rem .6rem;border-radius:6px;border:1px solid var(--border)}
|
||||
.pdp-trust-icon{font-size:.85rem}
|
||||
|
||||
/* CTAs */
|
||||
.pdp-cta-primary{width:100%;padding:.8rem;font-size:.95rem;font-weight:700;border:none;border-radius:9px;cursor:pointer;background:var(--accent);color:#060a0f;margin-bottom:.5rem;transition:.2s}
|
||||
.pdp-cta-primary:hover{background:var(--accent2);transform:translateY(-1px)}
|
||||
.pdp-cta-secondary{width:100%;padding:.6rem;font-size:.82rem;font-weight:600;border:1px solid var(--border2);border-radius:9px;cursor:pointer;background:transparent;color:var(--text2);margin-bottom:.75rem;transition:.2s}
|
||||
.pdp-cta-secondary:hover{border-color:var(--accent);color:var(--accent)}
|
||||
.pdp-urgency{font-family:'JetBrains Mono',monospace;font-size:.72rem;color:var(--gold);background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.15);padding:.4rem .7rem;border-radius:6px;margin-bottom:.75rem;text-align:center}
|
||||
.pdp-usage{font-size:.78rem;color:var(--muted);line-height:1.6;padding-top:.5rem;border-top:1px solid var(--border)}
|
||||
|
||||
/* Sections below fold */
|
||||
.pdp-section{padding:2rem 2.5rem;border-top:1px solid var(--border)}
|
||||
.pdp-section h3{font-size:1.1rem;font-weight:700;margin-bottom:1rem}
|
||||
|
||||
/* Benefit bullets */
|
||||
.pdp-bullets{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
|
||||
.pdp-bullet{display:flex;gap:.6rem;padding:.75rem;background:var(--bg);border:1px solid var(--border);border-radius:9px}
|
||||
.pdp-bullet-icon{font-size:1.3rem;flex-shrink:0;margin-top:.1rem}
|
||||
.pdp-bullet strong{font-size:.84rem;color:var(--text)}
|
||||
.pdp-bullet-detail{font-size:.78rem;color:var(--text2);display:block;margin-top:.15rem}
|
||||
.pdp-bullet-proof{font-family:'JetBrains Mono',monospace;font-size:.65rem;color:var(--cyan);display:block;margin-top:.25rem}
|
||||
|
||||
/* Stats bar */
|
||||
.pdp-stats-bar{display:flex;justify-content:center;gap:3rem;padding:1.5rem 2rem;background:var(--bg);border-top:1px solid var(--border)}
|
||||
.pdp-stat{text-align:center}
|
||||
.pdp-stat-num{font-family:'JetBrains Mono',monospace;font-size:1.4rem;font-weight:800;color:var(--accent);display:block}
|
||||
.pdp-stat-label{font-size:.7rem;color:var(--muted)}
|
||||
|
||||
/* Why section */
|
||||
.pdp-why p{font-size:.88rem;color:var(--text2);line-height:1.7;margin-bottom:.75rem}
|
||||
|
||||
/* Review */
|
||||
.pdp-review-section{padding:2rem 2.5rem;border-top:1px solid var(--border);background:var(--bg)}
|
||||
.pdp-review-card{max-width:600px;margin:0 auto;text-align:center}
|
||||
.pdp-review-stars{font-size:1.3rem;color:var(--gold);margin-bottom:.5rem;letter-spacing:2px}
|
||||
.pdp-review-text{font-size:.95rem;color:var(--text2);line-height:1.6;font-style:italic;margin-bottom:.5rem}
|
||||
.pdp-review-author{font-family:'JetBrains Mono',monospace;font-size:.72rem;color:var(--muted)}
|
||||
|
||||
/* FAQ */
|
||||
.pdp-faq{max-width:700px}
|
||||
.pdp-faq-item{border:1px solid var(--border);border-radius:9px;margin-bottom:.5rem;overflow:hidden}
|
||||
.pdp-faq-item summary{padding:.75rem 1rem;font-size:.88rem;font-weight:600;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}
|
||||
.pdp-faq-item summary::after{content:'+';font-size:.9rem;color:var(--muted)}
|
||||
.pdp-faq-item[open] summary::after{content:'−'}
|
||||
.pdp-faq-item p{padding:0 1rem .75rem;font-size:.82rem;color:var(--text2);line-height:1.6}
|
||||
|
||||
/* Divider */
|
||||
.pdp-divider{text-align:center;padding:1.5rem;border-top:1px solid var(--border);font-family:'JetBrains Mono',monospace;font-size:.75rem;color:var(--muted)}
|
||||
|
||||
/* Asset sections */
|
||||
.pdp-asset-section{padding:1.5rem 2.5rem;border-top:1px solid var(--border)}
|
||||
.pdp-asset-section h4{font-size:.9rem;font-weight:700;margin-bottom:.75rem}
|
||||
|
||||
/* SEO preview */
|
||||
.pdp-seo{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:1rem;max-width:600px}
|
||||
.pdp-seo-title{font-size:1.05rem;color:var(--blue);font-weight:500;margin-bottom:.1rem}
|
||||
.pdp-seo-url{font-size:.72rem;color:var(--accent);margin-bottom:.25rem}
|
||||
.pdp-seo-desc{font-size:.82rem;color:var(--text2);line-height:1.5}
|
||||
|
||||
/* Ad hooks */
|
||||
.pdp-hooks-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
|
||||
.pdp-hook{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.75rem}
|
||||
.pdp-hook-text{font-size:.84rem;font-weight:600;color:var(--text);line-height:1.4;margin-bottom:.3rem}
|
||||
.pdp-hook-meta{font-family:'JetBrains Mono',monospace;font-size:.6rem;color:var(--muted)}
|
||||
|
||||
/* Email */
|
||||
.pdp-emails{display:flex;flex-direction:column;gap:.5rem}
|
||||
.pdp-email{display:flex;align-items:baseline;gap:.6rem;padding:.6rem .8rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;font-size:.82rem}
|
||||
.pdp-email-flow{font-family:'JetBrains Mono',monospace;font-size:.6rem;font-weight:700;color:var(--purple);text-transform:uppercase;background:rgba(139,92,246,.12);padding:.15rem .4rem;border-radius:3px;flex-shrink:0}
|
||||
.pdp-email strong{color:var(--text)}
|
||||
.pdp-email-preview{color:var(--muted);font-size:.75rem}
|
||||
|
||||
/* Responsive */
|
||||
@media(max-width:900px){.pdp-atf{grid-template-columns:1fr}.pdp-gallery{border-right:none;border-bottom:1px solid var(--border)}.pdp-bullets{grid-template-columns:1fr}.pdp-hooks-grid{grid-template-columns:1fr}.pdp-stats-bar{gap:1.5rem}}
|
||||
@media(max-width:800px){.input-row{flex-direction:column}.btn-gen{width:100%}.split{grid-template-columns:1fr}.split-left{border-right:none;border-bottom:1px solid var(--border)}.stats{gap:1.25rem}.step-bar{flex-direction:column;gap:.4rem}footer{flex-direction:column;gap:.3rem;text-align:center}}
|
||||
@media(max-width:500px){.nav-links a{font-size:.68rem;padding:.25rem .4rem}.btn-row{flex-direction:column}.btn{width:100%;justify-content:center}}
|
||||
@media(max-width:500px){.nav-links a{font-size:.68rem;padding:.25rem .4rem}.btn-row{flex-direction:column}.btn{width:100%;justify-content:center}.pdp-section{padding:1.25rem 1rem}.pdp-asset-section{padding:1.25rem 1rem}}
|
||||
|
||||
Reference in New Issue
Block a user