/* =================================================================
   ArkLaTexRides Vehicle Card  -  v1.1.0
   Facts card (top) + Amazon products (bottom)
================================================================= */

/* --- FACTS CARD ------------------------------------------------ */

.altr-vehicle-card {
    border: 1px solid #dde0e3;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 28px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.altr-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 20px;
}

.altr-car-svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #e8481a;
}

.altr-card-title {
    margin: 0 0 3px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.altr-card-source {
    margin: 0;
    font-size: .8rem;
    color: #aaa;
    letter-spacing: .02em;
}

.altr-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

@media (max-width: 600px) {
    .altr-card-grid { grid-template-columns: 1fr; }
}

.altr-card-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 18px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    transition: background .15s;
}

.altr-card-row:nth-child(even) { background: #f9f9f9; }
.altr-card-row:last-child,
.altr-card-row:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.altr-card-row.altr-row-highlight { background: #fff8f5; }
.altr-card-row.altr-row-good      { background: #f0faf3; }
.altr-card-row.altr-row-warn      { background: #fffbf0; }

.altr-row-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #777;
    margin-bottom: 4px;
}

.altr-row-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
}

.altr-star {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.altr-star-on  { color: #f4a10a; }
.altr-star-off { color: #ddd; }

.altr-star-label {
    font-size: .8rem;
    color: #888;
    margin-left: 5px;
    font-weight: 400;
}

.altr-badge {
    display: inline-block;
    font-size: .9rem;
    font-weight: 600;
    padding: 2px 0;
}

.altr-recall-link {
    font-size: .85rem;
    color: #c0392b;
    text-decoration: underline;
    margin-left: 6px;
    white-space: nowrap;
}

.altr-na { color: #aaa; font-style: italic; }

.altr-no-data {
    padding: 16px 18px;
    color: #666;
    font-size: .95rem;
    margin: 0;
}

/* --- AMAZON SECTION -------------------------------------------- */

.altr-amazon-section {
    margin: 28px 0 0;
    border: 1px solid #ffe0d0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.altr-amazon-header {
    background: linear-gradient(135deg, #e8481a 0%, #c73a12 100%);
    padding: 18px 22px 14px;
    color: #fff;
}

.altr-amazon-title {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.altr-amazon-sub {
    margin: 0;
    font-size: .88rem;
    color: rgba(255,255,255,.88);
}

.altr-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
}

@media (max-width: 900px) {
    .altr-product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 540px) {
    .altr-product-grid { grid-template-columns: 1fr 1fr; }
}

.altr-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 20px 10px 14px;
    border-right: 1px solid #f0e8e0;
    border-bottom: 1px solid #f0e8e0;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background .15s, transform .15s, box-shadow .15s;
    position: relative;
    text-align: center;
}

.altr-product-card:hover {
    background: #fff8f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(232,72,26,.14);
    z-index: 1;
    text-decoration: none;
}

.altr-p-rank {
    position: absolute;
    top: 7px;
    left: 9px;
    font-size: .72rem;
    font-weight: 800;
    color: #e8481a;
    letter-spacing: .03em;
}

.altr-p-img-wrap {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    flex-shrink: 0;
}

.altr-p-img {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.altr-p-img-fallback {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.altr-p-label {
    font-size: .88rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.altr-p-cta {
    font-size: .78rem;
    color: #e8481a;
    font-weight: 700;
    margin-top: auto;
}

.altr-amazon-disclosure {
    padding: 9px 18px;
    font-size: .75rem;
    color: #999;
    margin: 0;
    background: #fafafa;
    border-top: 1px solid #f0e8e0;
    text-align: center;
}
