@font-face {
    font-family: Vazir;
    src: url('Font/Vazir-Regular.eot');
    src: url('Font/Vazir-Regular.eot?#iefix') format('embedded-opentype'),
         url('Font/Vazir-Regular.woff2') format('woff2'),
         url('Font/Vazir-Regular.woff') format('woff'),
         url('Font/Vazir-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Font/Vazir-Bold.eot');
    src: url('Font/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('Font/Vazir-Bold.woff2') format('woff2'),
         url('Font/Vazir-Bold.woff') format('woff'),
         url('Font/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Font/Vazir-Black.eot');
    src: url('Font/Vazir-Black.eot?#iefix') format('embedded-opentype'),
         url('Font/Vazir-Black.woff2') format('woff2'),
         url('Font/Vazir-Black.woff') format('woff'),
         url('Font/Vazir-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Font/Vazir-Medium.eot');
    src: url('Font/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('Font/Vazir-Medium.woff2') format('woff2'),
         url('Font/Vazir-Medium.woff') format('woff'),
         url('Font/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Font/Vazir-Light.eot');
    src: url('Font/Vazir-Light.eot?#iefix') format('embedded-opentype'),
         url('Font/Vazir-Light.woff2') format('woff2'),
         url('Font/Vazir-Light.woff') format('woff'),
         url('Font/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('Font/Vazir-Thin.eot');
    src: url('Font/Vazir-Thin.eot?#iefix') format('embedded-opentype'),
         url('Font/Vazir-Thin.woff2') format('woff2'),
         url('Font/Vazir-Thin.woff') format('woff'),
         url('Font/Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
 *{
    font-family: Vazir;
 }
/* تنظیمات پایه */
body {
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* پس‌زمینه روشن */
    color: #333;
    direction: rtl; /* برای فارسی */
    text-align: right;
}

.container {
    max-width: 1200px; /* حداکثر عرض محتوا */
    margin: 20px auto;
    padding: 0 15px;
}

/* --- هدر (Header) --- */
.main-header {
    background-color: #333; /* رنگ اصلی برند (آبی) */
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 100px; /* اندازه لوگو */
    max-width: 100%;
}

.main-nav h1 {
    margin: 0;
    font-size: 1.8em;
}

/* --- فوتر (Footer) --- */
.main-footer {
position: fixed;
    bottom: 0px;
    background-color: #333;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    width: 100%;
}

.main-footer p {
    margin: 5px 0;
}

/* --- شبکه کارت‌ها (Card Grid) --- */
.card-grid {
    display: grid;
    /* پیش فرض: ۳ کارت در یک ردیف */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; /* فاصله بین کارت‌ها */
    padding: 20px 0;
}

/* --- استایل‌دهی کارت محصول (Product Card) --- */
.product-card {
    display: block;
    text-decoration: none;
    color: #333;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* ایجاد سایه زیبا و برجسته */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px); /* حرکت به بالا در هنگام هاور */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* سایه عمیق‌تر */
}

.image-wrapper {
    /* تضمین اندازه یکسان برای تمام عکس‌ها */
    width: 100%;
    padding-top: 60%; /* نسبت تصویر ۵:۳ (60% از عرض) - برای هم اندازه بودن عکس ها */
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* مطمئن شدن از پوشش کامل ناحیه توسط تصویر */
    transition: transform 0.3s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.05); /* زوم کوچک روی عکس هنگام هاور */
}

.card-content {
    padding: 15px;
    text-align: center;
}

.guide-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
}

.view-link {
    display: inline-block;
    color: #28a745; /* رنگ سبز برای لینک */
    border: 1px solid #28a745;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.product-card:hover .view-link {
    background-color: #28a745;
    color: white;
}

/* --- ریسپانسیو (Media Queries for Responsiveness) --- */

/* برای تبلت‌ها (Tablet) - ۲ کارت در ردیف */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .main-header h1 {
        font-size: 1.5em;
    }
}

/* برای موبایل‌ها (Mobile) - ۱ کارت در ردیف */
@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 10px;
    }
    .card-grid {
        grid-template-columns: 1fr; /* تمام عرض */
        gap: 15px;
    }
}