.recipes-page {
  background: var(--cream);
}

.taste-page {
  overflow: clip;
  background:
    radial-gradient(circle at 10% 8%, rgb(104 175 166 / 0.08), transparent 22rem),
    var(--cream);
}

.taste-hero {
  padding: 0 0 clamp(72px, 9vw, 126px);
}

.taste-hero__frame {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: min(780px, calc(100svh - 110px));
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background-color: #14211f;
  background-image:
    linear-gradient(90deg, rgb(8 20 18 / 0.06) 0%, rgb(8 20 18 / 0.28) 42%, rgb(8 20 18 / 0.78) 72%, rgb(8 20 18 / 0.94) 100%),
    url("assets/hoseinian/hero-bg-recipes-v3.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

.taste-hero__frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -140px;
  inset-inline-end: -130px;
  width: 500px;
  aspect-ratio: 1;
  background: var(--brand-pattern);
  -webkit-mask: url("assets/hoseinian/pattern-saffron.svg") center / contain no-repeat;
  mask: url("assets/hoseinian/pattern-saffron.svg") center / contain no-repeat;
  opacity: 0;
  transform: rotate(18deg);
}

.taste-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 710px);
  padding: clamp(42px, 5.5vw, 86px);
}

.taste-hero__copy h1 {
  max-width: 8.7ch;
  margin: 18px 0 0;
  color: var(--white);
  font-size: clamp(3.25rem, 5.2vw, 6.4rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.taste-hero__copy h1 em {
  color: #82c9c0;
  font-style: normal;
}

.taste-hero__copy > p:not(.eyebrow) {
  max-width: 41ch;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 0.78);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 2;
}

.taste-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-block-start: 34px;
}

.taste-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

.taste-text-link span {
  transition: transform 180ms ease;
}

.taste-text-link:hover span {
  transform: translateX(-4px);
}

.taste-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(42px, 6vw, 76px) 0 0;
  padding: 0;
}

.taste-hero__stats div {
  padding-inline: 16px;
  border-inline-start: 1px solid rgb(255 255 255 / 0.2);
}

.taste-hero__stats div:first-child {
  padding-inline-start: 0;
}

.taste-hero__stats div:last-child {
  border-inline-start: 0;
}

.taste-hero__stats dt {
  color: #82c9c0;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 850;
  line-height: 1;
}

.taste-hero__stats dd {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.64rem;
  line-height: 1.5;
}

.taste-hero__visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgb(104 175 166 / 0.14), transparent 48%),
    #e9e5dd;
  border-radius: clamp(22px, 2.4vw, 38px);
  margin: 18px;
}

.taste-hero__main-image {
  position: absolute;
  inset-block: 8% 7%;
  inset-inline-start: 4%;
  width: 72%;
  overflow: hidden;
  margin: 0;
  border-radius: 30px 120px 30px 30px;
  box-shadow: 0 30px 80px rgb(26 53 49 / 0.24);
}

.taste-hero__main-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(21 38 36 / 0.82));
  pointer-events: none;
}

.taste-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.035);
  transition: opacity 700ms ease, transform 1100ms var(--ease);
}

.taste-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.taste-hero__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.taste-hero__main-image figcaption {
  position: absolute;
  z-index: 2;
  inset-inline: 28px;
  inset-block-end: 28px;
  display: grid;
  gap: 4px;
  color: var(--white);
}

.taste-hero__main-image figcaption span,
.taste-hero__main-image figcaption small {
  color: rgb(255 255 255 / 0.68);
  font-size: 0.62rem;
}

.taste-hero__main-image figcaption strong {
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
}

.taste-hero__dots {
  position: absolute;
  z-index: 3;
  inset-inline-end: 28px;
  inset-block-end: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.taste-hero__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgb(255 255 255 / 0.42);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.taste-hero__dots button[aria-current="true"] {
  width: 24px;
  background: var(--brand-green);
}

@media (prefers-reduced-motion: reduce) {
  .taste-hero__slide {
    transform: none;
    transition: opacity 150ms linear;
  }
}

.taste-complete,
.taste-library,
.taste-guides {
  padding-block: clamp(78px, 9vw, 130px);
}

.taste-complete {
  background: var(--white);
}

.taste-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 50px;
  margin-block-end: clamp(34px, 5vw, 62px);
}

