/* ============================================================
   CARHACKER PRODUCTS – Base Styles
   Edit freely to match your theme
   ============================================================ */

/* --- BUY BUTTONS --- */
.ch-buy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ch-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
    white-space: nowrap;
}
.ch-btn:hover { opacity: .85; text-decoration: none; }

.ch-btn--amazon    { background: #ff9900; color: #000; }
.ch-btn--aliexpress { background: #e62e04; color: #fff; }
.ch-btn--official  { background: #1a73e8; color: #fff; }

/* --- MINI CARD --- */
.ch-mini {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    background: #fff;
    max-width: 560px;
}

.ch-mini__img {
    width: 100px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.ch-mini__body { flex: 1; min-width: 0; }

.ch-mini__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a202c;
}

.ch-mini__price {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
}

/* --- FULL CARD --- */
.ch-full {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
    background: #fff;
}

.ch-full__header {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.ch-full__img {
    width: 160px;
    height: 130px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #fff;
    padding: 8px;
    border: 1px solid #e2e8f0;
}

.ch-full__header-info { flex: 1; min-width: 200px; }

.ch-full__brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #718096;
    margin-bottom: 4px;
}

.ch-full__name {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 8px;
}

.ch-full__overall {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.ch-overall-score {
    font-size: 38px;
    font-weight: 900;
    color: #2563eb;
    line-height: 1;
}

.ch-overall-label { color: #718096; font-size: 14px; }

.ch-full__price { font-size: 14px; color: #4a5568; margin-bottom: 8px; }

.ch-full__verdict {
    font-size: 15px;
    color: #2d3748;
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Feature badges */
.ch-full__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.ch-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ch-badge--yes { background: #dcfce7; color: #15803d; }
.ch-badge--no  { background: #fee2e2; color: #dc2626; }

/* Scores */
.ch-full__scores,
.ch-full__specs,
.ch-full__notes,
.ch-full__tags {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.ch-full__section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #718096;
    margin: 0 0 12px;
}

.ch-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ch-score-label {
    font-size: 13px;
    color: #4a5568;
    width: 160px;
    flex-shrink: 0;
}

.ch-score-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.ch-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .3s ease;
}

.ch-score-val {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* Specs table */
.ch-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ch-specs-table tr:nth-child(even) { background: #f8fafc; }
.ch-specs-table td { padding: 7px 10px; color: #2d3748; }
.ch-specs-table__label {
    font-weight: 600;
    color: #718096;
    width: 160px;
}

/* Tags */
.ch-full__tags { border-bottom: none; }

.ch-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 4px 4px 0;
}

/* --- COMPARE TABLE --- */
.ch-compare-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ch-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    min-width: 500px;
}

.ch-compare thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.ch-compare th,
.ch-compare td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.ch-compare__label-col {
    text-align: left !important;
    width: 160px;
    background: #fff;
}

.ch-compare__row-label {
    text-align: left !important;
    font-weight: 600;
    color: #4a5568;
    background: #fff;
}

.ch-compare__img {
    width: 80px;
    height: 65px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
    border-radius: 4px;
    background: #fff;
}

.ch-compare__pname {
    font-weight: 700;
    font-size: 13px;
    color: #1a202c;
    margin-bottom: 8px;
}

.ch-compare tbody tr:nth-child(even) { background: #f8fafc; }
.ch-compare tbody tr:hover { background: #eff6ff; }

.ch-compare__verdict {
    font-style: italic;
    font-size: 13px;
    color: #4a5568;
}

.ch-compare__verdict-row {
    background: #f0fdf4 !important;
}

.ch-yn--yes { color: #15803d; font-weight: 700; }
.ch-yn--no  { color: #dc2626; font-weight: 700; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .ch-mini { flex-direction: column; }
    .ch-mini__img { width: 100%; height: 160px; }
    .ch-full__header { flex-direction: column; }
    .ch-full__img { width: 100%; height: 200px; }
    .ch-score-label { width: 110px; font-size: 12px; }
}
