/* File: /public_html/wp-content/plugins/natures-garden-custom/menu-styles.css */
/* --- GLOBAL HEADER SPACING FIX --- */

/* --- ENFOLD HEADER & LOGO FIX --- */
.logo img {
    padding-top: 10px !important;
    padding-bottom: 15px !important;
    max-height: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}
/* --- GENERAL MENU COMPONENTS --- */

.allergy-notice-banner {
    background-color: #f9f6f0;
    border: 1px solid #d3cbb8;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Cafe Page Jump Menu */
.cafe-jump-menu {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
}

.cafe-jump-menu li a {
    text-decoration: none;
    color: #4a5d23;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #4a5d23;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cafe-jump-menu li a:hover {
    background-color: #4a5d23;
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* --- PREMIUM CAFE MENU ISOLATION --- */

.premium-cafe-menu {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Elegant Section Headers */
.premium-cafe-menu .menu-section-header {
    font-family: serif;
    font-size: 2.8rem;
    color: #4a5d23;
    text-align: center;
    margin: 5rem 0 2.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #eae5dd;
    letter-spacing: 2px;
}

/* --- STRICT 3-COLUMN GRID ENFORCEMENT --- */
.premium-cafe-menu ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    padding: 0 !important;
    align-items: stretch !important; /* FORCES ALL CARDS IN A ROW TO BE THE SAME HEIGHT */
}

.premium-cafe-menu ul.products::before, 
.premium-cafe-menu ul.products::after {
    display: none !important;
}

@media (max-width: 768px) {
    .premium-cafe-menu ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* --- SLIM PREMIUM PRODUCT CARDS --- */
.premium-cafe-menu .woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #eae5dd !important;
    border-radius: 6px !important;
    padding: 15px 15px 75px 15px !important; /* 75px creates an empty safe zone at the bottom */
    position: relative !important; /* Required to lock the button in place */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    text-align: center !important;
}

/* Ensure the internal link wrapper also stretches so the button is pushed down */
.premium-cafe-menu .woocommerce ul.products li.product > a {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-decoration: none !important;
}

/* Cinematic Slim Images (16:9 Ratio) */
.premium-cafe-menu .woocommerce ul.products li.product img {
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}

/* Refined Typography */
.premium-cafe-menu .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-family: serif !important;
    font-size: 1.35rem !important;
    color: #2c3518 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

.premium-cafe-menu .woocommerce ul.products li.product .price {
    font-size: 1.15rem !important;
    color: #4a5d23 !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
}

.premium-menu-description {
    font-size: 0.9rem !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
    font-style: italic !important;
    flex-grow: 1 !important;
}

/* --- ENFOLD BUTTON OVERRIDES --- */

/* Force Enfold's hidden button wrapper to lock to the bottom */
.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: absolute !important; /* Locks the button to the bottom edge */
    bottom: 15px !important; /* Places it exactly 15px from the bottom */
    left: 15px !important;
    right: 15px !important;
    margin: 0 !important;
}

/* Hide Enfold's secondary "Show Details" button to remove clutter */
.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons .show_details_button {
    display: none !important;
}

/* Premium Full-Width Order Button */
.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons .add_to_cart_button {
    display: block !important;
    width: 100% !important;
    background-color: #4a5d23 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px 0 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.85rem !important;
    border: none !important;
    text-align: center !important;
    transition: background-color 0.3s ease !important;
}

.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons .add_to_cart_button:hover {
    background-color: #3b4a1c !important;
}

/* --- HIDE SHIPPING DESTINATION TEXT IN CART --- */
.woocommerce-cart p.woocommerce-shipping-destination {
    display: none !important;
}

/* Completely hide Enfold's secondary button wrapper and any interior separators */
.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons .button.show_details_button,
.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons > span,
.premium-cafe-menu .woocommerce ul.products li.product .avia_cart_buttons > a:not(.add_to_cart_button) {
    display: none !important;
}

/* --- BULLETPROOF ENFOLD HOMEPAGE PRODUCT GRID FIX --- */

/* Force the main container to behave as a grid */
.template-page .product-loop-grid ul.products,
.avia-content-slider-element ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Clear Enfold's default floating and width constraints on individual cards */
.template-page .product-loop-grid ul.products li.product,
.avia-content-slider-element ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    height: 100% !important;
    background: #ffffff !important;
    border: 1px solid #eae5dd !important;
    border-radius: 6px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

/* Uniform image sizing */
.template-page .product-loop-grid ul.products li.product img,
.avia-content-slider-element ul.products li.product img {
    height: 180px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
}

/* Clean up paragraph text and clamp long descriptions */
.template-page .product-loop-grid ul.products li.product p,
.avia-content-slider-element ul.products li.product p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Shortens description to max 2 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #666666 !important;
    margin: 10px 0 !important;
    flex-grow: 1 !important;
}

