/*
 Theme Name:   Sugar Hill Farm Child
 Theme URI:    https://sugarhillfarmpa.com
 Description:  GeneratePress child theme for Sugar Hill Farm — premium grass-fed beef e-commerce
 Author:       Sugar Hill Farm
 Template:     generatepress
 Version:      1.1.0
 Text Domain:  sugarhillfarm-child
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --shf-forest:     #1B3A18;
    --shf-sage:       #3A6032;
    --shf-cream:      #F8F5EF;
    --shf-parchment:  #EDE8DC;
    --shf-warm:       #E8E2D4;
    --shf-gold:       #B4852A;
    --shf-gold-lt:    #D4A84B;
    --shf-charcoal:   #1C1C1E;
    --shf-stone:      #767268;
    --shf-border:     #D8D3C7;
    --shf-white:      #FFFFFF;
    --shf-red:        #C0392B;

    --shf-font-serif: 'Cormorant Garamond', Georgia, serif;
    --shf-font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shf-max-w:      1240px;
    --shf-radius:     2px;

    /* Spacing scale */
    --shf-s1:  8px;
    --shf-s2:  16px;
    --shf-s3:  24px;
    --shf-s4:  40px;
    --shf-s5:  64px;
    --shf-s6:  88px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* prevent any element from causing horizontal scroll */
}

body {
    font-family: var(--shf-font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--shf-charcoal);
    background: var(--shf-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* belt and braces — stops horizontal overflow at body level */
    width: 100%;
    max-width: 100vw;
}

/* Strip GeneratePress defaults we don't need */
.site-header,
.main-navigation,
#generate-back-to-top,
.widget-area,
.breadcrumb-trail {
    display: none !important;
}

/* Ensure GP doesn't add padding/margin to content area */
.inside-article,
.entry-content,
.content-area,
.site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.site-main {
    padding: 0 !important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--shf-font-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--shf-charcoal);
}

p {
    font-family: var(--shf-font-sans);
    font-weight: 300;
    line-height: 1.75;
    color: var(--shf-stone);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.shf-container {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    padding-inline: var(--shf-s4);
}

.shf-section {
    padding-block: var(--shf-s6);
}

.shf-section--sm {
    padding-block: var(--shf-s5);
}

.shf-section--parchment {
    background: var(--shf-parchment);
    border-top: 1px solid var(--shf-border);
    border-bottom: 1px solid var(--shf-border);
}

.shf-section--dark {
    background: var(--shf-forest);
}

.shf-section--charcoal {
    background: var(--shf-charcoal);
}

/* Eyebrow label */
.shf-eyebrow {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shf-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.shf-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--shf-gold);
    display: block;
    flex-shrink: 0;
}

.shf-eyebrow--light {
    color: var(--shf-gold-lt);
}

.shf-eyebrow--light::before {
    background: var(--shf-gold-lt);
}

/* Section headings */
.shf-heading {
    font-family: var(--shf-font-serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--shf-charcoal);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.shf-heading em {
    font-style: italic;
    font-weight: 300;
}

.shf-heading--light {
    color: var(--shf-white);
}

.shf-subheading {
    font-size: 15px;
    font-weight: 300;
    color: var(--shf-stone);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: var(--shf-s5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.shf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--shf-font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: var(--shf-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.shf-btn:hover {
    transform: translateY(-1px);
}

.shf-btn--primary {
    background: var(--shf-gold);
    color: var(--shf-white);
    border-color: var(--shf-gold);
}

.shf-btn--primary:hover {
    background: var(--shf-gold-lt);
    border-color: var(--shf-gold-lt);
    color: var(--shf-white);
}

.shf-btn--dark {
    background: var(--shf-forest);
    color: var(--shf-white);
    border-color: var(--shf-forest);
}

.shf-btn--dark:hover {
    background: var(--shf-sage);
    border-color: var(--shf-sage);
    color: var(--shf-white);
}

.shf-btn--outline {
    background: transparent;
    color: var(--shf-forest);
    border-color: var(--shf-forest);
}

.shf-btn--outline:hover {
    background: var(--shf-forest);
    color: var(--shf-white);
}

.shf-btn--outline-light {
    background: transparent;
    color: rgba(255,255,255,0.78);
    border-color: rgba(255,255,255,0.3);
}

.shf-btn--outline-light:hover {
    border-color: rgba(255,255,255,0.7);
    color: var(--shf-white);
}

/* ============================================================
   HEADER
   ============================================================ */
.shf-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 66px;
    background: rgba(248,245,239,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--shf-border);
}

.shf-header-inner {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    padding-inline: var(--shf-s4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--shf-s3);
}

/* Logo */
.shf-logo {
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--shf-forest);
    letter-spacing: 0.02em;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1.1;
}

.shf-logo em {
    font-style: italic;
    font-weight: 300;
}

.shf-logo small {
    display: block;
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 300;
    margin-top: 1px;
}

/* Desktop nav */
.shf-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.shf-nav li {
    position: relative;
}

.shf-nav a,
.shf-nav button {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shf-stone);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.18s;
    white-space: nowrap;
    text-decoration: none;
}

.shf-nav a:hover,
.shf-nav button:hover,
.shf-nav a[aria-current="page"] {
    color: var(--shf-forest);
}

/* Header actions */
.shf-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.shf-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--shf-stone);
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.18s;
    line-height: 1;
}

.shf-icon-btn:hover {
    color: var(--shf-forest);
}

/* Cart badge */
.shf-cart-wrap {
    position: relative;
    display: inline-flex;
}

.shf-cart-count {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--shf-gold);
    color: var(--shf-white);
    font-family: var(--shf-font-sans);
    font-size: 9px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Mobile toggle */
.shf-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--shf-charcoal);
}

/* Mobile nav drawer */
.shf-mobile-nav {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--shf-cream);
    z-index: 199;
    padding: var(--shf-s4);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.shf-mobile-nav.is-open {
    transform: translateX(0);
}

.shf-mobile-nav ul {
    list-style: none;
}

.shf-mobile-nav a {
    display: block;
    font-family: var(--shf-font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--shf-charcoal);
    padding: 14px 0;
    border-bottom: 1px solid var(--shf-border);
    text-decoration: none;
}

.shf-mobile-nav a:hover {
    color: var(--shf-forest);
}

/* ============================================================
   FOOTER
   ============================================================ */
.shf-footer {
    background: var(--shf-charcoal);
}

