/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* هدر */
header {
    background: linear-gradient(135deg, #008B8B 0%, #000000 100%);
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;

    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

        /* استایل های کلی */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            padding-top: 70px;
            min-height: 200vh; /* فقط برای دمو - حذف در کد واقعی */
            background: linear-gradient(to bottom, #f5f7fa, #e4e8f0);
            color: #333;
        }
        
        .container {
            width: 100%;
            padding: 0 15px;
        }
        
        /* استایل ناوبری */
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 0;
        }
        
        .logo {
            font-weight: bold;
            color: #2c3e50;
            font-size: 1.5rem;
        }
        
        .nav-list {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .nav-list li {
            margin: 0 0.5rem;
        }
        
        .nav-list a {
            display: block;
            padding: 0.8rem 1rem;
            color: #2c3e50;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
            border-radius: 4px;
        }
        
        .nav-list a:hover {
            color: #3498db;
            background-color: #f8f9fa;
        }
        
        /* استایل دکمه همبرگری */
        .menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 24px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
        }
        
        .bar {
            width: 100%;
            height: 3px;
            background-color: #2c3e50;
            border-radius: 2px;
            transition: all 0.3s ease;
            transform-origin: center;
        }
        
        /* حالت active برای دکمه همبرگر */
        .menu-toggle.active .bar:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        
        .menu-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }
        
        .menu-toggle.active .bar:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }
        
        /* رسپانسیو برای تبلت و موبایل */
        @media (max-width: 992px) {
            .menu-toggle {
                display: flex;
            }
            
            .nav-list {
                position: fixed;
                top: 0;
                right: -300px;
                width: 280px;
                height: 100vh;
                background-color: white;
                flex-direction: column;
                padding-top: 5rem;
                box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
                transition: right 0.4s ease;
                overflow-y: auto;
            }
            
            .nav-list.active {
                right: 0;
            }
            
            .nav-list li {
                margin: 0;
                width: 100%;
            }
            
            .nav-list a {
                padding: 1.2rem 1.5rem;
                border-bottom: 1px solid #f1f1f1;
                border-radius: 0;
            }
            
            .nav-list a:hover {
                background-color: #3498db;
                color: white;
            }
        }
/* بخش‌های اصلی */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    font-size: 1.8rem;
}





.container {
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* نگهدارنده تصویر - نسخه بهبود یافته */
.image-placeholder {
    background: linear-gradient(135deg, 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: auto; /* تغییر کلیدی: از auto به جای 100% */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}




.placeholder-text {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.code-container {
    background: #2c3e50;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
}

.tips {
    background: #e3f2fd;
    border-right: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.tips h3 {
    margin-top: 0;
    color: #1565c0;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    .image-placeholder {
        margin: 15px 0;
    }
}



/* انواع محصولات */
.product-type {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.product-type h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.product-type ul {
    margin: 15px 0;
    padding-right: 20px;
}

.product-type li {
    margin-bottom: 8px;
    color: #555;
}

/* گالری */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item .image-placeholder {
    height: 200px;
    margin: 0;
}

/* مزایا */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-item {
    text-align: center;
    padding: 25px 20px;
    background: #f8fafd;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-item p {
    color: #666;
}

/* دکمه مشاوره */
.consult-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #e91e63;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.consult-btn:hover {
    background: #c2185b;
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: #fff;
    padding: 2rem 0 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #4CAF50;
}

.footer-section p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.phone-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #4CAF50;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-links li {
    margin-left: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.ig {
    width: 25px;
}

.whatsapp {
    width: 28px;
}

.tel {
    width: 29px;
}

.about-text {
    text-align: justify;
    line-height: 1.8;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}


/* رسپانسیو */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1002; /* افزایش z-index برای نمایش روی منو */
    }
    
    .nav-list {
        position: fixed;
        top: 0; /* تغییر از 70px به 0 برای چسبیدن به بالا */
        right: -100%;
        width: 70%;
        height: 100vh; /* تغییر به 100vh برای پوشش کامل ارتفاع */
        background: white;
        flex-direction: column;
        padding-top: 70px; /* اضافه کردن padding برای فاصله از بالا */
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001; /* افزایش z-index برای نمایش روی سایر عناصر */
        margin: 0;
        overflow-y: auto; /* امکان اسکرول اگر محتوا بلندتر باشد */
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
        margin: 0; /* حذف margin احتمالی */
    }
    
    .nav-list li a {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        display: block; /* اطمینان از نمایش صحیح لینک‌ها */
    }

    /* اطمینان از اینکه هدر اصلی زیر منو قرار نگیرد */
    #header {
        z-index: 1000;
    }
}
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .mechanism-content {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-guide {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 20px;
    }

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .nav-list {
        width: 80%;
    }
    
    .container {
        padding: 0 10px;
    }
}



/* نگهدارنده تصویر - نسخه بهبود یافته */
.main-image {
    background: linear-gradient(135deg, 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto; /* تغییر کلیدی: از auto به جای 100% */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}


.image-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    overflow: hidden;
}

.main-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبت 16:9 برای ریسپانسیو */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f8f9fa;
}

#sectional-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.image-title {
    text-align: center;
    margin: 15px 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.3rem;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e0e6ef;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    background: #f8f9fa;
}

.thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.thumb.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

/* رسپانسیو برای تبلت */
@media (max-width: 768px) {
    .gallery-container {
        padding: 15px;
    }
    
    .thumb {
        width: 70px;
        height: 70px;
        font-size: 1.1rem;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .gallery-container {
        padding: 12px;
        border-radius: 12px;
    }
    
    .main-image-container {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .image-title {
        font-size: 1.1rem;
        margin: 10px 0;
    }
    
    .thumbnail-gallery {
        gap: 10px;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
}

/* رسپانسیو برای موبایل های کوچک */
@media (max-width: 360px) {
    .thumb {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}


/* استایل‌های گالری تصاویر */
.gallery-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبت 16:9 برای ریسپانسیو */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f8f9fa;
}

#sectional-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e0e6ef;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    background: #f8f9fa;
}

.thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.thumb.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

/* رسپانسیو برای تبلت */
@media (max-width: 768px) {
    .gallery-container {
        padding: 15px;
    }
    
    .thumb {
        width: 70px;
        height: 70px;
        font-size: 1.1rem;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
    .gallery-container {
        padding: 12px;
        border-radius: 12px;
    }
    
    .main-image-container {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .thumbnail-gallery {
        gap: 10px;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
}

/* رسپانسیو برای موبایل های کوچک */
@media (max-width: 360px) {
    .thumb {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}












