/* مطبخ دلیچه — موتور دستور پخت */

/* فرم‌ها روی ویندوز/موبایل اغلب فونت سیستم می‌گیرند — هم‌خوان با بقیه سایت */
.page-recipes-hub input,
.page-recipes-hub select,
.page-recipes-hub textarea,
.page-recipes-hub button,
.page-recipes-hub .recipes-chip,
.page-recipe-detail input,
.page-recipe-detail select,
.page-recipe-detail textarea,
.page-recipe-detail button {
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
}

.page-recipes-hub select option,
.page-recipe-detail select option {
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
}

.page-recipes-hub #main > .container:first-child {
  display: none;
}

.page-recipe-detail #main > .container:first-child {
  padding-top: 0.75rem;
  padding-bottom: 0;
}

.page-recipe-detail .recipe-detail-breadcrumb-wrap {
  font-size: 0.82rem;
}

.page-recipe-detail .recipe-detail-breadcrumb-wrap a {
  color: var(--text-muted, #5c6b57);
}

/* ——— Detail page ——— */
.page-recipe-detail .recipe-detail-hero-band {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background: linear-gradient(145deg, #5a8f42 0%, #81b061 42%, #6b9e4a 100%);
  color: #fff;
}

.page-recipe-detail .recipe-detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 75%, rgba(0, 0, 0, 0.07), transparent 38%);
  pointer-events: none;
}

.page-recipe-detail .recipe-detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: 1.35rem 0 1.75rem;
}

.page-recipe-detail .recipe-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.page-recipe-detail .recipe-detail-back:hover {
  color: #fff;
  text-decoration: underline;
}

.page-recipe-detail .recipe-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.page-recipe-detail .recipe-detail-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.page-recipe-detail .recipe-detail-tag--muted {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-recipe-detail .recipe-detail-hero-copy h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 4.2vw, 2.05rem);
  line-height: 1.32;
  color: #fff;
}

.page-recipe-detail .recipe-detail-lead {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  line-height: 1.75;
  font-size: 0.92rem;
  opacity: 0.94;
}

.page-recipe-detail .recipe-detail-buy-cta {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-recipe-detail .recipe-detail-buy-cta p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.95;
}

.page-recipe-detail .recipe-detail-buy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-recipe-detail .recipe-detail-buy-cta__actions .btn-primary {
  color: var(--brand-deep, #4a7a35);
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.page-recipe-detail .recipe-detail-buy-cta__actions .btn-primary:hover {
  background: #f4f8f1;
  border-color: #f4f8f1;
  color: var(--brand-deep, #4a7a35);
}

.page-recipe-detail .recipe-detail-buy-cta__actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.page-recipe-detail .recipe-detail-buy-cta__actions .btn-outline:hover {
  color: var(--brand-deep, #4a7a35);
  background: #fff;
  border-color: #fff;
}

.page-recipe-detail .recipe-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.page-recipe-detail .recipe-detail-stat {
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-recipe-detail .recipe-detail-stat dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.88;
}

.page-recipe-detail .recipe-detail-stat dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.page-recipe-detail .recipe-detail-stat dd span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
}

.page-recipe-detail .recipe-detail-ref {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  opacity: 0.88;
}

.page-recipe-detail .recipe-detail-hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.22);
}

.page-recipe-detail .recipe-detail-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 52vw);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-recipe-detail .recipe-detail-shell {
  padding: 1.15rem 0 2rem;
}

.page-recipe-detail .recipe-detail-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  padding: 0.45rem;
  border-radius: 14px;
  background: var(--surface-elevated, #f8faf6);
  border: 1px solid var(--border-subtle, #e5ebe0);
  position: sticky;
  top: calc(var(--header-h, 88px) + 8px);
  z-index: 5;
}

.page-recipe-detail .recipe-detail-jump-link {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-deep, #4a7a35);
  background: #fff;
  border: 1px solid #dce8d4;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-recipe-detail .recipe-detail-jump-link:hover,
.page-recipe-detail .recipe-detail-jump-link:focus-visible {
  background: var(--brand-bright, #81b061);
  border-color: transparent;
  color: #fff;
}

.page-recipe-detail .recipe-detail-jump-link--accent {
  background: rgba(129, 176, 97, 0.12);
}

.page-recipe-detail .recipe-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.page-recipe-detail .recipe-detail-aside {
  position: sticky;
  top: calc(var(--header-h, 88px) + 68px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-recipe-detail .recipe-detail-card {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5ebe0);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 6px 24px rgba(74, 122, 53, 0.05);
  scroll-margin-top: calc(var(--header-h, 88px) + 72px);
}

.page-recipe-detail .recipe-detail-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--brand-deep, #4a7a35);
}

.page-recipe-detail .recipe-detail-card-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted, #5c6b57);
}

.page-recipe-detail .recipe-detail-card--ingredients {
  background: linear-gradient(180deg, #f8fbf5 0%, #fff 100%);
}

.page-recipe-detail .recipe-ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-recipe-detail .recipe-ingredients-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e5ebe0;
}

.page-recipe-detail .recipe-ingredients-list li:last-child {
  border-bottom: 0;
}

.page-recipe-detail .recipe-ingredients-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2f3d2a;
  line-height: 1.5;
}

.page-recipe-detail .recipe-ingredients-name::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--brand-bright, #81b061);
  vertical-align: middle;
  transform: translateY(-1px);
}

