/* =========================================================
   Mastumate — Layout convencional de site de receitas
   Inspirado em Nefis Yemek Tarifleri. Paleta tomate.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --tomate: #D7392C;
  --tomate-escuro: #A4231A;
  --tomate-claro: #ED5B43;
  --acafrao: #E89B2A;
  --azeitona: #6B7C4E;
  --creme: #FFFBF5;
  --papel: #FFFFFF;
  --linha: #ECE6DC;
  --linha-forte: #D9D2C5;
  --tinta: #2B2520;
  --tinta-suave: #5C5247;
  --tinta-cinza: #8B8276;
  --bg: #FBF8F3;

  --display: 'Fraunces', 'Georgia', serif;
  --texto: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(31,27,22,.04);
  --shadow-sm: 0 2px 8px rgba(31,27,22,.06);
  --shadow-md: 0 8px 24px rgba(31,27,22,.08);
  --shadow-lg: 0 20px 50px rgba(31,27,22,.18);

  --header-h: 76px;
  --utility-h: 36px;
}

/* Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--texto);
  font-size: 15px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; color: var(--tinta); letter-spacing: -.01em; }

::selection { background: var(--tomate); color: #fff; }

/* Utilitários ------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--tomate);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--tomate); color: #fff; }
.btn-primary:hover { background: var(--tomate-escuro); }
.btn-ghost { border-color: var(--linha-forte); color: var(--tinta); background: var(--papel); }
.btn-ghost:hover { border-color: var(--tomate); color: var(--tomate); }
.btn-light { background: #fff; color: var(--tinta); }
.btn-light:hover { background: var(--tomate); color: #fff; }
.btn-arrow::after { content: "→"; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===================================================
   HEADER — barra de utilidades + nav com dropdowns
   =================================================== */
.utility-bar {
  background: var(--tinta);
  color: #fff;
  font-size: 12px;
  height: var(--utility-h);
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.utility-bar .left { display: flex; gap: 18px; color: rgba(255,255,255,.7); }
.utility-bar .left a:hover { color: #fff; }
.utility-bar .right { display: flex; gap: 14px; align-items: center; }
.utility-bar .right a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.utility-bar .right a:hover { color: var(--tomate-claro); }
.utility-bar svg { width: 12px; height: 12px; }

.site-header {
  background: var(--papel);
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 60;
  box-shadow: var(--shadow-xs);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 65px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .brand-logo { height: 48px; }
}

/* Nav principal com dropdowns */
nav.primary {
  display: flex; gap: 2px; align-items: center;
}
nav.primary > .item {
  position: relative;
}
nav.primary > .item > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--tinta-suave);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav.primary > .item:hover > a,
nav.primary > .item > a.active {
  color: var(--tomate);
}
nav.primary > .item.has-children > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
}

/* Dropdown panel */
nav.primary .dropdown {
  position: absolute;
  top: 100%; left: -10px;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}
nav.primary > .item:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
nav.primary .dropdown.wide {
  min-width: 520px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
}
nav.primary .dropdown.mega {
  width: 920px;
  left: 50%;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px 28px;
  padding: 22px 26px 18px;
}
nav.primary > .item:hover .dropdown.mega {
  transform: translate(-50%, 0);
}
nav.primary .dropdown.mega .group { display: flex; flex-direction: column; gap: 8px; }
nav.primary .dropdown.mega .group .group-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tinta);
  padding: 0 0 6px;
  border-bottom: 2px solid var(--tomate);
  display: flex; align-items: center; gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}
nav.primary .dropdown.mega .group .group-title:hover { background: none; color: var(--tomate); }
nav.primary .dropdown.mega .group .group-title .ic { font-size: 15px; width: 20px; display: inline-grid; place-items: center; color: var(--tomate); }

nav.primary .dropdown.mega .sub-list {
  display: flex; flex-wrap: wrap; gap: 4px;
}
nav.primary .dropdown.mega .sub-list a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--tinta-suave);
  font-size: 12px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
nav.primary .dropdown.mega .sub-list a:hover {
  background: var(--tomate);
  color: #fff;
}

nav.primary .dropdown.mega .footer {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--linha);
  display: flex; justify-content: space-between; align-items: center;
}
nav.primary .dropdown.mega .footer .info {
  font-size: 12px;
  color: var(--tinta-cinza);
}
nav.primary .dropdown.mega .footer a.all {
  font-size: 12.5px;
  color: var(--tomate);
  font-weight: 600;
  padding: 0;
}
nav.primary .dropdown.mega .footer a.all::after {
  content: " →";
  transition: transform .2s;
  display: inline-block;
}
nav.primary .dropdown.mega .footer a.all:hover { background: none; }
nav.primary .dropdown.mega .footer a.all:hover::after { transform: translateX(3px); }

@media (max-width: 1100px) {
  nav.primary .dropdown.mega { width: 760px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  nav.primary .dropdown.mega {
    grid-template-columns: 1fr;
    transform: none !important;
    left: 0; width: 100%;
    padding: 12px 4px 12px 16px;
    gap: 10px;
    display: none;
  }
  nav.primary > .item.open .dropdown.mega { display: grid; }
  nav.primary .dropdown.mega .footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}
nav.primary .dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--tinta-suave);
  transition: background .15s, color .15s;
}
nav.primary .dropdown a:hover { background: var(--bg); color: var(--tomate); }
nav.primary .dropdown a .ic { font-size: 14px; width: 20px; text-align: center; }
nav.primary .dropdown .head {
  grid-column: 1/-1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tinta-cinza);
  font-weight: 700;
  padding: 4px 10px 2px;
  border-bottom: 1px solid var(--linha);
  margin-bottom: 4px;
}

