﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', sans-serif !important;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    direction: rtl;
}

/* اعمال مجدد فونت برای همه المان‌ها */
body, button, input, select, textarea, .btn, .nav-links a, .product-title, .section-title, .cart-title, .form-title {
    font-family: 'Vazirmatn', 'Segoe UI', 'Tahoma', sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 10px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER & NAVBAR ========== */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(230, 126, 24, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #e67e22;
    letter-spacing: -0.5px;
    user-select:none;
}

.logo span {
    font-weight: 500;
    color: #e09319;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        font-weight: 500;
        color: #334155;
        transition: all 0.2s ease;
        font-size: 1rem;
        padding: 0.5rem 0;
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: #e67e22;
            transition: width 0.25s ease;
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: #e67e22;
        }

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    color: #1a1a1a;
    cursor: pointer;
    background: #f1f5f9;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

    .cart-icon:hover {
        background: #e2e8f0;
        color: #000000;
    }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e67e22;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.2rem 0.5rem;
    min-width: 20px;
    text-align: center;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #e67e22;
    background: #fff3e6;
    padding: 0.3rem 1rem;
    border-radius: 12px;
}

/* ========== HERO ========== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin: 2.5rem 0 2rem;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f8;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

    .hero-content h2 span {
        color: #e67e22;
    }

.hero-content p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 90%;
}

.btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(230, 126, 24, 0.3);
}

.hero-image img {
    max-width: 100%;
    border-radius: 1.5rem;
}

/* ========== PRODUCTS ========== */
.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1e293b;
    padding-right: 1rem;
    border-right: 5px solid #e67e22;
    margin: 2rem 0 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.product-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #eef2f8;
    padding: 1.2rem;
    transition: 0.3s;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 30px -12px rgba(230, 126, 24, 0.15);
        border-color: #e67e22;
    }

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1rem;
    background: #f8fafc;
}

.product-title {
    font-weight: 700;
    margin: 0.8rem 0 0.4rem;
    font-size: 1rem;
}

.product-price {
    color: #e67e22;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.add-to-cart {
    background: #fff3e6;
    color: #e67e22;
    border: 1px solid #e67e22;
    padding: 0.6rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

    .add-to-cart:hover {
        background: #e67e22;
        color: white;
    }

/* ========== CART & CHECKOUT SECTION ========== */
.cart-checkout-section {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #eef2f8;
    padding: 2rem;
    margin: 2rem 0 3rem;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2f8;
}

.cart-table {
    overflow-x: auto;
}

.cart-items-table {
    width: 100%;
    border-collapse: collapse;
}

    .cart-items-table th,
    .cart-items-table td {
        padding: 1rem 0.5rem;
        text-align: center;
        border-bottom: 1px solid #eef2f8;
    }

    .cart-items-table th {
        background: #f8fafc;
        font-weight: 600;
        color: #475569;
    }

.cart-product-name {
    text-align: right;
    font-weight: 500;
}

.qty-btn {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: #e67e22;
    transition: 0.2s;
}

    .qty-btn:hover {
        background: #e67e22;
        color: white;
    }

    .qty-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
}

    .remove-item-btn:hover {
        color: #dc2626;
    }

.cart-summary {
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 0;
    border-top: 2px solid #eef2f8;
    margin-top: 1rem;
}

.empty-cart-msg {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

/* فرم اطلاعات خریدار */
.checkout-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e2e8f0;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #475569;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        font-family: 'Vazirmatn', sans-serif;
        font-size: 0.9rem;
        transition: 0.2s;
    }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #e67e22;
            box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
        }

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group textarea {
        padding: 0.7rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        font-family: 'Vazirmatn', sans-serif;
        font-size: 0.9rem;
        resize: vertical;
        min-height: 80px;
    }

        .form-group textarea:focus {
            outline: none;
            border-color: #e67e22;
            box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.1);
        }

.error-message {
    color: #dc2626;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.submit-order-btn {
    background: #e67e22;
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    width: 100%;
    transition: 0.2s;
}

    .submit-order-btn:hover {
        background: #d35400;
        transform: translateY(-2px);
    }

/* ویژگی‌ها و فوتر */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: space-between;
}

.feature-card {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 1px solid #eef2f8;
    cursor: pointer;
}

    .feature-card i {
        font-size: 2rem;
        color: #e67e22;
        margin-bottom: 0.8rem;
    }

footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e2e8f0;
    padding: 3rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    direction: rtl; /* RTL for Persian text */
}

/* Left side - Info & Contact */
.footer-info {
    flex: 1;
}

.copyright {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

    .contact-item:hover {
        transform: translateX(-5px);
    }

    .contact-item i {
        width: 24px;
        color: #3b82f6;
        font-size: 1.1rem;
    }

.contact-label {
    color: #94a3b8;
    font-weight: 500;
}

.contact-link {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
    direction: ltr; /* Keep phone numbers LTR */
    display: inline-block;
}

    .contact-link:hover {
        color: #3b82f6;
        text-decoration: underline;
    }

/* Right side - Enamad Badge */
.enamad-placeholder {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    min-width: 128px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .enamad-placeholder:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
        border-color: rgba(59, 130, 246, 0.5);
    }

    .enamad-placeholder i {
        font-size: 2rem;
        color: #3b82f6;
    }

    .enamad-placeholder span {
        font-size: 0.85rem;
        color: #94a3b8;
    }

    .enamad-placeholder .enamad-size {
        font-size: 0.7rem;
        color: #64748b;
    }

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        flex-wrap: wrap;
        justify-content: center;
    }

        .contact-item:hover {
            transform: translateY(-2px);
        }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

.enamad-placeholder {
    width: 128px;
    height: 128px;
    background: #1e293b;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e67e22;
    color: #e67e22;
    font-size: 0.7rem;
}

/* صفحات جداگانه (درباره ما و تماس با ما) */
.page {
    display: none;
}

.active-page {
    display: block;
}

.about-content, .contact-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #eef2f8;
}

@media (max-width: 850px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-top: 2px solid #e67e22;
        z-index: 99;
    }

        .nav-links.show {
            display: flex;
        }

    .cart-items-table th, .cart-items-table td {
        font-size: 0.8rem;
        padding: 0.6rem 0.3rem;
    }
}

@media (max-width: 650px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    cursor: default;
}

    .modal-content img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

.modal-title {
    margin-top: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .close-modal:hover {
        color: #e67e22;
    }

@media (max-width: 768px) {
    .modal-content img {
        max-height: 70vh;
    }

    .modal-title {
        font-size: 1rem;
    }
}

.image-below-container {
    margin-top: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.faded-edge-image {
    width: 85%;
    max-width: 900px; 
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

@media (max-width: 768px) {
    .faded-edge-image {
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }
}