/* ==========================================
   HOME PAGE STYLES - استایل صفحه اصلی
   ========================================== */

/* هیرو */
.hero {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.1) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--surface);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    animation: slideUp 0.8s ease-out;
}

.hero p {
    color: var(--secondary-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xxl);
    animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    color: var(--surface);
    font-size: 2rem;
    font-weight: 700;
}

.hero-stat-label {
    color: var(--secondary-light);
    font-size: 0.875rem;
}

/* دسته‌بندی‌ها */
.categories-section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--surface);
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.category-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* محصولات ویژه */
.featured-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--background);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background-color: var(--accent);
    color: var(--surface);
}

.badge-sale {
    background-color: var(--error);
    color: var(--surface);
}

.badge-low {
    background-color: var(--error);
    color: var(--surface);
}

.product-body {
    padding: var(--spacing-lg);
}

.product-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.product-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.product-code {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.add-to-cart {
    flex: 1;
    padding: 10px;
    background-color: var(--accent);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-to-cart:hover {
    background-color: var(--accent-hover);
}

.view-product {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--surface);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.view-product:hover {
    background-color: var(--primary-dark);
}

/* مزایا */
.advantages {
    padding: var(--spacing-xxl) 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.advantage-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
}