/* Search & actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-mini {
  display: flex; align-items: center; gap: 6px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  min-width: 380px;
  border: 1.5px solid rgba(215, 57, 44, .18);
  box-shadow: 0 6px 18px rgba(31, 27, 22, .10), 0 1px 3px rgba(31, 27, 22, .05);
  transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease;
}
.search-mini:hover {
  border-color: rgba(215, 57, 44, .55);
  box-shadow: 0 10px 26px rgba(31, 27, 22, .14), 0 2px 6px rgba(215, 57, 44, .12);
  transform: translateY(-1px);
}
.search-mini:focus-within {
  border-color: var(--tomate);
  box-shadow: 0 0 0 5px rgba(215, 57, 44, .18), 0 10px 26px rgba(31, 27, 22, .14);
  transform: translateY(-1px);
}
.search-mini-icon {
  font-size: 15px;
  color: rgba(31, 27, 22, .42);
  transition: color .2s ease;
  flex-shrink: 0;
}
.search-mini:focus-within .search-mini-icon { color: var(--tomate); }
.search-mini input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 4px;
  font-size: 15px;
  color: var(--tinta);
  font-family: inherit;
}
.search-mini input::placeholder { color: rgba(31, 27, 22, .42); }
.search-mini button {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--tomate), #b82a1f);
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 6px 14px rgba(215, 57, 44, .38), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.search-mini button i { font-size: 11px; transition: transform .25s ease; }
.search-mini button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(215, 57, 44, .48), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.search-mini button:hover i { transform: translateX(3px); }
.search-mini button:active { transform: translateY(0); }

/* Lupa mobile (toggle do popup) — escondida no desktop, aparece ≤1100px */
.icon-btn.search-toggle { display: none; color: var(--tomate); border: 1.5px solid rgba(215, 57, 44, .25); }
.icon-btn.search-toggle:hover { background: var(--tomate); color: #fff; border-color: var(--tomate); }
.icon-btn.search-toggle i { font-size: 15px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  transition: background .15s;
}
.icon-btn:hover { background: var(--tomate); color: #fff; }
.icon-btn svg { width: 16px; height: 16px; }

.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .search-mini { display: none; }
  .icon-btn.search-toggle { display: grid; }
}
@media (max-width: 940px) {
  .utility-bar { display: none; }

  nav.primary {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--papel);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 8px 0 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -12px 0 32px rgba(0,0,0,.06);
  }
  nav.primary.open { transform: translateX(0); }

  nav.primary > .item {
    margin: 0 var(--gutter);
    border-bottom: 1px solid var(--linha);
  }
  nav.primary > .item:last-child { border-bottom: none; }

  nav.primary > .item > a {
    padding: 16px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tinta);
    border-radius: 0;
    justify-content: space-between;
    width: 100%;
    background: transparent;
  }
  nav.primary > .item > a:hover { color: var(--tomate); background: transparent; }
  nav.primary > .item > a.active { color: var(--tomate); }

  /* Seta no item com children: rotação animada ao abrir */
  nav.primary > .item.has-children > a::after {
    width: 8px; height: 8px;
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin-left: 8px;
    flex-shrink: 0;
  }
  nav.primary > .item.has-children.open > a::after {
    transform: rotate(225deg);
  }

  /* Dropdowns no mobile: lista vertical, sem caixa */
  nav.primary .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    padding: 0 0 12px;
    display: none;
    background: transparent;
  }
  nav.primary > .item.open > .dropdown { display: block; }

  /* Mega-menu no mobile: vira lista única */
  nav.primary .dropdown.mega {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 4px 0 16px;
    width: 100%;
  }
  nav.primary > .item.open > .dropdown.mega { display: grid; }

  nav.primary .dropdown.mega .group { gap: 6px; }
  nav.primary .dropdown.mega .group .group-title {
    font-size: 12.5px;
    padding: 4px 0 6px;
    color: var(--tomate);
    border-bottom: 1px solid var(--linha);
    background: transparent;
  }
  nav.primary .dropdown.mega .sub-list { gap: 6px; }
  nav.primary .dropdown.mega .sub-list a {
    font-size: 12.5px;
    padding: 5px 10px;
  }
  nav.primary .dropdown.mega .footer {
    border-top: 1px solid var(--linha);
    padding-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .menu-toggle { display: grid; }
  .menu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
    transition: transform .2s;
  }
}

/* ===================================================
   HERO — banner 100vh com carrossel
   =================================================== */
.hero-carousel {
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  position: relative;
  overflow: hidden;
  background: var(--tinta);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.slide .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.5) 40%,
    rgba(0,0,0,.2) 80%,
    rgba(0,0,0,0) 100%);
}
.slide .scrim-mobile {
  position: absolute; inset: 0;
  display: none;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.1) 100%);
}
.slide .content {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}
.slide .badge-cat {
  display: inline-block;
  background: var(--tomate);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.slide h2 {
  font-size: clamp(28px, 4vw, 48px);
  color: #fff;
  line-height: 1.1;
  max-width: 620px;
  margin-bottom: 12px;
  font-weight: 700;
}
.slide p {
  font-size: 15px;
  max-width: 500px;
  margin-bottom: 20px;
  opacity: .92;
  line-height: 1.55;
}
.slide .stats-row {
  display: flex; gap: 20px;
  margin-bottom: 22px;
  font-size: 12.5px;
}
.slide .stats-row .stat {
  display: inline-flex; align-items: center; gap: 6px;
  opacity: .95;
}
.slide .stats-row .stat svg { width: 14px; height: 14px; opacity: .9; }
.slide .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Carousel controls */
.carousel-nav {
  position: absolute; bottom: 32px; right: var(--gutter);
  z-index: 10;
  display: flex; gap: 8px;
}
.carousel-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s;
}
.carousel-nav button:hover { background: var(--tomate); border-color: var(--tomate); }
.carousel-nav svg { width: 14px; height: 14px; }

.carousel-dots {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.carousel-dots .dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.carousel-dots .dot.active { background: var(--tomate); width: 44px; }

@media (max-width: 720px) {
  .slide .scrim { display: none; }
  .slide .scrim-mobile { display: block; }
  .slide h2 { font-size: 24px; }
  .slide p { font-size: 13.5px; }
  .carousel-dots { bottom: 16px; }
  .carousel-nav { display: none; }
}

/* ===================================================
   Seções e títulos
   =================================================== */
section { padding: 48px 0; }
section.tight { padding: 28px 0; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--linha);
  flex-wrap: wrap;
}
.section-header .title {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.section-header .lead {
  color: var(--tinta-cinza);
  font-size: 13px;
}
.section-header a.more {
  font-size: 13px; font-weight: 600;
  color: var(--tomate);
  display: inline-flex; align-items: center; gap: 4px;
}
.section-header a.more:hover { color: var(--tomate-escuro); }
.section-header a.more::after {
  content: "→";
  transition: transform .2s;
}
.section-header a.more:hover::after { transform: translateX(2px); }

.section-accent {
  width: 4px; height: 20px;
  background: var(--tomate);
  border-radius: 2px;
}

/* ===================================================
   Categorias circulares (strip horizontal)
   =================================================== */
.category-strip {
  background: var(--papel);
  padding: 24px 0;
  border-bottom: 1px solid var(--linha);
}
.cat-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  justify-content: safe center;
}
.cat-list::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  min-width: 86px;
  transition: transform .2s;
}
.cat-item:hover { transform: translateY(-2px); }
.cat-item .circle {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  border: 2px solid transparent;
  transition: border-color .2s, background .2s, color .2s;
  color: var(--tomate);
}
.cat-item .circle i {
  font-size: 26px;
  line-height: 1;
  transition: transform .2s;
}
.cat-item:hover .circle {
  border-color: var(--tomate);
  background: #FFF1EE;
}
.cat-item:hover .circle i { transform: scale(1.08); }

