/* تعریف فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2'),
         url('fonts/Vazir.woff') format('woff'),
         url('fonts/Vazir.ttf') format('truetype'),
         url('fonts/Vazir.eot');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar ul {
    padding: 0;
    margin: 0;
}

.btn, .navbar a, .service-item a {
    text-decoration: none;
}

.dropdown-menu li, .navbar ul {
    margin: 0;
}

.article-header, .contact-info h2, .footer, .page-subtitle, 
.page-title, .portfolio-item p, .service-item, .services h3, 
.stats, .tech-specs h3 {
    text-align: center;
}

.filter-btn, .page-btn, body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
}

.article-hero img, .article-image img, .blog-image img, 
.portfolio-image img, .portfolio-item img {
    object-fit: cover;
}

body {
    direction: rtl;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* Header Styles */
/* ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    order: 1;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
}

/* آیکون سبد خرید */
.header-icons {
    order: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #e74c3c;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* منو در وسط */
.navbar {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar > ul > li {
    position: relative;
}

.navbar a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.blog-content h2 a:hover, .breadcrumb a:hover, 
.navbar a:hover, .table-of-contents a:hover {
    color: #e74c3c;
}

.navbar a.active {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
}

/* ============================================ */
/* Dropdown Menu - اصلاح شده نهایی */
/* ============================================ */

/* حالت پیش‌فرض: منو مخفی باشد */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    z-index: 100;
}

/* حالت دسکتاپ: فقط با هاور باز شود */
@media (min-width: 769px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* حالت موبایل: با کلیک باز شود (JS مدیریت می‌کند) */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background: #f8f9fa;
    }
}

.dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dropdown-menu a {
        white-space: normal;
        padding-right: 30px;
    }
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.navbar > ul > li.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* ============================================ */
/* دکمه همبرگری (موبایل) */
/* ============================================ */
.hamburger-menu {
    display: none;
    flex-direction: column;
    padding: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:first-child {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================ */
/* موبایل (ریسپانسیو) */
/* ============================================ */
@media (max-width: 768px) {
    .footer-content, .navbar ul {
        text-align: center;
    }
    
    .contact-container, .features-grid, .footer-content, 
    .portfolio-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .trust-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-container {
        gap: 30px;
    }
    
    .contact-form, .contact-info {
        padding: 30px 20px;
    }
    
    .dropdown-menu.active, .nav-overlay.active, .navbar a {
        display: block;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .navbar > ul > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar a {
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background: #f8f9fa;
    }
    
    .dropdown-menu a {
        padding-right: 30px;
        font-size: 1rem;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .logo img {
        width: 120px;
    }
    
    .header-icons {
        order: 2;
    }
    
    .hamburger-menu {
        order: 3;
    }
    
    .logo {
        order: 1;
    }
    
    /* فلش برای منوی کشویی در موبایل */
    .navbar > ul > li.dropdown > a::after {
        content: '▼';
        font-size: 0.6rem;
        float: left;
        margin-top: 7px;
        color: #999;
    }
    
    .navbar > ul > li.dropdown > a.active::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 90%;
    }
    
    .logo img {
        width: 100px;
    }
}

/* ============================================ */
/* باقی استایل‌های سایت (بدون تغییر) */
/* ============================================ */

.cta-content h2, .feature-icon, .hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #c0392b;
}

.comparison-table tr:nth-child(2n), .services {
    background: #f8f9fa;
}

.navbar ul li:hover ul, .service-item {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services h3 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-item {
    padding: 30px;
    border-radius: 10px;
}

.feature h4, .service-item h4, .step h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    margin-bottom: 20px;
}

.service-item a {
    color: #e74c3c;
    font-weight: 700;
}

.footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
}

.contact-info, .stats {
    background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
}

.main-content {
    margin-top: 100px;
    padding: 50px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

.about-text h2 {
    color: #2c3e50;
    margin: 30px 0 15px;
    border-right: 4px solid #e74c3c;
    padding-right: 15px;
}

.about-text ul, .service-description ul {
    list-style: none;
    margin: 20px 0;
}

.about-text li {
    padding: 8px 0;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    color: #fff;
    padding: 50px 0;
    border-radius: 15px;
    margin-top: 50px;
}

.contact-container, .service-detail {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    display: grid;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-info {
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-item h3 {
    color: gold;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2c3e50;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.navbar ul ul {
    display: none;
}

.navbar ul li:hover ul {
    display: block;
    position: absolute;
    min-width: 200px;
    border-radius: 5px;
    right: 0;
}

.navbar ul ul li {
    display: block;
    margin: 0;
}

.navbar ul ul a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.service-detail {
    align-items: start;
}

.service-description h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-right: 4px solid #e74c3c;
    padding-right: 15px;
}

.article-content h3, .service-description h3 {
    color: #34495e;
    margin: 30px 0 15px;
}

.service-description li {
    padding: 10px 25px 10px 0;
    font-size: 1.1rem;
    position: relative;
}

.project-features li::before, .service-card li::before, 
.service-description li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #27ae60;
    font-weight: 700;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature h4 {
    font-size: 1rem;
}

.feature p {
    font-weight: 700;
    font-size: 1.2rem;
}

.related-articles, .technical-section {
    margin: 60px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.portfolio-section h2, .technical-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2rem;
}

.technical-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.tech-info h3 {
    color: #34495e;
    margin: 25px 0 15px;
    border-right: 3px solid #3498db;
    padding-right: 10px;
}

.blog-content h2 a, .info-item strong, .meta-item strong, 
.spec-item strong, .tech-specs h3 {
    color: #2c3e50;
}

.tech-info ul {
    list-style: none;
    margin: 15px 0;
}

.tech-info li {
    padding: 8px 20px 8px 0;
    position: relative;
}

.tech-info li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #3498db;
    font-weight: 700;
}

.materials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.material-tag {
    background: #3498db;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tech-specs {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-image img, .blog-card, .portfolio-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-specs h3 {
    margin-bottom: 20px;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.portfolio-section {
    margin: 60px 0;
}

.portfolio-gallery, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    height: 100%;
}

.portfolio-item p {
    padding: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.page-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover, .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    transition: transform 0.3s;
}

.blog-content h2 a, .breadcrumb a, .table-of-contents a {
    transition: color 0.3s;
    text-decoration: none;
}

.blog-card:hover .blog-image img, 
.portfolio-item:hover .portfolio-image img, 
.portfolio-item:hover img {
    transform: scale(1.05);
}

.blog-content, .portfolio-details {
    padding: 25px;
}

.blog-content h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.article-date, .blog-date {
    color: #667eea;
    font-weight: 500;
}

.blog-read-time, .breadcrumb-separator {
    color: #999;
}

.blog-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.page-btn {
    padding: 12px 25px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover, .page-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #e9ecef;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    color: #666;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-image {
    margin-bottom: 40px;
}

.article-image img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: #2c3e50;
    margin: 40px 0 20px;
    border-right: 4px solid #e74c3c;
    padding-right: 15px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content ul {
    margin: 20px 0;
    padding-right: 20px;
}

.article-content li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px;
}

.article-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

.article-actions {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
}

.breadcrumb-current, .stat-label {
    color: #666;
}

.table-of-contents {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-right: 4px solid #667eea;
}

.table-of-contents h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
    padding-right: 15px;
    position: relative;
}

.table-of-contents li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: #667eea;
}

.table-of-contents a {
    color: #555;
}

.article-hero {
    margin: 30px 0;
    text-align: center;
}

