.aiz-side-nav-list .aiz-side-nav-link {
    font-weight: 300;
}
body {
    font-size: 14.5px;
}

.nav-tabs {
    border-bottom: none !important;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 4px solid #c5142b;
}

.nav-tabs .nav-link {
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
}

[dir="rtl"] .hov-animate-outline:hover::before {
    border-radius: 0.25rem !important;
}

.hov-animate-outline:hover::before, .hov-animate-outline:hover::after {
    width: 100% !important;
}

.tab-content .slick-slide {
    margin: 0 6px;
}

.mega-menu {
    position: fixed;
    top: 78px;
    left: 0;
    width: 1400px;
    padding: 20px 40px;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mega-menu-parent:hover > .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
 .responsive-car-index {
     width: 700px;
 }
@media (max-width: 1366px) {
    .responsive-car-index {
        width: 600px;
    }
}
@media (max-width: 768px) {
    .responsive-car-index {
        width: 300px;
    }
}
@media (min-width: 1200px) {
    .home-slider {
        max-width: 100% !important;
    }
}
.title-with-lines {
    width: 100%;
    height: 2px;
    position: relative;
    top: 30px;
    margin: 0 auto;
    background: var(--primary);
}
.product-title h1 {
    z-index:9;
    width: fit-content;
}
.product-title span {
    letter-spacing: 3px;
}
.info-title .title-with-lines {
    background: var(--soft-light);
    top: 19px;
}
.info-title h1 {
    z-index:9;
    width: fit-content;
}
.info-title span {
    letter-spacing: 3px;
}
.aiz-accordion-heading .aiz-accordion {
    text-align: right;
}
.aiz-accordion-heading .aiz-accordion:after {
    float: left;
}
.blur-background {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgb(255 255 255 / 20%) !important;
    border-radius: 15px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

@media (max-width: 767px){
    #flash_deal .flash-deals-baner{
        height: 203px !important;
    }
}

body {
    background-color: #f8f9fa; /* A very light grey background */
}

/* General Card Styling */
.custom-card {
    background-color: #ffffff;
    border: none;
    border-radius: 1rem; /* Softer corners */
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.15);
}

/* Improved Section Spacing */
.section-spacing {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Intro Section Title */
.intro-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.75rem;
    display: inline-block;
}

/* Modern Tabs */
.modern-tabs .nav-link {
    border: none;
    border-bottom: 4px solid transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.modern-tabs .nav-link.active,
.modern-tabs .nav-link:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
    background-color: transparent !important;
}

