/*
 * Theme Name:  Mickelberry's
 * Theme URI:   https://overtimeagency.com
 * Description: Mickelberry's child theme for IPC Base. Brand overrides only — no structural CSS.
 * Author:      Jason Ackerman
 * Author URI:  https://overtimeagency.com
 * Template:    ipc-base
 * Version:     1.1.8
 * Text Domain: mickelberry
 *
 * Brand Palette:
 *   Green  #337443  — primary, header, footer
 *   Red    #ed1b2e  — secondary, CTAs, accents
 *   White  #ffffff  — text on dark, accent
 */

/* ============================================================
   1. BRAND COLOR TOKENS
   ============================================================ */

:root {
    --color-primary:           #337443;
    --color-primary-dark:      #255533;
    --color-primary-light:     #4a9a5c;
    --color-secondary:         #ed1b2e;
    --color-accent:            #ffffff;

    --btn-bg:                  #ed1b2e;
    --btn-bg-hover:            #be1525;
    --btn-border-color:        #ed1b2e;
    --btn-color:               #ffffff;

    /* Set directly — prevents variable chain from pulling red */
    --header-top-bg:           #337443;
    --header-brand-bg:         #337443;
    --header-text-color:       #ffffff;
    --header-hover-color:      #ed1b2e;

    --footer-bg:               #337443;
    --footer-text:             #ffffff;
    --footer-link-color:       rgba(255,255,255,0.8);
    --footer-link-hover:       #ffffff;

    --nav-color:               #ffffff;
    --nav-hover-color:         #ed1b2e;

    --product-flip-bg:         #337443;
    --product-flip-back-bg:    #ed1b2e;
    --product-nutrition-bg:    #337443;
    --product-scroll-arrow-bg: #337443;
    --product-tab-active-color:#337443;

    --recipe-tag-bg:           #337443;
    --recipe-tag-hover-bg:     #ed1b2e;
    --recipe-meta-color:       #337443;
}


/* ============================================================
   2. TYPOGRAPHY TOKENS
   ============================================================ */

:root {
    --font-display:  'cooper-black-std', Georgia, serif;
    --font-heading:  'cooper-black-std', Georgia, serif;
    --font-primary:  'cronos-pro', 'Helvetica Neue', Arial, sans-serif;
    --font-body:     'cronos-pro', 'Helvetica Neue', Arial, sans-serif;
    --font-script:   'caveat-brush', sans-serif;
}


/* ============================================================
   3. TYPOGRAPHY OVERRIDES
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
}

.btn {
    font-family: 'cronos-pro', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5em 1.75em;
    border-radius: var(--radius-sm);
}


/* ============================================================
   4. HEADER — SINGLE GREEN BAR + HANGING LOGO
   .header-brand is collapsed to zero height but kept visible
   so the logo (which lives inside it) can hang out the bottom.
   ============================================================ */

.header-top {
    background-color: #337443;
}

/* Collapse brand row to zero height — logo hangs out via overflow */
.header-brand {
    background-color: #337443;
    height: 0;
    line-height: 0;
    font-size: 0;
    overflow: visible;
    position: relative;
    z-index: 200;
}

.header-brand .site-wrapper {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
    position: relative;
}

/* Logo sits at the top of the zero-height row, transform pulls it up 50% */
.site-branding {
    position: absolute;
    top: 0;
    left: var(--wrapper-padding);
    transform: translateY(-20%);
    z-index: 201;
}

.site-logo {
    max-width: 320px !important;
    max-height: none !important;
    height: auto !important;
    width: auto;
    display: block;
    transition: max-width var(--transition-base);
}

/* Hero flush to green bar — no gap */
.home-banner {
    margin-top: 0;
}


/* ============================================================
   5. NAVIGATION — RIGHT-ALIGNED + PIPE SEPARATORS
   ============================================================ */

/* Nav pushes itself right with margin-left: auto */
.primary-nav {
    flex: 0 !important;
    margin-left: auto;
}

/* Pipe separators — li must be flex so ::before sits inline with <a> */
.primary-nav .nav-menu li {
    display: flex;
    align-items: center;
}

.primary-nav .nav-menu li + li::before {
    content: '|';
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    pointer-events: none;
    speak: none;
    padding: 0 0.2rem;
    line-height: 1;
}

.primary-nav .nav-menu li a {
    padding: 0.75rem 0.6rem;
    font-family: var(--font-primary);
}


/* ============================================================
   6. STICKY HEADER — stays green, logo shrinks
   ============================================================ */

.site-header.is-sticky {
    background-color: #337443;
}

.site-header.is-sticky .header-top,
.site-header.is-sticky .header-brand {
    background-color: #337443;
}

.site-header.is-sticky .site-logo {
    max-width: 180px !important;
}


/* ============================================================
   7. HERO — full width, no content box, clean overlay
   ============================================================ */

.home-banner-track,
.home-banner-slide {
    min-height: 560px;
}

.home-banner-slide::before {
    background: rgba(0, 0, 0, 0.25);
}

.home-banner .home-banner-content {
    background: none;
    text-align: left;
    padding: var(--space-xl) var(--space-2xl);
    max-width: 680px;
}

.home-banner .home-banner-heading {
    font-family: var(--font-display) !important;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
    .home-banner-track,
    .home-banner-slide { min-height: 360px; }
    .home-banner .home-banner-content { padding: var(--space-lg); }
}


/* ============================================================
   8. SECTION COLOR UTILITIES
   ============================================================ */

.has-red-bg,
.red-container-block {
    background-color: #ed1b2e;
    color: #ffffff;
}

.has-red-bg h2, .has-red-bg h3,
.red-container-block h2, .red-container-block h3 {
    color: #ffffff;
}

.has-green-bg,
.join-form-section {
    background-color: #337443;
    color: #ffffff;
}

.has-green-bg h2, .has-green-bg h3,
.join-form-section h2, .join-form-section h3 {
    color: #ffffff;
    font-family: var(--font-display);
}


/* ============================================================
   9. CIRCLE FLIP — VALUE PROPS
   ============================================================ */

.circle-flip-section {
    background-color: #222222;
}

