/* ═══════════════════════════════════════════════════════════════
   فروشگاه + جزئیات محصول — Visual refinement
   ظاهر و UX — بدون تغییر فونت، تصاویر یا چیدمان
   ═══════════════════════════════════════════════════════════════ */

.site-home {
  --tc-store-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tc-store-focus: 0 0 0 3px rgba(167, 139, 250, 0.42);
}

/* حذف گرادیانت‌های دایره‌ای پس‌زمینه در صفحات فروشگاه/محصول */
.site-home .tc-shell-blobs,
.site-home .tc-shell-blob {
  display: none !important;
}

/* پس‌زمینه نرم صفحات فروشگاه */
.site-home.store-page,
.site-home.product-page {
  background: #f3f0fa;
}

.site-home.store-page .tc-site-main,
.site-home.product-page .tc-site-main {
  position: relative;
  z-index: 1;
}

/* ═══ فهرست فروشگاه ═══ */

.site-home .tc-store-hero-wrap {
  padding-top: 1.5rem;
}

.site-home .tc-store-hero {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.1),
    0 12px 40px -14px rgba(124, 92, 230, 0.2),
    0 24px 56px -20px rgba(46, 35, 77, 0.1);
  background: linear-gradient(145deg, #faf8ff 0%, #f0f9ff 38%, #fdf4ff 100%);
}

.site-home .tc-store-hero__eyebrow {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 238, 255, 0.92) 100%);
  box-shadow: 0 4px 14px -6px rgba(124, 92, 230, 0.18);
}

.site-home .tc-store-hero__title {
  letter-spacing: -0.03em;
}

.site-home .tc-store-hero__cta {
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 28px -8px rgba(124, 92, 230, 0.48);
  transition:
    transform 0.28s var(--tc-store-ease),
    box-shadow 0.28s var(--tc-store-ease);
}

.site-home .tc-store-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 18px 36px -8px rgba(124, 92, 230, 0.55);
}

.site-home .tc-store-hero__figure {
  filter:
    drop-shadow(0 8px 16px rgba(91, 75, 184, 0.12))
    drop-shadow(0 28px 40px rgba(124, 92, 230, 0.22));
}

/* سایدبار فیلتر */
.site-home .tc-store-filter .tc-card {
  border-radius: 22px;
  border: 1px solid rgba(216, 201, 255, 0.5);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.94) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px -16px rgba(124, 92, 230, 0.14);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.site-home .tc-store-filter .pastel-input,
.site-home .tc-store-filter select.pastel-input {
  border-radius: 12px;
  border-color: rgba(216, 201, 255, 0.55);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.site-home .tc-store-filter .pastel-input:focus,
.site-home .tc-store-filter select.pastel-input:focus {
  border-color: var(--tc-primary, #8b6cf6);
  box-shadow: var(--tc-store-focus);
}

.site-home .tc-store-filter .pastel-btn-primary {
  border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgba(124, 92, 230, 0.45);
  transition:
    transform 0.25s var(--tc-store-ease),
    box-shadow 0.25s var(--tc-store-ease);
}

.site-home .tc-store-filter .pastel-btn-primary:hover {
  transform: translateY(-1px);
}

/* پنل فهرست محصولات */
.site-home .tc-store-catalog__inner {
  border-radius: 24px;
  border-color: rgba(216, 201, 255, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 251, 255, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.06),
    0 16px 44px -18px rgba(124, 92, 230, 0.14);
}

.site-home .tc-store-catalog__title {
  letter-spacing: -0.02em;
}

.site-home .tc-store-catalog__count {
  background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 100%);
  box-shadow: 0 2px 8px rgba(124, 92, 230, 0.12);
}

.site-home .tc-store-catalog__search {
  border-radius: 16px;
  border: 1px solid rgba(216, 201, 255, 0.5);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px -10px rgba(124, 92, 230, 0.1);
  transition: box-shadow 0.25s var(--tc-store-ease);
}

.site-home .tc-store-catalog__search:focus-within {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: var(--tc-store-focus);
}

.site-home .tc-store-catalog__search-btn {
  border-radius: 12px;
  transition:
    transform 0.22s var(--tc-store-ease),
    box-shadow 0.22s;
}

.site-home .tc-store-catalog__search-btn:hover {
  transform: scale(1.03);
}

.site-home .tc-store-catalog__page-btn {
  border-radius: 12px;
  transition:
    transform 0.22s var(--tc-store-ease),
    border-color 0.22s,
    box-shadow 0.22s;
}

.site-home .tc-store-catalog__page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(124, 92, 230, 0.2);
}