.shf-footer-top {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    padding: var(--shf-s6) var(--shf-s4) var(--shf-s5);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.shf-footer-logo {
    font-family: var(--shf-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--shf-white);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.shf-footer-logo em {
    font-style: italic;
    font-weight: 300;
}

.shf-footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    line-height: 1.7;
    font-weight: 300;
    max-width: 240px;
    margin-bottom: var(--shf-s2);
}

.shf-footer-social {
    display: flex;
    gap: 8px;
    list-style: none;
}

.shf-footer-social a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.38);
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--shf-font-sans);
    font-weight: 500;
}

.shf-footer-social a:hover {
    border-color: var(--shf-gold);
    color: var(--shf-gold);
}

.shf-footer-col-title {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    font-weight: 500;
    margin-bottom: 14px;
    display: block;
}

.shf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shf-footer-links li {
    margin: 0;
    padding: 0;
}

.shf-footer-links a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.48);
    padding: 5px 0;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.18s;
    line-height: 1.4;
}

.shf-footer-links a:hover {
    color: var(--shf-white);
}

.shf-footer-bottom {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    padding: var(--shf-s3) var(--shf-s4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--shf-s2);
}

.shf-footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.22);
    font-weight: 300;
}

.shf-footer-copy a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.18s;
}

.shf-footer-copy a:hover {
    color: rgba(255,255,255,0.65);
}

/* Mobile brand block separator — adds visual break between brand and link cols */
@media (max-width: 600px) {
    .shf-footer-brand {
        padding-bottom: var(--shf-s3);
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    /* Ensure col title and first link sit flush, no orphan gap */
    .shf-footer-links {
        margin-top: 2px;
    }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
/* ============================================================
   TRUST BAR — horizontal on all screen sizes, no overflow
   ============================================================ */
.shf-trust-bar {
    background: var(--shf-parchment);
    border-bottom: 1px solid var(--shf-border);
    padding: 14px var(--shf-s4);
    overflow: hidden; /* NEVER let children escape */
}

/* Single inner track — always inline-flex, scrolls on mobile */
.shf-trust-bar__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
}

.shf-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shf-stone);
    white-space: nowrap;
    padding: 0 20px;
    flex-shrink: 0;
}

.shf-trust-divider {
    width: 1px;
    height: 18px;
    background: var(--shf-border);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* On mobile: allow horizontal scroll, hide scrollbar */
@media (max-width: 900px) {
    .shf-trust-bar {
        padding: 12px 0;
    }

    .shf-trust-bar__track {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 16px;
        gap: 0;
    }

    .shf-trust-bar__track::-webkit-scrollbar {
        display: none;
    }

    .shf-trust-item {
        padding: 0 16px;
        font-size: 10px;
    }
}

@keyframes shf-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.shf-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--shf-s4) 80px;
    position: relative;
    overflow: hidden;
    background: #0c1f09;
}

.shf-hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(18,42,15,0.22) 0%, rgba(12,31,9,0.82) 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Grain overlay — pure CSS, zero image load */
.shf-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px;
    pointer-events: none;
}

.shf-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--shf-max-w);
    margin-inline: auto;
    width: 100%;
}

.shf-hero-badge {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shf-gold-lt);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    opacity: 0;
    animation: shf-fade-up 0.8s 0.2s forwards;
}

.shf-hero-badge span {
    width: 28px;
    height: 1px;
    background: var(--shf-gold);
    display: block;
}

.shf-hero h1 {
    font-family: var(--shf-font-serif);
    font-size: clamp(46px, 7vw, 88px);
    font-weight: 400;
    line-height: 1.03;
    color: var(--shf-white);
    letter-spacing: -0.01em;
    max-width: 780px;
    margin-bottom: 26px;
    opacity: 0;
    animation: shf-fade-up 0.9s 0.35s forwards;
}

.shf-hero h1 em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.72);
}

.shf-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    max-width: 400px;
    line-height: 1.72;
    margin-bottom: 42px;
    font-weight: 300;
    opacity: 0;
    animation: shf-fade-up 0.9s 0.5s forwards;
}

.shf-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: shf-fade-up 0.9s 0.65s forwards;
}

@keyframes shf-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.shf-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--shf-border);
}

.shf-stat-cell {
    background: var(--shf-parchment);
    padding: 28px 24px;
    text-align: center;
}

.shf-stat-number {
    font-family: var(--shf-font-serif);
    font-size: 38px;
    font-weight: 300;
    color: var(--shf-forest);
    line-height: 1;
}

.shf-stat-label {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shf-stone);
    margin-top: 5px;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.shf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.shf-product-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.shf-product-card {
    background: var(--shf-white);
    border: 1px solid var(--shf-border);
    border-radius: var(--shf-radius);
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.shf-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

.shf-product-card__img {
    height: 200px;
    background: linear-gradient(135deg, #f0ebe0 0%, #e8dfd0 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.shf-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.shf-product-card:hover .shf-product-card__img img {
    transform: scale(1.04);
}

.shf-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--shf-radius);
}

.shf-badge--bestseller { background: var(--shf-forest); color: var(--shf-white); }
.shf-badge--premium    { background: var(--shf-gold);   color: var(--shf-white); }
.shf-badge--new        { background: var(--shf-sage);   color: var(--shf-white); }

.shf-product-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shf-product-card__cut {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shf-gold);
    margin-bottom: 4px;
    font-weight: 500;
}

.shf-product-card__name {
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 4px;
    line-height: 1.2;
}

.shf-product-card__stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.shf-stars {
    color: var(--shf-gold);
    font-size: 12px;
    letter-spacing: 1px;
}

.shf-review-count {
    font-size: 11px;
    color: var(--shf-stone);
    font-weight: 300;
}

.shf-product-card__price {
    font-size: 18px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 14px;
    margin-top: auto;
}

.shf-product-card__price span {
    font-size: 12px;
    font-weight: 300;
    color: var(--shf-stone);
}

.shf-product-card__add {
    width: 100%;
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 11px;
    background: var(--shf-forest);
    color: var(--shf-white);
    border: none;
    border-radius: var(--shf-radius);
    cursor: pointer;
    transition: background 0.2s;
}

.shf-product-card__add:hover {
    background: var(--shf-sage);
}

/* ============================================================
   FILTER TABS (category pills)
   ============================================================ */
