* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #fff4f8;
    color: #4b4b4b;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */

header {
    background: #ffffff;
    border-bottom: 2px solid #d8f0df;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #5f8f73;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #555;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #6b9c7e;
}

.login-btn {
    background: #d8f0df;
    padding: 10px 18px;
    border-radius: 12px;
    color: #41634e !important;
}

/* Hero */

.hero {
    max-width: 1200px;
    margin: 35px auto;
    padding: 65px 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f9dce8, #e3f4e8);
    text-align: center;
}

.hero h1 {
    margin: 0 0 15px;
    font-size: 42px;
    color: #53775f;
}

.hero p {
    font-size: 18px;
    margin-bottom: 28px;
}

.hero-btn {
    display: inline-block;
    background: #6f9f80;
    color: white;
    padding: 13px 28px;
    border-radius: 14px;
}

/* Products */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px 25px 60px;
}

.section-title {
    text-align: center;
    color: #5d8069;
    margin-bottom: 30px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border: 2px solid #d8f0df;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 220px;
    background: #f8e8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-content {
    padding: 18px;
}

.product-content h3 {
    margin-top: 0;
    color: #54755f;
}

.category {
    font-size: 13px;
    color: #999;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #6a9276;
    margin: 15px 0;
}

.product-btn {
    display: block;
    text-align: center;
    background: #d8f0df;
    color: #41634e;
    padding: 11px;
    border-radius: 10px;
}

/* Footer */

footer {
    background: #e3f4e8;
    text-align: center;
    padding: 30px;
    color: #557060;
}

/* Mobile */

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        margin: 20px;
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: 30px;
    }
}
/* ===== فوتر افقی و جمع‌وجور ===== */

.site-footer {
    padding: 12px 15px 6px;
    margin-top: 20px;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-column {
    flex: 1;
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    margin-bottom: 3px;
}

.footer-column h3 {
    font-size: 12px;
    margin: 0 0 5px;
}

.footer-column p,
.footer-column a {
    font-size: 10px;
    line-height: 1.4;
    margin: 2px 0;
}

.footer-social {
    margin-top: 4px;
}

.footer-social a {
    font-size: 14px;
    margin: 0 4px;
}

.footer-bottom {
    max-width: 900px;
    margin: 7px auto 0;
    padding-top: 5px;
    font-size: 9px;
    text-align: center;
}

/* ===== FIX FOOTER - HORIZONTAL ===== */

.site-footer .footer-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    gap: 15px !important;
}

.site-footer .footer-column {
    flex: 1 1 0 !important;
    width: auto !important;
    text-align: center !important;
}

.site-footer {
    padding: 10px 15px !important;
}

.site-footer .footer-column h3 {
    font-size: 12px !important;
}

.site-footer .footer-column p,
.site-footer .footer-column a {
    font-size: 10px !important;
}