/* Service Icons Section */
.service-box {
    background: linear-gradient(145deg, #ffffff, #f1f3f5);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e9ecef;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.service-box img {
    transition: transform 0.3s ease;
}

.service-box:hover img {
    transform: scale(1.1);
}

/* Consultation Form Improvements */
.consult-form .form-control {
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.consult-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.consult-form .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Testimonials Section */
.testimonial-card {
    border-left: 5px solid var(--primary);
    background: #fff;
}

/* Hybrid Car Section */
.hybrid-section {
    background-color: #1a202c; /* Dark background */
    color: #fff;
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hybrid-section .responsive-car-index {
    transition: transform 0.5s ease-out;
}

.hybrid-section:hover .responsive-car-index {
    transform: scale(1.05);
}

.hybrid-section .feature-list i {
    color: #3498db;
}

/* Responsive Slider Height */
@media (max-width: 767px) {
    #flash_deal .flash-deals-baner {
        height: 203px !important;
    }

    .intro-title {
        font-size: 1.75rem;
    }

    .section-spacing {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Add this to your existing <style> block */
.service-box i.la-icon {
    font-size: 60px; /* Adjust size as needed */
    color: var(--primary);
    transition: transform 0.3s ease;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.service-box:hover i.la-icon {
    transform: scale(1.15);
}

.modern-footer {
    background: linear-gradient(135deg, #23272a 0%, #1c1f22 100%);
    color: #a7aeb9;
    padding-top: 60px;
    font-size: 15px;
}
.modern-footer .footer-widget {
    margin-bottom: 40px;
}
.modern-footer .footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.modern-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary); /* Uses your theme's primary color */
    border-radius: 3px;
}
.modern-footer p, .modern-footer .widget-list a, .modern-footer .widget-list span {
    color: #a7aeb9;
    line-height: 1.8;
}
.modern-footer .widget-list {
    list-style: none;
    padding-right: 0;
}
.modern-footer .widget-list li {
    margin-bottom: 12px;
}
.modern-footer .widget-list a {
    text-decoration: none;
    transition: all 0.3s ease;
}
.modern-footer .widget-list a:hover {
    color: #ffffff;
    padding-right: 8px;
}
.modern-footer .contact-info-list .list-item {
    display: flex;
    align-items: flex-start;
}
.modern-footer .contact-info-list i {
    color: var(--primary);
    font-size: 20px;
    margin-left: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}
.modern-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    margin-left: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.modern-footer .social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}
.modern-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 20px;
}
.modern-footer .copyright-text {
    color: #8c96a6;
    font-size: 14px;
}
.modern-footer .copyright-text a{
    color: #fff;
    font-weight: 500;
}
.modern-footer .payment-methods img {
    max-height: 25px;
    margin: 0 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.modern-footer .payment-methods img:hover {
    opacity: 1;
}

/* Accordion Styles for Mobile */
.modern-footer .aiz-accordion-wrap {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modern-footer .aiz-accordion-heading {
    padding: 15px 0;
}
.modern-footer .aiz-accordion-heading button {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}
.modern-footer .aiz-accordion-heading button::after {
    color: var(--primary); /* Arrow color */
}
.modern-footer .aiz-accordion-panel {
    padding: 0 0 15px 0;
    background-color: transparent !important;
}


.product-card-modern {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.product-card-modern .card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f3f4f6;
}
.product-card-modern .card-image-wrapper img {
    transition: transform 0.4s ease, filter 0.4s ease;
}
.product-card-modern:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.product-card-modern .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    height: 44px; /* for 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card-modern .product-title a {
    color: inherit;
    text-decoration: none;
}
.product-card-modern .brand-logo {
    max-width: 50px;
    height: auto;
    object-fit: contain;
}
.product-card-modern .tech-specs {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}
.product-card-modern .tech-specs li {
    text-align: center;
}
.product-card-modern .tech-specs img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.product-card-modern .tech-specs li:hover img {
    opacity: 1;
}
.product-card-modern .action-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 12px 12px 12px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.product-card-modern:hover .action-button {
    transform: translateY(0);
    opacity: 1;
}
.product-card-modern .btn-view-product {
    width: 100%;
    font-weight: 500;
    border-radius: 8px;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}
.product-card-modern .product-icons-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card-modern .product-icons-top a {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.product-card-modern .product-icons-top a:hover {
    background-color: var(--primary);
    color: #fff;
}
.product-card-modern .product-icons-top a svg {
    fill: currentColor;
}
/* Discount Badge */
.product-card-modern .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* ==========================================================================
   Modern Product Key Specs Section Styles
   ========================================================================== */

/* Main container for the specs section */
.product-key-specs-section {
    border-radius: 1.25rem; /* 20px */
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden; /* Ensures content respects the border radius */
}

/* Product Title Styling */
.product-key-specs-section .product-main-title-wrapper {
    position: relative;
    text-align: center;
}
.product-key-specs-section .title-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
    z-index: 1;
}
.product-key-specs-section .product-main-title {
    position: relative;
    display: inline-block; /* Allows the element to have a background and padding */
    background-color: #fff;
    padding: 0 2rem; /* Creates space around the title, revealing the line behind it */
    z-index: 2;
    font-weight: 800;
    color: #1a202c;
}
.product-key-specs-section .product-subtitle {
    font-weight: 500;
    color: #0d6efd; /* Bootstrap primary color */
    letter-spacing: 0.5px;
}


/* Key Attributes Grid */
.product-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on small screens */
    gap: 1.25rem; /* 20px */
    padding: 0 1rem; /* Padding on mobile */
}
/* On medium screens and up (tablets), show 4 columns */
@media (min-width: 768px) {
    .product-attributes-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }
}

/* Individual Attribute Card */
.attribute-card {
    background-color: #f8f9fa; /* A very light grey */
    border: 1px solid #e9ecef;
    border-radius: 0.75rem; /* 12px */
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition */
}
.attribute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
    border-color: #dee2e6;
}