.shf-filter-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.shf-filter-tab {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 24px;
    cursor: pointer;
    border: 1px solid var(--shf-border);
    background: none;
    color: var(--shf-stone);
    transition: all 0.15s;
}

.shf-filter-tab:hover,
.shf-filter-tab.is-active {
    border-color: var(--shf-forest);
    color: var(--shf-forest);
}

.shf-filter-tab.is-active {
    background: var(--shf-forest);
    color: var(--shf-white);
}

/* ============================================================
   WHY GRID
   ============================================================ */
.shf-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--shf-border);
}

.shf-why-card {
    background: var(--shf-cream);
    padding: 44px 36px;
    transition: background 0.25s;
}

.shf-why-card:hover {
    background: var(--shf-parchment);
}

.shf-why-number {
    font-family: var(--shf-font-serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--shf-border);
    margin-bottom: 20px;
    transition: color 0.25s;
    line-height: 1;
}

.shf-why-card:hover .shf-why-number {
    color: var(--shf-gold);
}

.shf-why-title {
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
}

.shf-why-body {
    font-size: 13px;
    color: var(--shf-stone);
    line-height: 1.72;
    font-weight: 300;
}

/* ============================================================
   STATE CARDS (location section)
   ============================================================ */
.shf-states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shf-state-card {
    padding: 32px 28px;
    border-radius: var(--shf-radius);
    cursor: pointer;
    transition: transform 0.22s, box-shadow 0.22s;
    text-decoration: none;
    display: block;
}

.shf-state-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.shf-state-card--active {
    background: linear-gradient(155deg, var(--shf-forest), #2d5024);
}

.shf-state-card--inactive {
    background: var(--shf-parchment);
    border: 1px solid var(--shf-border);
}

.shf-state-name {
    font-family: var(--shf-font-serif);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 4px;
}

.shf-state-card--active .shf-state-name { color: var(--shf-white); }
.shf-state-card--inactive .shf-state-name { color: var(--shf-charcoal); }

.shf-state-tag {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shf-state-card--active .shf-state-tag { color: rgba(255,255,255,0.5); }
.shf-state-card--inactive .shf-state-tag { color: var(--shf-stone); }

.shf-state-pill {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--shf-font-sans);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--shf-radius);
    font-weight: 500;
}

.shf-pill--live { background: rgba(180,133,42,0.28); color: var(--shf-gold-lt); }
.shf-pill--soon { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.32); }
.shf-pill--soon-dark { background: rgba(118,114,104,0.12); color: var(--shf-stone); }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.shf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 52px;
}

.shf-blog-card {
    cursor: pointer;
    transition: transform 0.25s;
    text-decoration: none;
    display: block;
}

.shf-blog-card:hover {
    transform: translateY(-4px);
}

.shf-blog-card__img {
    height: 190px;
    border-radius: var(--shf-radius);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    background: var(--shf-parchment);
}

.shf-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.shf-blog-card:hover .shf-blog-card__img img {
    transform: scale(1.04);
}

.shf-blog-card__cat {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--shf-gold);
    margin-bottom: 8px;
    font-weight: 500;
}

.shf-blog-card__title {
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
}

.shf-blog-card__exc {
    font-size: 13px;
    color: var(--shf-stone);
    line-height: 1.65;
    font-weight: 300;
}

.shf-blog-card__date {
    font-size: 10px;
    color: var(--shf-border);
    margin-top: 12px;
    letter-spacing: 0.04em;
}

/* ============================================================
   EMAIL SIGNUP BAND
   ============================================================ */
.shf-email-band {
    background: var(--shf-forest);
    padding: var(--shf-s5) var(--shf-s4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--shf-s5);
    flex-wrap: wrap;
}

.shf-email-copy .shf-heading {
    font-size: 36px;
    color: var(--shf-white);
    margin-bottom: 8px;
}

.shf-email-copy p {
    font-size: 14px;
    color: rgba(255,255,255,0.52);
}

.shf-email-form {
    display: flex;
    flex: 1;
    max-width: 420px;
}

.shf-email-input {
    flex: 1;
    font-family: var(--shf-font-sans);
    font-size: 13px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-right: none;
    background: rgba(255,255,255,0.08);
    color: var(--shf-white);
    border-radius: var(--shf-radius) 0 0 var(--shf-radius);
    outline: none;
    transition: border-color 0.2s;
}

.shf-email-input::placeholder { color: rgba(255,255,255,0.35); }

.shf-email-input:focus { border-color: rgba(255,255,255,0.45); }

.shf-email-submit {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 14px 24px;
    background: var(--shf-gold);
    color: var(--shf-white);
    border: none;
    border-radius: 0 var(--shf-radius) var(--shf-radius) 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.shf-email-submit:hover { background: var(--shf-gold-lt); }

/* ============================================================
   CTA BAND
   ============================================================ */
.shf-cta-band {
    background: var(--shf-parchment);
    border-top: 1px solid var(--shf-border);
    padding: var(--shf-s6) var(--shf-s4);
    text-align: center;
}

.shf-cta-band .shf-heading {
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: 14px;
}

.shf-cta-band .shf-subheading {
    margin-inline: auto;
    text-align: center;
    margin-bottom: 36px;
}

.shf-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.shf-faq-list {
    border-top: 1px solid var(--shf-border);
}

.shf-faq-item {
    border-bottom: 1px solid var(--shf-border);
}

.shf-faq-trigger {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--shf-font-serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--shf-charcoal);
    text-align: left;
}

.shf-faq-icon {
    color: var(--shf-stone);
    font-size: 20px;
    font-family: var(--shf-font-sans);
    font-weight: 300;
    transition: transform 0.25s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.shf-faq-item.is-open .shf-faq-icon {
    transform: rotate(45deg);
    color: var(--shf-gold);
}

.shf-faq-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s;
}

.shf-faq-item.is-open .shf-faq-body {
    max-height: 300px;
    padding-bottom: 20px;
}

.shf-faq-body p {
    font-size: 14px;
    color: var(--shf-stone);
    line-height: 1.72;
    font-weight: 300;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.shf-breadcrumb {
    background: var(--shf-parchment);
    border-bottom: 1px solid var(--shf-border);
    padding: 14px var(--shf-s4);
}

.shf-breadcrumb nav,
.shf-breadcrumb .yoast-breadcrumb {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    font-size: 11px;
    color: var(--shf-stone);
    letter-spacing: 0.04em;
}

.shf-breadcrumb a {
    color: var(--shf-charcoal);
    text-decoration: none;
}

.shf-breadcrumb a:hover {
    color: var(--shf-forest);
}

/* ============================================================
   SECTION HEADER UTILITY
   ============================================================ */
.shf-section-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--shf-s4);
    gap: var(--shf-s3);
}

