#header,
#branding,
#site-title,
#site-description,
nav#menu,
#menu,
#search {
    display: none !important;
}

.entry-title,
header.header .entry-title,
.page header .entry-title {
    display: none !important;
}

/* !! IMPORTANT LCP FIX: @import for Great Vibes font has been removed from here 
    and is now loaded non-blocking in section 3.
*/

:root {
    --sbf-green: var(--sb-green, #4A6655);
    --sbf-green-dark: var(--sb-green-dark, #3c5547);
    --sbf-green-verydark: var(--sb-green-dark, #2d4639);
    /* Using dark for verydark */
    --sbf-gold: var(--sb-accent, #d4af87);
    --sbf-white: var(--sb-soft, #fff);
    --sbf-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    --sbf-font: Lato, sans-serif;
}

/* ===== HEADER WRAP ===== */
.sbf-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--sbf-green);
    color: var(--sbf-white);
    font-family: var(--sbf-font);
    transition: background .25s ease, box-shadow .25s ease;
}

.sbf-header.sbf-is-scrolled {
    background: var(--sbf-green-dark);
    box-shadow: var(--sbf-shadow);
}

/* ===== ROW 1 SCRIPT TITLE ===== */
/* FIXED: STRICT FLEX CENTERING FOR NEW .sb-container STRUCTURE */
/* FIXED: STRICT FLEX CENTERING FOR NEW .sb-container STRUCTURE */
.sbf-title-row {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Explicit max-height needed for transition from auto to 0 */
    max-height: 120px;
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 1;
}

.sbf-title-row .sb-container {
    width: 100%;
    max-width: 1400px;
    /* ENFORCE 1400px Limit */
    margin: 0 auto;
    /* Center it */
    padding: 0 20px;
    /* Prevent edge touching */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}


.sbf-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 44px;
    color: var(--sbf-white);
    text-decoration: none;
    letter-spacing: .6px;
    line-height: 1;
    transition: transform .35s ease, opacity .35s ease;
}

.sbf-title-script:hover {
    color: var(--sbf-gold);
}

/* shrink/hide row1 immediately on scroll */
.sbf-header.sbf-is-scrolled .sbf-title-script {
    transform: translateY(-5px);
    opacity: 0.5;
}

.sbf-header.sbf-hide-title .sbf-title-row {
    max-height: 0;
    /* Smoothly shrink */
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* ===== ROW 2 STICKY BAR ===== */
.sbf-bar {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sbf-bar-inner {
    width: 100%;
    /* max-width removed - handled by container */
    padding: 6px 0 8px;
    /* Tighter bar */
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
}

.sbf-bar .sb-container {
    width: 100%;
    max-width: 1400px;
    /* ENFORCE 1400px Limit */
    margin: 0 auto;
    /* Center it */
    padding: 0 20px;
    /* Prevent edge touching */
    box-sizing: border-box;
}

/* ===== DESKTOP MENU ===== */
.sbf-menu-desktop {
    display: block;
}

.sbf-menu {
    display: flex;
    gap: 12px;
    /* Tighter gap between items */
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sbf-menu>li {
    position: relative;
}

.sbf-menu a {
    color: var(--sbf-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: .2px;
    padding: 1px 4px;
    /* Minimal padding */
    /* Tighter vertical, slightly wider target */
    line-height: 1;
    /* Force single line height */
    position: relative;
    transition: color .2s ease;
}

/* gold hover underline */
.sbf-menu a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    /* Moved closer */
    height: 2px;
    background: var(--sbf-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
    border-radius: 2px;
}

.sbf-menu a:hover {
    color: var(--sbf-gold);
}

.sbf-menu a:hover:after,
.sbf-menu li.current-menu-item>a:after,
.sbf-menu li.current-menu-ancestor>a:after {
    transform: scaleX(1);
}

/* ===== DESKTOP DROPDOWNS (REBUILT) ===== */
.sbf-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sbf-white);
    border-radius: 8px;
    padding: 2px 0;
    /* Minimized padding */
    min-width: 200px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: none;
    list-style: none;
    margin: 0 !important;
    /* Force zero margin */
    z-index: 99999;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Force list items to have 2px spacing */
.sbf-menu .sub-menu li,
.sbf-menu .sub-menu>li {
    margin: 0 0 2px 0 !important;
    /* 2px Gap */
    padding: 0 !important;
    line-height: 1 !important;
    display: block !important;
}

.sbf-menu .sub-menu li:last-child {
    margin-bottom: 0 !important;
}

/* Invisible bridge for hover safety (optional but good practice) */
.sbf-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* Open State */
.sbf-menu li:hover>.sub-menu,
.sbf-menu li.sbf-focus>.sub-menu,
/* Allow JS focus class */
.sbf-menu li.sbf-hovering>.sub-menu {
    display: block;
    animation: sbf-fade-in 0.2s ease;
}

/* Animations */
@keyframes sbf-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.sbf-menu .sub-menu a {
    color: var(--sbf-green-verydark);
    font-weight: 600;
    font-size: 13px;
    display: block;
    padding: 2px 14px;
    /* Tighter padding */
    line-height: 1.1;
    /* Compact lines */
    transition: background .15s ease;
    margin: 0 !important;
    /* Safety */
}

.sbf-menu .sub-menu a:hover {
    background: rgba(74, 102, 85, 0.08);
    /* Brand green tint */
    color: var(--sbf-green);
}

/* ===== ACTIONS ===== */
.sbf-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

/* ===== DESKTOP AWS SEARCH (D1 WHITE PILL) ===== */
.sbf-search-desktop {
    display: block;
}

.sbf-search-desktop form {
    margin: 0 !important;
}

.sbf-search-desktop .aws-container {
    width: auto;
    display: block !important;
    /* UNHIDE */
}

/* NUCLEAR OVERRIDE: FORCE High Specificity to beat plugin defaults */
/* PILL WRAPPER */
html body .sbf-search-desktop .aws-container .aws-wrapper {
    height: 34px !important;
    /* Taller for better click area */
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 34px !important;
    padding: 0 0 0 16px !important;
    /* Left Padding for text */
    font-size: 13px !important;
    width: 240px !important;
    /* Wider */
    border: none !important;
    background: var(--sbf-white) !important;
    /* White Pill background */
    border-radius: 99px !important;
    /* Pill Shape */
    color: #333 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* INPUT FIELD */
html body .sbf-search-desktop .aws-container .aws-search-field {
    background: transparent !important;
    color: #333 !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 40px 0 0 !important;
    /* Right padding ensures text doesn't hit button */
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

/* SUBMIT BUTTON (The Fix - integrated into pill) */
html body .sbf-search-desktop .aws-container .aws-search-form .aws-form-btn {
    position: absolute !important;
    right: 2px !important;
    /* Slight offset */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    /* REMOVE GREY SQUARE */
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
}

/* Hover effect on button */
html body .sbf-search-desktop .aws-container .aws-search-form .aws-form-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Icon color inside button */
html body .sbf-search-desktop .aws-container .aws-search-form .aws-form-btn i,
html body .sbf-search-desktop .aws-container .aws-search-form .aws-form-btn span,
html body .sbf-search-desktop .aws-container .aws-search-form .aws-form-btn svg {
    color: var(--sbf-green) !important;
    /* Brand Green Icon */
    font-size: 14px !important;
    fill: var(--sbf-green) !important;
}

/* ===== MOBILE SEARCH ICON (NO BG) ===== */
.sbf-search-icon {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--sbf-white);
    padding: 4px;
    line-height: 1;
}

.sbf-search-icon:hover {
    color: var(--sbf-gold);
}

/* ===== CART ICON (NO BG) ===== */
.sbf-cart-icon {
    position: relative;
    font-size: 21px;
    text-decoration: none;
    color: var(--sbf-white);
    padding: 4px;
    line-height: 1;
}

.sbf-cart-icon:hover {
    color: var(--sbf-gold);
}

.sbf-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sbf-gold);
    color: #1f2b24;
    font-size: 11px;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid var(--sbf-green);
}

/* ===== BURGER (Modern 2-Line) ===== */
.sbf-burger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.sbf-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sbf-white);
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Animation: Top Line */
.sbf-burger.sbf-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
    background: var(--sbf-gold);
}

/* Animation: Bottom Line */
.sbf-burger.sbf-open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    background: var(--sbf-gold);
}

/* Remove 3rd line if it existed */
.sbf-burger.sbf-open span:nth-child(3) {
    opacity: 0;
    display: none;
}

/* ===== MOBILE PANEL (Premium Drawer) ===== */
.sbf-mobile-panel {
    display: none;
    /* Toggled via JS */
    position: fixed;
    inset: 0;
    z-index: 99999;
    /* Top of everything */
}

.sbf-mobile-panel.sbf-open {
    display: block;
}

/* 1. Glass Backdrop */
.sbf-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sbf-mobile-panel.sbf-open .sbf-mobile-backdrop {
    opacity: 1;
}

/* 2. Slide-In Drawer */
.sbf-mobile-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    /* Standard width */
    max-width: 85vw;
    background: var(--sbf-green-verydark);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Elegant spring */
    display: flex;
    flex-direction: column;
}

