.recipes-page,
.recipe-detail-page{
  overflow-x:hidden;
}

/* =========================
   LISTING HERO
   ========================= */
.recipes-hero{
  position:relative;
  min-height:78vh;
  display:grid;
  align-items:end;
  color:#fff;
  margin-bottom:0;
}

.recipes-hero__bg,
.recipes-hero__overlay{
  position:absolute;
  inset:0;
}

.recipes-hero__bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.42);
}

.recipes-hero__overlay{
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.44) 46%, rgba(0,0,0,.82) 100%);
}

.recipes-hero__content{
  position:relative;
  z-index:2;
  max-width:820px;
  padding:160px 0 88px;
}

.recipes-hero__title{
  margin:0;
  font-size:clamp(48px, 8vw, 108px);
  line-height:.92;
  text-transform:uppercase;
}

.recipes-hero__text{
  max-width:680px;
  margin:18px 0 0;
  color:rgba(255,255,255,.84);
  line-height:1.75;
  font-size:17px;
}

.recipes-hero__meta{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-top:34px;
}

.recipes-hero-card{
  padding:18px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.recipes-hero-card strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
  color:#fff;
}

.recipes-hero-card span{
  color:rgba(255,255,255,.72);
  font-size:14px;
}

/* =========================
   LISTING SECTION POLISH
   ========================= */
.recipes-shop{
  position:relative;
  padding-top:88px;
  padding-bottom:110px;
}

.recipes-shop::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:140px;
  background:linear-gradient(180deg, rgba(245,241,235,0) 0%, rgba(245,241,235,0.95) 100%);
  pointer-events:none;
}

.recipes-shop .container{
  position:relative;
  z-index:1;
}

.recipes-shop__intro{
  margin-bottom:42px;
}

.recipes-shop__head{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(360px, .9fr);
  gap:32px;
  align-items:start;
  margin-bottom:20px;
}

.recipes-shop__copy{
  max-width:720px;
}

.recipes-shop__copy h2{
  margin-bottom:14px;
}

.recipes-shop__lead{
  margin:0;
  max-width:640px;
  color:#5f554c;
  line-height:1.8;
  font-size:16px;
}

.recipes-toolbar-card{
  padding:20px;
  border:1px solid var(--border);
  border-radius:28px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 45px rgba(0,0,0,.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.recipes-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
}

.recipes-search,
.recipes-toolbar select{
  min-height:54px;
  padding:0 16px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  font:inherit;
  color:var(--text);
  min-width:200px;
}

.recipes-search{
  min-width:260px;
}

.recipes-search:focus,
.recipes-toolbar select:focus{
  outline:none;
  border-color:rgba(242,140,24,.55);
  box-shadow:0 0 0 4px rgba(242,140,24,.12);
}

.recipes-results-bar{
  margin:12px 0 0;
  padding-top:8px;
}

.recipes-results-bar p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.recipe-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}

/* =========================
   RECIPE CARD
   ========================= */
.recipe-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.recipe-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 45px rgba(0,0,0,.10);
}

.recipe-card__image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.recipe-card__body{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px;
  flex:1;
}

