﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-RD-Regular.woff2') format('woff2'), url('/assets/fonts/Vazirmatn-RD-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* بهبود عملکرد */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fc;
    color: #1e293b;
}

:root {
    --primary: #ff5722;
    --primary-dark: #e04e16;
    --primary-light: #fff0eb;
    --secondary: #0f172a;
    --gradient: linear-gradient(135deg, #ff5722 0%, #ff8a5c 100%);
}

.text-primary-custom {
    color: var(--primary);
}

.bg-primary-custom {
    background: var(--gradient);
}

.btn-primary-custom {
    background: var(--gradient);
    border: none;
    transition: all 0.3s;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255,87,34,0.3);
    }

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Header */
.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.search-box {
    background: #f1f5f9;
    border-radius: 50px;
    padding: 8px 20px;
}

    .search-box input {
        background: transparent;
        border: none;
        outline: none;
        width: 100%;
    }

    .search-box button {
        background: none;
        border: none;
        color: var(--primary);
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

    .category-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(255,87,34,0.1);
    }

    .category-card i {
        font-size: 2rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-color: var(--primary);
    }

.product-img {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    text-align: center;
}

    .product-img img {
        height: 160px;
        object-fit: contain;
        transition: transform 0.3s;
    }

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 1;
}

.price-current {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.rating {
    color: #fbbf24;
    font-size: 0.8rem;
}

.btn-outline-primary-custom {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: all 0.3s;
}

    .btn-outline-primary-custom:hover {
        background: var(--primary);
        color: white;
    }

/* Flash Sale */
.flash-sale {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a5c 100%);
    border-radius: 25px;
}

.timer-box {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 70px;
}

.timer-number {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Banner 5G */
.banner-5g {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

/* Feature Boxes */
.feature-box {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

    .feature-box:hover {
        transform: translateY(-3px);
        border-color: var(--primary);
    }

    .feature-box i {
        font-size: 2rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* Brand Slider */
.brand-slide {
    padding: 20px;
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s;
}

    .brand-slide:hover {
        opacity: 1;
        transform: scale(1.05);
    }

    .brand-slide img {
        max-width: 100px;
        filter: grayscale(100%);
    }

    .brand-slide:hover img {
        filter: grayscale(0);
    }

/* Article Cards */
.article-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: white;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.article-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 25px;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
}

    footer a {
        color: #94a3b8;
        text-decoration: none;
        transition: all 0.3s;
    }

        footer a:hover {
            color: var(--primary);
        }

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .timer-box {
        padding: 8px 12px;
        min-width: 55px;
    }

    .timer-number {
        font-size: 1.2rem;
    }
}
