/* Single recipe page */

/* Solid header from load (no hero image behind the fixed header) */
#single-recipe-page #main-header {
  background-color: color-mix(in srgb, var(--color-green-800) 94%, transparent);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  box-shadow: var(--shadow-header);
}

/* Same horizontal rhythm as the header/footer so edges line up at every size */
#single-recipe-page .sr-shell {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline:
    var(--shell-pad-start, clamp(1rem, 3vw, 2.5rem))
    var(--shell-pad-end, clamp(1rem, 3vw, 2.5rem));
}

/* --- Breadcrumb (clears the fixed header, equal top/bottom breathing room) --- */
#single-recipe-page .sr-breadcrumb {
  --sr-crumb-space: clamp(1.1rem, 2.4vw, 1.85rem);
  position: relative;
  z-index: 1;
  padding-top: calc(var(--pom-header-h, var(--header-block-size, 5rem)) + var(--sr-crumb-space));
  padding-bottom: var(--sr-crumb-space);
  background:
    radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--color-gold) 16%, transparent) 0%, transparent 45%),
    linear-gradient(180deg, var(--color-mint) 0%, var(--color-cream) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--color-green-800) 8%, transparent);
}

/* --- Decorative food elements scattered across the whole recipe body --- */
#single-recipe-page .sr-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#single-recipe-page .sr-deco__item {
  position: absolute;
  width: clamp(1.9rem, 3vw, 2.9rem);
  height: auto;
  opacity: 0.12;
  color: var(--color-green-800);
}

#single-recipe-page .sr-deco__item--pos1 {
  top: 3%;
  left: 2.5%;
  color: var(--color-green-700);
  transform: rotate(-14deg);
}

#single-recipe-page .sr-deco__item--pos2 {
  top: 10%;
  right: 3%;
  color: var(--color-red);
  opacity: 0.1;
  transform: rotate(12deg);
}

#single-recipe-page .sr-deco__item--pos3 {
  top: 23%;
  right: 6.5%;
  color: var(--color-gold-dark);
  opacity: 0.14;
  transform: rotate(-8deg);
}

#single-recipe-page .sr-deco__item--pos4 {
  top: 35%;
  left: 3.5%;
  color: var(--color-gold-dark);
  opacity: 0.13;
  transform: rotate(10deg);
}

#single-recipe-page .sr-deco__item--pos5 {
  top: 48%;
  right: 4%;
  color: var(--color-green-800);
  transform: rotate(-6deg);
}

#single-recipe-page .sr-deco__item--pos6 {
  top: 61%;
  left: 4.5%;
  color: var(--color-green-700);
  transform: rotate(16deg);
}

#single-recipe-page .sr-deco__item--pos7 {
  top: 73%;
  right: 5.5%;
  color: var(--color-gold-dark);
  opacity: 0.13;
  transform: rotate(6deg);
}

#single-recipe-page .sr-deco__item--pos8 {
  top: 85%;
  left: 3%;
  color: var(--color-red);
  opacity: 0.1;
  transform: rotate(-12deg);
}

#single-recipe-page .sr-deco__item--pos9 {
  top: 93%;
  right: 6%;
  color: var(--color-gold-dark);
  opacity: 0.12;
  transform: rotate(8deg);
}

@media (max-width: 767.98px) {
  #single-recipe-page .sr-deco__item {
    width: clamp(1.6rem, 6vw, 2.1rem);
    opacity: 0.09;
  }

  #single-recipe-page .sr-deco__item--pos3,
  #single-recipe-page .sr-deco__item--pos5,
  #single-recipe-page .sr-deco__item--pos7 {
    display: none;
  }
}

#single-recipe-page .sr-breadcrumb__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.5vw + 0.6rem, 0.875rem);
  color: var(--color-text-muted);
}

#single-recipe-page .sr-breadcrumb__nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

#single-recipe-page .sr-breadcrumb__nav a:hover {
  color: var(--color-red);
}

#single-recipe-page .sr-breadcrumb__sep {
  opacity: 0.5;
}