/* Lock buttons nicely to the bottom */
.template-page .product-loop-grid ul.products li.product .button,
.template-page .product-loop-grid ul.products li.product .avia_cart_buttons {
    margin-top: auto !important;
    text-align: center !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .template-page .product-loop-grid ul.products,
    .avia-content-slider-element ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* --- SHORTEN DESCRIPTIONS ON MEDICINE SHOP PAGES --- */
.woocommerce.archive ul.products li.product p,
.woocommerce.shop-page ul.products li.product p,
.woocommerce ul.products li.product .woocommerce-product-details__short-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Limits the text to a maximum of 3 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

/* --- PREMIUM ALLERGY NOTICE --- */
.premium-allergy-notice {
    background-color: #fdfbf7;
    border: 1px solid #eae5dd;
    border-radius: 8px;
    padding: 45px 30px;
    text-align: center;
    margin: 0 auto 50px auto;
    max-width: 950px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Circular Exclamation Icon */
.allergy-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border: 2px solid #4a5d23;
    color: #4a5d23;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Typography Hierarchy */
.premium-allergy-notice h2 {
    font-family: sans-serif !important;
    font-size: 1.6rem !important;
    letter-spacing: 2px !important;
    color: #2c3518 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.premium-allergy-notice h3 {
    font-family: serif !important;
    font-size: 1.5rem !important;
    color: #4a5d23 !important;
    font-style: italic !important;
    margin: 0 0 25px 0 !important;
    font-weight: normal !important;
    text-transform: none !important;
}

.premium-allergy-notice p.allergy-main-text {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #555555 !important;
    max-width: 800px !important;
    margin: 0 auto 30px auto !important;
}

/* Allergen Grid Section */
.premium-allergy-notice p.allergy-subtitle {
    font-weight: bold !important;
    color: #2c3518 !important;
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.allergy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 35px;
    margin-bottom: 30px;
}

.allergy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #4a5d23;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.allergy-emoji {
    font-size: 1.6rem;
    filter: grayscale(20%) sepia(20%) hue-rotate(50deg); 
}

/* Footer Note */
.premium-allergy-notice p.allergy-footer {
    font-size: 0.95rem !important;
    color: #666666 !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

.premium-allergy-notice p.allergy-footer strong {
    color: #4a5d23;
}

/* --- 2-COLUMN GRID FOR STUDIO WOMBAT --- */

/* Hide the default labels */
.wombat-adult-sides .wapf-field-label,
.wombat-salad-sides .wapf-field-label,
.wombat-kids-sides .wapf-field-label {
    display: none !important;
}

/* Inject the gorgeous green serif menu header */
.wombat-adult-sides::before,
.wombat-salad-sides::before,
.wombat-kids-sides::before {
    content: "Choose Your Sides" !important;
    display: block !important;
    margin-bottom: 20px !important;
    font-family: serif !important;
    font-size: 1.25rem !important;
    color: #4a5d23 !important;
    font-weight: bold !important;
    border-bottom: 1px solid #eae5dd !important;
    padding-bottom: 8px !important;
    width: 100% !important; 
}

/* Force options into a clean 2-column grid */
.wombat-adult-sides .wapf-field-input, .wombat-adult-sides .wapf-checkboxes, .wombat-adult-sides .wapf-input-container,
.wombat-salad-sides .wapf-field-input, .wombat-salad-sides .wapf-checkboxes, .wombat-salad-sides .wapf-input-container,
.wombat-kids-sides .wapf-field-input, .wombat-kids-sides .wapf-checkboxes, .wombat-kids-sides .wapf-input-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 40px !important;
    row-gap: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

/* Align checkbox and label */
.wombat-adult-sides .wapf-checkable,
.wombat-salad-sides .wapf-checkable,
.wombat-kids-sides .wapf-checkable {
    width: 100% !important;
    display: flex !important;
}

/* Nuke Enfold theme's tiny 150px form label limit */
#top .wombat-adult-sides .wapf-checkable label,
#top .wombat-salad-sides .wapf-checkable label,
#top .wombat-kids-sides .wapf-checkable label {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #555555 !important;
    cursor: pointer !important;
    width: 100% !important; 
    max-width: 100% !important;
    flex: 1 1 auto !important; 
}

/* Style the checkbox box */
.wombat-adult-sides input[type="checkbox"],
.wombat-salad-sides input[type="checkbox"],
.wombat-kids-sides input[type="checkbox"] {
    margin-right: 10px !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #4a5d23 !important;
    flex-shrink: 0 !important;
}

/* FORCE TEXT ONTO ONE LINE */
#top .wombat-adult-sides .wapf-checkable, #top .wombat-adult-sides .wapf-checkable label, #top .wombat-adult-sides .wapf-checkable label span, #top .wombat-adult-sides .wapf-label-text,
#top .wombat-salad-sides .wapf-checkable, #top .wombat-salad-sides .wapf-checkable label, #top .wombat-salad-sides .wapf-checkable label span, #top .wombat-salad-sides .wapf-label-text,
#top .wombat-kids-sides .wapf-checkable, #top .wombat-kids-sides .wapf-checkable label, #top .wombat-kids-sides .wapf-checkable label span, #top .wombat-kids-sides .wapf-label-text {
    max-width: none !important;
    min-width: 280px !important; 
    width: auto !important;
    white-space: nowrap !important; 
}

