/* فونت فارسی */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر و منو */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* بخش هیرو */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* بخش‌های صفحه */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
}

/* پیش‌نمایش خدمات */
.services-preview {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.service-link:hover {
    color: #764ba2;
}

/* محصولات ویژه در صفحه اصلی */
.featured-products {
    background: #f8f9fa;
    padding: 60px 0;
}

/* ویژگی‌ها */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
}

/* صفحه هدر */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* جزئیات خدمات */
.services-detail {
    background: white;
}

.service-detail {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.service-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-detail-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-detail h3 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-detail p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-features li {
    padding: 0.5rem;
    color: #333;
    font-weight: 500;
}

.service-price {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.service-price span {
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}

.service-price strong {
    color: #667eea;
    font-size: 1.5rem;
}

/* درباره ما */
.about-content {
    background: white;
}

.about-intro,
.about-mission,
.about-stats,
.about-team {
    margin-bottom: 3rem;
}

.about-intro h3,
.about-mission h3,
.about-stats h3,
.about-team h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-intro p,
.about-team p {
    color: #666;
    line-height: 2;
    margin-bottom: 1rem;
    text-align: justify;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mission-item h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mission-item p {
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* تماس با ما */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

/* فرم تماس */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* پیام‌های هشدار */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* فوتر */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #bdc3c7;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #667eea;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .features-grid,
    .mission-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature-item,
.mission-item {
    animation: fadeIn 0.6s ease-out;
}

/* صفحه محصولات */
.products-section {
    background: white;
    padding: 60px 0;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
}

.products-category-title {
    color: #333;
    font-size: 1.8rem;
    margin: 40px 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card.featured {
    border: 3px solid #667eea;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-badge.premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    position: relative;
}

.product-icon {
    font-size: 4rem;
    display: block;
}

.product-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin: 20px 0;
    flex: 1;
}

.product-features li {
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-price {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.price-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-old {
    display: block;
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
    margin-bottom: 5px;
}

.price-amount {
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
}

.price-currency {
    color: #666;
    font-size: 1rem;
    margin-right: 5px;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* انیمیشن فیلتر */
.product-card.hide {
    display: none;
}

.product-card.show {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو محصولات */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .products-category-title {
        font-size: 1.4rem;
    }
    
    .product-icon {
        font-size: 3rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}

/* نماد اعتماد الکترونیکی */
.enamad-logo {
    margin-top: 20px;
}

.enamad-logo a {
    display: inline-block;
    transition: transform 0.3s;
}

.enamad-logo a:hover {
    transform: scale(1.05);
}

.enamad-logo img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .enamad-logo {
        text-align: center;
    }
    
    .enamad-logo img {
        max-width: 80px;
    }
}

/* صفحه سفارش */
.order-section {
    background: white;
    padding: 60px 0;
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.order-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.product-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.product-summary-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.product-summary h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.product-summary p {
    color: #666;
    font-size: 0.9rem;
}

.price-breakdown {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.order-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.order-form-wrapper h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.order-form .form-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* صفحه پرداخت */
.payment-section {
    background: #f8f9fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.payment-box {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.payment-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.payment-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.price-large {
    font-size: 1.5rem;
}

.payment-security {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.payment-security p {
    color: #28a745;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* نتیجه پرداخت */
.payment-result-section {
    background: #f8f9fa;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.payment-result-box {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.payment-result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 20px;
}

.payment-result-icon.success {
    background: #d4edda;
    color: #28a745;
}

.payment-result-icon.error {
    background: #f8d7da;
    color: #dc3545;
}

.payment-result-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.payment-result-title.success {
    color: #28a745;
}

.payment-result-title.error {
    color: #dc3545;
}

.payment-result-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: right;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.payment-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .payment-box,
    .payment-result-box {
        padding: 25px;
    }
    
    .payment-result-actions {
        flex-direction: column;
    }
    
    .payment-result-actions .btn {
        width: 100%;
    }
}