.shf-section-hdr .shf-heading {
    margin-bottom: 0;
}

/* ============================================================
   MARQUEE STRIP  (above footer — business social proof)
   ============================================================ */
.shf-marquee-strip {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
    overflow: hidden; /* CRITICAL — must clip the wide track */
    width: 100%;      /* constrain to viewport */
}

.shf-marquee-strip__track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: shf-marquee-dark 30s linear infinite;
    will-change: transform;
    white-space: nowrap;
}

.shf-marquee-strip__track:hover {
    animation-play-state: paused;
}

.shf-marquee-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    padding: 0 32px;
    white-space: nowrap;
    flex-shrink: 0;
}

.shf-marquee-strip__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--shf-gold);
    flex-shrink: 0;
    opacity: 0.6;
    margin: 0 8px;
}

@keyframes shf-marquee-dark {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Keep old .shf-perf-strip class working as alias */
.shf-perf-strip {
    display: none; /* hidden — replaced by shf-marquee-strip */
}

/* ============================================================
   RESPONSIVE — TABLET (≤900px)
   ============================================================ */
@media (max-width: 900px) {

    :root {
        --shf-s4: 24px;
        --shf-s5: 48px;
        --shf-s6: 64px;
    }

    .shf-nav,
    .shf-header-actions .shf-btn {
        display: none;
    }

    .shf-menu-toggle {
        display: flex;
    }

    .shf-mobile-nav {
        display: block;
    }

    .shf-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shf-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shf-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shf-footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    /* Brand block spans full width on its own row at tablet */
    .shf-footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 48px;
        align-items: start;
    }

    .shf-footer-tagline {
        max-width: 360px;
    }

    .shf-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .shf-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shf-email-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .shf-email-form {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤600px)
   ============================================================ */
@media (max-width: 600px) {

    :root {
        --shf-s4: 20px;
        --shf-s5: 40px;
        --shf-s6: 52px;
    }

    .shf-hero {
        min-height: 70vh;
        padding-bottom: 56px;
    }

    .shf-hero h1 {
        font-size: clamp(36px, 10vw, 56px);
    }

    .shf-product-grid {
        grid-template-columns: 1fr;
    }

    .shf-why-grid {
        grid-template-columns: 1fr;
    }

    .shf-states-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .shf-blog-grid {
        grid-template-columns: 1fr;
    }

    .shf-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
        padding-top: var(--shf-s4);
        padding-bottom: var(--shf-s4);
    }

    /* Brand block: full width, compact horizontal layout on mobile */
    .shf-footer-brand {
        grid-column: 1 / -1;
        display: block; /* reset the tablet grid */
    }

    .shf-footer-tagline {
        max-width: 100%;
    }

    .shf-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .shf-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .shf-section-hdr {
        flex-direction: column;
        align-items: flex-start;
    }

    .shf-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .shf-perf-strip {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ============================================================
   READING PROGRESS BAR (injected by blog.js on single posts)
   ============================================================ */
#shf-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--shf-forest), var(--shf-gold));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================================
   HEADING ANCHOR LINK (blog.js adds these to h2/h3)
   ============================================================ */
.shf-heading-anchor {
    opacity: 0;
    margin-left: 8px;
    font-size: 0.65em;
    color: var(--shf-border);
    text-decoration: none;
    transition: opacity 0.18s, color 0.18s;
    vertical-align: middle;
}

.shf-post-content h2:hover .shf-heading-anchor,
.shf-post-content h3:hover .shf-heading-anchor {
    opacity: 1;
}

.shf-heading-anchor:hover {
    color: var(--shf-gold);
}

/* ============================================================
   SHARED CONTENT TYPOGRAPHY  (.shf-post-content)
   Used by: single.php (blog), page.php (default pages)
   Defined here so it loads on ALL pages, not just blog pages.
   ============================================================ */
.shf-post-content {
    font-family: var(--shf-font-sans);
    font-size: 16px;
    line-height: 1.82;
    color: var(--shf-charcoal);
    font-weight: 300;
}

.shf-post-content p {
    margin-bottom: 22px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.82;
    color: var(--shf-charcoal);
}

.shf-post-content h2 {
    font-family: var(--shf-font-serif);
    font-size: 30px;
    font-weight: 400;
    color: var(--shf-charcoal);
    margin: 44px 0 16px;
    line-height: 1.15;
}

.shf-post-content h3 {
    font-family: var(--shf-font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin: 34px 0 12px;
    line-height: 1.2;
}

.shf-post-content h4 {
    font-family: var(--shf-font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--shf-charcoal);
    margin: 28px 0 10px;
}

.shf-post-content ul,
.shf-post-content ol {
    padding-left: 24px;
    margin-bottom: 22px;
}

.shf-post-content li {
    font-size: 16px;
    line-height: 1.72;
    color: var(--shf-charcoal);
    font-weight: 300;
    margin-bottom: 8px;
}

.shf-post-content strong,
.shf-post-content b {
    font-weight: 500;
    color: var(--shf-charcoal);
}

.shf-post-content em {
    font-style: italic;
}

.shf-post-content a {
    color: var(--shf-forest);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(27,58,24,0.35);
    transition: text-decoration-color 0.18s;
}

.shf-post-content a:hover {
    text-decoration-color: var(--shf-forest);
}

.shf-post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--shf-parchment);
    border-left: 3px solid var(--shf-gold);
    border-radius: 0 var(--shf-radius) var(--shf-radius) 0;
}

.shf-post-content blockquote p {
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 300;
    color: var(--shf-charcoal);
    line-height: 1.55;
    margin-bottom: 0;
}

.shf-post-content blockquote cite {
    display: block;
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shf-stone);
    margin-top: 10px;
    font-style: normal;
}

.shf-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--shf-radius);
    margin: 8px 0 24px;
    display: block;
}

.shf-post-content figure {
    margin: 8px 0 24px;
}

.shf-post-content figcaption,
.shf-post-content .wp-caption-text {
    font-size: 12px;
    color: var(--shf-stone);
    font-weight: 300;
    margin-top: 6px;
    font-style: italic;
    text-align: center;
}

