* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

body {
    direction: rtl;
}

/* From Uiverse.io by kennyotsu-monochromia */
.container {
    width: 100%;
    height: 100%;
    --color: #E1E1E1;
    background-color: #F3F3F3;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
    background-size: 55px 55px;
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

p, li {
    text-align: justify;
}

.header {
    background-color: #E31E24;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #f9f9f9;
}

.slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about, .products, .bestsellers, .faq, .contact, .dealers, .useful-links {
    padding: 60px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #E31E24;
}

.product-grid, .bestseller-grid, .dealer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card, .bestseller-card, .dealer-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.product-card:hover, .bestseller-card:hover, .dealer-card:hover {
    transform: translateY(-5px);
}

.product-card i, .bestseller-card i {
    font-size: 2rem;
    color: #E31E24;
    margin-bottom: 10px;
}

.dealer-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-info ul, .contact-hours ul {
    list-style: none;
}

.contact-info li, .contact-hours li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i, .contact-hours i {
    color: #E31E24;
    margin-left: 10px;
    font-size: 1.2rem;
}

.contact-form iframe {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.useful-links .desktop-links {
    list-style: none;
    text-align: center;
}

.useful-links .desktop-links li {
    margin-bottom: 10px;
}

.useful-links .desktop-links a {
    color: #E31E24;
    text-decoration: none;
}

.useful-links .desktop-links a:hover {
    text-decoration: underline;
}

.useful-links .mobile-links {
    display: none;
    list-style: none;
    text-align: center;
}

.useful-links .mobile-links li {
    display: inline-block;
    margin: 10px;
}

.useful-links .mobile-links a {
    color: #E31E24;
    font-size: 2rem;
}

.useful-links .mobile-links a:hover {
    color: #b5181d;
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer a {
    color: #E31E24;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.mobile-nav {
    display: none;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}

.mobile-nav i {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #333;
        padding: 10px 0;
    }

    .slider img {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .dealer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .useful-links .desktop-links {
        display: none;
    }

    .useful-links .mobile-links {
        display: block;
    }
}