.taste-section-heading h2 {
  max-width: 15ch;
  margin: 12px 0 0;
  color: var(--brand-heading);
  font-size: clamp(2rem, 3.5vw, 4.15rem);
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.taste-section-heading > p {
  max-width: 44ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 2;
}

.taste-complete__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.taste-recipe {
  overflow: hidden;
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.taste-recipe[open] {
  border-color: var(--brand-green-35);
  box-shadow: 0 24px 58px rgb(24 57 53 / 0.1);
}

.taste-recipe summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  cursor: pointer;
  list-style: none;
}

.taste-recipe summary::-webkit-details-marker {
  display: none;
}

.taste-recipe summary img {
  width: 86px;
  height: 86px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.taste-recipe summary > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.taste-recipe summary small,
.taste-recipe summary em {
  color: var(--text-muted);
  font-size: 0.61rem;
  font-style: normal;
}

.taste-recipe summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taste-recipe summary i {
  position: relative;
  width: 28px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.taste-recipe summary i::before,
.taste-recipe summary i::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 10px;
  height: 1px;
  background: var(--brand-heading);
  transform: translate(-50%, -50%);
}

.taste-recipe summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.taste-recipe[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.taste-recipe__content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  padding: 24px 28px 30px;
  border-block-start: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.9;
}

.taste-recipe__content h3 {
  margin: 0;
  color: var(--brand-heading);
  font-size: 0.78rem;
}

.taste-recipe__content ul,
.taste-recipe__content ol {
  margin: 10px 0 0;
  padding-inline-start: 19px;
}

.taste-recipe__content li + li {
  margin-block-start: 5px;
}

.taste-recipe__bundle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: var(--brand-green-08);
  border-block-start: 1px solid var(--line);
}

.taste-recipe__bundle > div {
  display: grid;
  gap: 2px;
}

.taste-recipe__bundle span {
  color: var(--text-muted);
  font-size: 0.6rem;
}

.taste-recipe__bundle strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.taste-library {
  background: #f2eee7;
}

.taste-section-heading--library h2 {
  max-width: 17ch;
}

.taste-toolbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 20px;
  margin-block-end: 22px;
  padding: 14px;
  background: rgb(255 255 255 / 0.9);
  border: 1px solid rgb(24 57 53 / 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgb(24 57 53 / 0.09);
  backdrop-filter: blur(18px);
}

.taste-search {
  position: relative;
  display: block;
}

.taste-search b {
  position: absolute;
  z-index: 1;
  inset-inline-start: 18px;
  inset-block-start: 50%;
  color: var(--brand-heading);
  font-size: 1.15rem;
  transform: translateY(-50%);
}

.taste-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 48px 0 18px;
  color: var(--ink);
  background: #f7f4ef;
  border: 1px solid transparent;
  border-radius: 15px;
  font: inherit;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.taste-search input:focus {
  background: var(--white);
  border-color: var(--brand-green-35);
  box-shadow: 0 0 0 4px var(--brand-green-08);
}

.taste-filters {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.taste-filters button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.taste-filters button span {
  min-width: 22px;
  padding: 3px 6px;
  background: rgb(24 57 53 / 0.07);
  border-radius: 999px;
  font-size: 0.55rem;
  text-align: center;
}

.taste-filters button:hover,
.taste-filters button[aria-pressed="true"] {
  color: var(--on-brand);
  background: var(--brand-heading);
}

.taste-filters button[aria-pressed="true"] span {
  background: rgb(255 255 255 / 0.16);
}

.taste-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 18px;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.taste-results-head p {
  margin: 0;
  color: var(--brand-heading);
  font-weight: 800;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.taste-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgb(24 57 53 / 0.08);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgb(24 57 53 / 0.07);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease;
}

.taste-card:hover {
  border-color: var(--brand-green-24);
  box-shadow: 0 26px 62px rgb(24 57 53 / 0.13);
  transform: translateY(-5px);
}

.taste-card__media {
  position: relative;
  aspect-ratio: 1.28;
  overflow: hidden;
  background: var(--surface-mint);
}

.taste-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgb(24 44 41 / 0.26));
  pointer-events: none;
}

.taste-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease);
}

.taste-card:hover .taste-card__media img {
  transform: scale(1.045);
}

.taste-card__index {
  position: absolute;
  z-index: 2;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  min-width: 35px;
  padding: 7px 9px;
  color: var(--white);
  background: rgb(22 39 37 / 0.66);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.58rem;
  text-align: center;
}

