/* ═══════════════════════════════════════════════════════════════════════════
   Cozinha Simples — CSS Principal
   Mobile-first | Core Web Vitals | IAB Ads | Schema.org friendly
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Tokens / Design System ──────────────────────────────────────────────── */
:root {
  --color-red:     #7B1818;
  --color-red-dk:  #5C1010;
  --color-red-lt:  #9E2020;
  --color-amber:   #F5A52A;
  --color-amber-dk:#D4881A;
  --color-amber-lt:#FFD166;
  --color-bg:      #FFFAF5;
  --color-surface: #FFFFFF;
  --color-text:    #1A1208;
  --color-muted:   #6B5B45;
  --color-border:  #EDE0CC;
  --color-success: #2E7D32;
  --color-shadow:  rgba(123,24,24,.12);

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 4px 20px var(--color-shadow);
  --shadow-lg: 0 8px 40px rgba(123,24,24,.18);

  --transition: .2s ease;
  --container:  1240px;
  --header-h:   68px;
  --sticky-top-ad-height: 0px;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red-lt); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Containers ──────────────────────────────────────────────────────────── */
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: 16px; }
@media(min-width:768px) { .container { padding-inline: 24px; } }
@media(min-width:1024px) { .container { padding-inline: 32px; } }

/* ─── Ad Bar ──────────────────────────────────────────────────────────────── */
.ad-bar {
  background: #f5f0e8;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: 8px 16px;
  position: relative;
  overflow: hidden;
}
.ad-bar--rodape { border-top: 1px solid var(--color-border); border-bottom: none; }
.ad-bar--sticky {
  position: sticky;
  top: 0;
  z-index: 120;
}
.ad-bar--sticky + .site-header { top: var(--sticky-top-ad-height); }
.ad-label {
  display: block;
  font-size: 10px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

/* ─── Site Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: var(--color-red);
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 12px;
}
.site-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 46px; width: auto; }

/* ─── Header Actions ──────────────────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.search-form {
  display: flex;
  align-items: center;
  background: #f5f0e8;
  border: 1.5px solid var(--color-border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.scrolled .search-form { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.search-form:focus-within { border-color: var(--color-amber); }
.search-input {
  background: none;
  border: none;
  padding: 7px 12px;
  font-size: 13px;
  width: 130px;
  outline: none;
  color: var(--color-text);
}
.scrolled .search-input { color: #fff; }
.scrolled .search-input::placeholder { color: rgba(255,255,255,.6); }
@media(min-width:768px) { .search-input { width: 180px; } }
.search-btn { padding: 7px 11px; color: var(--color-red); display: flex; align-items: center; }
.scrolled .search-btn { color: rgba(255,255,255,.8); }

/* Hamburguer */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.scrolled .nav-toggle span { background: #fff; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media(min-width:1280px) { .nav-toggle { display: none; } }

/* ─── Main Nav ────────────────────────────────────────────────────────────── */
/* Mobile: drawer lateral escuro, sem blur no conteúdo */
.main-nav {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 82vw);
  background: #1C0A0A;
  z-index: 300;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: none;
  border-left: 1px solid rgba(255,255,255,.08);
}
.main-nav.open { transform: translateX(0); }
body.nav-open {
  overflow: hidden;
}

/* Cabeçalho do drawer */
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: 60px;
  flex-shrink: 0;
}
.nav-drawer-head img { height: 36px; width: auto; }
.nav-drawer-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  font-family: inherit;
}
.nav-drawer-close:hover { background: rgba(255,255,255,.2); }

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  gap: 1px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.82);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.active { background: var(--color-red); color: #fff; }

/* Desktop Nav */
@media(min-width:1280px) {
  .main-nav {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    background: none;
    flex-direction: row;
    overflow: visible;
    transform: none !important;
    box-shadow: none;
    flex: 1;
  }
  .nav-drawer-head { display: none; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .nav-link {
    color: #3a3a3a;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 6px;
  }
  .scrolled .nav-link { color: rgba(255,255,255,.88); }
  .nav-link:hover { background: var(--color-red); color: #fff !important; }
  .nav-link.active { background: var(--color-red); color: #fff; }
  .scrolled .nav-link:hover, .scrolled .nav-link.active { background: rgba(255,255,255,.18); color: #fff; }

  /* Dropdown Mais */
  .nav-more { position: relative; flex-shrink: 0; }
  .nav-more-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 8px; border-radius: 6px;
    color: #3a3a3a; font-weight: 600; font-size: 13px;
    cursor: pointer; white-space: nowrap;
    background: none; border: none; font-family: inherit;
    transition: background var(--transition), color var(--transition);
  }
  .scrolled .nav-more-btn { color: rgba(255,255,255,.88); }
  .nav-more-btn:hover { background: var(--color-red); color: #fff; }
  .scrolled .nav-more-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
  .nav-more-btn svg { transition: transform .2s; flex-shrink: 0; }
  .nav-more:hover .nav-more-btn svg,
  .nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
  .nav-dropdown {
    display: none;
    position: absolute; top: 100%; right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 190px; z-index: 400; padding: 6px;
  }
  .nav-more:hover .nav-dropdown,
  .nav-more.open .nav-dropdown { display: block; }
  .nav-dropdown .nav-link { color: var(--color-text); font-size: 13px; padding: 9px 12px; }
  .nav-dropdown .nav-link:hover { background: #f5f0e8; color: var(--color-red) !important; background: #f5f0e8 !important; }
}

/* Overlay invisível para permitir fechar ao tocar fora, sem escurecer nem desfocar o conteúdo */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 90;
}
.nav-overlay.open { display: block; }
@media(min-width:1280px) {
  .nav-overlay,
  .nav-overlay.open {
    display: none !important;
  }
}

/* Itens só no mobile */
.mobile-only-nav { display: list-item; }

/* O item "Mais" existe só no desktop; no mobile as categorias extras já aparecem na lista */
.nav-more { display: none; }
.nav-dropdown { display: none; }

@media(min-width:1280px) {
  .mobile-only-nav { display: none; }
  .nav-more { display: block; }
}

/* ─── Hero / Destaque ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dk) 50%, #3D0A0A 100%);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 52px);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero__title span { color: var(--color-amber-lt); }
.hero__subtitle {
  color: rgba(255,255,255,.8);
  font-size: clamp(15px, 2.5vw, 18px);
  max-width: 500px;
  margin: 0 auto 24px;
}
.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 16px;
  outline: none;
}
.hero-search button {
  background: var(--color-amber);
  color: #fff;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  transition: background var(--transition);
}
.hero-search button:hover { background: var(--color-amber-dk); }

/* ─── Category Chips ──────────────────────────────────────────────────────── */
.cat-strip { padding: 20px 0; }
.cat-strip__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 18px 4px 0;
}
.cat-strip__list::after {
  content: '';
  flex: 0 0 8px;
}
.cat-strip__list::-webkit-scrollbar { display: none; }
.cat-chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

/* ─── Category Chips Premium ─────────────────────────────────────────────── */
.cat-strip {
  padding: 20px 0;
}

.cat-strip__outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-strip__viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.cat-strip__viewport::before,
.cat-strip__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.cat-strip__viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), rgba(248,245,240,0));
}

.cat-strip__viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), rgba(248,245,240,0));
}