/* Mobile fallback */
@media (max-width: 768px) {
    .wombat-adult-sides .wapf-field-input, .wombat-adult-sides .wapf-checkboxes, .wombat-adult-sides .wapf-input-container,
    .wombat-salad-sides .wapf-field-input, .wombat-salad-sides .wapf-checkboxes, .wombat-salad-sides .wapf-input-container,
    .wombat-kids-sides .wapf-field-input, .wombat-kids-sides .wapf-checkboxes, .wombat-kids-sides .wapf-input-container {
        grid-template-columns: 1fr !important;
    }
    #top .wombat-adult-sides .wapf-checkable, #top .wombat-adult-sides .wapf-checkable label, #top .wombat-adult-sides .wapf-checkable label span, #top .wombat-adult-sides .wapf-label-text,
    #top .wombat-salad-sides .wapf-checkable, #top .wombat-salad-sides .wapf-checkable label, #top .wombat-salad-sides .wapf-checkable label span, #top .wombat-salad-sides .wapf-label-text,
    #top .wombat-kids-sides .wapf-checkable, #top .wombat-kids-sides .wapf-checkable label, #top .wombat-kids-sides .wapf-checkable label span, #top .wombat-kids-sides .wapf-label-text {
        white-space: normal !important;
        min-width: auto !important;
    }
}

/* --- STEAK TEMPERATURE FORMATTING --- */

/* Hide the plugin's default backend label */
.wombat-steak-temp .wapf-field-label { 
    display: none !important; 
}

/* Inject the gorgeous green serif menu header specifically for the steak */
.wombat-steak-temp::before {
    content: "How would you like your steak cooked?" !important;
    display: block !important;
    margin-bottom: 20px !important;
    font-family: serif !important;
    font-size: 1.25rem !important;
    color: #4a5d23 !important;
    font-weight: bold !important;
    border-bottom: 1px solid #eae5dd !important;
    padding-bottom: 8px !important;
    width: 100% !important; 
}

/* Break Enfold's invisible wall for this specific form */
#top .wombat-steak-temp .wapf-checkable label {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #555555 !important;
    cursor: pointer !important;
    width: 100% !important; 
    max-width: 100% !important;
    flex: 1 1 auto !important; 
}

/* Add some breathing room between the radio buttons */
.wombat-steak-temp .wapf-checkable {
    margin-bottom: 12px !important;
    width: 100% !important;
    display: flex !important;
}

/* Make the radio button color match the theme */
.wombat-steak-temp input[type="radio"] {
    accent-color: #4a5d23 !important;
    margin-right: 10px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}
/* --- MAKE YOUR OWN SANDWICH FORMATTING --- */
.wombat-custom-sandwich .wapf-field-label { display: none !important; }

/* Green header */
.wombat-custom-sandwich::before {
    content: "Choose Up to 5 Ingredients" !important;
    display: block !important;
    margin-bottom: 20px !important;
    font-family: serif !important;
    font-size: 1.25rem !important;
    color: #4a5d23 !important;
    font-weight: bold !important;
    border-bottom: 1px solid #eae5dd !important;
    padding-bottom: 8px !important;
    width: 100% !important; 
}

/* 2-Column Layout */
.wombat-custom-sandwich .wapf-field-input, .wombat-custom-sandwich .wapf-checkboxes, .wombat-custom-sandwich .wapf-input-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 40px !important;
    row-gap: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.wombat-custom-sandwich .wapf-checkable {
    width: 100% !important;
    display: flex !important;
}

#top .wombat-custom-sandwich .wapf-checkable label {
    display: flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #555555 !important;
    cursor: pointer !important;
    width: 100% !important; 
    max-width: 100% !important;
    flex: 1 1 auto !important; 
}

.wombat-custom-sandwich input[type="checkbox"] {
    margin-right: 10px !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #4a5d23 !important;
    flex-shrink: 0 !important;
}

/* Force text on one line */
#top .wombat-custom-sandwich .wapf-checkable, #top .wombat-custom-sandwich .wapf-checkable label, #top .wombat-custom-sandwich .wapf-checkable label span, #top .wombat-custom-sandwich .wapf-label-text {
    max-width: none !important;
    min-width: 280px !important; 
    width: auto !important;
    white-space: nowrap !important; 
}

/* Mobile */
@media (max-width: 768px) {
    .wombat-custom-sandwich .wapf-field-input, .wombat-custom-sandwich .wapf-checkboxes, .wombat-custom-sandwich .wapf-input-container {
        grid-template-columns: 1fr !important;
    }
    #top .wombat-custom-sandwich .wapf-checkable, #top .wombat-custom-sandwich .wapf-checkable label, #top .wombat-custom-sandwich .wapf-checkable label span, #top .wombat-custom-sandwich .wapf-label-text {
        white-space: normal !important;
        min-width: auto !important;
    }
}