/* product-brand.css - Styles for Brand Car List View Page */

/* ================= BRAND BANNER ================= */
.brand_banner_wrap {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}
.brand_banner_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(75%);
}
.brand_banner_overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 22px 26px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1) 65%);
    color: white;
}
.brand_logo_circle {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.brand_logo_circle img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}
.brand_banner_title {
    font-size: 34px;
    font-weight: 800;
    margin-top: 10px;
}
.brand_banner_desc {
    max-width: 650px;
    font-size: 16px;
    margin-top: 8px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ================= BREADCRUMBS ================= */
.breadcrumbs {
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #64748b;
}
.breadcrumbs a {
    color: #0ea5e9;
    text-decoration: none;
}
.breadcrumbs span {
    margin: 0 4px;
}

/* Brand Last Updated */
.brand_last_updated {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

/* Brand Intro Section */
.brand_intro_section {
    margin: 18px 0;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.brand_intro_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand_intro_header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.brand_intro_toggle {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    transition: 0.25s;
}

.brand_intro_toggle:hover {
    background: #e5e7eb;
}

.brand_intro_content {
    margin-top: 12px;
    display: none;
}

.brand_intro_content p {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.brand_intro_links {
    font-size: 14px;
    color: #0369a1;
}

.brand_intro_links a {
    color: #0284c7;
    text-decoration: none;
}

/* ================= BRAND HIGHLIGHTS ================= */
.brand_highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 14px;
    margin: 10px 0 18px;
}
.brand_highlight_card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.brand_highlight_label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}
.brand_highlight_value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* ================= BRAND LINEUP TABS ================= */
.brand_lineup_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 18px;
}
.brand_lineup_tab {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}
.brand_lineup_tab_active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

/* ================= FILTERS + SORTING (DESKTOP) ================= */
.filters_sort_bar {
    margin: 0 0 24px;
    padding: 14px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(15,23,42,0.06);
}
.filters_sort_bar form {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:flex-end;
}
.sort_dropdown,
.filter_input {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #94a3b8;
    font-size: 14px;
    background: #f8fafc;
    min-width: 140px;
}

/* ================= MOBILE FILTER ================= */
.mobile_filter_sticky {
    display: none;
}
.mobile_filter_sticky button {
    width: 100%;
    padding: 12px;
    background:#EC2B06;
    color:#fff;
    border:none;
    font-size:15px;
    font-weight:600;
}
.mobile_filter_panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.22);
    border-radius: 18px 18px 0 0;
    transition: 0.3s ease-in-out;
    z-index: 2000;
    max-height: 80vh;
    overflow-y: auto;
}
.mobile_filter_panel.active {
    bottom: 0;
}
.mobile_filter_panel_header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}
.mobile_filter_panel_header > div:first-child {
    font-size: 18px;
    font-weight: 700;
}
.mobile_filter_close {
    background:#e2e8f0;
    border-radius:6px;
    padding:4px 10px;
    cursor:pointer;
}
.mobile_filter_panel form {
    display:flex;
    flex-direction:column;
    gap:12px;
}
.mobile_filter_buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.mobile_filter_buttons .btn_primary {
    flex: 1;
}
.mobile_filter_buttons .btn_outline {
    flex: 1;
    text-align: center;
}

/* ================= PAGE WRAPPER ================= */
.product_container {}
.brand_page_wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 22px;
}
@media (max-width: 992px) {
    .brand_page_wrapper {
        grid-template-columns: 1fr;
    }
}

/* ================= CAR CARD ================= */
.car_card_modern {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(15,23,42,0.08);
    transition: 0.2s;
    margin-bottom: 16px;
}
.car_card_modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15,23,42,0.15);
}
.car_card_img_wrap img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}
.car_info_title_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.car_info_title {
    font-size: 20px;
    font-weight: 700;
}
.car_info_title_link {
    text-decoration: none;
    color: #0f172a;
}
.car_badge {
    background: #dcfce7;
    padding: 4px 10px;
    font-size: 12px;
    color: #15803d;
    border-radius: 20px;
    font-weight: 600;
}
.car_price {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px;
}
.car_specs {
    font-size: 14px;
    color: #475569;
    margin-top: 8px;
    line-height: 1.5;
}
.car_card_actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}
.car_card_view_link {
    text-decoration: none;
}
.btn_primary {
    padding: 9px 16px;
    background: #0284c7;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align:center;
    border: none;
    display: block;
}
.btn_outline {
    padding: 9px 16px;
    border: 1px solid #0284c7;
    color: #0284c7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align:center;
    background: transparent;
    cursor: pointer;
    display: block;
}

