/* ============================================================
   CARHACKER PRODUCTS v1.7
   ============================================================ */

/* ---- MAIN CTA ---- */
.ch-btn-cta {
    display: block; width: 100%; padding: 14px 20px;
    background: #f97316; color: #fff !important;
    border-radius: 8px; font-size: 16px; font-weight: 700;
    text-decoration: none !important; text-align: center;
    transition: background .15s, transform .1s;
    box-sizing: border-box; margin-top: 10px; cursor: pointer;
}
.ch-btn-cta:hover { background: #ea6c0a; color: #fff !important; transform: translateY(-1px); }

/* ---- STORE BUTTONS ---- */
.ch-store-btn {
    display: block; width: 100%; padding: 11px 16px;
    border-radius: 6px; font-size: 14px; font-weight: 600;
    text-decoration: none !important; text-align: center;
    transition: filter .15s, transform .1s;
    box-sizing: border-box; margin-bottom: 8px; color: #fff !important;
}
.ch-store-btn:last-child { margin-bottom: 0; }
.ch-store-btn:hover { filter: brightness(.88); transform: translateY(-1px); text-decoration: none !important; }
.ch-store-btn--compact { font-size: 13px; padding: 9px 14px; }
.ch-store-btn--official { background: #1a73e8; }
.ch-store-btn--amazon   { background: #e07b00; color: #fff !important; }
.ch-store-btn--ali      { background: #e62e04; }
.ch-store-btn--add1     { background: #b91c1c; }
.ch-store-btn--add2     { background: #7c3aed; }

.ch-mini__store-btns,
.ch-full__store-btns { margin-top: 10px; }

/* ---- CENTERED REVIEW LINK ---- */
.ch-centered-link { text-align: center; margin-top: 10px; }
.ch-review-link { font-size: 14px; color: #2563eb; text-decoration: none; }
.ch-review-link:hover { text-decoration: underline; }

.ch-coupon { font-size: 12px; color: #854d0e; background: #fef9c3; border: 1px dashed #f59e0b; border-radius: 6px; padding: 5px 10px; margin-top: 8px; display: inline-block; }

/* ---- PITCH TEXT + WHY BUY ---- */
.ch-pitch-intro { font-size: 14px; color: #374151; margin: 0 0 6px; line-height: 1.5; }
.ch-pitch-link { color: #2563eb !important; text-decoration: none !important; font-weight: 700 !important; }
.ch-pitch-link:hover { text-decoration: underline !important; }
.ch-why-buy { margin: 6px 0 0; padding-left: 18px; }
.ch-why-buy li { font-size: 13px; color: #374151; margin-bottom: 4px; line-height: 1.4; }
.ch-why-buy li::marker { color: #22c55e; }
.ch-full__pitch { margin-bottom: 12px; margin-right: 130px; }
.ch-affx-row__pitch { margin-top: 4px; }
.ch-affx-row__pitch .ch-pitch-intro { font-size: 14px; }
.ch-affx-row__pitch .ch-why-buy li { font-size: 13px; }

/* ---- SCORE CIRCLE ---- */
.ch-score-circle { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ch-score-circle svg { position: absolute; top: 0; left: 0; }
.ch-score-circle__num { position: relative; font-weight: 900; line-height: 1; z-index: 1; }

/* ---- BADGE ---- */
.ch-product-badge {
    display: inline-flex !important; align-items: center; gap: 4px;
    padding: 3px 10px !important; border-radius: 20px !important;
    font-size: 11px !important; font-weight: 700 !important; margin-bottom: 8px;
    letter-spacing: .02em; line-height: 1.4;
}
.ch-product-badge::before { content: '★'; font-size: 9px; opacity: .8; }

/* ---- SECTION TITLE ---- */
.ch-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin: 0 0 10px; }

/* ============================================================
   MINI CARD
   ============================================================ */
.ch-mini { display: flex; gap: 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin: 20px 0; background: #fff; width: 100%; box-sizing: border-box; }
.ch-mini__img-wrap { background: #fff; padding: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid #e5e7eb; width: 240px; min-height: 200px; }
.ch-mini__img { width: 220px; height: 180px; object-fit: contain; display: block; }
.ch-mini__body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.ch-mini__name { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 5px; }
.ch-mini__verdict { font-size: 14px; color: #6b7280; font-style: italic; margin-bottom: 8px; line-height: 1.4; }

/* ============================================================
   FULL CARD
   ============================================================ */
.ch-full { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; margin: 28px 0; background: #fff; }
.ch-full__header { display: flex; background: #fff; border-bottom: 1px solid #e5e7eb; }
.ch-full__img-wrap { background: #fff; padding: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid #e5e7eb; width: 340px; min-height: 260px; }
.ch-full__img { width: 320px; height: 260px; object-fit: contain; display: block; }
.ch-full__header-info { flex: 1; padding: 20px 24px; position: relative; }

/* Score in top-right corner */
.ch-full__score-corner { position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ch-full__score-label-top { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; }

.ch-full__brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: 3px; margin-right: 115px; }
.ch-full__name { font-size: 24px; font-weight: 800; color: #111827; margin: 0 0 10px; margin-right: 115px; }
.ch-full__verdict { font-size: 15px; color: #374151; font-style: italic; margin-bottom: 12px; line-height: 1.5; border-left: 3px solid #f97316; padding-left: 12px; }

.ch-full__tester-notes { display: flex; gap: 14px; align-items: flex-start; padding: 16px 24px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.ch-tester-notes__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ch-tester-notes__content { flex: 1; }
.ch-tester-notes__title { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.ch-tester-notes__text { font-size: 13px; color: #475569; line-height: 1.6; }
.ch-tester-list { margin: 4px 0 8px; padding-left: 0; list-style: none; }
.ch-tester-list li { font-size: 13px; margin-bottom: 4px; line-height: 1.4; padding-left: 20px; position: relative; }
.ch-tester-list--likes li { color: #166534; }
.ch-tester-list--likes li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.ch-tester-list--cons li { color: #991b1b; }
.ch-tester-list--cons li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
.ch-tester-block--likes { background: #f0fdf4; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.ch-tester-block--cons  { background: #fff5f5; border-radius: 6px; padding: 10px 12px; }

.ch-full__badges { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 24px; border-bottom: 1px solid #f3f4f6; background: #f9fafb; }
.ch-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ch-badge--full    { background: #dcfce7; color: #15803d; }
.ch-badge--partial { background: #fef9c3; color: #854d0e; }
.ch-badge--no      { background: #fee2e2; color: #dc2626; }

.ch-full__section { padding: 14px 24px; border-bottom: 1px solid #f3f4f6; }
.ch-full__section:last-child { border-bottom: none; }

.ch-service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ch-service-tag { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }

.ch-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.ch-score-label { font-size: 13px; color: #6b7280; width: 155px; flex-shrink: 0; }
.ch-score-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.ch-score-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.ch-score-val { font-size: 13px; font-weight: 700; color: #111827; width: 40px; text-align: right; flex-shrink: 0; }

.ch-specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ch-specs-table tr:nth-child(even) { background: #f9fafb; }
.ch-specs-table td { padding: 7px 10px; color: #374151; }
.ch-specs-table__label { font-weight: 600; color: #9ca3af; width: 180px; }
.ch-spec-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.ch-spec-badge--ok   { background: #dcfce7; color: #15803d; }
.ch-spec-badge--warn { background: #fee2e2; color: #dc2626; }

.ch-sticky-cta { display: none !important; }
.ch-sticky-cta__name { font-size: 13px; font-weight: 600; color: #111827; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-sticky-cta__score { font-size: 13px; font-weight: 700; color: #22c55e; flex-shrink: 0; }
.ch-sticky-cta__btn { background: #f97316; color: #fff !important; padding: 10px 16px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none !important; flex-shrink: 0; white-space: nowrap; }

/* ============================================================
   TOP 3
   ============================================================ */
.ch-top3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.ch-top3__card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s; }
.ch-top3__card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.ch-top3__img-wrap { background: #fff; padding: 10px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f3f4f6; min-height: 190px; }
.ch-top3__img { width: 210px; height: 175px; object-fit: contain; display: block; }
.ch-top3__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.ch-top3__brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: 2px; }
.ch-top3__name { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 10px; line-height: 1.3; }
.ch-top3__score-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ch-top3__verdict { font-size: 14px; color: #374151; line-height: 1.45; flex: 1; }
.ch-top3__coupon { font-size: 11px; color: #854d0e; background: #fef9c3; border-radius: 4px; padding: 4px 8px; margin-top: 6px; text-align: center; }

/* ============================================================
   AFFILIATEX-STYLE STACKED TABLE
   ============================================================ */
.ch-affx-table { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; margin-top: 12px; }
.ch-affx-row { display: flex; align-items: stretch; border-bottom: 1px solid #f3f4f6; background: #fff; }
.ch-affx-row:last-child { border-bottom: none; }
.ch-affx-row:nth-child(even) { background: #fafafa; }

.ch-affx-row__img-col { flex-shrink: 0; width: 25%; padding: 12px; display: flex; align-items: center; justify-content: center; background: #fff; border-right: 1px solid #f3f4f6; }
.ch-affx-row__img { width: 100%; max-width: 170px; max-height: 140px; object-fit: contain; display: block; }

.ch-affx-row__content { flex: 1; padding: 16px 20px; }
.ch-affx-row__name { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.ch-affx-row__desc { font-size: 14px; color: #4b5563; line-height: 1.55; margin-bottom: 4px; }
.ch-affx-row__desc a { color: #2563eb; text-decoration: none; }
.ch-affx-row__desc a:hover { text-decoration: underline; }
.ch-affx-row__coupon { font-size: 12px; color: #854d0e; margin-top: 8px; }

.ch-affx-row__btns { flex-shrink: 0; width: 25%; padding: 16px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #f3f4f6; background: #fff; }

/* ============================================================
   FEATURE COMPARISON GRID
   ============================================================ */
.ch-diff-toggle { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; cursor: pointer; user-select: none; }
.ch-compare-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; }
.ch-compare { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; min-width: 480px; }
.ch-compare thead tr { background: #fff; border-bottom: 2px solid #e5e7eb; }
.ch-compare th { padding: 10px 14px; text-align: center; background: #fff !important; }
.ch-compare td { padding: 10px 14px; text-align: center; border-bottom: 1px solid #f3f4f6; background: #fff; }
.ch-compare__label-col { text-align: left !important; width: 160px; }
.ch-compare__row-label { text-align: left !important; font-weight: 600; color: #6b7280; font-size: 12px; }
.ch-compare__product-col--featured { background: #fff !important; }
.ch-compare__cell--featured { background: #fff7ed !important; }
.ch-compare__img { width: 60px; height: 48px; object-fit: contain; display: block; margin: 0 auto 6px; background: #fff; }
.ch-compare__pname { font-weight: 700; font-size: 12px; color: #111827; }
.ch-compare tbody tr:nth-child(even) td { background: #fafafa; }
.ch-compare tbody tr:nth-child(even) td.ch-compare__cell--featured { background: #fff7ed !important; }
.ch-compare tbody tr:hover td { background: #eff6ff !important; }
.ch-compare__row.ch-row--same { opacity: .8; }

/* Bottom CTA row */
.ch-compare-cta-row { display: flex; border-top: 2px solid #e5e7eb; background: #fff; }
.ch-compare-cta-empty { width: 160px; flex-shrink: 0; padding: 14px; }
.ch-compare-cta-cell { flex: 1; padding: 14px; border-left: 1px solid #e5e7eb; background: #fff; }
.ch-compare-cta-cell--featured { background: #fff7ed !important; }
.ch-compare-cta-img-wrap { background: #fff; padding: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.ch-compare-cta-img { width: 70px; height: 56px; object-fit: contain; display: block; }

.ch-compare__store-row td { padding: 6px 14px; }
.ch-store-btn--table {
    display: inline-block; padding: 5px 16px;
    border-radius: 5px; font-size: 12px; font-weight: 600;
    text-decoration: none !important; color: #fff !important;
    transition: filter .15s;
}
.ch-store-btn--table:hover { filter: brightness(.88); }
.ch-yn--full    { color: #15803d; }
.ch-yn--partial { color: #854d0e; }
.ch-yn--no      { color: #dc2626; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .ch-top3 { grid-template-columns: 1fr; }
    .ch-affx-row { flex-direction: column; }
    .ch-affx-row__img-col { width: 100%; border-right: none; border-bottom: 1px solid #f3f4f6; }
    .ch-affx-row__btns { width: 100%; border-left: none; border-top: 1px solid #f3f4f6; flex-direction: column; gap: 0; }
    .ch-affx-row__btns .ch-store-btn { width: 100%; flex: none; }
    .ch-compare-cta-row { flex-direction: column; }
    .ch-compare-cta-empty { display: none; }
}
@media (max-width: 640px) {
    .ch-mini { flex-direction: column; }
    .ch-mini__img-wrap { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; min-height: unset; }
    .ch-full__header { flex-direction: column; }
    .ch-full__img-wrap { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; min-height: unset; }
    .ch-full__brand, .ch-full__name, .ch-full__pitch { margin-right: 0; }
    .ch-full__score-corner { position: static; flex-direction: row; margin-bottom: 10px; }
    .ch-score-label { width: 110px; font-size: 12px; }
    .ch-specs-table__label { width: 130px; }
    /* sticky CTA disabled */
}
@media (min-width: 641px) { .ch-sticky-cta { display: none !important; } }

/* ============================================================
   HOW I TEST BLOCK
   ============================================================ */
.ch-how-i-test {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 12px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    text-align: center;
}
.ch-how-i-test__link {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}
.ch-how-i-test__link:hover { text-decoration: underline; }

/* ============================================================
   TESTER NOTES AVATAR LINK
   ============================================================ */
.ch-tester-notes__avatar-link { display: block; flex-shrink: 0; }
.ch-tester-notes__title a { color: inherit; font-weight: 700; }

/* ============================================================
   PRODUCT CARD (collapsible)
   ============================================================ */
.ch-card__expand-wrap {
    text-align: center;
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.ch-card__expand-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.ch-card__expand-btn:hover { background: #e2e8f0; }
.ch-card__expandable { margin-top: 8px; }

/* ============================================================
   PRODUCT PICK (tester's pick highlight box)
   ============================================================ */
.ch-pick {
    border: 2px solid #22c55e;
    border-radius: 14px;
    background: #f0fdf4;
    margin: 24px 0;
    overflow: hidden;
}
.ch-pick__label-bar {
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    letter-spacing: 0.04em;
}
.ch-pick .ch-full__header {
    background: transparent;
    border: none;
    padding: 20px;
}
.ch-pick__custom-desc {
    font-size: 14px;
    color: #15803d;
    font-weight: 600;
    margin: 0 0 8px;
    font-style: italic;
}


/* ============================================================
   TESTING STATS SHORTCODE
   ============================================================ */
.ch-test-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.ch-test-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 24px;
    min-width: 120px;
}
.ch-test-stat__num {
    font-size: 32px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
    margin-bottom: 4px;
}
.ch-test-stat__label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}
