/* --- تنظیمات کلی و ریست کردن استایل‌ها --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #333; /* رنگ پس‌زمینه جایگزین در صورت عدم بارگذاری تصویر */
    color: #fff;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

/* --- کانتینر اصلی هیرو با تصویر پس‌زمینه --- */
.hero-container {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('image/hero-container.webp'); /* تصویر پس‌زمینه خود را اینجا قرار دهید */
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px); /* ایجاد افکت بلور روی پس‌زمینه */
    -webkit-backdrop-filter: blur(5px);
    padding: 20px 8%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- استایل هدر و منو --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-right,
.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo img {
    height: 85px; /* ارتفاع لوگو را تنظیم کنید */
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    border-color: #f39c12; /* رنگ نارنجی برای آیتم فعال و هاور */
}

.header-left a {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon {
    position: relative;
}

.cart-notification {
    position: absolute;
    top: -2px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid #333;
}

/* --- محتوای اصلی هیرو --- */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1; /* باعث می‌شود این بخش فضای باقی‌مانده را پر کند */
    padding: 20px 0;
}

.hero-text {
    max-width: 50%;
}

.hero-text .subtitle {
    font-size: 20px;
    font-weight: 400;
}

.hero-text .title {
    font-size: 5rem; /* 80px */
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.2;
}

.hero-text .description {
    font-size: 18px;
    color: #ccc;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-blob {
    width: 500px;
    height: 500px;
    background-color: #e67e22; /* رنگ نارنجی شکل پشت تصویر */
    border-radius: 45% 55% 60% 40% / 40% 50% 50% 60%; /* ایجاد شکل نامنظم (blob) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: border-radius 0.5s ease-in-out;
}

.image-blob:hover {
    border-radius: 50%; /* در زمان هاور گرد می‌شود */
}

.worker-image {
    position: absolute;
    height: 90%; /* کمی بزرگتر از والد برای بیرون زدن */
    bottom: 10;
    right: -110px; /* تنظیم موقعیت تصویر */
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

/* --- نوار آیکون‌ها --- */
.category-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 20px; /* فاصله از پایین صفحه */
}

.icon-item img {
    width: 40px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.icon-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* --- بنر کوکی --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px; /* در حالت RTL در سمت راست قرار می‌گیرد اما تصویر شما در چپ بود */
    background-color: #f1f1f1;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 450px;
    transition: opacity 0.5s, transform 0.5s;
    z-index: 9999 !important; /* مهم‌ترین بخش */

}

.cookie-banner.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.cookie-content h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.cookie-content p {
    font-size: 14px;
}

.cookie-accept-btn {
    background-color: #d35400; /* رنگ نارنجی تیره‌تر */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    white-space: nowrap; /* جلوگیری از شکستن متن دکمه */
    transition: background-color 0.3s;
}

.cookie-accept-btn:hover {
    background-color: #e67e22;
}

/* ---------------------------------------------- */
/* ========== استایل بخش جدیدترین محصولات ========== */
/* کانتینر اصلی بخش */
.products-section {
    background-color: #f4f4f4; /* رنگ پس زمینه خاکستری روشن */
    padding: 80px 0;
    color: #333;
}

/* کانتینر برای مدیریت عرض و چیدمان */
.products-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* ستون سمت چپ: فروش ویژه */
.special-offer-sidebar {
    flex-basis: 300px; /* عرض ثابت برای سایدبار */
    flex-shrink: 0; /* جلوگیری از کوچک شدن سایدبار */
    background-color: #e67e22;
    border-radius: 10px;
    padding: 20px;
    height: fit-content; /* ارتفاع متناسب با محتوا */
}

.offer-header h3 {
    color: #fff;
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
}

.offer-content {
    background-image: url(image/badge\ sold-badge.webp);
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: 3px solid #f4f4f4; /* برای ایجاد فاصله داخلی */
    border-radius: 8px;
    height: 300px; /* ارتفاع دلخواه برای بنر */
}

/* ستون سمت راست: محتوای اصلی محصولات */
.products-main-content {
    flex-grow: 1; /* این بخش فضای باقی‌مانده را پر می‌کند */
}