.site-home .tc-store-catalog__empty {
  border-radius: 20px;
  background: linear-gradient(165deg, #faf8ff 0%, #ffffff 100%);
}

/* کارت محصول */
.site-home .tc-store-product-card {
  border-radius: 20px;
  border: 1px solid rgba(226, 214, 255, 0.55);
  background: linear-gradient(165deg, #ffffff 0%, #fcfbff 55%, #ffffff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 24px -12px rgba(46, 35, 77, 0.1);
  transition:
    transform 0.32s var(--tc-store-ease),
    box-shadow 0.32s var(--tc-store-ease),
    border-color 0.32s var(--tc-store-ease);
}

.site-home .tc-store-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 181, 253, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 44px -14px rgba(124, 92, 230, 0.22);
}

.site-home .tc-store-product-card__media {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.site-home .tc-store-product-card__media::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-home .tc-store-product-card:hover .tc-store-product-card__media::after {
  opacity: 1;
}

.site-home .tc-store-product-card__kind,
.site-home .tc-store-product-card__badge {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(46, 35, 77, 0.12);
}

.site-home .tc-store-product-card__cta {
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.95) 0%, rgba(224, 242, 254, 0.85) 100%);
  transition:
    transform 0.25s var(--tc-store-ease),
    background 0.25s;
}

.site-home .tc-store-product-card:hover .tc-store-product-card__cta {
  transform: scale(1.08);
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
  color: #fff;
}

.site-home .tc-store-product-card:hover .tc-store-product-card__cta svg {
  stroke: #fff;
}

/* بنرهای پایین فروشگاه */
.site-home .tc-promo-card {
  border-radius: 22px;
  border: 1px solid rgba(216, 201, 255, 0.45);
  overflow: hidden;
  transition:
    transform 0.32s var(--tc-store-ease),
    box-shadow 0.32s var(--tc-store-ease),
    border-color 0.32s;
}

.site-home .tc-promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.08),
    0 20px 48px -16px rgba(124, 92, 230, 0.2);
}

.site-home .tc-promo-card__chip {
  box-shadow: 0 2px 8px rgba(124, 92, 230, 0.1);
}

.site-home .tc-promo-card__cta {
  transition:
    transform 0.22s var(--tc-store-ease),
    letter-spacing 0.22s;
}

.site-home .tc-promo-card:hover .tc-promo-card__cta {
  letter-spacing: 0.02em;
}

.site-home .tc-store-products-loader {
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  background: rgba(255, 255, 255, 0.82);
}

/* ═══ جزئیات محصول (PDP) ═══ */

.site-home .tc-pdp {
  background: transparent;
  padding-top: 1.25rem;
}

.site-home .tc-pdp__hero {
  padding: 1.35rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(216, 201, 255, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.95) 48%, rgba(240, 249, 255, 0.5) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 40px -18px rgba(124, 92, 230, 0.14);
}

.site-home .tc-pdp__cover-wrap {
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.08),
    0 16px 36px -12px rgba(46, 35, 77, 0.18);
  transition: box-shadow 0.3s var(--tc-store-ease);
}

.site-home .tc-pdp__cover-wrap:hover {
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.12),
    0 22px 48px -12px rgba(124, 92, 230, 0.22);
}

.site-home .tc-pdp__cover-fallback {
  background: linear-gradient(145deg, #ede9fe 0%, #e0f2fe 100%);
}

.site-home .tc-pdp__btn-preview {
  border-radius: 12px;
  box-shadow: 0 4px 14px -8px rgba(20, 184, 166, 0.35);
  transition:
    transform 0.22s var(--tc-store-ease),
    box-shadow 0.22s;
}

.site-home .tc-pdp__btn-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(20, 184, 166, 0.45);
}

.site-home .tc-pdp__btn-share {
  box-shadow: 0 4px 12px -8px rgba(124, 92, 230, 0.15);
  transition:
    transform 0.22s var(--tc-store-ease),
    box-shadow 0.22s;
}

.site-home .tc-pdp__btn-share:hover {
  transform: scale(1.05);
}

