/* Hero Slideshow */
.hero {
    position: relative;
    height: 500px;
    margin-bottom: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 2rem;
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide-text {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-btn {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.slide-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev { left: 20px; }
.slide-nav.next { right: 20px; }

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 3rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-title-link {
    text-decoration: none;
    color: inherit;
}

.product-title-link:hover .product-title {
    color: var(--primary);
}

.product-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    border-radius: inherit;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 200px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.add-to-cart {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

/* Ready Product Badge */
.ready-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #dc2626;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 2rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Stats */
.stats {
    background: var(--white);
    padding: 4rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Stats Grid Two Items - Fixed Layout */
.stats-grid-two {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 3rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}

.stat-item-large {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 2.5rem 1.5rem !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    transition: var(--transition) !important;
    min-width: 200px !important;
    max-width: 350px !important;
}

.stat-item-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number-large {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label-large {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    color: #9ca3af;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    text-align: center;
    flex: 1;
}

.footer-trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-trust-badges img {
    max-height: 60px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.footer-trust-badges img:hover {
    transform: scale(1.05);
}

.trust-badge {
    display: inline-block;
    text-decoration: none;
}

.enamad-badge img {
    cursor: pointer;
}

.zarinpal-badge {
    margin: auto;
}

.zarinpal-badge img {
    width: 80px !important;
    max-height: 60px;
}

/* Responsive styles for stats section - Rewritten */
@media (max-width: 768px) {
    .stats-grid-two {
        flex-direction: column !important;
        gap: 2rem !important;
        max-width: 400px !important;
        padding: 1rem !important;
    }
    
    .stat-item-large {
        padding: 1.5rem !important;
        min-width: auto !important;
        max-width: none !important;
    }
    
    .stat-number-large {
        font-size: 3rem !important;
    }
    
    .stat-label-large {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .stats-grid-two {
        gap: 1.5rem !important;
        max-width: 300px !important;
        padding: 0.5rem !important;
    }
    
    .stat-item-large {
        padding: 1.25rem !important;
    }
    
    .stat-number-large {
        font-size: 2.5rem !important;
    }
    
    .stat-label-large {
        font-size: 1rem !important;
    }
}

/* Desktop and larger screens - Force side by side layout */
@media (min-width: 769px) {
    .stats-grid-two {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 4rem !important;
        max-width: 900px !important;
        padding: 2rem 1rem !important;
    }
    
    .stat-item-large {
        flex: 1 1 auto !important;
        padding: 2.5rem !important;
        min-width: 250px !important;
        max-width: 400px !important;
    }
    
    .stat-number-large {
        font-size: 4.5rem !important;
    }
    
    .stat-label-large {
        font-size: 1.6rem !important;
    }
}

/* تنظیم فوتر برای wide screens */
@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px;
        margin: 0 auto 3rem auto;
    }
}

/* تنظیمات responsive برای نمادهای اعتماد */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-trust-badges {
        justify-content: center;
    }
}