/* انیمیشن‌ها */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* استایل‌های اسلایدر */
.slider-image {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slider-image.active {
    opacity: 1;
}
.slider-content h2, .slider-content p, .slider-content a {
    animation: slideIn 0.5s ease-out forwards;
}
.slider-content p { animation-delay: 0.2s; }
.slider-content a { animation-delay: 0.4s; }
.slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.slider-dot.active, .slider-dot:hover {
    background-color: #FBBF24;
}

/* استایل‌های کارت محصولات */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.4s ease-in-out;
}
.product-card:hover img {
    transform: scale(1.1);
}

/* استایل‌های آکاردئون سوالات متداول */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}
.faq-answer:not(.hidden) {
    max-height: 200px;
    padding-bottom: 1rem;
}

/* دکمه بازگشت به بالا */
#scroll-to-top {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#scroll-to-top:hover {
    transform: scale(1.1);
}

/* استایل کارت‌های بنر */
.banner-section {
    width: 100%;
}
.banner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}
.banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #60a5fa;
}
.banner-card img {
    width: 100%;
    aspect-ratio: 3 / 2; /* نسبت 1075x716px ≈ 1.5:1 */
    object-fit: cover;
    transition: opacity 0.4s ease;
}
.banner-card:hover img {
    opacity: 0.95;
}
.banner-card div {
    background: linear-gradient(145deg, #ffffff, #eff6ff);
}
@media (min-width: 641px) {
    .banner-section {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .banner-card h2 {
        font-size: 1.6rem;
    }
}
@media (max-width: 640px) {
    .banner-section {
        width: 100%;
    }
    .banner-card h2 {
        font-size: 1rem;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .slider-content h2 {
        font-size: 1.75rem;
    }
    .slider-content p {
        font-size: 0.9rem;
    }
    .slider-content a {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    .product-card img {
        height: 12rem;
    }
    .product-card h3 {
        font-size: 1.1rem;
    }
    .product-card p {
        font-size: 0.9rem;
    }
    .add-to-cart, .view-product {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .slider-content h2 {
        font-size: 1.5rem;
    }
    .slider-content p {
        font-size: 0.85rem;
    }
    .slider-content a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .product-card img {
        height: 10rem;
    }
    .product-card h3 {
        font-size: 1rem;
    }
    .product-card p {
        font-size: 0.85rem;
    }
    .add-to-cart, .view-product {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}