/* پردیس استور — فوتر (هم‌تراز اسکرین‌شات)؛ فونت: ../test/font/ */

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-ExtraBlack.woff2") format("woff2");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  src: url("../test/font/material-symbols-v39-latin-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ps-footer-primary: #13369d;
  --ps-footer-primary-hover: #0f2d7a;
  --ps-footer-text: #333333;
  --ps-footer-muted: #666666;
  --ps-footer-link: #666666;
  --ps-footer-border: #eeeeee;
  --ps-footer-store-bg: #13369d;
  /* یکسان‌سازی ارتفاع ردیف تیتر در سه ستون بالای فوتر */
  --ps-footer-after-heading-gap: 0.5rem;
  --ps-footer-after-rule-gap: 1rem;
  /* حداقل کل ناحیهٔ تیتر تا خط (شامل فاصلهٔ زیر تیتر) — با border-box در .ps-footer */
  --ps-footer-head-block-min: 3.5rem;
}

body.ps-footer-demo {
  margin: 0;
  min-height: 100vh;
  font-family: "YekanBakhFaNum", system-ui, sans-serif;
  background: #f5f5f5;
  color: var(--ps-footer-text);
  direction: rtl;
}

.ps-footer * {
  box-sizing: border-box;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.ps-footer {
  background: #ffffff;
  border-top: 1px solid var(--ps-footer-border);
  font-family: "YekanBakhFaNum", system-ui, sans-serif;
  direction: rtl;
  color: var(--ps-footer-text);
}

.ps-footer__inner {
  max-width: 1450px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .ps-footer__inner {
    padding: 3rem 2.5rem 1.25rem;
  }
}

/* ——— بلوک بالا: ۴ ستون + پرفروش + کنار ——— */

.ps-footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ps-footer-border);
}

@media (min-width: 1100px) {
  .ps-footer__top {
    grid-template-columns: 1fr minmax(260px, 32%) minmax(200px, 240px);
    align-items: start;
    gap: 2rem 2.5rem;
  }
}

.ps-footer__cols4 {
  display: grid;
  align-items: start;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* جریان LTR: ستون فیزیکی چپ = دسترسی/راهنما؛ راست = برندها/دسته‌ها (هم‌سو با اسکرین‌شات) */
  direction: ltr;
  gap: 1rem 1.25rem;
}

.ps-footer__col-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  direction: rtl;
  text-align: right;
}

/* خط جداکننده زیر هر تیتر (جایگزین خط سراسری قبلی) */
.ps-footer__col-group > .ps-footer__col--head {
  border-bottom: 1px solid var(--ps-footer-border);
  margin-bottom: var(--ps-footer-after-rule-gap);
}

.ps-footer__col {
  min-width: 0;
}

.ps-footer__col--head {
  display: flex;
  align-items: center;
  min-height: var(--ps-footer-head-block-min);
  padding-bottom: var(--ps-footer-after-heading-gap);
  box-sizing: border-box;
}

.ps-footer__col--head .ps-footer__heading {
  margin: 0;
}

@media (min-width: 640px) {
  .ps-footer__cols4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 1.5rem;
    /* چهار ستون هم‌ارتفاع، ترتیب خوانش فارسی از راست مطابق ترتیب منبع HTML */
    direction: rtl;
  }
}

@media (min-width: 1100px) {
  .ps-footer__cols4 {
    grid-column: 1;
  }
}

.ps-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ps-footer-text);
}

.ps-footer__heading--nav {
  color: #757575;
  font-weight: 700;
  font-size: 0.875rem;
}

.ps-footer__heading--flush {
  margin-bottom: 0;
}

.ps-footer__heading--sub {
  font-size: 0.875rem;
}

.ps-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ps-footer__link {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ps-footer-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ps-footer__link:hover,
.ps-footer__link:focus-visible {
  color: var(--ps-footer-primary);
}

/* پرفروش‌ها */

.ps-footer__bestsellers {
  min-width: 0;
}

@media (min-width: 1100px) {
  .ps-footer__bestsellers {
    grid-column: 2;
  }
}

.ps-footer__best-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--ps-footer-head-block-min);
  padding-bottom: var(--ps-footer-after-heading-gap);
  margin: 0;
  box-sizing: border-box;
}

