:root {
  --recipes-ink: #201d19;
  --recipes-muted: #756b5f;
  --recipes-accent: #aa4e2d;
  --recipes-accent-dark: #8f3f24;
  --recipes-paper: #fffdf8;
  --recipes-cream: #f5eee2;
  --recipes-line: #e2d4c1;
  --recipes-shell: 1560px;
}

body.mastereat-recipes-page {
  background: #f8f3e9;
  color: var(--recipes-ink);
}

.mastereat-recipes-shell {
  width: min(calc(100% - 48px), var(--recipes-shell));
  margin-right: auto;
  margin-left: auto;
}

.mastereat-recipes-hero {
  padding: 34px 0 0;
}

.mastereat-recipes-hero__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 6vw, 86px);
  border: 1px solid rgba(170, 78, 45, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 20%, rgba(196, 111, 75, 0.2), transparent 31%),
    linear-gradient(135deg, #f1e4d1, #fbf7ef 62%);
}

.mastereat-recipes-breadcrumbs {
  display: flex;
  margin-bottom: 32px;
  gap: 10px;
  color: var(--recipes-muted);
  font-size: 14px;
}

.mastereat-recipes-breadcrumbs a {
  color: var(--recipes-accent-dark) !important;
  font-weight: 700;
}

.mastereat-recipes-eyebrow {
  margin: 0 0 10px;
  color: var(--recipes-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mastereat-recipes-hero h1,
.mastereat-recipes-directions h2,
.mastereat-recipes-catalog h2,
.mastereat-recipes-about h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.mastereat-recipes-hero h1 {
  max-width: 900px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.02;
}

.mastereat-recipes-hero > .mastereat-recipes-shell > p:not(.mastereat-recipes-eyebrow) {
  max-width: 850px;
  margin: 24px 0 0;
  color: var(--recipes-muted);
  font-size: clamp(18px, 2vw, 23px);
}

.mastereat-recipes-hero__stats {
  display: inline-flex;
  margin-top: 34px;
  padding: 16px 20px;
  gap: 10px;
  align-items: baseline;
  border-radius: 14px;
  color: #fff;
  background: var(--recipes-accent);
}

.mastereat-recipes-hero__stats strong {
  font: 700 28px/1 Georgia, "Times New Roman", serif;
}

.mastereat-recipes-directions {
  display: grid;
  margin-top: 28px;
  padding: 32px 36px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
  border: 1px solid var(--recipes-line);
  border-radius: 22px;
  background: var(--recipes-paper);
}

.mastereat-recipes-directions h2,
.mastereat-recipes-catalog h2,
.mastereat-recipes-about h2 {
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.08;
}

.mastereat-recipes-directions nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mastereat-recipes-directions nav a {
  padding: 11px 15px;
  border: 1px solid var(--recipes-line);
  border-radius: 999px;
  color: var(--recipes-accent-dark) !important;
  background: #fbf7ef;
  font-size: 14px;
  font-weight: 700;
}

.mastereat-recipes-catalog {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(129, 106, 79, 0.16);
  border-radius: 28px;
  background: #eae0d1;
}

.mastereat-recipes-catalog__heading {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: end;
}

#recipesCatalogSummary {
  margin: 12px 0 0;
  color: var(--recipes-muted);
}

.mastereat-recipes-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) minmax(170px, 0.75fr);
  gap: 12px;
}

.mastereat-recipes-controls label {
  display: grid;
  gap: 7px;
  color: #655c51;
  font-size: 12px;
  font-weight: 700;
}

.mastereat-recipes-controls input,
.mastereat-recipes-controls select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #d8cbb9;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--recipes-ink);
}

.mastereat-recipes-controls input:focus,
.mastereat-recipes-controls select:focus {
  border-color: var(--recipes-accent);
  box-shadow: 0 0 0 3px rgba(170, 78, 45, 0.12);
}

