/*
Theme Name: EcoHealth Light
Theme URI: https://ecohealth.gr/
Author: EcoHealth
Description: Lightweight independent WooCommerce theme for EcoHealth stores with accessible responsive header and EcoHealth Multilanguage placement.
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ecohealth-light
License: GNU General Public License v2 or later
*/
:root {--eh-dark:#222;--eh-text:#242424;--eh-muted:#666;--eh-amber:#dc9814;--eh-green:#3bb54a;--eh-green-hover:#009245;--eh-border:#ebebeb;--eh-surface:#f8f9f8;--eh-width:1170px;}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.ecohealth-light{margin:0;color:var(--eh-text);font:400 15px/1.6 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:#fff;-webkit-font-smoothing:antialiased}
body.ecohealth-light a{color:inherit;text-decoration:none}
body.ecohealth-light a:hover{color:var(--eh-amber)}
body.ecohealth-light img{max-width:100%;height:auto}
body.ecohealth-light button,body.ecohealth-light input,body.ecohealth-light select{font:inherit}
.eh-container{width:min(var(--eh-width),calc(100% - 44px));margin-inline:auto}
.eh-skip-link{position:absolute;left:-9999px;top:0;z-index:99999;background:#fff;color:#111;padding:12px}.eh-skip-link:focus{left:12px}
.eh-topbar{background:#fff;border-bottom:1px solid var(--eh-border);color:#444;font-size:12px}
.eh-topbar-inner{min-height:36px;display:grid;grid-template-columns:1fr 2fr 1fr;gap:16px;align-items:center}
.eh-topbar-tagline{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eh-topbar-terms{text-align:right}
.eh-main-header{display:grid;grid-template-columns:minmax(160px,220px) minmax(220px,1fr) auto;align-items:center;gap:36px;min-height:112px}
.eh-site-branding{min-width:0}.eh-site-branding .custom-logo{display:block;max-height:55px;width:auto;object-fit:contain}.eh-site-name{font-size:31px;font-weight:800;letter-spacing:-1.3px}.eh-site-name::first-letter{color:var(--eh-amber)}
.eh-header-search form{display:flex;margin:0;max-width:360px;position:relative;background:var(--eh-surface);border:1px solid #f1f1f1;border-radius:6px;overflow:hidden;height:46px}
.eh-header-search form input[type=search]{width:100%;padding:0 14px;background:transparent;border:0;box-shadow:none;outline-offset:-2px;color:#222;min-width:0}
.eh-header-search form button{cursor:pointer;background:transparent;border:0;padding:0 15px;color:#555;font-weight:700}
.eh-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.eh-header-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:nowrap;min-width:80px;padding:3px 10px;font-size:12px;line-height:1.3;text-align:center;border-left:1px solid var(--eh-border)}
.eh-header-action:first-child{border-left:none}.eh-header-action svg{display:block}
.eh-nav-bar{background:var(--eh-dark);color:#fff}
.eh-nav-inner{min-height:55px;display:flex;align-items:center;gap:16px}
.eh-primary-navigation{min-width:0;flex:1 1 auto}.eh-menu{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:0}
.eh-menu > li{position:relative;margin:0}.eh-menu > li > a{display:block;padding:17px 11px;text-transform:uppercase;font-size:13px;font-weight:700;white-space:nowrap;line-height:1.6}
body.ecohealth-light .eh-menu > li > a{color:#fff}body.ecohealth-light .eh-menu > li > a:hover,body.ecohealth-light .eh-menu > .current-menu-item > a{color:#f3bd59}
.eh-menu .sub-menu{position:absolute;z-index:1000;top:100%;left:0;min-width:200px;background:#fff;color:#222;list-style:none;padding:7px 0;margin:0;border:1px solid var(--eh-border);box-shadow:0 14px 35px #0002;display:none}
.eh-menu .sub-menu li{position:relative}.eh-menu .sub-menu .sub-menu{left:100%;top:0}
.eh-menu .sub-menu a{display:block;padding:8px 15px;white-space:normal;font-size:13px}
.eh-menu li:hover > .sub-menu,.eh-menu li:focus-within > .sub-menu{display:block}
.eh-language-slot{flex:0 0 auto;min-width:112px;display:flex;align-items:center;justify-content:flex-end}
.eh-language-slot:empty{display:none}
.eh-nav-cart{flex:0 0 auto;margin-left:auto}
.eh-cart-link{display:flex;align-items:center;gap:7px;color:#fff!important;font-size:13px;font-weight:700;white-space:nowrap}
.eh-cart-link svg{color:var(--eh-amber)}.eh-cart-count{display:inline-grid;place-items:center;min-width:25px;height:27px;padding:0 3px;border:1px solid var(--eh-amber);border-radius:4px;color:#f6b94d;font-size:12px}
.eh-menu-toggle{display:none;background:transparent;border:0;color:#fff;padding:8px 4px;align-items:center;gap:8px;cursor:pointer;font-weight:700}
.eh-announcement{background:#d99825;color:#fff;text-align:center;font-size:12px;font-weight:650;padding:8px 0;line-height:1.5}
.eh-announcement .eh-announcement-content p{margin:0}
.eh-announcement strong{font-weight:800}
.eh-announcement a{color:#fff!important;text-decoration:underline!important}
/* EcoHealth Multilanguage: plugin renders the contents; theme provides its placement and skin. */
body.ecohealth-light .eh-language-slot nav.mml-switcher, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;z-index:5000!important;float:none!important;width:auto!important;height:auto!important;box-shadow:none!important;background:transparent!important;display:block!important;margin:0!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher details, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback details{position:relative!important;margin:0!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher summary, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback summary{list-style:none!important;cursor:pointer!important;display:flex!important;gap:7px!important;align-items:center!important;white-space:nowrap!important;padding:7px 9px!important;border:1px solid #555!important;border-radius:5px!important;color:#fff!important;background:#333!important;line-height:1.4!important;font-size:12px!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher summary::-webkit-details-marker, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback summary::-webkit-details-marker{display:none}
body.ecohealth-light .eh-language-slot nav.mml-switcher img, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback img{width:22px!important;height:15px!important;object-fit:cover!important;display:inline-block!important;border:0!important;vertical-align:middle!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher .mml-options, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback .mml-options{position:absolute!important;z-index:6000!important;top:calc(100% + 5px)!important;right:0!important;left:auto!important;min-width:166px!important;width:max-content!important;max-width:220px!important;border-radius:6px!important;border:1px solid #ddd!important;background:#fff!important;box-shadow:0 12px 28px #0003!important;padding:5px!important;max-height:min(85vh,620px)!important;overflow:auto!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher .mml-options a, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback .mml-options a{display:flex!important;align-items:center!important;gap:8px!important;padding:8px 9px!important;background:#fff!important;color:#222!important;font-size:13px!important;font-weight:400!important;line-height:1.3!important;border-radius:4px!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher .mml-options a:hover, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback .mml-options a:hover{background:#f5f5f5!important}
body.ecohealth-light .eh-language-slot nav.mml-switcher .mml-options a[style*="display: none"], body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback .mml-options a[style*="display: none"]{display:none!important}
/* Articles and Elementor */
.eh-page-main,.eh-article-main,.eh-archive-main,.eh-woocommerce-main{padding-top:36px;padding-bottom:55px}
.eh-front-content{padding:30px 0}.eh-elementor-content{width:100%}.eh-entry-content:after{content:"";display:block;clear:both}
.eh-entry-content :is(h1,h2,h3,h4){line-height:1.25;color:#171717}.eh-entry-content a{color:#1e68c4}.eh-entry-content p{margin:0 0 1.2em}
.eh-entry-content img{height:auto}.eh-entry-content table{width:100%;max-width:100%;border-collapse:collapse}.eh-entry-content td,.eh-entry-content th{border:1px solid #eee;padding:8px}
.eh-page-title{font-size:clamp(24px,3vw,38px);letter-spacing:-.035em;line-height:1.25;margin:0 0 25px;color:#111}
.eh-section-title{text-align:center;font-size:29px;margin:18px 0 30px}
.eh-article{max-width:900px;margin-inline:auto}.eh-entry-meta{color:var(--eh-muted);font-size:13px;margin-bottom:16px}.eh-single-cover{display:block;width:100%;object-fit:cover;max-height:450px;margin-bottom:25px;border-radius:7px}
.eh-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.eh-post-card{border:1px solid var(--eh-border);border-radius:6px;overflow:hidden}.eh-post-card img{aspect-ratio:16/10;object-fit:cover;display:block;width:100%}.eh-post-card-body{padding:18px}.eh-post-card h2{font-size:20px;line-height:1.25;margin:0 0 10px}.eh-post-card time{font-size:12px;color:#999}.eh-post-card p{color:var(--eh-muted);font-size:14px}
.eh-article-main .eh-comments{padding-top:25px}.eh-not-found{text-align:center}
/* WooCommerce native templates and blocks */
body.ecohealth-light .woocommerce .woocommerce-products-header__title{font-size:32px;margin:0 0 20px}
body.ecohealth-light .woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;margin:0 0 35px;padding:0;clear:both}
body.ecohealth-light .woocommerce ul.products::before,body.ecohealth-light .woocommerce ul.products::after{display:none}
body.ecohealth-light .woocommerce ul.products li.product,body.ecohealth-light .woocommerce-page ul.products li.product{width:auto!important;float:none!important;clear:none!important;margin:0!important;padding:0!important;min-width:0}
body.ecohealth-light .woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1.12;object-fit:contain;background:#f9faf9;margin-bottom:10px;border:1px solid #f2f2f2;border-radius:3px}
body.ecohealth-light .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;font-weight:650;line-height:1.4;min-height:3em;padding:0;margin:4px 0 8px;color:#292929}
body.ecohealth-light .woocommerce ul.products li.product .price{color:var(--eh-amber);font-size:16px;font-weight:700}
body.ecohealth-light .woocommerce ul.products li.product .price del{color:#999;font-size:12px;font-weight:400}
body.ecohealth-light .woocommerce ul.products li.product .price ins{color:#d88b00;text-decoration:none}
body.ecohealth-light .woocommerce span.onsale{min-width:auto;min-height:auto;border-radius:3px;background:var(--eh-green);color:#fff;padding:4px 7px;font-size:12px;line-height:1.4;top:10px;left:10px;right:auto}
body.ecohealth-light .woocommerce ul.products li.product .button,body.ecohealth-light .woocommerce button.button.alt,body.ecohealth-light .woocommerce a.button.alt,body.ecohealth-light .woocommerce input.button.alt,body.ecohealth-light .woocommerce #respond input#submit.alt,body.ecohealth-light .wc-block-components-button{background:var(--eh-green);border:0;border-radius:4px;color:#fff;font-weight:650;padding:11px 15px;transition:background-color .12s;line-height:1.3}
body.ecohealth-light .woocommerce ul.products li.product .button:hover,body.ecohealth-light .woocommerce button.button.alt:hover,body.ecohealth-light .woocommerce a.button.alt:hover{background:var(--eh-green-hover)}
body.ecohealth-light .woocommerce div.product .product_title{font-size:clamp(25px,3vw,36px);line-height:1.2}
body.ecohealth-light .woocommerce div.product p.price,body.ecohealth-light .woocommerce div.product span.price{color:#d38a05}
body.ecohealth-light .woocommerce .quantity .qty{min-height:42px}
body.ecohealth-light .woocommerce .woocommerce-breadcrumb{font-size:12px;margin-bottom:20px;color:#777}
body.ecohealth-light .woocommerce .woocommerce-result-count,body.ecohealth-light .woocommerce .woocommerce-ordering{margin-bottom:25px}
body.ecohealth-light .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--eh-amber)}
body.ecohealth-light .woocommerce .woocommerce-message,body.ecohealth-light .woocommerce .woocommerce-info{border-top-color:var(--eh-green)}
body.ecohealth-light .woocommerce .woocommerce-message::before,body.ecohealth-light .woocommerce .woocommerce-info::before{color:var(--eh-green)}
body.ecohealth-light .woocommerce a.button,body.ecohealth-light .woocommerce button.button{border-radius:4px}
/* Full width Woo blocks that ship with existing pages. */
body.ecohealth-light .wp-block-woocommerce-cart,body.ecohealth-light .wp-block-woocommerce-checkout{max-width:100%}
.eh-footer{background:#161616;color:#d2d2d2;padding:43px 0 20px;margin-top:25px}
.eh-footer-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:26px}
.eh-footer-brand strong{display:block;font-size:20px;color:#fff}
.eh-footer-brand p{margin:7px 0 0;color:#aaa;font-size:13px}
.eh-footer-widgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-items:start}
.eh-footer-widgets .eh-widget{min-width:0;overflow-wrap:anywhere}
.eh-footer-widgets .eh-widget img{max-width:100%;height:auto}
.eh-footer-widgets .eh-widget p{margin:0 0 .9em;color:#bcbcbc}
.eh-footer-widgets .eh-widget a{color:#d8d8d8}
.eh-footer-widgets .eh-widget a:hover{color:#f3bd59}
.eh-footer-widgets .eh-widget .wp-caption{max-width:100%}
.eh-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;border-top:1px solid #333;padding-top:16px;font-size:13px}
.eh-footer-menu{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:12px 20px}
.eh-footer-bottom{border-top:1px solid #333;margin-top:24px;padding-top:17px;font-size:12px;color:#888}
.eh-widget-title{font-size:16px;color:#fff}
@media (max-width:1120px){.eh-menu>li>a{padding-inline:7px;font-size:12px}.eh-main-header{gap:15px;grid-template-columns:190px minmax(170px,1fr) auto}.eh-header-action{min-width:70px;padding:3px 8px}.eh-nav-inner{gap:10px}}
@media (max-width:940px){
.eh-main-header{grid-template-columns:170px 1fr;gap:15px;min-height:85px}.eh-header-actions{display:none}.eh-site-branding .custom-logo{max-height:43px}
.eh-menu-toggle{display:inline-flex}.eh-nav-inner{position:relative;min-height:53px;flex-wrap:wrap;gap:10px}
.eh-primary-navigation{order:4;flex:0 0 100%;width:100%;display:none}.eh-primary-navigation.is-open{display:block}
.eh-menu{flex-direction:column;align-items:stretch;padding:7px 0 13px;border-top:1px solid #404040}
.eh-menu>li>a{display:block;padding:8px 10px;font-size:13px}.eh-menu .sub-menu{position:static;display:block;background:transparent;color:#ddd;box-shadow:none;border:0;padding:0 0 0 18px}.eh-menu .sub-menu .sub-menu{position:static}.eh-menu .sub-menu a{padding:6px 10px;color:#ddd;font-size:12px}
.eh-language-slot{margin-left:auto}.eh-nav-cart{margin-left:0}
body.ecohealth-light .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.eh-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eh-footer-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:650px){
.eh-container{width:min(100% - 26px,var(--eh-width))}.eh-topbar-inner{grid-template-columns:1fr}.eh-topbar-tagline,.eh-topbar-terms{display:none}.eh-topbar-phone{font-size:11px}
.eh-main-header{grid-template-columns:1fr;gap:10px;padding-top:14px;padding-bottom:12px}.eh-site-branding{display:flex;justify-content:center}.eh-site-branding .custom-logo{max-height:42px}.eh-header-search form{max-width:none;width:100%;height:42px}
.eh-nav-inner{gap:9px}.eh-cart-total{display:none}
body.ecohealth-light .eh-language-slot nav.mml-switcher summary, body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback summary{padding:6px!important;font-size:11px!important}
body.ecohealth-light .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.ecohealth-light .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px}
body.ecohealth-light .woocommerce ul.products li.product .price{font-size:14px}
.eh-page-main,.eh-article-main,.eh-archive-main,.eh-woocommerce-main{padding-top:23px;padding-bottom:35px}
.eh-post-grid{grid-template-columns:1fr}.eh-footer-widgets{grid-template-columns:1fr;gap:20px}.eh-footer-inner{gap:20px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* v0.2: compact product badges and accessible mobile navigation. */
body.ecohealth-light .woocommerce ul.products li.product .onsale.eh-sale-percentage{position:absolute;top:9px;left:9px;right:auto;font-size:12px;z-index:2}
body.ecohealth-light .eh-nav-bar,body.ecohealth-light .eh-nav-inner{overflow:visible}
body.ecohealth-light .eh-menu-toggle:focus-visible,body.ecohealth-light .eh-language-slot summary:focus-visible{outline:2px solid #f5bb50;outline-offset:3px}
body.ecohealth-light .eh-header-action:focus-visible,body.ecohealth-light .eh-cart-link:focus-visible{outline:2px solid var(--eh-amber);outline-offset:3px}
@media (max-width:940px){
  .eh-menu-toggle{order:1}.eh-language-slot{order:2}.eh-nav-cart{order:3}
  .eh-primary-navigation{order:4}
  .eh-footer-widgets{gap:24px}
}
@media (max-width:650px){
  .eh-nav-inner{gap:7px;justify-content:space-between}
  .eh-language-slot{min-width:0;max-width:calc(100% - 133px)}
  .eh-cart-link{gap:3px}
  .eh-cart-count{min-width:22px;height:24px}
  .eh-footer-widgets .eh-widget{text-align:left}
  .eh-announcement{font-size:11px;padding:8px 0}
}


/* v0.3: Stable five-language control on standard and alternate Woo pages. */
body.ecohealth-light nav.eh-native-language-fallback[hidden]{display:none!important}
body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback {display:block!important}
body.ecohealth-light .eh-language-alternate-slot {display:flex;align-items:center;justify-content:flex-end;align-self:center;min-width:120px;margin-left:auto;padding:4px 8px;position:relative;z-index:5000}
body.ecohealth-light #site-navigation .eh-language-alternate-slot,
body.ecohealth-light .main-navigation .eh-language-alternate-slot {float:right}
body.ecohealth-light .eh-language-alternate-row {display:flex;justify-content:flex-end;align-items:center;padding:8px 18px;background:#222;color:#fff}
body.ecohealth-light .eh-language-alternate-row .eh-language-slot {margin:0}
body.ecohealth-light .eh-language-slot nav .mml-options a[style*="display: none"] {display:none!important}
@media (max-width:940px){
 body.ecohealth-light .eh-language-alternate-slot {margin-left:auto;min-width:0}
 body.ecohealth-light .eh-language-slot nav.eh-native-language-fallback summary {font-size:12px!important;padding:6px!important}
}

/* ECOHEALTH_ACCOUNT_STYLE_V1 */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    list-style: none;
    margin: 0 0 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    background: #f6f6f6;
    border-radius: 5px;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #222;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-account .woocommerce-MyAccount-content table th,
.woocommerce-account .woocommerce-MyAccount-content table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content .button {
    background: #3bb54a;
    color: #fff;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
}

/* END ECOHEALTH_ACCOUNT_STYLE_V1 */

/* ECOHEALTH_HIDE_PRODUCT_TAGS_V1 */
.single-product .product_meta .tagged_as {
    display: none !important;
}
/* END ECOHEALTH_HIDE_PRODUCT_TAGS_V1 */

