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

body {
    font-family: 'Vazirmatn', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background-color: #f8f9fa;
}

/* تنظیمات کانتینر */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* استایل لوگو */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* استایل منو */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff5757;
}

/* دکمه‌های اصلی */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #ff5757;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #ff4242;
    color: white;
}

/* هدر صفحه اصلی */
.hero {
    background: linear-gradient(45deg, #ff5757, #ff8c42);
    color: white;
    padding: 4rem 5%;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* استایل جدول‌ها */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #ff5757;
    color: white;
}

/* گالری تصاویر */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* استایل صفحات داخلی */
.page-content {
    padding: 2rem 5%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* استایل فوتر */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 5%;
    margin-top: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff5757;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* استایل فرم‌ها */
form {
    display: grid;
    gap: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea {
    height: 100px;
}

/* استایل سبد خرید (در صورت نیاز) */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-total {
    margin-top: 20px;
    text-align: left;
    font-size: 1.2em;
}

/* 📌 طراحی واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    /* منو همبرگری */
    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    /* تنظیم اندازه لوگو */
    .logo img {
        height: 40px;
    }

    /* تنظیمات جدول‌ها برای موبایل */
    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px;
    }

    /* تنظیمات گالری برای موبایل */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 📌 تنظیمات اضافی برای تبلت */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
    }
}

/* 📌 Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .navbar {
        background-color: #1e1e1e;
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        color: #e0e0e0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #ff5757;
    }

    .page-content {
        background-color: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    table {
        background-color: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    }

    th, td {
        border-color: #444;
    }

    th {
        background-color: #ff5757;
        color: white;
    }

    footer {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }

    .footer-section a {
        color: #e0e0e0;
    }

    .footer-section a:hover {
        color: #ff5757;
    }

    input, textarea {
        background-color: #333;
        color: #e0e0e0;
        border-color: #444;
    }

    .cart-item {
        border-bottom-color: #444;
    }
}