.taste-card__body {
  min-height: 182px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.taste-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-heading);
  font-size: 0.62rem;
  font-weight: 800;
}

.taste-card__meta::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  background: var(--brand-green);
  border-radius: 50%;
}

.taste-card h3 {
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}

.taste-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-heading);
  font-size: 0.7rem;
  font-weight: 850;
}

.taste-card__link span {
  transition: transform 180ms ease;
}

.taste-card__link:hover span {
  transform: translateX(-4px);
}

.taste-card__actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-block-start: auto;
}

.taste-bundle-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 17px;
  color: var(--on-brand);
  background: var(--brand-action);
  border: 1px solid var(--brand-action);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.taste-bundle-button:hover {
  color: var(--brand-heading);
  background: var(--white);
  transform: translateY(-1px);
}

.taste-bundle-button--compact {
  min-height: 38px;
  justify-content: space-between;
  padding-inline: 13px;
  color: var(--brand-heading);
  background: var(--brand-green-08);
  border-color: var(--brand-green-18);
  font-size: 0.62rem;
}

.taste-bundle-button--compact:hover {
  background: var(--brand-green-16);
}

.taste-card--local {
  border-color: var(--brand-green-24);
}

.taste-card--local .taste-card__meta::after {
  content: "کامل در همین صفحه";
  margin-inline-start: 3px;
  padding: 3px 8px;
  color: var(--brand-heading);
  background: var(--brand-green-08);
  border-radius: 999px;
  font-size: 0.52rem;
}

.taste-empty {
  padding: 70px 24px;
  color: var(--text-muted);
  background: rgb(255 255 255 / 0.62);
  border: 1px dashed var(--line-strong);
  border-radius: 26px;
  text-align: center;
}

.taste-empty span {
  display: block;
  color: var(--brand-green);
  font-size: 2rem;
}

.taste-empty h3 {
  margin: 12px 0 5px;
  color: var(--brand-heading);
  font-size: 1.25rem;
}

.taste-empty p {
  margin: 0;
  font-size: 0.76rem;
}

.taste-more-wrap {
  display: flex;
  justify-content: center;
  margin-block-start: 38px;
}

.taste-more-wrap .button {
  min-width: 210px;
}

.taste-infinite {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-block-start: 28px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}

.taste-infinite p {
  margin: 0;
}

.taste-infinite__spinner {
  position: relative;
  width: 28px;
  aspect-ratio: 1;
  border: 2px solid var(--brand-green-16);
  border-block-start-color: var(--brand-green);
  border-radius: 50%;
  opacity: 0;
}

.taste-infinite.is-loading .taste-infinite__spinner {
  opacity: 1;
  animation: taste-loader-spin 680ms linear infinite;
}

.taste-infinite.is-complete .taste-infinite__spinner {
  display: grid;
  place-items: center;
  border-color: var(--brand-green-24);
  opacity: 1;
}

.taste-infinite.is-complete .taste-infinite__spinner::after {
  content: "✓";
  color: var(--brand-heading);
  font-size: 0.7rem;
  font-weight: 900;
}

.taste-bundle-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 30px;
  box-shadow: 0 40px 110px rgb(11 30 27 / 0.34);
}

.taste-bundle-dialog::backdrop {
  background: rgb(11 25 23 / 0.58);
  backdrop-filter: blur(7px);
}

.taste-bundle-dialog__shell {
  max-height: min(760px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.taste-bundle-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 20px;
  background: var(--white);
  border-block-end: 1px solid var(--line);
}

.taste-bundle-dialog__header > div {
  min-width: 0;
}

.taste-bundle-dialog__header span {
  color: var(--brand-heading);
  font-size: 0.62rem;
  font-weight: 850;
}

.taste-bundle-dialog__header h2 {
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.5;
}

.taste-bundle-dialog__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.taste-bundle-dialog__header button {
  flex: 0 0 auto;
  width: 40px;
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.taste-bundle-dialog__items {
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  overscroll-behavior: contain;
}

.taste-bundle-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 9px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.taste-bundle-item:hover {
  border-color: var(--brand-green-35);
  box-shadow: 0 10px 30px var(--brand-green-08);
  transform: translateY(-1px);
}

.taste-bundle-item:has(input:focus-visible) {
  outline: 0;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus);
}

.taste-bundle-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.taste-bundle-item__check {
  display: grid;
  place-items: center;
  width: 22px;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.taste-bundle-item input:checked + .taste-bundle-item__check {
  background: var(--brand-action);
  border-color: var(--brand-action);
}

.taste-bundle-item input:checked + .taste-bundle-item__check::after {
  content: "✓";
  font-size: 0.65rem;
  font-weight: 900;
}

.taste-bundle-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
}

.taste-bundle-item__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.taste-bundle-item__copy strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.taste-bundle-item__copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taste-bundle-item > b {
  color: var(--brand-heading);
  font-size: 0.68rem;
  white-space: nowrap;
}

.taste-bundle-dialog__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 28px 22px;
  background: var(--white);
  border-block-start: 1px solid var(--line);
}