.shf-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.shf-post-content th {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--shf-stone);
    padding: 10px 14px;
    border-bottom: 2px solid var(--shf-border);
    text-align: left;
}

.shf-post-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--shf-border);
    color: var(--shf-charcoal);
    font-weight: 300;
}

.shf-post-content hr {
    border: none;
    border-top: 1px solid var(--shf-border);
    margin: 40px 0;
}

/* WordPress alignment classes */
.shf-post-content .alignleft {
    float: left;
    margin: 0 28px 20px 0;
    max-width: 50%;
}

.shf-post-content .alignright {
    float: right;
    margin: 0 0 20px 28px;
    max-width: 50%;
}

.shf-post-content .aligncenter {
    display: block;
    margin-inline: auto;
}

.shf-post-content .alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Clearfix for floated images */
.shf-post-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ============================================================
   DEFAULT PAGE LAYOUT  (page.php)
   ============================================================ */

/* Page header — title area above content */
.shf-page-header {
    background: var(--shf-parchment);
    border-bottom: 1px solid var(--shf-border);
    padding: var(--shf-s5) 0 var(--shf-s4);
}

.shf-page-header__inner {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    padding-inline: var(--shf-s4);
}

.shf-page-header__title {
    font-family: var(--shf-font-serif);
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    color: var(--shf-charcoal);
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.shf-page-header__title em {
    font-style: italic;
    font-weight: 300;
}

.shf-page-header__desc {
    font-size: 16px;
    color: var(--shf-stone);
    font-weight: 300;
    line-height: 1.72;
    max-width: 540px;
    margin-top: 14px;
}

/* Page with a featured image hero */
.shf-page-hero {
    height: 380px;
    position: relative;
    overflow: hidden;
    background: var(--shf-charcoal);
}

.shf-page-hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.shf-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.48) 100%);
}

.shf-page-hero__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 var(--shf-s4) 48px;
    max-width: var(--shf-max-w);
    margin-inline: auto;
    width: 100%;
}

.shf-page-hero__title h1 {
    font-family: var(--shf-font-serif);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--shf-white);
    letter-spacing: -0.01em;
}

.shf-page-hero__title h1 em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.78);
}

/* Full-width content layout */
.shf-page-body {
    background: var(--shf-cream);
    padding: var(--shf-s5) 0 var(--shf-s6);
}

.shf-page-body--parchment {
    background: var(--shf-parchment);
}

/* Content + sidebar grid */
.shf-page-layout {
    max-width: var(--shf-max-w);
    margin-inline: auto;
    padding-inline: var(--shf-s4);
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 72px;
    align-items: start;
}

/* Full width — no sidebar */
.shf-page-layout--full {
    grid-template-columns: 1fr;
    max-width: 800px;
}

/* Narrow prose — articles, policies */
.shf-page-layout--prose {
    grid-template-columns: 1fr;
    max-width: 720px;
}

/* Page sidebar */
.shf-page-sidebar {
    position: sticky;
    top: calc(66px + var(--shf-s3));
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar CTA box (same as blog sidebar) */
.shf-page-sidebar-cta {
    background: var(--shf-forest);
    border-radius: 3px;
    padding: 26px 22px;
}

.shf-page-sidebar-cta__eyebrow {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--shf-gold-lt);
    margin-bottom: 8px;
}

.shf-page-sidebar-cta__title {
    font-family: var(--shf-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--shf-white);
    margin-bottom: 8px;
    line-height: 1.15;
}

.shf-page-sidebar-cta__body {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 18px;
}

/* Sidebar info box */
.shf-page-sidebar-info {
    background: var(--shf-parchment);
    border: 1px solid var(--shf-border);
    border-radius: 3px;
    padding: 22px;
}

.shf-page-sidebar-info__title {
    font-family: var(--shf-font-sans);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--shf-stone);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--shf-border);
}

.shf-page-sidebar-info__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--shf-border);
}

.shf-page-sidebar-info__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shf-page-sidebar-info__label {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 500;
}

.shf-page-sidebar-info__value {
    font-family: var(--shf-font-sans);
    font-size: 14px;
    color: var(--shf-charcoal);
    font-weight: 300;
}