/* Ícone FA inline em títulos de seção da home (h2 com categoria) */
h2 .cat-h2-icon {
  display: inline-block;
  font-size: .85em;
  color: var(--tomate);
  margin-right: 4px;
  vertical-align: -2px;
}
.cat-item .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tinta);
  text-align: center;
  white-space: nowrap;
}

/* ===================================================
   Recipe card padrão
   =================================================== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.recipe-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.recipe-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .recipe-grid, .recipe-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .recipe-grid, .recipe-grid.cols-3 { grid-template-columns: 1fr; }
}

.recipe-card {
  background: var(--papel);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--linha);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.recipe-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  display: block;
}
.recipe-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.recipe-card:hover .thumb img { transform: scale(1.05); }
.recipe-card .tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--tomate);
}
.recipe-card .heart {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  color: var(--tinta-cinza);
  transition: all .15s;
}
.recipe-card .heart:hover, .recipe-card .heart.liked {
  background: var(--tomate);
  color: #fff;
}
.recipe-card .heart svg { width: 14px; height: 14px; }
.recipe-card .body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  flex: 1;
}
.recipe-card h3 {
  font-family: var(--texto);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--tinta);
  letter-spacing: 0;
}
.recipe-card h3 a:hover { color: var(--tomate); }
.recipe-card .desc {
  color: var(--tinta-cinza);
  font-size: 12.5px;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card .meta {
  display: flex; gap: 12px;
  font-size: 11.5px;
  color: var(--tinta-suave);
  padding-top: 10px;
  border-top: 1px solid var(--linha);
  align-items: center;
}
.recipe-card .meta .item { display: inline-flex; align-items: center; gap: 4px; }
.recipe-card .meta .item svg { width: 12px; height: 12px; color: var(--tomate); }
.recipe-card .meta .rating {
  margin-left: auto;
  font-weight: 700;
  color: var(--tinta);
  display: inline-flex; align-items: center; gap: 3px;
}
.recipe-card .meta .rating .star { color: var(--acafrao); }

/* ===================================================
   Owl Carousel — vitrines da home
   =================================================== */
.owl-receitas { padding: 4px 2px 8px; }
.owl-receitas .recipe-card { height: 100%; }
/* Estilos da nav (.owl-prev/.owl-next) vivem em css/owl-overrides.css */

/* ===================================================
   Carrossel horizontal de receitas (CSS-only — fallback legado)
   =================================================== */
.recipe-carousel-wrap {
  position: relative;
  margin: 0 -4px;
}
.recipe-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 8px;
}
.recipe-carousel::-webkit-scrollbar { display: none; }
.recipe-carousel > .recipe-card {
  flex: 0 0 calc((100% - 18px * 3) / 4);
  min-width: 220px;
  scroll-snap-align: start;
  transform: none;
}
@media (max-width: 960px) {
  .recipe-carousel > .recipe-card { flex-basis: calc((100% - 18px * 2) / 3); }
}
@media (max-width: 720px) {
  .recipe-carousel > .recipe-card { flex-basis: calc((100% - 18px) / 2); min-width: 200px; }
}
@media (max-width: 520px) {
  .recipe-carousel > .recipe-card { flex-basis: 78%; min-width: 0; }
}

.rc-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--papel);
  border: 1px solid var(--linha-forte);
  color: var(--tinta);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .2s, color .2s, opacity .2s, transform .2s;
  z-index: 5;
}
.rc-nav:hover { background: var(--tomate); color: #fff; border-color: var(--tomate); }
.rc-nav svg { width: 16px; height: 16px; }
.rc-nav[disabled] { opacity: .35; cursor: default; }
.rc-prev { left: -10px; }
.rc-next { right: -10px; }

@media (max-width: 720px) {
  .rc-nav { display: none; }
}

/* ===================================================
   Layout com sidebar
   =================================================== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 940px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
}

/* Trigger button (mobile only) */
.sidebar-trigger {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--tinta);
  text-align: left;
  margin-bottom: 4px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, background .15s;
}
.sidebar-trigger:hover { border-color: var(--tomate); }
.sidebar-trigger svg { width: 18px; height: 18px; color: var(--tomate); flex-shrink: 0; }
.sidebar-trigger span { flex: 1; }
.sidebar-trigger .arrow {
  font-size: 18px; line-height: 1;
  color: var(--tinta-cinza);
  flex: 0 0 auto;
}

/* Backdrop e botão de fechar (mobile only) */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sidebar-close {
  display: none;
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  align-items: center; justify-content: center;
}
.sidebar-close svg { width: 18px; height: 18px; }
.sidebar-close:hover { background: var(--tomate); color: #fff; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Mobile drawer */
@media (max-width: 940px) {
  .sidebar-trigger { display: inline-flex; }

  .sidebar-backdrop { display: block; }
  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close { display: inline-flex; }

  .sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 86vw);
    background: var(--bg);
    z-index: 100;
    padding: 70px 16px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
    gap: 14px;
    margin: 0;
  }
  .sidebar.open { transform: translateX(0); }
  body.sidebar-locked { overflow: hidden; }
}
.sidebar-block {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  padding: 18px;
}
.sidebar-block h3 {
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tinta);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tomate);
  display: flex; align-items: center; gap: 6px;
}
.sidebar-block h3::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--tomate);
  border-radius: 2px;
  display: inline-block;
}