.cat-strip__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 6px;
  margin: 0;
  list-style: none;
  scroll-behavior: smooth;
}

.cat-strip__list::-webkit-scrollbar {
  display: none;
}

.cat-strip__list li {
  flex: 0 0 auto;
}

.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cat-chip:hover,
.cat-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  border-color: var(--color-red);
}

.cat-chip.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.cat-strip__nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
  flex: 0 0 auto;
}

.cat-strip__nav:hover {
  transform: translateY(-1px);
  background: #fff7f5;
}

.cat-strip__nav[disabled] {
  opacity: .35;
  cursor: default;
  transform: none;
}

@media (max-width: 767px) {
  .cat-strip__outer {
    gap: 6px;
  }

  .cat-strip__nav {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .cat-chip {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* ─── Section Headers ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--color-red);
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--color-amber);
  border-radius: 4px;
  margin-right: 10px;
  vertical-align: middle;
}
.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red);
  border-bottom: 2px solid var(--color-amber);
  padding-bottom: 1px;
}

/* ─── Recipe Cards ────────────────────────────────────────────────────────── */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
@media(max-width:479px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.recipe-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--color-border);
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.recipe-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e8d8, #e8d8c0);
  position: relative;
}
.recipe-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.recipe-card:hover .recipe-card__img { transform: scale(1.06); }
.recipe-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.recipe-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, #fde8b0, #f5c066);
}
.recipe-card__body { padding: 14px 16px 16px; }
.recipe-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-amber-dk);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.recipe-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-muted);
}
.recipe-card__meta span { display: flex; align-items: center; gap: 4px; }
.diff-facil   { color: #2E7D32; }
.diff-medio   { color: #E65100; }
.diff-dificil { color: #B71C1C; }

.recipe-subtitle {
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 10px;
  color: var(--color-text);
}

/* ─── Page Layout with Sidebar ───────────────────────────────────────────── */
.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
  padding: 32px 0 48px;
}
@media(min-width:1024px) {
  .page-layout { grid-template-columns: 1fr 300px; }
}
.sidebar { display: flex; flex-direction: column; gap: 24px; overflow: visible; }

/* ─── Recipe Single Page ──────────────────────────────────────────────────── */
.recipe-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f0e8d8;
  margin-bottom: 28px;
}
.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-hero__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, #fde8b0, #f5c066);
}