.shf-page-sidebar-info__value a {
    color: var(--shf-forest);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   CF7 / CONTACT FORM OVERRIDES
   ============================================================ */
.shf-page-body .wpcf7-form input[type="text"],
.shf-page-body .wpcf7-form input[type="email"],
.shf-page-body .wpcf7-form input[type="tel"],
.shf-page-body .wpcf7-form input[type="url"],
.shf-page-body .wpcf7-form select,
.shf-page-body .wpcf7-form textarea {
    font-family: var(--shf-font-sans) !important;
    font-size: 14px !important;
    border: 1px solid var(--shf-border) !important;
    border-radius: var(--shf-radius) !important;
    padding: 12px 14px !important;
    background: var(--shf-white) !important;
    color: var(--shf-charcoal) !important;
    width: 100% !important;
    outline: none;
    transition: border-color 0.18s;
    display: block;
}

.shf-page-body .wpcf7-form input:focus,
.shf-page-body .wpcf7-form textarea:focus,
.shf-page-body .wpcf7-form select:focus {
    border-color: var(--shf-forest) !important;
    box-shadow: none !important;
}

.shf-page-body .wpcf7-form label {
    font-family: var(--shf-font-sans) !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    color: var(--shf-stone) !important;
    display: block;
    margin-bottom: 6px !important;
}

.shf-page-body .wpcf7-form .wpcf7-submit {
    font-family: var(--shf-font-sans) !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    padding: 14px 32px !important;
    background: var(--shf-forest) !important;
    color: var(--shf-white) !important;
    border: none !important;
    border-radius: var(--shf-radius) !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: 8px;
}

.shf-page-body .wpcf7-form .wpcf7-submit:hover {
    background: var(--shf-sage) !important;
}

.shf-page-body .wpcf7-response-output {
    font-family: var(--shf-font-sans) !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
    border-radius: var(--shf-radius) !important;
    margin-top: 16px !important;
}

/* ============================================================
   RESPONSIVE — PAGE
   ============================================================ */
@media (max-width: 900px) {
    .shf-page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .shf-page-sidebar {
        position: static;
        order: -1;
    }

    .shf-page-hero {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .shf-page-hero {
        height: 220px;
    }

    .shf-post-content .alignleft,
    .shf-post-content .alignright {
        float: none;
        max-width: 100%;
        margin: 0 0 20px;
    }
}

/* ============================================================
   HOW TO ORDER — step styling
   ol in .shf-page-steps gets numbered step circles
   ============================================================ */
.shf-page-steps ol {
    list-style: none;
    padding-left: 0;
    counter-reset: shf-step;
    margin-bottom: 32px;
}

.shf-page-steps ol li {
    counter-increment: shf-step;
    padding: 24px 24px 24px 72px;
    position: relative;
    border-bottom: 1px solid var(--shf-border);
    font-size: 15px;
    line-height: 1.72;
    color: var(--shf-charcoal);
    font-weight: 300;
}

.shf-page-steps ol li:last-child {
    border-bottom: none;
}

.shf-page-steps ol li::before {
    content: counter(shf-step);
    position: absolute;
    left: 0;
    top: 22px;
    width: 44px;
    height: 44px;
    background: var(--shf-forest);
    color: var(--shf-white);
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.shf-page-steps ol li strong {
    display: block;
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 6px;
    line-height: 1.2;
}
/* ============================================================
   HOME PAGE — SHARED INTRO PARAGRAPH
   Used above product grid, state section, blog grid
   ============================================================ */
.shf-home-section-intro {
    font-family: var(--shf-font-sans);
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.75;
    font-weight: 300;
    max-width: 720px;
    margin-bottom: var(--shf-s4);
}

/* ============================================================
   HOME — OUR STORY IMAGE PANEL
   Explicit aspect-ratio + background colour prevents CLS
   while the lazy-loaded image resolves
   ============================================================ */
.shf-home-story-img-panel {
    background: linear-gradient(155deg, #1B3A18, #2d5024);
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    position: relative;
    overflow: hidden;
    /* Reserve space before image loads — prevents layout shift */
    aspect-ratio: 3 / 2;
}

.shf-home-story-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    /* Fade in once loaded — JS not required, CSS only */
    transition: opacity 0.4s;
}

.shf-home-story-badge {
    position: relative;
    z-index: 1;
}

.shf-home-story-badge__eyebrow {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shf-gold-lt);
    margin-bottom: 8px;
}

.shf-home-story-badge__name {
    font-family: var(--shf-font-serif);
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

.shf-home-story-badge__name em {
    font-style: italic;
    font-weight: 300;
}

@media (max-width: 700px) {
    /* Stack story panel to single column on mobile */
    .shf-section--parchment > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .shf-home-story-img-panel {
        min-height: 260px;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   HOME — WHAT MAKES US DIFFERENT
   ============================================================ */
.shf-home-diff {
    background: var(--shf-cream);
}

.shf-home-diff__hdr {
    max-width: 760px;
    margin-bottom: var(--shf-s5);
}

.shf-home-diff__intro {
    font-family: var(--shf-font-sans);
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.75;
    font-weight: 300;
    margin-top: 16px;
}

/* 4-column feature grid */
.shf-home-diff__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--shf-border);
    border: 1px solid var(--shf-border);
    border-radius: var(--shf-radius);
    overflow: hidden;
}

.shf-home-diff__card {
    background: var(--shf-parchment);
    padding: 36px 28px;
    transition: background 0.22s;
}

.shf-home-diff__card:hover {
    background: var(--shf-warm);
}

.shf-home-diff__icon {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
    /* Pre-size the emoji container to prevent reflow */
    display: block;
    width: 40px;
    height: 40px;
}

.shf-home-diff__title {
    font-family: var(--shf-font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
    line-height: 1.2;
}

.shf-home-diff__body {
    font-family: var(--shf-font-sans);
    font-size: 13px;
    color: var(--shf-stone);
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 900px) {
    .shf-home-diff__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .shf-home-diff__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HOME — HOW IT WORKS
   ============================================================ */
.shf-home-hiw {
    background: var(--shf-parchment);
    border-top: 1px solid var(--shf-border);
    border-bottom: 1px solid var(--shf-border);
}

.shf-home-hiw__steps {
    display: grid;
    /* 3 steps + 2 connectors */
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    max-width: 900px;
    margin-inline: auto;
}

.shf-home-hiw__step {
    background: var(--shf-white);
    border: 1px solid var(--shf-border);
    border-radius: 3px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
}

/* Step number — top-left corner */
.shf-home-hiw__step-num {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--shf-font-serif);
    font-size: 13px;
    font-weight: 300;
    color: var(--shf-border);
    line-height: 1;
}

/* Emoji icon — pre-sized block to prevent reflow */
.shf-home-hiw__step-icon {
    font-size: 36px;
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    line-height: 48px;
}

.shf-home-hiw__step-title {
    font-family: var(--shf-font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
    line-height: 1.2;
}

.shf-home-hiw__step-body {
    font-family: var(--shf-font-sans);
    font-size: 13px;
    color: var(--shf-stone);
    line-height: 1.7;
    font-weight: 300;
}

/* Connector arrow between steps */
.shf-home-hiw__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    /* Align with top of step cards */
    padding-top: 60px;
    color: var(--shf-border);
    font-size: 20px;
    flex-shrink: 0;
}

.shf-home-hiw__connector::after {
    content: '→';
    color: var(--shf-gold);
    font-size: 22px;
    font-weight: 300;
}

@media (max-width: 780px) {
    .shf-home-hiw__steps {
        grid-template-columns: 1fr;
        gap: 2px;
        background: var(--shf-border);
        border-radius: 3px;
        overflow: hidden;
    }

    .shf-home-hiw__connector {
        display: none; /* arrows hidden on mobile — vertical flow is self-evident */
    }

    .shf-home-hiw__step {
        border-radius: 0;
        border: none;
    }
}

/* ============================================================
   HOME — TESTIMONIALS
   ============================================================ */
.shf-home-testimonials {
    background: var(--shf-cream);
    border-top: 1px solid var(--shf-border);
}

.shf-home-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shf-home-testimonial {
    background: var(--shf-white);
    border: 1px solid var(--shf-border);
    border-radius: 3px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    /* No images = zero CLS risk, pure text */
}

/* Top star row */
.shf-home-testimonial__stars {
    color: var(--shf-gold);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 1;
}

/* Quote text */
.shf-home-testimonial__quote {
    font-family: var(--shf-font-serif);
    font-size: 17px;
    font-style: italic;
    font-weight: 300;
    color: var(--shf-charcoal);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

/* Name + location */
.shf-home-testimonial__footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 18px;
    border-top: 1px solid var(--shf-border);
    margin-top: auto;
}

.shf-home-testimonial__name {
    font-family: var(--shf-font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--shf-charcoal);
    font-style: normal;
}

.shf-home-testimonial__loc {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    color: var(--shf-stone);
    font-weight: 300;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .shf-home-testimonials__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* On mobile show 1 testimonial by default,
       let users scroll to see rest */
    .shf-home-testimonials__grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .shf-home-testimonials__grid::-webkit-scrollbar {
        display: none;
    }

    .shf-home-testimonial {
        flex: 0 0 85vw;
        max-width: 340px;
        scroll-snap-align: start;
    }
}

/* ============================================================
   LOCATION PAGE — WHY FARM-DIRECT  (Section 5)
   ============================================================ */
.shf-loc-wfd__body {
    max-width: 760px;
    margin-bottom: var(--shf-s4);
}

.shf-loc-wfd__body p {
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.78;
    font-weight: 300;
    margin-bottom: 16px;
}

.shf-loc-wfd__body p:last-child {
    margin-bottom: 0;
}

/* 3-col feature block */
.shf-loc-wfd__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--shf-border);
    border: 1px solid var(--shf-border);
    border-radius: var(--shf-radius);
    overflow: hidden;
    margin-top: var(--shf-s4);
}

.shf-loc-wfd__feature {
    background: var(--shf-cream);
    padding: 32px 28px;
    transition: background 0.22s;
}

.shf-loc-wfd__feature:hover {
    background: var(--shf-warm);
}

/* Pre-sized emoji container — prevents CLS */
.shf-loc-wfd__icon {
    display: block;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 40px;
    margin-bottom: 14px;
}

.shf-loc-wfd__title {
    font-family: var(--shf-font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--shf-charcoal);
    margin-bottom: 10px;
    line-height: 1.2;
}

.shf-loc-wfd__text {
    font-family: var(--shf-font-sans);
    font-size: 13px;
    color: var(--shf-stone);
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 700px) {
    .shf-loc-wfd__features {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   LOCATION PAGE — NUTRITION & VALUE  (Section 7)
   ============================================================ */
.shf-loc-nutr__layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}

.shf-loc-nutr__copy .shf-heading {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 20px;
}

.shf-loc-nutr__copy p {
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.78;
    font-weight: 300;
    margin-bottom: 14px;
}

.shf-loc-nutr__copy p:last-child {
    margin-bottom: 0;
}

/* Nutrition stats panel — 2×2 grid */
.shf-loc-nutr__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--shf-border);
    border: 1px solid var(--shf-border);
    border-radius: var(--shf-radius);
    overflow: hidden;
    position: sticky;
    top: calc(66px + var(--shf-s3));
}

.shf-loc-nutr__stat {
    background: var(--shf-cream);
    padding: 28px 22px;
    text-align: center;
}

.shf-loc-nutr__stat-n {
    font-family: var(--shf-font-serif);
    font-size: 34px;
    font-weight: 300;
    color: var(--shf-forest);
    line-height: 1;
    margin-bottom: 8px;
}

.shf-loc-nutr__stat-l {
    font-family: var(--shf-font-sans);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--shf-stone);
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 780px) {
    .shf-loc-nutr__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .shf-loc-nutr__stats {
        position: static;
    }
}