.site-home .tc-pdp__meta {
  border-radius: 12px;
  border: 1px solid rgba(232, 236, 241, 0.9);
  background: rgba(255, 255, 255, 0.85);
}

.site-home .tc-pdp__title {
  letter-spacing: -0.03em;
}

.site-home .tc-pdp__hero-main .tc-pdp__intro {
  margin-top: 1.15rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 236, 241, 0.85);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px -16px rgba(46, 35, 77, 0.1);
}

.site-home .tc-pdp__intro-title {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--pdp-violet-dark, #7c3aed);
}

.site-home .tc-pdp__checkout-card {
  border-radius: 22px;
  border: 1px solid rgba(216, 201, 255, 0.5);
  background: linear-gradient(165deg, #ffffff 0%, #faf8ff 42%, #f8f9fb 100%);
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.06),
    0 18px 48px -16px rgba(124, 92, 230, 0.18),
    0 8px 24px -12px rgba(46, 35, 77, 0.08);
}

@media (min-width: 1024px) {
  .site-home .tc-pdp__checkout {
    position: sticky;
    top: 5.5rem;
  }
}

.site-home .tc-pdp__pay-btn {
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 28px -10px rgba(124, 58, 237, 0.45);
  transition:
    transform 0.28s var(--tc-store-ease),
    box-shadow 0.28s var(--tc-store-ease);
}

.site-home .tc-pdp__pay-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 16px 36px -10px rgba(124, 58, 237, 0.52);
}

.site-home .tc-pdp__pay-btn--free {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 12px 28px -10px rgba(5, 150, 105, 0.35);
}

.site-home .tc-pdp__field input,
.site-home .tc-pdp__coupon-row input {
  border-radius: 12px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.site-home .tc-pdp__field input:focus,
.site-home .tc-pdp__coupon-row input:focus {
  box-shadow: var(--tc-store-focus);
}

.site-home .tc-pdp__success {
  border-radius: 18px;
  box-shadow: 0 10px 28px -12px rgba(5, 150, 105, 0.2);
}

/* اسلایدر محصولات مشابه */
.site-home .tc-pdp-similar,
.site-home .tc-similar-products {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(216, 201, 255, 0.4);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.94) 100%);
  box-shadow: 0 12px 36px -18px rgba(124, 92, 230, 0.12);
}

.site-home .tc-pdp-similar__title,
.site-home .tc-similar-products__title {
  letter-spacing: -0.02em;
}

/* فوکوس */
.site-home .tc-store-product-card__link:focus-visible,
.site-home .tc-promo-card:focus-visible,
.site-home .tc-pdp__pay-btn:focus-visible {
  outline: none;
  box-shadow: var(--tc-store-focus);
}

/* ═══ مودال اشتراک‌گذاری محصول ═══ */

.tc-pdp-share {
  --share-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-pdp-share__backdrop {
  background: rgba(30, 27, 46, 0.58);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
}

.tc-pdp-share__dialog {
  width: min(100%, 26.5rem);
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(168deg, #ffffff 0%, #faf8ff 42%, #f8f9fb 100%);
  box-shadow:
    0 0 0 1px rgba(124, 92, 230, 0.1),
    0 8px 20px rgba(124, 58, 237, 0.06),
    0 28px 64px -12px rgba(46, 35, 77, 0.22),
    0 0 80px -20px rgba(139, 92, 246, 0.25);
}

.tc-pdp-share__dialog::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: none;
}

.tc-pdp-share__accent {
  height: 3px;
  background: linear-gradient(90deg, #a78bfa, #48cae4, #c4b5fd, #a78bfa);
  background-size: 200% 100%;
  animation: tc-share-accent-shift 6s ease-in-out infinite;
}

@keyframes tc-share-accent-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.tc-pdp-share__head {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 0.95rem;
}

.tc-pdp-share__title-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #ede9fe 0%, #e0f2fe 55%, #f5f3ff 100%);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px -6px rgba(124, 92, 230, 0.28);
}

.tc-pdp-share__close {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border-color: rgba(216, 201, 255, 0.55);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(46, 35, 77, 0.06);
}

.tc-pdp-share__close:hover {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: rgba(167, 139, 250, 0.55);
  transform: scale(1.06);
  box-shadow: 0 6px 16px -8px rgba(124, 92, 230, 0.25);
}

.tc-pdp-share__section {
  position: relative;
  z-index: 1;
  padding-inline: 1.35rem;
}

.tc-pdp-share__label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  color: #6d28d9;
  letter-spacing: 0;
}

