/* فوتر فروشگاه — چیدمان دقیق طبق اسکرین‌شات */
.footer-shop {
  background: #f5f5f5;
  position: relative;
  direction: rtl;
  border-top: 1px solid #ddd; /* خط افقی نازک کمرنگ بالای فوتر */
}

.footer-shop__main {
  padding: 2rem 0;
  background: #fff;
}

/* ─── ردیف ۱: لوگو سمت راست + زیرش تلفن و ۷ روز هفته | دکمه بازگشت به بالا (انتهای سمت چپ) ─── */
.footer-shop__row--logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
}
.footer-shop__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* در RTL راست‌چین می‌شود → لوگو و تماس در سمت راست */
  gap: 0.75rem;
  flex-shrink: 0;
}
.footer-shop__logo {
  display: block;
}
.footer-shop__logo img,
.footer-shop__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}
.footer-shop__contact {
  text-align: right;
}
.footer-shop__contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end; /* در RTL خط تماس به سمت راست می‌چسبد */
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  color: #333;
}
.footer-shop__contact-line a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.footer-shop__contact-line a:hover { color: #873E3F; }
.footer-shop__contact-sep {
  color: #999;
  font-weight: 300;
  user-select: none;
}
.footer-shop__contact-line span:not(.footer-shop__contact-sep) {
  color: #666;
  font-size: 0.9rem;
}
/* ترتیب چپ به راست برای شماره تلفن: ۰۲۱ سپس - سپس شماره */
.footer-shop__phone-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline;
}
/* دکمه بازگشت به بالا — انتهای سمت چپ همین ردیف */
.footer-shop__back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  background: #e8e8e8;
  color: #333;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.2s;
  margin-right: auto;
}
.footer-shop__back-top-btn:hover {
  background: #ddd;
  color: #333;
}

/* ─── ردیف ۲: آیتم‌های امکانات — آیکن بالا، عنوان پایین، آیکن بزرگ ─── */
.footer-shop__row--features {
  list-style: none;
  margin: 0 0 3rem; /* فاصله تا ردیف چهار ستون دو برابر (قبلاً ۱٫۵rem) */
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: center;
  align-items: flex-start;
}
.footer-shop__row--features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: #444;
}
.footer-shop__feature-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-shop__feature-link:hover {
  color: #873E3F;
}
.footer-shop__feature-link:hover .footer-shop__feature-icon {
  color: #873E3F;
}
.footer-shop__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #873E3F;
}
.footer-shop__feature-icon i {
  font-size: 3rem; /* یک سوم کمتر از ۴٫۵rem */
  -webkit-text-stroke: 0.75px #fff;
}
.footer-shop__feature-text {
  font-size: 0.9rem;
  line-height: 1.3;
}

/* ─── ردیف ۳: چهار ستون — با نرگس | خدمات مشتریان | راهنمای خرید | همراه ما باشید؛ تقسیم عرض صفحه ─── */
.footer-shop__row--nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}
@media (min-width: 576px) {
  .footer-shop__row--nav {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .footer-shop__row--nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
  }
}
/* سه ستون اول: با نرگس، خدمات مشتریان، راهنمای خرید — هر کدام یک بخش از گرید چهارستونه */
.footer-shop__nav {
  display: grid;
  gap: 1rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-shop__nav {
    grid-column: 1 / 4; /* سه ستون اول */
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
  }
}
.footer-shop__nav-col h4 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: #333;
}
.footer-shop__nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-shop__nav-col li { margin-bottom: 0.4rem; }
.footer-shop__nav-col a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-shop__nav-col a:hover { color: #873E3F; }

/* ستون چهارم: همراه ما باشید */
.footer-shop__social-newsletter {
  min-width: 0;
  padding: 0.5rem 0;
}
@media (min-width: 768px) {
  .footer-shop__social-newsletter {
    grid-column: 4;
  }
}
.footer-shop__social-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.footer-shop__social-links {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-shop__social-links a {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
  box-sizing: border-box;
}
.footer-shop__social-links a:hover { background: #873E3F; color: #fff; }

/* تولتیپ مانند فوتر قبلی: پس‌زمینه سیاه، متن سفید، گوشه گرد، مثلث پایین */
.footer-shop__social-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.65rem;
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 10;
}
.footer-shop__social-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #000;
}
.footer-shop__social-links a:hover .footer-shop__social-tooltip {
  opacity: 1;
  visibility: visible;
}
.footer-shop__social-links a.footer-shop__social-aparat {
  padding: 0.35rem;
  box-sizing: border-box;
}
.footer-shop__social-links a.footer-shop__social-aparat svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}
.footer-shop__newsletter p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #555;
}
.footer-shop__newsletter-form {
  display: flex;
  gap: 0.35rem;
  max-width: 280px;
}
.footer-shop__newsletter-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}
.footer-shop__newsletter-form button {
  padding: 0.5rem 1rem;
  background: #873E3F;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.footer-shop__newsletter-form button:hover { background: #6e3233; }

/* ─── ردیف ۴: نوار دانلود اپلیکیشن ─── */
.footer-shop__app-bar {
  background: #1a365d;
  color: #fff;
  padding: 1rem 0;
}
.footer-shop__app-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-shop__app-title {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}
.footer-shop__app-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-shop__app-dots {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s;
}
.footer-shop__app-dots:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.footer-shop__app-btn {
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.footer-shop__app-btn:hover { background: rgba(255,255,255,0.3); color: #fff; }
.footer-shop__app-btn--img {
  padding: 0.25rem;
  background: transparent;
  line-height: 0;
}
.footer-shop__app-btn--img:hover {
  background: rgba(255,255,255,0.1);
}
.footer-shop__app-btn--img img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── ردیف ۵: نرگس بزرگترین فروشگاه... (سمت راست) | لوگوهای اعتماد (سمت چپ) ─── */
.footer-shop__bottom {
  padding: 2rem 0;
  background: #f5f5f5;
}
.footer-shop__bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-shop__about {
  flex: 1;
  min-width: 0;
}
.footer-shop__about h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: #333;
}
.footer-shop__about p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 0.5rem;
  max-width: 720px;
}
.footer-shop__about-more {
  color: #873E3F;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-shop__about-more:hover { text-decoration: underline; color: #873E3F; }

/* لوگوهای اعتماد — روبرو سمت چپ */
.footer-shop__trust-badges {
  display: flex;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .footer-shop__trust-badges {
    margin-right: auto; /* در RTL سمت چپ ردیف */
  }
}
.footer-shop__trust-item {
  display: block;
  line-height: 0;
}
.footer-shop__trust-badges img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.footer-shop__copyright {
  font-size: 0.8rem;
  color: #666;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}