/* ============================================================
   LOCATION PAGE — HOW WE RAISE  (Section 8)
   ============================================================ */
.shf-loc-raise__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.shf-loc-raise__copy .shf-heading {
    font-size: clamp(24px, 3vw, 38px);
    margin-bottom: 20px;
}

.shf-loc-raise__copy p {
    font-size: 15px;
    color: var(--shf-stone);
    line-height: 1.78;
    font-weight: 300;
    margin-bottom: 14px;
}

/* Image panel — reserves space before image loads */
.shf-loc-raise__img-panel {
    position: relative;
    background: linear-gradient(155deg, var(--shf-forest), #2d5024);
    border-radius: 4px;
    overflow: hidden;
    /* Explicit aspect ratio = no CLS while lazy image loads */
    aspect-ratio: 3 / 2;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.shf-loc-raise__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

/* Location badge — always visible regardless of image */
.shf-loc-raise__badge {
    position: relative;
    z-index: 1;
}

.shf-loc-raise__badge-line {
    font-family: var(--shf-font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--shf-white);
    margin-bottom: 4px;
}

.shf-loc-raise__badge-sub {
    font-family: var(--shf-font-sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--shf-gold-lt);
    font-weight: 300;
}

@media (max-width: 780px) {
    .shf-loc-raise__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .shf-loc-raise__img-panel {
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }
}

/* ============================================================
   LOCATION PAGE — CITIES TAG CLOUD  (Section 10)
   ============================================================ */
.shf-loc-cities-cloud .shf-heading {
    margin-bottom: 14px;
}

.shf-loc-cities-cloud__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--shf-s3) 0 var(--shf-s3);
}

.shf-loc-cities-cloud__tag {
    font-family: var(--shf-font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--shf-forest);
    background: rgba(27,58,24,0.07);
    border: 1px solid rgba(27,58,24,0.18);
    border-radius: 20px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.shf-loc-cities-cloud__tag:hover {
    background: rgba(27,58,24,0.13);
    border-color: rgba(27,58,24,0.32);
}

.shf-loc-cities-cloud__outro {
    font-family: var(--shf-font-sans);
    font-size: 14px;
    color: var(--shf-stone);
    font-weight: 300;
    font-style: italic;
    margin-top: var(--shf-s2);
}

/* ============================================================
   MOBILE OVERFLOW FIXES
   All two-column grids that were overflowing on mobile.
   Using 600px breakpoint to catch all modern phone widths.
   ============================================================ */

/* ── Homepage: Our Story split panel ── */
.shf-home-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: var(--shf-max-w);
    margin-inline: auto;
}

@media (max-width: 700px) {
    .shf-home-story-grid {
        grid-template-columns: 1fr;
    }

    /* Swap order — image below copy on mobile */
    .shf-home-story-img-panel {
        order: 2;
    }
}

/* ── Homepage: Our Story copy padding on mobile ── */
@media (max-width: 700px) {
    .shf-home-story-grid > div:first-child {
        padding: var(--shf-s4) var(--shf-s4) var(--shf-s3) !important;
    }
}