#single-recipe-page .sr-breadcrumb__current {
  color: var(--color-green-800);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* --- Recipe body --- */
#single-recipe-page .sr-recipe {
  position: relative;
  background: var(--color-cream);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Keep all content above the scattered food decorations */
#single-recipe-page .sr-recipe > .sr-shell {
  position: relative;
  z-index: 1;
}

/* --- Hero --- */
#single-recipe-page .sr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}

#single-recipe-page .sr-hero--with-product {
  align-items: stretch;
}

#single-recipe-page .sr-hero--with-product .sr-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

#single-recipe-page .sr-hero__media {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

/*
 * Keep the photo at a fixed 4:3 ratio on desktop instead of stretching it
 * to the full height of the text column, and cap how tall it can get so it
 * stays balanced against the hero copy.
 */
@media (min-width: 1280px) {
  #single-recipe-page .sr-hero--with-product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }

  #single-recipe-page .sr-hero--with-product .sr-hero__media {
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 30rem;
    align-self: start;
  }

  #single-recipe-page .sr-hero--with-product .sr-hero__body {
    min-height: 0;
  }
}

#single-recipe-page .sr-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#single-recipe-page .sr-hero__badge {
  position: absolute;
  top: clamp(0.85rem, 1.5vw, 1.15rem);
  left: clamp(0.85rem, 1.5vw, 1.15rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-green-800);
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 0.4vw + 0.6rem, 0.8125rem);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-ui);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, color 0.2s ease;
}

#single-recipe-page .sr-hero__badge:hover {
  transform: translateY(-1px);
  color: var(--color-red);
}

#single-recipe-page .sr-hero__eyebrow {
  margin-bottom: 0.6rem;
}

#single-recipe-page .sr-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-green-900);
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem);
  margin: 0 0 0.85rem;
}

#single-recipe-page .sr-hero__summary {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

/* Stat chips (prep / cook / serves / difficulty) */
#single-recipe-page .sr-stats {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

#single-recipe-page .sr-stats--with-product {
  margin-bottom: 0;
}

#single-recipe-page .sr-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
}

#single-recipe-page .sr-stat__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-text-soft);
}

#single-recipe-page .sr-stat__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.15rem);
  color: var(--color-green-800);
}

#single-recipe-page .sr-hero__oil {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--color-green-100);
}

#single-recipe-page .sr-hero__oil-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-green-700);
}

#single-recipe-page .sr-hero__oil-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-900);
}

/* --- Best cooked with — sits in hero column under stats --- */
#single-recipe-page .sr-product {
  margin: 0;
  margin-top: auto;
  padding: 0;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 0;
  align-self: stretch;
  width: 100%;
}

#single-recipe-page .sr-product__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  animation: srProductIn 0.7s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

/* Product sits in front — no mint box; flush to content left edge */
#single-recipe-page .sr-product__media {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  margin-inline-start: -0.65rem; /* cancel transparent padding in packshot */
  width: clamp(6.75rem, 11vw, 8.5rem);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  transition: transform 0.55s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

#single-recipe-page .sr-product__media img {
  width: 100%;
  height: auto;
  max-height: clamp(8rem, 13vw, 10rem);
  object-fit: contain;
  object-position: left center;
  display: block;
  padding: 0;
  margin: 0;
  filter: drop-shadow(0 0.45rem 1rem rgba(0, 77, 42, 0.14));
  transition: transform 0.7s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

#single-recipe-page .sr-product__stage:hover .sr-product__media {
  transform: translateY(-0.2rem);
  box-shadow: none;
}

#single-recipe-page .sr-product__stage:hover .sr-product__media img {
  transform: scale(1.04);
  transform-origin: left center;
}

