/* تنظیمات کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif; /* برای نمایش درست فارسی */
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

/* هدر و منو */
header {
    background: #fff;
    color: #333;
    padding: 20px 0;
    border-bottom: 2px solid #eee;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    letter-spacing: 2px;
}

.logo span {
    color: #ff4757;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* بخش هیرو (Hero) */
.hero {
    background: #2f3542;
    color: white;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h2 {
    font-size: 45px;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* محصولات */
.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-img {
    background: #ddd;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.btn-buy {
    background: #2f3542;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

/* فوتر */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}