.sbf-mobile-panel.sbf-open .sbf-mobile-drawer {
    transform: translateX(0);
}

/* 3. Header Area */
.sbf-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sbf-mobile-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--sbf-gold);
    font-style: italic;
}

.sbf-mobile-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.sbf-mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sbf-close-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.sbf-close-icon::before,
.sbf-close-icon::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--sbf-white);
    transform: rotate(45deg);
}

.sbf-close-icon::after {
    transform: rotate(-45deg);
}

/* 4. Navigation List */
.sbf-mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 40px;
}

.sbf-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Airy spacing */
}

.sbf-menu-mobile>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
}

.sbf-menu-mobile>li:last-child {
    border-bottom: none;
}

.sbf-menu-mobile a {
    font-family: "Playfair Display", serif;
    /* Premium font mix */
    font-size: 22px;
    color: var(--sbf-white);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
}

.sbf-menu-mobile a:hover {
    color: var(--sbf-gold);
    transform: translateX(4px);
}

/* 5. Submenus */
.sbf-menu-mobile .sub-menu {
    list-style: none;
    margin: 12px 0 0 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    /* Toggled via JS */
}

.sbf-menu-mobile li.sbf-open-sub>.sub-menu {
    display: block;
    animation: sbf-fade-in-down 0.3s ease;
}

