.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.recipe-tile {
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
    max-width: 260px;
    text-decoration: none;
    color: #2c2421;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-tile:hover {
    text-decoration: none;
    color: #2c2421;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.recipe-tile-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f4efe9;
    background-size: cover;
    background-position: center;
}

.recipe-tile-blank {
    background-image: none;
}

.recipe-tile-name {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 16px;
}

.recipe-tile-soon {
    cursor: default;
    opacity: 0.7;
}

.recipe-tile-soon .recipe-tile-name {
    padding-bottom: 2px;
}

.recipe-tile-soon .status-soon {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    padding: 0 16px 14px;
    display: block;
}

.recipe-top-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
    margin: 15px 0 20px;
}

.back-to-recipes,
.shop-ingredients-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #a85c32;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.shop-ingredients-link {
    background-color: #2c2421;
}

.back-to-recipes:hover,
.shop-ingredients-link:hover {
    background-color: #8f4c28;
    text-decoration: none;
    color: #fff;
}

.recipe-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 32px 28px;
    margin: 20px 0 30px;
    text-align: left;
}

.recipe-card * {
    text-align: left;
}

.recipe-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-photo {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.recipe-header-text {
    flex: 1;
}

.recipe-card h1 {
    font-family: Arial, sans-serif;
    font-weight: 700;
    color: #2c2421;
    font-size: 30px;
    text-align: left;
    padding: 0;
    margin-bottom: 6px;
}

@media (max-width: 520px) {
    .recipe-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recipe-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

.recipe-source {
    font-style: italic;
    color: #999;
    font-size: 14px;
    margin-top: -10px;
}

.recipe-intro {
    margin-bottom: 20px;
}

.recipe-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0 32px;
}

.recipe-stat {
    flex: 1 1 120px;
    background-color: #f4efe9;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}

.recipe-stat .stat-label {
    display: block;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
}

.recipe-stat .stat-value {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #a85c32;
}

.recipe-columns {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.recipe-ingredients {
    flex: 1 1 280px;
}

.recipe-instructions {
    flex: 1.4 1 360px;
}

.recipe-columns h2 {
    font-size: 22px;
    text-align: left;
    margin-bottom: 16px;
}

.ingredient-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.ingredient-list li {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe4;
    font-size: 17px;
    line-height: 1.5;
}

.ingredient-list li::before {
    content: "\2022";
    color: #a85c32;
    font-weight: 700;
    margin-right: 8px;
}

.recipe-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step-counter;
}

.recipe-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 4px 0 20px 44px;
    line-height: 1.7;
    font-size: 17px;
}

.recipe-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #a85c32;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-benefits {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0ebe4;
}

.recipe-benefits h2 {
    font-size: 22px;
    text-align: left;
    margin-bottom: 16px;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

.benefits-list li strong {
    color: #555;
}

.recipe-shop {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0ebe4;
}

.recipe-shop h2 {
    font-size: 22px;
    text-align: left;
    margin-bottom: 6px;
}

.recipe-shop .shop-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.recipe-shop .shop-note {
    font-size: 13px;
    font-style: italic;
    color: #999;
    margin: -10px 0 16px;
}

.shop-pantry-link {
    margin-top: 16px;
}

.shop-pantry-link a {
    font-size: 14px;
    font-weight: 700;
    color: #a85c32;
}

.shop-products {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 140px;
    max-width: 160px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0d8cc;
    border-radius: 10px;
    padding: 12px;
    background-color: #fff;
}

.shop-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f4efe9;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
}

.shop-product-name {
    display: block;
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.shop-product .shop-buy {
    display: inline-block;
    align-self: center;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a85c32;
    border: 1px solid #a85c32;
    border-radius: 4px;
    padding: 3px 10px;
}

.shop-product:hover {
    text-decoration: none;
}

.shop-product:hover .shop-buy {
    background-color: #a85c32;
    color: #fff;
}

@media (max-width: 768px) {
    .recipe-columns {
        flex-direction: column;
        gap: 8px;
    }

    .recipe-card {
        padding: 24px 20px;
    }
}
