@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     scroll-behavior: smooth;
}


body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    background: #FFF9F0;
    color: #5D3A1A;
    line-height: 1.6;
}

/* ========== هدر ========== */
.navbar {
    background: white;
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.08);
    padding: 1rem 0;
    border-bottom: 2px solid #FDE2B5;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8B5E3C;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand i {
    color: #F5B841;
    margin-left: 8px;
}

.nav-link {
    color: #8B5E3C;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #E8A317;
}

.nav-link.active {
    color: #E8A317;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: #E8A317;
    border-radius: 2px;
}

.cart-icon {
    position: relative;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E8A317;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
}

/* ========== اسلایدر اصلی ========== */
.hero-slider {
     width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #1a1a1a;
    margin-bottom: 40px;
}

.slider-container {
   position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

.slides {
     position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides img {
   width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slides img.active {
    display: block;
    opacity: 1;
    animation: fadeScale 0.5s ease-in-out;
}

@keyframes fadeScale {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-btn:hover {
    background: #F5B841;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-caption {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 16px;
    border-right: 4px solid #F5B841;
    z-index: 10;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-caption h2 {
    color: #FDE2B5;
    font-size: 28px;
    margin-bottom: 8px;
}

.slider-caption p {
    color: white;
    margin-bottom: 12px;
}

.btn-shop {
    background: #F5B841;
    color: #5D3A1A;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: #E8A317;
    color: white;
    transform: translateY(-2px);
}

.container .hero-slider {
    width: calc(100% + 30px);
    margin-right: -15px;
    margin-left: -15px;
}


/* ========== بخش عمومی ========== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #8B5E3C;
    font-size: 28px;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #F5B841, #E8A317);
    margin: 10px auto;
    border-radius: 10px;
}

/* ========== محصولات پرفروش ========== */
.best-sellers {
    padding: 60px 0;
    background: #FFF9F0;
}

.best-seller-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.bs-wrapper {
    flex: 1;
    overflow: hidden;
}

.bs-slide {
    width: 100%;
    display: none;
}

.bs-slide.active {
    display: block;
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.bs-slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.best-seller-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.best-seller-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(139, 94, 60, 0.15);
}

.best-seller-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.best-seller-item:hover img {
    transform: scale(1.05);
}

.best-seller-item-body {
    padding: 15px;
    text-align: center;
}

.best-seller-item-body h5 {
    color: #8B5E3C;
    margin-bottom: 8px;
    font-size: 16px;
}

.best-seller-price {
    color: #E8A317;
    font-weight: bold;
    font-size: 18px;
}

.btn-add {
    background: linear-gradient(135deg, #8B5E3C, #E8A317);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #E8A317, #8B5E3C);
}

.bs-prev,
.bs-next {
    background: #F5B841;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.bs-prev:hover,
.bs-next:hover {
    background: #E8A317;
    transform: scale(1.1);
}

.bs-dots {
    text-align: center;
    margin-top: 20px;
}

.bs-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #FDE2B5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bs-dots .dot.active {
    background: #E8A317;
    transform: scale(1.3);
}

/* ========== آموزش ========== */
.education {
    padding: 60px 0;
    background: white;
}

.education-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.education-card {
    background: #FFF9F0;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 350px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #FDE2B5;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(139, 94, 60, 0.1);
}

.edu-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F5B841, #E8A317);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.education-card:hover .edu-icon {
    transform: scale(1.05);
}

.edu-icon i {
    font-size: 30px;
    color: white;
}

.education-card h3 {
    color: #8B5E3C;
    margin-bottom: 15px;
    font-size: 20px;
}

.education-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-edu {
    background: linear-gradient(135deg, #8B5E3C, #E8A317);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edu:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.2);
}

/* ========== درباره ما ========== */
.about-contact {
    padding: 60px 0;
    background: #FFF9F0;
}

.about-us,
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.about-us:hover,
.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(139, 94, 60, 0.1);
}

.about-us h3,
.contact-info h3 {
    color: #8B5E3C;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 10px 0;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    transform: translateX(-5px);
}

.contact-info li i {
    color: #E8A317;
    margin-left: 10px;
}

/* ========== فوتر ========== */
.footer {
    background: linear-gradient(135deg, #5D3A1A, #3E2723);
    color: #FDE2B5;
    padding: 40px 0 20px;
}

.footer h5 {
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer li:hover {
    transform: translateX(-5px);
}

.footer a {
    color: #FDE2B5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #F5B841;
}

.footer hr {
    border-color: #8B5E3C;
    margin: 20px 0;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .bs-slide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .slider-caption {
        padding: 10px 15px;
        bottom: 15px;
        right: 15px;
    }

    .slider-caption h2 {
        font-size: 18px;
    }

    .slider-caption p {
        font-size: 12px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 22px;
    }

    .bs-slide-grid {
        grid-template-columns: 1fr;
    }

    .best-seller-item img {
        height: 180px;
    }

    .education-card {
        width: 100%;
    }

    .about-us,
    .contact-info {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .slider-caption {
        display: none;
    }
}


/* ========== بخش مزایا ========== */
.features-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E6 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(245, 184, 65, 0.2);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #F5B841;
    box-shadow: 0 20px 30px rgba(139, 94, 60, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F5B841, #E8A317);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05) rotate(5deg);
}

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-card h3 {
    color: #8B5E3C;
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== آخرین محصولات ========== */
.latest-products {
    padding: 60px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-item {
    background: #FFF9F0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #FDE2B5;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(139, 94, 60, 0.12);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-body {
    padding: 15px;
    text-align: center;
}

.product-body h5 {
    color: #8B5E3C;
    margin-bottom: 8px;
    font-size: 16px;
}

.product-price {
    color: #E8A317;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.btn-outline-custom {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #F5B841;
    color: #8B5E3C;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #F5B841;
    color: white;
    transform: translateY(-2px);
}

/* ========== نظرات مشتریان ========== */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF5E6, #FFF9F0);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    overflow: hidden;
    position: relative;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    margin: 10px;
    box-shadow: 0 8px 20px rgba(139, 94, 60, 0.08);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(139, 94, 60, 0.12);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F5B841, #E8A317);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.testimonial-avatar i {
    font-size: 30px;
    color: white;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-name {
    color: #8B5E3C;
    font-weight: bold;
    margin-bottom: 5px;
}

.testimonial-stars {
    color: #F5B841;
    margin-top: 8px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.testimonial-controls button {
    background: #F5B841;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background: #E8A317;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background: #FDE2B5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: #E8A317;
    transform: scale(1.3);
}

/* ========== وبلاگ ========== */

/* ========== خبرنامه ========== */
/* ========== سوالات متداول (FAQ) ========== */
.faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E6 100%);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #FDE2B5;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(139, 94, 60, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #FFF9F0;
}

.faq-question h3 {
    color: #8B5E3C;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: #F5B841;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 15px;
}

.faq-icon i {
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFF9F0;
    border-top: 0px solid #FDE2B5;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    border-top-width: 1px;
}

.faq-answer p {
    padding: 20px 24px;
    margin: 0;
    color: #555;
    line-height: 1.8;
    font-size: 14px;
}

.faq-answer ul {
    padding: 0 24px 20px 24px;
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ========== انیمیشن اسکرول ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .faq-question {
        padding: 14px 18px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-icon i {
        font-size: 14px;
    }
    
    .faq-answer p,
    .faq-answer ul {
        padding: 16px 20px;
        font-size: 13px;
    }
    
    .faq-answer ul {
        padding-bottom: 16px;
    }
}

/* ========== انیمیشن اسکرول ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ریسپانسیو بخش‌های جدید ========== */
@media (max-width: 1200px) {
    .features-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}


/* ========== آخرین محصولات - Flexbox ========== */
.latest-products {
    padding: 60px 0;
    background: white;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.product-item {
    flex: 1 1 calc(25% - 25px);
    min-width: 220px;
    max-width: calc(25% - 25px);
    background: #FFF9F0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #FDE2B5;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(139, 94, 60, 0.12);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-body {
    padding: 15px;
    text-align: center;
}

.product-body h5 {
    color: #8B5E3C;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.product-price {
    color: #E8A317;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.btn-add {
    background: linear-gradient(135deg, #8B5E3C, #E8A317);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
}

.btn-add:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #E8A317, #8B5E3C);
}

.btn-outline-custom {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #F5B841;
    color: #8B5E3C;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #F5B841;
    color: white;
    transform: translateY(-2px);
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: #8B5E3C;
    font-size: 16px;
}

/* ========== ریسپانسیو بخش محصولات با Flexbox ========== */
@media (max-width: 1200px) {
    .product-item {
        flex: 1 1 calc(33.33% - 25px);
        max-width: calc(33.33% - 25px);
    }
}

@media (max-width: 768px) {
    .product-item {
        flex: 1 1 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 15px;
    }
    
    .product-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .product-item img {
        height: 200px;
    }
}

/* ========== انیمیشن اسکرول ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}