.article-hero img {
    width: 100%;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-hero-caption {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.article-section {
    margin: 50px 0;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-item, .info-box, .stat-card {
    border-radius: 10px;
}

.comparison-table table, .stat-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.info-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 25px;
    margin: 20px 0;
}

.info-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

.feature-item {
    padding: 20px;
}

.feature-item.positive {
    background: #f0f9f0;
    border: 2px solid #27ae60;
}

.feature-item.negative {
    background: #fef0f0;
    border: 2px solid #e74c3c;
}

.feature-item h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #fff;
    padding: 25px;
    text-align: center;
    border: 2px solid #667eea;
}

.comparison-table table, .faq-item, .related-card {
    background: #fff;
    border-radius: 10px;
}

.stat-number {
    color: #667eea;
}

.comparison-table {
    overflow-x: auto;
    margin: 30px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.comparison-table th {
    background: #2c3e50;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.faq-item {
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-right: 4px solid #3498db;
}

.faq-item h3, .portfolio-details h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cta-section, .hero {
    color: #fff;
    text-align: center;
}

.related-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-card p {
    color: #666;
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 50px;
    border-radius: 15px;
    margin: 50px 0;
}

.cta-section h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-section p, .hero-subtitle {
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section p {
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background: darkblue;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: gold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary, .btn-secondary {
    color: #fff;
    padding: 15px 30px;
    transition: 0.3s;
    text-decoration: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.blog-cta, .stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #e74c3c;
    border-radius: 8px;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.trust-section {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.trust-section h2 {
    margin-bottom: 40px;
    color: #2c3e50;
}

.trust-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #2c3e50;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.blog-preview, .portfolio, .services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    margin: 20px 0;
    text-align: right;
}

.service-card li {
    padding: 8px 20px 8px 0;
    color: #555;
    position: relative;
}

.service-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.process, .why-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature p, .step p {
    color: #666;
    line-height: 1.6;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.portfolio-overlay {
    padding: 20px;
    transform: translateY(100%);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.blog-grid, .footer-content {
    display: grid;
    margin-bottom: 40px;
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
}

.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    text-align: center;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer-content {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-section h3, .footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info p, .footer-section li, .portfolio-info h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-info {
    text-align: center;
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
}

.portfolio-info p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.view-project {
    background: #fff;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.portfolio-cta, .portfolio-stats {
    margin: 60px 0;
    text-align: center;
}

.meta-item {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.portfolio-details p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: #fff;
}

.portfolio-stats .stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.portfolio-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.portfolio-cta {
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 20px;
}

.portfolio-cta h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.portfolio-cta p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.modal-body, .project-info {
    grid-template-columns: 1fr 1fr;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.close-btn, .hamburger-menu {
    cursor: pointer;
    z-index: 1001;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-details h2, .project-description, .project-features, .project-info {
    margin-bottom: 30px;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: grid;
    height: 100%;
}

.modal-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-details {
    padding: 40px;
    overflow-y: auto;
}

.modal-details h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
}

.project-info {
    display: grid;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.project-description h3, .project-features h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-features ul {
    list-style: none;
    padding-right: 0;
}

.project-features li {
    padding: 8px 25px 8px 0;
    position: relative;
}

.modal-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.modal-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.portfolio-item {
    cursor: pointer;
    transition: 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content, .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .cta-buttons, .hero-buttons, .trust-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-body, .portfolio-grid, .process-steps, .project-info {
        grid-template-columns: 1fr;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }
    
    .portfolio-cta {
        padding: 40px 20px;
    }
    
    .portfolio-cta h2 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        height: 95vh;
    }
    
    .modal-body {
        overflow-y: auto;
    }
    
    .modal-image {
        padding: 20px;
        max-height: 300px;
    }
    
    .modal-image img {
        max-height: 250px;
    }
    
    .modal-details {
        padding: 25px;
    }
    
    .close-btn {
        top: 10px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 25px;
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ===== رفع مشکل اسکرول افقی در موبایل ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ریسپانسیو کردن بخش خدمات */
@media (max-width: 768px) {
    .service-detail {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .service-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    .service-features {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .technical-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .tech-specs {
        margin-top: 20px;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .portfolio-item img {
        width: 100%;
        height: auto;
    }
    
    .materials {
        justify-content: flex-start;
    }
    
    .service-description ul {
        padding-right: 0;
        list-style: none;
    }
    
    .service-description li {
        padding-right: 20px;
    }
    
    .service-description li::before {
        right: 0;
    }
    
    .tech-info li {
        padding-right: 15px;
    }
    
    .tech-info li::before {
        right: 0;
    }
    
    .main-content {
        padding: 30px 15px;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .technical-section,
    .portfolio-section {
        padding: 30px 15px;
        margin: 40px 0;
    }
    
    .technical-section h2,
    .portfolio-section h2 {
        font-size: 1.5rem;
    }
    
    .seo-content {
        padding: 0 15px;
    }
    
    .seo-content h2 {
        font-size: 1.3rem;
    }
    
    .faq-section {
        padding: 30px 15px;
    }
    
    .faq-item {
        padding: 20px 15px;
    }
}

/* ریسپانسیو برای صفحات کوچکتر */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .feature {
        padding: 20px 15px;
    }
    
    .materials {
        gap: 8px;
    }
    
    .material-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* ===== محاسبه‌گر جامع ===== */
.comprehensive-calculator {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 30px;
    margin: 50px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: calc(100% - 40px);
}
.comprehensive-calculator h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.6rem;
}
.comprehensive-calculator > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}
.calculator-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.calc-tab {
    padding: 12px 25px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}
.calc-tab.active,
.calc-tab:hover:not(.active) {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
.calc-panel {
    display: none;
}
.calc-panel.active {
    display: block;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.form-group {
    flex: 1;
    min-width: 250px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.calc-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
}
.meterage-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.meterage-btn {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.meterage-btn.active,
.meterage-btn:hover:not(.active) {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
.calculator-result {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.result-header {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.result-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-top: 5px;
}
.result-details {
    color: #666;
    font-size: 0.9rem;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}
.btn-add-to-cart-calc {
    width: 100%;
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    font-weight: bold;
}
.btn-add-to-cart-calc:hover {
    background: #e74c3c;
}

/* ===== محصولات پرفروش ===== */
.featured-products {
    padding: 60px 0;
    background: #f8f9fa;
}
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.featured-products .product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.featured-products .product-card:hover {
    transform: translateY(-5px);
}
.featured-products .product-image {
    height: 200px;
    overflow: hidden;
}
.featured-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-products .product-info {
    padding: 20px;
}
.featured-products .product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #2c3e50;
}
.featured-products .meta-tag {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #666;
}
.featured-products .product-price {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}
.featured-products .price-value {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
}
.btn-view-product {
    display: block;
    text-align: center;
    background: #2c3e50;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-view-product:hover {
    background: #e74c3c;
}
.featured-cta {
    text-align: center;
}
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .meterage-buttons {
        flex-direction: column;
    }
    .calculator-tabs {
        gap: 8px;
    }
    .calc-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}
/* استایل دکمه‌های تعداد لنیارد */
.quantity-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qty-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', Tahoma, sans-serif;
    min-width: 80px;
}

.qty-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.qty-btn:hover:not(.active) {
    border-color: #e74c3c;
    background: #fff5f5;
}
/* ===== رفع مشکلات موبایل - اضافه کنید ===== */
@media (max-width: 768px) {
    /* جلوگیری از سرریز محتوا */
    .container {
        overflow-x: hidden;
        padding: 0 15px;
    }
    
    /* محاسبه‌گر در موبایل */
    .comprehensive-calculator {
        padding: 20px 15px;
        margin: 30px auto;
        width: calc(100% - 20px);
    }
    
    .calculator-tabs {
        gap: 8px;
    }
    
    .calc-tab {
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .meterage-buttons {
        flex-direction: column;
    }
    
    .meterage-btn, .qty-btn {
        width: 100%;
    }
    
    .quantity-buttons {
        flex-direction: column;
    }
    
    /* محصولات پرفروش */
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* هدر */
    .navbar {
        width: 85%;
    }
    
    .navbar ul {
        padding: 15px;
    }
    
    .navbar a {
        font-size: 0.95rem;
        padding: 12px 0;
    }
    
    .dropdown-menu a {
        padding: 10px 20px 10px 10px;
        font-size: 0.85rem;
    }
    
    /* هیرو سکشن */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* سرویس‌ها */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }

    /* فوتر */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
.hero-stats .stat-number,
.hero-stats .stat-label {
    color: #ffffff !important;
}
/* ============================================ */
/* اختصاصی صفحه چاپ روبان دیجیتال بلولاین */
/* ============================================ */
.digital-products { margin: 60px 0; }
.digital-products h2 { text-align: center; margin-bottom: 40px; color: #2c3e50; font-size: 2rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-image { height: 200px; overflow: hidden; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 10px; right: 10px; background: #e74c3c; color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 1rem; margin-bottom: 10px; color: #2c3e50; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.meta-tag { background: #f0f0f0; padding: 3px 10px; border-radius: 15px; font-size: 0.7rem; color: #666; }
.product-price { text-align: center; margin-bottom: 15px; padding: 10px; background: #f8f9fa; border-radius: 8px; }
.price-label { font-size: 0.8rem; color: #666; display: block; }
.digital-prices { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
.btn-add-to-cart { width: 100%; background: #2c3e50; color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s; margin-top: 5px; font-family: 'Vazir', sans-serif; }
.btn-add-to-cart:hover { background: #e74c3c; }
.min-order-note { font-size: 0.75rem; color: #e74c3c; text-align: center; margin-bottom: 10px; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 25px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.comparison-table th, .comparison-table td { border: 1px solid #e0e0e0; padding: 12px; text-align: center; }
.comparison-table th { background: #2c3e50; color: white; font-weight: 600; }
.comparison-table td:first-child { font-weight: bold; background: #f8f9fa; }
.internal-links { display: flex; flex-wrap: wrap; gap: 15px; margin: 30px 0; padding: 20px; background: #f8f9fa; border-radius: 12px; justify-content: center; }
.internal-links a { background: white; padding: 8px 20px; border-radius: 25px; text-decoration: none; color: #e74c3c; border: 1px solid #e74c3c; transition: 0.3s; }
.internal-links a:hover { background: #e74c3c; color: white; }
.call-to-action { background: linear-gradient(135deg, #2c3e50, #34495e); text-align: center; padding: 40px; border-radius: 15px; margin: 40px 0; }
.call-to-action h3 { color: white; margin-bottom: 15px; font-size: 1.5rem; }
.call-to-action .btn { background: #e74c3c; color: white; padding: 12px 30px; border-radius: 30px; text-decoration: none; display: inline-block; font-weight: bold; }
.seo-content { margin: 40px 0; }
.seo-content h2 { color: #2c3e50; border-right: 4px solid #e74c3c; padding-right: 15px; margin: 25px 0 15px; font-size: 1.4rem; }
.seo-content ul { list-style: none; padding-right: 20px; }
.seo-content li { padding: 5px 0; position: relative; padding-right: 20px; }
.seo-content li::before { content: "✓"; position: absolute; right: 0; color: #27ae60; font-weight: bold; }
@media (max-width: 768px) { .comparison-table { font-size: 0.7rem; } .digital-prices { flex-direction: column; gap: 5px; } }
/* ==========================================================================
   استایل‌های یکپارچه و بهینه‌شده صفحات دسته‌بندی محصولات بلولاین (SEO Optimized)
   ========================================================================== */

/* ناوبری و هدر */
.navbar ul { padding: 0; margin: 0; list-style: none; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.enamad-logo img { height: 50px; width: auto; }

/* ساختار گالری محصولات اختصاصی دسته‌بندی‌ها */
.offset-products, .silk-products, .gold-products, .sublimation-products, .digital-products { margin: 60px 0; }
.offset-products h2, .silk-products h2, .gold-products h2, .sublimation-products h2, .digital-products h2 { text-align: center; margin-bottom: 40px; color: #2c3e50; font-size: 2rem; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }

.product-image { height: 200px; overflow: hidden; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge { position: absolute; top: 10px; right: 10px; background: #e74c3c; color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; }

.product-info { padding: 20px; }
.product-info h3 { font-size: 1rem; margin-bottom: 10px; color: #2c3e50; line-height: 1.5; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.meta-tag { background: #f0f0f0; padding: 3px 10px; border-radius: 15px; font-size: 0.7rem; color: #666; }

.product-price { text-align: center; margin-bottom: 15px; padding: 10px; background: #f8f9fa; border-radius: 8px; }
.price-label { font-size: 0.8rem; color: #666; display: block; margin-bottom: 5px; }
.price-value { font-size: 1.1rem; font-weight: bold; color: #e74c3c; }
.digital-prices { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; }

.btn-add-to-cart { width: 100%; background: #2c3e50; color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s; margin-top: 5px; font-family: 'Vazir', sans-serif; }
.btn-add-to-cart:hover { background: #e74c3c; }
.min-order-note { font-size: 0.75rem; color: #e74c3c; text-align: center; margin-bottom: 10px; }

/* کامپوننت محاسبه‌گر آنلاین قیمت عمومی و اختصاصی */
.price-calculator, .comprehensive-calculator { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 20px; padding: 30px; margin: 40px 0 50px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.price-calculator h2, .comprehensive-calculator h2 { text-align: center; color: #2c3e50; margin-bottom: 10px; font-size: 1.6rem; }
.price-calculator > p, .comprehensive-calculator > p { text-align: center; color: #666; margin-bottom: 30px; }

.calculator-form { max-width: 500px; margin: 0 auto; }
.calculator-select { width: 100%; padding: 12px 15px; font-size: 1rem; border: 2px solid #ddd; border-radius: 10px; background: white; font-family: 'Vazir', Tahoma, sans-serif; }

.meterage-buttons, .quantity-buttons { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap; }
.meterage-btn, .quantity-btn { flex: 1; padding: 12px; background: white; border: 2px solid #ddd; border-radius: 10px; cursor: pointer; font-family: 'Vazir', sans-serif; text-align: center; min-width: 100px; transition: all 0.2s; }
.meterage-btn.active, .quantity-btn.active { background: #e74c3c; border-color: #e74c3c; color: white; }

.price-result { background: white; border-radius: 15px; padding: 25px; margin-top: 30px; text-align: center; }
.result-price { font-size: 2rem; font-weight: bold; color: #e74c3c; display: block; }
.result-details { margin: 10px 0 15px; color: #555; line-height: 1.6; font-size: 0.95rem; }
.btn-add-calculator, .btn-add-to-cart-calc { width: 100%; background: #2c3e50; color: white; border: none; padding: 14px; border-radius: 10px; cursor: pointer; margin-top: 15px; font-weight: bold; font-family: 'Vazir', sans-serif; transition: background 0.3s; }
.btn-add-calculator:hover, .btn-add-to-cart-calc:hover { background: #e74c3c; }
.price-note { font-size: 0.8rem; color: #666; text-align: center; margin-top: 15px; }

/* جداول قیمت، مقایسه و بخش‌های محتوای سئو */
.price-table, .comparison-table, .price-table-complete { width: 100%; border-collapse: collapse; margin: 25px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.price-table th, .price-table td, .comparison-table th, .comparison-table td, .price-table-complete th, .price-table-complete td { border: 1px solid #e0e0e0; padding: 12px; text-align: center; }
.price-table th, .comparison-table th, .price-table-complete th { background: #2c3e50; color: white; font-weight: 600; }
.price-table td:first-child, .comparison-table td:first-child, .price-table-complete td:first-child { font-weight: bold; background: #f8f9fa; }

.seo-content { background: #fff; padding: 30px; border-radius: 15px; margin: 40px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.seo-content h2 { color: #2c3e50; border-right: 4px solid #e74c3c; padding-right: 15px; margin: 25px 0 15px; font-size: 1.4rem; }
.seo-content h2:first-of-type { margin-top: 0; }
.seo-content h3 { color: #34495e; margin: 20px 0 10px; font-size: 1.2rem; }
.seo-content ul, .seo-content ol { padding-right: 20px; margin: 15px 0; }
.seo-content li { padding: 6px 0; position: relative; padding-right: 20px; line-height: 1.6; }
.seo-content ul li::before { content: "✓"; position: absolute; right: 0; color: #27ae60; font-weight: bold; }

/* دکمه‌های کال تو اکشن (CTA) و لینک‌های داخلی */
.internal-links { display: flex; flex-wrap: wrap; gap: 15px; margin: 30px 0; padding: 20px; background: #f8f9fa; border-radius: 12px; justify-content: center; }
.internal-links a { background: white; padding: 8px 20px; border-radius: 25px; text-decoration: none; color: #e74c3c; border: 1px solid #e74c3c; transition: all 0.3s; font-size: 0.9rem; }
.internal-links a:hover { background: #e74c3c; color: white; }

.call-to-action { background: linear-gradient(135deg, #2c3e50, #34495e); text-align: center; padding: 40px; border-radius: 15px; margin: 40px 0; }
.call-to-action h3 { color: white; margin-bottom: 15px; font-size: 1.5rem; }
.call-to-action p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.call-to-action .btn { display: inline-block; margin-top: 15px; background: #e74c3c; color: white; padding: 12px 30px; border-radius: 30px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.call-to-action .btn:hover { background: #c0392b; }

/* المان‌های اختصاصی صفحه لنیارد */
.trust-section-lanyard { padding: 40px 0; background: #f8f9fa; text-align: center; margin: 40px 0; border-radius: 15px; }
.trust-section-lanyard h3 { color: #2c3e50; margin-bottom: 25px; }
.trust-logos-lanyard { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.trust-logos-lanyard .trust-item { background: white; padding: 10px 20px; border-radius: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-weight: bold; color: #2c3e50; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin: 30px 0; }
.benefit-card { background: white; padding: 20px; border-radius: 15px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: transform 0.3s; }
.benefit-card:hover { transform: translateY(-3px); }
.benefit-card .benefit-icon { font-size: 2rem; margin-bottom: 10px; }
.benefit-card h4 { color: #2c3e50; margin-bottom: 10px; }
.benefit-card p { color: #666; font-size: 0.85rem; line-height: 1.5; }

/* ریسپانسیو و بهینه‌سازی موبایل عمومی */
@media (max-width: 768px) {
    .price-table, .comparison-table, .price-table-complete { font-size: 0.75rem; }
    .price-table th, .price-table td, .comparison-table th, .comparison-table td { padding: 6px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .digital-prices { flex-direction: column; gap: 5px; text-align: right; }
    .offset-products h2, .silk-products h2, .gold-products h2, .sublimation-products h2, .digital-products h2 { font-size: 1.5rem; }
    .price-calculator, .comprehensive-calculator { padding: 15px; }
    .result-price { font-size: 1.6rem; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
}
.price-table-complete {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.price-table-complete th,
.price-table-complete td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
}
.price-table-complete th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}
.price-table-complete td:first-child {
    font-weight: bold;
    background: #f8f9fa;
}
@media (max-width: 768px) {
    .price-table-complete {
        font-size: 0.75rem;
    }
    .price-table-complete th,
    .price-table-complete td {
        padding: 6px;
    }
}

.testimonials {
    padding: 60px 0;
    background: #f8f9fa;
}
.testimonials h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 1.8rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.testimonial-card .stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}
.testimonial-card .customer-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.85rem;
}
/* تنظیم وسط‌چین کردن فرم و دکمه‌های ماشین حساب جامع صفحه اصلی */
#panel-offset .calculator-form,
#panel-silk .calculator-form,
#panel-gold .calculator-form,
#panel-lanyard .calculator-form,
.calculator-form {
    margin: 0 auto !important; /* این خط فرم را دقیقاً وسط‌چین می‌کند */
    display: block;
}

/* وسط‌چین کردن دکمه‌ها و تب‌های بالایی ماشین حساب */
.calculator-tabs {
    display: flex;
    justify-content: center; /* تب‌ها را در مرکز قرار می‌دهد */
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* مطمئن شدن از وسط‌چین بودن باکس کل ماشین حساب در دسکتاپ */
.comprehensive-calculator, .price-calculator {
    max-width: 800px; /* یا هر سایزی که مدنظرتان است */
    margin: 40px auto 50px auto !important; /* قرار دادن کل ماشین حساب در مرکز صفحه */
}
/* ============================================ */
/* دکمه‌های شناور چت (بله / واتساپ)              */
/* ============================================ */
.float-contact-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 14px;
}

.float-contact-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: floatBtnPulse 2.4s ease-in-out infinite;
}

.float-contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.float-contact-btn::after {
    content: attr(data-label);
    position: absolute;
    right: 72px;
    bottom: 50%;
    transform: translateY(50%) translateX(8px);
    background: #2c3e50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.float-contact-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(50%) translateX(0);
}

.float-contact-btn--whatsapp {
    animation-name: floatBtnPulseWhatsapp;
}

@keyframes floatBtnPulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(247, 181, 0, 0.45);
    }
    50% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(247, 181, 0, 0);
    }
}

@keyframes floatBtnPulseWhatsapp {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    50% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .float-contact-stack {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .float-contact-btn {
        width: 52px;
        height: 52px;
    }

    .float-contact-btn img {
        width: 30px;
        height: 30px;
    }

    .float-contact-btn::after {
        display: none;
    }
}
