/* ─── Andre Repair Pricing — Front-End Price List Styles ──────────────────── */

/* ── Container ──────────────────────────────────────────────────────────── */
.aar-price-list-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.aar-device-section {
    margin-bottom: 48px;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */
.aar-section-header {
    margin-bottom: 14px;
}

.aar-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4a4a4a;
    margin: 0 0 6px 0;
    line-height: 1.2;
    /* Serif-style weight to match existing site headings */
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aar-section-icon {
    display: inline-block;
    height: 36px;
    width: auto;
    color: #1a73e8;
    flex-shrink: 0;
}

.aar-section-subtitle {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    font-style: italic;
}

/* ── Scroll wrapper (mobile) ─────────────────────────────────────────────── */
.aar-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.aar-price-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 500px; /* Forces horizontal scroll on narrow screens */
    font-size: 0.92rem;
}

/* ── Header row ──────────────────────────────────────────────────────────── */
.aar-price-table thead tr {
    background: linear-gradient(135deg, #2c2c2c 0%, #3d3d3d 100%) !important;
}

.aar-price-table th {
    padding: 14px 18px !important;
    text-align: left !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none !important;
    white-space: nowrap;
    background: transparent !important;
}

.aar-th-model {
    width: 32%;
    min-width: 160px;
}

.aar-th-price {
    text-align: center !important;
}

/* ── Body rows ───────────────────────────────────────────────────────────── */
.aar-price-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: filter 0.15s ease;
}

.aar-price-table tbody tr:last-child {
    border-bottom: none;
}

.aar-price-table tbody tr:hover {
    filter: brightness(1.08);
}

/* ── Model column ────────────────────────────────────────────────────────── */
.aar-td-model {
    background-color: #3a3a3a !important;
    color: #f0f0f0!important;
    padding: 12px 18px !important;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Price columns (available) ───────────────────────────────────────────── */
.aar-td-price {
    text-align: center;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.aar-price-available {
    background-color: #1a73e8 !important;
    color: #ffffff !important;
}

/* Alternating shade for multi-column readability */
.aar-price-table tbody tr:nth-child(even) .aar-td-model {
    background-color: #333333 !important;
    color: #f0f0f0 !important;
}

.aar-price-table tbody tr:nth-child(even) .aar-price-available {
    background-color: #1565c0 !important;
    color: #ffffff !important;
}

/* ── Unavailable price ───────────────────────────────────────────────────── */
.aar-price-unavailable {
    background-color: #2a2a2a !important;
    color: #999 !important;
    font-weight: 400;
}

.aar-price-table tbody tr:nth-child(even) .aar-price-unavailable {
    background-color: #252525 !important;
    color: #999 !important;
}

/* ── Mobile responsive ───────────────────────────────────────────────────── */
@media screen and (max-width: 640px) {
    .aar-section-title {
        font-size: 1.5rem;
    }

    .aar-price-table th,
    .aar-price-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .aar-th-model {
        min-width: 130px;
    }
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
    .aar-table-scroll {
        overflow: visible;
        box-shadow: none;
    }
    .aar-price-table {
        border: 1px solid #ccc;
    }
    .aar-price-table th {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .aar-price-available {
        background: #1a73e8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── Notes / Disclaimer ─────────────────────────────────────────────────── */
.aar-price-notes {
    margin-top: 36px;
    padding: 28px 32px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.aar-price-notes ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.aar-price-notes li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.aar-price-notes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a73e8;
    font-weight: 700;
    font-size: 1.1rem;
}

.aar-price-notes strong {
    color: #333;
}

.aar-price-notes a {
    color: #1a73e8;
    text-decoration: none;
}

.aar-price-notes a:hover {
    text-decoration: underline;
}

.aar-price-contact {
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.aar-price-contact p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
}