.popular-list { display: flex; flex-direction: column; gap: 12px; }
.popular-item {
  display: flex; gap: 10px;
  align-items: flex-start;
}
.popular-item .thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}
.popular-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-item .info { flex: 1; min-width: 0; }
.popular-item h4 {
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.popular-item h4 a:hover { color: var(--tomate); }
.popular-item .meta {
  font-size: 11px;
  color: var(--tinta-cinza);
}
.popular-item .meta .star { color: var(--acafrao); }

.cat-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-cloud a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--tinta-suave);
  transition: background .15s, color .15s;
}
.cat-cloud a:hover { background: var(--tomate); color: #fff; }

/* Cat tree (sidebar hierárquica) */
.cat-tree { display: flex; flex-direction: column; gap: 2px; }
.cat-tree li.root > a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tinta);
  transition: background .15s, color .15s;
}
.cat-tree li.root > a .ic { font-size: 15px; width: 20px; display: inline-grid; place-items: center; color: var(--tomate); }
.cat-tree li.root > a .name { flex: 1; }
.cat-tree li.root > a .count {
  font-size: 11px;
  background: var(--bg);
  color: var(--tinta-cinza);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  transition: background .15s, color .15s;
}
.cat-tree li.root > a:hover { background: var(--bg); color: var(--tomate); }
.cat-tree li.root.active > a {
  background: var(--tomate);
  color: #fff;
}
.cat-tree li.root.active > a .count {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.cat-tree li.root.in-path > a {
  background: #FFF1EE;
  color: var(--tomate);
}
.cat-tree li.root.in-path > a .count {
  background: rgba(215,57,44,.15);
  color: var(--tomate);
}

.cat-tree .subs {
  padding: 2px 0 6px 12px;
  margin-left: 12px;
  border-left: 1px solid var(--linha);
  display: flex; flex-direction: column; gap: 1px;
}
.cat-tree .subs li a {
  display: block;
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--tinta-suave);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.cat-tree .subs li a:hover { background: var(--bg); color: var(--tomate); }
.cat-tree .subs li.active a {
  color: var(--tomate);
  font-weight: 700;
  background: #FFF1EE;
}
.cat-tree .subs li.active a::before {
  content: "▸ ";
  color: var(--tomate);
  margin-right: 2px;
}

.newsletter-block {
  background: linear-gradient(135deg, var(--tomate), var(--tomate-escuro));
  color: #fff;
  border: none;
  text-align: center;
  padding: 22px 18px;
}
.newsletter-block h3 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.3);
}
.newsletter-block h3::before { background: #fff; }
.newsletter-block p { font-size: 12.5px; opacity: .9; margin-bottom: 12px; }
.newsletter-block input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.18);
  color: #fff;
  outline: none;
  font-size: 13px;
  margin-bottom: 8px;
}
.newsletter-block input::placeholder { color: rgba(255,255,255,.7); }
.newsletter-block button {
  width: 100%; padding: 10px;
  background: var(--tinta); color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13px;
}
.newsletter-block button:hover { background: #fff; color: var(--tomate); }

/* ===================================================
   Featured category grid (destaque na home)
   =================================================== */
.feat-cat-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 440px;
}
.feat-cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  transition: transform .25s;
}
.feat-cat-card:hover { transform: translateY(-3px); }
.feat-cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.feat-cat-card:hover img { transform: scale(1.06); }
.feat-cat-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.15) 60%, transparent);
}
.feat-cat-card .info {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  color: #fff;
}
.feat-cat-card h3 {
  font-family: var(--texto);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}
.feat-cat-card .count {
  font-size: 11px;
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.feat-cat-grid .feat-cat-card:first-child {
  grid-row: 1 / 3;
}
.feat-cat-grid .feat-cat-card:first-child h3 { font-size: 22px; }
.feat-cat-grid .feat-cat-card:first-child .count { font-size: 12px; }

@media (max-width: 820px) {
  .feat-cat-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .feat-cat-grid .feat-cat-card:first-child {
    grid-column: 1/-1; grid-row: auto;
    aspect-ratio: 16/8;
  }
  .feat-cat-grid .feat-cat-card { aspect-ratio: 4/3; }
}

/* ===================================================
   Page header top — banner curto com imagem de fundo
   =================================================== */
.page-header-top {
  position: relative;
  min-height: 220px;
  background-color: var(--tinta);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; align-items: center;
  padding: 36px 0 32px;
  color: #fff;
  overflow: hidden;
}
.page-header-top::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.65) 100%
  );
  z-index: 1;
}
.page-header-top .container { position: relative; z-index: 2; }
.page-header-top .crumbs {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  margin-bottom: 10px;
}
.page-header-top .crumbs a { color: rgba(255,255,255,.85); }
.page-header-top .crumbs a:hover { color: #fff; text-decoration: underline; }
.page-header-top .crumbs .sep { margin: 0 6px; color: rgba(255,255,255,.45); }
.page-header-top h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.page-header-top p {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  max-width: 680px;
  line-height: 1.55;
}
.page-header-top.compact { min-height: 180px; padding: 28px 0 24px; }

/* Variante alta para receita detalhe: foto do prato em destaque */
.page-header-top.recipe-detail-hero {
  min-height: 460px;
  padding: 28px 0 36px;
  margin: 0;
  align-items: stretch;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header-top.recipe-detail-hero::after {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.15) 30%,
    rgba(0,0,0,.15) 55%,
    rgba(0,0,0,.78) 100%
  );
}
.page-header-top.recipe-detail-hero .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.page-header-top.recipe-detail-hero .title-block {
  display: flex; flex-direction: column;
  gap: 8px;
}
.page-header-top.recipe-detail-hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  max-width: 820px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  line-height: 1.1;
  margin: 0;
}
.page-header-top.recipe-detail-hero p {
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  max-width: 720px;
  font-size: 15px;
  margin: 0;
}

@media (max-width: 720px) {
  .page-header-top.recipe-detail-hero {
    min-height: 0;
    height: 0;
    padding: 0;
    background-image: none !important;
    border-radius: 0;
  }
  .page-header-top.recipe-detail-hero::after,
  .page-header-top.recipe-detail-hero .title-block { display: none; }
  .page-header-top.recipe-detail-hero .container { min-height: 0; }
  .page-header-top.recipe-detail-hero .crumbs {
    position: absolute;
    left: -9999px;
  }
}

.recipe-mobile-head { display: none; }

@media (max-width: 720px) {
  .recipe-mobile-head {
    display: block;
    margin: -4px 0 22px;
  }
  .recipe-mobile-head h1 {
    font-size: 24px;
    line-height: 1.14;
    margin: 0 0 8px;
  }
  .recipe-mobile-head p {
    color: var(--tinta-cinza);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 14px;
  }
  .recipe-mobile-head img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 720px) {
  .page-header-top { min-height: 180px; padding: 28px 0 22px; }
  .page-header-top h1 { font-size: 22px; }
  .page-header-top p { font-size: 13px; }
}

