@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f7 100%);
    color: #2c3e50;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #4a90e2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #4a90e2;
    text-shadow: 2px 2px 4px rgba(74, 144, 226, 0.2);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 400px;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e3f2fd;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8fbff;
    color: #2c3e50;
}

.search-box input:focus {
    outline: none;
    border-color: #4a90e2;
    background: #ffffff;
}

.search-box button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #4a90e2;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #357abd;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
    border: 2px solid #4a90e2;
    cursor: pointer;
}

.btn-login {
    background: transparent;
    color: #4a90e2;
}

.btn-login:hover {
    background: rgba(74, 144, 226, 0.1);
}

.btn-register {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.btn-register:hover {
    background: #357abd;
    border-color: #357abd;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: #f0f4f8;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 1000;
    position: relative;
}

.hamburger:hover {
    background: #e3f2fd;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a90e2;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active {
    background: #4a90e2;
}

.hamburger.active span {
    background: white;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links.main-links {
    display: none;
}

.nav-links.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 4px 0 20px rgba(74, 144, 226, 0.3);
    padding: 80px 20px 20px 20px;
    flex-direction: column;
    gap: 0;
    transition: left 0.4s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav-links.mobile-menu.active {
    display: flex;
    left: 0;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    margin-bottom: 5px;
    border: 2px solid transparent;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #4a90e2;
    border-color: #4a90e2;
    transform: translateX(8px);
}

.nav-links a:active {
    transform: translateX(5px) scale(0.98);
}

.menu-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e3f2fd;
}

.menu-title {
    font-size: 20px;
    font-weight: bold;
    color: #4a90e2;
}

.menu-close {
    background: #f0f4f8;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    color: #4a90e2;
}

.menu-close:hover {
    background: #4a90e2;
    color: white;
    transform: rotate(90deg);
}

.hero {
    background: linear-gradient(
        135deg,
        rgba(74, 144, 226, 0.9) 0%,
        rgba(53, 122, 189, 0.9) 100%
    ),
    url("") center/cover;
    padding: 100px 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    color: #4a90e2;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: bold;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
    background: #ffffff;
}

.categories {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #4a90e2;
    font-weight: bold;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-12px);
    border-color: #4a90e2;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.category-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(74, 144, 226, 0.3));
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #4a90e2;
    font-weight: bold;
}

.category-card p {
    color: #5a6c7d;
}

.products {
    padding: 50px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: #4a90e2;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    filter: drop-shadow(2px 2px 4px rgba(74, 144, 226, 0.2));
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: bold;
}

.product-info p {
    color: #5a6c7d;
    margin-bottom: 15px;
}

.product-price {
    font-size: 26px;
    color: #4a90e2;
    margin-bottom: 15px;
    font-weight: bold;
}

.features {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    padding: 60px 20px;
    margin: 50px 0;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(74, 144, 226, 0.15);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 35px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 15px;
    transition: all 0.4s;
    box-shadow: 0 3px 15px rgba(74, 144, 226, 0.1);
    border: 2px solid #e3f2fd;
}

.feature-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fbff 100%);
    transform: scale(1.05);
    border-color: #4a90e2;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(74, 144, 226, 0.2));
}

.feature-item h3 {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-item p {
    color: #5a6c7d;
}

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
    color: #ffffff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #90caf9;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(144, 202, 249, 0.1);
}

.social-links a:hover {
    color: #ffffff;
    background: rgba(144, 202, 249, 0.2);
    transform: translateY(-2px);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #90caf9;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .nav-center {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .nav-left {
        order: 2;
    }

    .nav-right {
        order: 1;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-box input {
        font-size: 13px;
        padding: 10px 40px 10px 15px;
    }

    .logo {
        font-size: 22px;
    }
}