.sbf-menu-mobile .sub-menu a {
    font-family: var(--sbf-font);
    /* Switch back to sans for sub-items */
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
}

/* Arrow rotation */
.sbf-menu-mobile li.menu-item-has-children>a::after {
    content: "›";
    /* Minimal arrow */
    font-family: sans-serif;
    font-size: 20px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    width: 24px;
    text-align: center;
}

.sbf-menu-mobile li.sbf-open-sub>a::after {
    transform: rotate(-90deg);
    color: var(--sbf-gold);
}

@keyframes sbf-fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SEARCH OVERLAY ===== */
.sbf-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 33, 26, .92);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 99999;
}

.sbf-search-overlay.sbf-open {
    display: block;
}

.sbf-search-overlay-inner {
    max-width: 720px;
    margin: 10vh auto 0;
    text-align: center;
    padding: 0 18px;
    color: var(--sbf-white);
    font-family: var(--sbf-font);
}

.sbf-search-overlay-inner h3 {
    font-family: "Playfair Display", serif;
    right: 22px;
    font-size: 38px;
    line-height: 1;
    background: none;
    border: none;
    color: var(--sbf-white);
    cursor: pointer;
    opacity: .9;
}

.sbf-search-close:hover {
    color: var(--sbf-gold);
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
    .sbf-menu {
        gap: 14px;
    }

    .sbf-menu a {
        font-size: 14.5px;
    }

    .sbf-search-desktop input[type="search"],
    .sbf-search-desktop .aws-search-field {
        width: 220px !important;
    }
}

@media(max-width:900px) {
    .sbf-bar-inner {
        grid-template-columns: 1fr;
    }

    .sbf-menu-desktop {
        display: none;
    }

    .sbf-search-desktop {
        display: none;
    }

    .sbf-search-icon {
        display: inline-block;
    }

    .sbf-burger {
        display: flex;
    }

    /* center icons on mobile */
    .sbf-actions {
        justify-content: center;
        width: 100%;
        gap: 18px;
        padding-top: 2px;
    }
}

@media(max-width:600px) {
    .sbf-title-script {
        font-size: 38px;
    }
}

/* ============================================================
    EXTRA PATCHES (Desktop Menu & Mini Cart)
============================================================ */

/* FLICKER-SAFE OVERRIDE: only animate opacity + transform */
.sbf-title-row,
.sbf-title-script {
    transition: opacity .25s ease, transform .25s ease;
}

