/* =============================================
   GHANI MOTORS - Unified Responsive Design
   Beautiful on Mobile & Desktop
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 120px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.btn-search {
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* =============================================
   PAGE CONTAINER
   ============================================= */
.page-container {
    padding: 30px 0;
    min-height: 60vh;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-title h1, .page-title h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 8px;
}

.page-title p {
    color: #64748b;
    font-size: 15px;
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row .form-control {
    flex: 1;
    min-width: 130px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #334155;
}

.filter-row .form-control:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-filter {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter:hover {
    transform: translateY(-1px);
}

.btn-reset {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

/* Filter Tags */
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.filter-tag:hover {
    background: #bfdbfe;
}

/* =============================================
   CAR CARDS - UNIFIED RESPONSIVE GRID
   ============================================= */
.cars-list-pakwheels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.car-card-pw {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.car-card-pw:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.car-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.car-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card-pw:hover .car-img-box img {
    transform: scale(1.05);
}

.car-img-box .no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 14px;
}

/* Image Badges */
.featured-star {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.sold-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.img-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.img-count svg {
    width: 14px;
    height: 14px;
}

/* Card Content */
.car-details-box {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.car-title-row h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    line-height: 1.3;
    padding-right: 35px;
}

.heart-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.heart-icon:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.car-price-tag {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 15px;
}

.car-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: auto;
}

.spec-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.spec-cell svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* =============================================
   CAR DETAIL PAGE - UNIFIED RESPONSIVE
   ============================================= */
.car-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.car-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Main Content */
.car-detail-main {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Gallery */
.car-gallery {
    position: relative;
    background: #1e293b;
}

.car-main-image, .main-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.car-main-image img, .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
    background: #0f172a;
}

.thumbnail {
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: #3b82f6;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Car Info */
.car-info-section {
    padding: 25px;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.car-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.car-subtitle {
    font-size: 14px;
    color: #64748b;
}

.car-price {
    text-align: right;
}

.car-price .price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
}

/* Quick Specs */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 25px;
}

.quick-spec-item {
    text-align: center;
    padding: 15px 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-spec-item svg {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    margin-bottom: 8px;
}

.quick-spec-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.quick-spec-item .label {
    font-size: 12px;
    color: #94a3b8;
}

/* Specs Table */
.specs-section, .car-specs {
    margin-bottom: 25px;
}

.specs-section h3, .car-specs h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.specs-table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 16px;
    font-size: 14px;
}

.specs-table td:first-child {
    color: #64748b;
    width: 40%;
    background: #f8fafc;
}

.specs-table td:last-child {
    color: #1e293b;
    font-weight: 500;
}

/* Description */
.description-section, .car-description {
    margin-bottom: 25px;
}

.description-section h3, .car-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.description-section p, .car-description p {
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
}

/* Sidebar */
.car-detail-sidebar {
    position: sticky;
    top: 90px;
}

.seller-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.seller-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.seller-details p {
    font-size: 13px;
    color: #64748b;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-call {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-sms {
    background: #f1f5f9;
    color: #475569;
}

.btn-sms:hover {
    background: #e2e8f0;
}

/* Share Buttons */
.share-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.share-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.share-whatsapp {
    background: #dcfce7;
    color: #166534;
}

.share-facebook {
    background: #dbeafe;
    color: #1d4ed8;
}

.share-copy {
    background: #f1f5f9;
    color: #475569;
}

/* =============================================
   RELATED CARS
   ============================================= */
.related-section {
    padding: 40px 0;
}

.related-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 25px;
}

.related-cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-car-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.related-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-car-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}

.related-car-image .car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.related-car-card .car-info {
    padding: 15px;
}

.related-car-card .car-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-car-card .car-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.related-car-card .car-price {
    font-size: 17px;
    font-weight: 700;
    color: #059669;
}

/* =============================================
   FEATURED SECTION
   ============================================= */
.featured-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.view-all {
    color: #3b82f6;
    font-weight: 600;
    font-size: 15px;
}

.view-all:hover {
    color: #1d4ed8;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
    padding: 60px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: #3b82f6;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.page-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
}

.page-dots {
    padding: 10px 5px;
    color: #94a3b8;
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* =============================================
   NO RESULTS
   ============================================= */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.no-results h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 10px;
}

.no-results p {
    color: #64748b;
}

.no-results a {
    color: #3b82f6;
    font-weight: 600;
}

/* =============================================
   MOBILE FIXED CONTACT BAR
   ============================================= */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 100;
}