.taste-bundle-dialog__footer > div {
  display: grid;
  gap: 2px;
}

.taste-bundle-dialog__footer > div span {
  color: var(--text-muted);
  font-size: 0.58rem;
}

.taste-bundle-dialog__footer > div strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.taste-bundle-dialog__footer .button {
  min-width: 210px;
}

.taste-bundle-dialog__checkout {
  width: fit-content;
  color: var(--brand-heading);
  font-size: 0.68rem;
  font-weight: 850;
}

.taste-bundle-dialog__footer > p {
  margin: 0;
  color: var(--brand-heading);
  font-size: 0.62rem;
  text-align: end;
}

@keyframes taste-loader-spin {
  to {
    transform: rotate(1turn);
  }
}

.taste-guides {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--surface-inverse);
  isolation: isolate;
}

.taste-guides::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -180px;
  inset-inline-start: -120px;
  width: 560px;
  aspect-ratio: 1;
  background: var(--white);
  -webkit-mask: url("assets/hoseinian/pattern-seed.svg") center / contain no-repeat;
  mask: url("assets/hoseinian/pattern-seed.svg") center / contain no-repeat;
  opacity: 0.05;
  transform: rotate(-16deg);
}

.taste-guides .eyebrow,
.taste-guides .taste-section-heading > p {
  color: var(--on-dark-muted);
}

.taste-guides .taste-section-heading h2 {
  color: var(--on-dark);
}

.taste-guides__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.taste-guide {
  min-width: 0;
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 20px;
  transition: background 180ms ease, transform 180ms ease;
}

.taste-guide:hover {
  background: rgb(255 255 255 / 0.1);
  transform: translateY(-3px);
}

.taste-guide img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  opacity: 0.86;
}

.taste-guide__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.taste-guide__body span {
  color: var(--brand-green);
  font-size: 0.58rem;
  font-weight: 800;
}

.taste-guide__body h3 {
  margin: 0;
  color: var(--on-dark);
  font-size: 0.86rem;
  line-height: 1.65;
}