/* ── Location page: Delivery Coverage grid ── */
@media (max-width: 700px) {
    .shf-loc-body-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

/* ── Location page: Nutrition layout ── */
@media (max-width: 700px) {
    .shf-loc-nutr__layout {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .shf-loc-nutr__stats {
        position: static !important;
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Location page: How We Raise layout ── */
@media (max-width: 700px) {
    .shf-loc-raise__layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ── Location page: Why Farm-Direct features ── */
@media (max-width: 700px) {
    .shf-loc-wfd__features {
        grid-template-columns: 1fr !important;
    }
}

/* ── General: prevent any grid from overflowing viewport ──
   Safety net for any grid we may have missed */
@media (max-width: 600px) {
    .shf-container {
        overflow-x: hidden;
    }

    /* Any two-column grid not already handled above */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MINI CART DRAWER
   ============================================================ */

/* Hidden state helper */
.shf-cart-count--hidden {
    display: none;
}

/* Cart button is now a toggle button not a link */
.shf-minicart-toggle {
    position: relative;
}

/* Drawer wrapper — rendered via wp_footer, direct child of <body>
   position:fixed is relative to viewport when no ancestor has
   transform/filter. z-index beats header (200) and WC notices (9999). */
.shf-minicart {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
    /* Isolate so nothing outside can affect stacking */
    isolation: isolate;
}

.shf-minicart.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Dark overlay */
.shf-minicart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shf-minicart.is-open .shf-minicart__overlay {
    opacity: 1;
}

/* Slide-in panel from the right */
.shf-minicart__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--shf-cream);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.shf-minicart.is-open .shf-minicart__panel {
    transform: translateX(0);
}

/* Header row */
.shf-minicart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--shf-warm);
    flex-shrink: 0;
}

.shf-minicart__title {
    font-family: var(--shf-font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--shf-forest);
    letter-spacing: 0.02em;
}

.shf-minicart__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--shf-forest);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.shf-minicart__close:hover {
    background: var(--shf-warm);
}

/* Scrollable body */
.shf-minicart__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

/* Empty state */
.shf-minicart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    padding: 40px 0;
    text-align: center;
    color: var(--shf-forest);
    opacity: 0.7;
}

.shf-minicart__empty p {
    font-size: 1rem;
    margin: 0;
}

/* Item list */
.shf-minicart__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shf-minicart__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--shf-warm);
}

.shf-minicart__item:last-child {
    border-bottom: none;
}

.shf-minicart__item-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--shf-parchment);
}

.shf-minicart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shf-minicart__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shf-minicart__item-name {
    font-family: var(--shf-font-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--shf-forest);
    text-decoration: none;
    line-height: 1.3;
}

.shf-minicart__item-name:hover {
    text-decoration: underline;
}

.shf-minicart__item-qty,
.shf-minicart__item-price {
    font-size: 0.82rem;
    color: var(--shf-forest);
    opacity: 0.75;
}

.shf-minicart__item-price {
    font-weight: 600;
    opacity: 1;
    color: var(--shf-gold);
}

.shf-minicart__item-remove {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--shf-forest);
    opacity: 0.4;
    text-decoration: none;
    padding: 2px 4px;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.shf-minicart__item-remove:hover {
    opacity: 1;
}

/* Footer totals + CTAs */
.shf-minicart__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--shf-warm);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--shf-cream);
}

.shf-minicart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--shf-forest);
}

.shf-minicart__subtotal strong {
    font-family: var(--shf-font-serif);
    font-size: 1.1rem;
}

.shf-minicart__checkout {
    text-align: center;
    width: 100%;
    justify-content: center;
}

.shf-minicart__view-cart {
    text-align: center;
    font-size: 0.85rem;
    color: var(--shf-forest);
    opacity: 0.7;
    text-decoration: underline;
}

.shf-minicart__view-cart:hover {
    opacity: 1;
}

/* Loading state while fragments refresh */
.shf-minicart__body.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 480px) {
    .shf-minicart__panel {
        /* Slide up from bottom on mobile, capped at 85vh so page is still visible */
        width: 100vw;
        top: auto;
        bottom: 0;
        right: 0;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .shf-minicart.is-open .shf-minicart__panel {
        transform: translateY(0);
    }
}

/* ── Mini cart quantity stepper ── */
.shf-minicart__qty {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    border: 1px solid var(--shf-warm);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.shf-mc-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--shf-forest);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shf-mc-qty-btn:hover:not(:disabled) {
    background: var(--shf-warm);
}

.shf-mc-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.shf-mc-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--shf-forest);
    border-left: 1px solid var(--shf-warm);
    border-right: 1px solid var(--shf-warm);
    padding: 0 4px;
    line-height: 28px;
}

/* ── Mini cart coupon field ── */
.shf-minicart__coupon {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--shf-warm);
}

.shf-minicart__coupon-row {
    display: flex;
    gap: 8px;
}

.shf-minicart__coupon-input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--shf-warm);
    border-radius: 6px;
    background: var(--shf-parchment);
    color: var(--shf-forest);
    font-family: var(--shf-font-sans);
    font-size: 0.85rem;
}

.shf-minicart__coupon-input:focus {
    outline: none;
    border-color: var(--shf-gold);
}

.shf-minicart__coupon-btn {
    height: 36px;
    padding: 0 14px;
    background: var(--shf-forest);
    color: var(--shf-cream);
    border: none;
    border-radius: 6px;
    font-family: var(--shf-font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.shf-minicart__coupon-btn:hover {
    background: var(--shf-sage);
}

.shf-minicart__coupon-msg {
    margin-top: 6px;
    font-size: 0.8rem;
    min-height: 1em;
}

.shf-minicart__coupon-msg.is-success { color: #3a7a3a; }
.shf-minicart__coupon-msg.is-error   { color: #c0392b; }

/* Applied coupons list */
.shf-minicart__coupons-applied {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shf-minicart__coupons-applied li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.shf-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--shf-parchment);
    border: 1px solid var(--shf-warm);
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
    color: var(--shf-forest);
    letter-spacing: 0.04em;
}

.shf-coupon-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--shf-forest);
    opacity: 0.5;
    padding: 0 2px;
    line-height: 1;
}

.shf-coupon-remove:hover { opacity: 1; }

.shf-coupon-discount {
    color: #3a7a3a;
    font-weight: 600;
}

/* Remove old plain qty text now that we have stepper */
.shf-minicart__item-qty { display: none; }
