/* --- General & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #3b82f6;
    --dark-bg: #111827;
    --light-bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --border-color: #e5e7eb;
    --font-family: 'Vazirmatn', sans-serif;
    --spacing-unit: 8px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
html { scroll-behavior: smooth; height: 100%;}
body { 
    font-family: var(--font-family); 
    background-color: var(--light-bg); 
    color: var(--text-dark); 
    margin: 0; 
    padding: 0; 
    font-size: 16px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-wrapper {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3, h4 { margin: 0; }
ul { list-style: none; padding: 0; margin: 0;}
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 40px; }

/* --- Header --- */
.site-header { 
    background-color: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 2001; 
}
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.site-header .logo a { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 500; color: var(--text-dark); transition: color 0.3s ease; }
.main-nav a:hover { color: var(--primary-color); }
.header-contact span { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-menu-header { display: none; } 
.menu-overlay { display: none; } 

/* --- Footer --- */
.site-footer { background-color: var(--dark-bg); color: var(--text-light); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--accent-color); }
.footer-col p, .footer-col li { color: #d1d5db; line-height: 1.8; font-size: 0.95rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a:hover { color: #fff; }
.footer-col address p { display: flex; align-items: center; margin-bottom: 15px; }
.footer-col address i { margin-left: 10px; width: 20px; color: var(--accent-color); }
.social-icons { margin-top: 20px; }
.social-icons a { font-size: 1.5rem; margin-left: 15px; color: #d1d5db; transition: color 0.3s ease; }
.social-icons a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 20px; color: #9ca3af; font-size: 0.9rem; }

/* --- Hero Section --- */
.hero-section { background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('https://i.imgur.com/8p2H8hW.jpg') no-repeat center center/cover; color: var(--text-light); padding: calc(var(--spacing-unit) * 8) 5%; text-align: center; }
.hero-section h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: var(--spacing-unit); }
.hero-section p { font-size: 1.2rem; margin-bottom: calc(var(--spacing-unit) * 4); font-weight: 300; color: #d1d5db; }
.vehicle-selector-form { background-color: rgba(255,255,255,0.05); padding: calc(var(--spacing-unit) * 3); border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.1); display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 2); }
.vehicle-selector-form select, .vehicle-selector-form button { width: 100%; padding: calc(var(--spacing-unit) * 1.5); border-radius: var(--border-radius); border: 1px solid var(--border-color); font-family: inherit; font-size: 1rem; background-color: #fff; }
.vehicle-selector-form button { background-color: var(--accent-color); color: var(--text-dark); border: none; font-weight: 700; cursor: pointer; transition: background-color 0.3s ease; }
.vehicle-selector-form button:hover { background-color: var(--accent-hover); }

/* --- Other Sections --- */
.trust-signals, .featured-products, .similar-products { padding-top: 0; padding-bottom: 0; }
.trust-signals .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; padding: 40px 0; }
.trust-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.trust-item h3 { font-size: 1rem; font-weight: 500; }
.products-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.products-grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
}
.product-card { background-color: var(--card-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.product-card .img-container { width: 100%; height: 180px; background-color: #fff; padding: var(--spacing-unit); }
.product-card .img-container img { width: 100%; height: 100%; object-fit: contain; }
.product-card .card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; border-top: 1px solid var(--border-color); }
.product-card h3 { font-size: 0.9rem; font-weight: 700; flex-grow: 1; margin-bottom: 10px; }
.product-card .btn-call, .product-card .btn-details { display: block; text-align: center; padding: 8px; border-radius: var(--border-radius); transition: background-color 0.3s ease; font-weight: 500; font-size: 0.85rem; }
.product-card .btn-call { background-color: var(--accent-color); color: var(--text-dark); }
.product-card .btn-call:hover { background-color: var(--accent-hover); }
.product-card .btn-details { background-color: #6c757d; color: white; margin-top: 8px; }
.product-card .btn-details:hover { background-color: #5a6268; }
.product-card a i { margin-left: 5px; }

/* --- Pagination --- */
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 10px; list-style: none; padding: 0; }
.pagination a { display: block; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: #fff; color: var(--text-dark); font-weight: 500; transition: background-color 0.3s, color 0.3s; }
.pagination a:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagination a.active { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); cursor: default; }

/* --- Product Details Page --- */
.product-details-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; background-color: #fff; padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.product-gallery .main-image { border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; margin-bottom: 15px; }
.product-gallery .main-image img { width: 100%; height: auto; display: block; }
.thumbnail-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; }
.thumbnail-images .thumbnail { border: 2px solid var(--border-color); border-radius: 6px; cursor: pointer; transition: border-color 0.3s ease; width: 100%; height: auto; }
.thumbnail-images .thumbnail.active, .thumbnail-images .thumbnail:hover { border-color: var(--accent-color); }
.product-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; text-align: right; }
.specs-table { width: 100%; margin-bottom: 30px; border-collapse: collapse; }
.specs-table td { padding: 12px 10px; border-bottom: 1px solid var(--border-color); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { font-weight: 700; width: 150px; }
.btn-call-lg { display: block; width: 100%; background-color: var(--accent-color); color: var(--text-dark); text-align: center; padding: 15px; border-radius: var(--border-radius); transition: background-color 0.3s ease; font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; }
.btn-call-lg:hover { background-color: var(--accent-hover); }
.tags-container { margin-top: 20px; }
.tags-container .tag { display: inline-block; background-color: #e9ecef; color: #495057; padding: 5px 10px; border-radius: 5px; margin-left: 5px; font-size: 0.9rem; }
.product-long-description { background-color: #fff; padding: 30px; border-radius: var(--border-radius); margin-top: 40px; box-shadow: var(--box-shadow); }
.product-long-description h2, .similar-products h2 { text-align: right; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; }
.similar-products { margin-top: 40px; }

/* --- Static Pages (About, Contact) --- */
.static-page-card { background-color: #fff; padding: 40px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.static-page-card h1 { font-size: 2rem; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
.static-page-card p { line-height: 1.8; margin-bottom: 15px; }
.static-page-card h3 { font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; }
.static-page-card ul { list-style: none; padding-right: 20px; }
.static-page-card ul li { margin-bottom: 10px; display: flex; align-items: center; }
.static-page-card ul li i { margin-left: 10px; color: var(--accent-color); }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 40px 0; text-align: center; }
.contact-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.contact-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
.map-placeholder { background-color: #e9ecef; width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; border-radius: var(--border-radius); color: #6c757d; }

/* --- Responsive & Mobile Menu --- */
@media (max-width: 992px) {
    .header-contact { display: none; }
    .mobile-menu-toggle { display: block; }
    .main-nav { position: fixed; top: 0; right: 0; width: 300px; height: 100vh; background-color: #fff; box-shadow: -2px 0 8px rgba(0,0,0,0.1); flex-direction: column; gap: 0; transform: translateX(100%); transition: transform 0.3s ease-in-out; z-index: 2000; display: flex; }
    .main-nav.active { transform: translateX(0); }
    .main-nav ul { flex-direction: column; padding: 20px; gap: 0; }
    .main-nav li { border-bottom: 1px solid #f3f4f6; }
    .main-nav li a { display: block; padding: 15px 10px; font-size: 1rem; font-weight: 500; }
    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
    .mobile-menu-header h4 { font-size: 1.2rem; }
    .mobile-menu-close { background: none; border: none; font-size: 2rem; cursor: pointer; line-height: 1; padding: 0; }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; z-index: 1999; }
    .menu-overlay.active { opacity: 1; visibility: visible; }
}
@media (min-width: 768px) {
    .vehicle-selector-form { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; }
    .trust-signals .container { grid-template-columns: repeat(4, 1fr); }
    .products-grid.four-columns { grid-template-columns: repeat(3, 1fr); }
    .product-details-grid { grid-template-columns: 2fr 3fr; }
}
@media (min-width: 1024px) {
    .products-grid.four-columns { grid-template-columns: repeat(4, 1fr); }
}