* {
    box-sizing: border-box;
}

body {
    font-family: Tahoma, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.8;
}

/* ---------- Header ---------- */
.site-header {
    text-align: center;
    padding: 30px 15px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-header h1 {
    margin: 0;
    font-size: 28px;
}

.site-header p {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

/* ---------- Products Grid (index) ---------- */
.products {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eee;
}

.product h3 {
    padding: 12px 12px 5px;
    margin: 0;
    font-size: 17px;
}

.price {
    padding: 0 12px;
    margin: 5px 0;
    color: #2e7d32;
    font-weight: bold;
    font-size: 16px;
}

.desc {
    padding: 0 12px 10px;
    font-size: 13px;
    color: #555;
}

.badge {
    display: block;
    background: #f1f8e9;
    color: #558b2f;
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* ---------- Product Page ---------- */
.product-page {
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-page img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.product-info h1 {
    margin-top: 0;
    font-size: 26px;
}

.product-info .price {
    font-size: 20px;
    margin: 15px 0;
}

.product-info p {
    font-size: 14px;
    color: #555;
}

.order-box {
    margin-top: 25px;
    padding: 15px;
    background: #f1f8e9;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

.order-box a {
    display: inline-block;
    margin-top: 10px;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #eee;
    margin-top: 60px;
    font-size: 14px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
    }
}

/* ===== FIX PRODUCT PAGE LAYOUT ===== */

.product-page-wrapper {
    background: #f4f6f8;
    padding: 50px 15px;
}

.product-page {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-page img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    text-align: right;
}

.product-info h1 {
    margin-top: 0;
    font-size: 26px;
}

.product-info .price {
    font-size: 20px;
    margin: 15px 0;
    color: #2e7d32;
    font-weight: bold;
}

.product-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}

.order-box {
    margin-top: 25px;
    padding: 15px;
    background: #f1f8e9;
    border-radius: 10px;
    text-align: center;
}

.order-box a {
    display: inline-block;
    margin-top: 10px;
    background: #25d366;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
    }
}
/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    padding: 18px 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo a {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.site-nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #e8f5e9;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* ===== Mobile Header ===== */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .site-nav a {
        margin: 5px;
    }
}


/* فوتر */
.site-footer {
    background-color: #f1f1f1;
    padding: 20px;
    text-align: center;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
}

.site-footer .footer-links li {
    display: inline-block;
    margin: 0 10px;
}

.site-footer .footer-links li a {
    text-decoration: none;
    color: #333;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}

.hero p {
    font-size: 14px;
    color: #666;
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* موبایل */
@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f1f1;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.pagination a:hover {
    background: #2e7d32;
    color: #fff;
}

.pagination a.active {
    background: #2e7d32;
    color: #fff;
    font-weight: bold;
}

/* دکمه خرید مستقیم از تولیدی */
.buy-btn {
    background-color: #4CAF50; /* رنگ پس‌زمینه سبز */
    color: white; /* رنگ متن سفید */
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.buy-btn:hover {
    background-color: #45a049; /* رنگ پس‌زمینه زمانی که موس روی دکمه میره */
}
/* استایل برای محصولات */
.product {
    display: flex;
    flex-direction: column;
    align-items: center; /* برای وسط چین کردن */
    justify-content: center;
    text-align: center;
    margin: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.product .price {
    font-size: 18px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.buy-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.buy-btn:hover {
    background-color: #45a049;
}

.additional-images {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.additional-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.product {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

.additional-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.additional-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.buy-btn {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.buy-btn:hover {
    background-color: #218838;
}

/* استایل برای نمایش تصاویر اضافی */
.additional-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.additional-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}