.circle-flip-item {
    width: 320px;
}

.circle-flip-card {
    width: 300px;
    height: 300px;
}

.circle-flip-title {
    color: #ffffff;
    font-size: 2rem;
    font-family: var(--font-script) !important;
    font-weight: 400;
}

.circle-flip-front {
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.circle-flip-front img {
    border-radius: 50%;
}

.circle-flip-back p {
    font-size: 1.1rem;
    line-height: 1.35;
}


/* ============================================================
   10. BARN BANNER — SECTION 3
   ============================================================ */

#barn-banner .home-banner-track,
#barn-banner .home-banner-slide {
    min-height: 500px;
}

/* Lighter overlay — let the barn photo breathe */
#barn-banner .home-banner-slide::before {
    background: rgba(0, 0, 0, 0.15);
}

/* Center button vertically and horizontally */
#barn-banner .home-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: none;
    padding: var(--space-2xl) var(--wrapper-padding);
    width: 100%;
}

/* Button centered, no heading image involved */
#barn-banner .btn {
    margin: 0 auto;
}



/* ============================================================
   11. PRODUCT ASSORTMENT IMAGE
   ============================================================ */

.wp-block-image.product-assortment {
    background-color: #ed1b2e;
    text-align: center;
    margin-top: -20%;
    margin-bottom: 0;
    padding: 0 var(--wrapper-padding);
}

.wp-block-image.product-assortment img {
    max-width: 400px;
    width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Barn banner button — white glow to stand out against the photo */
#barn-banner .btn {
    box-shadow: 0 0 30px 15px rgba(255, 255, 255, 0.5);
}


/* ============================================================
   12. PRODUCTS SECTION
   ============================================================ */

/* Paragraph max-width */
.brand-container p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Product card label — caveat font, green */
.product-category-card__label {
    font-family: var(--font-script) !important;
    color: #337443 !important;
    font-size: 1.25rem;
}

/* Product card back — green bg, white text */
.product-category-card__back {
    background-color: #337443 !important;
}

.product-category-card__back p {
    color: #ffffff !important;
}

/* All Products button — caveat font */
.brand-container .wp-block-button .wp-block-button__link,
.brand-container .btn {
    font-family: var(--font-script) !important;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: none;
}


/* ============================================================
   13. RECIPES CTA — TWO COLUMN OVERRIDE
   ============================================================ */

.recipes-cta--mickelberry {
    background-color: #ed1b2e;
    background-image: none !important;
    padding: var(--space-3xl) 0;
}

.recipes-cta--mickelberry::before {
    display: none;
}

.recipes-cta.recipes-cta--mickelberry .recipes-cta-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: var(--space-3xl);
    text-align: left;
}

.recipes-cta-polaroid {
    flex: 0 0 auto;
    max-width: 420px;
}

.recipes-cta-polaroid img {
    width: 100%;
    height: auto;
    display: block;
}

.recipes-cta-content {
    flex: 0 1 420px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.recipes-cta--mickelberry h2 {
    color: #ffffff;
    font-family: 'cooper-black-std', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin: 0;
}

.recipes-cta-subtitle {
    font-family: 'caveat-brush', sans-serif !important;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.recipes-cta--mickelberry .btn {
    align-self: flex-start;
    font-family: 'caveat-brush', sans-serif !important;
    font-size: 1.25rem;
    text-transform: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
    padding: 0.5em 2em;
}

.recipes-cta--mickelberry .btn:hover {
    background: #ffffff;
    color: #ed1b2e;
}

@media (max-width: 768px) {
    .recipes-cta--mickelberry .recipes-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .recipes-cta--mickelberry .btn { align-self: center; }
    .recipes-cta-polaroid { max-width: 280px; }
}


/* ============================================================
   14. LOYALTY CLUB — JOIN FORM SECTION
   ============================================================ */

/* Green background — override the dark default */
.join-form-section {
    background-color: #337443 !important;
    padding-top: var(--space-2xl);
}

/* Header — centered layout */
.join-form-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
}

.join-form-header {
    align-items: center;
    text-align: center;
    max-width: 680px;
}

.join-form-header h2 {
    font-family: 'cooper-black-std', serif !important;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    order: 1;
}

.join-form-header .eyebrow {
    font-family: 'caveat-brush', sans-serif !important;
    font-size: 1.5rem;
    color: #ffffff;
    order: 2;
}

.join-form-header p {
    order: 3;
    color: rgba(255,255,255,0.85);
}

/* Ham product image */
.wp-block-image.loyalty-ham {
    background-color: #337443;
    text-align: center;
    margin-top: -8%;
    margin-bottom: 0;
    padding: 0;
}

.wp-block-image.loyalty-ham img {
    max-width: 250px;
    width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---- Mailchimp embed overrides ---- */

/* Hide Facebook widget */
.join-form-section .fb-like,
.join-form-section .fb_iframe_widget {
    display: none !important;
}

/* Reset Mailchimp CDN styles */
.join-form-section #mc_embed_signup {
    background: transparent !important;
    font-family: 'cronos-pro', sans-serif !important;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* 2-column grid for fields */
.join-form-section #mc_embed_signup_scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
}

/* Full-width items */
.join-form-section .mc-field-group.acceptance,
.join-form-section #mce-responses,
.join-form-section .clear {
    grid-column: 1 / -1;
}

/* Input styling */
.join-form-section .mc-field-group input[type="text"],
.join-form-section .mc-field-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'cronos-pro', sans-serif;
    box-sizing: border-box;
}

.join-form-section .mc-field-group input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Checkbox row */
.join-form-section .mc-field-group.acceptance {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-align: left;
}

.join-form-section .mc-field-group.acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.join-form-section .mc-field-group.acceptance input[type="checkbox"] {
    flex-shrink: 0 !important;
    margin-top: 0.2rem;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    accent-color: #ed1b2e;
}

.join-form-section .mc-field-group.acceptance input[type="checkbox"] {
    display: inline-block !important;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    accent-color: #ed1b2e;
    cursor: pointer;
}

