/* Recipes section on the coffee product pages.
   Vertical scroll drives the cards sideways (see recipes.js). Without JS, or with
   reduced motion, the track falls back to a native swipeable row. */
.recipes { --recipes-gutter: max(clamp(20px, 4vw, 64px), calc((100vw - 1280px) / 2)); position: relative; background: #2A1B15; color: #F9F7F4; }
.recipes-sticky { padding: clamp(72px, 8vw, 112px) 0; overflow: hidden; }
.recipes.is-pinned .recipes-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--recipes-nav, 64px) + 28px) 0 32px; display: flex; flex-direction: column; justify-content: center; }

.recipes-header { padding: 0 var(--recipes-gutter); margin-bottom: clamp(24px, 3vw, 38px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.recipes-intro { max-width: 520px; }
.recipes-header .label { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #F4D03F; margin-bottom: 12px; }
.recipes-header h2 { font-family: 'Luckiest Guy', cursive; font-size: clamp(32px, 4vw, 50px); line-height: 1; text-transform: uppercase; margin: 0 0 12px; color: #F9F7F4; }
.recipes-header p { font-size: 14px; line-height: 1.65; color: rgba(249,247,244,0.72); max-width: 380px; margin: 0; }

.recipes-progress { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: rgba(249,247,244,0.72); font-variant-numeric: tabular-nums; }
.recipes-progress-bar { width: clamp(80px, 12vw, 160px); height: 2px; background: rgba(249,247,244,0.18); border-radius: 2px; overflow: hidden; }
.recipes-progress-fill { height: 100%; width: 100%; background: #F4D03F; transform-origin: left; transform: scaleX(0); }

.recipe-scroll { display: flex; gap: 20px; padding: 6px var(--recipes-gutter) 12px; counter-reset: brew; will-change: transform; }
.recipes:not(.is-pinned) .recipe-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--recipes-gutter); scrollbar-width: none; }
.recipes:not(.is-pinned) .recipe-scroll::-webkit-scrollbar { display: none; }

/* Width also follows viewport height so the pinned block fits on short laptop screens. */
.recipe-card { flex: 0 0 max(240px, min(clamp(260px, 32vw, 420px), calc(160vh - 900px))); scroll-snap-align: start; background: #F9F7F4; color: #2A1B15; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(0,0,0,0.12); transition: transform 0.25s ease, box-shadow 0.25s ease; counter-increment: brew; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(0,0,0,0.2); }
.recipe-card-top { min-height: 58px; padding: 17px 18px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recipe-card-top::before { content: '0' counter(brew); color: #B86A31; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.recipe-card-top h3 { font-family: 'Luckiest Guy', cursive; font-size: 20px; line-height: 1.1; text-transform: uppercase; text-align: right; }
.recipe-img { margin: 0 10px 12px; border-radius: 8px; overflow: hidden; background: #EDE3D7; aspect-ratio: 16 / 10; }
.recipe-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.recipe-card:hover .recipe-img img { transform: scale(1.04); }
.recipe-card-body { padding: 0 18px 18px; }
.recipe-param { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #E9E2DA; font-size: 12px; }
.recipe-param:last-child { border-bottom: 0; }
.recipe-param-label { font-weight: 600; color: #8A7A6D; text-transform: uppercase; font-size: 9px; letter-spacing: 0.1em; }
.recipe-param-value { font-weight: 700; font-size: 12px; }

@media (max-width: 768px) {
  .recipes-sticky { padding: 60px 0; }
  .recipes-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .recipe-card { flex-basis: 78vw; }
}