.recipe-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.recipe-card__category,
.recipe-card__time{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.recipe-card__category{
  background:rgba(242,140,24,.12);
  color:#b66300;
  border:1px solid rgba(242,140,24,.18);
}

.recipe-card__time{
  background:#f5f3ef;
  color:var(--muted);
  border:1px solid var(--border);
}

.recipe-card h3{
  margin:0;
  font-size:28px;
  line-height:.98;
  text-transform:uppercase;
}

.recipe-card h3 a{
  color:inherit;
  text-decoration:none;
}

.recipe-card__desc{
  margin:0;
  color:#3d352d;
  line-height:1.7;
}

.recipe-card__macros{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
}

.recipe-macro-pill{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#faf8f5;
}

.recipe-macro-pill strong{
  display:block;
  font-size:16px;
  line-height:1;
}

.recipe-macro-pill span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.recipe-card__tags,
.recipe-detail__tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.recipe-tag{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
}

.recipe-card__bottom{
  margin-top:auto;
  padding-top:4px;
}
/* =========================
   DETAIL PAGE
   ========================= */
main {
  padding-bottom: 120px;
}

.recipe-detail-page{
  background:
    radial-gradient(circle at top left, rgba(242,140,24,.04), transparent 22%),
    #fbfaf8;
    padding-bottom: 120px;
}

.recipe-detail-hero{
  padding-top:150px;
  padding-bottom:34px;
}

.recipe-detail{
  display:grid;
  grid-template-columns:minmax(0, 1.02fr) minmax(0, .98fr);
  gap:34px;
  align-items:stretch;
}

.recipe-detail__media{
  min-width:0;
}

.recipe-detail__media img{
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
  border-radius:30px;
  box-shadow:0 20px 55px rgba(0,0,0,.09);
  display:block;
}

.recipe-detail__summary{
  min-width:0;
  padding:30px;
  border:1px solid rgba(17,17,17,.07);
  border-radius:30px;
  background:rgba(255,255,255,.88);
  box-shadow:0 18px 48px rgba(0,0,0,.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.recipe-detail__category{
  margin:0 0 12px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--muted);
}

.recipe-detail__title{
  margin:0;
  font-size:clamp(40px, 5.8vw, 74px);
  line-height:.92;
  letter-spacing:-.03em;
  text-transform:uppercase;
  max-width:10ch;
}

.recipe-detail__desc{
  margin:18px 0 0;
  max-width:58ch;
  color:#4f463e;
  line-height:1.82;
  font-size:16px;
}

.recipe-detail__quick-meta{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:28px;
}

.summary-meta-card{
  padding:18px 18px 16px;
  border:1px solid var(--border);
  border-radius:20px;
  background:#fcfbf9;
}

.summary-meta-card strong{
  display:block;
  margin-bottom:8px;
  color:var(--text);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.11em;
}

.summary-meta-card span{
  display:block;
  font-size:18px;
  line-height:1.15;
  color:#2c241d;
}

.recipe-detail__macro-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  margin-top:16px;
}

.recipe-macro-card{
  padding:18px;
  border:1px solid var(--border);
  border-radius:22px;
  background:#fff;
  box-shadow:none;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.recipe-macro-card:hover{
  transform:translateY(-2px);
  border-color:rgba(242,140,24,.24);
  box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.recipe-macro-card strong{
  display:block;
  font-size:20px;
  line-height:1;
}

.recipe-macro-card span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.recipe-detail__tags{
  margin-top:18px;
}

.recipe-detail__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
  padding-top:8px;
}

/* =========================
   DETAIL CONTENT
   ========================= */
#recipe-content{
  padding-top:18px;
  padding-bottom:110px;
}

.recipe-content-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 340px;
  gap:30px;
  align-items:start;
}

.recipe-content-main{
  display:grid;
  gap:24px;
}

.recipe-content-card,
.recipe-sidebar-card{
  padding:30px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:30px;
  box-shadow:0 14px 38px rgba(0,0,0,.05);
}

.recipe-content-card{
  background:linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%);
}

.recipe-content-card .section-head h2{
  margin-bottom:0;
}

.section-head--tight{
  margin-bottom:22px;
}

.ingredients-checklist{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:14px;
}

.ingredients-checklist li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(17,17,17,.06);
  color:#3d352d;
  line-height:1.7;
}

.ingredients-checklist li:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.ingredients-checklist__icon{
  width:18px;
  height:18px;
  margin-top:4px;
  border-radius:999px;
  background:rgba(242,140,24,.16);
  border:1px solid rgba(242,140,24,.24);
  position:relative;
  flex-shrink:0;
}

.ingredients-checklist__icon::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:5px;
  height:9px;
  border-right:2px solid #b66300;
  border-bottom:2px solid #b66300;
  transform:rotate(38deg);
}

.recipe-steps{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:16px;
}

.recipe-steps li{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:16px;
  align-items:start;
  padding:18px;
  border:1px solid rgba(17,17,17,.06);
  border-radius:22px;
  background:#fcfbf9;
}

.recipe-steps__number{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#111;
  color:#fff;
  font-weight:800;
  font-size:18px;
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}

.recipe-steps__content p{
  margin:0;
  color:#3d352d;
  line-height:1.8;
}

.recipe-tips{
  margin:0;
  padding-left:18px;
  color:#3d352d;
}

.recipe-tips li{
  margin-bottom:12px;
  line-height:1.75;
}

.recipe-content-sidebar{
  min-width:0;
}

.recipe-sidebar-card{
  background:#fff;
}

.recipe-content-sidebar .recipe-sidebar-card:first-child{
  position:sticky;
  top:110px;
}

.recipe-sidebar-macros{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

.recipe-sidebar-macro{
  padding:16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#faf8f5;
}

.recipe-sidebar-macro strong{
  display:block;
  font-size:18px;
  line-height:1.1;
}

.recipe-sidebar-macro span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.recipe-sidebar-text{
  margin:0;
  color:#4f463e;
  line-height:1.8;
}

/* =========================
   DETAIL PAGE RESPONSIVE
   ========================= */
@media (max-width: 1180px){
  .recipe-detail{
    grid-template-columns:1fr;
  }

  .recipe-detail__media img{
    min-height:420px;
    max-height:560px;
  }

  .recipe-content-grid{
    grid-template-columns:1fr;
  }

  .recipe-content-sidebar .recipe-sidebar-card:first-child{
    position:relative;
    top:auto;
  }
}

@media (max-width: 900px){
  .recipe-detail-hero{
    padding-top:132px;
    padding-bottom:24px;
  }

  .recipe-detail__summary{
    padding:24px;
    border-radius:26px;
  }

  .recipe-detail__quick-meta,
  .recipe-detail__macro-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  #recipe-content{
    padding-top:10px;
    padding-bottom:84px;
  }
}

