.sp-profile {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ——— هویت: عکس + آمار + نام + توضیح ——— */
.sp-identity {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 4px 4px;
}

.sp-identity-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-avatar {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(15, 23, 42, 0.08), 0 6px 18px rgba(15, 23, 42, 0.06);
}

.sp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary, #0f766e);
  background: var(--primary-soft, #ecfdf5);
}

.sp-stats {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  min-width: 0;
}

.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: background .15s;
}

.sp-stat:hover {
  background: rgba(15, 23, 42, 0.04);
}

.sp-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text, #0f172a);
  font-variant-numeric: tabular-nums;
}

.sp-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.sp-identity-text {
  min-width: 0;
  padding-top: 2px;
}

.sp-name {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sp-verified {
  display: inline-flex;
  color: #0ea5e9;
  line-height: 0;
}

.sp-bio-wrap {
  margin: 0;
}

.sp-bio.store-description-content {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #64748b;
}

/* حالت جمع‌شده: حدود ۳ خط */
.sp-bio-wrap.is-collapsed .sp-bio.store-description-content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-bio-wrap:not(.is-collapsed) .sp-bio.store-description-content {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.sp-desc-toggle.store-desc-toggle {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary, #0f766e);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.sp-desc-toggle.store-desc-toggle:hover {
  text-decoration: underline;
}

.sp-desc-toggle.store-desc-toggle[hidden] {
  display: none !important;
}

/* ——— هایلایت‌ها داخل پروفایل ——— */
.sp-profile .hl-row-section {
  margin: 0;
  padding: 0;
}

.sp-profile .hl-row {
  padding: 4px 2px 8px;
  gap: 14px;
}

/* ——— اسلایدر ——— */
.sp-slider-wrap {
  margin: 0 -16px;
  border-radius: 0;
  overflow: hidden;
}

.sp-slider-wrap .home-slider {
  margin-bottom: 0 !important;
}

@media (min-width: 761px) {
  .sp-slider-wrap {
    margin: 0;
    border-radius: 14px;
  }
}

/* ——— دکمه‌های اصلی: محصولات / مقالات ——— */
.sp-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.sp-btn-ic {
  display: inline-flex;
  line-height: 0;
}

.sp-btn-primary {
  background: var(--primary, #0f766e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}

.sp-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.sp-btn-secondary {
  background: #fff;
  color: var(--text, #0f172a);
  border: 1.5px solid #e2e8f0;
}

.sp-btn-secondary:hover {
  border-color: var(--primary, #0f766e);
  color: var(--primary, #0f766e);
  background: var(--primary-soft, #f0fdfa);
}

/* ——— شبکه امکانات ——— */
.sp-tools {
  margin-top: 2px;
}

.sp-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .sp-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 14px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  text-decoration: none;
  color: var(--text, #0f172a);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.sp-tool:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.sp-tool-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft, #ecfdf5);
  color: var(--primary, #0f766e);
}

.sp-tool-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ——— موبایل فشرده‌تر ——— */
@media (max-width: 480px) {
  .sp-profile {
    padding: 6px 14px 24px;
    gap: 14px;
  }

  .sp-avatar {
    width: 72px;
    height: 72px;
  }

  .sp-name {
    font-size: 1.08rem;
  }

  .sp-btn {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .sp-tool {
    min-height: 86px;
  }
}

/* ——— صفحه پروفایل: هدر و فوتر در موبایل ——— */
@media (max-width: 760px) {
  body.sp-profile-page .topbar-search,
  body.sp-profile-page .topbar-cart {
    display: none !important;
  }

  body.sp-profile-page .site-footer {
    display: none !important;
  }

  /* بنر فوتر هم در موبایل پروفایل مخفی */
  body.sp-profile-page .banner-slot.banner-footer {
    display: none !important;
  }
	
	body.sp-profile-page{background:#fff!important;}
	.store-topbar{box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);}
	.mobile-menu-btn{background:#fff!important;}
	.store-announce{background:#fff;border:0;box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 12px;}
	.store-announce-text {color: #b45309;}
	.store-announce-close {border-radius: 6px;font-weight: 900;background: #f1f1f1;color: #000000;}
	.sp-btn-primary{box-shadow:unset;}
}

/* ——— متا: نام خانوادگی مالک + تولد ایبک ——— */
.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
}

.sp-meta-item {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sp-meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.sp-meta-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.35;
}

/* اسلایدر/بنر پروفایل — بدون زوم و کراپ (هم‌راستا با فرانت) */
body.sp-profile-page .sp-slider-wrap {
  overflow: visible;
}
body.sp-profile-page .home-slider-track {
  max-height: none !important;
  aspect-ratio: auto !important;
  height: auto !important;
}
body.sp-profile-page .home-slide img,
body.sp-profile-page .home-slide a img,
body.sp-profile-page .banner-slot img,
body.sp-profile-page .banner-slot a img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* ——— تماس: آدرس، تلفن، شبکه‌های اجتماعی ——— */
.sp-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sp-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sp-contact-ic {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft, #ecfdf5);
  color: var(--primary, #0f766e);
}

.sp-contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
}

.sp-contact-value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text, #0f172a);
}

.sp-phone-link {
  color: var(--primary, #0f766e);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sp-phone-link:hover {
  text-decoration: underline;
}

.sp-contact-socials {
  width: 100%;
  margin: 0;
  padding: 0;
}

.sp-socials {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.sp-socials::-webkit-scrollbar {
  display: none;
}

.sp-social-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-soft, #f0fdfa);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--primary, #0f766e);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.sp-social-chip:hover {
  background: #fff;
  transform: translateY(-1px);
}