/* Heading bar sits behind the bottle — width follows text, not full row */
#single-recipe-page .sr-product__banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  flex: 0 0 auto;
  width: max-content;
  max-width: min(18rem, calc(100% - 3rem));
  margin-inline-start: calc(clamp(6.75rem, 11vw, 9.5rem) * -0.48);
  padding: 0.6rem clamp(1.1rem, 2vw, 1.45rem) 0.6rem clamp(1.45rem, 2.6vw, 1.9rem);
  min-width: 0;
  color: #fff;
  background: linear-gradient(
    105deg,
    var(--color-green-900) 0%,
    var(--color-green-800) 100%
  );
  border-radius: 0 999px 999px 0;
  box-shadow:
    0 0.3rem 0.85rem rgba(0, 77, 42, 0.16),
    0 0.55rem 1.35rem rgba(0, 77, 42, 0.1);
}

#single-recipe-page .sr-product__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: color-mix(in srgb, #fff 78%, var(--color-mint));
  line-height: 1.2;
}

#single-recipe-page .sr-product__name {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 0.7vw + 0.75rem, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

@keyframes srProductIn {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #single-recipe-page .sr-product__stage {
    animation: none;
  }

  #single-recipe-page .sr-product__stage:hover .sr-product__media,
  #single-recipe-page .sr-product__stage:hover .sr-product__media img {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  #single-recipe-page .sr-product__stage {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  #single-recipe-page .sr-product__media {
    width: 7rem;
    margin-inline-start: -0.35rem;
    flex-shrink: 0;
  }

  #single-recipe-page .sr-product__media img {
    max-height: 9rem;
    object-position: left center;
  }

  #single-recipe-page .sr-product__banner {
    margin-inline-start: -2.8rem;
    margin-top: 0;
    flex: 0 0 auto;
    width: max-content;
    max-width: min(16rem, calc(100% - 2.5rem));
    padding: 0.65rem 1.15rem 0.65rem 1.75rem;
    border-radius: 0 999px 999px 0;
  }
}

/* --- Recipe video --- */
#single-recipe-page .sr-video {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0;
  padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid color-mix(in srgb, var(--color-green-800) 8%, transparent);
}

#single-recipe-page .sr-video__head {
  text-align: center;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

#single-recipe-page .sr-video__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-900);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  line-height: 1.15;
  margin: 0.35rem 0 0;
}

#single-recipe-page .sr-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow: hidden;
  background: var(--color-green-900);
  box-shadow: var(--shadow-card);
}

#single-recipe-page .sr-video__frame iframe,
#single-recipe-page .sr-video__frame video,
#single-recipe-page .sr-video__frame embed,
#single-recipe-page .sr-video__frame object {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* --- Content: ingredients + method --- */
#single-recipe-page .sr-content {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

#single-recipe-page .sr-block__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-900);
  font-size: clamp(1.35rem, 0.9rem + 1.4vw, 1.9rem);
  margin: 0 0 1.1rem;
}

/* Ingredients card (sticky on desktop) */
#single-recipe-page .sr-ingredients {
  position: sticky;
  top: clamp(5rem, 8vw, 7rem);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-card);
}

#single-recipe-page .sr-ingredients__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Editable heading for each ingredient group. */
#single-recipe-page .sr-ingredients__group-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-900);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.2rem);
  margin: 1.4rem 0 0.85rem;
}

/* Tighten the first group heading against the section title. */
#single-recipe-page .sr-ingredients__group-title:first-of-type {
  margin-top: 0.25rem;
}

/* Space consecutive groups (list followed by the next group heading). */
#single-recipe-page .sr-ingredients__list + .sr-ingredients__group-title {
  margin-top: 1.6rem;
}

#single-recipe-page .sr-ingredient {
  position: relative;
  padding-left: 1.75rem;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
}

#single-recipe-page .sr-ingredient::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-gold) 25%, transparent);
}

/* Method steps */
#single-recipe-page .sr-steps {
  list-style: none;
  counter-reset: sr-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.85rem);
}

#single-recipe-page .sr-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

#single-recipe-page .sr-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.1rem, 2.5vw, 2.5rem);
  height: clamp(2.1rem, 2.5vw, 2.5rem);
  border-radius: 50%;
  background: var(--color-green-800);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