.ps-footer__bestsellers-rule {
  width: 100%;
  height: 1px;
  margin: 0 0 var(--ps-footer-after-rule-gap);
  padding: 0;
  border: 0;
  background: var(--ps-footer-border);
}

.ps-footer__best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ps-footer__best-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.ps-footer__best-price {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ps-footer-text);
  white-space: nowrap;
  text-align: left;
}

.ps-footer__best-price .woocommerce-Price-amount,
.ps-footer__best-price .amount {
  font-weight: inherit;
}

.ps-footer__best-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ps-footer-muted);
  line-height: 1.35;
  text-align: right;
  text-decoration: none;
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.ps-footer__best-name:hover,
a.ps-footer__best-name:focus-visible {
  color: var(--ps-footer-primary);
}

/* کنار: اعتماد + شبکه‌ها */

.ps-footer__aside {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ps-footer__aside-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  direction: rtl;
  text-align: right;
}

.ps-footer__aside-col .ps-footer__heading--nav {
  margin: 0;
  min-height: var(--ps-footer-head-block-min);
  display: flex;
  align-items: center;
  padding-bottom: var(--ps-footer-after-heading-gap);
  box-sizing: border-box;
}

.ps-footer__aside-col .ps-footer__heading--nav.ps-footer__heading--sub {
  margin-top: 0;
}

.ps-footer__aside-heading-rule {
  width: 100%;
  height: 1px;
  margin: 0 0 var(--ps-footer-after-rule-gap);
  padding: 0;
  border: 0;
  background: var(--ps-footer-border);
  flex-shrink: 0;
}

.ps-footer__aside-col--social .ps-footer__aside-heading-rule {
  margin-bottom: 0;
}

@media (min-width: 1100px) {
  .ps-footer__aside {
    grid-column: 3;
    gap: 1.5rem;
  }
}

.ps-footer__trust-banner {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  flex: 1;
  min-height: 4.5rem;
}

.ps-footer__trust-banner-img {
  display: block;
  max-width: 100%;
  width: 200px;
  height: auto;
}

@media (max-width: 480px) {
  .ps-footer__trust-banner-img {
    width: 100%;
    max-width: 240px;
    margin-inline: 0;
  }
}

.ps-footer__aside-col--social .ps-footer__social {
  flex: 0 0 auto;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.ps-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ps-footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ps-footer__social-link:hover,
.ps-footer__social-link:focus-visible {
  border-color: var(--ps-footer-primary);
  color: var(--ps-footer-primary);
  background: #f0f4ff;
}

.ps-footer__social-link img,
.ps-footer__social-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* آیکن بله بدون بک‌گراند و بدون کادر */
.ps-footer__social-link[aria-label="بله"] {
  border: 0;
  background: transparent;
}

.ps-footer__social-link[aria-label="اینستاگرام"],
.ps-footer__social-link[aria-label="تلگرام"],
.ps-footer__social-link[aria-label="واتساپ"] {
  border: 0;
  background: transparent;
}

.ps-footer__social-link[aria-label="بله"]:hover,
.ps-footer__social-link[aria-label="بله"]:focus-visible,
.ps-footer__social-link[aria-label="اینستاگرام"]:hover,
.ps-footer__social-link[aria-label="اینستاگرام"]:focus-visible,
.ps-footer__social-link[aria-label="تلگرام"]:hover,
.ps-footer__social-link[aria-label="تلگرام"]:focus-visible,
.ps-footer__social-link[aria-label="واتساپ"]:hover,
.ps-footer__social-link[aria-label="واتساپ"]:focus-visible {
  border: 0;
  background: transparent;
}

@media (max-width: 767px) {
  /* دو ستون کنار هم؛ ترتیب RTL: اعتماد راست، شبکه‌ها چپ — تیتر و خط هم‌ارتفاع */
  .ps-footer__aside {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem 1.25rem;
    direction: rtl;
  }

  .ps-footer__aside-col {
    flex: 1 1 0;
    min-width: 0;
  }

  .ps-footer__aside-col .ps-footer__heading--nav {
    min-height: var(--ps-footer-head-block-min);
    padding-bottom: var(--ps-footer-after-heading-gap);
    align-items: center;
  }
}

/* ——— خدمات رنگی + تماس ——— */

.ps-footer__promo {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--ps-footer-border);
}

