/* =============================================
   MEAD SPEED — Cleaned Additional CSS (Neve)
   ============================================= */

:root {
    --ms-green: #8FB38B;
    --ms-green-dark: #7a9e76;
    --ms-green-bright: #6FAE4F;
    --ms-green-bright-dark: #5a9a3f;
}

/* =============================================
   HEADER — Address & Brand Bar
   ============================================= */

.builder-item--custom_html .nv-html-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0px 10px 0px 0px !important;
    box-sizing: border-box !important;
}

.ms-brand-bar {
    background: #8FB38B !important;
    color: black !important;
    text-align: center !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ms-address-bar,
.nv-html-content {
    text-align: center !important;
}

.ms-brand-bar a {
    color: black !important;
    text-decoration: none !important;
}

.ms-brand-bar a:hover {
    color: white !important;
}

/* =============================================
   HEADER SEARCH (Neve Header Builder)
   ============================================= */

.builder-item--nv-search .search-form-wrap,
.nv-nav-search .search-form-wrap {
    max-width: 70% !important;
    margin: 0 auto !important;
}

.builder-item--nv-search input[type="search"],
.nv-nav-search input[type="search"] {
    height: 48px !important;
    padding: 0 20px !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    border-radius: 25px 0 0 25px !important;
    font-size: 16px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    width: 100% !important;
}

.builder-item--nv-search button,
.nv-nav-search button,
.search-submit.nv-submit {
    height: 50px !important;
    width: 60px !important;
    background-color: var(--ms-green) !important;
    border: 1px solid var(--ms-green) !important;
    border-radius: 0 25px 25px 0 !important;
    color: white !important;
}

.builder-item--nv-search button svg path,
.search-submit.nv-submit svg path {
    fill: white !important;
}

.builder-item--header_search,
.builder-item--header_search .component-wrap,
.builder-item--header_search .widget-search,
.builder-item--header_search form.search-form {
    width: 500px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}


.builder-item--header_search input[type="search"] {
    height: 48px !important;
    padding: 0 20px !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    border-radius: 25px 0 0 25px !important;
    font-size: 16px !important;
    font-family: Georgia, 'Times New Roman', serif !important;
}

.builder-item--header_search button.search-submit {
    height: 48px !important;
    width: 70px !important;
    background-color: #8FB38B !important;
    border: 1px solid #8FB38B !important;
    border-radius: 0 25px 25px 0 !important;
    color: white !important;
}
 

/* =============================================
   PRODUCT LISTING
   ============================================= */

.woocommerce-ordering {
    display: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-weight: normal !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-loop-product__title + .price,
.wc-block-grid__product-price {
    display: none !important;
}

.woocommerce ul.products li.product:only-child {
    margin-right: auto !important;
    margin-left: 0 !important;
    float: left !important;
}

/* Hide related products and Jetpack related posts */
.related.products,
#jp-relatedposts,
.jp-relatedposts,
section.related.products {
    display: none !important;
}

/* Hide reviews */
.woocommerce-tabs .woocommerce-Reviews,
.woocommerce-tabs #tab-reviews,
.woocommerce-tabs li.reviews_tab {
    display: none !important;
}

/* =============================================
   SEARCH RESULTS
   ============================================= */

.search-results .nv-meta-list,
.search-results .entry-meta,
.search-results .excerpt-wrap,
.search-results .entry-summary,
.search-results .post-entry-content,
.search-results .entry-content {
    display: none !important;
}

.search-results .nv-index-posts .posts-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
}

.search-results .nv-index-posts article {
    width: 48% !important;
}

/* =============================================
   CART & CHECKOUT
   ============================================= */

.woocommerce-cart .entry-content,
.woocommerce-cart .nv-content-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.wp-block-woocommerce-cart-line-items-block a {
    font-size: 1.2rem !important;
}

.wp-block-woocommerce-cart-line-items-block,
.wp-block-woocommerce-cart-line-items-block td,
.wp-block-woocommerce-cart-line-items-block p,
.wp-block-woocommerce-cart-line-items-block span,
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-cart-order-summary-block td,
.wp-block-woocommerce-cart-order-summary-block th,
.wp-block-woocommerce-cart-order-summary-block span,
.wp-block-woocommerce-proceed-to-checkout-block a {
    font-size: 1.2rem !important;
}

.wc-block-components-product-metadata__description {
    display: none !important;
}

/* Proceed to Checkout button */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wc-block-cart__submit-button .wc-block-components-button {
    background-color: var(--ms-green) !important;
    color: #fff !important;
    border: none !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover {
    background-color: var(--ms-green-dark) !important;
}

/* WooCommerce message banner */
.woocommerce-message {
    background-color: var(--ms-green) !important;
    border-top-color: var(--ms-green) !important;
    color: #fff !important;
}

.woocommerce-message::before {
    color: #fff !important;
}

.woocommerce-message a.button,
.woocommerce-message a {
    color: #fff !important;
    border-color: #fff !important;
}

.woocommerce-message a.button:hover {
    background-color: #fff !important;
    color: var(--ms-green) !important;
}

.ms-brand-bar {
    background: #8FB38B !important;
    color: black !important;
    text-align: center !important;
    padding: 12px 0 !important;
    margin: 12px auto 0 !important;
    max-width: 100% !important;
    width: 1000px !important;
}

.below-header-search,
.search-nav-row,
body > .search-form,
#colophon .search-form,
.site-footer .search-form {
    display: none !important;
}

.woocommerce-product-gallery__trigger {
    display: none !important;
}

.product_meta .posted_in {
    display: none !important;
}

.product_meta .tagged_as {
    display: none !important;
}

.search-results .nv-index-posts article img,
.search-results ul.products li.product img,
.search-results .nv-post-thumbnail-wrap img {
    width: 500px !important;
    height: 400px !important;
}

.zoomImg {
    display: none !important;
}

.woocommerce-product-gallery__image img {
    transition: none !important;
    transform: none !important;
}

.woocommerce-product-gallery__image:hover img {
    transform: none !important;
}

.woocommerce-product-gallery__image a {
    pointer-events: none !important;
    cursor: default !important;
}

/* =============================================
   MOBILE MENU
   ============================================= */

.ms-mobile-brand-bar {
    display: none;
}

@media (max-width: 960px) {
    .ms-mobile-brand-bar {
        display: block !important;
        background: #8FB38B !important;
        color: black !important;
        text-align: center !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        width: 100% !important;
    }
    
    .ms-mobile-brand-bar a {
        color: black !important;
        text-decoration: none !important;
        display: inline-block !important;
        margin: 2px 4px !important;
    }
}

@media (max-width: 600px) {
    .ms-mobile-brand-bar {
        padding: 6px 4px !important;
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
    
    .ms-mobile-brand-bar a {
        margin: 1px 2px !important;
    }
}



.search-results .nv-meta-list,
.search-results .entry-meta,
.search-results .excerpt-wrap,
.search-results .entry-summary,
.search-results .post-entry-content,
.search-results .entry-content {
    display: none !important;
}

/* Desktop: 2 columns */
.search-results .nv-index-posts .posts-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.search-results .nv-index-posts article {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive images that match products page */
.search-results .nv-index-posts article img,
.search-results ul.products li.product img,
.search-results .nv-post-thumbnail-wrap img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    aspect-ratio: 1 / 1 !important;
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .search-results .nv-index-posts .posts-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* Search results: 2 per row desktop, 1 per row mobile */
body.search-results .posts-wrapper > article {
    width: 100% !important;
}
@media (min-width: 500px) {
    body.search-results .posts-wrapper > article {
        width: 49% !important;
    }
}