.page-recipe-detail .recipe-ingredients-amount {
  flex-shrink: 0;
  max-width: 46%;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted, #5c6b57);
}

.page-recipe-detail .recipe-product-link,
.page-recipes-hub .recipe-product-link {
  color: var(--brand-deep, #4a7a35);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(129, 176, 97, 0.45);
  text-underline-offset: 0.15em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.page-recipe-detail .recipe-product-link:hover,
.page-recipes-hub .recipe-product-link:hover {
  color: var(--brand-bright, #81b061);
  text-decoration-color: currentColor;
}

.page-recipe-detail .recipe-smart-shop {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3faf0 0%, #fff 100%);
  border: 1px dashed rgba(129, 176, 97, 0.35);
}

.page-recipe-detail .recipe-smart-shop-label {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep, #4a7a35);
}

.page-recipe-detail .recipe-smart-shop-hint {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-muted, #5c6b57);
}

.page-recipe-detail .recipe-smart-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-recipe-detail .recipe-smart-shop-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #3d6b2c;
  background: #fff;
  border: 1px solid rgba(129, 176, 97, 0.35);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page-recipe-detail .recipe-smart-shop-chip:hover {
  background: #eef5ea;
  border-color: var(--brand-bright, #81b061);
  transform: translateY(-1px);
}

.page-recipe-detail .recipe-detail-aside-shop .recipe-shop {
  margin-top: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
}

.page-recipe-detail .recipe-detail-aside-shop .recipe-shop-head {
  flex-direction: column;
  align-items: stretch;
}

.page-recipe-detail .recipe-detail-aside-shop .recipe-shop-add-all {
  width: 100%;
  justify-content: center;
}

.page-recipe-detail .recipe-detail-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.page-recipe-detail .recipe-detail-intro {
  line-height: 1.9;
  font-size: 0.96rem;
  color: #2f3d2a;
}

.page-recipe-detail .recipe-detail-intro p {
  margin: 0 0 0.75rem;
}

.page-recipe-detail .recipe-detail-intro p:last-child {
  margin-bottom: 0;
}

.page-recipe-detail .recipe-detail-steps {
  background: linear-gradient(165deg, #f9fcf6 0%, #fff 42%, #f6faf3 100%);
  border-color: #dce8d4;
  padding: 1.25rem 1.2rem 1.2rem;
}

.page-recipe-detail .recipe-steps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(129, 176, 97, 0.16);
}

.page-recipe-detail .recipe-steps-head-copy h2 {
  margin: 0 0 0.25rem;
}

.page-recipe-detail .recipe-steps-summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #5c6b57);
}

.page-recipe-detail .recipe-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: recipe-step;
}

.page-recipe-detail .recipe-step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 0;
}

.page-recipe-detail .recipe-step:not(:last-child) {
  margin-bottom: 0.15rem;
}

.page-recipe-detail .recipe-step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.page-recipe-detail .recipe-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #6fa04d 0%, #81b061 55%, #94c070 100%);
  box-shadow:
    0 6px 16px rgba(111, 160, 77, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
}

.page-recipe-detail .recipe-step:last-child .recipe-step-num {
  background: linear-gradient(145deg, #5a8f42 0%, #719552 100%);
}

.page-recipe-detail .recipe-step-connector {
  flex: 1 1 auto;
  width: 2px;
  min-height: 1.15rem;
  margin: 0.35rem 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(129, 176, 97, 0.55) 0%, rgba(129, 176, 97, 0.12) 100%);
}

.page-recipe-detail .recipe-step-content {
  position: relative;
  margin-bottom: 0.85rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8efe3;
  box-shadow: 0 4px 18px rgba(74, 122, 53, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-recipe-detail .recipe-step:hover .recipe-step-content {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-bright, #81b061) 28%, #e8efe3);
  box-shadow: 0 10px 28px rgba(74, 122, 53, 0.1);
}

.page-recipe-detail .recipe-step:last-child .recipe-step-content {
  margin-bottom: 0;
  border-color: color-mix(in srgb, var(--brand-bright, #81b061) 35%, #e8efe3);
  background: linear-gradient(135deg, #fff 0%, #f7fbf4 100%);
}

.page-recipe-detail .recipe-step-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5f7358;
  background: #eef4e8;
}

.page-recipe-detail .recipe-step-badge--start {
  color: #3d6b2c;
  background: #e3f0da;
}

.page-recipe-detail .recipe-step-badge--finish {
  color: #7a5a12;
  background: linear-gradient(135deg, #fff4d6 0%, #ffe9a8 100%);
}

.page-recipe-detail .recipe-step-text {
  margin: 0;
  line-height: 1.9;
  font-size: 0.94rem;
  color: #2a3426;
}

@media (max-width: 520px) {
  .page-recipe-detail .recipe-detail-steps {
    padding: 1rem 0.85rem;
  }

  .page-recipe-detail .recipe-step {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .page-recipe-detail .recipe-step-num {
    width: 2rem;
    height: 2rem;
    font-size: 0.82rem;
  }

  .page-recipe-detail .recipe-step-content {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .page-recipe-detail .recipe-step-text {
    font-size: 0.9rem;
    line-height: 1.85;
  }
}

.page-recipe-detail .recipe-detail-tips {
  background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
  border-color: #f0e6c8;
}

.page-recipe-detail .recipe-tips-list {
  margin: 0.5rem 0 0;
  padding: 0 1.1rem 0 0;
  line-height: 1.8;
}

.page-recipe-detail .recipe-tips-list li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: #4a4535;
}

.page-recipe-detail .recipe-tips-list li::marker {
  color: #c9a227;
}

.page-recipe-detail .partner-crosslink {
  margin: 0.25rem 0 0;
}

.page-recipe-detail .recipe-magazine-related {
  margin: 0 auto 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle, #e5ebe0);
}

.page-recipe-detail .recipe-magazine-related {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.5rem);
  border: 1px solid #e3ebe0;
  border-top: 1px solid #e3ebe0;
  border-radius: 20px;
  background: linear-gradient(165deg, #f7faf5 0%, #ffffff 52%, #f4f8f1 100%);
  box-shadow: 0 10px 36px rgba(74, 122, 53, 0.07);
  text-align: center;
}

.page-recipe-detail .recipe-magazine-related .recipe-magazine-head {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.page-recipe-detail .recipe-magazine-related .recipe-magazine-head h2 {
  font-size: clamp(1.12rem, 3.2vw, 1.38rem);
  letter-spacing: -0.01em;
}

.page-recipe-detail .recipe-magazine-related .recipe-magazine-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-bright, #81b061) 32%, #dde8d6);
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page-recipe-detail .recipe-magazine-related .recipe-magazine-more:hover {
  background: #eef5ea;
  border-color: color-mix(in srgb, var(--brand-bright, #81b061) 45%, #c5dbb8);
  text-decoration: none;
  transform: translateY(-1px);
}

.page-recipe-detail .recipe-magazine-related .blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 300px));
  justify-content: center;
  justify-items: stretch;
  gap: clamp(0.85rem, 2.5vw, 1.2rem);
  width: 100%;
  margin-inline: auto;
}

.page-recipe-detail .recipe-magazine-related .blog-post-card {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  text-align: right;
}

.page-recipe-detail .recipe-related-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.page-recipe-detail .recipe-related-more a {
  color: var(--brand-deep, #4a7a35);
  font-weight: 600;
  text-decoration: none;
}

.page-recipe-detail .recipe-related-more a:hover {
  text-decoration: underline;
}

.page-recipe-detail .recipe-related {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 3rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.5rem);
  border: 1px solid #e3ebe0;
  border-top: 1px solid #e3ebe0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(74, 122, 53, 0.06);
}

.page-recipe-detail .recipe-related .recipe-magazine-head {
  margin-bottom: 1.25rem;
}

.page-recipe-detail .recipe-related .recipe-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.85rem, 2.5vw, 1.2rem);
}

.page-recipe-detail .recipe-related .recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-recipe-detail .recipe-magazine-related .blog-posts-grid,
.page-recipe-detail .recipe-related .recipe-posts-grid {
  width: 100%;
}

.page-recipe-detail .recipe-related .recipe-card {
  height: 100%;
}

.page-recipe-detail .recipe-related .recipe-card-variants {
  display: none;
}

.page-recipe-detail .recipe-related .recipe-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
}

@media (max-width: 640px) {
  .page-recipe-detail .recipe-related .recipe-magazine-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .page-recipe-detail .recipe-magazine-related {
    padding-inline: 0.85rem;
    border-radius: 16px;
  }

  .page-recipe-detail .recipe-magazine-related .blog-posts-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
    margin-inline: auto;
  }

  .page-recipe-detail .recipe-magazine-related .blog-post-card {
    max-width: none;
  }

  .page-recipe-detail .recipe-related {
    padding-inline: 0.85rem;
    border-radius: 16px;
  }

  .page-recipe-detail .recipe-related .recipe-posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .page-recipe-detail .recipe-detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-recipe-detail .recipe-detail-hero-media {
    order: -1;
  }

  .page-recipe-detail .recipe-detail-grid {
    grid-template-columns: 1fr;
  }

  .page-recipe-detail .recipe-detail-aside {
    position: static;
    order: -1;
  }

  .page-recipe-detail .recipe-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .page-recipe-detail .recipe-detail-jump {
    top: calc(var(--header-h, 76px) + 4px);
    border-radius: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .page-recipe-detail .recipe-detail-jump-link {
    flex-shrink: 0;
  }

  .page-recipe-detail .recipe-detail-card {
    padding: 0.95rem;
  }

  .page-recipe-detail .recipe-ingredients-amount {
    max-width: 42%;
    font-size: 0.76rem;
  }

  .page-recipe-detail .recipe-detail-hero-grid {
    padding-bottom: 1.25rem;
  }
}

/* Legacy detail selectors (hub cards etc.) */
.recipe-detail-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #e8f3e0;
  color: #3d6b2c;
}

.recipe-related h2 {
  margin-bottom: 0;
}

.recipe-related-more {
  text-align: center;
  margin-top: 1rem;
}

/* Hero — hub */
.page-recipes-hub .recipes-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--brand-bright);
}

.page-recipes-hub .recipes-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0, 0, 0, 0.08), transparent 40%);
  pointer-events: none;
}

