/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
 */

/* Recipe Styles */
.recipe-container {
    color: #222222;
}

.recipe-container header.recipe-header {
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

@media screen and (min-width: 641px) {
    .recipe-container header.recipe-header {
        margin-bottom: 40px;
    }
}

@media screen and (min-width: 961px) {
    .recipe-container header.recipe-header {
        margin-bottom: 60px;
    }
}

.recipe-container header.recipe-header img {
    filter: blur(5px);
    left: 50%;
    min-height: 100%;
    min-width: 100%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
    z-index: 3;
}

.recipe-container .container-banner {
    padding-bottom: 10%;
    padding-top: 10%;
    position: relative;
    z-index: 5;
}

.recipe-container .container-banner:before {
    background: rgba(255, 255, 255, .5);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 5;
}

.recipe-container .container-banner * {
    position: relative;
    z-index: 10;
}

.recipe-container .container-banner h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

@media screen and (min-width: 641px) {
    .recipe-container .container-banner h1 {
        font-size: 40px;
    }
}

@media screen and (min-width: 961px) {
    .recipe-container .container-banner h1 {
        font-size: 60px;
    }
}

.recipe-container .container-banner h2.subtitle {
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

@media screen and (min-width: 961px) {
    .recipe-container .container-banner h2.subtitle {
        font-size: 20px;
    }
}

.recipe-container .row-flex {
    margin-bottom: 25px;
}

.recipe-container .row-flex .content-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.recipe-container .content-recipe .container-title {
    align-items: flex-start;
    border-top: 1px solid #BA793F;
    display: flex;
    margin-bottom: 20px;
    padding-top: 10px;
}

.recipe-container .content-recipe .container-title .title {
    font-size: 25px;
    font-weight: 700;
    flex: 1;
    padding-right: 15px;
}

@media screen and (max-width: 640px) {
    .recipe-container .content-recipe .container-title .title {
        padding-right: 0;
    }
}

.recipe-container .content-recipe .container-title a.print-button {
    color: black;
    font-size: 25px;
}

@media screen and (max-width: 640px) {
    .recipe-container .content-recipe .container-title a.print-button {
        display: none;
    }
}

.recipe-container .content-recipe .container-informations {
    display: flex;
}

.recipe-container .content-recipe .container-informations .informations {
    flex: 1;
    padding-right: 15px;
}

.recipe-container .content-recipe .container-informations .informations .info {
    display: flex;
}

.recipe-container .content-recipe .container-informations .informations .info:not(:first-child) {
    margin-top: 20px;
}

.recipe-container .content-recipe .container-informations .informations .info .info-title {
    align-items: center;
    display: flex;
    font-weight: 700;
    flex: 1;
    padding-right: 5px;
}

.recipe-container .content-recipe .container-informations .informations .info .info-title:before {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    display: block;
    height: 16px;
    margin-right: 8px;
    width: 16px;
}

.recipe-container .content-recipe .container-informations .informations .info.category .info-title:before {
    background-image: url('assets/images/course.svg');
}

.recipe-container .content-recipe .container-informations .informations .info.preparation_time .info-title:before {
    background-image: url('assets/images/prep-time.svg');
}

.recipe-container .content-recipe .container-informations .informations .info.cooking_time .info-title:before {
    background-image: url('assets/images/cook-time.svg');
}

.recipe-container .content-recipe .container-informations .informations .info.servings .info-title:before {
    background-image: url('assets/images/servings.svg');
}

.recipe-container .content-recipe .container-informations .info .info-content {
    flex: 1;
}

.recipe-container .content-recipe .container-informations .image-information {
    width: 100px;
}

.recipe-container .content-recipe .container-informations .image-information img {
    display: block;
}

.recipe-container .content-recipe .content-description {
    margin-top: 20px;
}

.recipe-container .content-recipe .content-description h3 {
    align-items: center;
    background: #665546;
    color: white;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: 0;
    padding: 5px 10px;
    text-transform: uppercase;
}

.recipe-container .content-recipe .content-description ul,
.recipe-container .content-recipe .content-description ol {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}

.recipe-container .content-recipe .content-description li:not(:last-child) {
    margin-bottom: 8px;
}

.recipe-container .content-recipe .content-description .ingredient ul li {
    padding-left: 12px;
    position: relative;
}

.recipe-container .content-recipe .content-description .ingredient ul li:before {
    background: #665546;
    border-radius: 50%;
    content: '';
    height: 6px;
    left: 0;
    position: absolute;
    top: 8px;
    width: 6px;
}

.recipe-container .content-recipe .content-description .instruction ol {
    counter-reset: step;
}

.recipe-container .content-recipe .content-description .instruction ol li {
    counter-increment: step;
}

.recipe-container .content-recipe .content-description .instruction ol li:before {
    content: counter(step) ") ";
    font-weight: bold;
    margin-right: 8px;
}

.recipe-container .featured-products {
    margin-bottom: 25px;
    margin-top: 25px;
    padding-top: 25px;
    position: relative;
}

.recipe-container .featured-products:before {
    background: #BA793F;
    content: '';
    display: block;
    height: 1px;
    left: calc(50% - 50px);
    position: absolute;
    top: 0;
    width: 100px;
}

.recipe-container .featured-products h2 {
    margin-bottom: 25px;
    margin-top: 0;
    text-align: center;
}

.recipe-container .featured-products .container-products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.recipe-container .featured-products .product-item {
    margin-bottom: 15px;
    padding: 0 15px;
    width: 50%;
}

@media screen and (min-width: 641px) {
    .recipe-container .featured-products .product-item {
        width: 25%;
    }
}

.recipe-container .featured-products .product-item a {
    display: block;
    overflow: hidden;
}

.recipe-container .featured-products .product-item .image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 0;
    padding-top: 100%;
    transition: .3s;
}

.recipe-container .featured-products .product-item a:hover .image {
    transform: scale(1.1);
}

.recipe-container .featured-products .product-item .product-title {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* Archive Filter Styles */
.filter-custom {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-custom li.active a {
    color: #BA793F;
    font-weight: bold;
}

/* Loop Item Styles */
.custom-items {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
}

@media screen and (min-width: 1024px) {
    .custom-items.wd-grid-col-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .custom-items.wd-grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .custom-items.wd-grid-col-3,
    .custom-items.wd-grid-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .custom-items {
        grid-template-columns: repeat(1, 1fr);
    }
}

.custom-item .content-custom {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 15px;
    transition: .3s;
}

.custom-item .content-custom:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.custom-item .image-custom {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 0;
    padding-top: 66%;
    margin-bottom: 15px;
    position: relative;
}

.custom-item .image-custom a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.custom-item h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.custom-item .taxonomy a {
    font-size: 12px;
    text-transform: uppercase;
    color: #BA793F;
}

@media print {
    body.single-recipe #header,
    body.single-recipe .footer-container,
    body.single-recipe .wd-page-title {
        display: none !important;
    }
}