@media (min-width: 900px) {
  .ps-footer__promo {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.ps-footer__contact-block {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .ps-footer__contact-block {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 1rem 3rem;
  }
}

.ps-footer__contact-intro {
  text-align: right;
}

.ps-footer__contact-intro .ps-footer__heading--contact {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ps-footer-text);
  letter-spacing: -0.02em;
}

.ps-footer__contact-tagline {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ps-footer-muted);
  font-weight: 400;
}

.ps-footer__contact-tagline:last-child {
  margin-bottom: 0;
}

.ps-footer__contacts {
  direction: ltr;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.ps-footer__contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ps-footer-text);
}

.ps-footer__contact-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--ps-footer-muted);
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.ps-footer__contact-text {
  direction: rtl;
  text-align: left;
  flex: 0 1 auto;
  min-width: auto;
  line-height: 1.5;
}

.ps-footer__phone {
  font-weight: 700;
  color: inherit;
  unicode-bidi: isolate;
}

/* آیکن‌های رنگی */

.ps-footer__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}

@media (max-width: 639px) {
  .ps-footer__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem 0.55rem;
  }
}

.ps-footer__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.ps-footer__feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ps-footer__feature-icon .material-symbols-outlined {
  font-size: 40px;
}

.ps-footer__feature-icon--1 {
  background: linear-gradient(145deg, #10b981, #34d399);
}
.ps-footer__feature-icon--2 {
  background: linear-gradient(145deg, #8b5cf6, #a78bfa);
}
.ps-footer__feature-icon--3 {
  background: linear-gradient(145deg, #3b82f6, #60a5fa);
}
.ps-footer__feature-icon--4 {
  background: linear-gradient(145deg, #64748b, #94a3b8);
}

.ps-footer__feature-label {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--ps-footer-muted);
  font-weight: 600;
}

/* ——— درباره + لوگو ——— */

.ps-footer__about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
}

.ps-footer__about-text {
  flex: 1 1 280px;
  min-width: 0;
}

.ps-footer__about-p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--ps-footer-muted);
  text-align: justify;
}

.ps-footer__logo-link {
  flex-shrink: 0;
  display: block;
}

.ps-footer__logo-img {
  display: block;
  width: auto;
  max-height: 42px;
  height: auto;
}

/* ——— برگشت به بالا ——— */

.ps-footer__back-wrap {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.ps-footer__back-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
  background: var(--ps-footer-border);
  z-index: 0;
  pointer-events: none;
}

.ps-footer__back-top {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--ps-footer-border);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: #8b94a3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ps-footer__back-top:hover,
.ps-footer__back-top:focus-visible {
  background: #f5f5f5;
  border-color: #ccc;
}

.ps-footer__back-top .material-symbols-outlined {
  font-size: 14px;
}

/* ——— نوار پایین ——— */

.ps-footer__bar {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

@media (min-width: 900px) {
  .ps-footer__bar {
    text-align: right;
  }
}

.ps-footer__meta-left {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #888;
  direction: rtl;
  text-align: inherit;
}

.ps-footer__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.ps-footer__store {
  background: var(--ps-footer-store-bg);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ps-footer__store:hover,
.ps-footer__store:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ps-footer__store-icon--symbol {
  font-size: 1.35rem;
  color: #fff;
}

.ps-footer__store-text {
  text-align: right;
}

.ps-footer__store-label {
  margin: 0;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
}

.ps-footer__store-name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
