/* دلیچه — کامپوننت‌های UI مشترک */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full, 999px);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease, ease), background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand, #81B061);
  color: #fff;
  box-shadow: 0 4px 14px rgba(129, 176, 97, 0.3);
}
.btn-primary:hover { background: var(--brand-hover, #719552); }
.btn-outline {
  background: transparent;
  color: var(--brand, #81B061);
  border: 1.5px solid var(--brand, #81B061);
}
.btn-ghost {
  background: var(--brand-light, #e8f2ea);
  color: var(--brand, #81B061);
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* افزودن به سبد — همه صفحات با کارت محصول */
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
  padding: 8px 12px;
  background: var(--brand-light, #e8f2ea);
  color: var(--brand, #81B061);
  border: none;
  border-radius: var(--radius-sm, 10px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-add:hover {
  background: color-mix(in srgb, var(--brand-bright, #b1d7b4) 55%, #fff 45%);
  color: var(--brand-hover, #719552);
}
.btn-add:active {
  transform: scale(0.98);
}
.btn-add.btn-sm {
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.filter-chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full, 999px);
  background: var(--bg-alt, #f4f9f5);
  border: 1px solid var(--border, #dce8de);
  color: var(--text-muted, #5c6560);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.filter-chip:hover,
.filter-chip.is-active {
  background: var(--brand, #81B061);
  border-color: var(--brand, #81B061);
  color: #fff;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s infinite;
  border-radius: var(--radius-sm, 10px);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .skeleton { animation: none; }
}

/* لینک متقابل خرید عمده ↔ همکاری در فروش */
.page-wholesale .partner-crosslink,
.page-affiliate .partner-crosslink,
.page-represent .partner-crosslink,
.page-recipes-hub .partner-crosslink,
.page-recipe-detail .partner-crosslink,
.page-blog .partner-crosslink,
.page-blog-detail .partner-crosslink {
  margin: 0 0 2rem;
}

.partner-crosslink-inner {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand, #81B061) 28%, var(--line, #dfe8e2) 72%);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--brand, #81B061) 7%, #fff) 0%,
    #fff 58%
  );
  box-shadow: 0 12px 28px rgba(32, 40, 34, 0.06);
}

.partner-crosslink-eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand, #81B061);
  background: rgba(129, 176, 97, 0.1);
  border: 1px solid rgba(129, 176, 97, 0.22);
}

.partner-crosslink-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  line-height: 1.45;
  color: var(--text, #1a1f1c);
}

.partner-crosslink-lead {
  margin: 0 0 0.85rem;
  max-width: 44rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted, #5c6560);
}

.partner-crosslink-bullets {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.partner-crosslink-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text, #1a1f1c);
}

.partner-crosslink-bullets li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--brand, #81B061);
}

.partner-crosslink-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1.45rem;
  font-weight: 700;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.partner-crosslink-cta::after {
  content: '←';
  font-size: 0.95em;
  line-height: 1;
  opacity: 0.88;
}

.partner-crosslink-cta:hover {
  background: color-mix(in srgb, var(--brand, #81B061) 8%, #fff);
}
