/* Scope every rule to installed/standalone PWA: browser design stays intact. */
.atoz-app-header,.atoz-app-home,.atoz-app-bottom{display:none!important}
html.atoz-app-mode{--atoz-green:#156a43;--atoz-ink:#163b2c;--atoz-muted:#6b7972;--atoz-bg:#f6f8f4;--atoz-border:#e5ece7;background:var(--atoz-bg);scroll-padding-top:78px}
html.atoz-app-mode body{background:var(--atoz-bg);padding-top:70px!important;padding-bottom:calc(80px + env(safe-area-inset-bottom))!important;min-height:100vh;margin:0!important;color:var(--atoz-ink)}
html.atoz-app-mode .atoz-app-header{display:flex!important;position:fixed;z-index:9998;top:0;right:0;left:0;height:66px;padding:7px 18px;box-sizing:border-box;align-items:center;justify-content:space-between;background:#fff;box-shadow:0 3px 20px #193e2910}
html.atoz-app-mode .atoz-app-brand{display:flex;gap:9px;align-items:center;color:var(--atoz-ink);text-decoration:none;font-size:15px;line-height:1.3}
html.atoz-app-mode .atoz-app-brand small{display:block;color:var(--atoz-muted);font-size:11px;font-weight:400}
html.atoz-app-mode .atoz-app-logo{display:grid;place-items:center;background:var(--atoz-green);color:white;border-radius:13px;width:41px;height:41px;font-weight:900;font-size:24px}
html.atoz-app-mode .atoz-app-header-cart{position:relative;color:var(--atoz-green);display:flex;align-items:center;justify-content:center;background:#f0f7f1;border-radius:13px;width:43px;height:43px}
html.atoz-app-mode .atoz-app-count{position:absolute;top:-4px;left:-4px;color:white;background:#df6269;min-width:17px;height:17px;border-radius:50%;font-size:10px;text-align:center;line-height:17px}
html.atoz-app-mode .atoz-app-bottom{display:flex!important;position:fixed;bottom:0;right:0;left:0;z-index:9998;background:#fff;box-shadow:0 -5px 23px #17382215;padding:11px 8px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;box-sizing:border-box}
html.atoz-app-mode .atoz-app-bottom a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:650;text-decoration:none!important;color:#81938a;padding:2px;border-radius:10px}
html.atoz-app-mode .atoz-app-bottom a.is-current,html.atoz-app-mode .atoz-app-bottom a:hover{color:var(--atoz-green)}
html.atoz-app-mode .atoz-app-bottom svg{height:22px;width:22px}
html.atoz-app-mode .atoz-app-home{display:block!important;max-width:780px;margin:auto;padding:8px 16px 32px;box-sizing:border-box;font-family:inherit}
html.atoz-app-mode body.home .wp-site-blocks,html.atoz-app-mode body.blog .wp-site-blocks{display:none!important}
html.atoz-app-mode .atoz-app-intro{padding:10px 1px 13px}
html.atoz-app-mode .atoz-app-eyebrow{display:block;color:var(--atoz-green);font-size:10px;font-weight:800;letter-spacing:.08em}
html.atoz-app-mode .atoz-app-intro h1{font-size:25px;font-weight:850;line-height:1.4;margin:6px 0}
html.atoz-app-mode .atoz-app-intro p{margin:0;color:var(--atoz-muted);font-size:12px}
html.atoz-app-mode .atoz-app-hero{position:relative;display:flex;min-height:205px;background:linear-gradient(110deg,#dff3df,#a5cf9b);border-radius:22px;overflow:hidden;align-items:center;text-decoration:none;color:var(--atoz-ink);box-shadow:0 8px 23px #155e2c14}
html.atoz-app-mode .atoz-app-hero-content{position:relative;z-index:2;padding:20px;width:61%}
html.atoz-app-mode .atoz-app-pill{background:#fff9;border-radius:18px;padding:4px 12px;font-weight:700;font-size:11px}
html.atoz-app-mode .atoz-app-hero h2{font-size:25px;line-height:1.3;margin:15px 0;font-weight:850}
html.atoz-app-mode .atoz-app-hero-link{display:inline-flex;align-items:center;background:var(--atoz-green);border-radius:20px;padding:8px 12px;color:#fff;font-size:12px;font-weight:700;gap:8px}
html.atoz-app-mode .atoz-app-hero-link svg{width:14px;height:14px}
html.atoz-app-mode .atoz-app-hero img{position:absolute;left:-12%;top:3%;width:60%;height:94%;object-fit:contain;mix-blend-mode:multiply}
html.atoz-app-mode .atoz-app-search{display:flex;gap:8px;background:#fff;margin:17px 0;border:1px solid var(--atoz-border);padding:9px 14px;border-radius:14px;align-items:center}
html.atoz-app-mode .atoz-app-search input{min-width:0;flex:1;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:5px!important;font-size:13px}
html.atoz-app-mode .atoz-app-search button{background:transparent;border:0;padding:0;color:var(--atoz-green);cursor:pointer}
html.atoz-app-mode .atoz-app-section{margin:25px 0}
html.atoz-app-mode .atoz-app-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}
html.atoz-app-mode .atoz-app-section-head h2{font-size:18px;margin:0;font-weight:850}
html.atoz-app-mode .atoz-app-section-head a{font-size:11px;color:var(--atoz-green);display:flex;align-items:center;text-decoration:none;gap:4px;font-weight:700}
html.atoz-app-mode .atoz-app-section-head svg{height:14px;width:14px}
html.atoz-app-mode .atoz-app-categories{display:flex;gap:13px;overflow-x:auto;padding:2px 1px 10px;scrollbar-width:none}
html.atoz-app-mode .atoz-app-category{flex:0 0 83px;text-align:center;color:var(--atoz-ink);font-weight:650;font-size:11px;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:8px}
html.atoz-app-mode .atoz-app-cat-img{background:#e7f4e5;border-radius:18px;width:75px;height:75px;display:grid;place-items:center;font-size:31px;overflow:hidden}
html.atoz-app-mode .atoz-app-cat-img img{width:100%;height:100%;object-fit:contain}
html.atoz-app-mode .atoz-app-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
html.atoz-app-mode .atoz-app-product{background:#fff;border-radius:17px;overflow:hidden;border:1px solid #e9f0e8;box-shadow:0 4px 14px #153d2b08;min-width:0}
html.atoz-app-mode .atoz-app-product-img{display:grid;place-items:center;background:#fff;height:155px;padding:0}
html.atoz-app-mode .atoz-app-product-img img{width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;mix-blend-mode:multiply}
html.atoz-app-mode .atoz-app-product-info{padding:11px}
html.atoz-app-mode .atoz-app-product-title{font-size:12px;line-height:1.6;height:39px;overflow:hidden;display:block;font-weight:750;color:var(--atoz-ink);text-decoration:none}
html.atoz-app-mode .atoz-app-product-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:7px;gap:4px}
html.atoz-app-mode .atoz-app-price{font-weight:800;color:var(--atoz-green);font-size:13px}
html.atoz-app-mode .atoz-app-price small{font-size:11px;color:var(--atoz-muted)}
html.atoz-app-mode .atoz-app-cart-control{margin-top:9px}
html.atoz-app-mode .atoz-app-add{width:100%;height:42px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;background:var(--atoz-green);text-decoration:none;font-weight:750;font-size:12px;cursor:pointer;box-shadow:0 4px 12px #176b4924}
html.atoz-app-mode .atoz-app-add svg{height:16px;width:16px}
html.atoz-app-mode .atoz-app-add:hover{background:#0f5538;color:#fff}
html.atoz-app-mode .atoz-app-stepper{display:flex;align-items:center;justify-content:space-between;height:42px;padding:0 6px;background:#eef7f0;border:1px solid #dcebde;border-radius:12px;box-sizing:border-box}
html.atoz-app-mode .atoz-app-stepper button{width:31px;height:31px;border:0;border-radius:9px;background:#fff;color:var(--atoz-green);font-size:19px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 1px 4px #153d2b18}
html.atoz-app-mode .atoz-app-stepper button:disabled{opacity:.5;cursor:wait}
html.atoz-app-mode .atoz-app-qty{min-width:26px;text-align:center;font-weight:800;color:var(--atoz-ink);font-size:15px}
html.atoz-app-mode .atoz-app-cart-control.has-qty .atoz-app-add{display:none}
html.atoz-app-mode .atoz-app-cart-control:not(.has-qty) .atoz-app-stepper{display:none}
html.atoz-app-mode .atoz-app-cart-control.is-loading{opacity:.7}
html.atoz-app-mode .atoz-app-details{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;height:42px;margin-top:9px;border-radius:12px;background:#f1f6f2;color:var(--atoz-green);text-decoration:none;font-size:12px;font-weight:750}
html.atoz-app-mode .atoz-app-details svg{height:15px;width:15px}
html.atoz-app-mode .atoz-app-nav-count{position:absolute;top:-1px;inset-inline-start:calc(50% + 2px);min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#df6269;color:#fff;font-size:10px;line-height:17px;text-align:center;box-sizing:border-box}
html.atoz-app-mode .atoz-app-bottom a{position:relative}
html.atoz-app-mode .atoz-app-nav-count.is-empty{display:none}
html.atoz-app-mode .atoz-app-toast{position:fixed;z-index:100001;bottom:calc(96px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,10px);max-width:88%;padding:10px 16px;border-radius:12px;background:#13392e;color:#fff;font-size:13px;line-height:1.6;text-align:center;box-shadow:0 10px 28px #0004;opacity:0;pointer-events:none;transition:.2s}
html.atoz-app-mode .atoz-app-toast.is-visible{opacity:1;transform:translate(-50%,0)}
html.atoz-app-mode .atoz-app-note{display:flex;align-items:center;gap:12px;background:#e7f4e5;padding:18px;border-radius:19px}
html.atoz-app-mode .atoz-app-note>div:first-child{font-size:30px}
html.atoz-app-mode .atoz-app-note b{font-size:14px}
html.atoz-app-mode .atoz-app-note p{font-size:12px;line-height:1.6;margin:4px 0 0;color:#557267}
/* On WooCommerce routes, retain standard product/cart/checkout blocks and endpoints. */
html.atoz-app-mode body:not(.home):not(.blog) .wp-site-blocks>.wp-block-template-part,html.atoz-app-mode body:not(.home):not(.blog) .wp-site-blocks>.wp-block-group.atoz-header,html.atoz-app-mode body:not(.home):not(.blog) .wp-site-blocks>.wp-block-group.atoz-footer{display:none!important}
html.atoz-app-mode body:not(.home):not(.blog) .wp-site-blocks{max-width:860px;margin:auto;padding:12px 14px 18px}
html.atoz-app-mode .woocommerce ul.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px!important}
html.atoz-app-mode .woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:white;padding:10px;border-radius:16px;box-shadow:0 3px 15px #0c30100e}
html.atoz-app-mode .woocommerce ul.products li.product img{border-radius:12px;object-fit:contain;max-height:190px}
html.atoz-app-mode .woocommerce a.button,html.atoz-app-mode .woocommerce button.button,html.atoz-app-mode .wc-block-components-button{border-radius:12px;background:var(--atoz-green);color:white}
html.atoz-app-mode .woocommerce div.product{background:#fff;border-radius:18px;padding:15px}
html.atoz-app-mode .woocommerce div.product div.images,html.atoz-app-mode .woocommerce div.product div.summary{width:100%;float:none;margin:0 0 18px}
html.atoz-app-mode .wc-block-checkout,html.atoz-app-mode .wc-block-cart{background:white;border-radius:16px;padding:14px}
@media(min-width:640px){html.atoz-app-mode .atoz-app-hero img{left:0;width:40%}}

/* Classic theme integration: hide the website chrome only inside the installed app. */
html.atoz-app-mode .atoz-topbar,
html.atoz-app-mode .atoz-header,
html.atoz-app-mode .atoz-footer{display:none!important}
html.atoz-app-mode body.home .atoz-main{display:none!important}

/* App-mode WooCommerce pages */
html.atoz-app-mode .atoz-page-head{padding:14px 0 0;background:none}
html.atoz-app-mode .atoz-page-head .container{padding-inline:14px}
html.atoz-app-mode .atoz-page-head h1{font-size:22px}
html.atoz-app-mode .atoz-page-content{max-width:none;padding:14px}
html.atoz-app-mode .atoz-woo-main .container{padding-inline:14px}
html.atoz-app-mode .atoz-woo-main{padding-bottom:20px}
html.atoz-app-mode .atoz-shop-head{flex-direction:column;align-items:stretch;gap:10px;margin:12px 0 14px}
html.atoz-app-mode .atoz-shop-head h1{font-size:24px}
html.atoz-app-mode .atoz-shop-search{width:100%}
html.atoz-app-mode .atoz-shop-search .search-field{font-size:13px}
html.atoz-app-mode .woocommerce .woocommerce-result-count,
html.atoz-app-mode .woocommerce .woocommerce-ordering{font-size:12px}
html.atoz-app-mode .woocommerce ul.products li.product{padding:8px!important;border-radius:15px!important}
html.atoz-app-mode .woocommerce ul.products li.product a img{height:145px;margin-bottom:8px;padding:5px}
html.atoz-app-mode .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:auto;padding:0 5px;font-size:12px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-loop-cat{padding:0 5px;font-size:10px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-loop-desc{display:none}
html.atoz-app-mode .woocommerce ul.products li.product .price{padding:7px 5px 0;font-size:13px}
html.atoz-app-mode .woocommerce ul.products li.product .button{margin:8px 5px 0!important;padding:8px 10px;font-size:11px;align-self:stretch}
html.atoz-app-mode .woocommerce table.shop_table th,
html.atoz-app-mode .woocommerce table.shop_table td{padding:9px 8px;font-size:12px}
html.atoz-app-mode .woocommerce table.shop_table img{width:44px;height:44px}
html.atoz-app-mode .woocommerce div.product{border:0;padding:0;background:transparent}
html.atoz-app-mode .woocommerce div.product div.images img{padding:12px}
html.atoz-app-mode .woocommerce div.product .product_title{font-size:22px}
html.atoz-app-mode .woocommerce div.product p.price{font-size:21px}
html.atoz-app-mode .atoz-checkout-steps{margin:4px 0 18px}
html.atoz-app-mode .atoz-step-link{padding:7px 12px;font-size:12px}
html.atoz-app-mode .atoz-step-nav .button{width:100%;min-width:0}
html.atoz-app-mode .woocommerce form.checkout_coupon,
html.atoz-app-mode .woocommerce form.login,
html.atoz-app-mode .woocommerce form.register{padding:14px}
html.atoz-app-mode .woocommerce #payment #place_order{font-size:15px}
html.atoz-app-mode .atoz-product-trust{font-size:11px}

/* Keep product images inside their fixed card area (prevents image/text overlap). */
html.atoz-app-mode .atoz-app-product-img{height:175px!important;padding:0!important;overflow:hidden;box-sizing:border-box}
html.atoz-app-mode .atoz-app-product-img img{width:100%!important;height:175px!important;max-height:175px!important;object-fit:contain!important}
/* App-mode WooCommerce loop quantity controls */
html.atoz-app-mode .woocommerce ul.products li.product .atoz-app-cart-control{margin-top:8px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-app-add{height:36px;border-radius:10px;font-size:11px;gap:5px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-app-add svg{width:14px;height:14px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-app-stepper{height:36px;padding:0 4px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-app-stepper button{width:27px;height:27px;font-size:16px;border-radius:8px}
html.atoz-app-mode .woocommerce ul.products li.product .atoz-app-qty{font-size:13px;min-width:22px}