/* Nested dropdowns (level 2+) open to the right */
.sbf-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: none;
    margin: 0 0 0 8px;
    border-radius: 12px;
    min-width: 200px;
}

/* Parent arrows for multi-level desktop menus */
.sbf-menu li.menu-item-has-children>a::after {
    content: "";
}

.sbf-menu .sub-menu li.menu-item-has-children>a::after {
    content: "›";
    float: right;
    margin-left: 8px;
    font-size: 14px;
    opacity: .75;
}

/* SLIDE-IN MINI CART PANEL (DESKTOP ONLY) */
.sbf-cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    /* hidden offscreen */
    width: 360px;
    height: 100vh;
    background: var(--sbf-white);
    z-index: 999999;
    box-shadow: -4px 0 30px rgba(0, 0, 0, .25);
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    transition: right .35s ease;
}

.sbf-cart-panel.sbf-open {
    right: 0;
}

.sbf-cart-panel-inner {
    margin-top: 6px;
    overflow-y: auto;
    height: calc(100% - 40px);
}

.sbf-cart-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--sbf-green-verydark);
    margin-left: auto;
}

/* Backdrop */
.sbf-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
    z-index: 999998;
    display: none;
}

.sbf-cart-backdrop.sbf-open {
    display: block;
}

/* =========================================================
    MINI CART CLEANUP (Checkout Style) - FIXED
========================================================= */

/* 1. Reset List */
.sbf-cart-panel-inner ul.woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 2. Image Sizing Fix */
.sbf-cart-panel-inner .woocommerce-mini-cart-item img {
    width: 60px !important;
    height: auto !important;
    min-width: 60px;
    border-radius: 4px;
}

/* 3. Item Layout & Typography */
.sbf-cart-panel-inner .woocommerce-mini-cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    /* Light divider */
    color: var(--sbf-green-verydark);
    font-size: 14px;
}

.sbf-cart-panel-inner .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

/* 4. Item Name/Link Container */
.sbf-cart-panel-inner .woocommerce-mini-cart-item a:not(.remove) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
    font-weight: 600;
    color: var(--sbf-green-dark);
    text-decoration: none;
    flex-grow: 1;
}

/* Ensure the price quantity span is on its own line for best structure */
.sbf-cart-panel-inner .woocommerce-mini-cart-item .quantity {
    display: block;
    margin-top: 5px;
    margin-left: 70px;
    /* Aligns price under the text, offset by image width */
    font-weight: 600;
}


/* 5. Total Row Styling */
.sbf-cart-panel-inner .woocommerce-mini-cart__total {
    padding: 14px 0 10px;
    border-top: 2px solid var(--sbf-green-dark);
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sbf-green-verydark);
    text-align: right;
}

.sbf-cart-panel-inner .woocommerce-mini-cart__total strong {
    font-weight: 700;
    margin-right: 8px;
}

.sbf-cart-panel-inner .woocommerce-Price-amount {
    font-weight: 700;
    color: #000;
}

/* 6. Button Styling (Checkout Look) */
.sbf-cart-panel-inner .woocommerce-mini-cart__buttons a {
    display: block;
    margin-top: 12px;
    text-align: center;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    line-height: 1;
    /* Match checkout button line height */
}

/* Primary Action: Checkout (Gold Background) */
.sbf-cart-panel-inner .woocommerce-mini-cart__buttons a.checkout {
    background: var(--sbf-gold);
    color: var(--sbf-green-verydark) !important;
    border: 1px solid var(--sbf-gold);
}

.sbf-cart-panel-inner .woocommerce-mini-cart__buttons a.checkout:hover {
    background: #e0c39f;
    /* Slightly darker gold on hover */
}

/* Secondary Action: View Cart (Green Border/Text) */
.sbf-cart-panel-inner .woocommerce-mini-cart__buttons a:not(.checkout) {
    background: transparent;
    color: var(--sbf-green-verydark) !important;
    border: 1px solid var(--sbf-green-dark);
}

.sbf-cart-panel-inner .woocommerce-mini-cart__buttons a:not(.checkout):hover {
    background: var(--sbf-green-dark);
    color: #fff !important;
}

/* Desktop only: disable slide-in on mobile */
@media(max-width:900px) {

    .sbf-cart-panel,
    .sbf-cart-backdrop {
        display: none !important;
    }
}