/* ===================================================
   Page banner (legado — sem imagem de fundo)
   =================================================== */
.page-banner {
  background: var(--papel);
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--linha);
}
.crumbs {
  font-size: 12px;
  color: var(--tinta-cinza);
  margin-bottom: 8px;
}
.crumbs a:hover { color: var(--tomate); }
.crumbs .sep { margin: 0 6px; color: var(--linha-forte); }
.page-banner h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 6px;
}
.page-banner p {
  color: var(--tinta-cinza);
  font-size: 13.5px;
  max-width: 680px;
}

/* ===================================================
   Filtros (chips)
   =================================================== */
.chips {
  display: flex;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.chip {
  display: inline-block;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--papel);
  border: 1px solid var(--linha-forte);
  border-radius: var(--radius-pill);
  color: var(--tinta-suave);
  transition: all .15s;
}
.chip:hover { border-color: var(--tomate); color: var(--tomate); }
.chip.active { background: var(--tomate); border-color: var(--tomate); color: #fff; }

/* ===================================================
   Pagination
   =================================================== */
.pager {
  display: flex; justify-content: center;
  gap: 4px;
  margin-top: 40px;
}
.pager a {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--papel);
  border: 1px solid var(--linha);
  font-size: 13px; font-weight: 600; color: var(--tinta-suave);
  transition: all .15s;
}
.pager a:hover { border-color: var(--tomate); color: var(--tomate); }
.pager a.current { background: var(--tomate); border-color: var(--tomate); color: #fff; }

/* ===================================================
   Receita interna (detalhe)
   =================================================== */
.recipe-detail-header {
  background: var(--papel);
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--linha);
}
.recipe-detail-header h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  margin-bottom: 10px;
  max-width: 800px;
}
.recipe-detail-header .lead {
  color: var(--tinta-suave);
  font-size: 14.5px;
  max-width: 720px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.recipe-detail-header .meta-bar {
  display: flex; gap: 18px; flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--tinta-cinza);
}
.recipe-detail-header .meta-bar .author {
  display: inline-flex; align-items: center; gap: 8px;
}
.recipe-detail-header .meta-bar .author .avatar {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: var(--bg);
}
.recipe-detail-header .meta-bar .author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.recipe-detail-header .meta-bar .author strong { color: var(--tinta); font-weight: 600; }
.recipe-detail-header .meta-bar .sep { color: var(--linha-forte); }
.recipe-detail-header .meta-bar .star { color: var(--acafrao); }

.recipe-detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.recipe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  margin-top: 24px;
  overflow: hidden;
}
.recipe-stats .stat {
  padding: 14px;
  text-align: center;
  border-right: 1px solid var(--linha);
}
.recipe-stats .stat:last-child { border-right: none; }
.recipe-stats .stat svg { width: 18px; height: 18px; color: var(--tomate); margin-bottom: 6px; }
.recipe-stats .stat .label {
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--tinta-cinza);
  font-weight: 700; margin-bottom: 2px;
}
.recipe-stats .stat .value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tinta);
}
@media (max-width: 720px) {
  .recipe-stats { grid-template-columns: repeat(2, 1fr); }
  .recipe-stats .stat:nth-child(2) { border-right: none; }
  .recipe-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--linha); }
}

.recipe-body-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  margin-top: 28px;
}
/* Evita que conteúdo largo (carrossel) estoure a coluna e a página inteira. */
.recipe-body-grid > * { min-width: 0; }
@media (max-width: 940px) {
  .recipe-body-grid { grid-template-columns: 1fr; }
}

.ingredientes-box {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  padding: 20px;
}
.ingredientes-box h3 {
  font-family: var(--texto);
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--tomate);
}

/* Header do checklist com contador + botão limpar */
.ingredientes-box .ing-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--tomate);
}
.ingredientes-box .ing-progress {
  display: flex; align-items: baseline; gap: 8px;
}
.ingredientes-box .ing-count {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tomate);
  line-height: 1;
}
.ingredientes-box .ing-count [data-ing-checked] { transition: color .2s; }
.ingredientes-box .ing-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tinta-cinza);
  font-weight: 700;
}
.ingredientes-box .ing-clear {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tinta-cinza);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  transition: background .15s, color .15s;
}
.ingredientes-box .ing-clear svg { width: 12px; height: 12px; }
.ingredientes-box .ing-clear:hover { background: var(--tomate); color: #fff; }
.ingredientes-box .ing-clear[hidden] { display: none; }

.ingredientes-box .ing-hint {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #FFF7E8;
  border-left: 3px solid var(--acafrao);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 11.5px;
  color: var(--tinta-suave);
  line-height: 1.4;
}
.ingredientes-box .ing-hint svg { width: 14px; height: 14px; color: var(--acafrao); flex-shrink: 0; }
.ingredientes-box .ing-hint[hidden] { display: none; }

.ingredientes-box .yield-info {
  font-size: 12px;
  color: var(--tinta-cinza);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.ingredientes-box .ing-group-title {
  margin: 18px 0 8px;
  font-family: var(--texto);
  font-size: 14px;
  font-weight: 800;
  color: var(--tinta);
}
.ingredientes-box .yield-info + .ing-group-title { margin-top: 0; }
.ingredientes-box ul { display: flex; flex-direction: column; gap: 4px; }
.ingredientes-box li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--linha);
  font-size: 13.5px;
  cursor: pointer;
}
.ingredientes-box li:last-child { border-bottom: none; }
.ingredientes-box .check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--linha-forte);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: all .15s;
}
.ingredientes-box li.done .check {
  background: var(--tomate); border-color: var(--tomate);
}
.ingredientes-box li.done .check::after {
  content: "✓";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 11px;
  font-weight: 700;
}
.ingredientes-box li.done .text { text-decoration: line-through; opacity: .55; }
.ingredientes-box .amt {
  color: var(--tomate);
  font-weight: 700;
  margin-right: 4px;
}

.passos h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tomate);
  display: inline-block;
}
.passo-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
}
.passo-item:last-child { border-bottom: none; }
.passo-item .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tomate);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--texto);
}
.passo-item h4 {
  font-family: var(--texto);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.passo-item p {
  color: var(--tinta-suave);
  font-size: 13.5px;
  line-height: 1.6;
}
.passo-item .passo-image {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 12px 0 0;
  border-radius: var(--radius-sm);
}
.passo-item .tip {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FFF7E8;
  border-left: 3px solid var(--acafrao);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--tinta-suave);
}
.passo-item .tip strong {
  color: #a06a14;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .12em;
  display: block;
  margin-bottom: 4px;
}