/* Submit button — red, caveat font */
.join-form-section #mc-embedded-subscribe {
    background-color: #ed1b2e !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'caveat-brush', sans-serif !important;
    font-size: 1.4rem !important;
    padding: 0.6em 2.5em !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    text-transform: none !important;
    line-height: 1.5 !important;
    height: auto !important;
    width: auto !important;
    min-width: 200px;
    display: block;
    margin: var(--space-md) auto 0;
    transition: background-color var(--transition-base);
}

.join-form-section #mc-embedded-subscribe:hover {
    background-color: #be1525 !important;
}



/* ============================================================
   PRODUCTS LANDING — red section behind heading + category grid
   .products-page-content is unique to page-products.php, so this
   is inherently scoped to the Products page template.
   ============================================================ */
.products-page-content {
    background-color: #ed1b2e;              /* brand red (--color-secondary) */
    padding: var(--section-padding) 0;
    text-align: center;
}

.products-page-content > .wp-block-heading {
    color: #ffffff;
    text-align: center;
}


/* ============================================================
   PRODUCTS BANNER — hero (ported from Scott Pete, brand-adapted)
   ipc-base has no .products-banner CSS, so the section collapsed
   to 0px. This gives it height + cover image; the floating product
   cluster overlaps down into the red section below.
   ============================================================ */
.products-banner {
    position: relative;
    width: 100%;
    min-height: 68vh;
    background-color: #337443;               /* brand green fallback */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 150px;                    /* room for the floating cluster */
    overflow: visible;
}

/* Keep the food photo bright; just blend the bottom edge into the red band */
.products-banner-overlay {
    position: absolute;
    inset: 0;
    background: none;   /* gradient removed per comp */
}

.products-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-4xl, 4rem) var(--wrapper-padding, 1.5rem) var(--space-xl, 2rem);
    max-width: 900px;
}

.products-banner-subtitle {
    display: block;
    color: #ffffff;
    font-family: var(--font-display), sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm, 0.75rem);
}