.mastereat-recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.mastereat-recipes-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(129, 106, 79, 0.15);
  border-radius: 18px;
  background: var(--recipes-paper);
  box-shadow: 0 13px 32px rgba(91, 72, 49, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mastereat-recipes-card:hover {
  box-shadow: 0 18px 38px rgba(91, 72, 49, 0.14);
  transform: translateY(-3px);
}

.mastereat-recipes-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e7ddcf;
}

.mastereat-recipes-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.mastereat-recipes-card:hover .mastereat-recipes-card__image img {
  transform: scale(1.025);
}

.mastereat-recipes-card__body {
  display: flex;
  padding: 18px 18px 20px;
  flex: 1;
  flex-direction: column;
}

.mastereat-recipes-card__category {
  margin: 0 0 9px;
  color: var(--recipes-accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.mastereat-recipes-card h3 {
  margin: 0;
  font: 700 21px/1.25 Georgia, "Times New Roman", serif;
}

.mastereat-recipes-card h3 a:hover {
  color: var(--recipes-accent-dark);
}

.mastereat-recipes-card__description {
  display: -webkit-box;
  margin: 13px 0 0;
  overflow: hidden;
  color: var(--recipes-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mastereat-recipes-card__date {
  margin: auto 0 0;
  padding-top: 18px;
  color: #8a7d6d;
  font-size: 12px;
}

.mastereat-recipes-card.is-without-image .mastereat-recipes-card__body {
  min-height: 260px;
  padding-top: 28px;
  background: linear-gradient(145deg, #fffdf8, #f5eadb);
}

.mastereat-recipes-more {
  display: block;
  min-width: 220px;
  margin: 34px auto 0;
  padding: 15px 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--recipes-accent);
  font-weight: 800;
  cursor: pointer;
}

.mastereat-recipes-more:hover {
  background: var(--recipes-accent-dark);
}

.mastereat-recipes-message {
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  background: var(--recipes-paper);
  color: var(--recipes-muted);
}

.mastereat-recipes-about {
  display: grid;
  margin-top: 28px;
  margin-bottom: 54px;
  padding: clamp(34px, 5vw, 64px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  border-radius: 26px;
  color: #fff;
  background: #76583f;
}

.mastereat-recipes-about .mastereat-recipes-eyebrow {
  color: #f0b08d;
}

.mastereat-recipes-about p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.mastereat-recipes-about a {
  color: #fff !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@media (max-width: 1120px) {
  .mastereat-recipes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mastereat-recipes-catalog__heading { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .mastereat-recipes-shell { width: min(calc(100% - 28px), var(--recipes-shell)); }
  .mastereat-recipes-directions,
  .mastereat-recipes-about { grid-template-columns: 1fr; }
  .mastereat-recipes-controls { grid-template-columns: 1fr 1fr; }
  .mastereat-recipes-controls label:first-child { grid-column: 1 / -1; }
  .mastereat-recipes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 560px) {
  .mastereat-recipes-page .mastereat-primary-nav {
    scrollbar-width: none;
  }

  .mastereat-recipes-page .mastereat-primary-nav::-webkit-scrollbar {
    display: none;
  }

  .mastereat-recipes-hero { padding-top: 16px; }
  .mastereat-recipes-hero__inner { padding: 30px 22px 36px; border-radius: 20px; }
  .mastereat-recipes-hero h1 { font-size: 42px; }
  .mastereat-recipes-breadcrumbs { margin-bottom: 22px; }
  .mastereat-recipes-directions,
  .mastereat-recipes-catalog { padding: 24px 18px; border-radius: 20px; }
  .mastereat-recipes-controls { grid-template-columns: 1fr; }
  .mastereat-recipes-controls label:first-child { grid-column: auto; }
  .mastereat-recipes-grid { grid-template-columns: 1fr; }
  .mastereat-recipes-card h3 { font-size: 22px; }
  .mastereat-recipes-about { gap: 24px; }
}