.attribute-card .attribute-icon {
    width: 60px; /* Consistent icon size */
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.attribute-card:hover .attribute-icon {
    transform: scale(1.05);
}

.attribute-card .attribute-label {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: #4a5568;
}

/* Catalog Button */
.btn-catalog-download {
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    border-radius: 0.5rem; /* 8px */
    border-width: 2px;
    transition: all 0.3s ease;
    border-color: #4a5568;
    color: #4a5568;
}

.btn-catalog-download:hover {
    background-color: #4a5568;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(74, 85, 104, 0.2);
}

.product-slider-card-split {
    display: flex;
    height: 380px; /* Adjust height as needed */
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    transition: all 0.3s ease-in-out;
    border: 1px solid #e5e7eb;
}
.product-slider-card-split:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Image Section */
.product-slider-card-split .image-section {
    position: relative;
    flex: 6; /* 60% width */
    background-color: #f8f9fa; /* Light grey background for the image container */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-slider-card-split .image-section a {
    display: block;
    width: 100%;
    height: 100%;
}
.product-slider-card-split .image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* IMPORTANT: This makes it work with any image aspect ratio */
    transition: transform 0.4s ease;
}
.product-slider-card-split:hover .image-section img {
    transform: scale(1.05);
}

/* Info Section */
.product-slider-card-split .info-section {
    flex: 4; /* 40% width */
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* Beautiful Gradient Background */
    background: #1f2937;
    color: #fff;
}
.info-section .info-header .brand-logo {
    height: 35px;
    max-width: 90px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.info-section .info-header .title-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.info-section .info-header .title-text a {
    color: inherit;
    text-decoration: none;
}
.info-section .info-header .subtitle-text {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}
/* --- 2-COLUMN SPECS LIST (MODIFIED) --- */
.info-section .tech-specs-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
    /* NEW STYLES FOR 2-COLUMN GRID */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px; /* row-gap | column-gap */
}
.info-section .tech-specs-list li {
    display: flex;
    align-items: center;
    font-size: 14px;
    /* REMOVED: margin-bottom: 12px; (now handled by gap) */
    color: #e2e8f0;
}
.info-section .tech-specs-list img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    filter: invert(1) opacity(0.7);
}
.info-section .info-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
}
.info-section .price-display .current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}
.info-section .price-display .original-price {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 8px;
}
.info-section .btn-action-main {
    width: 100%;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 12px;
}

/* Common elements for both sections */
.product-slider-card-split .card-top-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    gap: 10px;
}
.product-slider-card-split .card-top-actions a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}
.product-slider-card-split .card-top-actions a:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.product-slider-card-split .discount-badge-slider {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    background-color: #ef4444;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
}

:root {
    --primary-red: #c5142b;
    --primary-red-darker: #a11023; /* A darker shade for hover effects */
}

.sales-contact-box-red {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%); /* Dark Gray/Black Gradient */
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 24px;
}

.sales-contact-box-red .icon-wrapper {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-red);
    z-index: 2;
}
.sales-contact-box-red .icon-wrapper i {
    font-size: 32px;
    color: var(--primary-red);
}

.sales-contact-box-red .info-wrapper {
    z-index: 2;
    flex-grow: 1;
}
.sales-contact-box-red .contact-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.sales-contact-box-red .contact-details {
    font-size: 16px;
    color: #a0aec0; /* Lighter text for details */
    margin-top: 4px;
}

