/* ============================================================
 * Recipes — list, category, detail, move-to-cart
 * 2025 redesign
 * ============================================================ */

.recipePage2025 {
    background: linear-gradient(180deg, var(--rd-cream) 0%, var(--rd-cream-3) 100%);
    padding-bottom: 80px;
    font-family: var(--rd-sans);
}
.rd-recipes-section { padding: 32px 0 0; }
.rd-recipes-section .container1440 { padding-top: 24px; }

/* HERO */
.rd-recipes-hero {
    background: linear-gradient(135deg, #fff 0%, var(--rd-cream-3) 60%, var(--rd-cream-2) 100%);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 40px 48px;
    box-shadow: var(--rd-shadow);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.rd-recipes-hero::before {
    content: "";
    position: absolute; right: -100px; top: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(212,166,75,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.rd-recipes-hero--compact { padding: 28px 40px; }

.rd-recipes-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 11px; letter-spacing: 0.14em;
    color: var(--rd-orange-2); font-weight: 700;
    margin-bottom: 10px;
}
.rd-recipes-eyebrow-mark { color: var(--rd-gold); margin-right: 6px; }

.rd-recipes-title {
    font-family: var(--rd-serif);
    font-size: 48px; line-height: 1.05; font-weight: 600;
    color: var(--rd-ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.rd-recipes-title em { font-style: italic; color: var(--rd-green); font-weight: 500; }
.rd-recipes-title--detail { font-size: 40px; margin-bottom: 8px; }
.rd-recipes-sub {
    color: var(--rd-muted);
    font-size: 16px; line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.rd-recipes-body { margin-top: 0; }
.rd-recipes-rightside { padding: 0; }

/* GRID */
.rd-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.rd-recipe-card {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    overflow: hidden;
    box-shadow: var(--rd-shadow);
    transition: transform 0.25s var(--rd-easing), box-shadow 0.25s var(--rd-easing);
    display: flex; flex-direction: column;
}
.rd-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rd-shadow-lg);
}
.rd-recipe-card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--rd-cream-2);
}
.rd-recipe-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--rd-easing);
}
.rd-recipe-card:hover .rd-recipe-card-img img { transform: scale(1.04); }
.rd-recipe-card-cuisine {
    position: absolute; top: 12px; left: 12px;
    background: rgba(31,61,46,0.85);
    color: #fff;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: var(--rd-radius-pill);
    backdrop-filter: blur(4px);
}
.rd-recipe-card-body {
    padding: 18px 20px 20px;
    display: flex; flex-direction: column;
    flex: 1;
}
.rd-recipe-card-title {
    font-family: var(--rd-serif);
    font-size: 20px; font-weight: 600;
    color: var(--rd-ink);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.rd-recipe-card-chef {
    font-size: 13px;
    color: var(--rd-muted);
    margin: 0 0 10px;
}
.rd-recipe-card-chef em { font-style: italic; color: var(--rd-green); }
.rd-recipe-card-meta {
    list-style: none; padding: 0; margin: 0 0 14px;
    display: flex; gap: 14px;
    flex-wrap: wrap;
}
.rd-recipe-card-meta li {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--rd-muted);
}
.rd-recipe-card-meta li i { color: var(--rd-gold); font-size: 13px; }
.rd-recipe-card-actions {
    display: flex; gap: 8px;
    margin-top: auto;
}

.rd-recipe-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px;
    border-radius: var(--rd-radius-pill);
    border: 0;
    cursor: pointer;
    font-size: 13px; font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s var(--rd-easing), background 0.2s var(--rd-easing);
}
.rd-recipe-btn-primary {
    background: var(--rd-green);
    color: var(--rd-text-inv) !important;
    box-shadow: 0 4px 12px rgba(31,61,46,0.22);
}
.rd-recipe-btn-primary:hover { background: var(--rd-green-2); transform: translateY(-2px); color: var(--rd-text-inv) !important; }
.rd-recipe-btn-ghost {
    background: transparent;
    color: var(--rd-ink) !important;
    border: 1px solid var(--rd-border);
}
.rd-recipe-btn-ghost:hover { background: var(--rd-cream-2); border-color: var(--rd-green); color: var(--rd-green) !important; }
.rd-recipe-btn--lg { padding: 14px 26px; font-size: 14px; flex: none; align-self: flex-start; }
.rd-recipe-btn--block { width: 100%; flex: none; padding: 14px 26px; font-size: 14px; }

