/* Approved home-page layout. Slider images remain editable in MetaSlider. */
:root {
    --ecoalvo-blur: blur(10px) saturate(115%);
    --ecoalvo-glass-bg-card: rgba(249, 252, 249, .82);
}
body { background-color: #fff; }

.ecoalvo-sticky-header { padding: 0; isolation: auto; }
.ecoalvo-header-shell {
    max-width: none;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* Blur the header on a separate surface so dropdowns can sample the page. */
.ecoalvo-header-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #ffffffcc;
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    backdrop-filter: blur(10px) saturate(115%);
}
.ecoalvo-header-shell #masthead .site-branding {
    margin-bottom: -5px !important;
}
.ecoalvo-header-shell #masthead .site-branding img.custom-logo,
.ecoalvo-header-shell #masthead .site-branding .logo img {
    width: 90px;
    height: auto;
    max-height: none;
}
.ecoalvo-header-shell .header-widget-region {
    border: 0;
    position: relative;
    background: linear-gradient(135deg, transparent 3%, rgb(116 191 76) 12%, rgba(154, 204, 133, .38) 50%, rgb(116 191 76) 82%, transparent 98%) !important;
    box-shadow: 0 5px 10px -7px rgba(32, 48, 40, .22) !important;
}
/* A second glass surface. Keep blur on the pseudo-element for dropdowns. */
.ecoalvo-header-shell .header-widget-region::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(175deg, rgba(255, 255, 255, .48), transparent 30%, rgba(53, 104, 46, .07) 70%, rgba(255, 255, 255, .28));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
/* Thin reflected highlights give the green glass a beveled edge. */
.ecoalvo-header-shell .header-widget-region::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 3%, rgba(255, 255, 255, .85) 25%, rgba(255, 255, 255, .12) 65%, transparent 98%) top / 100% 1px no-repeat,
        linear-gradient(90deg, transparent 3%, rgba(68, 110, 60, .16) 35%, rgba(255, 255, 255, .5) 80%, transparent 98%) bottom / 100% 1px no-repeat;
}
.site ul.products li.product > .ecoalvo-border-glow {
    position: absolute;
    inset: -39px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: clamp(0, calc(var(--ecoalvo-edge-strength, 0) * 1.5), 1);
    transition: opacity .2s ease;
    mask-image: conic-gradient(from var(--ecoalvo-edge-angle, 45deg),
        #000 2.5%, transparent 10%, transparent 90%, #000 97.5%);
    -webkit-mask-image: conic-gradient(from var(--ecoalvo-edge-angle, 45deg),
        #000 2.5%, transparent 10%, transparent 90%, #000 97.5%);
}
.ecoalvo-border-glow::before,
.ecoalvo-border-glow::after {
    content: '';
    position: absolute;
    inset: 39px;
    border-radius: inherit;
}
.ecoalvo-border-glow::before {
    padding: 2px;
    background: #fff;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}
.ecoalvo-border-glow::after {
    box-shadow: inset 0 0 1px rgb(255 255 255 / 90%),
        inset 0 0 6px rgb(255 255 255 / 60%),
        0 0 3px rgb(255 255 255 / 75%),
        0 0 15px rgb(255 255 255 / 45%),
        0 0 30px rgb(255 255 255 / 15%);
}
@media (prefers-reduced-motion: reduce) {
    .ecoalvo-border-glow { transition: none; }
}
.woocommerce-active .ecoalvo-header-shell #masthead .main-navigation {
    margin-right: 0 !important;
}
.ecoalvo-header-shell .barra-widget {
    padding: 0 !important;
    padding-inline-start: 0 !important;
    margin-inline: 22px !important;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) :is(#mega-menu-primary, ul.mega-menu[id]) ul.mega-sub-menu {
    background: rgba(248, 253, 249, .72) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
    backdrop-filter: blur(10px) saturate(125%) !important;
    border: 1px solid rgba(255, 255, 255, .78) !important;
    box-shadow: 0 5px 20px rgba(32, 62, 43, .08) !important;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) :is(#mega-menu-primary, ul.mega-menu[id]) ul.mega-sub-menu ul.mega-sub-menu {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 0 !important;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) :is(#mega-menu-primary, ul.mega-menu[id]) li.mega-menu-flyout ul.mega-sub-menu {
    background: rgba(248, 253, 249, .72) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
    backdrop-filter: blur(10px) saturate(125%) !important;
    border: 1px solid rgba(255, 255, 255, .78) !important;
}
.ecoalvo-header-shell #masthead,
.ecoalvo-header-shell .header-widget-region {
    max-width: 1380px;
    margin-inline: auto !important;
}
@media (min-width: 992px) {
    .ecoalvo-header-shell .mega-menu-wrap[id] > ul.mega-menu[id] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
    }
}
.ecoalvo-header-shell #masthead .site-search form { overflow: visible; }
.ecoalvo-header-shell #masthead .site-search form,
.ecoalvo-header-shell #masthead .site-search .aws-container .aws-search-form {
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(84, 106, 93, .30) !important;
    border-radius: var(--ecoalvo-radius-pill);
}
.ecoalvo-header-shell #masthead .site-search form:focus-within {
    border-color: rgba(40, 94, 59, .65) !important;
}
.ecoalvo-header-shell #masthead .site-search form button[type="submit"] {
    display: inline-block !important;
}
.ecoalvo-header-shell #masthead .site-search .woocommerce-product-search button[type="submit"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.ecoalvo-header-shell #masthead .site-search .woocommerce-product-search button:focus {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
}