.sales-contact-box-red .call-button-wrapper {
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sales-contact-box-red .btn-call-expert {
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.sales-contact-box-red .btn-call-expert:hover {
    background-color: var(--primary-red-darker);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(197, 20, 43, 0.3);
}
.sales-contact-box-red .phone-number-main {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    direction: ltr; /* Important for phone number display */
    margin-top: 12px;
}
.sales-contact-box-red .phone-number-main small {
    display: block;
    margin-top: 2px;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sales-contact-box-red {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .sales-contact-box-red::before {
        font-size: 120px;
        opacity: 0.02;
    }
    .sales-contact-box-red .call-button-wrapper {
        margin-top: 20px;
        width: 100%;
    }
    .sales-contact-box-red .btn-call-expert {
        width: 100%;
        justify-content: center; /* Center button content on mobile */
    }
}
/*
 * استایل برای آیکون‌های SVG دو-رنگ
 */
.duotone-icon {
    width: 25px;
    height: 25px;
    stroke-width: 2;
}

/* بخش اصلی آیکون که رنگ پایه را می‌گیرد */
.duotone-icon .primary-stroke {
    stroke: #c5142b; /* <<<<<<<< رنگ پایه شما <<<<<<<< */
}

.duotone-icon .primary-fill {
    fill: #c5142b; /* <<<<<<<< رنگ پایه شما <<<<<<<< */
}


/* بخش ثانویه آیکون که رنگ خنثی دارد */
.duotone-icon .secondary-stroke {
    stroke: #333; /* یک رنگ خاکستری خنثی */
}

/* تغییر رنگ در زمان هاور */
.tech-specs li:hover .duotone-icon .primary-stroke {
    stroke: #9e081b; /* نسخه تیره‌تر رنگ پایه */
}
.tech-specs li:hover .duotone-icon .primary-fill {
    fill: #9e081b; /* نسخه تیره‌تر رنگ پایه */
}


.filter-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: 1px solid #e0e0e0;
}

.filter-box-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

/* استایل بخش‌های مختلف فیلتر */
.filter-section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-top: 0;
    margin-bottom: 16px;
}

/* استایل کادر جستجو */
.search-input-container {
    position: relative;
}

.search-input-container input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input-container input:focus {
    outline: none;
    border-color: #c5142b; /* رنگ پایه شما */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
}

/* استایل اسلایدر قیمت */
.price-slider-container {
    padding: 10px 5px;
}

#price-slider {
    height: 6px;
}
/* استایل میله اسلایدر */
.noUi-target {
    background: #e9ecef;
    border-radius: 4px;
    border: none;
    box-shadow: none;
}
/* استایل بخش فعال اسلایدر (بین دو دستگیره) */
.noUi-connect {
    background: #c5142b; /* رنگ پایه شما */
}
/* استایل دستگیره‌ها */
.noUi-handle {
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c5142b; /* رنگ پایه شما */
    width: 20px;
    height: 20px;
    right: -10px;
    top: -7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: grab;
}
.noUi-handle:focus {
    outline: none;
}
.noUi-handle::before, .noUi-handle::after {
    display: none;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* استایل دکمه‌های شرایط */
.condition-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.condition-btn {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.condition-btn:hover {
    background-color: #e0e0e0;
}

.condition-btn.active {
    background-color: #e6f2ff; /* رنگ پس‌زمینه فعال */
    color: #c5142b; /* رنگ پایه شما */
    border-color: #c5142b;
    font-weight: 700;
}

/* استایل دکمه‌های نهایی */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.apply-filter-btn {
    background-color: #c5142b; /* رنگ پایه شما */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.apply-filter-btn:hover {
    background-color: #ac0f23; /* نسخه تیره‌تر رنگ پایه */
}

.clear-filter-btn {
    background-color: transparent;
    color: #888;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

.clear-filter-btn:hover {
    color: #333;
}



.car-details-container {
    background-color: #fff;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    direction: rtl;
}

.main-content {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
}

/* ستون گالری */
.gallery-column {
    flex: 1 1 55%; /* 55% عرض */
    display: flex;
    flex-direction: column;
}
.main-image-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}
#main-car-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.thumbnail-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
}
.thumbnail-image {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
}
.thumbnail-image:hover {
    border-color: #aaa;
}
.thumbnail-image.active {
    border-color: #c5142b;
}

/* ستون اطلاعات */
.info-column {
    flex: 1 1 45%; /* 45% عرض */
}

.car-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.car-subtitle {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2rem;
}

.price-section {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.price-label {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
}
.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c5142b;
}

.specifications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.spec-item span {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.spec-item i {
    font-size: 1.2rem;
}
.spec-item strong {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.description-section {
    margin-bottom: 2.5rem;
}
.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #c5142b;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap; /* برای حفظ فاصله‌ها و خطوط جدید */
}

.actions {
    display: flex;
    gap: 1rem;
}
.action-btn {
    flex-grow: 1;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.action-btn i {
    font-size: 1.3rem;
}
.contact-btn {
    background-color: #c5142b;
    color: white;
}
.contact-btn:hover {
    background-color: #0056b3;
}
.chat-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.chat-btn:hover {
    background-color: #e0e0e0;
}

/* طراحی واکنش‌گرا (Responsive) */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    .info-column {
        border-right: none;
        padding-right: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 2rem;
    }
}

@media (max-width: 576px) {
    .car-details-container {
        padding: 1.5rem;
    }
    .car-title {
        font-size: 1.5rem;
    }
    .price-value {
        font-size: 1.25rem;
    }
    .specifications {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .actions {
        flex-direction: column;
    }
}
.nav-brand-item.active-brand > a {
    background-color: #e9ecef; /* یک رنگ خاکستری روشن برای آیتم فعال */
    font-weight: bold;
}
.mega-menu .border-left{
    border-left: 1px solid #dee2e6!important;
}
.mega-menu .bg-soft-secondary{
    background-color: #f8f9fa!important;
}
.custom-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #c5142b;
    background: #fff;
    color: #c5142b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-action i {
    font-size: 18px;
    transition: inherit;
}

.btn-action:hover {
    background: linear-gradient(135deg, #c5142b, #9b0f21);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 20, 43, 0.2);
}

.btn-action:hover i {
    color: #fff;
}
/* کانتینر هر thumbnail */
.gallery-item {
    aspect-ratio: 1 / 1;       /* نسبت ۱:۱ برای مربع */
    overflow: hidden;
    position: relative;
}

/* خود تصویر */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* تصویر کاملاً کانتینر رو پوشش می‌دهد */
    object-position: center;
    transition: transform .3s ease;
}

/* افکت کوچک بزرگ شدن در هاور */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* فاصله‌های درون-row */
.gallery-grid {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}
.gallery-grid > .col-6,
.gallery-grid > .col-md-3 {
    padding: 0.5rem;
}

/*
 * استایل برای بخش ویدیو محصول
 */
.product-video-section {
    position: relative;
    width: 100%;
    /* ارتفاع را می‌توانید بر اساس نیاز خود تنظیم کنید، مثلاً vh یا پیکسل */
    height: 75vh;
    min-height: 450px;
    overflow: hidden; /* جلوگیری از سرریز شدن محتوا */
    background-color: #000; /* رنگ پس‌زمینه برای مواقعی که ویدیو هنوز لود نشده */
}

/* کانتینر اصلی ویدیو */
.product-video-section .video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* لایه زیرین */
}

/* استایل خود تگ ویدیو */
.product-video-section video {
    width: 100%;
    height: 100%;
    /* این خاصیت کلیدی، ویدیو را مجبور می‌کند کل فضا را بپوشاند بدون اینکه تغییر شکل دهد */
    object-fit: cover;
}

/* (اختیاری) لایه تیره روی ویدیو */
.product-video-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* تیرگی را با تغییر این عدد تنظیم کنید */
    z-index: 2; /* روی ویدیو و زیر محتوا */
}

.product-video-section .video-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3; /* بالاترین لایه */
    width: 100%; /* برای اینکه بتوانیم از padding استفاده کنیم */
    padding: 40px; /* ایجاد فاصله از لبه‌های ویدیو */
    box-sizing: border-box; /* اطمینان از اینکه padding به عرض اضافه نمی‌شود */
}

/* (اختیاری) برای اینکه متن در موبایل بهتر نمایش داده شود */
@media (max-width: 768px) {
    .product-video-section .video-content {
        padding: 20px;
    }
}