.products-banner-title {
    color: #ffffff;
    font-family: var(--font-display), serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin: 0 0 var(--space-md, 1rem);
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.products-banner-body {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
}

/* Floating product cluster PNG — overlaps down into the red section */
.products-banner-product {
    position: absolute;
    bottom: -110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 440px;
    max-width: 90vw;
    pointer-events: none;
}
.products-banner-product img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

/* Extra top room in the red section so the floating cluster clears the heading */
.products-page-content {
    padding-top: calc(var(--section-padding) + 120px);
}

@media (max-width: 768px) {
    .products-banner { padding-bottom: 100px; min-height: 52vh; }
    .products-banner-product { width: 330px; bottom: -60px; }
    .products-page-content { padding-top: calc(var(--section-padding) + 70px); }
}

/* Loyalty block is the last section here — let it meet the footer instead of
   leaving a strip of the red wrapper's bottom padding below it. */
.products-page-content { padding-bottom: 0; }


/* ============================================================
   FOOTER — white background, green nav, dark copyright (per comp)
   Overrides ipc-base's green footer palette for Mickelberry.
   ============================================================ */
.site-footer {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* Nav links: green, with pipe dividers between items */
.footer-nav .footer-menu { gap: 0.4rem 0; }
.footer-nav .footer-menu li { display: flex; align-items: center; }
.footer-nav .footer-menu li a { color: #337443 !important; }
.footer-nav .footer-menu li a:hover { color: #ed1b2e !important; }
.footer-nav .footer-menu li:not(:last-child)::after {
    content: "|";
    color: #337443 !important;
    opacity: 0.5;
    margin: 0 0.85em;
    font-weight: 400;
}

/* Copyright + legal links: dark, not green */
.footer-copyright { color: #333333 !important; }
.footer-legal-link { color: #333333 !important; font-weight: 600; }
.footer-legal-link:hover { color: #ed1b2e !important; }
.footer-legal-sep { color: #999999 !important; }


/* ============================================================
   RECIPES — hub slider, category list, single detail
   ------------------------------------------------------------
   ipc-base outputs all the recipe markup (recipe-flip-card slider,
   recipe-list-grid cards, recipe-detail-section card). This block
   brands it to the Mickelberry recipe comp: black "Browse Recipes
   By Category" slider with green flip-cards, red hero, green category
   list with green/red stat badges, white single-recipe card with a
   green Cooper title and red script intro.

   !important is used throughout on purpose: ipc-base/css/recipes.css
   is enqueued AFTER this stylesheet and wins on anything unflagged
   (same load-order quirk noted on the product-card rules above).
   Local tuning knobs live in the :root-ish block right below.
   ============================================================ */

.recipe-category-section,
.recipe-list-section,
.recipe-detail-section,
.recipe-hero {
    --rcp-green:          #337443;
    --rcp-green-light:    #4a9a5c;
    --rcp-green-dark:     #255533;
    --rcp-red:            #ed1b2e;
    --rcp-ink:            #1c1c1c;
    --rcp-pill-size:      58px;
    --rcp-card-photo:     190px;
}

/* ============================================================
   1. BROWSE RECIPES BY CATEGORY — slider (archive, taxonomy, single)
   ============================================================ */

.recipe-category-section {
    background-color: #111111 !important;
    padding: var(--space-2xl) 0 var(--space-2xl) !important;
}

/* When the slider is the first section (single + taxonomy views), add top
   room so the hanging logo clears the "Browse Recipes By Category" heading.
   On the archive the red hero is first, so this doesn't apply there. */
.site-main > .recipe-category-section:first-child {
    padding-top: 140px !important;
}

/* Section heading — added via CSS so it shows on every view that
   renders the slider (the parts template has no <h2> of its own). */
.recipe-category-section .site-wrapper {
    position: relative;
}
.recipe-category-section .site-wrapper::before {
    content: "Browse Recipes By Category";
    display: block;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-display), serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 var(--space-xl);
}

/* Track — horizontal, scrollable */
.recipe-category-section .recipe-grid-track {
    display: flex !important;
    gap: var(--space-lg) !important;
    align-items: stretch !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-sm);
}

/* Card — portrait tile, perspective for the flip */
.recipe-flip-card {
    flex: 0 0 auto !important;
    width: 200px !important;
    height: 264px !important;
    perspective: 1000px;
    scroll-snap-align: start;
}
.recipe-flip-card > a {
    display: block !important;
    position: relative !important;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 3D flip container */
.recipe-flip-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transform-style: preserve-3d !important;
    transition: transform 0.5s ease !important;
}
.recipe-flip-card:hover .recipe-flip-inner,
.recipe-flip-card:focus-within .recipe-flip-inner {
    transform: rotateY(180deg) !important;
}

/* Faces */
.recipe-flip-front,
.recipe-flip-back {
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 4px;
    overflow: hidden;
}

/* Front — white photo card, title below the photo (matches
   .product-category-card__front: image + label stacked in normal
   flow, not overlaid on the photo). */
.recipe-flip-front {
    background-color: #ffffff !important;
    border: 4px solid #ffffff !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    transform: rotateY(0deg) !important;
}
.recipe-flip-front img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    display: block !important;
}
/* Fixed to a 2-line-tall box (line-height 1.2 x 2 + vertical padding
   allowance of 1em) so every card reserves the same label height —
   a 1-line title just centers in the extra room instead of shrinking
   the photo above it. Keeps all photos the same height regardless of
   title length. */
.recipe-flip-front-label {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box !important;
    height: 3.4em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    color: var(--rcp-green) !important;
    font-family: var(--font-script), sans-serif !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.25rem !important;
    line-height: 1.2;
    text-align: center;
    padding: 0 0.5em !important;
}

/* Back — solid green with the category name */
.recipe-flip-back {
    background-color: var(--rcp-green) !important;
    border: 4px solid var(--rcp-green) !important;
    transform: rotateY(180deg) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.recipe-flip-back h3 {
    color: #ffffff !important;
    font-family: var(--font-display), serif !important;
    font-size: 1.5rem !important;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Active category (taxonomy view) — front already flipped to green */
.recipe-flip-card--active .recipe-flip-front {
    background-color: var(--rcp-green) !important;
    border-color: var(--rcp-green) !important;
    justify-content: center !important;
}
.recipe-flip-card--active .recipe-flip-front img { display: none !important; }
.recipe-flip-card--active .recipe-flip-front-label {
    background-color: transparent !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
}

/* No-image fallback: keep the card readable as a green tile */
.recipe-flip-front:not(:has(img)) {
    background-color: var(--rcp-green) !important;
    border-color: var(--rcp-green) !important;
    justify-content: center !important;
}
.recipe-flip-front:not(:has(img)) .recipe-flip-front-label {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Scroll arrows — green circles */
.recipe-scroll-arrows {
    display: flex !important;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
.recipe-scroll-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background-color: var(--rcp-green) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base);
}
.recipe-scroll-arrow:hover { background-color: var(--rcp-green-dark) !important; }


/* ============================================================
   2. RECIPE HERO — red banner + polaroid  (archive-recipe.php)
   ============================================================ */

.recipe-hero {
    background-color: var(--rcp-red) !important;
    color: #ffffff;
    /* extra top room so the hanging logo sits over the hero, not the content */
    padding: 96px 0 var(--space-3xl);
}
.recipe-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

/* Polaroid — white frame, thicker bottom edge, slight tilt */
.recipe-hero-polaroid {
    flex: 0 0 auto;
    background: #ffffff;
    padding: 14px 14px 44px;
    border-radius: 2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transform: rotate(-4deg);
    max-width: 340px;
    width: 100%;
    text-align: center;
}
.recipe-hero-polaroid img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.recipe-hero-polaroid-caption {
    display: block;
    margin-top: 12px;
    font-family: var(--font-script), sans-serif;
    font-size: 1.5rem;
    color: var(--rcp-green);
    line-height: 1;
}

.recipe-hero-text { flex: 0 1 460px; }
.recipe-hero-title {
    color: #ffffff !important;
    font-family: var(--font-display), serif !important;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.08;
    margin: 0;
}

@media (max-width: 768px) {
    .recipe-hero-inner { flex-direction: column; text-align: center; gap: var(--space-xl); }
    .recipe-hero-polaroid { max-width: 260px; }
}


/* ============================================================
   3. CATEGORY LIST — green section, circular cards, stat badges
      (taxonomy-recipe_category.php)
   ============================================================ */

.recipe-list-section {
    background-color: var(--rcp-green) !important;
    padding: var(--space-3xl) 0 !important;
}

.recipe-list-section .back-to-recipes { display: none !important; }

.recipe-list-title {
    color: #ffffff !important;
    font-family: var(--font-display), serif !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    margin: 0 0 var(--space-2xl) !important;
}

.recipe-list-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-2xl) var(--space-xl) !important;
}

.recipe-card { text-align: center; }
.recipe-card-link { text-decoration: none !important; display: block; }

/* Circular photo (renders when the recipe has a featured image) */
.recipe-card-body img {
    width: var(--rcp-card-photo) !important;
    height: var(--rcp-card-photo) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 5px solid #ffffff !important;
    margin: 0 auto var(--space-md) !important;
    display: block;
}

.recipe-card-title {
    color: #ffffff !important;
    font-family: var(--font-display), serif !important;
    text-transform: none !important;
    font-size: 1.35rem !important;
    line-height: 1.15;
    min-height: 2.3em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 0 var(--space-md) !important;
}

/* Stat badges — prep (green) / total (red) / servings (dark) */
.recipe-card .recipe-meta,
.recipe-detail-section .recipe-meta {
    display: flex !important;
    justify-content: center !important;
    gap: var(--space-lg) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.recipe-meta-item {
    position: relative !important;
    width: var(--rcp-pill-size) !important;
    height: var(--rcp-pill-size) !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
}
.recipe-meta-item:nth-child(1) { background-color: var(--rcp-green-light) !important; }
.recipe-meta-item:nth-child(2) { background-color: var(--rcp-red) !important; }
.recipe-meta-item:nth-child(3) { background-color: var(--rcp-green-dark) !important; }

.recipe-meta-value {
    font-family: var(--font-display), serif !important;
    font-size: 1.05rem !important;
    line-height: 1;
    color: #ffffff !important;
    text-align: center;
    padding: 0 3px;
}
/* Servings often holds a wordy value ("48 ham balls", "4 - 8 servings").
   Shrink it so it fits the circle. Cleanest long-term fix is to store a
   short count in _recipe_servings — see deploy notes. */
.recipe-meta-item:nth-child(3) .recipe-meta-value {
    font-family: var(--font-primary), sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.6rem !important;
    line-height: 1.05 !important;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.recipe-meta-unit {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.85);
    text-transform: lowercase;
}
.recipe-meta-label {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
    .recipe-list-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .recipe-list-grid { grid-template-columns: 1fr !important; }
}


/* ============================================================
   4. SINGLE RECIPE — white card, 2-col  (single-recipe.php)
   ============================================================ */

.recipe-detail-section {
    background-color: #f4f4f2 !important;
    padding: var(--space-2xl) 0 var(--space-3xl) !important;
}

/* White card shell */
.recipe-detail-section > .site-wrapper {
    position: relative;
    background-color: #ffffff;
    border: 2px solid rgba(51, 116, 67, 0.28);
    border-radius: 22px;
    padding: var(--space-3xl) 5%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.recipe-detail-section .back-to-recipes { display: none !important; }

.recipe-detail-layout {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    gap: var(--space-2xl) var(--space-3xl) !important;
    align-items: start;
}
.recipe-detail-content,
.recipe-detail-visual { display: block; }

/* Title — green Cooper */
.recipe-detail-title {
    color: var(--rcp-green) !important;
    font-family: var(--font-display), serif !important;
    text-transform: none !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.05 !important;
    margin: 0 0 var(--space-sm) !important;
}

/* Intro — red italic */
.recipe-detail-intro,
.recipe-detail-intro p {
    color: var(--rcp-red) !important;
    font-style: italic;
    font-size: 1.1rem;
    margin: 0 0 var(--space-xl);
}

/* Section labels — bold ink, no underline */
.recipe-detail-section .recipe-section-title {
    color: var(--rcp-ink) !important;
    font-family: var(--font-display), serif !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-size: 1.15rem !important;
    text-transform: none !important;
    margin: var(--space-lg) 0 var(--space-sm) !important;
}

/* Ingredient + direction body */
.recipe-detail-section .recipe-ingredients-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.recipe-detail-section .recipe-ingredients-list li {
    color: #333333 !important;
    border-bottom: none !important;
    padding: 1px 0 !important;
}
.recipe-ingredients-section-header {
    font-family: var(--font-display), serif !important;
    font-size: 0.95rem !important;
    color: var(--rcp-ink) !important;
    margin: var(--space-md) 0 var(--space-xs) !important;
}

/* Directions — drop the auto-numbering (comp shows plain steps) */
.recipe-detail-section .recipe-directions-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.recipe-detail-section .recipe-directions-list li {
    border-bottom: none !important;
    padding: 3px 0 !important;
    display: block !important;
}
.recipe-detail-section .recipe-step-number { display: none !important; }
.recipe-detail-section .recipe-step-text { color: #333333 !important; }

/* Actions — SHARE (red) / PRINT (green) */
.recipe-detail-section .recipe-actions {
    display: flex !important;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
.recipe-detail-section .recipe-action-btn {
    border: none !important;
    border-radius: 4px;
    padding: 0.55em 1.8em !important;
    font-family: var(--font-script), sans-serif !important;
    font-size: 1.15rem !important;
    text-transform: none !important;
    letter-spacing: 0;
    cursor: pointer;
    color: #ffffff !important;
    background-color: var(--rcp-red) !important;
}
.recipe-detail-section .recipe-action-btn + .recipe-action-btn {
    background-color: var(--rcp-green) !important;
}
.recipe-detail-section .recipe-action-btn:hover { filter: brightness(0.92); }

/* ---- Right column ---- */

/* Product polaroid (renders when a package/where-to-buy image is set) */
.recipe-detail-package {
    text-align: center;
    background: #ffffff;
    padding: 12px 12px 34px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.2);
    transform: rotate(3deg);
    max-width: 300px;
    margin: 0 auto var(--space-lg);
}
.recipe-detail-package img {
    width: 100%;
    height: auto;
    display: block;
}

/* Where-to-buy — red script link under the product */
.recipe-detail-wtb {
    display: block;
    text-align: center;
    font-family: var(--font-script), sans-serif;
    font-size: 1.4rem;
    color: var(--rcp-red);
    margin: 0 auto var(--space-lg);
}

/* Circular food photo (renders when the recipe has a featured image) */
.recipe-detail-photo {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    max-width: 340px;
    margin: 0 auto var(--space-lg);
}
/* !important needed: ipc-base/css/recipes.css sets `height: auto` on this
   same selector and is enqueued after the child stylesheet, so the photo was
   sitting at its natural aspect ratio inside the circle instead of filling it. */
.recipe-detail-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Meta pills in the right column — labels are dark on the white card */
.recipe-detail-section .recipe-meta { margin-top: var(--space-md) !important; }
.recipe-detail-section .recipe-meta-label { color: #777777 !important; }
.recipe-detail-section .recipe-meta-unit { color: rgba(255,255,255,0.9) !important; }

.recipe-detail-section .recipe-related { display: none !important; }

@media (max-width: 900px) {
    .recipe-detail-layout { grid-template-columns: 1fr !important; }
    .recipe-detail-visual { order: -1; }
}


/* ============================================================
   PRODUCTS — category slider + single-product detail  (Mickelberry)
   ------------------------------------------------------------
   ipc-base/css/products.css renders the category slider on a dark
   band with translucent-black card labels, and the detail section
   in neutral greys. This block brands both to match what the
   /products/ landing page already looks like: red band, white-framed
   portrait cards, caveat-brush green labels, green flip-backs.

   !important throughout on purpose — ipc-base/css/products.css is
   enqueued AFTER this stylesheet and wins on anything unflagged
   (same load-order quirk noted on the recipe + product-card rules).
   ============================================================ */

.product-category-section,
.product-detail-section {
    --prd-green:      #337443;
    --prd-green-dark: #255533;
    --prd-red:        #ed1b2e;
    --prd-card-w:     215px;
    --prd-card-h:     330px;
    --prd-gold:       #e3a72c;
    --prd-badge-size: 74px;
}

/* ------------------------------------------------------------
   1. CATEGORY SLIDER BAND  (single-product + category archive)
   ------------------------------------------------------------ */

/* Red band — matches the product-category-grid block on /products/,
   so the same cards sit on the same colour everywhere on the site. */
.product-category-section {
    background-color: var(--prd-red) !important;
    padding: var(--space-2xl) 0 !important;
}

/* The slider is the first section on these templates, so the hanging
   logo lands on top of it. Push the content clear. */
.site-main > .product-category-section:first-child {
    padding-top: 150px !important;
}

/* Section heading via CSS — the ACF products_grid_title option is
   empty, so ipc-base renders no <h2> at all and the band reads as a
   floating row of cards. Suppressed automatically if a title is set. */
.product-category-section .site-wrapper { position: relative; }
.product-category-section .site-wrapper:not(:has(.section-heading))::before {
    content: "Premium Ham Products";
    display: block;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-display), serif;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 var(--space-xl);
}

/* Centre the track until it actually overflows ("safe" keeps the first
   card reachable once it does). */
.product-category-section .product-grid-track {
    justify-content: safe center;
    gap: var(--space-lg) !important;
    padding: var(--space-sm) var(--space-md) !important;
}

/* ---- Flip cards — white frame, photo, caveat label bar ---- */

.product-flip-card {
    flex: 0 0 var(--prd-card-w) !important;
    width: var(--prd-card-w) !important;
    height: var(--prd-card-h) !important;
}

.product-flip-front,
.product-flip-back {
    border-radius: 8px !important;
}

.product-flip-front {
    background-color: #ffffff !important;
    border: 4px solid #ffffff !important;
    padding: 0 !important;
    justify-content: flex-end !important;
}

.product-flip-front img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-flip-front-label {
    position: relative;
    z-index: 1;
    width: 100% !important;
    background-color: #ffffff !important;
    color: var(--prd-green) !important;
    font-family: var(--font-script), sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1.15;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    text-align: center;
    padding: 9px 10px 11px !important;
    border-radius: 0 !important;
}

.product-flip-back {
    background-color: var(--prd-green) !important;
    border: 4px solid var(--prd-green) !important;
}

.product-flip-back h3 {
    color: #ffffff !important;
    font-family: var(--font-display), serif !important;
    font-size: 1.35rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
}

.product-flip-back p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem;
}

/* Active card (the category you are currently inside) — green label bar
   instead of ipc-base's accent ring. Keeps the photo so a one-card
   slider still has something to look at. */
.product-flip-card--active .product-flip-inner { box-shadow: none !important; }
.product-flip-card--active .product-flip-front {
    border-color: var(--prd-green) !important;
}
.product-flip-card--active .product-flip-front-label {
    background-color: var(--prd-green) !important;
    color: #ffffff !important;
}

/* No term image set — keep the card readable as a green tile */
.product-flip-front:not(:has(img)) {
    background-color: var(--prd-green) !important;
    border-color: var(--prd-green) !important;
    justify-content: center !important;
}
.product-flip-front:not(:has(img)) .product-flip-front-label {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Arrows — white circles read better on red than the green default */
.product-scroll-arrow {
    background-color: #ffffff !important;
    color: var(--prd-green) !important;
}
.product-scroll-arrow:hover {
    background-color: var(--prd-green-dark) !important;
    color: #ffffff !important;
}

/* ------------------------------------------------------------
   2. PRODUCT DETAIL — white card on black  (per comp)
   ------------------------------------------------------------
   Structure comes from the child single-product.php override:
     ROW 1  title + copy     /  polaroid + where-to-buy + meal-ideas
     ROW 2  variety links, centred across the card
     ROW 3  package shot     /  nutrition badges
   ------------------------------------------------------------ */

.product-detail-section {
    background-color: #111111 !important;
    padding: var(--space-3xl) 0 !important;
}

/* The comp's floating white panel */
.product-detail-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: var(--space-3xl) var(--space-3xl) var(--space-2xl);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

/* Rows 1 and 3 share a column track so the package shot lines up
   under the copy and the badges under the polaroid. */
.product-detail-intro,
.product-detail-variant {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* ---- Row 1 left: title + copy ---- */

.product-detail-title {
    color: var(--prd-green) !important;
    font-family: var(--font-display), serif !important;
    font-size: clamp(1.6rem, 2.6vw, 2.35rem) !important;
    line-height: 1.08 !important;
    text-transform: none !important;   /* comp is title case, not caps */
    letter-spacing: 0 !important;
    margin: 0 0 var(--space-md) !important;
    max-width: 12em;
}

.product-detail-description {
    color: #333333 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    max-width: 30em;
    margin: 0 !important;
}
.product-detail-description p:last-child { margin-bottom: 0; }

/* ---- Row 1 right: polaroid, then the two CTAs beneath it ---- */

/* Polaroid — white frame, thicker bottom edge, slight tilt.
   Overhangs the card's top edge the way the comp does. */
.product-detail-hero-image {
    background: #ffffff;
    padding: 10px 10px 30px !important;
    border-radius: 2px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    transform: rotate(3deg);
    overflow: visible !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: calc( var(--space-3xl) * -1 + 6px ) auto var(--space-xl) 0 !important;
}

.product-detail-hero-image img {
    border-radius: 0 !important;      /* un-circle (parent sets 50%) */
    width: 360px !important;          /* parent sets 440px on desktop */
    max-width: 100%;
    margin: 0 !important;             /* cancel parent's -120px pull-up */
}

.product-detail-ctas {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--space-md) !important;
    justify-content: flex-start;
    margin: 0 !important;
}

/* Red script buttons, per comp. The Destini widget renders its own control,
   so match it on whatever element that turns out to be. */
.product-detail-ctas .product-cta-link,
.product-detail-ctas .destini-locator-class button,
.product-detail-ctas .destini-locator-class a {
    display: inline-block;
    font-family: var(--font-script), sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    text-transform: lowercase !important;
    text-decoration: none !important;
    line-height: 1;
    padding: 0.55em 1.4em 0.45em !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: var(--prd-red) !important;
    color: #ffffff !important;
    transition: background-color var(--transition-base);
}
.product-detail-ctas .product-cta-link:hover,
.product-detail-ctas .destini-locator-class button:hover,
.product-detail-ctas .destini-locator-class a:hover {
    background-color: #be1525 !important;
}

/* ---- Row 2: variety links (Scott Pete pattern) ----
   Plain centred text links with a hairline divider, not buttons: active in
   red and underlined, the rest in green. */

.product-variation-nav {
    margin: var(--space-2xl) 0 var(--space-xl) !important;
}

.product-variation-nav-list {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    gap: 0 !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hairline divider between links */
.product-variation-nav-list li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.1em;
    background-color: #cccccc;
    margin: 0 var(--space-lg);
    vertical-align: middle;
}
.product-variation-nav-list li {
    display: flex !important;
    align-items: center;
}

.product-variation-nav-list li button {
    font-family: var(--font-primary), sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1.2;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--prd-green) !important;
    cursor: pointer;
    border-bottom: 2px solid transparent !important;
}

.product-variation-nav-list li button:hover {
    color: var(--prd-red) !important;
}

.product-variation-nav-list li button.is-active {
    color: var(--prd-red) !important;
    border-bottom-color: var(--prd-red) !important;
}

/* Single-variation products: the name occupies the same row the links would,
   so one- and multi-variety pages keep identical spacing. */
.product-variation-nav--single { text-align: center; }

.product-variation-name {
    font-family: var(--font-display), serif !important;
    color: var(--prd-green) !important;
    font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
    line-height: 1.15 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: center;
    margin: 0 !important;
}

/* ---- Row 3 left: package shot ---- */

.product-package-panel { display: none; }
.product-package-panel.is-active { display: block; }
.product-package-panel img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

/* ---- Row 3 right: gold nutrition circles (comp) ---- */

.product-facts-panel { display: none; }
.product-facts-panel.is-active { display: block; }

.product-nutrition {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--space-sm) !important;
    list-style: none;
    margin: 0 0 var(--space-lg) !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
}

.product-nutrition-item {
    flex: 0 0 auto;
    width: var(--prd-badge-size);
    height: var(--prd-badge-size);
    border-radius: 50%;
    background-color: var(--prd-gold);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    text-align: center;
}

.product-nutrition-value {
    font-family: var(--font-display), serif !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    color: #1c1c1c !important;
}

.product-nutrition-label {
    font-family: var(--font-primary), sans-serif !important;
    font-size: 0.6rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: lowercase !important;
    line-height: 1.1 !important;
    color: #1c1c1c !important;
    margin-top: 2px;
}

/* ---- Certifications + ingredients (no product uses these yet) ---- */
.product-certifications { margin-bottom: var(--space-md) !important; }
.product-ingredients {
    margin-top: var(--space-md) !important;
    padding-top: var(--space-md) !important;
}
.product-ingredients-label { color: var(--prd-green) !important; }


/* ------------------------------------------------------------
   3. RESPONSIVE
   ------------------------------------------------------------ */

@media ( max-width: 900px ) {
    .site-main > .product-category-section:first-child {
        padding-top: 120px !important;
    }

    .product-detail-card {
        padding: var(--space-xl) var(--space-lg) var(--space-lg);
        border-radius: 14px;
    }

    .product-detail-intro,
    .product-detail-variant {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .product-detail-hero-image {
        margin: 0 auto var(--space-lg) !important;
        transform: rotate(2deg);
    }

    .product-detail-ctas { justify-content: center; }
    .product-nutrition   { justify-content: center; }

    .product-variation-nav { margin: var(--space-xl) 0 var(--space-lg) !important; }
    .product-variation-nav-list li + li::before { margin: 0 var(--space-md); }
}

@media ( max-width: 480px ) {
    .product-detail-section { --prd-badge-size: 64px; }
    .product-variation-nav-list li button { font-size: 0.85rem !important; }
}


/* ============================================================
   WHERE TO BUY  (page-where-to-buy.php — child override)
   Red banner, then the locator area. Destini isn't configured
   for this brand yet, so what shows is the coming-soon panel.
   ============================================================ */

.wtb-page {
    --wtb-green: #337443;
    --wtb-red:   #ed1b2e;
}

.wtb-banner {
    /* !important: ipc-base/css/pages.css sets --color-bg-dark here and is
       enqueued after this stylesheet. */
    background-color: var(--wtb-red) !important;
    /* top room so the hanging logo sits over the band, not the title —
       same allowance as .recipe-hero */
    padding: 120px 0 var(--space-2xl) !important;
    text-align: center;
}

.wtb-title {
    color: #ffffff !important;
    margin-bottom: 0 !important;
    font-family: var(--font-display), serif !important;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0;
}

.wtb-intro {
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 46em;
    margin: var(--space-md) auto 0;
}
.wtb-intro p:last-child { margin-bottom: 0; }

.wtb-locator {
    background-color: #ffffff;
    padding: var(--space-3xl) 0 !important;
    min-height: 0 !important;   /* parent reserves 500px for the Destini iframe */
}

.wtb-coming-soon {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background-color: #f6f6f4;
    border: 2px dashed #d6d6d0;
    border-radius: 16px;
    padding: var(--space-3xl) var(--space-xl);
}

.wtb-coming-soon-title {
    font-family: var(--font-display), serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
    color: var(--wtb-green);
    margin: 0 0 var(--space-sm);
}

.wtb-coming-soon-body {
    color: #555555;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 34em;
    margin: 0 auto var(--space-xl);
}

.wtb-coming-soon-cta {
    display: inline-block;
}

@media ( max-width: 768px ) {
    .wtb-banner { padding: 100px 0 var(--space-xl); }
    .wtb-coming-soon { padding: var(--space-2xl) var(--space-lg); }
}


/* ============================================================
   CONTACT  (page-contact.php — child override)
   Scott Pete's layout: H1, then square framed photo left /
   details right. Brand colours swapped to Mickelberry.
   ============================================================ */

.contact-page {
    background-color: #ffffff;
    /* top room for the hanging logo — this template has no banner above it */
    padding: 150px 0 var(--space-3xl);
}

.contact-title {
    color: #337443 !important;
    font-family: var(--font-display), serif !important;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    text-align: center;
    margin: 0 0 var(--space-2xl);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* No featured image set — let the details centre instead of hugging a gap */
.contact-layout--no-photo {
    grid-template-columns: 1fr;
    max-width: 40em;
    margin: 0 auto;
    text-align: center;
}

.contact-photo {
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 6px solid #337443;
    border-radius: 4px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.contact-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.contact-details {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    font-family: var(--font-script), sans-serif;
}

/* First line of the details block is the company name */
.contact-details > p:first-child {
    font-family: var(--font-display), serif;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    line-height: 1.2;
    color: #337443;
    margin-bottom: var(--space-md);
}

.contact-details a {
    color: #ed1b2e;
    font-weight: 600;
}
.contact-details a:hover { color: #be1525; }

@media ( max-width: 900px ) {
    .contact-page { padding: 120px 0 var(--space-2xl); }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .contact-photo { max-width: 420px; margin: 0 auto; }
    .contact-details { text-align: center; }
}


/* ============================================================
   NOV 2026 PUNCH LIST (Azizza review + Dana's notes)
   ============================================================ */

/* Barn banner button (Dana 4): green, script face, sentence case,
   "Find Mickelberry's near you!" per her screenshot. */
#barn-banner .btn {
    font-family: var(--font-script), sans-serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-size: 1.9rem !important;
    line-height: 1.1 !important;
    padding: 0.35em 1.1em 0.4em !important;
    background-color: #337443 !important;
    border: 2px solid #ffffff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
}
#barn-banner .btn:hover { background-color: #255533 !important; }

/* Footer: base.css (loads after this file) sets a 24px column gap, so each
   "|" had 13.6px on its left and 37.6px on its right. Kill the gap; the
   divider's own margin does the spacing. */
.site-footer .footer-nav .footer-menu { column-gap: 0 !important; }

/* Recipe meta labels (prep / total / servings): were 0.5rem grey-ish,
   failing contrast. White on the green recipe cards, near-black on the
   white recipe detail card. */
.recipe-card .recipe-meta-label {
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}
.recipe-detail-section .recipe-meta-label {
    color: #1c1c1c !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

/* ---- Single-variety product layout (Dana, "PRODUCTS") ----
   Left: title, copy, gold nutrition circles, CTAs.
   Right: polaroid with the package shot overlapping its lower-left. */
.product-detail-simple {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-2xl);
    align-items: center;
}
.product-detail-simple .product-detail-title {
    font-size: clamp(2rem, 3.4vw, 3rem) !important;
    max-width: 11em;
}
.product-detail-simple .product-detail-description {
    font-size: 1.05rem !important;
    margin-bottom: var(--space-lg) !important;
}
.product-detail-simple .product-nutrition {
    --prd-badge-size: 84px;
    margin: 0 0 var(--space-xl) !important;
}
.product-detail-simple .product-nutrition-value { font-size: 1.35rem !important; }
.product-detail-simple .product-nutrition-label { font-size: 0.72rem !important; }

.product-detail-simple .product-detail-visual {
    position: relative;
    padding-bottom: var(--space-2xl);
}
.product-detail-simple .product-detail-hero-image {
    margin: calc( var(--space-3xl) * -1 + 6px ) 0 0 auto !important;
}
.product-detail-simple .product-detail-hero-image img { width: 420px !important; }
.product-detail-simple .product-detail-package {
    position: absolute;
    left: -6%;
    bottom: 0;
    width: 52%;
    max-width: 300px;
    height: auto;
    z-index: 2;
    filter: drop-shadow( 0 10px 16px rgba(0, 0, 0, 0.25) );
}

@media ( max-width: 900px ) {
    .product-detail-simple { grid-template-columns: 1fr; gap: var(--space-lg); }
    .product-detail-simple .product-detail-hero-image { margin: 0 auto !important; }
    .product-detail-simple .product-detail-package { left: 0; width: 45%; }
    .product-detail-simple .product-nutrition,
    .product-detail-simple .product-detail-ctas { justify-content: center; }
}

/* Nov 9 (Michael): no arrows on the recipe category slider. The five cards
   overflow the track by a few pixels, so the auto-hide in main.js kept them;
   they're not needed — drag/scroll still works. */
.recipe-scroll-arrows { display: none !important; }

/* ============================================================
   NOV 9, DANA PASS 2
   ============================================================ */

/* "No Nonsense, Just Great Ham" — centred. */
.home-banner .home-banner-heading { text-align: center !important; }

/* "Premium Ham Products" larger: home red container, products page,
   and the CSS-injected band heading on product pages. */
.brand-container h2.wp-block-heading,
.products-page-content > .wp-block-heading,
.product-category-section .site-wrapper:not(:has(.section-heading))::before {
    font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
    line-height: 1.05 !important;
}

/* Recipe category tiles match the product tiles: same 215×330 card and
   the same single-line white tab (was 200×264 with a two-line tab). */
.recipe-flip-card {
    width: var(--prd-card-w, 215px) !important;
    height: var(--prd-card-h, 330px) !important;
}
.recipe-flip-front-label {
    height: auto !important;
    padding: 9px 10px 11px !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.02em !important;
    line-height: 1.15 !important;
    white-space: nowrap;
}

/* Prep circle was light green on the green "All Recipes" section, so it
   disappeared. Brand gold (same as the product nutrition circles) with
   dark text instead. */
.recipe-meta-item:nth-child(1) { background-color: #e3a72c !important; }
.recipe-meta-item:nth-child(1) .recipe-meta-value,
.recipe-meta-item:nth-child(1) .recipe-meta-unit { color: #1c1c1c !important; }