@media (max-width: 720px){
  .recipe-detail-hero{
    padding-top:120px;
    padding-bottom:18px;
  }

  .recipe-detail{
    gap:18px;
  }

  .recipe-detail__media img{
    min-height:280px;
    border-radius:22px;
  }

  .recipe-detail__summary{
    padding:20px;
    border-radius:22px;
  }

  .recipe-detail__title{
    max-width:none;
    font-size:clamp(34px, 10vw, 48px);
  }

  .recipe-detail__quick-meta,
  .recipe-detail__macro-grid,
  .recipe-sidebar-macros{
    grid-template-columns:1fr;
  }

  .recipe-detail__actions{
    flex-direction:column;
    align-items:stretch;
  }

  .recipe-detail__actions .btn{
    width:100%;
  }

  .recipe-content-card,
  .recipe-sidebar-card{
    padding:22px;
    border-radius:22px;
  }

  .recipe-steps li{
    grid-template-columns:44px 1fr;
    padding:14px;
    border-radius:18px;
  }

  .recipe-steps__number{
    width:44px;
    height:44px;
    font-size:16px;
    border-radius:14px;
  }
}

/* =========================
   RECIPES LISTING RESPONSIVE
   ========================= */
@media (max-width: 1180px){
  .recipes-hero{
    min-height:72vh;
  }

  .recipes-hero__content{
    padding:148px 0 72px;
  }

  .recipes-shop{
    padding-top:72px;
    padding-bottom:96px;
  }

  .recipes-shop__head{
    grid-template-columns:1fr;
    gap:22px;
  }

  .recipes-shop__copy,
  .recipes-shop__lead{
    max-width:none;
  }

  .recipes-toolbar{
    justify-content:flex-start;
  }

  .recipe-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:24px;
  }
}

@media (max-width: 900px){
  .recipes-hero{
    min-height:auto;
  }

  .recipes-hero__content{
    padding:132px 0 56px;
  }

  .recipes-hero__title{
    font-size:clamp(40px, 10vw, 72px);
    line-height:.94;
  }

  .recipes-hero__text{
    font-size:15px;
    line-height:1.7;
    margin-top:16px;
  }

  .recipes-hero__meta{
    grid-template-columns:1fr;
    gap:12px;
    margin-top:24px;
  }

  .recipes-shop{
    padding-top:56px;
    padding-bottom:84px;
  }

  .recipes-shop__intro{
    margin-bottom:30px;
  }

  .recipes-toolbar-card{
    padding:16px;
    border-radius:22px;
  }

  .recipes-toolbar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    align-items:stretch;
  }

  .recipes-toolbar .shop-filter{
    min-width:0;
  }

  .recipes-search,
  .recipes-toolbar select,
  .recipes-toolbar .shop-clear{
    width:100%;
    min-width:0;
  }

  .recipes-toolbar .shop-clear{
    justify-content:center;
  }

  .recipe-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .recipe-card__body{
    padding:20px;
    gap:14px;
  }

  .recipe-card h3{
    font-size:22px;
    line-height:1.02;
  }
}

@media (max-width: 640px){
  .recipes-hero__content{
    padding:118px 0 46px;
  }

  .recipes-hero__title{
    font-size:clamp(34px, 11vw, 52px);
  }

  .recipes-hero-card{
    padding:16px;
    border-radius:18px;
  }

  .recipes-shop{
    padding-top:46px;
    padding-bottom:72px;
  }

  .recipes-shop::before{
    height:90px;
  }

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

  .recipes-search,
  .recipes-toolbar select{
    min-height:50px;
    padding:0 14px;
    border-radius:16px;
  }

  .recipes-toolbar .shop-clear{
    width:100%;
  }

  .recipes-results-bar{
    margin-top:10px;
    padding-top:2px;
  }

  .recipes-results-bar p{
    font-size:14px;
  }

  .recipe-card{
    border-radius:20px;
  }

  .recipe-card__image img{
    aspect-ratio:16 / 11;
  }

  .recipe-card__body{
    padding:18px;
  }

  .recipe-card__top{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .recipe-card__category,
  .recipe-card__time,
  .recipe-tag{
    font-size:11px;
  }

  .recipe-card h3{
    font-size:20px;
  }

  .recipe-card__desc{
    font-size:14px;
    line-height:1.65;
  }

  .recipe-card__macros{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .recipe-macro-pill{
    padding:10px 12px;
    border-radius:14px;
  }

  .recipe-macro-pill strong{
    font-size:15px;
  }

  .recipe-card__bottom .btn{
    width:100%;
  }
}