.mobile-contact-bar .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-contact-bar .btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.mobile-contact-bar .btn-call-mobile {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.mobile-contact-bar .btn-whatsapp-mobile {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .cars-list-pakwheels {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .car-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .car-detail-sidebar {
        position: static;
    }
    
    .related-cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .search-box {
        padding: 15px;
        border-radius: 12px;
    }
    
    .search-grid {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    /* Filter */
    .filter-row {
        flex-direction: column;
    }
    
    .filter-row .form-control {
        width: 100%;
    }
    
    .btn-reset {
        display: none;
    }
    
    /* Car Cards */
    .cars-list-pakwheels {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .car-img-box {
        height: 220px;
    }
    
    .car-details-box {
        padding: 15px;
    }
    
    .car-title-row h3 {
        font-size: 15px;
    }
    
    .car-price-tag {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .car-specs-grid {
        gap: 8px;
    }
    
    .spec-cell {
        font-size: 12px;
    }
    
    /* Car Detail Page */
    .car-detail-container {
        padding: 15px 12px;
    }
    
    .car-main-image, .main-image {
        height: 280px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 8px;
    }
    
    .thumbnail {
        height: 55px;
    }
    
    .car-info-section {
        padding: 18px;
    }
    
    .car-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .car-title {
        font-size: 20px;
    }
    
    .car-price {
        text-align: left;
    }
    
    .car-price .price-amount {
        font-size: 22px;
    }
    
    .quick-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .quick-spec-item {
        padding: 12px 8px;
    }
    
    .quick-spec-item svg {
        width: 24px;
        height: 24px;
    }
    
    .quick-spec-item .value {
        font-size: 14px;
    }
    
    .specs-table td {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Sidebar */
    .seller-card {
        padding: 18px;
    }
    
    .contact-buttons {
        gap: 10px;
    }
    
    .btn-contact {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Mobile Contact Bar */
    .mobile-contact-bar {
        display: block;
    }
    
    body.has-contact-bar {
        padding-bottom: 80px;
    }
    
    /* Related Cars */
    .related-cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-car-image {
        height: 130px;
    }
    
    .related-car-card .car-info {
        padding: 12px;
    }
    
    .related-car-card .car-info h3 {
        font-size: 13px;
    }
    
    .related-car-card .car-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }
    
    .related-car-card .car-price {
        font-size: 15px;
    }
    
    /* Features */
    .features-section {
        padding: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .feature-card h3 {
        font-size: 15px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    /* Forms */
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    /* Page Title */
    .page-title h1, .page-title h2 {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .related-section h2 {
        font-size: 20px;
    }
    
    /* Pagination */
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 20px;
    }
    
    .car-main-image, .main-image {
        height: 220px;
    }
    
    .thumbnail {
        height: 45px;
    }
    
    .quick-specs {
        gap: 8px;
    }
    
    .quick-spec-item .value {
        font-size: 13px;
    }
    
    .quick-spec-item .label {
        font-size: 11px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .related-cars-grid {
        gap: 10px;
    }
    
    .related-car-image {
        height: 110px;
    }
}

/* =============================================
   FOOTER (inline styles used in footer.php)
   ============================================= */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-about p {
    line-height: 1.7;
    font-size: 14px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.footer-bottom p {
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}