/* Full-width slider behind the sticky header. Artwork fills the slide. */
body:not(.woocommerce-cart) .ecoalvo-sticky-header + .ecoalvo-header-banners:has(.metaslider) {
    max-width: none;
    margin: calc(-1 * var(--ecoalvo-header-height, 150px)) 0 0;
    padding-top: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(115deg, #f2f4ee, #e5eee8);
}
.ecoalvo-header-banners .banner-topo {
    background: transparent;
    border-radius: 0;
}
.ecoalvo-header-banners .metaslider,
.ecoalvo-header-banners .metaslider .flexslider {
    max-width: none !important;
    width: 100% !important;
    margin-inline: auto;
    background: transparent;
}
.ecoalvo-header-banners .metaslider .slides > li img {
    width: 100%;
    height: 450px !important;
    object-fit: cover;
    object-position: center;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}
.ecoalvo-header-banners .metaslider .slides { list-style: none; margin: 0; padding: 0; }
.ecoalvo-header-banners .metaslider .slides > li { position: relative; }
.ecoalvo-header-banners .metaslider .caption-wrap {
    position: absolute;
    inset: calc(var(--ecoalvo-header-height, 150px) + 30px) auto 40px max(24px, calc((100% - 1336px) / 2));
    width: min(36%, 440px);
    display: flex;
    align-items: center;
    background: transparent !important;
    opacity: 1 !important;
    color: #234332;
    pointer-events: none;
}
.ecoalvo-header-banners .metaslider .caption-wrap .caption {
    padding: 0;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 550;
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    text-wrap: balance;
}
.ecoalvo-header-banners .metaslider .caption-wrap a { pointer-events: auto; }

.ecoalvo-best-sellers { padding-top: 24px; padding-bottom: 8px; }
.ecoalvo-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.ecoalvo-section-title h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.025em; }
.ecoalvo-section-title a { color: #385d47; font-size: .875rem; }

/* Keep WooCommerce product data, links, sale labels and variable-product actions. */
.site ul.products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: radial-gradient(ellipse at 12% 10%, #f0f1f2, transparent 65%),
        linear-gradient(115deg, #f8f9fa, #f1f2f3);
}
.site ul.products::before,
.site ul.products::after { display: none; }
.site ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 16px;
    position: relative;
    border: 2px solid rgba(210, 215, 213, .65);
    border-radius: 9px;
    background: rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .65), 0 3px 8px rgba(25, 50, 35, .045);
    text-align: left;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.site ul.products li.product::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42%;
    height: 60px;
    pointer-events: none;
    border-top: 2px solid rgba(255, 255, 255, .95);
    border-left: 2px solid rgba(255, 255, 255, .8);
    border-top-left-radius: 9px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
    mask-image: linear-gradient(135deg, #000, transparent 78%);
}
.site ul.products li.product .woocommerce-LoopProduct-link {
    color: #21332c;
    display: block;
}
.site ul.products li.product img {
    display: block;
    width: calc(100% + 32px);
    max-width: none;
    height: 220px;
    object-fit: contain;
    margin: -16px -16px 14px;
    border-radius: 8px 8px 0 0;
    background: #fff;
}
.site ul.products li.product .woocommerce-loop-product__title,
.site ul.products li.product h2 {
    font-size: .95rem;
    font-weight: 550;
    line-height: 1.4;
    min-height: 7em;
    margin: 0 0 10px;
}
.site ul.products li.product .price {
    display: block;
    color: #28583e;
    margin-bottom: 10px;
}
.site ul.products li.product .price .amount { font-size: 1.3rem; font-weight: 650; }
.site ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: .8rem; }
.site ul.products li.product .woocommerce-product-details__short-description {
    font-size: .83rem;
    line-height: 1.45;
    font-weight: 400;
    color: #617067;
    margin-bottom: 14px;
}
.site ul.products li.product .woocommerce-product-details__short-description p { margin-bottom: 8px; }
.site ul.products li.product > .button {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: #28583e;
    color: #fff;
    font-size: .875rem;
}
.site ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) and (max-width: 1199px) {
    .site ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .ecoalvo-header-shell #masthead .secondary-navigation { display: flex !important; }
    .ecoalvo-header-shell #masthead .site-branding img.custom-logo { width: 90px; }
    .ecoalvo-header-shell #masthead .storefront-primary-navigation > div { min-width: 0; }
    .site ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ecoalvo-header-shell #masthead .storefront-primary-navigation { flex: 1 1 auto !important; }
    .ecoalvo-header-shell .barra-widget { padding: 0 !important; margin-inline: 16px !important; }
    .ecoalvo-header-banners .metaslider .slides > li img {
        height: 450px !important;
    }
    .ecoalvo-header-banners .metaslider .caption-wrap {
        top: calc(var(--ecoalvo-header-height, 150px) + 20px);
        bottom: 30px;
        left: 24px;
        width: min(55%, 300px);
    }
    .ecoalvo-header-banners .metaslider .caption-wrap .caption { font-size: clamp(18px, 3vw, 22px); }
    .site ul.products,
    .site ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .site ul.products li.product { padding: 12px; }
    .site ul.products li.product img {
        width: calc(100% + 24px);
        height: 190px;
        margin: -12px -12px 14px;
    }
    .ecoalvo-section-title { flex-wrap: wrap; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .ecoalvo-header-shell *, .ecoalvo-cart-drawer * { transition: none !important; }
}

/* Flat menu links reveal the existing green navigation strip. */
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] {
    gap: 7px;
    padding-block: 5px !important;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] > li.mega-menu-item > a.mega-menu-link {
    min-height: 32px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] > li.mega-menu-item:is(:hover,.mega-toggle-on) > a.mega-menu-link,
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] > li.mega-menu-item > a.mega-menu-link:focus-visible {
    background: rgba(40,94,59,.08) !important;
}
/* Group headings stay distinct from individual product links. */
.ecoalvo-header-shell .mega-menu-wrap[id] .mega-sub-menu,
.ecoalvo-header-shell .mega-menu-wrap[id] .mega-sub-menu li {
    list-style: none;
}
.ecoalvo-header-shell .mega-menu-wrap[id] .mega-sub-menu ul {
    margin: 0;
    padding: 0;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) ul.mega-menu[id] .mega-sub-menu .mega-block-title,
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) ul.mega-menu[id] .mega-sub-menu h4,
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) ul.mega-menu[id] .mega-sub-menu > li.mega-menu-item-has-children > a.mega-menu-link {
    font-size: .92rem !important;
    font-weight: 700 !important;
    color: #204f35 !important;
    border-bottom: 1px solid rgba(64,102,77,.16);
    margin-bottom: 8px !important;
    padding-bottom: 9px !important;
}
.ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) ul.mega-menu[id] .mega-sub-menu a.mega-menu-link {
    white-space: normal !important;
    line-height: 1.45 !important;
}
@media (min-width: 992px) {
    .ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] > li.mega-menu-megamenu > ul.mega-sub-menu {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 20px;
        padding: 24px !important;
        max-height: min(70vh,600px);
        overflow-y: auto;
        box-sizing: border-box;
    }
    .ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] > li.mega-menu-megamenu > ul.mega-sub-menu > li {
        float: none !important;
        width: auto !important;
        min-width: 0;
    }
    .ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) > ul.mega-menu[id] > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row {
        grid-column: 1 / -1;
    }
    .ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) .mega-menu-row > ul.mega-sub-menu {
        display: grid !important;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 20px;
    }
    .ecoalvo-header-shell :is(#mega-menu-wrap-primary, .mega-menu-wrap[id]) .mega-menu-row > ul.mega-sub-menu > li.mega-menu-column {
        width: auto !important;
        float: none !important;
    }
}
