@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Public+Sans:wght@100..900&display=swap');


@font-face {
	font-family: 'd-din';
	src: url('../../fonts/d-din/DIN-Condensed-Bold.ttf') format('truetype');
}


.recipe-popup-footer .footer-1 a {
    all: unset;
    text-decoration: none !important;
    cursor: pointer;
}
.ingredients-block {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
}
#popup-recipe-content td {
    color: #2D2F33;
    font-size: 16px;
    font-weight: 400;
    word-wrap: break-word;
    padding-left: 30px;
    position: relative;
    font-family: Public Sans;
}

#popup-recipe-content td::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-image: url(/wp-content/uploads/2025/12/wheat-blue.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 5px;
    position: absolute;
    left: 0;
}
#popup-recipe-content h3.wp-block-heading {
    color: #2D2F33;
    font-family: 'd-din';
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    font-family: 'd-din';
    text-transform: capitalize;
}
/* Header */
.recipes-header {
    text-align: center;
    margin-bottom: 40px;
}

.recipes-page-title {
    font-size: 48px;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0;
    letter-spacing: 2px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 30px;
}

/* Sort Filter */
.sort-filter {
    flex: 1;
}

.sort-filter label , .keyword-filter label{
    display: block;
    margin-bottom: 8px;
    color: #2D2F33;
    font-family: 'Figtree';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
}

.sort-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    line-height: 20px;
    min-height: 48px;
}

/* Keyword Filter */
.keyword-filter {
    flex: 2;
}


.search-input span.close-btn {
    display: inline-block;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

span.search-input {
    width: 100%;
    position: relative;
}

input#keyword-search {
    width: -webkit-fill-available;
}
.search-container {
    display: flex;
    gap: 10px;
    min-height: 48px;
    width: 100%;
}

.keyword-input {
    flex: 1;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    background: #fff;
}

.search-btn {
    all: unset;
    background: #0087DC;
    color: var(--WW-Yellow, #F9E49B);
    text-align: center;
    font-family: Figtree;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
    text-transform:capitalize;
    border:unset;
    min-height:48px;
    margin: 0px;
    font-size: 16px;
    min-width: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    gap: 10px;
    letter-spacing: 1px;
}

.search-btn:hover {
    background: #0087DC;
}

/* Taxonomy Filter */
.recipe-taxonomy-filter {
    margin-top: 20px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.filter-tag:hover,
.filter-tag.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}


.recipes-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
}


/* Recipe Card */
.recipe-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recipe-title {
    margin: 0px;
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
    color: #2D2F33;
    text-transform: uppercase;
    letter-spacing: 0;
    font-family: 'Deacon', 'Sharp Grotesk 20', sans-serif !important;
    min-height: 95px;
    word-wrap: break-word;
}

/* Recipe Meta */
.recipe-meta {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(54px, 1fr));
}

.recipe-prep,
.recipe-bake,
.recipe-cook,
.recipe-serves {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    flex: 1;
    font-size: 12px;
    color: #666;
}

.recipe-prep .icon,
.recipe-bake .icon,
.recipe-cook .icon,
.recipe-serves .icon {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.recipe-prep .label,
.recipe-bake .label,
.recipe-cook .label,
.recipe-serves .label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-size: 11px;
}

.recipe-prep .value,
.recipe-bake .value,
.recipe-cook .value,
.recipe-serves .value {
    color: #000;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 14px */
    font-family: 'Deacon', 'Sharp Grotesk 20', sans-serif !important;
    width: 100%;
}

/* View Recipe Button */
.view-recipe-btn {
    display: block;
    background: transparent;
    color: #2c5aa0;
    padding: 12px 20px;
    text-decoration: none;
    border: 2px solid #2c5aa0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-recipe-btn:hover {
    background: #2c5aa0;
    color: white;
}

/* Pagination */
.recipe-pagination {
    text-align: center;
    margin-top: 40px;
}

.recipe-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.recipe-pagination .page-numbers:hover,
.recipe-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* No recipes found */
.no-recipes-found {
    text-align: center;
    padding: 40px 20px;
    color: #000;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wb-recipes-archive-page {
        padding: 20px 15px;
    }
    
    .recipes-page-title {
        font-size: 36px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .recipes-filters {
        padding: 20px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .recipe-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .recipes-page-title {
        font-size: 28px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        align-self: flex-start;
        padding: 10px 20px;
        min-height: auto;
        width: -webkit-fill-available;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .recipe-meta {
        flex-direction: row;
        gap: 8px;
    }
    
    .recipe-prep,
    .recipe-bake,
    .recipe-cook,
    .recipe-serves {
        font-size: 11px;
    }
    
    .recipe-prep .icon,
    .recipe-bake .icon,
    .recipe-cook .icon,
    .recipe-serves .icon {
        font-size: 14px;
    }
}

/* Recipe Popup Modal */
.recipe-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.recipe-popup-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-popup-container {
    background: #F7F0E4;
    border-radius: 15px;
    max-width: 1400px;
    height: 85vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 1100px;
}
.recipe-popup-body .wp-block-columns {
    flex-direction: column;
}
.recipe-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}
.recipe-popup-close {
    all: unset;
    a;:;
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    border: none;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    margin: 0px;
    font-weight: 100;
}

.recipe-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.recipe-popup-content {
    display: flex;
}

.footer-2 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-popup-footer .footer-1 {
    display: grid;
    grid-template-columns: 70% auto;
    justify-content: space-between;
    align-items: center;
}

.recipe-popup-footer .footer-1 p {
    color: #2D2F33;
    /* font-family: Figtree; */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    margin: 0px;
    margin-bottom: 24px;
}

.button-container {
    display: flex;
    gap: 15px;
}

/* Left Half - Image */
.recipe-popup-image {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recipe-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Half - Content */
.recipe-popup-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F7F0E4;
    padding: 25px 25px 25px 0px;
}

.recipe-popup-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #eee;
    background: #F7F0E4;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}
.popup-extradata {
    color: #2D2F33;
    font-family: "Public Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: flex;
    align-items: center;
}

.recipe-popup-header h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #333;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-family: 'd-din';
}

