/* ═══════════════════════════════ TechPak Blocks v3 — Frontend ═══ */
*,.tp-review-card *,.tp-comparison-block *,.tp-pc-block *,.tp-verdict-block *,.tp-info-box *{box-sizing:border-box;}

/* ── Shared ─────────────────────────────────────────────────────── */
.tp-review-card,.tp-comparison-block,.tp-pc-block,.tp-verdict-block,.tp-info-box{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    margin:28px 0;
}

/* ══════════════════════════════════════════════════════════════════
   BLOCK 1 — Phone Review Card
══════════════════════════════════════════════════════════════════ */
.tp-review-card{overflow:hidden;border-style:solid;}
.tp-card-shadowed{box-shadow:0 8px 32px rgba(0,0,0,.12);}
.tp-card-bordered{box-shadow:none;}
.tp-card-flat{box-shadow:none;border-color:transparent!important;}

/* Header */
.tp-card-hd{padding:22px 26px 18px;color:#fff;}
.tp-badge{display:inline-block;padding:4px 14px;border-radius:20px;font-size:.75em;font-weight:800;letter-spacing:.5px;margin-bottom:10px;}
.tp-card-name{color:#fff!important;font-weight:700;margin:0 0 4px;line-height:1.2;}
.tp-card-tag{color:rgba(255,255,255,.75);margin:0 0 12px;font-size:.92em;}
.tp-prices{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;align-items:center;}
.tp-mp{font-size:1.05em;color:#7ec8e3;font-weight:600;}
.tp-mp strong{color:#fff;}
.tp-op{font-size:.82em;color:rgba(255,255,255,.5);text-decoration:line-through;}

/* Body */
.tp-card-body{display:grid;grid-template-columns:260px 1fr;background:#fff;}
.tp-img-right{grid-template-columns:1fr 260px;}
@media(max-width:680px){.tp-card-body,.tp-img-right{grid-template-columns:1fr!important;}}

.tp-card-img-col{padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px;border-right:1px solid #e0e7ff;}
.tp-img-right .tp-card-img-col{border-right:none;border-left:1px solid #e0e7ff;}

/* Gallery */
.tp-gal-single{margin:0;width:100%;}
.tp-gal-single img{width:100%;display:block;}

.tp-gal-slider{position:relative;overflow:hidden;border-radius:8px;}
.tp-gal-track{display:flex;overflow-x:scroll;scroll-snap-type:x mandatory;scrollbar-width:none;gap:0;}
.tp-gal-track::-webkit-scrollbar{display:none;}
.tp-gal-slide{flex:0 0 100%;scroll-snap-align:start;margin:0;}
.tp-gal-slide img{width:100%;display:block;object-fit:cover;}
.tp-gal-slide figcaption{text-align:center;font-size:.8em;color:#666;padding:4px 8px;}

.tp-gal-btn{position:absolute;top:50%;transform:translateY(-50%);
    background:rgba(0,0,0,.45);color:#fff;border:none;cursor:pointer;
    width:32px;height:32px;border-radius:50%;font-size:1.2em;
    display:flex;align-items:center;justify-content:center;z-index:2;
    padding:0;line-height:1;transition:background .2s;}
.tp-gal-btn:hover{background:rgba(0,0,0,.7);}
.tp-gal-prev{left:6px;}
.tp-gal-next{right:6px;}
.tp-gal-dots{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);
    display:flex;gap:5px;z-index:2;}
.tp-gal-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:background .2s;}
.tp-gal-dot.tp-dot-on,.tp-gal-dot:hover{background:#fff;}

.tp-gal-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.tp-gal-grid-item{margin:0;}
.tp-gal-grid-item img{width:100%;display:block;object-fit:cover;}
.tp-gal-grid-item figcaption{font-size:.75em;color:#666;padding:3px 4px;text-align:center;}

/* Rating chip */
.tp-rating-chip{border-radius:50%;width:48px;height:48px;display:flex;flex-direction:column;
    align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.25);margin-top:6px;}
.tp-r-num{font-size:1.1em;font-weight:800;color:#fff;line-height:1;}
.tp-r-den{font-size:.6em;color:rgba(255,255,255,.85);}

/* Buy button */
.tp-buy-btn{display:block;width:100%;text-align:center;color:#fff!important;text-decoration:none!important;
    padding:10px 14px;font-weight:600;font-size:.88em;transition:opacity .2s;}
.tp-buy-btn:hover{opacity:.85;}

/* Specs */
.tp-card-specs-col{padding:18px 20px;}
.tp-specs-hd{font-size:.9em;font-weight:700;color:#1a1a2e;margin:0 0 10px;padding-bottom:8px;border-bottom-width:2px;border-bottom-style:solid;}
.tp-specs-tbl{width:100%;border-collapse:collapse;}
.tp-sl{padding:7px 10px;font-weight:700;white-space:nowrap;width:36%;}
.tp-sv{padding:7px 10px;color:#333;}

/* Pros / Cons */
.tp-pc-wrap{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e0e7ff;}
@media(max-width:500px){.tp-pc-wrap{grid-template-columns:1fr;}}
.tp-pros-box,.tp-cons-box{padding:16px 20px;}
.tp-pros-box{border-right:1px solid #e0e7ff;}
.tp-pros-hd,.tp-cons-hd{font-size:.9em;font-weight:700;margin:0 0 10px;}
.tp-pros-box ul,.tp-cons-box ul{margin:0;padding:0;list-style:none;}
.tp-pros-box li,.tp-cons-box li{padding:4px 0 4px 20px;position:relative;font-size:.9em;}
.tp-pros-box li::before{content:'✓';position:absolute;left:0;font-weight:700;}
.tp-cons-box li::before{content:'✗';position:absolute;left:0;font-weight:700;}

/* Who + Take */
.tp-who-box{padding:14px 22px;background:#fff;border-top:1px solid #e0e7ff;border-left:4px solid;}
.tp-who-box h3{font-size:.9em;font-weight:700;color:#1a1a2e;margin:0 0 5px;}
.tp-who-box p{color:#444;font-size:.88em;margin:0;line-height:1.6;}
.tp-take-box{padding:18px 24px;border-radius:0 0 inherit inherit;}
.tp-take-box p{color:#fff!important;margin:0;font-size:.92em;line-height:1.75;}
.tp-take-box strong{color:#7ec8e3;}

/* ══════════════════════════════════════════════════════════════════
   BLOCK 2 — Comparison Table
══════════════════════════════════════════════════════════════════ */
.tp-comparison-block{overflow:hidden;border:2px solid #e0e7ff;box-shadow:0 4px 20px rgba(0,0,0,.08);}
.tp-comp-hdr{padding:16px 22px;}
.tp-comp-ttl{color:#fff!important;margin:0;font-weight:700;}
.tp-comp-phones{display:grid;background:#fff;border-bottom:2px solid #e0e7ff;}
.tp-comp-n2{grid-template-columns:1fr 1fr;}
.tp-comp-n3{grid-template-columns:1fr 1fr 1fr;}
@media(max-width:600px){.tp-comp-n2,.tp-comp-n3{grid-template-columns:1fr;}}
.tp-comp-phone{padding:18px 14px;text-align:center;position:relative;border:2px solid transparent;background:#fff;}
.tp-comp-phone+.tp-comp-phone{border-left:1px solid #e0e7ff;}
.tp-win{background:#f0f4ff;}
.tp-win-badge{color:#fff;font-size:.72em;font-weight:800;padding:4px 14px;
    border-radius:0 0 10px 10px;position:absolute;top:0;left:50%;transform:translateX(-50%);}
.tp-comp-phone .tp-gal-single img,.tp-comp-phone .tp-gal-slider,.tp-comp-phone .tp-gal-grid{
    max-width:120px;margin:12px auto 8px;}
.tp-comp-phone .tp-gal-single img{border-radius:8px;height:100px;object-fit:contain;}
.tp-comp-name{font-size:1em;font-weight:700;margin:4px 0;}
.tp-comp-price{font-size:.82em;color:#555;}
.tp-comp-tbl-wrap{overflow-x:auto;background:#fff;}
.tp-comp-tbl{width:100%;border-collapse:collapse;min-width:380px;}
.tp-comp-tbl th{color:#fff;padding:9px 12px;text-align:left;font-weight:600;font-size:.83em;}
.tp-comp-tbl td{padding:8px 12px;border-bottom:1px solid #f0f0f0;font-size:.9em;}
.tp-comp-lbl{font-weight:700;}
.tp-comp-verdict{padding:14px 22px;}
.tp-comp-verdict p{color:rgba(255,255,255,.9)!important;margin:0;font-size:.9em;}
.tp-comp-verdict strong{color:#7ec8e3;}

/* ══════════════════════════════════════════════════════════════════
   BLOCK 3 — Pros & Cons standalone
══════════════════════════════════════════════════════════════════ */
.tp-pc-block{overflow:hidden;}
.tp-pc-inner{display:grid;grid-template-columns:1fr 1fr;}
.tp-pc-stack .tp-pc-inner{grid-template-columns:1fr;}
@media(max-width:500px){.tp-pc-inner{grid-template-columns:1fr!important;}}
.tp-pros-section,.tp-cons-section{padding:18px 22px;border:2px solid #ccc;}
.tp-pros-section{border-right-width:1px;}
.tp-cons-section{border-left-width:0;}
@media(max-width:500px){
    .tp-pros-section{border-radius:inherit inherit 0 0!important;border-right-width:2px;border-bottom-width:0;}
    .tp-cons-section{border-radius:0 0 inherit inherit!important;border-left-width:2px;}
}
.tp-pc-block .tp-pros-hd,.tp-pc-block .tp-cons-hd{font-size:.9em;font-weight:700;margin:0 0 10px;}
.tp-pc-block ul{margin:0;padding:0;list-style:none;}
.tp-pc-block li{padding:5px 0 5px 22px;position:relative;}
.tp-pc-block .tp-pros-section li::before{content:'✓';position:absolute;left:0;font-weight:700;}
.tp-pc-block .tp-cons-section li::before{content:'✗';position:absolute;left:0;font-weight:700;}

/* ══════════════════════════════════════════════════════════════════
   BLOCK 4 — Verdict Box
══════════════════════════════════════════════════════════════════ */
.tp-verdict-block{overflow:hidden;}
.tp-verdict-inner{width:100%;}
.tp-verdict-top{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap;}
.tp-verdict-icon{font-size:1.5em;flex-shrink:0;}
.tp-verdict-title{font-size:1.05em;font-weight:700;margin:0;flex:1;}
.tp-verdict-rating{color:#fff;border-radius:20px;padding:3px 12px;font-size:.82em;font-weight:700;}
.tp-verdict-img{width:100%;display:block;margin-bottom:14px;}
.tp-verdict-text{margin:0;line-height:1.75;}

/* ══════════════════════════════════════════════════════════════════
   BLOCK 5 — Info Box
══════════════════════════════════════════════════════════════════ */
.tp-info-box{}
.tp-info-inner{overflow:hidden;}
.tp-info-row{display:flex;gap:12px;align-items:flex-start;}
.tp-info-icon{font-size:1.3em;line-height:1;flex-shrink:0;margin-top:2px;}
.tp-info-content{flex:1;}
.tp-info-title{display:block;font-weight:700;margin-bottom:4px;}
.tp-info-text{margin:0;line-height:1.65;}
