@font-face {
    font-family: 'Vazir';
    src: url('font/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* جلوگیری از پدیده متن سفید یا غیب شدن متن هنگام لود اول */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', Tahoma, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* نوار سبز بالای بالای سایت */
.top-announcement-bar {
    background-color: #0d7a5f;
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* هدر */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #0d7a5f;
}

/* بنر اصلی */
.hero-banner {
    background-color: #ffffff;
    padding: 10px 0 25px 0;
    text-align: center;
}

.banner-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* بخش ۵ دکمه خدمات با ساختار جدید تصویر تمام‌صفحه و مستطیلی کارت */
.services-section {
    padding: 30px 0;
    background-color: #f1f5f3;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2eae6;
}

.services-grid {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.service-card {
    background: white;
    border: 1px solid #dfebd6;
    border-radius: 12px;
    width: 19%; /* تقسیم به ۵ کارت متناسب */
    overflow: hidden; /* برش لبه‌های تصویر با توجه به border-radius کارت */
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #0d7a5f;
    box-shadow: 0 6px 15px rgba(13, 122, 95, 0.1);
}

/* باکس عکس برای نمایش تصویر به صورت کامل در کل فضای بالایی کارت */
.service-image-wrapper {
    width: 100%;
    height: 130px; /* ارتفاع متناسب تصویر روی کارت */
    overflow: hidden;
    background-color: #eaeff2;
}

.service-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن کل فضای باکس بدون دفورمه شدن */
}

/* باکس عنوان دکمه در پایین عکس */
.service-title-box {
    padding: 15px 10px;
    text-align: center;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 13px;
    font-weight: bold;
    color: #212529;
    line-height: 1.4;
}

/* بخش محصولات */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all {
    color: #0d7a5f;
    text-decoration: none;
}

.products-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    width: 31%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    background-color: #eaeff2;
    height: 180px;
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0d7a5f;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 15px;
    margin-bottom: 15px;
    height: 45px;
    overflow: hidden;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.price {
    font-weight: bold;
    color: #0d7a5f;
    text-align: left;
    margin-bottom: 15px;
    font-size: 16px;
}

.price.free { color: #28a745; }

.btn-add-to-cart {
    width: 100%;
    background-color: #20c997;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background-color: #139a78;
}

/* بخش تسویه حساب */
.checkout-section {
    background: #fff;
    border: 2px dashed #0d7a5f;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.checkout-section h3 { margin-bottom: 15px; color: #0d7a5f;}

#cart-total {
    margin: 10px 0;
    font-weight: bold;
    font-size: 18px;
}

.btn-payment {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 auto;
}

.btn-payment:hover { background-color: #e0a800; }

/* فوتر */
.main-footer {
    background-color: #212529;
    color: #ced4da;
    margin-top: 60px;
    padding-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #343a40;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 20px;
    border-bottom: 2px solid #20c997;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.badges-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.enamad-box {
    background: white;
    width: 100px;
    height: 110px;
    padding: 5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bazaar-btn {
    display: inline-block;
    max-width: 130px;
}

.trust-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.footer-bottom {
    background-color: #1a1d20;
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: #868e96;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 992px) {
    .services-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    .service-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .products-grid, .footer-container {
        flex-direction: column;
    }
    .service-card {
        width: 100%;
    }
    .product-card, .footer-column {
        width: 100%;
    }
    .badges-wrapper {
        justify-content: center;
    }
}