.zoodseo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
/* لپ‌تاپ و دسکتاپ: فقط 2 ستون */ @media (min-width: 992px) { .zoodseo-cards { grid-template-columns: repeat(2, 1fr); } }

.zoodseo-card {
  background: #fffc82;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zoodseo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.zoodseo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.zoodseo-title {
  margin: 0;
  font-size: 20px;
  color: #2a5d9f;
  font-weight: bold;
}

.zoodseo-featured {
  background: #ffd84d;
  color: #222;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.zoodseo-address {
  color: #000;
  margin: 6px 0;
  font-size: 1.15rem;
}

.zoodseo-desc {
  color: #000;
  margin: 10px 0;
  line-height: 1.6;
  font-size: 1.15rem;
}
.zoodseo-phone-icon{
    width: 25px;
    height: 25px;
}
.zoodseo-location-icon{
    width: 25px;
    height: 35px;
}

.zoodseo-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 8px;
}

.zoodseo-card-foot {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.zoodseo-card-foot .zoodseo-btn {
  flex: 0; /* دکمه‌ها فقط به اندازه محتوا */
  min-width: 50%; /* برای ظاهر مرتب */
}

.zoodseo-card-foot.two-buttons .zoodseo-btn {
  flex: 1; /* فقط وقتی دو دکمه هست، مساوی تقسیم بشه */
}

.zoodseo-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.zoodseo-btn.call-btn {
  background: #df2115;
  color: #fff;
}
.zoodseo-btn.call-btn:hover {
  background: #df2115;
}

.zoodseo-btn.info-btn {
  background: #f33a3a;
  color: #fff;
}
.zoodseo-btn.info-btn:hover {
  background: #f33a3f;
}
.zd-content-top{
	font-size:17px;line-height:2.2rem !important;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 50%);
	padding: 15px;
	display: block;
	overflow: hidden;
	margin-top:7px;
}
.zd-content-top img { max-width: 100%; height: auto; }
.zd-content-bottom,.category-content{
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 50%);
    margin-top: 20px;
    padding: 15px;
	display: block;
	overflow: hidden;
}
.zd-content-bottom img { max-width: 100%; height: auto; }

/* استایل کلی بخش دیدگاه‌ها */
.zd-comments,.zd-comment-form {
  background-color: #f9f9f9; /* رنگ پس‌زمینه متفاوت */
  border: 2px solid #fffc82; /* رنگ مرزی مشخص */
  padding: 20px;
  margin-top: 30px;
}

/* عنوان بخش دیدگاه */
#comments h3 {
  font-size: 20px;
  color: #0073aa;
  text-align: center;
  margin-bottom: 15px;
}

/* فرم دیدگاه */
#commentform textarea {
  border: 2px solid #e41311 !important;
  padding: 10px;
  width: 100%;
}
/* استایل کلی هر کامنت */
.zd-comment {
  border-bottom: 1px solid #c1aeae;
  padding: 7px 0;
  margin-bottom: 4px;
}

/* بخش بالای کامنت: نام + تاریخ */
.zd-comment-header {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}
.zd-commen-author{
	margin-left:5px;
}
.zd-comment-header strong {
  font-weight: bold;
  color: #333;
}

.zd-comment-date {
  font-size: 14px;
    color: #201414;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
}

/* متن کامنت */
.zd-comment-content {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

.zd-comments-intro
{
    display:inline-flex;
}

/*برای مودال*/
/* دکمه باز کردن مودال */
.zd-open-modal-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* پس‌زمینه مودال */
.zd-modal {
    display: none; /* مهم‌ترین خط */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
	  z-index: 999999 !important;
	color:#000 !important;
}


/* محتوای مودال */
.zd-modal-content {
    background: #fff;
    margin: 80px auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
	color:#000 !important;
}

/* دکمه بستن */
.zd-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 24px;
    cursor: pointer;
}
.zd-select{color:#000 !important;}

.zd-fixed-top {
    position: fixed !important;
    top: 10px;
    left: 10px;
    z-index: 999999 !important;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
/*====برای فرم فیلتر بدون مودال*/
/* دسکتاپ: تک‌خطی واقعی */
.zd-inline-form .zd-filter-wrapper {
    display: flex;
    flex-wrap: nowrap; /* مهم */
    gap: 15px;
}

/* هر آیتم اندازهٔ منطقی داشته باشد */
.zd-inline-form .zd-filter-item {
    flex: 1 1 auto;
    min-width: 160px;
}

/* دکمه */
.zd-inline-form .zd-filter-submit .zd-btn {
    height: 42px;
    white-space: nowrap;
}

/* موبایل: دو ستونه */
@media (max-width: 768px) {
    .zd-inline-form .zd-filter-wrapper {
        flex-wrap: wrap; /* فقط موبایل wrap شود */
    }

    .zd-inline-form .zd-filter-item {
        flex: 1 1 48%;
    }
}


/*========================================*/
/*برای گرید صفحات مرتبط*/
/* گرید ۳تایی */
/* گرید فوق‌سریع با Flex به‌جای Grid */
.zoodseo-latest-cards-grid {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

/* کارت فوق‌سبک */
.zoodseo-latest-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px; /* جلوگیری از reflow */
    box-shadow: none; /* حذف سنگین‌ترین بخش */
    transition: transform .15s ease;
}

/* افکت hover سبک و سریع */
.zoodseo-latest-card:hover {
    transform: translateY(-3px);
}

/* هدر کارت */
.zoodseo-latest-card-head {
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}

/* بدنه کارت */
.zoodseo-latest-card-body {
    padding: 14px;
    flex: 1;
}

.zoodseo-latest-card-body p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* دکمه */
.zoodseo-btn {
    display: inline-block;
    padding: 7px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s;
}

.zoodseo-btn:hover {
    background: #005f8d;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .zoodseo-latest-cards-grid {
        flex-direction: column;
    }
}

/*========================================*/
/*برای گرید صفحات مرتبط*

/*=======برای محصولات*/
.zd-products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.zd-product-card {
    flex: 1 1 calc(25% - 20px); /* 4 ستون */
    max-width: calc(25% - 20px); /* جلوگیری از کش آمدن */
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .2s ease;
}

.zd-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.zd-product-card .product-thumb {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
}

.zd-product-card .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zd-product-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.zd-product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #1a8917;
}
.zd-product-card .price>del {
    display:block;
    color: #b1b3b5;
}
/* لپ‌تاپ (۲ ستون) */
@media (max-width: 1024px) {
    .zd-product-card {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* موبایل (۱ ستون) */
@media (max-width: 600px) {
    .zd-product-card {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