/* ===================================================
   Blog
   =================================================== */
.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linha);
}
.blog-item:last-child { border-bottom: none; padding-bottom: 0; }
.blog-item .thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}
.blog-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-item:hover .thumb img { transform: scale(1.04); }
.blog-item .topic {
  display: inline-block;
  color: var(--tomate);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.blog-item h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.blog-item h2 a:hover { color: var(--tomate); }
.blog-item p {
  color: var(--tinta-suave);
  font-size: 13.5px;
  margin-bottom: 10px;
}
.blog-item .info {
  font-size: 12px;
  color: var(--tinta-cinza);
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap;
}
.blog-item .info .sep { color: var(--linha-forte); }

@media (max-width: 640px) {
  .blog-item { grid-template-columns: 1fr; }
}

/* Blog detail */
.blog-detail h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}
.blog-detail .lead {
  font-size: 16px;
  color: var(--tinta-suave);
  margin-bottom: 20px;
  line-height: 1.65;
}
.blog-detail .hero-img {
  aspect-ratio: 16/8;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 24px;
}
.blog-detail .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-detail .content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tinta-suave);
}
.blog-detail .content p { margin-bottom: 16px; }

/* ===================================================
   Vídeos
   =================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--tinta);
  cursor: pointer;
}
.video-card img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .88; transition: opacity .3s, transform .5s;
}
.video-card:hover img { opacity: 1; transform: scale(1.04); }
.video-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent 55%);
}
.video-card .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  color: var(--tomate);
  transition: background .2s, transform .2s;
}
.video-card:hover .play { background: var(--tomate); color: #fff; transform: translate(-50%,-50%) scale(1.08); }
.video-card .play svg { width: 18px; height: 18px; margin-left: 3px; }
.video-card .info {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  color: #fff;
}
.video-card .duration {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(0,0,0,.6);
  border-radius: var(--radius-sm);
  font-size: 10.5px; font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.video-card h3 {
  font-family: var(--texto);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-video-feature {
  width: 100%;
}
.recipe-video-feature .video-card-feature {
  aspect-ratio: 16/9;
  min-height: 280px;
}
.recipe-video-feature .video-card-feature .overlay {
  inset: -1px;
  transition: transform .5s;
  transform-origin: center;
}
.recipe-video-feature .video-card-feature:hover .overlay {
  transform: scale(1.04);
}
.recipe-video-feature .video-card-feature .play {
  width: 62px;
  height: 62px;
}
.recipe-video-feature .video-card-feature .play svg {
  width: 24px;
  height: 24px;
}
.recipe-video-feature .video-card-feature .info {
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.recipe-video-feature .video-card-feature h3 {
  font-size: 20px;
}

@media (max-width: 640px) {
  .recipe-video-feature .video-card-feature {
    min-height: 210px;
  }
  .recipe-video-feature .video-card-feature h3 {
    font-size: 16px;
  }
}

/* ===================================================
   About + Contact
   =================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 820px) { .about-intro { grid-template-columns: 1fr; } }
.about-intro .img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/4.4;
  background: var(--bg);
}
.about-intro .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-intro h2 { font-size: 26px; margin-bottom: 14px; }
.about-intro p { color: var(--tinta-suave); font-size: 14px; margin-bottom: 10px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value-card {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.value-card:hover { transform: translateY(-3px); border-color: var(--tomate); }
.value-card .num {
  display: inline-block;
  padding: 3px 10px;
  background: var(--tomate); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { color: var(--tinta-suave); font-size: 13.5px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.channel {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linha);
}
.channel:last-child { border-bottom: none; }
.channel .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tomate); color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.channel .ic svg { width: 16px; height: 16px; }
.channel .label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--tinta-cinza); }
.channel .value { font-weight: 600; font-size: 14px; }

.contact-form {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  padding: 28px;
}
.captcha-field {
  align-items: flex-start;
  gap: 6px;
}
.captcha-field .g-recaptcha,
.captcha-field > div:not(.form-error) { transform-origin: 0 0; }
@media (max-width: 360px) {
  .captcha-field .g-recaptcha,
  .captcha-field > div:not(.form-error) { transform: scale(.86); }
}
.form-error {
  font-size: 12.5px;
  color: var(--tomate);
  margin-top: 4px;
  font-weight: 600;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--tinta-suave);
}
.field input, .field textarea, .field select {
  padding: 11px 14px;
  border: 1px solid var(--linha-forte);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--tomate);
  box-shadow: 0 0 0 3px rgba(215,57,44,.12);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--texto); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ===================================================
   Footer
   =================================================== */
