/*
Theme Name: Mzi Care Organic
Theme URI: https://example.com/mzi-care-organic
Author: Mmaps Tech
Description: A clean, conversion-focused WooCommerce theme for Mzi Care inspired by a premium organic wellness storefront.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: mzi-care-organic
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, blog
*/

:root{
  --mzi-green:#0f4d1e;
  --mzi-green-2:#1f6f2d;
  --mzi-green-3:#2f843c;
  --mzi-cream:#f7f5ec;
  --mzi-cream-2:#efeee4;
  --mzi-ink:#17331d;
  --mzi-muted:#68716b;
  --mzi-line:#e7e8e1;
  --mzi-white:#fff;
  --mzi-gold:#d69d20;
  --mzi-shadow:0 12px 34px rgba(20,46,24,.09);
  --mzi-radius:18px;
  --mzi-max:1320px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--mzi-ink);font:400 16px/1.6 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
.container{width:min(calc(100% - 36px),var(--mzi-max));margin-inline:auto}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.site-main{min-height:50vh}

/* Header */
.topbar{background:var(--mzi-green);color:#fff;font-size:13px}
.topbar__inner{min-height:38px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.topbar__center{text-align:center;font-weight:700}
.topbar__right{text-align:right}
.site-header{background:#fff;position:sticky;top:0;z-index:99;border-bottom:1px solid rgba(15,77,30,.07)}
.header__inner{min-height:92px;display:grid;grid-template-columns:140px 1fr auto;align-items:center;gap:28px}
.custom-logo{max-height:74px;width:auto}
.site-branding .site-title{font-family:Georgia,serif;font-size:25px;font-weight:700}
.primary-menu{display:flex;gap:34px;justify-content:center;align-items:center;list-style:none;margin:0;padding:0}
.primary-menu a{font-weight:600;color:#16361e}
.primary-menu a:hover,.primary-menu .current-menu-item>a{color:var(--mzi-green-2)}
.header-actions{display:flex;gap:16px;align-items:center}
.header-icon{width:42px;height:42px;border:1px solid var(--mzi-line);border-radius:50%;display:grid;place-items:center;background:#fff;position:relative}
.cart-count{position:absolute;right:-4px;top:-4px;background:var(--mzi-green-2);color:#fff;font-size:11px;min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;padding:0 4px}
.menu-toggle{display:none;border:0;background:transparent;font-size:26px}

/* Hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(90deg,#f5f1e3 0%,#f4f4e8 46%,#dce8ce 100%)}
.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;filter:blur(0);opacity:.18;background:radial-gradient(circle at 40% 40%,#4b984e,transparent 65%)}
.hero:before{width:430px;height:430px;right:-80px;top:-100px}
.hero:after{width:340px;height:340px;left:-120px;bottom:-120px}
.hero__inner{min-height:510px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;position:relative;z-index:1}
.hero__copy{padding:68px 0}
.eyebrow{display:inline-flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;font-size:12px;color:var(--mzi-green-2)}
.hero h1{font:700 clamp(46px,6vw,78px)/.98 Georgia,serif;margin:14px 0 22px;color:#0d4a20;max-width:670px}
.hero p{font-size:19px;max-width:560px;color:#36473a}
.hero__actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.btn,.button,.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;border:0!important;border-radius:999px!important;padding:14px 24px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.03em;background:var(--mzi-green-2)!important;color:#fff!important;cursor:pointer;transition:.2s ease}
.btn:hover,.button:hover{transform:translateY(-1px);background:var(--mzi-green)!important}
.btn--light{background:#fff!important;color:var(--mzi-green)!important;border:1px solid var(--mzi-line)!important}
.trust-inline{display:flex;gap:16px;align-items:center;margin-top:24px;font-weight:700}
.leaf-mark{width:38px;height:38px;border-radius:50%;background:#e3ecd6;display:grid;place-items:center;color:var(--mzi-green-2)}
.hero__visual{padding:35px 0;display:flex;justify-content:center}
.hero-product-stage{width:min(100%,560px);aspect-ratio:1.18/1;border-radius:42% 42% 22% 22%;background:rgba(255,255,255,.56);border:1px solid rgba(255,255,255,.8);box-shadow:var(--mzi-shadow);position:relative;display:flex;align-items:end;justify-content:center;padding:34px;overflow:hidden}
.hero-product-stage:before{content:"";position:absolute;inset:auto 7% 6% 7%;height:58px;background:#b88b58;border-radius:50%;filter:blur(.2px);opacity:.42}
.hero-collage{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);align-items:end;gap:10px;width:100%}
.demo-product{background:linear-gradient(#fff,#f4f3eb);border-radius:18px 18px 12px 12px;border:1px solid #e6e6df;box-shadow:0 9px 20px rgba(31,64,34,.12);min-height:210px;position:relative;overflow:hidden}
.demo-product:nth-child(2){min-height:280px}.demo-product:nth-child(3){min-height:245px}.demo-product:nth-child(4){min-height:230px}
.demo-product:before{content:"MZI CARE";position:absolute;left:10%;right:10%;top:45%;padding:12px 5px;text-align:center;background:#e9efdf;color:#1d6029;font-size:10px;font-weight:900;border-radius:8px}
.demo-product:after{content:"✦";position:absolute;left:50%;transform:translateX(-50%);top:16%;font-size:38px;color:#4a8d4e}

/* Sections */
.section{padding:74px 0}
.section--soft{background:#fbfbf8}
.section-title{text-align:center;font:700 clamp(34px,4vw,46px)/1.1 Georgia,serif;margin:0 0 14px;color:#174d23}
.section-subtitle{text-align:center;max-width:720px;margin:0 auto 36px;color:var(--mzi-muted)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}
.section-head .section-title{text-align:left;margin:0}
.text-link{font-size:13px;font-weight:900;text-transform:uppercase;color:var(--mzi-green-2)}

.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.category-card{background:#f7f8f3;border:1px solid #eff0e8;border-radius:16px;padding:22px;text-align:center;transition:.2s ease}
.category-card:hover{transform:translateY(-4px);box-shadow:var(--mzi-shadow)}
.category-image{height:190px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(160deg,#fff,#f0f3e9);margin-bottom:14px;overflow:hidden}
.category-image img{height:100%;width:100%;object-fit:contain}
.category-fallback{font-size:60px;color:var(--mzi-green-2)}
.category-card h3{font-size:17px;margin:10px 0}
.mini-btn{display:inline-block;border:1px solid #dde1d7;border-radius:9px;padding:7px 15px;font-size:11px;font-weight:900;text-transform:uppercase;background:#fff}

/* Woo product cards */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:0!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;border:1px solid #eceee8;border-radius:16px;padding:14px!important;background:#fff;box-shadow:0 6px 20px rgba(24,68,30,.04);display:flex;flex-direction:column}
.woocommerce ul.products li.product a img{border-radius:12px;background:#f7f8f3;aspect-ratio:1/1;object-fit:contain;margin-bottom:14px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;color:#26362a;min-height:48px;padding:4px 0!important}
.woocommerce ul.products li.product .price{font-weight:900;color:#1a2b1c!important;font-size:17px!important;margin-top:auto}
.woocommerce .star-rating{color:var(--mzi-gold)!important}
.woocommerce ul.products li.product .button{margin-top:10px!important;border-radius:7px!important;padding:11px 14px!important;font-size:12px!important}

.benefits{background:#f4f4ec;border:1px solid #e8eadf;border-radius:16px;display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:22px 26px}
.benefit{display:grid;grid-template-columns:50px 1fr;gap:13px;align-items:center;padding:6px 20px;border-right:1px solid #dde1d5}
.benefit:last-child{border-right:0}
.benefit__icon{width:46px;height:46px;border:1px solid #d8dfd0;border-radius:50%;display:grid;place-items:center;font-size:22px;color:var(--mzi-green-2);background:#f9faf4}
.benefit strong{display:block}.benefit span{font-size:13px;color:#606a62}

.story-grid{display:grid;grid-template-columns:.9fr 1.1fr;min-height:470px;background:#f8f7ef;border-radius:24px;overflow:hidden}
.story-visual{background:linear-gradient(rgba(10,56,23,.24),rgba(10,56,23,.35)), radial-gradient(circle at 30% 20%,#5f985d,#164923 60%,#0b3518);display:grid;place-items:center;padding:40px;text-align:center;color:#fff}
.story-visual__seal{width:150px;height:150px;border-radius:50%;border:8px double rgba(255,255,255,.8);display:grid;place-items:center;font:700 24px/1 Georgia,serif;margin:auto auto 20px}
.story-visual h3{font:700 42px/1.05 Georgia,serif;margin:0}
.story-copy{padding:52px;display:grid;grid-template-columns:1.2fr .8fr;gap:34px;align-items:center}
.story-copy h2{font:700 40px/1.05 Georgia,serif;color:#174d23;margin:0 0 18px}
.story-copy p{color:#4e5b50}
.story-points{display:grid;gap:24px}.story-point{display:grid;grid-template-columns:46px 1fr;gap:12px}.story-point .benefit__icon{width:42px;height:42px}

.newsletter{background:var(--mzi-green);color:#fff;border-radius:24px;padding:42px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px}
.newsletter h2{font:700 34px/1.1 Georgia,serif;margin:0 0 8px}.newsletter p{margin:0;color:#dce8dd}
.newsletter form{display:flex;gap:10px}.newsletter input{min-width:290px;border:0;border-radius:999px;padding:14px 18px}

/* Pages */
.page-hero{background:linear-gradient(90deg,#f7f2e4,#e4eddc);padding:72px 0;text-align:center}
.page-hero h1{font:700 clamp(44px,6vw,68px)/1 Georgia,serif;color:#174d23;margin:0 0 12px}
.page-content{padding:60px 0}.content-narrow{max-width:880px;margin:auto}
.prose h2,.prose h3{font-family:Georgia,serif;color:#174d23}.prose h2{font-size:38px}.prose h3{font-size:27px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:center}.panel{background:#f8f8f3;border:1px solid #eceee7;border-radius:20px;padding:34px}
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.value-card{padding:26px;border:1px solid #e5e9e1;border-radius:16px;background:#fff}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px}.contact-card{padding:28px;border-radius:18px;background:#f7f8f3}.contact-form{display:grid;gap:14px}.contact-form input,.contact-form textarea{width:100%;border:1px solid #dfe4dc;border-radius:10px;padding:13px 14px;background:#fff}.contact-form textarea{min-height:150px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.post-card{border:1px solid #e8ebe5;border-radius:16px;overflow:hidden;background:#fff}.post-card img{aspect-ratio:16/10;object-fit:cover}.post-card__body{padding:20px}.post-card h2{font:700 25px/1.15 Georgia,serif;margin:8px 0}.meta{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#788079}

/* Footer */
.site-footer{background:#0f3f1b;color:#eaf0ea;margin-top:70px}
.footer-top{padding:58px 0;display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:36px}.footer-top h3{margin-top:0;color:#fff}.footer-menu{list-style:none;padding:0;margin:0;display:grid;gap:9px;color:#d0ddd2}.footer-bottom{border-top:1px solid rgba(255,255,255,.13);padding:18px 0;display:flex;justify-content:space-between;gap:20px;font-size:13px;color:#c9d8cb}.footer-brand{max-width:330px;color:#d0ddd2}.footer-brand .custom-logo{filter:brightness(0) invert(1)}

/* Woo */
.woocommerce .woocommerce-breadcrumb{margin:28px 0;color:#738076}.woocommerce div.product{padding-top:30px}.woocommerce div.product .product_title{font-family:Georgia,serif;color:#174d23}.woocommerce div.product p.price,.woocommerce div.product span.price{color:#1b5f2a;font-weight:900}.woocommerce-message,.woocommerce-info{border-top-color:var(--mzi-green-2)}.woocommerce-message::before,.woocommerce-info::before{color:var(--mzi-green-2)}

@media(max-width:1050px){
  .primary-menu{gap:18px}.hero__inner{grid-template-columns:1fr 1fr}.category-grid,.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}.benefits{grid-template-columns:repeat(2,1fr)}.benefit:nth-child(2){border-right:0}.benefit:nth-child(-n+2){border-bottom:1px solid #dde1d5}.story-copy{grid-template-columns:1fr}.footer-top{grid-template-columns:1.3fr 1fr 1fr}.footer-top>div:last-child{grid-column:2/4}
}
@media(max-width:820px){
  .topbar__inner{grid-template-columns:1fr}.topbar__left,.topbar__right{display:none}.header__inner{grid-template-columns:1fr auto auto;min-height:76px}.menu-toggle{display:block}.site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #eee;padding:18px}.site-nav.is-open{display:block}.primary-menu{flex-direction:column;align-items:flex-start}.header-actions .header-icon:nth-child(-n+2){display:none}.hero__inner{grid-template-columns:1fr}.hero__copy{text-align:center;padding-bottom:10px}.hero__copy p{margin-inline:auto}.hero__actions,.trust-inline{justify-content:center}.hero__visual{padding-top:0}.category-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.story-grid,.two-col,.contact-grid{grid-template-columns:1fr}.story-copy{padding:34px}.post-grid{grid-template-columns:1fr 1fr}.newsletter{grid-template-columns:1fr;text-align:center}.newsletter form{justify-content:center}.footer-top{grid-template-columns:1fr 1fr}.footer-top>div:last-child{grid-column:auto}.footer-brand{grid-column:1/-1}
}
@media(max-width:560px){
  .container{width:min(calc(100% - 24px),var(--mzi-max))}.hero h1{font-size:48px}.hero-product-stage{padding:18px}.demo-product{min-height:160px}.demo-product:nth-child(2){min-height:205px}.demo-product:nth-child(3){min-height:185px}.demo-product:nth-child(4){min-height:172px}.section{padding:52px 0}.category-grid,.woocommerce ul.products{grid-template-columns:1fr 1fr!important;gap:10px}.category-card{padding:12px}.category-image{height:140px}.benefits{grid-template-columns:1fr}.benefit{border-right:0!important;border-bottom:1px solid #dde1d5!important}.benefit:last-child{border-bottom:0!important}.post-grid{grid-template-columns:1fr}.newsletter{padding:28px}.newsletter form{flex-direction:column}.newsletter input{min-width:0;width:100%}.footer-top{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.story-copy{padding:26px}.page-hero{padding:50px 0}.header__inner{grid-template-columns:1fr auto}.header-actions{display:none}
}

/* Live WooCommerce products in the homepage hero */
.hero-live-product{display:flex;align-items:flex-end;justify-content:center;min-height:230px;padding:8px;text-decoration:none;position:relative;z-index:1}
.hero-live-product img{display:block;width:100%;height:100%;max-height:255px;object-fit:contain;filter:drop-shadow(0 14px 16px rgba(20,55,25,.14));transition:transform .25s ease}
.hero-live-product:hover img{transform:translateY(-4px)}
.hero-live-product:nth-child(2){min-height:280px}.hero-live-product:nth-child(3){min-height:260px}.hero-live-product:nth-child(4){min-height:245px}
.mzi-empty-products{text-align:center;padding:28px;border:1px dashed #d9dfd3;border-radius:14px;background:#fff}
@media(max-width:620px){.hero-live-product{min-height:165px}.hero-live-product:nth-child(2),.hero-live-product:nth-child(3),.hero-live-product:nth-child(4){min-height:185px}}

/* v1.2 - design-reference image fidelity */
.hero__visual{align-self:stretch;display:flex;align-items:stretch;justify-content:flex-end;min-width:0}
.hero-design-visual{display:block;width:100%;height:100%;min-height:510px;overflow:hidden}
.hero-design-visual img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.hero__inner{gap:0}
.hero__copy{padding-right:38px;z-index:2}
.hero:after{background-image:url('assets/images/leaf-corner.jpg');background-size:cover;background-position:center;filter:none;opacity:.22;border-radius:0;width:180px;height:164px;left:0;bottom:0}
.category-image img,.woocommerce ul.products li.product a img{filter:none!important;mix-blend-mode:normal!important}
.woocommerce ul.products li.product a img{object-fit:contain!important;background:#fff!important}
.story-visual--design{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;min-height:470px}
@media(max-width:820px){.hero-design-visual{min-height:360px}.hero__copy{padding-right:0}.story-visual--design{min-height:360px}}
@media(max-width:560px){.hero-design-visual{min-height:275px}.story-visual--design{min-height:290px}}

/* v1.3 - tighter fidelity to supplied Mzi Care design */
:root{--mzi-max:1440px}
.header__inner{min-height:88px;grid-template-columns:170px 1fr auto}
.site-branding .site-title{font-size:26px;letter-spacing:.02em}
.site-branding:not(:has(.custom-logo)) .site-title{position:relative;padding-left:0}
.hero__inner{min-height:355px;grid-template-columns:41% 59%}
.hero__copy{padding:42px 34px 40px 28px}
.hero h1{font-size:clamp(44px,4vw,62px);line-height:1.02;margin:0 0 18px;max-width:520px}
.hero p{font-size:17px;line-height:1.6;margin:0;max-width:430px}
.hero__actions{margin-top:22px}
.hero-design-visual{min-height:355px;height:355px}
.hero-design-visual img{object-fit:cover;object-position:center}
.trust-inline{margin-top:18px;font-size:15px}
.category-section{padding:32px 0 24px}
.category-section .section-title,.featured-section .section-title{font-size:32px;text-align:center;margin:0 0 22px}
.category-grid{gap:18px}
.category-card{padding:0 0 14px;border-radius:10px;background:#fafaf7;box-shadow:0 2px 10px rgba(20,46,24,.04);overflow:hidden;text-align:center}
.category-image{height:188px;background:#fbfbf8;border-radius:0;margin:0 0 8px;padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.category-image img{width:100%;height:100%;object-fit:cover;object-position:center}
.category-card h3{font-size:16px;margin:8px 8px 8px}
.mini-btn{font-size:11px;padding:6px 14px;border-radius:5px}
.featured-section{padding:24px 0 34px;background:#fff}
.featured-section .section-head{margin-bottom:18px;align-items:end}
.featured-section .section-title{text-align:left;margin:0}
.benefit-strip{padding:0 0 22px}
.benefits{border-radius:4px;box-shadow:none;background:#f7f6ef}
.benefit{padding:18px 22px;min-height:92px}
.benefit strong{font-size:14px}.benefit span{font-size:12px;line-height:1.45}
.story-section{padding:0 0 30px}
.story-grid{grid-template-columns:42% 58%;gap:0;border-radius:0;overflow:hidden;background:#f7f6ef}
.story-visual--design{min-height:310px;border-radius:0!important;background-position:center!important}
.story-copy{padding:30px 34px;display:grid;grid-template-columns:1.25fr .9fr;gap:28px;align-items:center}
.story-copy h2{font-size:34px;margin:0 0 14px}
.story-copy p{font-size:14px;line-height:1.65;margin:0 0 12px}
.story-btn{padding:10px 18px!important;font-size:12px;margin-top:4px}
.story-points{display:grid;gap:20px}
.story-point{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:start}
.story-point strong{display:block;font-size:13px;line-height:1.35;margin:0 0 3px}
.story-point span{display:block;font-size:12px;line-height:1.45;color:#324638}
.story-point .benefit__icon{width:36px;height:36px}
.mzi-reference-products{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.mzi-reference-product{border:1px solid var(--mzi-line);border-radius:8px;background:#fff;padding:10px;min-width:0}
.mzi-reference-product__image{height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}
.mzi-reference-product__image img{width:100%;height:100%;object-fit:cover}
.mzi-reference-product h3{font-family:inherit;font-size:14px;line-height:1.3;min-height:38px;margin:10px 0 5px}
.mzi-stars{font-size:12px;letter-spacing:1px;color:#d69d20}.mzi-price{display:block;font-size:15px;margin:4px 0 8px}.mzi-add{padding:8px 12px!important;border-radius:5px!important;font-size:11px;width:100%}
/* Keep native WooCommerce product images proportional and compact */
.woocommerce ul.products li.product a img{height:210px!important;object-fit:contain!important;margin:0 auto 10px!important}
.woocommerce ul.products li.product{border:1px solid var(--mzi-line);border-radius:8px;padding:10px!important;background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;line-height:1.35;min-height:38px}
.woocommerce ul.products li.product .price{font-size:15px!important;color:#17331d!important;font-weight:700!important}

@media(max-width:1000px){
 .hero__inner{grid-template-columns:45% 55%}.hero h1{font-size:48px}.story-copy{grid-template-columns:1fr}.mzi-reference-products{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
 .hero__inner{grid-template-columns:1fr}.hero__copy{padding:38px 24px 26px;text-align:center}.hero h1{max-width:620px;margin-left:auto;margin-right:auto}.hero-design-visual{height:auto;min-height:300px}.category-grid{grid-template-columns:repeat(2,1fr)}.story-grid{grid-template-columns:1fr}.story-visual--design{min-height:320px}.story-copy{padding:28px}.mzi-reference-products{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
 .hero h1{font-size:42px}.category-image{height:150px}.mzi-reference-product__image{height:150px}.story-copy{padding:24px 20px}
}