.page-recipes-hub .recipes-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0 1.75rem;
  color: #fff;
}

.page-recipes-hub .recipes-hero-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-recipes-hub .recipes-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  color: #fff;
  line-height: 1.25;
}

.page-recipes-hub .recipes-hero-lead {
  margin: 0;
  max-width: 42rem;
  line-height: 1.85;
  opacity: 0.95;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
}

.page-recipes-hub .recipes-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.page-recipes-hub .recipes-hero-actions .btn-primary {
  color: var(--brand-deep, #4a7a35);
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-recipes-hub .recipes-hero-actions .btn-primary:hover {
  background: #f4f8f1;
  border-color: #f4f8f1;
  color: var(--brand-deep, #4a7a35);
}

.page-recipes-hub .recipes-hero-actions .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.page-recipes-hub .recipes-hero-actions .btn-outline-light:hover {
  color: var(--brand-deep, #4a7a35);
  background: #fff;
  border-color: #fff;
}

.page-recipes-hub .partner-crosslink,
.page-recipe-detail .partner-crosslink {
  margin: 1.75rem 0 1.5rem;
}

.recipes-magazine-related,
.recipe-magazine-related {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle, #e5ebe0);
}

/* هاب دستور پخت — پنل «در مجله هم بخوانید» */
.page-recipes-hub .recipes-magazine-related {
  max-width: 920px;
  margin: 2.5rem auto 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.5rem);
  border: 1px solid #e3ebe0;
  border-top: 1px solid #e3ebe0;
  border-radius: 20px;
  background: linear-gradient(165deg, #f7faf5 0%, #ffffff 52%, #f4f8f1 100%);
  box-shadow: 0 10px 36px rgba(74, 122, 53, 0.07);
  text-align: center;
}

.page-recipes-hub .recipes-magazine-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.page-recipes-hub .recipes-magazine-head h2 {
  margin: 0;
  font-size: clamp(1.12rem, 3.2vw, 1.38rem);
  letter-spacing: -0.01em;
  color: var(--brand-deep, #4a7a35);
}

.page-recipes-hub .recipes-magazine-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-bright, #81b061) 32%, #dde8d6);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-bright, #81b061);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page-recipes-hub .recipes-magazine-more:hover {
  background: #eef5ea;
  border-color: color-mix(in srgb, var(--brand-bright, #81b061) 45%, #c5dbb8);
  text-decoration: none;
  transform: translateY(-1px);
}

.page-recipes-hub .recipes-magazine-related .blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 300px));
  justify-content: center;
  justify-items: stretch;
  gap: clamp(0.85rem, 2.5vw, 1.2rem);
  width: 100%;
  margin-inline: auto;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  height: 100%;
  text-align: right;
  border-radius: 16px;
  border: 1px solid var(--line, #dfe8e2);
  background: var(--surface-strong, #fff);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(32, 40, 34, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-bright, #81b061) 35%, var(--line, #dfe8e2) 65%);
  box-shadow: 0 14px 32px rgba(32, 40, 34, 0.09);
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eef5ef, #dce9df);
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card:hover .blog-post-card-img {
  transform: scale(1.04);
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1rem;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-cat {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-bright, #81b061);
  background: var(--brand-light, #e8f2ea);
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-date {
  font-size: 0.78rem;
  color: var(--text-muted, #5c6b57);
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-title {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.45;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-title a {
  color: var(--brand-deep, #4a7a35);
  text-decoration: none;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-title a:hover {
  color: var(--brand-bright, #81b061);
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-excerpt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted, #5c6b57);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-bright, #81b061);
  text-decoration: none;
}

.page-recipes-hub .recipes-magazine-related .blog-post-card-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page-recipes-hub .recipes-magazine-related {
    margin-inline: -0.25rem;
    padding-inline: 0.85rem;
    border-radius: 16px;
  }

  .page-recipes-hub .recipes-magazine-related .blog-posts-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
  }

  .page-recipes-hub .recipes-magazine-related .blog-post-card {
    max-width: none;
  }
}

@media (min-width: 900px) {
  .page-recipes-hub .recipes-magazine-related .blog-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 260px));
  }
}

.recipes-magazine-head,
.recipe-magazine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.recipes-magazine-head h2,
.recipe-magazine-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--brand-deep, #4a7a35);
}

.recipes-magazine-more,
.recipe-magazine-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-bright, #81b061);
  text-decoration: none;
}

.recipes-magazine-more:hover,
.recipe-magazine-more:hover {
  text-decoration: underline;
}

.recipe-related-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
}

/* Stats */
.recipes-cuisine-filter {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle, #e5ebe0);
  background: linear-gradient(180deg, #fafcf8 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(74, 122, 53, 0.05);
}

.recipes-cuisine-head {
  margin-bottom: 0.85rem;
}

.recipes-cuisine-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  color: var(--brand-deep, #4a7a35);
}

.recipes-cuisine-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #5c6b57);
  line-height: 1.7;
}

.recipes-cuisine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.recipes-cuisine-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #d5dfd0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-deep, #4a7a35);
  background: #fff;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.recipes-cuisine-tab:hover,
.recipes-cuisine-tab.is-active {
  border-color: var(--brand-bright, #81b061);
  background: #eef5ea;
  color: var(--brand-deep, #4a7a35);
}

.recipes-cuisine-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-bright, #81b061);
}

.recipes-cuisine-active-intro {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #4a5c44;
  background: #f3f8ef;
  border: 1px solid #e0ead8;
}

.recipe-card-tag--region {
  background: #fff8e8;
  color: #8a6d1f;
}

.page-recipe-detail .recipe-detail-tag--region {
  background: rgba(255, 248, 232, 0.95);
  color: #8a6d1f;
}

.recipes-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.recipes-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  background: var(--surface-elevated, #f8faf6);
  border: 1px solid var(--border-subtle, #e8efe3);
}

.recipes-stat strong {
  display: block;
  font-size: 1.45rem;
  color: var(--brand-deep, #4a7a35);
}

.recipes-stat span {
  font-size: 0.82rem;
  color: var(--text-muted, #5c6b57);
}

/* Search panel */
.recipes-search-panel {
  background: #fff;
  border: 1px solid var(--border-subtle, #e5ebe0);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 28px rgba(74, 122, 53, 0.06);
}

.recipes-search-deli {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(129, 176, 97, 0.28);
}

.recipes-search-deli-play {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.22s var(--ease-bounce, ease);
}

.recipes-search-deli-play:hover {
  transform: translateY(-2px) scale(1.03);
}

.recipes-search-deli-play:focus-visible {
  outline: 2px solid var(--brand-bright, #81b061);
  outline-offset: 4px;
}

.recipes-search-deli-play.is-boop .recipes-search-deli-avatar {
  animation: recipes-deli-boop 0.48s var(--ease-bounce, ease);
}

.recipes-search-deli-play.is-welcome .recipes-search-deli-avatar {
  animation: recipes-deli-welcome 1.1s var(--ease-bounce, ease);
}

.recipes-search-deli-avatar {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(74, 122, 53, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, #eef4e8, #f7faf5);
}

.recipes-search-deli-spark {
  position: absolute;
  top: -0.15rem;
  left: -0.1rem;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-bounce, ease);
}

.recipes-search-deli-play:hover .recipes-search-deli-spark,
.recipes-search-deli-play.is-boop .recipes-search-deli-spark {
  opacity: 1;
  transform: scale(1) rotate(-12deg);
}

.recipes-search-deli-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.recipes-search-deli-bubble {
  margin-bottom: 0.55rem;
}

.recipes-search-deli-bubble .deli-message {
  font-size: 0.92rem;
  line-height: 1.65;
}

.recipes-search-deli-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.recipes-pantry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.recipes-pantry-deli {
  flex: 0 1 auto;
}

@keyframes recipes-deli-boop {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.12) rotate(-6deg); }
  70% { transform: scale(0.96) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes recipes-deli-welcome {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.08) rotate(-4deg); }
  45% { transform: scale(1.04) rotate(3deg); }
  65% { transform: scale(1.1) rotate(-2deg); }
}

@media (max-width: 640px) {
  .recipes-search-deli {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .recipes-search-deli-copy,
  .recipes-search-deli-bubble {
    width: 100%;
  }

  .recipes-search-deli-bubble.deli {
    justify-content: center;
  }

  .recipes-search-deli-actions {
    justify-content: center;
  }

  .recipes-pantry-deli {
    width: 100%;
    max-width: none;
  }
}

.recipes-search-main {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recipes-search-main input[type="search"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #d5dfd0;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 1rem;
}

.recipes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.recipes-filters select {
  flex: 1 1 120px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #d5dfd0;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.88rem;
  background: #fff;
  color: var(--text, #1a1a1a);
}

.recipes-ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.recipes-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.82rem;
  background: #f0f5ec;
  color: var(--brand-deep, #4a7a35);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.recipes-chip:hover,
.recipes-chip.is-active {
  background: var(--brand-bright, #81b061);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
}

.recipes-results-count {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #5c6b57);
}

/* پیشنهاد امروز — یک ردیف افقی بالای صفحه */
.recipes-today-strip {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff9ed 0%, #f3fbe8 42%, #e8f5e0 100%);
  border: 1px solid rgba(129, 176, 97, 0.35);
  box-shadow: 0 10px 28px rgba(74, 122, 53, 0.08);
}

.recipes-today-strip-inner {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  min-height: 5.5rem;
}

.recipes-today-label {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 3px solid var(--brand-bright, #81b061);
  min-width: 7.5rem;
  max-width: 9rem;
}

.recipes-today-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a6b12;
}

.recipes-today-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--brand-deep, #3d6b2c);
  white-space: nowrap;
}

.recipes-today-date {
  font-size: 0.78rem;
  color: #6b7a66;
}

.recipes-today-row {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.recipes-today-item {
  flex: 0 0 min(220px, 42vw);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(129, 176, 97, 0.22);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.recipes-today-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-bright, #81b061);
  box-shadow: 0 8px 20px rgba(74, 122, 53, 0.14);
}

.recipes-today-item-media {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef4e8;
}

.recipes-today-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipes-today-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.recipes-today-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2a1c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipes-today-item-meta {
  font-size: 0.72rem;
  color: #6b7a66;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px) {
  .recipes-today-strip-inner {
    flex-wrap: nowrap;
  }

  .recipes-today-row {
    overflow-x: visible;
    justify-content: space-between;
  }

  .recipes-today-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .recipes-today-strip-inner {
    flex-direction: column;
    gap: 0.65rem;
  }

  .recipes-today-label {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    max-width: none;
    border-left: none;
    border-bottom: 2px solid var(--brand-bright, #81b061);
    padding: 0 0 0.5rem;
  }

  .recipes-today-title {
    margin-left: auto;
  }
}

/* Grid cards */
.recipe-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8efe3;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(74, 122, 53, 0.12);
}

.recipe-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef4e8;
}

.recipe-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(129, 176, 97, 0.14), transparent 42%),
    linear-gradient(145deg, #eef4e8 0%, #f8faf6 48%, #e3ebd8 100%);
}

.recipe-card-no-image-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  color: #5f7358;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed #c5d4bc;
  box-shadow: 0 4px 14px rgba(74, 122, 53, 0.06);
}

.recipe-card-no-image--compact {
  min-height: 72px;
}

.recipe-card-no-image--compact .recipe-card-no-image-label {
  font-size: 0.62rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
}

.recipe-card-no-image--pantry {
  min-height: 96px;
}

.recipe-card-no-image--pantry .recipe-card-no-image-label {
  font-size: 0.68rem;
  padding: 0.3rem 0.5rem;
  text-align: center;
  max-width: 5.5rem;
  line-height: 1.45;
}

.page-recipe-detail .recipe-detail-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 22%, rgba(129, 176, 97, 0.16), transparent 45%),
    linear-gradient(155deg, #eef4e8 0%, #f8faf6 50%, #e0ead8 100%);
  border: 1px dashed #c8d6bf;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.page-recipe-detail .recipe-detail-no-image-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5f7358;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed #b8c9ae;
  box-shadow: 0 8px 24px rgba(74, 122, 53, 0.08);
}

.recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8a317;
  color: #fff;
  border-radius: 6px;
}

.recipe-card-variant-count {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep, #4a7a35);
  border-radius: 6px;
  border: 1px solid rgba(74, 122, 53, 0.15);
}

.recipe-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.recipe-card-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #e8f3e0;
  color: #3d6b2c;
}

.recipe-card-tag--muted {
  background: #f3f3f3;
  color: #666;
}

.recipe-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

.recipe-card-title a {
  color: inherit;
  text-decoration: none;
}

.recipe-card-title a:hover {
  color: var(--brand-deep, #4a7a35);
}

.recipe-card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}

.recipe-card-variant {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-deep, #4a7a35);
  background: #f4f8f1;
  border: 1px solid #dde8d6;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.recipe-card-variant:hover {
  background: #e8f3e0;
  border-color: #c5dbb8;
}

.recipe-card-variant.is-active {
  background: var(--brand-deep, #4a7a35);
  border-color: var(--brand-deep, #4a7a35);
  color: #fff;
}

.recipe-card-excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  color: #5c6b57;
  line-height: 1.65;
  flex: 1;
}

.recipe-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: #6b7a66;
  margin-bottom: 0.55rem;
}

.recipe-card-meta-item {
  display: inline-flex;
  align-items: center;
}

.recipe-card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-deep, #4a7a35);
  text-decoration: none;
}

.recipes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #5c6b57;
}

.recipes-faq {
  margin: 2.5rem 0 1.5rem;
}

.recipes-faq h2 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.recipes-faq-item {
  border: 1px solid #e5ebe0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: #fff;
}

.recipes-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.recipes-faq-item p {
  margin: 0.5rem 0 0;
  line-height: 1.75;
  color: #4a5646;
}

/* Pantry suggester */
.recipes-pantry {
  margin: 1.25rem 0 1.5rem;
}

.recipes-pantry-disclosure {
  border-radius: 18px;
  background: linear-gradient(135deg, #f4faf0 0%, #fff 55%, #f8f5ec 100%);
  border: 1px solid #dce8d4;
  box-shadow: 0 10px 32px rgba(74, 122, 53, 0.08);
  overflow: hidden;
}

.recipes-pantry-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.recipes-pantry-toggle::-webkit-details-marker {
  display: none;
}

.recipes-pantry-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.recipes-pantry-toggle-title {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-chevron {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--brand-deep, #4a7a35);
  border-bottom: 2px solid var(--brand-deep, #4a7a35);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}

.recipes-pantry-disclosure[open] .recipes-pantry-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.recipes-pantry-panel {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px dashed #dce8d4;
}

.recipes-pantry-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-bright, #81b061);
}

.recipes-pantry-lead {
  margin: 0;
  max-width: 38rem;
  line-height: 1.55;
  font-size: 0.86rem;
  color: var(--text-muted, #5c6b57);
}

.recipes-pantry-form {
  margin-top: 1rem;
}

.recipes-pantry-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.recipes-pantry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid #c8dbbe;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-tag-remove {
  border: 0;
  background: transparent;
  color: #7a9470;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.recipes-pantry-tag-remove:hover {
  color: #c0392b;
}

.recipes-pantry-input-wrap {
  position: relative;
}

.recipes-pantry-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d5e3cc;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 46, 20, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.recipes-pantry-suggest li button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: right;
  padding: 0.5rem 0.85rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.recipes-pantry-suggest-meta {
  font-size: 0.78rem;
  color: #5a7350;
  font-weight: 500;
}

.recipes-pantry-input-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #5a7350;
}

.recipes-pantry-input-hint.is-error {
  color: #9a4a3a;
}

.recipes-pantry-suggest li button:hover,
.recipes-pantry-suggest li button:focus {
  background: #f0f7eb;
}

.recipes-pantry-products {
  margin-bottom: 1rem;
}

.recipes-pantry-products-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.recipes-pantry-deli {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.recipes-pantry-deli-ask {
  flex-shrink: 0;
}

.recipes-pantry-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid #e2eadc;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.recipes-pantry-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.recipes-pantry-product-card strong {
  font-size: 0.82rem;
  line-height: 1.4;
}

.recipes-pantry-product-meta {
  font-size: 0.75rem;
  color: #5a665f;
}

.recipes-pantry-product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.recipes-pantry-product-add {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
}

.recipes-pantry-suggest-group {
  padding: 0.35rem 0.5rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-match--dish {
  background: #e8f0fc;
  color: #2a5080;
}

.recipes-pantry-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recipes-pantry-input-row input[type="text"] {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #cfdcc6;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 1rem;
  background: #fff;
  color: var(--text, #1a1a1a);
}

.recipes-pantry-input-row input:focus {
  outline: 2px solid rgba(129, 176, 97, 0.45);
  border-color: var(--brand-bright, #81b061);
}

.recipes-pantry-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.recipes-pantry-chip {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.8rem;
  border: 1px solid #d5e3cc;
  background: #fff;
  color: var(--brand-deep, #4a7a35);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.recipes-pantry-chip:hover,
.recipes-pantry-chip.is-active {
  background: var(--brand-bright, #81b061);
  color: #fff;
  border-color: transparent;
}

.recipes-pantry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.recipes-pantry-loading {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-results {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed #d5e3cc;
}

.recipes-pantry-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.recipes-pantry-search-wrap input {
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d5e3cc;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.92rem;
  background: #fff;
  color: var(--text, #1a1a1a);
}

.recipes-pantry-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.recipes-pantry-tier-tab {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #d5e3cc;
  background: #fff;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-muted, #5c6b57);
}

.recipes-pantry-tier-tab.is-active,
.recipes-pantry-tier-tab:hover {
  background: var(--brand-bright, #81b061);
  border-color: transparent;
  color: #fff;
}

.recipes-pantry-summary {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(129, 176, 97, 0.12);
  color: #3d5c2e;
  line-height: 1.7;
  font-size: 0.92rem;
}

.recipes-pantry-tier {
  margin-bottom: 1.25rem;
}

.recipes-pantry-tier h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-tier--ready h3::before { content: '✓ '; }
.recipes-pantry-tier--almost h3::before { content: '◐ '; }
.recipes-pantry-tier--partial h3::before { content: '○ '; }
.recipes-pantry-tier--similar h3::before { content: '≈ '; }

.recipes-pantry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.recipes-pantry-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted, #5c6b57);
  font-size: 0.9rem;
}

.recipes-pantry-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  background: #fff;
  border: 1px solid #e5ebe0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.recipes-pantry-card-media {
  display: block;
  min-height: 96px;
  overflow: hidden;
  background: #eef5ea;
}

.recipes-pantry-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipes-pantry-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 96px;
  background: linear-gradient(135deg, #e8f2dc, #f5f8f2);
}

.recipes-pantry-card-body {
  padding: 0.65rem 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recipes-pantry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.recipes-pantry-card-score {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.35rem 0 0;
}

.recipes-pantry-used-chip {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: #eef5ea;
  color: #4a7a35;
}

.recipes-pantry-match {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eef5ea;
  color: #4a7a35;
}

.recipes-pantry-match--ready { background: #d8edd0; }
.recipes-pantry-match--almost { background: #e8f2dc; }
.recipes-pantry-match--partial { background: #f0f5ec; }
.recipes-pantry-match--similar { background: #f5f0e8; color: #7a6535; }

.recipes-pantry-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.recipes-pantry-card h4 a {
  color: inherit;
  text-decoration: none;
}

.recipes-pantry-card h4 a:hover {
  color: var(--brand-deep, #4a7a35);
}

.recipes-pantry-ing {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted, #5c6b57);
}

.recipes-pantry-ing strong {
  color: #3d5c2e;
  font-weight: 600;
}

.recipes-pantry-ing--miss strong {
  color: #9a6b2e;
}

.recipes-pantry-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.76rem;
  color: var(--text-muted, #5c6b57);
}

.recipes-pantry-tips {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted, #5c6b57);
}

.recipes-pantry-tips li {
  padding: 0.25rem 0;
  padding-right: 1rem;
  position: relative;
}

.recipes-pantry-tips li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: var(--brand-bright, #81b061);
}

@media (max-width: 520px) {
  .recipes-pantry-card {
    grid-template-columns: 1fr;
  }

  .recipes-pantry-card-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .recipes-pantry-grid {
    grid-template-columns: 1fr;
  }
}

.page-recipe-detail .recipe-shop {
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .recipes-stats {
    grid-template-columns: 1fr;
  }
  .recipes-filters select {
    flex: 1 1 100%;
  }
}
