@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;
    background-color: #f9fafc;
    color: #1e2a3e;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2c3e50;
    display: block;
    order: 1;
}

.logo-img-wrapper {
    order: 2;
    margin-right: 10px;
}
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.company-name-wrapper {
    order: 3;
    margin-right: 5px;
}
.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f2b3d;
    text-decoration: none;
}

.main-nav {
    order: 4;
    margin-left: auto;
    margin-right: 400px;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}
.main-nav a:hover { color: #0077b6; }
.cart-icon i { margin-left: 6px; }

.search-row {
    padding: 12px 20px;
    border-top: 1px solid #eee;
}
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 5px 15px;
    max-width: 500px;
    margin: 0 auto;
}
.search-container .search-icon {
    color: #94a3b8;
}
.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-family: inherit;
    font-size: 0.95rem;
}
.search-container input:focus {
    outline: none;
}
.search-container button {
    background: #0077b6;
    border: none;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    z-index: 1100;
    padding: 70px 20px 30px;
    overflow-y: auto;
}
.mobile-menu-panel.open {
    right: 0;
}
.close-menu {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-panel ul {
    list-style: none;
}
.mobile-menu-panel li {
    margin: 20px 0;
}
.mobile-menu-panel a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #1e2a3e;
    display: block;
}
.submenu {
    padding-right: 20px;
    margin-top: 8px;
    display: none;
}
.dropdown.open .submenu {
    display: block;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
}
.overlay.active {
    display: block;
}

.top-banner {
    width: 100%;
    min-height: 350px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-title {
    font-size: 1.8rem;
    margin: 40px 0 25px;
    border-right: 5px solid #0077b6;
    padding-right: 15px;
}

/* ========== اسلایدر محصولات (نسخه مستقل و پایدار) ========== */
.product-slider-section {
    margin: 2rem 0;
}
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}
.slider-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 1.2rem;
}
.cards-track {
    display: flex;
    gap: 1.2rem;
    transition: transform 0.4s ease;
}
.product-card {
    flex: 0 0 calc(33.333% - 0.8rem);
    background: white;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card a {
    text-decoration: none;
    display: block;
}
.image-frame {
    position: relative;
    width: 100%;
    background: #d9e2ec;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-info {
    padding: 0.8rem 1rem 1rem;
    text-align: center;
}
.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e2a3e;
    margin-bottom: 0.2rem;
}
.product-desc {
    font-size: 0.8rem;
    color: #5f7f9a;
    background: #f0f6fe;
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 30px;
}
.nav-btn {
    background: #2c4568;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
    transition: 0.2s;
    flex-shrink: 0;
}
.nav-btn:hover {
    background: #1f334f;
}
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(33.333% - 0.8rem);
    }
    .product-title {
        font-size: 1rem;
    }
    .product-desc {
        font-size: 0.7rem;
    }
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ========== اسلایدر اخبار (بدون تغییر) ========== */
.news-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-wrapper {
    overflow: hidden;
    flex: 1;
}
.news-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
}
.news-card {
    flex: 0 0 calc(33.333% - 17px);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.news-card h3 {
    padding: 12px 12px 6px;
    font-size: 1.1rem;
}
.news-card p {
    padding: 0 12px 12px;
    color: #4a627a;
}
.news-prev, .news-next {
    background: #0077b6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}
@media (max-width: 992px) {
    .news-card {
        flex: 0 0 calc(50% - 13px);
    }
}
@media (max-width: 640px) {
    .news-card {
        flex: 0 0 100%;
    }
}

/* مقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-card h3 {
    padding: 15px 15px 5px;
    font-size: 1.25rem;
}
.article-card p {
    padding: 0 15px 15px;
    color: #334155;
}
.article-card a {
    display: inline-block;
    margin: 0 15px 15px;
    text-decoration: none;
    color: #0077b6;
    font-weight: 500;
}

footer {
    background: #0f2b3d;
    color: #e2e8f0;
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-about p {
    margin: 10px 0;
}
.footer-enamad img {
    width: 90px;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2d4a6e;
    margin-top: 30px;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .company-name {
        font-size: 1rem;
    }
    .logo-img {
        height: 40px;
    }
}