/* Ayazma 2.1: compact grocery storefront. Parent Greenmart stays untouched. */
:root{--green:#173f31;--ink:#20372c;--orange:#f47b20;--orange-dark:#ad4909;--paper:#fff;--bg:#f8f7f3;--muted:#65736a;--line:#e1e6df;--soft:#edf3e9}
body{background:var(--bg);font-size:14px;line-height:1.5}.wrap{width:min(1320px,calc(100% - 64px))}button,a,input,select{touch-action:manipulation}.primary{background:var(--green);border-radius:11px;min-height:44px;font-size:13px}.primary:hover{background:#24573f}.primary:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}
.announcement{background:var(--green);padding:8px 0;font-size:12px}.announcement span:last-child{font-size:11px}.site-header{box-shadow:0 3px 18px #243b2910}.header-main{height:87px;gap:22px}.header-main .logo,.header-main .logo img{width:135px}.header-delivery{min-height:48px;border:0;padding:8px 10px;flex-basis:180px}.header-delivery small{color:var(--muted)}.header-delivery strong{font-size:13px;color:var(--green)}.header-main .search-wrap{flex:1;min-width:0}.search{background:#f8f9f5;border-radius:12px;min-height:48px;padding:11px 15px}.search input{font-size:14px}.head-action{min-height:44px}.header-actions{gap:20px}.header-actions .cart-trigger{background:var(--green);color:white;min-height:45px}.nav{height:48px;gap:28px;font-size:13px}.nav button{min-height:44px}.nav .right{color:var(--green)}.delivery-message .wrap{padding-top:8px;padding-bottom:8px}.delivery-message p{font-size:12px}.delivery-message{background:#f0f5ed;color:#395942}
main{padding-top:20px}.grocery-hero{display:block;margin-bottom:25px}.grocery-hero .hero{min-height:165px;padding:23px 30px;background:#e8eddf;border-radius:18px;isolation:isolate}.grocery-hero .hero:after{display:none}.grocery-hero .hero .eyebrow{font-size:9px;letter-spacing:1.6px;color:#526951}.grocery-hero .hero h1{font-size:35px;line-height:1.15;letter-spacing:-1.1px;margin:6px 0;color:#173f31;max-width:65%}.grocery-hero .hero p{font-size:12px;color:#556c58}.grocery-hero .hero .primary{margin-top:10px;padding:7px 13px;min-height:34px;font-size:11px}.grocery-hero .hero-art{width:38%;height:160px;right:5%;bottom:0;object-fit:contain;transform:none;mix-blend-mode:multiply;z-index:-1}.section-head{margin-bottom:15px}.section-head h2,.catalog-title{font-size:22px;font-weight:700;letter-spacing:-.5px}.section-head p{font-size:12px}.categories{grid-template-columns:repeat(8,minmax(0,1fr));gap:16px;margin-bottom:28px}.cat-picture{height:90px;border-radius:14px;background:#fff;overflow:hidden}.cat img{width:75px;height:70px;object-fit:contain}.cat span{font-size:12px;font-weight:600;line-height:1.35}.cat:hover .cat-picture{border-color:#96ac98}.cat.active .cat-picture{background:#edf3e9;border-color:#23543c}
.catalog{grid-template-columns:205px minmax(0,1fr);gap:25px}.sidebar{top:160px;border-radius:14px;padding:18px 10px}.sidebar h2{font-size:14px;padding:0 8px 10px}.side-item{font-size:12px;min-height:44px}.side-item.active{background:#eaf2e7;color:var(--green)}.products{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product{padding:14px;border-radius:15px;min-width:0}.product:hover{border-color:#a9bca4;box-shadow:0 4px 16px #28442b09}.product-image{height:155px;margin:12px 0 10px}.product-title{font-size:14px;line-height:1.4;min-height:40px;font-weight:600}.product-title button{text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:0;min-height:40px;width:100%}.unit{font-size:11px;color:#65736a;min-height:32px;margin-bottom:8px;line-height:1.4}.price{font-size:19px;line-height:1.2;white-space:normal;letter-spacing:-.5px}.price-unit{font-size:11px;letter-spacing:0;margin-left:3px;font-weight:400;color:var(--muted)}.old-price{font-size:11px;min-height:15px;color:#78847b}.product-bottom{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.product-bottom:has(.qty){grid-template-columns:1fr;gap:9px}.add{border:0;background:var(--orange);color:#fff;border-radius:10px;min-height:44px;min-width:48px;height:44px;white-space:nowrap}.add:hover{background:#d8610b}.add svg{width:18px;height:18px}.product-bottom .qty{height:44px;min-width:0;background:#f3f6ef;border:1px solid #dce5d7;border-radius:10px;justify-content:space-between;color:var(--green);padding:0 3px;gap:4px}.qty button,.product-bottom .qty button{width:38px;height:42px;min-height:42px;font-size:21px}.qty span{font-size:12px;min-width:0;white-space:nowrap;font-weight:600}.sale{background:#eaf2e4;color:#285139;font-size:10px;top:10px;left:10px}.favorite{width:44px;height:44px;right:4px;top:2px;background:#ffffffcf;border-radius:50%;z-index:1}.favorite svg{width:20px;height:20px}.favorite[aria-pressed=true]{color:#d45f16}.favorite[aria-pressed=true] svg{fill:#ffefe0}
.product-toolbar{gap:12px;flex-wrap:wrap;margin-bottom:12px}.filter-toggle{border:1px solid #dce4d8;border-radius:9px;background:#fff;display:flex;gap:8px;align-items:center;min-height:44px;padding:8px 14px;font-weight:600;font-size:12px}.filter-toggle svg{width:18px;height:18px}.sale-filter{font-size:12px;min-height:44px;display:flex;align-items:center;gap:6px;margin-right:auto}.sale-filter input,.filter-switches input,.brand-option input{accent-color:var(--green);width:18px;height:18px}.sort-wrap select{min-height:44px;border-radius:9px;background:#fff;border:1px solid #dce4d8;padding:8px;font-size:12px}.active-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.active-filters:empty{display:none}.filter-chip{background:#e8f0e1;color:var(--green);border-radius:30px;padding:8px 12px;min-height:36px;font-size:12px}.filter-reset{font-size:11px;min-height:36px;text-decoration:underline;color:#5e7061}.filter-dialog{width:440px;display:flex;flex-direction:column;max-height:85dvh}.filter-dialog h3{font-size:14px;margin:15px 0 10px}.filter-switches{padding:14px 0;border-bottom:1px solid var(--line)}.filter-switches label,.brand-option{display:flex!important;gap:10px;align-items:center;font-size:13px;min-height:44px;margin:0!important;font-weight:400!important}.filter-dialog #brandSearch{width:100%;min-height:44px;border:1px solid #dce4d8;border-radius:9px;padding:10px;font-size:14px;flex-shrink:0}.brand-options{overflow:auto;min-height:80px;max-height:32dvh;margin-top:8px}.filter-actions{display:flex;gap:20px;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px;margin-top:15px;flex-shrink:0}.filter-actions .primary{width:auto;min-width:180px}
.subcategory-bar{border-radius:12px;background:#fff;margin-bottom:18px;padding:12px 15px}.subcategory-heading{font-size:11px;margin-bottom:8px;color:#647662}.subcategory-chip{min-height:40px;border-radius:30px;padding:9px 16px;background:#fff;color:#4b5e4d;border-color:#dbe4d6;font-size:12px}.subcategory-chip.active{background:var(--green);color:#fff;border-color:var(--green)}.subcategory-level+.subcategory-level{margin-top:8px;padding-top:8px}.sub-scroll{min-width:32px;min-height:36px}.trail-toggle{display:none}.breadcrumbs{font-size:11px;margin-bottom:14px;gap:7px;line-height:1.6}.breadcrumbs button{color:#5c735d;min-height:32px;padding:0}
.drawer{width:440px}.drawer-head{padding:21px}.drawer-head h2{font-size:23px}.drawer-head .icon-btn{width:44px;height:44px}.cart-items{padding:0 22px}.cart-item{padding:17px 0;gap:10px}.cart-item img{width:55px;height:66px}.cart-item h3{font-size:13px}.cart-item p{font-size:11px}.cart-item .qty{background:#f0f5eb;border:1px solid #dce5d7;color:var(--green);height:40px;gap:3px}.cart-item .qty button{min-width:33px;min-height:38px}.cart-item-end{min-width:65px}.cart-item-end .remove{width:38px;height:38px}.cart-footer{padding:17px 22px;max-height:48dvh;overflow:auto}.cart-footer .subtotal{font-size:16px;margin-bottom:10px}.cart-footer .progress span{background:var(--green)}.cart-footer .min-note{font-size:11px;margin-bottom:12px}.cart-time{display:flex;align-items:center;gap:8px;border:1px solid #a7b9a2;border-radius:9px;min-height:42px;width:100%;font-size:11px;padding:8px 10px;margin:0 0 9px;color:var(--green);text-align:left}.cart-time svg{width:19px;height:19px}.cart-time span:last-child{margin-left:auto;white-space:nowrap}.substitution-label{font-size:11px;display:block;margin:7px 0 4px}.cart-footer select{display:block;width:100%;min-height:40px;border:1px solid #dce4d8;border-radius:8px;background:#fff;padding:7px;font-size:12px;margin-bottom:11px}.cart-note{margin-top:8px;font-size:11px}.cart-note summary{cursor:pointer;color:#466449}.cart-note input{width:100%;min-height:38px;padding:6px;border:1px solid #dce4d8;border-radius:6px;margin-top:7px;font-size:12px}.cart-note button{font-size:11px;text-decoration:underline;min-height:32px}.cart-delivery{min-height:45px}.preview-note{font-size:10px!important;line-height:1.5}.mobile-cart-bar{display:none}.footer{padding:30px 0 40px}.footer-grid{display:grid!important;grid-template-columns:1.2fr 1fr 1fr;align-items:start!important;gap:32px}.footer h2{font-size:15px;color:var(--green);margin-bottom:9px}.footer h3{font-size:12px;margin-bottom:9px;color:var(--green)}.footer a{display:block;font-size:12px;line-height:1.7;min-height:30px;color:#56685a}.footer p{font-size:12px;line-height:1.7}.footer .legal-note{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;font-size:10px}.unavailable{font-size:11px;color:#7a786e}.grocery-empty-action{margin-top:12px}
@media(min-width:1500px){.products{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:768px) and (max-width:1100px){.header-main{height:auto;grid-template-columns:135px 1fr auto;gap:8px 16px}.header-delivery{justify-content:center}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.header-main .search-wrap{grid-column:1/-1;grid-row:2}.catalog{grid-template-columns:180px minmax(0,1fr);gap:16px}.sidebar{top:200px}.nav{gap:18px}.header-actions{gap:12px}}
@media(max-width:767px){
 .wrap{width:calc(100% - 28px)}.announcement{padding:7px 0}.announcement span:first-child{font-size:11px}.announcement span:last-child{display:none}.header-main{display:grid;grid-template-columns:95px minmax(0,1fr)44px;gap:7px 8px;height:auto;min-height:110px;padding-top:9px;padding-bottom:10px}.header-main .logo,.header-main .logo img{width:95px;height:34px}.header-delivery{width:100%;min-width:0;padding:3px;min-height:40px;gap:5px;justify-content:center}.header-delivery small{font-size:8px}.header-delivery strong{font-size:11px;letter-spacing:-.2px;line-height:1.4}.header-delivery span{text-align:left}.header-actions{gap:0}.header-actions [data-account],.header-actions [data-cart]{display:none}.header-actions #location{width:44px;height:44px;background:#f1f5ed;border-radius:11px;color:var(--green)}.header-actions #location svg{width:23px;height:23px}.header-actions .head-action>span{display:none}.header-main .search-wrap{grid-column:1/-1;grid-row:2}.search{min-height:44px;padding:9px 13px}.search input{font-size:14px}.keyhint{display:none}.nav{display:none}.delivery-message .wrap{padding-top:7px;padding-bottom:7px}.delivery-message p{font-size:10.5px;line-height:1.5}.delivery-message svg{width:16px;height:16px}main{padding-top:14px;padding-bottom:30px}.grocery-hero{margin-bottom:20px}.grocery-hero .hero{min-height:132px;padding:16px 18px;border-radius:15px}.grocery-hero .hero h1{font-size:26px;max-width:66%;line-height:1.1;letter-spacing:-.7px;margin:5px 0}.grocery-hero .hero p{font-size:10px;max-width:64%}.grocery-hero .hero .eyebrow{font-size:7px}.grocery-hero .hero .primary{font-size:10px;min-height:30px;padding:5px 10px;margin-top:8px}.grocery-hero .hero-art{width:38%;right:0;height:118px;bottom:0}.categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 9px;margin-bottom:24px}.cat{gap:6px}.cat-picture{height:67px;border-radius:12px}.cat img{height:52px;width:60px}.cat span{font-size:9.5px;line-height:1.35;min-height:25px;max-width:100%}.section-head{margin-bottom:11px}.section-head h2,.catalog-title{font-size:20px}.section-head .subtle{font-size:10px}.section-head p{font-size:10px}.catalog{display:block}.sidebar{display:none}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.product{padding:11px;border-radius:13px}.product-image{height:125px;margin:11px 0 10px}.product-title{font-size:12px;min-height:35px;line-height:1.4}.product-title button{min-height:35px}.unit{font-size:9.5px;min-height:28px;margin-bottom:7px}.price{font-size:17px}.old-price{font-size:10px;min-height:13px}.product-bottom{grid-template-columns:1fr auto;gap:6px}.product-bottom .add{min-width:42px;padding:0 8px;font-size:10px;min-height:42px;height:42px}.product-bottom .qty{height:42px}.product-bottom .qty button{width:34px;min-height:40px;height:40px}.product-bottom .qty span{font-size:11px}.favorite{height:38px;width:38px;top:2px;right:2px}.sale{font-size:8px;padding:4px 6px}.product-toolbar{gap:8px;flex-wrap:nowrap}.filter-toggle{font-size:11px;min-height:42px;padding:7px 10px}.filter-toggle svg{width:15px;height:15px}.sale-filter{display:none}.sort-wrap{margin-left:auto;min-width:0;gap:6px}.sort-wrap select{min-height:42px;max-width:147px;font-size:10px}.result-count{font-size:10px}.active-filters{gap:6px;margin-bottom:10px}.filter-chip{font-size:10px;min-height:34px;padding:7px 10px}.subcategory-bar{padding:10px;margin-bottom:15px}.subcategory-chip{font-size:11px;min-height:40px;padding:9px 13px}.subcategory-heading{font-size:10px}.subcategory-level+.subcategory-level{margin-top:7px;padding-top:7px}.subcategory-bar.deep:not(.expanded) .subcategory-level:not(:nth-last-child(-n+2)){display:none}.trail-toggle{display:block;min-height:32px;font-size:10px;text-decoration:underline;color:#5b705a;margin-bottom:4px}.breadcrumbs{font-size:10px}.drawer{width:100%;max-width:440px}.drawer-head{padding:15px 18px}.drawer-head h2{font-size:21px}.cart-items{padding:0 18px}.cart-footer{padding:14px 18px;max-height:49dvh}.cart-item h3{font-size:12px}.cart-item img{width:46px;height:60px}.cart-item-end{min-width:58px}.cart-time{font-size:10px}.dialog{padding:25px 20px;border-radius:17px}.dialog h2{font-size:23px}.dialog p{font-size:12px}.filter-dialog{max-height:calc(100dvh - 30px)}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);z-index:25;justify-content:space-around}.mobile-nav button{font-size:10px;min-height:56px;display:flex;flex-direction:column;justify-content:center;gap:3px;align-items:center;color:#627365}.mobile-nav button.active{color:var(--green);font-weight:700}.mobile-nav svg{width:21px;height:21px}.mobile-cart-bar{position:fixed;bottom:calc(66px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:26;background:var(--green);color:#fff;display:flex;align-items:center;gap:8px;min-height:48px;padding:9px 13px;border-radius:11px;box-shadow:0 3px 12px #14322322}.mobile-cart-bar>span{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}.mobile-cart-bar small{font-size:10px;font-weight:400;opacity:.8}.mobile-cart-bar strong{font-size:13px;margin-left:auto;white-space:nowrap}.mobile-cart-bar svg{width:19px;height:19px}.footer{padding-bottom:140px}.footer-grid{grid-template-columns:1fr 1fr;gap:20px}.footer-grid>div:first-child{grid-column:1/-1}.footer .legal-note{font-size:9px}.toast{bottom:calc(124px + env(safe-area-inset-bottom));max-width:calc(100% - 28px);width:max-content}.preview-cart-access{margin-top:12px;padding-top:10px}
}
@media(max-width:350px){.wrap{width:calc(100% - 24px)}.header-main{grid-template-columns:83px minmax(0,1fr)40px;gap:6px}.header-main .logo,.header-main .logo img{width:83px}.header-delivery strong{font-size:10px}.header-delivery small{font-size:7.5px}.grocery-hero .hero h1{font-size:23px}.cat span{font-size:9px}.product{padding:9px}.product-image{height:108px}.price{font-size:15px}.product-bottom .add{min-width:38px;font-size:9px;padding:0 5px}.product-bottom .qty button{width:30px}.product-title{font-size:11px}.unit{font-size:9px}.result-count{display:none}.sort-wrap select{max-width:145px}.mobile-cart-bar small{display:none}.mobile-cart-bar strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.product-title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;min-height:40px;color:inherit}.brand-options .brand-option[hidden]{display:none!important}.cart-note input:focus{outline:2px solid var(--green);outline-offset:2px}
/* Core shopping text remains readable and controls keep adequate touch targets. */
@media(max-width:767px){.cat span{font-size:11px}.product-title,.product-title a{font-size:13px;min-height:38px}.unit{font-size:11px;min-height:32px}.product-bottom .add{font-size:12px;min-height:44px;height:44px}.favorite{width:44px;height:44px}.product-bottom .qty,.product-bottom .qty button{min-height:44px;height:44px}.sort-wrap select,.filter-toggle{font-size:12px}.section-head p{font-size:12px}.cart-footer{overflow:auto;flex-shrink:0}.cart-items{min-height:0}.drawer-head{flex-shrink:0}.filter-dialog #brandSearch{font-size:16px}.cart-note input{font-size:16px}}

/* Compact header: each control has an explicit column, including native FiboSearch. */
.region-compact,.delivery-date-compact,.header-search-toggle{display:none}
@media(max-width:767px){
 .site-header .header-main{display:grid;grid-template-columns:clamp(72px,22vw,100px) minmax(0,1fr) 60px 44px;grid-template-rows:auto;gap:4px;min-height:70px;height:auto;padding-top:8px;padding-bottom:8px;align-items:center}
 .site-header .header-main>.logo{grid-column:1;grid-row:1;width:100%;min-width:0}
 .site-header .header-main>.logo img{width:100%;height:auto;max-height:38px;object-fit:contain}
 .site-header .header-main>.header-delivery{grid-column:2;grid-row:1;min-width:0;width:100%;padding:3px 2px;min-height:48px;justify-content:center;overflow:hidden}
 .site-header .header-delivery>span:not(.sr-only){min-width:0;max-width:100%}
 .site-header .header-delivery small,.site-header .delivery-date-full{display:none}
 .site-header .header-delivery strong{font-size:11px;line-height:1.5;letter-spacing:-.2px;white-space:normal}
 .site-header .delivery-date-compact,.site-header .delivery-time{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .site-header .header-main>.header-actions{grid-column:3;grid-row:1;min-width:0;width:60px;gap:0;justify-content:center}
 .site-header .header-actions #location{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:60px;height:54px;padding:3px 1px;border-radius:10px;min-width:0}
 .site-header .header-actions #location>svg{width:20px;height:20px;flex-shrink:0}
 .site-header .header-actions #location>.region-compact{display:block;width:100%;max-width:58px;min-width:0;font-size:8.5px;line-height:1.15;text-align:center;font-weight:600}
 .site-header .region-compact>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .site-header .header-main>.ayz-real-search{grid-column:4;grid-row:1;min-width:0;width:44px;max-width:44px;display:flex;align-items:center;justify-content:center;position:static}
 .site-header .ayz-real-search.ayz-has-fibosearch .dgwt-wcas-search-wrapp{width:44px;min-width:0;max-width:44px;margin:0}
 .site-header .ayz-real-search .dgwt-wcas-search-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px}
 .site-header .ayz-real-search .dgwt-wcas-ico-magnifier-handler{width:23px;height:23px;margin:0}
 .site-header .ayz-real-search:not(.ayz-has-fibosearch)>.header-search-toggle{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:44px;height:44px;color:var(--green)}
 .site-header .header-search-toggle svg{width:23px;height:23px}
 .site-header #headerSearchFallback{display:none}
 .site-header .ayz-real-search[data-search-open="true"] #headerSearchFallback:not([hidden]){display:block;position:absolute;top:100%;left:14px;right:14px;padding:10px;background:#fff;border-radius:0 0 12px 12px;box-shadow:0 8px 15px #14322322}
 .site-header #headerSearchFallback .search-wrap{width:100%;max-width:none;position:relative}
 .site-header #headerSearchFallback input{font-size:16px}
}