/* ================= PAGINATION ================= */
.pagination_wrap {
    margin: 18px 0;
    display: flex;
    justify-content: center;
}
.pagination {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.pagination li a,
.pagination li span {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
}
.pagination li span.current {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}
.pagination li a:hover {
    background: #e2e8f0;
}

/* ================= SECTION BLOCKS ================= */
.section_block {
    margin-top: 30px;
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(15,23,42,0.05);
}
.section_title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}
.simple_car_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
}
.simple_car_card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px;
    background: #f9fafb;
}
.simple_car_card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 6px;
}
.simple_car_title {
    font-size: 15px;
    font-weight: 600;
}
.simple_car_meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 3px;
}
.safety_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px,1fr));
    gap: 10px;
    margin-top: 8px;
}
.safety_item {
    font-size: 14px;
    color: #0f172a;
}
.compare_brands_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
}
.compare_card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    background: #f9fafb;
}
.compare_title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.compare_text {
    font-size: 13px;
    color: #6b7280;
}
.awards_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 12px;
}
.award_card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    background: #fefce8;
    font-size: 14px;
}
.news_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 12px;
}
.news_card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    background: #f9fafb;
    font-size: 14px;
}
.news_title {
    font-weight: 600;
    margin-bottom: 4px;
}
.faq_item {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}
.faq_q {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.faq_a {
    font-size: 14px;
    color: #4b5563;
    margin-top: 4px;
    display: none;
}

/* Price Range Section */
.price-range-item {
    margin-bottom: 10px;
}

.price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.price-range-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.price-range-header a {
    font-size: 11px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.price-range-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 4px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.price-range-car-item {
    flex: 0 0 130px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.price-range-car-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.price-range-car-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 55%;
}

.price-range-car-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.price-range-car-upcoming-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.price-range-car-content {
    padding: 4px;
}

.price-range-car-name {
    font-size: 10px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-range-car-price {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
}

/* Other Brands Section */
.other-brands-section {
    margin-bottom: 24px;
}

.other-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.other-brand-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.other-brand-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
    transform: translateY(-1px);
}

.other-brand-logo {
    max-width: 80px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}

.other-brand-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.brand_title {
    color: #000;
    text-decoration: none;
}

/* Scrollbar Styles */
.price-range-scroll::-webkit-scrollbar {
    height: 4px;
}

.price-range-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.price-range-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.price-range-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    /* Hide desktop filter */
    .filters_sort_bar {
        display:none;
    }

    /* Mobile filter sticky button */
    .mobile_filter_sticky {
        display:block;
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:1500;
    }

    /* =============== CAR GRID (2 cars per row) =============== */
    .brand_page_wrapper > div:first-child {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .car_card_modern {
        grid-template-columns: 1fr !important;
        padding: 10px;
        border-radius: 10px;
        gap: 10px;
        margin-bottom: 10px;
    }

    .car_card_img_wrap img {
        height: 110px !important;
        border-radius: 8px;
    }

    /* Compact title */
    .car_info_title {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
    }

    .car_badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    /* Compact price */
    .car_price {
        font-size: 13px;
        margin-top: 4px;
    }

    /* Compact specs */
    .car_specs {
        font-size: 11px;
        line-height: 1.3;
        margin-top: 4px;
    }

    /* Compact buttons */
    .car_card_actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 6px;
    }

    .btn_primary,
    .btn_outline {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .brand_intro_section {
        padding: 12px;
        margin: 14px 0;
        border-radius: 10px;
    }

    .brand_intro_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .brand_intro_header h1 {
        font-size: 18px;
        line-height: 1.3;
    }

    .brand_intro_toggle {
        padding: 5px 10px;
        font-size: 13px;
        align-self: flex-start;
    }

    .brand_intro_content {
        margin-top: 10px;
    }

    .brand_intro_content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .brand_intro_links {
        font-size: 13px;
    }

    .brand_intro_links a {
        font-size: 13px;
    }

    .section_title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .price-range-header h3 {
        font-size: 13px;
    }

    .price-range-header a {
        font-size: 10px;
    }

    .other-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .other-brand-card {
        padding: 10px;
    }

    .other-brand-logo {
        max-width: 70px;
        height: 45px;
        margin-bottom: 6px;
    }

    .other-brand-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .brand_intro_section {
        padding: 10px;
        margin: 10px 0;
    }

    .brand_intro_header h1 {
        font-size: 16px;
    }

    .brand_intro_toggle {
        padding: 4px 10px;
        font-size: 12px;
    }

    .brand_intro_content p {
        font-size: 13px;
        line-height: 1.45;
    }

    .brand_intro_links {
        font-size: 12.5px;
    }

    .brand_intro_links a {
        font-size: 12.5px;
    }

    .section_title {
        font-size: 15px;
    }

    .price-range-car-item {
        flex: 0 0 120px;
    }

    .other-brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .other-brand-card {
        padding: 8px;
    }

    .other-brand-logo {
        max-width: 60px;
        height: 40px;
    }

    .other-brand-name {
        font-size: 11px;
    }
}