#single-recipe-page .sr-step__text {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0.35rem 0 0;
}

#single-recipe-page .sr-step__media {
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

#single-recipe-page .sr-step__media img {
  width: 100%;
  height: auto;
  display: block;
}

#single-recipe-page .sr-method__content {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: 1.8;
  color: var(--color-text);
}

/* Tips */
#single-recipe-page .sr-tips {
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  border-radius: var(--radius-lg);
  background: var(--color-green-100);
  border-left: 4px solid var(--color-green-700);
}

#single-recipe-page .sr-tips__title {
  margin-bottom: 0.85rem;
}

#single-recipe-page .sr-tips__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

#single-recipe-page .sr-tip {
  position: relative;
  padding-left: 1.75rem;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
}

#single-recipe-page .sr-tip::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-green-700);
  font-weight: 700;
}

/* --- Related recipes --- */
#single-recipe-page .sr-related {
  background: var(--color-white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

#single-recipe-page .sr-related__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-900);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  text-align: center;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

#single-recipe-page .sr-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

#single-recipe-page .sr-related-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#single-recipe-page .sr-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

#single-recipe-page .sr-related-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#single-recipe-page .sr-related-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

#single-recipe-page .sr-related-card:hover .sr-related-card__visual img {
  transform: scale(1.05);
}

#single-recipe-page .sr-related-card__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-green-900) 78%, transparent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
}

#single-recipe-page .sr-related-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-800);
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.1rem);
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Prevent grid/flex children from forcing horizontal overflow */
#single-recipe-page .sr-hero > *,
#single-recipe-page .sr-content > *,
#single-recipe-page .sr-step__body,
#single-recipe-page .sr-related-card {
  min-width: 0;
}

/* --- Responsive --- */
@media (max-width: 1279.98px) {
  #single-recipe-page .sr-hero {
    grid-template-columns: 1fr;
  }

  #single-recipe-page .sr-hero--with-product .sr-hero__body {
    justify-content: flex-start;
    min-height: 0;
  }

  #single-recipe-page .sr-product {
    margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
    padding-top: 0;
  }

  #single-recipe-page .sr-content {
    grid-template-columns: 1fr;
  }

  #single-recipe-page .sr-ingredients {
    position: static;
  }

  /* Breathing room above Method when it stacks under the ingredients card */
  #single-recipe-page .sr-method {
    margin-top: clamp(1.25rem, 3vw, 2rem);
  }

  /* Keep the bottle off the shell edge in the stacked layout (tablet) */
  #single-recipe-page .sr-product {
    padding-left: 15px;
  }

  #single-recipe-page .sr-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  #single-recipe-page .sr-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #single-recipe-page .sr-hero__title {
    font-size: clamp(1.65rem, 1rem + 3.2vw, 2.25rem);
  }

  #single-recipe-page .sr-product__banner {
    max-width: min(17rem, calc(100% - 2.75rem));
  }

  #single-recipe-page .sr-product__name {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  #single-recipe-page .sr-related__grid {
    grid-template-columns: 1fr;
  }

  #single-recipe-page .sr-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #single-recipe-page .sr-step {
    gap: 0.75rem;
  }

  #single-recipe-page .sr-tips {
    padding: 1.1rem 1rem;
  }
}

@media (max-width: 374.98px) {
  #single-recipe-page .sr-shell {
    padding-inline: 0.85rem;
  }

  #single-recipe-page .sr-product__media {
    width: 6.25rem;
  }

  #single-recipe-page .sr-product__media img {
    max-height: 8rem;
  }

  #single-recipe-page .sr-product__banner {
    margin-inline-start: -2.4rem;
    max-width: min(14.5rem, calc(100% - 2rem));
    padding: 0.55rem 1rem 0.55rem 1.5rem;
  }

  #single-recipe-page .sr-product__label {
    font-size: 0.62rem;
  }

  #single-recipe-page .sr-product__name {
    font-size: 0.9rem;
  }
}
