/* باکس خرید مواد دستور پخت — مجله و ابزار */
.recipe-shop {
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--brand, #81B061) 7%, #fff) 0%,
    #fff 48%
  );
  border: 1px solid color-mix(in srgb, var(--brand, #81B061) 22%, var(--line, #e8ece9) 78%);
  box-shadow: 0 10px 32px rgba(129, 176, 97, 0.08);
}

.recipe-shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.recipe-shop-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.recipe-shop-head p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted, #5c6560);
  max-width: 36rem;
}

.recipe-shop-add-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.recipe-shop .btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-body, Vazirmatn, Tahoma, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--brand, #81B061);
  background: var(--brand-light, #e8f2ea);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.recipe-shop .btn-add:hover {
  background: color-mix(in srgb, var(--brand, #81B061) 14%, var(--brand-light, #e8f2ea) 86%);
  color: var(--brand-hover, #719552);
}

.recipe-shop .btn-add:active {
  transform: scale(0.98);
}

.recipe-shop-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.recipe-shop-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line, #e8ece9);
}

.recipe-shop-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f4f6f5;
}

.recipe-shop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-shop-media-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background: linear-gradient(135deg, #eef6f0, #dde8e0);
}

.recipe-shop-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.recipe-shop-body h3 a {
  color: inherit;
  text-decoration: none;
}

.recipe-shop-why {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted, #5c6560);
}

.recipe-shop-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.recipe-shop-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand, #81B061);
}

/* ابزار پیشنهاد روزانه */
.page-tools .tools-meals {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .page-tools .tools-meals {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-tools .tools-meal-card {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line, #e8ece9);
  box-shadow: 0 4px 18px rgba(16, 28, 22, 0.04);
}

.page-tools .tools-meal-card--breakfast {
  border-top: 3px solid #f5b942;
}

.page-tools .tools-meal-card--lunch {
  border-top: 3px solid var(--brand, #81B061);
}

.page-tools .tools-meal-card--dinner {
  border-top: 3px solid #5b6eae;
}

.page-tools .tools-meal-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(129, 176, 97, 0.1);
  color: var(--brand, #81B061);
}

.page-tools .tools-meal-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
}

.page-tools .tools-meal-card h3 a {
  color: inherit;
  text-decoration: none;
}

.page-tools .tools-meal-card h3 a:hover {
  color: var(--brand, #81B061);
}

.page-tools .tools-meal-excerpt {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted, #5c6560);
}

.page-tools .tools-meal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-tools .tools-meal-mini-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.page-tools .tools-meal-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px dashed var(--line, #e8ece9);
}

.page-tools .tools-meal-mini-list li:last-child {
  border-bottom: none;
}

.page-tools .tools-form-hint--lead {
  margin-bottom: 0.75rem;
}

.page-tools .tools-checkbox-solo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.recipe-shop-add-all.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 640px) {
  .recipe-shop-head {
    flex-direction: column;
  }

  .recipe-shop-add-all {
    width: 100%;
    justify-content: center;
  }
}

/* جزئیات بلاگ — نوار خرید بین پایان مقاله و مطالب مرتبط (متن تمام‌عرض) */
.page-blog-detail .blog-detail-shop-band {
  margin: 2rem auto 2.25rem;
  padding: 0;
}

.page-blog-detail .recipe-shop--band {
  margin-top: 0;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(129, 176, 97, 0.07);
}

.page-blog-detail .recipe-shop--band .recipe-shop-head {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-bottom: 0.95rem;
}

.page-blog-detail .recipe-shop--band .recipe-shop-head h2 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.page-blog-detail .recipe-shop--band .recipe-shop-head p {
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 42rem;
}

.page-blog-detail .recipe-shop--band .recipe-shop-add-all {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}

.page-blog-detail .recipe-shop--band .recipe-shop-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.7rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.page-blog-detail .recipe-shop--band .recipe-shop-item {
  flex: 0 0 min(220px, 78vw);
  scroll-snap-align: start;
  grid-template-columns: 56px 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
}

.page-blog-detail .recipe-shop--band .recipe-shop-media,
.page-blog-detail .recipe-shop--band .recipe-shop-media img {
  width: 56px;
  height: 56px;
}

.page-blog-detail .recipe-shop--band .recipe-shop-media-ph {
  min-height: 56px;
}

.page-blog-detail .recipe-shop--band .recipe-shop-body h3 {
  font-size: 0.86rem;
}

.page-blog-detail .recipe-shop--band .recipe-shop-why {
  font-size: 0.72rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 720px) {
  .page-blog-detail .recipe-shop--band .recipe-shop-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-blog-detail .recipe-shop--band .recipe-shop-add-all {
    width: 100%;
    justify-content: center;
  }
}