.recipe-popup-excerpt {
    margin: 0 0 20px 0;
    font-style: normal;
    line-height: normal;
    color: #2D2F33;
    font-size: 16px;
    font-family: Public Sans;
    font-weight: 400;
    word-wrap: break-word;
}

.recipe-popup-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start !important;
}

.popup-prep, .popup-bake, .popup-serves, .popup-cook {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 5px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 20px;
}

.popup-prep .icon,
.popup-bake .icon,
.popup-serves .icon {
    font-size: 20px;
    margin-bottom: 0;
    display: flex;
}

.popup-prep .label,
.popup-bake .label,
.popup-serves .label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-size: 12px;
    color: #666;
}

.popup-prep .value, .popup-bake .value, .popup-serves, .popup-cook {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    font-family: "Public Sans", sans-serif;
}

.recipe-popup-body {
    flex: 1;
    padding: 0px 30px;
    overflow-y: auto;
    line-height: 1.6;
    min-height: 0;
    background: #F7F0E4;
}
.recipe-popup-body {
    font-family: Public Sans;
    color: #2D2F33;
    padding-bottom: 15px;
}

.recipe-popup-body h1,
.recipe-popup-body h2,
.recipe-popup-body h3,
.recipe-popup-body h4,
.recipe-popup-body h5,
.recipe-popup-body h6 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
// #1
    Banana and ricotta
color: #2D2F33;
    font-size: 32px;
    font-family: 'd-din';
    font-weight: 700;
    word-wrap: break-word;
}

.recipe-popup-body p {
    margin: 0px !important;
    line-height: 24px;
}

.recipe-popup-body ul,
.recipe-popup-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
    margin-top: 0;
}

.recipe-popup-body li {
    margin-bottom: 8px;
    color: #2D2F33;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    font-family: Public Sans;
    list-style: disc;
}

/* Recipe Popup Footer */
.recipe-popup-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #F7F0E4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-direction: column;
    padding-top: 0px;
}

.back-to-recipes-btn {
    all: unset;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 80px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    font-family: inherit;
    position: relative;
    display: block !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    gap: 10px;
    padding: 15px 25px 15px 15px !important;
}

.back-to-recipes-btn:hover {
    background: #0087DC;
}

.copyright-text {
    margin: 0;
    color: #2D2F33;
    text-align: right;
    font-family: 'Public Sans';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .recipe-popup-container {
        max-height: 95vh;
        margin: 10px;
    }
    
    .recipe-popup-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    
    .recipe-popup-image {
        height: 250px;
        flex: none;
    }
    
    .recipe-popup-details {
        flex: 1;
        min-height: 0;
        overflow: auto;
        display: block;
    }
    
    .recipe-popup-header {
        padding: 20px;
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .recipe-popup-header h2 {
        font-size: 20px;
    }
    
    .recipe-popup-meta {
        gap: 20px;
        justify-content: center;
    }
    
    .recipe-popup-body {
        padding: 20px;
    }
    
    .recipe-popup-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .recipe-popup-modal {
        padding: 10px;
    }
    
    .recipe-popup-header {
        padding: 15px;
    }
    
    .recipe-popup-body {
        padding: 15px;
        overflow: visible;
    }
    
    .recipe-popup-meta {
        gap: 15px;
    }
    
    .recipe-popup-footer {
        padding: 12px 15px;
    }
    
    .back-to-recipes-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .copyright-text {
        font-size: 11px;
    }
}
/* Loading and Error States */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
    font-size: 16px;
}

/* Body class when popup is open */
body.popup-open {
    overflow: hidden !important;
}

/* Update button styling to look like the original */
.view-recipe-btn {
    display: block;
    width: 100%;
    background: transparent;
    color: #0087DC;
    padding: 12px 20px;
    text-decoration: none;
    border: 2px solid #0087DC;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    margin: 0px;
}

.view-recipe-btn:hover {
    background: #0087DC;
    color: white;
    border-color: #0087DC !important;
}
p {}

.recipe-popup-footer .footer-1 {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
    gap: 8px;
    border-top: 1px solid;
    padding-top: 10px;
}

.recipe-popup-footer .footer-1 p {
    color: #2D2F33;
    /* font-family: 'Figtree'; */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    margin: 0px;
    margin-bottom: 10px !important;
    font-family: "Figtree", sans-serif;
}
.wisewheat-logo {
    flex: 0 0 20%;
}
.recipe-popup-footer .footer-1 .button-container {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-2 {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

button.back-to-recipes-btn.recipe-popup-close {
    height: auto !important;
}


.back-to-recipes-btn:hover svg {
    filter: invert(1);
}

.recipe-popup-footer .footer-1 a:hover {
    text-decoration: underline !important;
}

button.clear-btn {
    display: none !important;
}

button.clear-btn.visible {
    display: block !important;
}
#popup-recipe-content p {
    color: #2D2F33;
    font-size: 16px;
    font-family: Public Sans;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
}
button.view-recipe-btn:focus, .search-btn:focus {
    background: rgb(0, 135, 220);
    border-color: rgb(0, 135, 220);
    color: #fff;
}

span.close-btn {
    display: none !important;
}
span.close-btn.visible {
    display: inline-block !important;
}