.recipe-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 42px);
  color: var(--color-red);
  line-height: 1.2;
  margin-bottom: 16px;
}
.recipe-desc {
  font-size: 17px;
  color: var(--color-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.recipe-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media(min-width:480px) { .recipe-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-box {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.stat-box__icon { font-size: 22px; margin-bottom: 4px; }
.stat-box__value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-box__label { font-size: 11px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; }

.recipe-section { margin-bottom: 32px; }
.recipe-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-red);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-amber);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ingredients-list { display: flex; flex-direction: column; gap: 0; }
.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-qty {
  font-weight: 700;
  color: var(--color-red);
  min-width: 80px;
  flex-shrink: 0;
}

.steps-list { display: flex; flex-direction: column; gap: 16px; }
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-text { font-size: 16px; line-height: 1.7; padding-top: 4px; }

.tips-box {
  background: linear-gradient(135deg, #fffbee, #fff8dc);
  border: 1.5px solid var(--color-amber-lt);
  border-radius: var(--radius-md);
  padding: 20px;
}
.tips-box__title { font-family: var(--font-display); font-size: 18px; color: var(--color-amber-dk); margin-bottom: 8px; }
.tips-box p { font-size: 15px; color: var(--color-text); line-height: 1.7; }

.tips-box ul {
  padding-left: 18px;
  margin-top: 8px;
}

.tips-box li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--color-muted);
}
.breadcrumb a { color: var(--color-red); }
.breadcrumb span { color: var(--color-muted); }

/* ─── Sidebar Widgets ─────────────────────────────────────────────────────── */
.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-red);
  margin-bottom: 14px;
}
.widget-recipes { display: flex; flex-direction: column; gap: 12px; }
.widget-recipe {
  display: flex;
  gap: 10px;
  align-items: center;
}
.widget-recipe__img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #f0e8d8;
}
.widget-recipe__info {}
.widget-recipe__title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.widget-recipe__meta { font-size: 11px; color: var(--color-muted); margin-top: 2px; }

/* Wrapper do anúncio lateral */
.sidebar-ad {
  display: block;
  position: relative;
}
.sidebar-ad__inner {
  display: block;
}
@media(min-width:1024px) {
  .sidebar-ad--sticky {
    align-self: start;
  }
  .sidebar-ad--sticky .sidebar-ad__inner {
    position: sticky;
    top: calc(var(--header-h) + var(--sticky-top-ad-height) + 20px);
  }
}

