/*
Theme Name: Hello Elementor Child
Theme URI: https://www.neurado.ir/
Description: پوسته فرزند هلو المنتور - بهینه شده برای سایت‌های چند زبانه.
Author: Neurado Team
Author URI: https://www.neurado.ir/
Template: hello-elementor
Version: 2.1.0
Text Domain: hello-elementor-child
Domain Path: /languages
License: GNU General Public License v3 or later.
Tags: flexible-header, custom-colors, custom-menu, rtl-language-support, translation-ready
*/

/* این فایل برای استایل‌های عمومی و زبان‌های چپ‌چین (LTR) مثل انگلیسی است.
   برای استایل‌های فارسی به فایل rtl.css مراجعه کنید.
*/

/* تعریف فونت معمولی */
@font-face {
    font-family: 'MyClinicFont';
    src: url('https://work-sheet.ir/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* تعریف فونت ضخیم */
@font-face {
    font-family: 'MyClinicFont';
    src: url('https://work-sheet.ir/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-ExtraBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, div, .elementor {
    font-family: 'MyClinicFont', sans-serif !important;
}

/* استایل لیست مدرن کلینیک */
.clinic-modern-list .elementor-icon-list-item {
    position: relative;
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(149,163,179,0.2);
    transition: all .3s cubic-bezier(.25,.8,.25,1);
    cursor: pointer;
    overflow: hidden;
}
.clinic-modern-list .elementor-icon-list-text {
    color: #4b4e6d;
    font-weight: 500;
    font-size: 15px;
    transition: color .3s ease;
    padding-right: 0;
}
.clinic-modern-list .elementor-icon-list-item::before {
    content: '←';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    color: #95a3b3;
    font-size: 18px;
    opacity: 0;
    transition: all .3s ease;
}
.clinic-modern-list .elementor-icon-list-item:hover {
    background-color: #f9fbfd;
    border-color: #4b4e6d;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(75,78,109,.1);
}
.clinic-modern-list .elementor-icon-list-item:hover .elementor-icon-list-text {
    font-weight: 700;
    color: #222;
}
.clinic-modern-list .elementor-icon-list-item:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    color: #4b4e6d;
}
.clinic-modern-list .elementor-icon-list-icon {
    display: none !important;
}

/* چسباندن فوتر به انتهای صفحه */
body {
    display: flex;          
    flex-direction: column; 
    min-height: 100vh;      
}
main#content,
.site-main,
.elementor-location-archive,
.elementor-location-single {
    flex-grow: 1;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    line-height: 1.6;
}

/* ================= ساختار اصلی فوتر تمام عرض ================= */
.modern-footer {
    background-color: #012cae;
    color: #e0e0e0;
    width: 100%;
    padding-top: 60px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col {
    flex: 1;
    min-width: 220px;
}
.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #f4551e;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, padding-right 0.3s ease;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: #f4551e;
    padding-right: 5px;
}
.brand-col .footer-logo {
    max-width: 150px;
    margin-bottom: 25px;
}
.contact-info {
    list-style: none;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #fff;
}
.contact-info li {
    margin-bottom: 10px;
}
.contact-info strong {
    color: #ffffff;
}
.trust-seal img {
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    max-width: 120px;
    cursor: pointer;
}
.footer-bottom {
    background-color: #f4551e;
    padding: 20px 0;
    border-top: 1px solid #222;
}
.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #fff;
}
.designer-text a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.designer-text a:hover {
    color: #4caf50;
}
/* 
==============================================
  ریسپانسیو کردن بخش مقالات جدید برای موبایل
==============================================
*/

/* استایل‌های اصلی برای دسکتاپ (اختیاری - اگر قبلا ننوشته‌اید) */
.modern-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* نمایش سه ستون در دسکتاپ */
  gap: 25px; /* فاصله بین کارت‌ها */
}


/* ================= واکنش‌گرایی (Responsive) فوتر ================= */
@media (max-width: 992px) {
    .footer-col {
        flex: 0 0 calc(50% - 20px);
    }
}
@media (max-width: 768px) {
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .modern-blog-grid {
    /* کلید حل مشکل اینجاست: به محض کوچک شدن صفحه، کارت‌ها تک ستونه می‌شوند */
    grid-template-columns: 1fr; 
     }

    .modern-blog-header h2 {
    font-size: 24px; /* کمی کوچک‌تر کردن عنوان اصلی در موبایل */
    }

    .modern-blog-section {
    padding-left: 15px; /* جلوگیری از چسبیدن به لبه‌های صفحه در موبایل */
    padding-right: 15px;
    }
}
@media (max-width: 576px) {
    .footer-col {
        flex: 0 0 100%;
        text-align: center;
    }
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-links a:hover {
        padding-right: 0;
    }
    .brand-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* 
==============================================
 استایل پایه کارت محصول (مشترک بین دسکتاپ و موبایل)
==============================================
*/
.product-card {
  position: relative; /* برای هاور دسکتاپ لازم است */
  border: 1px solid #eee;
  border-radius: 15px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden; /* برای حفظ گوشه‌های گرد تصویر ضروری است */
}

.product-card .product-main-link {
  text-decoration: none;
  color: inherit;
}

.product-card .product-img img {
  border-radius: 15px 15px 0 0;
  transition: transform 0.4s ease;
}

.product-card .product-title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 15px;
  color: #333;
}

.product-card .product-price {
  font-size: 16px;
  font-weight: bold;
  color: #0071e3;
  margin-bottom: 15px;
}

/* 
==============================================
 ۱. استایل دکمه برای دسکتاپ (ظاهر شدن روی هاور)
==============================================
*/
/* در حالت دسکتاپ، دکمه به صورت absolute و مخفی است */
.product-card .add-to-cart-on-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* با هاور روی کارت، دکمه ظاهر می‌شود */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card:hover .add-to-cart-on-hover {
  transform: translateY(0);
  opacity: 1;
}

/* 
==============================================
 ۲. استایل‌های مخصوص موبایل (دکمه همیشه نمایان)
 breakpoint برای دستگاه‌های با عرض ۷۶۸ پیکسل یا کمتر
==============================================
*/
@media (max-width: 768px) {
  /* در موبایل، افکت هاور را غیرفعال می‌کنیم */
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* دکمه را از حالت absolute خارج کرده و همیشه نمایان می‌کنیم */
  .product-card .add-to-cart-on-hover {
    position: static;      /* از حالت شناور خارج می‌شود */
    transform: none;       /* انیمیشن حذف می‌شود */
    opacity: 1;            /* کاملاً نمایان می‌شود */
    background: none;      /* پس‌زمینه گرادینت حذف می‌شود */
    padding: 0 15px 15px;  /* پدینگ برای فاصله از پایین تنظیم می‌شود */
  }

  /* مارجین قیمت را کمی کم می‌کنیم تا به دکمه نزدیک‌تر باشد */
  .product-card .product-price {
    margin-bottom: 10px;
  }
}

/* 
==============================================
 استایل خودِ دکمه ووکامرس (مشترک)
==============================================
*/
.product-card .add-to-cart-on-hover .button {
  width: 100%;
  background-color: #0071e3 !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 5px;
  font-size: 14px;
}

.product-card .add-to-cart-on-hover .button.loading {
  background-color: #555 !important;
}

.product-card .add-to-cart-on-hover .button.added {
  display: none;
}

/* پایان کدهای استایل - این فایل حاوی استایل‌های کلی چایلد تم است */