/* Category grid */
.rd-recipe-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.rd-recipe-cat-card {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-md);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--rd-ink);
    box-shadow: var(--rd-shadow);
    transition: transform 0.2s var(--rd-easing), box-shadow 0.2s var(--rd-easing), border-color 0.2s var(--rd-easing);
    display: block;
}
.rd-recipe-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rd-shadow-lg);
    border-color: var(--rd-green);
}
.rd-recipe-cat-img {
    aspect-ratio: 1 / 1;
    background: var(--rd-cream-2);
    overflow: hidden;
}
.rd-recipe-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-recipe-cat-label {
    text-align: center;
    padding: 12px 14px;
    font-size: 14px; font-weight: 600;
    color: var(--rd-ink);
    border-top: 1px solid var(--rd-border);
    background: var(--rd-cream-3);
}

/* Detail page hero */
.rd-recipe-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 28px;
    box-shadow: var(--rd-shadow);
    margin-bottom: 28px;
}
.rd-recipe-detail-img {
    border-radius: var(--rd-radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.rd-recipe-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-recipe-detail-chef { font-size: 14px; color: var(--rd-muted); margin: 0 0 14px; }
.rd-recipe-detail-chef em { font-style: italic; color: var(--rd-green); font-weight: 600; }

.rd-recipe-detail-meta {
    list-style: none; padding: 0;
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 22px;
}
.rd-recipe-detail-meta li {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--rd-cream-3);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-md);
    font-size: 13px;
    color: var(--rd-muted);
}
.rd-recipe-detail-meta li i { color: var(--rd-gold); font-size: 16px; }
.rd-recipe-detail-meta strong {
    display: block;
    font-weight: 700; color: var(--rd-ink);
    font-size: 14px;
}
.rd-recipe-detail-meta span {
    display: inline-block;
    line-height: 1.25;
    text-transform: uppercase;
    font-size: 11px; letter-spacing: 0.08em;
}

/* Detail body grid */
.rd-recipe-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 22px;
    align-items: start;
}
.rd-recipe-detail-col {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--rd-shadow);
}
.rd-recipe-block { margin-bottom: 22px; }
.rd-recipe-block:last-child { margin-bottom: 0; }
.rd-recipe-block-title {
    font-family: var(--rd-serif);
    font-size: 20px; font-weight: 600;
    color: var(--rd-ink);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rd-border);
}
.rd-recipe-block-text {
    color: var(--rd-ink);
    font-size: 14px; line-height: 1.6;
}
.rd-recipe-steps {
    color: var(--rd-ink);
    font-size: 14px; line-height: 1.7;
}
.rd-recipe-steps p { margin-bottom: 10px; }
.rd-recipe-steps ol, .rd-recipe-steps ul { padding-left: 20px; }

/* Ingredients sidebar */
.rd-recipe-ingredients {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 24px 24px 28px;
    box-shadow: var(--rd-shadow);
    position: sticky; top: 100px;
}
.rd-recipe-ing-list {
    list-style: none; padding: 0; margin: 0 0 18px;
}
.rd-recipe-ing-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--rd-border);
}
.rd-recipe-ing-item:last-child { border-bottom: 0; }
.rd-recipe-ing-img {
    width: 56px; height: 56px;
    border-radius: var(--rd-radius-sm);
    background: var(--rd-cream-3);
    border: 1px solid var(--rd-border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.rd-recipe-ing-img img { max-width: 80%; max-height: 80%; }
.rd-recipe-ing-text { line-height: 1.2; }
.rd-recipe-ing-brand {
    font-size: 11px; color: var(--rd-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.rd-recipe-ing-name {
    font-size: 14px; font-weight: 600;
    color: var(--rd-ink);
    margin: 2px 0 0;
}
.rd-recipe-ing-qty {
    font-size: 12px; color: var(--rd-green);
    font-weight: 700;
    background: var(--rd-cream-3);
    padding: 4px 8px;
    border-radius: var(--rd-radius-pill);
}

/* Empty state */
.rd-recipes-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 56px 32px;
    text-align: center;
}
.rd-recipes-empty-icon { font-size: 56px; margin-bottom: 14px; }
.rd-recipes-empty h3 {
    font-family: var(--rd-serif);
    font-size: 24px; font-weight: 600;
    color: var(--rd-ink);
    margin: 0 0 8px;
}
.rd-recipes-empty p {
    color: var(--rd-muted);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 1024px) {
    .rd-recipe-detail-hero { grid-template-columns: 1fr; }
    .rd-recipe-detail-grid { grid-template-columns: 1fr; }
    .rd-recipe-ingredients { position: static; }
}
@media (max-width: 700px) {
    .rd-recipes-hero { padding: 28px; }
    .rd-recipes-title { font-size: 36px; }
    .rd-recipe-card-actions { flex-direction: column; }
}
