/* =========================================================================
 * recip.css — Recipe listing (2 cards per row) + big recipe card
 * ====================================================================== */

.wiize-recipe-list {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0px 0 40px;
}

/* --- Hero: heading (left) + right banner ------------------------------- */
.wiize-recipe-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2ded9;
    margin-bottom: 44px;
    text-align: left;
}

/* Drop the theme pseudo-elements so they don't act as extra flex items
   (that phantom item was pushing the heading to the middle). */
.wiize-recipe-hero::before,
.wiize-recipe-hero::after {
    content: none;
    display: none;
}

.wrh-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.wrh-icon {
    color: #7A4C1F;
    margin-bottom: 18px;
}
.wrh-icon svg {
    width: 46px;
    height: 46px;
    fill: currentColor;
}

.wrh-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 56px;
    line-height: 1.05;
}

.wrh-date {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #222;
    font-family: "Work Sans", sans-serif;
}

/* Keep the sponsor plate from shrinking, and pinned to the right */
.wiize-recipe-hero .cat-editorial__sponsor {
    flex: 0 0 auto;
    margin-left: auto;
}

/* --- Grid: 2 recipes per row ------------------------------------------- */
.wiize-recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 64px;
    align-items: start;
}

/* --- Banner spacing ---------------------------------------------------- */
.np-focus-banner-section {
    margin: 56px 0;
}

/* --- Card -------------------------------------------------------------- */
.wiize-recipe-card-big {
    display: flex;
    flex-direction: column;
}

.wrc-title {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 600;
    color: #B3702D;
    font-size: 32px;
    line-height: 1.2;
}

.wrc-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
}

.wrc-pills li {
    background: #e3ded8;
    color: #4a4a4a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
}

.wrc-meta {
    margin-bottom: 18px;
}

.wrc-number {
    display: block;
    margin-bottom: 4px;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    line-height: 22px;
    color: #000;
}

.wrc-date {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2b2b2b;
    font-family: "Work Sans", sans-serif;
}

/* --- Two images side by side ------------------------------------------- */
.wrc-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
    text-decoration: none;
}

.wrc-images img.wrc-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

/* A single image spans the full width */
.wrc-images img.wrc-image:only-child {
    grid-column: 1 / -1;
}

/* --- Round buttons (static) -------------------------------------------- */
.wrc-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.wrc-btn-circle {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #efe9e2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wrc-btn-circle.is-active {
    background: #7A4C1F;
}

.wrc-btn-circle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- Summary ----------------------------------------------------------- */
.wrc-summary {
    margin: 0 0 28px;
    color: #000;
    font-size: 14px;
    line-height: 1.7;
    font-family: "Work Sans", sans-serif;
}

/* --- Discover button --------------------------------------------------- */
.wrc-actions {
    margin-top: auto;
}

.wrc-discover {
    display: inline-block;
    background: #7a5230;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 5px;
    transition: background .2s ease;
    font-family: "Work Sans", sans-serif;
}

.wrc-discover:hover {
    background: #653f22;
}

/* --- Empty state ------------------------------------------------------- */
.wiize-recipe-empty {
    color: #555;
    font-size: 16px;
    padding: 40px 0;
}

/* --- Responsive: stack to 1 column ------------------------------------- */
@media (max-width: 782px) {
    .wiize-recipe-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .wrc-images img.wrc-image {
        height: 220px;
    }
}


.wiize-single-recipe-hero  {
    position: relative;
    min-height: 660px;
    background-color: #3a3a32;
    background-size: cover;
    background-position: center;
    margin-bottom: 64px;
}

.recipe-hero__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -44px;
    background: rgba(250, 248, 244, 0.8);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    padding-top: 0px;
    padding-bottom: 40px;
}

.recipe-hero__panel-inner {
    width: min(92%, 1240px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
        padding-bottom: 20px;
}

.recipe-hero__name {
    margin: 0 0 22px;
}

.recipe-hero__name {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;;
    font-weight: 600;
    font-size: 60px;
    line-height: 0.8;
    color: #6B5539;
    font-style: italic;
    text-transform: capitalize;
    padding-top:10px;
}

.recipe_banner {
    padding-top:20px;
}

.recipe-hero__date {
    margin: 8px 0 0;
   font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6B5539;  
    line-height: 1.2;
}


/* --- Single recipe body: two columns 50/50 --- */
.recipe-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto 64px;
    padding: 0 clamp(16px, 4vw, 40px);
    box-sizing: border-box;
}
.recipe-body__col { min-width: 0; }

.recipe-body__portions {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 4px 0 14px;
}

.recipe-body__desc {
    color: #000;
    font-size: 14px;
    line-height: 1.7;
    font-family: "Work Sans", sans-serif;
}
.recipe-body__desc p { margin: 0 0 1em; }