/* عنوان بخش "جدیدترین محصولات" */
.section-title {
    margin-bottom: 30px;
    text-align: right;
}

.section-title h2 {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 3px;
    background-color: #e67e22; /* رنگ خط زیرین */
}

/* گرید محصولات */
.product-grid {
    display: grid;
    /* ایجاد ستون‌های واکنش‌گرا: هر ستون حداقل ۲۲۰ پیکسل عرض دارد */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* کارت هر محصول */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    background-color: #fff;
    padding: 15px;
    height: 220px; /* ارتفاع ثابت برای هم‌ترازی تصاویر */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* استایل جایگزین تصویر */
.placeholder-image {
    background-color: #e9ecef;
}

.placeholder-image .fa-image {
    font-size: 50px;
    color: #adb5bd;
}

/* برچسب‌های روی تصویر (Badge) */
.badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
}

.discount-badge {
    background-color: #d35400;
    right: 10px; /* در گوشه بالا-چپ */
}

.sold-badge {
    background-color: #7f8c8d;
    left: 10px; /* در گوشه بالا-راست */
}

/* اطلاعات محصول (عنوان و قیمت) */
.product-info {
    padding: 15px;
}

.product-title {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    height: 45px; /* ارتفاع ثابت برای دو خط متن برای هم‌ترازی */
    overflow: hidden;
    margin-bottom: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.product-price del {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 400;
    margin-left: 8px;
}

/* ----------------------------------------------- */
/* ========== استایل بخش بنرهای دسته‌بندی ========== */
.category-banners-section {
    background-color: #fff; /* پس زمینه سفید برای این بخش */
    padding: 60px 0;
}

/* استفاده مجدد از کلاس .container که قبلاً تعریف شده */
.category-banners-section .container {
    display: flex;
    gap: 30px;
}

.category-banner {
    flex: 1; /* هر دو بنر عرض یکسانی داشته باشند */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.banner-polish {
    background-color: #2c3e50; /* رنگ آبی تیره */
}

.banner-saw {
    background: linear-gradient(to left, #2c3e50, #466380); /* گرادیانت برای تنوع */
}

.banner-image {
    height: 140%; /* بزرگتر از کانتینر برای بیرون زدن */
    position: absolute;
    top: 50%;
    right: 55%; /* موقعیت تصویر */
    transform: translateY(-50%) rotate(-15deg); /* چرخش و مرکزیت عمودی */
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.banner-saw .banner-image {
    right: 50%;
    transform: translateY(-50%) rotate(10deg);
}

.category-banner:hover .banner-image {
    transform: translateY(-50%) rotate(0deg) scale(1.05);
}

.banner-text {
    text-align: right;
    z-index: 2; /* برای قرار گرفتن روی تصویر */
    flex-grow: 1; /* متن فضای باقی‌مانده را بگیرد */
}

.banner-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-text span {
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.banner-text i {
    font-size: 14px;
    vertical-align: middle;
}

/* ========== استایل بخش پیشنهاد دیناتولز ========== */
.featured-products-section {
    background-color: #f4f4f4; /* همان رنگ پس زمینه بخش اول محصولات */
    padding: 80px 0;
    color: #333;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.tabs-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.product-tabs {
    display: flex;
    gap: 25px;
}

.product-tabs a {
    color: #555;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 18px; /* برای هم‌ترازی با خط پایین */
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.product-tabs a:hover {
    color: #e67e22;
}

.product-tabs a.active-tab {
    color: #e67e22;
    border-bottom-color: #e67e22;
}

/* --------------------------------------------------- */
/* ========== استایل بخش دسته‌بندی محصولات ========== */
.main-categories-section {
    background-color: #fff; /* پس زمینه سفید */
    padding: 80px 0;
}

/* تغییر در استایل عنوان برای وسط‌چین شدن */
.main-categories-section .section-title h2::after {
    left: 50%;
    transform: translateX(-50%); /* برای وسط چین کردن خط زیرین */
    right: auto; /* غیرفعال کردن موقعیت قبلی */
}

/* گرید برای نمایش دسته‌بندی‌ها */
.category-grid {
    display: grid;
    /* ایجاد ۵ ستون در حالت دسکتاپ */
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* کارت هر دسته بندی */
.category-card {
    display: block; /* برای اینکه کل کارت قابل کلیک باشد */
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card-image {
    background-color: #e67e22; /* رنگ پس‌زمینه نارنجی */
    border-radius: 15px;
    padding: 20px;
    height: 180px; /* ارتفاع ثابت */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -25px; /* برای اینکه متن روی بخش نارنجی قرار بگیرد */
    position: relative;
    z-index: 1;
}

.category-card-image img {
    max-width: 100%;
    max-height: 110%; /* کمی بزرگتر برای بیرون زدن */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-title {
    background-color: #f1f1f1; /* پس‌زمینه خاکستری برای عنوان */
    padding: 35px 15px 15px 15px; /* پدینگ بالا برای ایجاد فاصله از تصویر */
    border-radius: 0 0 15px 15px; /* گرد کردن گوشه‌های پایینی */
    position: relative;
    z-index: 0;
}

.category-card-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* --------------------------------------------------------- */
/* ========== استایل بخش مقالات ابزار (بلاگ) ========== */
.blog-section {
  background-color: #f4f4f4; /* پس زمینه خاکستری روشن */
  padding: 80px 0;
}

/* هدر بخش */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

/* یک استایل جدید برای عنوان با خط زیرین متفاوت */
.section-title-alt h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.section-title-alt h2::after {
  content: '';
  position: absolute;
  bottom: -1px; /* برای قرار گرفتن روی border-bottom */
  right: 0;
  width: 80px;
  height: 3px;
  background-color: #e67e22;
}

/* استایل دکمه عمومی */
.btn {
  padding: 10px 25px;
  border-radius: 5px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #d35400;
  color: #fff;
  border: 1px solid #d35400;
}

.btn-primary:hover {
  background-color: #e67e22;
  border-color: #e67e22;
  transform: translateY(-2px);
}

/* گرید مقالات */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-post-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* کانتینر تصویر */
.post-image-container {
  position: relative;
}

.post-image-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* لایه رویی تصویر (Overlay) */
.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.blog-post-card:hover .post-overlay {
  opacity: 1;
}

.post-meta-top .post-category {
  background-color: #e67e22;
  color: #fff;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 4px;
}

.post-meta-bottom {
  display: flex;
  gap: 15px;
  align-self: flex-end; /* آیکون‌ها در سمت چپ پایین */
}

.post-meta-bottom a {
  color: #fff;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.post-meta-bottom a:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* محتوای متنی مقاله */
.post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* برای اینکه فوتر به پایین بچسبد */
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-title a {
  color: #333;
  transition: color 0.3s;
}

.post-title a:hover {
  color: #e67e22;
}

.post-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  flex-grow: 1;
  margin-bottom: 15px;
}

.post-meta-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.post-meta-footer b {
  color: #555;
  font-weight: 700;
}

/* -------------------------------------------------- */
/* ========== استایل بخش تماس با ما (CTA) ========== */
.cta-section {
  background-color: #d35400; /* رنگ نارنجی تیره‌تر */
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 50c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48-25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" fill="%23FFFFFF" fill-opacity="0.1"/></svg>');
  color: #fff;
  padding: 50px 0;
}

.cta-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 5px;
}

.cta-content p {
  font-size: 16px;
  opacity: 0.9;
}

/* استایل دکمه ثانویه (سفید) */
.btn-secondary {
  background-color: #fff;
  color: #d35400;
  border: 1px solid #fff;
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: #f1f1f1;
  color: #d35400;
}

/* ========== استایل فوتر (Footer) ========== */
.main-footer-section {
  color: #adb5bd; /* رنگ متن خاکستری روشن */
}

/* بخش بالایی فوتر (درباره ما) */
.footer-top {
  background-color: #fff;
  padding: 50px 0;
  border-bottom: 1px solid #eee;
}

.footer-about .footer-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.footer-about p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

/* بخش اصلی فوتر (لینک‌ها) */
.footer-main {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.footer-widget .widget-title {
  font-size: 17px;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 20px;
}

.footer-widget address,
.footer-widget .phone-number {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.mt-4 {
  margin-top: 25px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #555;
  font-size: 14px;
  transition: color 0.3s, padding-right 0.3s;
}

.footer-links a:hover {
  color: #e67e22;
  padding-right: 5px;
}

.badge-new {
  background-color: #e67e22;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.badge-live {
  background-color: #27ae60;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end; /* آیکون‌ها در راست */
}

.social-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icons a:nth-child(1) {
  background-color: #c32aa3; /* Instagram */
}
.social-icons a:nth-child(2) {
  background-color: #0088cc; /* Telegram */
}
.social-icons a:nth-child(3) {
  background-color: #25d366; /* WhatsApp */
}
.social-icons a:nth-child(4) {
  background-color: #1da1f2; /* Twitter */
}
.social-icons a:nth-child(5) {
  background-color: #ff0000; /* YouTube */
}

.enamad-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
}

.enamad-logo img {
  width: 80px;
}

.enamad-logo span {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}

/* بخش پایینی فوتر (کپی‌رایت) */
.footer-bottom {
  background-color: #343a40;
  color: #adb5bd;
  padding: 20px 0;
}

.footer-copy-rghit {
  display: flex;
  justify-content: center;
  align-items: center;

}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
}

.back-to-top {
  background-color: #495057;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background-color: #e67e22;
}


/* ----------------------------------------------- */
/* ============= Media Queries for Responsiveness ============= */
/* ----------------------------------------------- */

/* --- تبلت و دسکتاپ‌های کوچک (حداکثر عرض 1200px) --- */
@media (max-width: 1200px) {
    .hero-text .title {
        font-size: 4rem; /* کاهش اندازه فونت عنوان اصلی */
    }

    .image-blob {
        width: 450px;
        height: 450px;
    }

    .worker-image {
        right: -80px;
    }

    .products-section .container,
    .category-banners-section .container {
        padding: 0 40px; /* افزودن کمی پدینگ افقی */
    }
}

/* ----------------------------------------------- */
/* ========== استایل منوی همبرگری و موبایل ========== */
/* ----------------------------------------------- */

/* استایل دکمه همبرگر */
.hamburger-btn {
    display: none; /* در حالت دسکتاپ مخفی است */
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* بالاتر از محتوای دیگر */
}

/* استایل دکمه بستن منو */
.close-btn {
    display: none; /* در حالت دسکتاپ مخفی است */
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav-header {
    display: none; /* در حالت دسکتاپ مخفی است */
    justify-content: flex-start;
    padding: 20px;
}

/* استایل برای جلوگیری از اسکرول صفحه وقتی منو باز است */
body.no-scroll {
    overflow: hidden;
}


/* --- تبلت‌ها در حالت عمودی (حداکثر عرض 992px) --- */
@media (max-width: 992px) {
    /* --- هدر و هیرو --- */
        .hamburger-btn {
        display: block;
    }

    /* استایل منوی اصلی برای حالت موبایل */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* در ابتدا خارج از صفحه در سمت راست قرار دارد */
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background-color: #1e1e1e; /* رنگ پس‌زمینه تیره‌تر برای منو */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 1000;
        transition: right 0.4s ease-in-out;
        display: flex;
        flex-direction: column;
        z-index: 11111;
    }

    /* کلاس active برای نمایش منو */
    .main-nav.active {
        right: 0; /* با افزودن این کلاس، منو از راست وارد صفحه می‌شود */
    }

    /* نمایش هدر و دکمه بستن در منوی موبایل */
    .mobile-nav-header,
    .close-btn {
        display: flex;
    }
    
    /* تغییر چیدمان آیتم‌های منو به عمودی */
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px 25px;
        font-size: 18px;
        border-bottom: 1px solid #444; /* جداکننده بین آیتم‌ها */
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: #e67e22;
        border-color: #e67e22; /* حذف خط زیرین و استفاده از پس‌زمینه */
    }

    
    .hero-content {
        flex-direction: column; /* چیدمان عمودی برای محتوای هیرو */
        text-align: center;
        justify-content: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text .title {
        font-size: 3.5rem;
    }
    
    .image-blob {
        width: 400px;
        height: 400px;
    }

    .worker-image {
        position: relative; /* تغییر موقعیت برای جلوگیری از به‌هم‌ریختگی */
        right: auto;
        bottom: 0;
        height: 450px;
    }

    /* --- بخش محصولات و بنرها --- */
    .products-section .container {
        flex-direction: column; /* ستون‌ها زیر هم قرار می‌گیرند */
        gap: 40px;
    }

    .special-offer-sidebar {
        flex-basis: auto; /* عرض سایدبار اتوماتیک می‌شود */
        width: 100%;
    }

    .category-banners-section .container {
        flex-direction: column;
    }

    /* --- بخش پیشنهاد دیناتولز --- */
    .tabs-header {
        flex-direction: column;
        align-items: flex-end; /* تراز کردن به راست */
        gap: 20px;
    }

    /* --- بخش دسته‌بندی و بلاگ --- */
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* ۳ ستون برای دسته‌بندی‌ها */
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستون برای مقالات */
    }
    
    /* --- فوتر --- */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr); /* ۳ ستون برای فوتر */
    }
        .hero-image-wrapper {
        display: none; /* **پنهان کردن تصویر پیچیده در موبایل برای تمرکز بر محتوا** */
    }
}


/* --- موبایل‌های بزرگ در حالت افقی (حداکثر عرض 768px) --- */
@media (max-width: 768px) {
    body {
        font-size: 15px; /* تنظیم یک فونت پایه برای سایز موبایل */
    }
    
    .hero-container {
        padding: 15px 5%;
        height: auto; /* ارتفاع هیرو اتوماتیک شود */
        min-height: 90vh;
    }
    
    .hero-text .title {
        font-size: 3rem;
    }
    
    .hero-image-wrapper {
        display: none; /* **پنهان کردن تصویر پیچیده در موبایل برای تمرکز بر محتوا** */
    }
    
    .category-icons {
        flex-wrap: wrap; /* آیکون‌ها در صورت نیاز به خط بعد بروند */
        gap: 30px;
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* کوچک‌تر کردن حداقل عرض کارت‌ها */
    }
    
    .blog-grid {
        grid-template-columns: 1fr; /* مقالات زیر هم (تک ستونه) */
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستون برای دسته‌بندی‌ها */
    }

    .cta-section .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستون برای فوتر */
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        bottom: 10px;
    }
    .cookie-accept-btn {
        width: 100%;
    }
}


/* --- موبایل‌های کوچک در حالت عمودی (حداکثر عرض 576px) --- */
@media (max-width: 576px) {
    .header-right .logo img {
        height: 65px; /* کوچک کردن لوگو */
    }
    
    .header-left {
        gap: 15px; /* کاهش فاصله بین آیکون‌ها */
    }

    .hero-text .title {
        font-size: 2.5rem; /* کاهش نهایی فونت عنوان */
    }
    
    .hero-text .description {
        font-size: 16px;
    }
    
    /* کاهش پدینگ کلی بخش‌ها */
    .products-section,
    .category-banners-section,
    .featured-products-section,
    .main-categories-section,
    .blog-section {
        padding: 50px 0;
    }
    
    .products-section .container,
    .category-banners-section .container {
        padding: 0 15px; /* کاهش پدینگ افقی */
    }

    .section-title h2,
    .section-title-alt h2,
    .tabs-header h2 {
        font-size: 24px; /* یکسان‌سازی اندازه عناوین بخش‌ها */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* تک ستونه شدن همه ویجت‌های فوتر */
        text-align: right;
    }
    
    .social-icons {
        justify-content: center; /* وسط‌چین کردن آیکون‌های شبکه اجتماعی */
    }

    .enamad-logo {
        margin: 0 auto;
    }
}