.site-footer {
  background: var(--tinta);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid .col-brand .footer-logo {
  display: block;
  height: 120px;
  width: auto;
  margin-bottom: 16px;
  /* Inverte para o branco total mantendo silhueta do logo */
  filter: brightness(0) invert(1);
}
.footer-grid .col-brand p {
  font-size: 13px;
  opacity: .75;
  max-width: 320px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.footer-grid .social { display: flex; gap: 8px; }
.footer-grid .social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .2s;
}
.footer-grid .social a:hover { background: var(--tomate); }
.footer-grid .social svg { width: 13px; height: 13px; color: #fff; }
.footer-grid .social a i { color: #fff; font-size: 13px; }

.footer-grid h4 {
  font-family: var(--texto);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tomate-claro);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a {
  font-size: 13px;
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.footer-grid ul a:hover { opacity: 1; color: var(--tomate-claro); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  opacity: .6;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Newsletter do rodapé ---------- */
.footer-newsletter-col {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(215, 57, 44, .18), transparent 55%),
    rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.footer-newsletter-col h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-newsletter-col h4 i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(215, 57, 44, .18);
  color: var(--tomate-claro);
  font-size: 11px;
}
.footer-newsletter-lead {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: .8;
  margin-bottom: 14px;
}
.footer-newsletter-lead strong { color: #fff; opacity: 1; font-weight: 600; }

.footer-newsletter-field {
  position: relative;
  margin-bottom: 10px;
}
.footer-newsletter-field i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  pointer-events: none;
  transition: color .2s ease;
}
.footer-newsletter-field input[type="email"] {
  width: 100%;
  padding: 11px 12px 11px 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.footer-newsletter-field input[type="email"]::placeholder {
  color: rgba(255, 255, 255, .4);
}
.footer-newsletter-field input[type="email"]:focus {
  border-color: var(--tomate-claro, #ff7a6c);
  background: rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 3px rgba(215, 57, 44, .18);
}
.footer-newsletter-field input[type="email"]:focus + i,
.footer-newsletter-field:focus-within i {
  color: var(--tomate-claro, #ff7a6c);
}

.footer-newsletter-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tomate, #d7392c), #b82a1f);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 57, 44, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.footer-newsletter-btn svg {
  width: 14px;
  height: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.footer-newsletter-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 22px rgba(215, 57, 44, .45), inset 0 1px 0 rgba(255, 255, 255, .15);
  transform: translateY(-1px);
}
.footer-newsletter-btn:hover svg { transform: translateX(3px); }
.footer-newsletter-btn:active { transform: translateY(0); }
.footer-newsletter-btn:focus-visible { outline: 2px solid var(--tomate-claro, #ff7a6c); outline-offset: 2px; }

.footer-newsletter-hint {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  opacity: .55;
  text-align: center;
  letter-spacing: .02em;
}

/* ===================================================
   Página de agradecimento (contato/obrigado)
   =================================================== */
.contato-obrigado-card {
  max-width: 560px;
  margin: 40px auto 20px;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contato-obrigado-card .ic-circle {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tomate), var(--tomate-escuro));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.contato-obrigado-card .ic-circle svg { width: 26px; height: 26px; }
.contato-obrigado-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 700;
}
.contato-obrigado-card p {
  color: var(--tinta-suave);
  font-size: 14.5px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.contato-obrigado-card .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* ===================================================
   Modal de vídeo (player embed)
   =================================================== */
.video-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  animation: fadeIn .25s ease;
}
.video-modal[hidden] { display: none; }
.video-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .88);
}
.video-modal-content {
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}
.video-modal-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-modal-iframe-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -46px; right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid; place-items: center;
  transition: background .15s;
}
.video-modal-close:hover { background: var(--tomate); }
.video-modal-close svg { width: 16px; height: 16px; }
body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .video-modal { padding: 60px 12px 20px; }
  .video-modal-close { top: -40px; right: 4px; }
}

/* ===================================================
   Toast (form-success message)
   =================================================== */
.flash {
  padding: 12px 16px;
  background: #EBF5E5;
  border-left: 3px solid var(--azeitona);
  color: #3D5022;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ===================================================
   Busca em destaque (componente includes/search_hero.html)
   =================================================== */

/* --- Variante LARGE (home, abaixo do banner) --- */
.search-hero {
  padding: 40px 0 28px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(215, 57, 44, .06), transparent 60%),
    var(--papel, #faf6ef);
}
.search-hero-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 36px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(31, 27, 22, .06);
  box-shadow:
    0 24px 60px rgba(31, 27, 22, .10),
    0 4px 14px rgba(31, 27, 22, .05);
}
.search-hero-head { text-align: center; margin-bottom: 22px; }
.search-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tomate, #d7392c);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(215, 57, 44, .08);
  margin-bottom: 12px;
}
.search-hero-eyebrow i { font-size: 11px; }
.search-hero-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--tinta, #2b2520);
  margin-bottom: 6px;
}
.search-hero-head p {
  font-size: 14px;
  color: rgba(31, 27, 22, .65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

.search-hero-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--papel, #faf6ef);
  border: 1px solid rgba(31, 27, 22, .08);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-hero-form:focus-within {
  border-color: var(--tomate, #d7392c);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(215, 57, 44, .12);
}
.search-hero-icon {
  font-size: 16px;
  color: rgba(31, 27, 22, .45);
  transition: color .2s ease;
}
.search-hero-form:focus-within .search-hero-icon { color: var(--tomate, #d7392c); }
.search-hero-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 14px 4px;
  font-size: 15px;
  color: var(--tinta, #2b2520);
  font-family: inherit;
}
.search-hero-form input::placeholder { color: rgba(31, 27, 22, .42); }
.search-hero-form button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tomate, #d7392c), #b82a1f);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(215, 57, 44, .32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.search-hero-form button i { font-size: 12px; transition: transform .25s ease; }
.search-hero-form button:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(215, 57, 44, .42);
  transform: translateY(-1px);
}
.search-hero-form button:hover i { transform: translateX(3px); }
.search-hero-form button:active { transform: translateY(0); }

.search-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}
.search-hero-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(31, 27, 22, .55);
  margin-right: 4px;
}
.search-hero-tags-label i { color: var(--tomate, #d7392c); }
.search-hero-tags a {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--papel, #faf6ef);
  border: 1px solid rgba(31, 27, 22, .08);
  color: var(--tinta, #2b2520);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.search-hero-tags a:hover {
  background: var(--tomate, #d7392c);
  border-color: var(--tomate, #d7392c);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .search-hero { padding: 28px 0 20px; }
  .search-hero-card { padding: 24px 18px 20px; border-radius: 18px; }
  .search-hero-form { flex-direction: column; padding: 12px; border-radius: 16px; gap: 10px; }
  .search-hero-form input { width: 100%; padding: 10px 12px; text-align: center; }
  .search-hero-icon { display: none; }
  .search-hero-form button { width: 100%; justify-content: center; padding: 12px; }
}

/* --- Variante OVERLAP (páginas internas, sobreposta ao banner) --- */
.page-header-top.has-search-overlap { padding-bottom: 70px; overflow: visible; }
.page-header-top.has-search-overlap.compact { padding-bottom: 64px; }

.search-overlap-wrap {
  position: relative;
  z-index: 5;
  margin-top: -36px;
  margin-bottom: 24px;
}
.search-overlap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31, 27, 22, .06);
  box-shadow:
    0 18px 40px rgba(31, 27, 22, .14),
    0 4px 12px rgba(31, 27, 22, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.search-overlap:focus-within {
  box-shadow:
    0 22px 50px rgba(31, 27, 22, .18),
    0 0 0 4px rgba(215, 57, 44, .15);
}
.search-overlap-icon {
  font-size: 15px;
  color: rgba(31, 27, 22, .45);
  transition: color .2s ease;
}
.search-overlap:focus-within .search-overlap-icon { color: var(--tomate, #d7392c); }
.search-overlap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 12px 4px;
  font-size: 14.5px;
  color: var(--tinta, #2b2520);
  font-family: inherit;
}
.search-overlap input::placeholder { color: rgba(31, 27, 22, .42); }
.search-overlap button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tomate, #d7392c), #b82a1f);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(215, 57, 44, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.search-overlap button i { font-size: 11px; transition: transform .25s ease; }
.search-overlap button:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(215, 57, 44, .38);
  transform: translateY(-1px);
}
.search-overlap button:hover i { transform: translateX(3px); }

@media (max-width: 640px) {
  .page-header-top.has-search-overlap { padding-bottom: 60px; }
  .search-overlap-wrap { margin-top: -30px; padding: 0 14px; }
  .search-overlap { padding: 6px 6px 6px 14px; }
  .search-overlap input { font-size: 13.5px; padding: 10px 4px; }
  .search-overlap button { padding: 10px 14px; font-size: 12.5px; }
  .search-overlap button span { display: none; }
  .search-overlap button i { font-size: 13px; }
}

/* ===================================================
   Popup de busca (mobile)
   =================================================== */
.search-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(31, 27, 22, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18% 20px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.search-popup[data-open] {
  opacity: 1;
  pointer-events: auto;
}
.search-popup[hidden] { display: none !important; }
.search-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.search-popup-close:hover {
  background: rgba(255, 255, 255, .2);
  transform: rotate(90deg);
}
.search-popup-inner {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  transform: translateY(-16px);
  transition: transform .3s ease;
}
.search-popup[data-open] .search-popup-inner {
  transform: translateY(0);
}
.search-popup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tomate);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(215, 57, 44, .08);
  margin-bottom: 12px;
}
.search-popup-inner h2 {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  color: var(--tinta);
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.search-popup-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--papel, #faf6ef);
  border: 1.5px solid rgba(215, 57, 44, .18);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-popup-form:focus-within {
  border-color: var(--tomate);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(215, 57, 44, .15);
}
.search-popup-form > i {
  font-size: 15px;
  color: rgba(31, 27, 22, .42);
  transition: color .2s ease;
}
.search-popup-form:focus-within > i { color: var(--tomate); }
.search-popup-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--tinta);
  font-family: inherit;
}
.search-popup-form input::placeholder { color: rgba(31, 27, 22, .4); }
.search-popup-form button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tomate), #b82a1f);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(215, 57, 44, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.search-popup-form button i { font-size: 11px; transition: transform .25s ease; }
.search-popup-form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(215, 57, 44, .45);
}
.search-popup-form button:hover i { transform: translateX(3px); }

.search-popup-quick {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.search-popup-quick-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(31, 27, 22, .55);
  margin-right: 4px;
}
.search-popup-quick-label i { color: var(--tomate); }
.search-popup-quick a {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--papel, #faf6ef);
  border: 1px solid rgba(31, 27, 22, .08);
  color: var(--tinta);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.search-popup-quick a:hover {
  background: var(--tomate);
  border-color: var(--tomate);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .search-popup { padding-top: 10%; padding-left: 14px; padding-right: 14px; }
  .search-popup-inner { padding: 22px 18px 18px; border-radius: 18px; }
  .search-popup-form { flex-direction: column; padding: 10px; border-radius: 14px; gap: 8px; }
  .search-popup-form input { width: 100%; text-align: center; padding: 8px; }
  .search-popup-form > i { display: none; }
  .search-popup-form button { width: 100%; justify-content: center; padding: 11px; }
}

/* ===================================================
   Animations
   =================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .5s ease forwards; }

/* ===================================================
   Detalhe da receita — texto rico + FAQ accordion
   =================================================== */
.recipe-intro {
  margin: 0 0 30px;
  color: var(--tinta);
  font-size: 15.5px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.recipe-intro table { max-width: 100%; display: block; overflow-x: auto; }
.recipe-intro p { margin: 0 0 14px; }
.recipe-intro h2, .recipe-intro h3, .recipe-intro h4 { margin: 22px 0 10px; line-height: 1.25; }
.recipe-intro ul, .recipe-intro ol { margin: 0 0 14px; padding-left: 20px; }
.recipe-intro li { margin: 4px 0; }
.recipe-intro a { color: var(--tomate); text-decoration: underline; }
.recipe-intro img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 8px 0; }

.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--linha);
  border-radius: var(--radius-sm);
  background: var(--papel);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--tinta);
}
.faq-q:hover { color: var(--tomate); }
.faq-ic { width: 18px; height: 18px; flex: none; color: var(--tomate); transition: transform .25s ease; }
.faq-q[aria-expanded="true"] .faq-ic { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-content {
  padding: 0 16px 16px;
  color: var(--tinta-cinza);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ===================================================
   Ações da receita — compartilhar / imprimir
   =================================================== */
.recipe-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.share-wrap { position: relative; }
.recipe-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--papel);
  border: 1px solid var(--linha-forte);
  border-radius: var(--radius-pill);
  color: var(--tinta);
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.recipe-action:hover { background: var(--tomate); color: #fff; border-color: var(--tomate); }
.recipe-action svg { width: 16px; height: 16px; flex: none; }

.share-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.share-menu[hidden] { display: none; }
.share-menu > a,
.share-menu > button {
  display: block; width: 100%;
  padding: 9px 12px;
  background: none; border: 0;
  border-radius: var(--radius-sm);
  text-align: left; text-decoration: none;
  font-family: inherit; font-size: 14px; color: var(--tinta);
  cursor: pointer;
}
.share-menu > a:hover,
.share-menu > button:hover { background: var(--bg); color: var(--tomate); }

/* ===================================================
   Impressão — só a receita (ingredientes + preparo)
   =================================================== */
@media print {
  .site-header, .site-footer, .sidebar, .sidebar-backdrop, .sidebar-trigger,
  #video-modal, .zap-fixed, .recipe-actions, .recipe-detail-hero,
  .recipe-intro, .faq-block, .relacionadas-block, .recipe-carousel-wrap, .rc-nav,
  .ing-clear, .ing-hint, .heart, .section-header .more {
    display: none !important;
  }
  body { background: #fff !important; color: #000; }
  main, section { padding: 0 !important; margin: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .recipe-body-grid { display: block !important; }
  .recipe-mobile-head { display: block !important; }
  .recipe-mobile-head img { max-width: 45%; height: auto; }
  .recipe-stats, .passo-item, .ingredientes-box li { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