.tc-pdp-share__networks {
  gap: 0.65rem;
}

.tc-pdp-share:not([hidden]) .tc-pdp-share__net {
  animation: tc-share-net-in 0.45s var(--share-ease) both;
}

.tc-pdp-share:not([hidden]) .tc-pdp-share__net:nth-child(1) { animation-delay: 0.04s; }
.tc-pdp-share:not([hidden]) .tc-pdp-share__net:nth-child(2) { animation-delay: 0.08s; }
.tc-pdp-share:not([hidden]) .tc-pdp-share__net:nth-child(3) { animation-delay: 0.12s; }
.tc-pdp-share:not([hidden]) .tc-pdp-share__net:nth-child(4) { animation-delay: 0.16s; }
.tc-pdp-share:not([hidden]) .tc-pdp-share__net:nth-child(5) { animation-delay: 0.2s; }
.tc-pdp-share:not([hidden]) .tc-pdp-share__net:nth-child(6) { animation-delay: 0.24s; }

@keyframes tc-share-net-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tc-pdp-share__net {
  border-radius: 1rem;
  border-color: rgba(226, 214, 255, 0.55);
  background: linear-gradient(165deg, #ffffff 0%, #fcfbff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 14px -8px rgba(46, 35, 77, 0.08);
  transition:
    transform 0.28s var(--share-ease),
    box-shadow 0.28s var(--share-ease),
    border-color 0.28s;
}

.tc-pdp-share__net:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 28px -10px rgba(124, 92, 230, 0.22);
}

.tc-pdp-share__net:active {
  transform: translateY(-1px);
}

.tc-pdp-share__net-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
  border-color: rgba(232, 236, 241, 0.9);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.05),
    0 0 0 3px rgba(255, 255, 255, 0.85);
}

.tc-pdp-share__net:hover .tc-pdp-share__net-icon {
  transform: scale(1.1);
  box-shadow:
    0 8px 18px -6px rgba(124, 92, 230, 0.2),
    0 0 0 3px rgba(237, 233, 254, 0.9);
}

.tc-pdp-share__section--link {
  padding-bottom: 1.4rem;
}

.tc-pdp-share__link-row {
  border-radius: 14px;
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 24px -14px rgba(124, 92, 230, 0.15);
  overflow: hidden;
}

.tc-pdp-share__link-text {
  padding: 0.8rem 0.95rem;
  font-size: 0.72rem;
  color: #5f5b75;
  background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
  border-inline-end-color: rgba(216, 201, 255, 0.4);
}

.tc-pdp-share__copy {
  min-width: 4.85rem;
  padding-inline: 1.1rem;
  border-radius: 0;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 38%, #8b5cf6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    -4px 0 16px -6px rgba(124, 92, 230, 0.35);
  transition:
    filter 0.22s ease,
    transform 0.22s var(--share-ease),
    box-shadow 0.22s;
}

.tc-pdp-share__copy:hover {
  filter: brightness(1.06);
  transform: scale(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    -6px 0 22px -6px rgba(124, 92, 230, 0.45);
}

.tc-pdp-share__copy.is-copied {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 45%, #059669 100%);
  box-shadow: 0 6px 20px -6px rgba(5, 150, 105, 0.4);
}

.tc-pdp-share__net:focus-visible,
.tc-pdp-share__copy:focus-visible,
.tc-pdp-share__close:focus-visible {
  outline: none;
  box-shadow: var(--tc-store-focus);
}

@media (prefers-reduced-motion: reduce) {
  .site-home .tc-store-hero__cta:hover,
  .site-home .tc-store-product-card:hover,
  .site-home .tc-promo-card:hover,
  .site-home .tc-pdp__pay-btn:hover,
  .site-home .tc-store-filter .pastel-btn-primary:hover {
    transform: none;
  }

  .tc-pdp-share__accent {
    animation: none;
  }

  .tc-pdp-share:not([hidden]) .tc-pdp-share__net {
    animation: none;
  }

  .tc-pdp-share__net:hover,
  .tc-pdp-share__copy:hover,
  .tc-pdp-share__close:hover {
    transform: none;
  }
}