/* ─── IAB Ad Units ────────────────────────────────────────────────────────── */
.cs-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: var(--ad-mw);
  height: var(--ad-mh);
  margin: 0 auto;
  background: #f0ece4;
}
@media(min-width:769px) {
  .cs-ad {
    width: var(--ad-dw);
    height: var(--ad-dh);
  }
}
.cs-ad--lazy .cs-ad__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0ece4 25%, #e8e0d4 50%, #f0ece4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.cs-ad img, .cs-ad iframe { max-width: 100%; display: block; }
.cs-ad--topo, .cs-ad--rodape {
  width: min(100%, var(--ad-dw));
  max-width: min(100%, var(--ad-dw));
  margin: 0 auto;
}
.cs-ad--lateral {
  width: min(100%, var(--ad-dw));
  max-width: var(--ad-dw);
  margin: 0 auto;
}
.cs-ad--lateral.cs-ad--sticky { position: relative; top: auto; }
.sidebar-ad,
.sidebar-ad__inner {
  width: 100%;
}
.sidebar-ad .cs-ad {
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Sticky Bar */
.ad-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.ad-mobile-bar.visible { transform: translateY(0); }
.ad-mobile-bar__close {
  position: absolute;
  top: -28px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* @media(min-width:769px) { .ad-mobile-bar { display: none !important; } } */

/* In-content ad separator */
.ad-incontent {
  margin: 28px 0;
  text-align: center;
}
.ad-incontent .ad-label { margin-bottom: 6px; }

/* ─── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 40px 0;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--color-red); color: var(--color-red); }
.page-btn.active { background: var(--color-red); border-color: var(--color-red); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-red-dk);
  color: rgba(255,255,255,.82);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
@media(min-width:640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .footer-tagline { font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-title { font-family: var(--font-display); font-size: 16px; color: var(--color-amber-lt); margin-bottom: 12px; }
.site-footer .footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-nav a { color: rgba(255,255,255,.75); font-size: 14px; transition: color var(--transition); }
.site-footer .footer-nav a:hover { color: var(--color-amber-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-disclaimer { opacity: .6; font-size: 12px; }

/* ─── Back to Top ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 200;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
@media(min-width:769px) { .back-to-top { bottom: 24px; } }

/* Itens que só aparecem no menu mobile (categorias extras) */
.mobile-only-nav { display: list-item; }
@media(min-width:1280px) { .mobile-only-nav { display: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-pad { padding: 36px 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}
.badge-red { background: #FEE2E2; color: var(--color-red); }
.badge-amber { background: #FEF3C7; color: var(--color-amber-dk); }
.badge-green { background: #D1FAE5; color: var(--color-success); }

/* ─── Empty State ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state__icon { font-size: 52px; margin-bottom: 12px; }
.empty-state__title { font-family: var(--font-display); font-size: 22px; color: var(--color-red); margin-bottom: 8px; }
.empty-state__text { color: var(--color-muted); }

/* ─── Print ───────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .ad-bar, .cs-ad, .back-to-top, .ad-mobile-bar { display: none !important; }
  .page-layout { display: block; }
  .recipe-title { color: #000; }
}

/* ─── Focus Visible ───────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--color-amber); outline-offset: 2px; border-radius: 2px; }
.footer-social {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icon:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Facebook */
.social-icon.fb:hover {
  background: #1877f2;
  transform: translateY(-3px) scale(1.05);
}

/* YouTube */
.social-icon.yt:hover {
  background: #ff0000;
  transform: translateY(-3px) scale(1.05);
}

/* Instagram */
.social-icon.ig:hover {
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
  transform: translateY(-3px) scale(1.05);
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 16px;
}

.rating-summary strong {
  font-size: 20px;
  color: var(--color-red);
}

.rating-summary span {
  color: #f5b301;
  font-size: 20px;
}

.rating-form {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 30px;
  color: #ddd;
  cursor: pointer;
  transition: 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f5b301;
}
.recipe-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.recipe-card__rating-value {
  color: var(--color-text);
}

.recipe-card__rating-stars {
  color: #f5b301;
  letter-spacing: 1px;
  font-size: 15px;
}

.recipe-card__rating-count {
  color: var(--color-muted);
  font-weight: 600;
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  header,
  footer,
  .sidebar,
  .hero,
  .cat-strip,
  .breadcrumb,
  .ad-incontent,
  .sidebar-ad,
  .ad-label,
  #btn-share,
  #btn-print,
  .section-link,
  .pagination,
  .footer-social,
  .widget,
  .recipe-card__badge {
    display: none !important;
  }

  .container,
  .page-layout,
  article,
  main {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page-layout {
    grid-template-columns: 1fr !important;
  }

  .recipe-hero {
    margin-bottom: 16px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .recipe-hero img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .recipe-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  .recipe-desc {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .recipe-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .stat-box {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 10px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .recipe-section {
    margin-top: 16px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .recipe-section-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .ingredients-list,
  .steps-list {
    margin: 0 !important;
    padding-left: 18px !important;
  }

  .ingredient-item,
  .step-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 8px !important;
  }

  .tips-box,
  .rating-summary,
  .rating-form,
  .recipe-rating-box,
  .badge,
  .recipe-card,
  [aria-label="Tags"],
  [aria-labelledby="heading-relacionadas"] {
    display: none !important;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }
}
/* Esconde a ficha de impressão na tela normal */
.print-recipe {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  #print-area,
  #print-area * {
    visibility: visible;
  }

  .print-recipe {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    z-index: 9999;
  }

  .print-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .print-brand {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
  }

  .print-title {
    font-size: 26px;
    margin: 0;
    font-weight: bold;
  }

  .print-meta {
    font-size: 13px;
    margin-top: 8px;
    color: #555;
  }

  .print-section {
    margin-top: 18px;
  }

  .print-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
  }

  .print-section ul,
  .print-section ol {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 18px;
  }

  .print-section li {
    margin-bottom: 4px;
  }

  .print-section p,
  .print-section div {
    font-size: 14px;
    line-height: 1.5;
  }

  @page {
    size: A4;
    margin: 12mm;
  }
}