.taste-guide__body a {
  width: fit-content;
  color: var(--on-dark-muted);
  font-size: 0.64rem;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .taste-hero__frame {
    grid-template-columns: 1fr;
  }

  .taste-hero__copy {
    padding: 52px;
  }

  .taste-hero__visual {
    min-height: 600px;
  }

  .taste-toolbar {
    grid-template-columns: 1fr;
  }

  .taste-filters {
    justify-content: flex-start;
  }

  .taste-guides__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .taste-hero__frame {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .taste-hero__copy {
    padding: 56px;
  }

  .taste-hero__visual {
    min-height: 520px;
    margin-block-start: 0;
  }

  .taste-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .taste-complete__list {
    grid-template-columns: 1fr;
  }

  .taste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .taste-hero {
    padding: 0 0 72px;
  }

  .taste-hero__frame {
    width: 100%;
    min-height: 700px;
    background-image:
      linear-gradient(180deg, rgb(8 20 18 / 0.12) 0%, rgb(8 20 18 / 0.48) 42%, rgb(8 20 18 / 0.96) 100%),
      url("assets/hoseinian/hero-bg-recipes-v3.webp");
    background-position: 34% center;
    border-radius: 0;
  }

  .taste-hero__copy {
    padding: 36px 25px 30px;
  }

  .taste-hero__copy h1 {
    max-width: 9ch;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: 1.12;
  }

  .taste-hero__copy > p:not(.eyebrow) {
    margin-block-start: 20px;
    font-size: 0.84rem;
  }

  .taste-hero__actions {
    align-items: stretch;
    flex-direction: column;
    margin-block-start: 26px;
  }

  .taste-hero__actions .button,
  .taste-text-link {
    justify-content: center;
  }

  .taste-hero__stats {
    margin-block-start: 34px;
  }

  .taste-hero__stats div {
    padding-inline: 10px;
  }

  .taste-hero__stats dt {
    font-size: 1.35rem;
  }

  .taste-hero__stats dd {
    font-size: 0.56rem;
  }

  .taste-hero__visual {
    min-height: 370px;
    margin: 8px;
    border-radius: 22px;
  }

  .taste-hero__main-image {
    inset-block: 6%;
    inset-inline-start: 3%;
    width: 77%;
    border-radius: 22px 80px 22px 22px;
  }

  .taste-hero__main-image figcaption {
    inset-inline: 18px;
    inset-block-end: 18px;
  }

  .taste-hero__dots {
    inset-inline-end: 18px;
    inset-block-end: 20px;
  }

  .taste-complete,
  .taste-library,
  .taste-guides {
    padding-block: 72px;
  }

  .taste-section-heading {
    margin-block-end: 30px;
  }

  .taste-section-heading h2 {
    font-size: 2.1rem;
  }

  .taste-section-heading > p {
    font-size: 0.76rem;
  }

  .taste-recipe {
    border-radius: 19px;
  }

  .taste-recipe summary {
    grid-template-columns: 72px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 9px 10px;
  }

  .taste-recipe summary img {
    width: 72px;
    height: 72px;
    border-radius: 13px;
  }

  .taste-recipe summary strong {
    font-size: 0.86rem;
  }

  .taste-recipe__content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .taste-recipe__bundle {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 16px 20px 19px;
  }

  .taste-recipe__bundle .taste-bundle-button {
    width: 100%;
  }

  .taste-toolbar {
    position: relative;
    inset-block-start: auto;
    gap: 12px;
    margin-inline: -4px;
    padding: 10px;
    border-radius: 18px;
  }

  .taste-filters {
    overflow-x: auto;
    padding-block-end: 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .taste-filters::-webkit-scrollbar {
    display: none;
  }

  .taste-filters button {
    flex: 0 0 auto;
    min-height: 42px;
    scroll-snap-align: start;
  }

  .taste-results-head span {
    display: none;
  }

  .taste-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .taste-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    border-radius: 19px;
  }

  .taste-card__media {
    min-height: 176px;
    aspect-ratio: auto;
  }

  .taste-card__body {
    min-height: 205px;
    padding: 16px;
  }

  .taste-card h3 {
    margin-block: 8px 13px;
    font-size: 0.95rem;
  }

  .taste-card--local .taste-card__meta::after {
    display: none;
  }

  .taste-card__actions {
    gap: 8px;
  }

  .taste-card__link {
    font-size: 0.63rem;
  }

  .taste-bundle-dialog {
    width: 100%;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }

  .taste-bundle-dialog__shell {
    max-height: 90dvh;
  }

  .taste-bundle-dialog__header {
    gap: 14px;
    padding: 22px 18px 16px;
  }

  .taste-bundle-dialog__header p {
    max-width: 31ch;
  }

  .taste-bundle-dialog__items {
    padding: 14px;
  }

  .taste-bundle-item {
    grid-template-columns: 22px 58px minmax(0, 1fr);
    gap: 10px;
    min-height: 78px;
    padding: 8px 10px;
    border-radius: 17px;
  }

  .taste-bundle-item img {
    width: 58px;
    height: 58px;
    border-radius: 11px;
  }

  .taste-bundle-item > b {
    grid-column: 3;
    font-size: 0.6rem;
  }

  .taste-bundle-dialog__footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .taste-bundle-dialog__footer .button {
    width: 100%;
    min-width: 0;
  }

  .taste-bundle-dialog__footer > p {
    text-align: start;
  }

  .taste-guides__grid {
    grid-template-columns: 1fr;
  }

  .taste-guide {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .taste-guide img {
    height: 100%;
    min-height: 130px;
    aspect-ratio: auto;
  }
}

@media (max-width: 380px) {
  .taste-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .taste-card__media,
  .taste-card__body {
    min-height: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .taste-card:hover,
  .taste-guide:hover {
    transform: none;
  }
}
