/* ------------------------------- */
/* تنظیمات اصلی و فونت‌ها */
/* ------------------------------- */
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fb;
}

@font-face {
    font-family: "lalezar";
    src: url("../assets/font/lalezar.ttf");
}
@font-face {
    font-family: "vazir";
    src: url(../assets/font/Vazir.ttf);
}
@font-face {
    font-family: "iransans";
    src: url("../assets/font/iran-sans.ttf");
}

/* ------------------------------- */
/* تنظیمات هدر */
/* ------------------------------- */
.header {
    width: 100%;
    height: 75px;
    background-color: #6ba7d7;
    display: flex;
    border-radius: 3px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* سکشن اول هدر */
.header-div-sec1 {
    width: 20%;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "iransans";
    border-right: 2px solid yellow;
}

/* نوشته لوگو */
.header-div-sec1 p {
    font-size: 22px;
    color: white;
    margin: 0;
}

.header-div-sec1 a {
    text-decoration: none;
    color: white;
}

/* قسمت منو */
.header-div-sec2 {
    width: 80%;
    height: 75px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-family: "vazir";
}

/* نوشته منو */
.header-div-sec2 p {
    font-size: 18px;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
}

.header-div-sec2 a {
    text-decoration: none;
    padding: 10px 20px;
    color: white;
    border-radius: 90px;
    display: inline-block;
    transition: 0.3s;
}

/* هاور منو */
.header-div-sec2 a:hover,
.header-div-sec2 a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: black;
}

/* ------------------------------- */
/* بنر سایت */
/* ------------------------------- */
.banner-side {
    width: 100%;
    margin-top: 75px;
    position: relative;
}

.banner-side img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

.banner-content h1 {
    font-size: 48px;
    font-family: "lalezar";
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 24px;
    font-family: "vazir";
    margin-bottom: 30px;
}

.banner-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: "lalezar";
    font-size: 18px;
    transition: 0.3s;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------- */
/* بخش‌های اصلی */
/* ------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-family: "lalezar";
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: #ffb347;
    border-radius: 3px;
}

.section-header p {
    font-size: 16px;
    font-family: "vazir";
    color: #666;
}

/* دسته‌بندی محصولات */
.categories-section {
    padding: 60px 40px;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 22px;
    font-family: "lalezar";
    color: #333;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    font-family: "vazir";
    color: #666;
    margin-bottom: 15px;
}

.category-card a {
    color: #6ba7d7;
    text-decoration: none;
    font-family: "vazir";
    font-weight: bold;
    transition: 0.2s;
}

.category-card a:hover {
    color: #ff8c00;
}

/* محصولات ویژه */
.featured-products {
    padding: 60px 40px;
    background: #f5f7fb;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff8c00;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: "lalezar";
    font-size: 12px;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f7fb;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 20px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: "vazir";
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.product-brand {
    font-family: "vazir";
    font-size: 12px;
    color: #6ba7d7;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0;
}

.current-price {
    font-family: "lalezar";
    font-size: 22px;
    color: #ff8c00;
}

.old-price {
    font-family: "vazir";
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: #ffb347;
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-count {
    font-family: "vazir";
    font-size: 12px;
    color: #888;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: #6ba7d7;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: "lalezar";
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #4f8ec1;
}

/* ویژگی‌های فروشگاه */
.features-section {
    padding: 60px 40px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    font-family: "lalezar";
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    font-family: "vazir";
    color: #666;
}

/* پیش‌نمایش مقالات */
.blog-preview {
    padding: 60px 40px;
    background: #f5f7fb;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-preview-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.05);
}

.blog-preview-content {
    padding: 20px;
}

.blog-preview-content h3 {
    font-family: "vazir";
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.blog-preview-content p {
    font-family: "vazir";
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.blog-preview-content a {
    display: inline-block;
    margin-top: 15px;
    color: #6ba7d7;
    text-decoration: none;
    font-weight: bold;
}

.more-link {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #6ba7d7;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: "lalezar";
    font-size: 16px;
    transition: 0.3s;
}

.more-btn:hover {
    background: #4f8ec1;
    transform: translateY(-2px);
}

/* ------------------------------- */
/* فوتر */
/* ------------------------------- */
.footer {
    background: #1a2a3a;
    color: white;
    padding: 50px 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-family: "lalezar";
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #ffb347;
}

.footer-col p {
    font-family: "vazir";
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    font-family: "vazir";
    font-size: 14px;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #ffb347;
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #ffb347;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "vazir";
    font-size: 12px;
    color: #888;
}

/* ------------------------------- */
/* نوتیفیکیشن */
/* ------------------------------- */
.notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #4caf50;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "vazir";
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

/* ------------------------------- */
/* ریسپانسیو */
/* ------------------------------- */
@media (max-width: 768px) {
    .header-div-sec1 {
        width: 30%;
    }
    
    .header-div-sec1 p {
        font-size: 14px;
    }
    
    .header-div-sec2 {
        width: 70%;
    }
    
    .header-div-sec2 a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .banner-side img {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .categories-section,
    .featured-products,
    .features-section,
    .blog-preview {
        padding: 40px 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-container {
        gap: 30px;
    }
}

@media (max-width: 550px) {
    .header-div-sec1 p {
        font-size: 10px;
    }
    
    .header-div-sec2 a {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .banner-side img {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .banner-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .categories-grid,
    .products-grid,
    .features-grid,
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}