/* Groc 2.4 — Stable 2.3 feature set, corrected mobile presentation and botanical glass Home header.
   Keep actions and Supabase saving paths intact. */
:root{--g24-forest:#214b39;--g24-mint:#eaf2ea;--g24-line:#dde9df;--g24-soft:#f8f9f5}
/* Home Header: refined botanical glass effect, no heavy full-screen backdrop blur. */
:root:not([data-theme="dark"]) .dashboard-hero{
 background:radial-gradient(ellipse 48% 85% at 94% 0%,#b8d4bb6b 0%,transparent 76%),
 radial-gradient(ellipse 55% 76% at 19% 110%,#689b7e66 0%,transparent 72%),
 linear-gradient(113deg,#203f32 0%,#366a52 65%,#618e70 100%)!important;
 color:#f4faf4!important;position:relative!important;isolation:isolate!important;
 border-radius:22px!important;margin:8px 12px 0!important;padding:16px 16px 13px!important;
 box-shadow:0 7px 20px #153b2928!important;overflow:hidden!important
}
/* Subtle leaf-like botanical texture built from CSS (no large photo download). */
:root:not([data-theme="dark"]) .dashboard-hero::before{
 content:"";pointer-events:none;position:absolute;inset:-36px -18px auto auto;width:165px;height:165px;opacity:.24;z-index:-1;
 background:radial-gradient(ellipse 15px 46px at 37% 24%,#c3e3ba 45%,transparent 48%),
 radial-gradient(ellipse 19px 41px at 66% 30%,#abd5ac 49%,transparent 53%),
 radial-gradient(ellipse 19px 49px at 26% 68%,#a0c9a3 45%,transparent 49%),
 radial-gradient(ellipse 23px 43px at 75% 73%,#b2daae 45%,transparent 50%);
 transform:rotate(-25deg)
}
:root:not([data-theme="dark"]) .dashboard-greeting>span{color:#e4f1e8!important;font-size:18px!important;font-weight:600!important;line-height:1.22!important;margin-bottom:4px!important}
:root:not([data-theme="dark"]) .dashboard-greeting h1{color:#fff!important;font-size:clamp(27px,7vw,32px)!important;font-weight:790!important;line-height:1.05!important}
.dashboard-hero-top{gap:10px!important;align-items:center!important}
.dashboard-avatar{flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;box-shadow:0 3px 11px #133b2d38!important}
:root:not([data-theme="dark"]) .dashboard-search{margin:11px 0 0!important;min-height:44px!important;padding:8px 12px!important;border-radius:15px!important;background:#ffffffde!important;border:1px solid #ffffffc2!important;box-shadow:0 2px 9px #0b2e1b17!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}
:root:not([data-theme="dark"]) .dashboard-search input{background:transparent!important;min-width:0!important;color:#294638!important;font-size:14px!important}
:root:not([data-theme="dark"]) .dashboard-search svg{color:#37644e!important;flex:0 0 auto}
/* Separate category strip, uniformly small and fully visible, scrolls horizontally. */
.dashboard-category-strip,.dashboard-category-strip-with-all{box-sizing:border-box!important;display:flex!important;position:relative!important;z-index:2!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;gap:8px!important;margin:0 12px 10px!important;padding:9px 2px 6px!important;min-height:0!important;overscroll-behavior-x:contain;scrollbar-width:none}
.dashboard-category-shortcut{min-width:52px!important;flex:0 0 52px!important;gap:3px!important;padding:0!important;scroll-snap-align:start!important}
.dashboard-category-icon{box-sizing:border-box!important;width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;border-radius:13px!important;overflow:hidden!important;box-shadow:0 2px 8px #25432b17!important}
.dashboard-category-icon img,.dashboard-category-app-icon{max-width:39px!important;max-height:39px!important;width:86%!important;height:86%!important;object-fit:contain!important}
.dashboard-category-shortcut small{font-size:10px!important;max-width:60px!important;line-height:1.2!important}
/* Quick Add already expands from its card. Manage remains available in Library > Quick Add. */
.dashboard-quick-add-section:not(.dashboard-recipe-section) .dashboard-shortcut-heading>.text-action{display:none!important}
.dashboard-content-section.dashboard-quick-add-section,.dashboard-content-section.dashboard-recipe-section,.dashboard-content-section.groc2-tobuy{margin-bottom:10px!important}
/* Compact Library/Store header. Primary action never overlaps title. */
.library-header{padding:9px 12px 0!important}
:root:not([data-theme="dark"]) .library-title-row{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:10px!important;min-height:76px!important;padding:12px 14px!important;border-radius:19px!important;overflow:visible!important}
.library-title-row>div:first-child{flex:1 1 0!important;min-width:0!important}
.library-title-row h1{font-size:clamp(22px,6vw,27px)!important;margin:2px 0 0!important;white-space:nowrap}
.library-title-row .eyebrow{font-size:9px!important;letter-spacing:.08em!important;line-height:1.3!important}
.library-header .library-header-actions{flex:0 0 auto!important;display:flex!important;flex-wrap:nowrap!important;min-width:0!important;align-items:center!important;gap:7px!important}
:root:not([data-theme="dark"]) .library-title-row .groc24-icon-action{flex:0 0 39px!important;min-width:39px!important;max-width:39px!important;width:39px!important;min-height:39px!important;height:39px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:12px!important;border:1px solid #ffffff75!important;background:#ffffff21!important;color:#fff!important;padding:0!important;font-size:0!important}
.library-title-row .groc24-icon-action svg{flex:0 0 auto!important;width:19px!important;height:19px!important;display:block!important}
.library-title-row-store.library-title-row-catalogue>.groc24-icon-action{margin-left:auto!important}
:root:not([data-theme="dark"]) .library-title-row .library-create-button{min-height:39px!important;height:39px!important;padding:6px 10px!important;border-radius:12px!important;font-size:11px!important;white-space:nowrap!important}
.library-search{min-height:42px!important;margin-bottom:8px!important}
.library-filter-row-v2{margin-bottom:9px!important}
/* Library and Store share compact single-column horizontal rows. */
.product-grid.product-grid-v2.library-product-list{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:7px!important;max-width:850px!important;margin:0 auto!important;padding:0 12px 105px!important}
.product-grid.product-grid-v2.library-product-list>.product-card-v2.library-product-row{box-sizing:border-box!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;column-gap:10px!important;row-gap:2px!important;align-items:center!important;min-width:0!important;min-height:84px!important;height:auto!important;max-height:none!important;padding:9px 10px!important;border-radius:15px!important;overflow:visible!important}
.library-product-list .product-card-v2-image.library-row-image{box-sizing:border-box!important;grid-column:1!important;grid-row:1/3!important;width:62px!important;height:62px!important;min-height:62px!important;max-height:62px!important;min-width:62px!important;padding:4px!important;border-radius:11px!important;align-self:center!important;overflow:hidden!important}
.library-product-list .product-card-v2-image.library-row-image img{max-width:100%!important;max-height:54px!important;object-fit:contain!important}
.library-product-list .product-card-v2-body.library-row-copy{grid-column:2!important;grid-row:1/3!important;min-width:0!important;min-height:0!important;height:auto!important;overflow:visible!important;align-self:center!important;gap:4px!important;padding:1px 0!important;display:flex!important;flex-direction:column!important}
.library-product-list .product-card-v2-body h3{display:block!important;min-height:0!important;height:auto!important;max-height:none!important;line-height:1.24!important;overflow:hidden!important;margin:0!important}
.library-product-list .product-card-v2-body h3>button{width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:37px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:18px!important;font-size:13px!important;font-weight:730!important;overflow-wrap:anywhere!important}
.library-product-list .product-identity-row{height:25px!important;max-height:25px!important;min-height:25px!important;min-width:0!important;gap:5px!important;flex-wrap:nowrap!important;overflow:hidden!important;margin:0!important}
.library-product-list .product-identity-row .category-symbol-badge,.library-product-list .product-identity-row .product-store-mark{box-sizing:border-box!important;flex:0 0 22px!important;min-width:22px!important;max-width:22px!important;width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;border-radius:6px!important;padding:2px!important}
.library-product-list .product-identity-row .library-row-price{font-size:11px!important;max-width:125px!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
.library-product-list .product-card-v2-quantity.library-row-quantity{grid-column:3!important;grid-row:1/3!important;align-self:end!important;position:static!important;margin:0!important;padding:0!important;width:110px!important;min-width:110px!important;max-width:110px!important}
.library-product-list .quantity-stepper-v2{box-sizing:border-box!important;display:grid!important;grid-template-columns:32px minmax(14px,1fr) 32px!important;gap:1px!important;min-width:0!important;max-width:100%!important;width:100%!important;min-height:36px!important;height:36px!important;padding:2px!important;border-radius:12px!important}
.library-product-list .quantity-stepper-v2 button{min-width:30px!important;width:30px!important;min-height:30px!important;height:30px!important;border-radius:9px!important}
.library-product-list .library-row-menu{position:absolute!important;top:6px!important;right:7px!important;z-index:4!important}
.library-product-list .library-row-more{width:26px!important;height:26px!important;min-height:26px!important;border-radius:8px!important;opacity:.85!important}
/* Move the context-menu trigger clear of the quantity stepper. */
.library-product-list .product-card-v2-quantity.library-row-quantity{padding-right:0!important;margin-top:27px!important}
.library-product-list .library-row-actions{right:0!important;min-width:190px!important}
/* Store search/filter controls: quiet, compact and no text collisions. */
.library-header-store .library-title-row{min-height:76px!important}
.store-browser-page{padding:0 10px 12px!important}
.store-browser-card{box-sizing:border-box!important;width:100%!important;padding:10px!important;border-radius:17px!important;min-width:0!important}
.store-browser-retailer-row{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
.store-browser-retailer-row>.store-browser-label{display:none!important}
.store-browser-retailer-select{width:100%!important;max-width:100%!important;min-height:44px!important;padding:7px 10px!important}
.store-browser-search{min-width:0!important;min-height:44px!important;grid-template-columns:19px minmax(0,1fr) auto!important;gap:6px!important;padding:4px 5px 4px 10px!important}
.store-browser-search input{min-width:0!important;font-size:13px!important}
.store-browser-search button{min-height:35px!important;height:35px!important;padding:0 12px!important;font-size:12px!important}
.store-catalogue-sort-row{display:flex!important;gap:10px!important;min-height:42px!important;align-items:center!important;padding:4px 7px!important}
.store-catalogue-sort-row>.store-browser-label{white-space:nowrap!important;font-size:11px!important}
.store-catalogue-sort-row>:last-child{min-width:0!important;flex:1 1 auto!important}
.store-browser-source-row{gap:8px!important;flex-wrap:wrap!important;font-size:11px!important}
.store-browser-results{display:flex!important;flex-direction:column!important;gap:7px!important}
.store-browser-result{box-sizing:border-box!important;display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:10px!important;align-items:center!important;min-height:86px!important;height:auto!important;padding:9px!important;margin:0!important;border-radius:15px!important;overflow:visible!important;content-visibility:visible!important}
.store-browser-result-image{grid-column:1!important;width:62px!important;min-width:62px!important;height:62px!important;border-radius:11px!important;overflow:hidden!important}
.store-browser-result-image img{max-width:56px!important;max-height:56px!important;object-fit:contain!important}
.store-browser-result-copy{grid-column:2!important;gap:3px!important;min-width:0!important;overflow:hidden!important}
.store-browser-result-copy>strong{font-size:13px!important;line-height:1.24!important;-webkit-line-clamp:2!important}
.store-browser-result-copy p{display:none!important}
.store-browser-result-store{font-size:10px!important}
.store-browser-result-store img{max-width:19px!important;max-height:19px!important}
.store-catalogue-product-price{font-size:12px!important}
.store-browser-result-actions{grid-column:3!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;min-width:60px!important;max-width:84px!important}
.store-browser-result-actions>button{box-sizing:border-box!important;min-height:34px!important;padding:5px!important;width:100%!important;font-size:11px!important}
.store-browser-result-actions>a{flex:0 0 auto!important;min-height:0!important;font-size:10px!important}
/* Shopping trip: dense horizontal rows and singular price. Existing purchased/quantity logic stays intact. */
.shopping-row-v4>.shopping-row-image-v3{grid-column:1!important;grid-row:1!important}
.shopping-row-v4>.shopping-row-copy-v3{grid-column:2!important;grid-row:1!important}
.shopping-row-v4>.shopping-row-stepper-v3{grid-column:3!important;grid-row:1!important;align-self:center!important;height:34px!important;min-height:34px!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:2px!important}
.shopping-row-v4>.shopping-row-stepper-v3 button{min-height:28px!important;height:28px!important}
.shopping-row-v4>.shopping-row-more-v3{grid-column:4!important;grid-row:1!important;align-self:center!important;margin:0!important}
.shopping-row-v4>.shopping-row-check-v3{grid-column:5!important;grid-row:1!important;align-self:center!important;margin:0!important}

.shopping-money-row-m10{min-height:0!important;padding:9px 12px!important}
.shopping-money-row-m10>div:first-child{width:100%!important}
.shopping-row-v3.shopping-row-v4{box-sizing:border-box!important;grid-template-columns:40px minmax(0,1fr) 88px 28px 32px!important;grid-template-rows:auto!important;min-height:63px!important;height:auto!important;padding:8px!important;gap:7px!important;border-radius:14px!important;align-items:center!important}
.shopping-row-image-v3{width:39px!important;height:39px!important;min-width:39px!important}
.shopping-row-copy-v3{min-width:0!important;gap:3px!important}
.shopping-row-copy-v3>strong{font-size:12px!important;white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;line-height:1.26!important}
.shopping-row-copy-v3>span{font-size:10px!important;line-height:1.2!important}
.shopping-item-price{min-height:24px!important;padding:2px 0!important;line-height:1.25!important;font-size:11px!important;font-weight:650!important}
.shopping-row-stepper-v3{min-width:86px!important;max-width:90px!important;justify-self:end!important}
.shopping-row-more-v3{display:grid!important;place-items:center!important;min-width:26px!important;width:26px!important;height:28px!important;padding:0!important}
.shopping-row-check-v3{min-width:29px!important;width:29px!important;height:29px!important}
@media(max-width:430px){
 .product-grid.product-grid-v2.library-product-list>.product-card-v2.library-product-row{grid-template-columns:54px minmax(0,1fr) 90px!important;gap:7px!important;padding:7px!important;min-height:75px!important}
 .library-product-list .product-card-v2-image.library-row-image{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;max-height:54px!important}
 .library-product-list .product-card-v2-quantity.library-row-quantity{width:88px!important;min-width:88px!important;max-width:88px!important}
 .library-product-list .quantity-stepper-v2{grid-template-columns:28px minmax(10px,1fr) 28px!important;min-width:0!important;max-width:100%!important;height:35px!important}
 .library-product-list .quantity-stepper-v2 button{width:26px!important;min-width:26px!important;height:29px!important;min-height:29px!important}
 .library-product-list .product-card-v2-body h3>button{font-size:12px!important;line-height:17px!important;max-height:34px!important}
 .shopping-row-v3.shopping-row-v4{grid-template-columns:34px minmax(0,1fr) 72px 23px 28px!important;gap:4px!important;padding:7px 6px!important}
 .shopping-row-image-v3{width:33px!important;height:33px!important;min-width:33px!important}
 .shopping-row-stepper-v3{min-width:70px!important;max-width:72px!important;grid-template-columns:23px minmax(13px,1fr) 23px!important}
 .shopping-row-stepper-v3 button{width:22px!important;min-width:22px!important}
 .shopping-row-more-v3{width:23px!important;min-width:23px!important}
 .shopping-row-check-v3{width:27px!important;min-width:27px!important}
}
@media(max-width:350px){
 .library-title-row .eyebrow{display:none!important}
 .library-header .library-title-row{padding:9px 10px!important}
 .library-title-row h1{font-size:21px!important}
 .library-title-row .library-create-button{font-size:10px!important;padding:6px 8px!important}
 .store-browser-result-actions{min-width:50px!important;max-width:70px!important}
 .store-browser-result{grid-template-columns:52px minmax(0,1fr) 64px!important;gap:6px!important}
 .store-browser-result-image{width:52px!important;min-width:52px!important;height:52px!important}
}
@media(prefers-reduced-motion:reduce){.dashboard-hero,.dashboard-category-icon,.library-product-row,.store-browser-result,.shopping-row-v4{transition:none!important}}
