/* تنظیمات پایه */
:root {
    --primary-color: #004d40;    /* سبز کله‌غازی تیره (حس قدرت و شیمی) */
    --secondary-color: #00695c;  /* سبز روشن‌تر برای هاورها */
    --accent-color: #80cbc4;     /* سبز نعنایی روشن برای جزئیات */
    --text-main: #263238;        /* خاکستری تیره مایل به آبی برای متن */
    --bg-soft: #f8fafc;          /* پس‌زمینه بسیار روشن و تمیز */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif; /* استفاده از فونت مدرن‌تر */
    background-color: var(--bg-soft);
    line-height: 1.7;
}

/* هدر و منو */
header {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* بخش Hero (بنر اصلی) */
.hero {
    background: linear-gradient(rgba(10, 35, 81, 0.8), rgba(10, 35, 81, 0.8)), url('../images/hero-bg.jpg'); /* عکس محلی */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px; /* دکمه‌های کاملاً گرد و مدرن */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    background-color: #e65a00;
}

/* بخش محصولات */
.container {
    padding: 50px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    border: 1px solid #eee;
    transition: 0.4s ease;
    position: relative;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* فوتر */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 5% 20px;
    margin-top: 50px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    font-size: 0.9rem;
}

/* اضافه شده به انتهای style.css */
/* اضافه شده به انتهای style.css */
.sidebar { background: var(--white); padding: 20px; border-radius: 12px; height: fit-content; }
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.sidebar ul li a { text-decoration: none; color: var(--text-dark); font-size: 0.9rem; transition: var(--transition); }
.sidebar ul li a:hover { color: var(--accent-color); padding-left: 5px; }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; outline: none;
}
.contact-form button {
    background: var(--primary-color); color: white; border: none; padding: 12px 30px; cursor: pointer; border-radius: 5px; transition: var(--transition);
}
.contact-form button:hover { background: var(--accent-color); color: var(--primary-color); }

.info-box { background: #eef2f7; padding: 20px; border-radius: 10px; margin-bottom: 20px; }

/* استایل‌های جدید برای صفحه اصلی */
.hero {
    background: linear-gradient(135deg, #0a2351 0%, #1a4a9e 100%) !important;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(253, 184, 19, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.card {
    background: var(--white);
    border: none;
    border-left: 5px solid var(--primary-color); /* به جای کادر کامل، فقط خط سمت چپ */
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s all;
}

.card:hover {
    transform: translateX(10px); /* به جای بالا رفتن، به سمت راست حرکت می‌کند */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.card .price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}


.product-specs img {
    max-width: 100%;    /* جلوگیری از بیرون زدن از کادر */
    height: auto;       /* حفظ تناسب ابعاد (Aspect Ratio) */
    display: block;     /* حذف فواصل خالی زیر عکس */
    margin: 15px 0;     /* ایجاد فاصله عمقی مناسب بین متن و عکس */
    border-radius: 8px; /* کمی گرد کردن لبه‌ها برای زیبایی بیشتر با تم Yabang */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* سایه بسیار ملایم */
}

/* اگر جدول هم در مشخصات داری، این کد از بیرون زدن جدول هم جلوگیری می‌کند */
.product-specs table {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}