/* --- Gallery slider (WiizeCart initHeroGallery) --- */
.recipe-body__col--media .product-hero__media-wrap { position: relative; }

.page-template-single-recipe .hero-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f2f0ec;
}
.page-template-single-recipe .recipe-body__col--media .hero-gallery .hero-gallery__img {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    inset: 0;
    transform: none !important;      /* убираем translate(-50%,-50%) из product.css */
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;     /* убираем max-height:520px из product.css */
    object-fit: cover;
    object-position: center;
    margin: 0;
    display: block;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;            /* клики — на барах, не на картинке */
}
.page-template-single-recipe .recipe-body__col--media .hero-gallery .hero-gallery__img.is-active {
    opacity: 1;
    pointer-events: auto;
}


.recipe-body__col--info .hero-action-icons {
    margin-top:20px;
}


.page-template-single-recipe .hero-gallery__img.is-active { opacity: 1; }

.page-template-single-recipe .hero-gallery__bars {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.page-template-single-recipe .hero-gallery__bar {
    flex: 1 1 auto;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 2px;
    background: #e0ddd8;
    cursor: pointer;
    transition: background .2s ease;
}
.hero-gallery__bar.is-active { background: #b3702d; }

@media (max-width: 900px) {
    .recipe-body { grid-template-columns: 1fr; gap: 28px; }
}


/* Kill the theme clearfix pseudo-elements so they don't become grid cells */
.recipe-body::before,
.recipe-body::after {
    content: none;
    display: none;
}


/* ==========================================================================
 * Single recipe — Section 3: Directions + sidebar
 * ========================================================================== */

.recipe-directions {
    display: grid;
    grid-template-columns: 1.7fr 1fr;   /* main | sidebar */
    gap: 56px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto 64px;
    padding: 0 clamp(16px, 4vw, 40px);
    box-sizing: border-box;
    background: #fdf9f3;
    border-radius:5px; 
    padding:40px;
}

/* Kill theme clearfix pseudo-elements so they don't become grid cells */
.recipe-directions::before,
.recipe-directions::after { content: none; display: none; }

.recipe-directions__main { min-width: 0; }
.recipe-directions__side { min-width: 0; }

/* ---- Headings ---- */
.recipe-directions__no {
    margin: 0 0 28px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 40px;
    color: #B3702D;
}
.recipe-directions__heading,
.recipe-side__title {
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 20px;
}

/* ---- Steps ---- */
.recipe-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recipe-step { margin-bottom: 26px; }

.recipe-step__label {
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 6px;
}
.recipe-step__text {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #000;
}

.recipe-step__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.recipe-step__images img {
    width: 100%;
    height: auto;          /* полная высота, без обрезки */
    object-fit: initial;   /* на случай, если тема ставит cover */
    display: block;
    border-radius: 2px;
}
.recipe-step__images img:only-child { grid-column: 1 / -1; }

/* ==========================================================================
 * Sidebar blocks
 * ========================================================================== */
.recipe-side__block {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e6e1d9;
}
.recipe-side__block:last-child { border-bottom: 0; }

/* ---- Chef ---- */
.recipe-chef__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.recipe-chef__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e6e1d9;
    flex: 0 0 auto;
}
.recipe-chef__name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 30px;
    color: #B3702D;
    font-weight: 600;
}

.recipe-chef__bio {
    margin: 0 0 18px;
    font-family: "Work Sans", sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: #000;
}
.recipe-chef__label {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #000;
    margin-bottom: 12px;
    font-weight:600;
}
.recipe-chef__badge {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e6e1d9;
}

/* ---- Video ---- */
.recipe-video__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.recipe-video__brand {
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #1a1a1a;
}
.recipe-video__thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #efece7;
    margin-bottom: 12px;
    text-decoration: none;
}

/* ---- Ingredients ---- */
.recipe-ingredients__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recipe-ingredients__list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 5px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.1;
    color: #B3702D;
    font-weight:500;
}
.recipe-ingredients__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #B3702D;
}

/* ==========================================================================
 * Responsive
 * ========================================================================== */
@media (max-width: 900px) {
    .recipe-directions {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


.np-recipe-wine-section {
    max-width: 1240px;
    margin: 0 auto 64px;
    padding: 0;
    box-sizing: border-box;
}
.page-template-single-recipe .np-selected-wine-heading {
    color: #8A765C;
        font-size: 32px;
}


.page-template-single-recipe .np-featured-showall {
    color: #CE0212 !important;
}

.page-template-single-recipe .np-featured-card-arrow {
background: #EA4140;
}

.page-template-single-recipe .np-focus-banner-section {
    margin-top: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 20px;
}
.page-template-single-recipe .event-selected {
padding-top:0px;
}
