/* KaBasket pocket layout. All visual overrides are phone-only. */
.kb-pocket-nav,.kb-menu-toggle,.kb-help-close{display:none}
@media(max-width:760px){
 html{scroll-padding-top:85px}
 body{--pocket-paper:#fcfaf5;--pocket-ink:#292823;--pocket-accent:#98482e;--pocket-line:#e6e0d6;background:var(--pocket-paper);color:var(--pocket-ink);font-family:'Segoe UI',Arial,sans-serif;line-height:1.5}
 body.kb-pocket-customer{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
 body.kb-pocket-customer.kb-pocket-filled{padding-bottom:calc(154px + env(safe-area-inset-bottom))!important}
 body :is(input,textarea,select){font-size:16px;max-width:100%;min-width:0}
 body :is(.button,.outline,.add,.submit-auth){min-height:48px;border-radius:12px;box-shadow:none;font-size:14px}
 body :is(.panel,.editor,.account-banner,.product-card){border:1px solid var(--pocket-line);border-radius:16px;box-shadow:none;background:#fff}
 body :is(h1,h2,h3,p,a,td,strong){overflow-wrap:anywhere}
 body :is(.notice,.error){font-size:14px;line-height:1.6;padding:14px;margin:14px 0}
 body :is(.header,.top){position:sticky;top:0;z-index:20;min-height:64px;height:auto;padding:12px 16px;background:#fcfaf5;border-bottom:1px solid var(--pocket-line);backdrop-filter:none;box-shadow:none;gap:12px;flex-wrap:nowrap}
 body .header.wrap{width:100%;margin:0}
 body :is(.brand,.wordmark){font-size:27px;letter-spacing:-1.4px}
 body .header nav{display:none}
 body :is(.ribbon,.offer-bar){display:none}
 body .header-actions{gap:12px}
 body .header-actions .button{min-height:42px;padding:10px 13px}
 body .header>a:not(.brand){font-size:13px}
 .kb-pocket-nav{position:fixed;inset:auto 0 0;z-index:60;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--pocket-line);background:#fff;box-shadow:0 -3px 18px #29282308}
 .kb-pocket-nav :is(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:51px;min-width:0;padding:5px 2px;border:0;background:transparent;color:#6b685f;text-decoration:none;font:600 11px/1.2 'Segoe UI',Arial,sans-serif;border-radius:10px;cursor:pointer}
 .kb-pocket-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .kb-pocket-nav [aria-current=page],.kb-pocket-nav [aria-expanded=true]{color:#98482e;background:#f5ece4}
 body:has(dialog[open]) .kb-pocket-nav,body:has(.kb-order-alert:not([hidden])) .kb-pocket-nav{visibility:hidden}
 body.kb-pocket-customer .kb-tools{bottom:calc(80px + env(safe-area-inset-bottom));right:12px;left:12px;z-index:64;align-items:stretch}
 body.kb-pocket-customer .kb-tool-row{display:none}
 body.kb-pocket-customer .kb-help-panel{width:100%;max-height:65dvh;overflow:auto;background:#fff;border-color:var(--pocket-line);border-radius:20px;padding:22px}
 .kb-help-panel .kb-text-toggle,.kb-help-panel .kb-motion-toggle{position:static!important;width:100%;margin:10px 0 0;box-shadow:none;font-size:14px;min-height:46px}
 .kb-help-panel .kb-help-close{display:flex;width:100%;margin-top:12px}
 body.kb-pocket-customer>.kb-motion-toggle{display:none}
 body:has(.kb-pocket-nav) .toast{bottom:calc(151px + env(safe-area-inset-bottom));font-size:14px}
 body.kb-pocket-keyboard .kb-pocket-nav,body.kb-pocket-keyboard .mobile-basket{display:none}
 /* A short shop introduction leaves room for actual groceries. */
 body.kb-pocket-shop .wrap{padding:0 16px;width:100%}
 body.kb-pocket-shop .header>a:not(.brand){display:none}
 body.kb-pocket-shop .basket-trigger{min-height:40px;padding:7px 12px;background:#292823;border-radius:10px;box-shadow:none}
 body.kb-pocket-shop .basket-trigger span{background:#e9c9ac;color:#292823}
 body.kb-pocket-shop .hero{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px;padding:22px 0 18px;align-items:center}
 body.kb-pocket-shop .hero h1{font:650 27px/1.12 'Segoe UI',Arial,sans-serif;letter-spacing:-1px;margin:8px 0}
 body.kb-pocket-shop .hero h1 br{display:none}
 body.kb-pocket-shop .hero h1 em{font-style:normal;color:#98482e}
 body.kb-pocket-shop .hero .eyebrow{font-size:9px;letter-spacing:1px;margin:0}
 body.kb-pocket-shop .hero .eyebrow>span,body.kb-pocket-shop .hero-copy>p:not(.eyebrow),body.kb-pocket-shop .hero-link,body.kb-pocket-shop .photo-label,body.kb-pocket-shop .stamp{display:none}
 body.kb-pocket-shop .hero-image{margin:0;transform:none}
 body.kb-pocket-shop .hero-image>img{height:112px;border-radius:18px;object-fit:cover}
 body.kb-pocket-shop .toolbar{gap:10px;display:flex;flex-wrap:wrap;margin:0 0 8px}
 body.kb-pocket-shop .search{flex-basis:100%;border:1px solid #d6cfc4;background:#fff;border-radius:14px;padding:6px 8px 6px 13px;min-height:52px}
 body.kb-pocket-shop .search input{font-size:16px;width:100%;padding:8px 0}
 body.kb-pocket-shop .search button{min-height:40px;background:#eee9df;border-radius:9px;color:#292823;font-size:12px}
 body.kb-pocket-shop .stock-filter{font-size:13px;display:flex;align-items:center;min-height:44px}
 body.kb-pocket-shop .sort{margin-left:auto;font-size:12px;min-width:0}
 body.kb-pocket-shop .sort select{font-size:16px;max-width:152px;padding:9px 3px}
 body.kb-pocket-shop .categories{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;margin:0 -16px;padding:16px;border-bottom:1px solid var(--pocket-line);scrollbar-width:none}
 body.kb-pocket-shop .category{flex:0 0 80px;min-width:80px;background:none;border-radius:0;scroll-snap-align:start;transform:none}
 body.kb-pocket-shop .category-photo{height:72px;width:72px;margin:4px auto 10px;border-radius:50%;border:2px solid transparent;background:#f0ebe1;box-shadow:none}
 body.kb-pocket-shop .category-photo.all-photo{background:#292823;color:#e9c9ac}
 body.kb-pocket-shop .category.selected .category-photo{border-color:#98482e;box-shadow:0 0 0 3px #f0e2d7}
 body.kb-pocket-shop .category>span:last-child{font-size:12px;line-height:1.3;text-decoration:none;display:block;color:#514c44}
 body.kb-pocket-shop .category.selected>span:last-child{color:#98482e;font-weight:750}
 body.kb-pocket-shop .shelves{padding:24px 0}
 body.kb-pocket-shop .shelf-top{gap:10px;margin-bottom:18px;align-items:center}
 body.kb-pocket-shop .shelf-top .eyebrow{display:none}
 body.kb-pocket-shop .shelf-top h2{font:700 23px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:-.6px;margin:0}
 body.kb-pocket-shop .result-count{font-size:12px;flex-shrink:0}
 body.kb-pocket-shop .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.kb-pocket-shop .product{border:1px solid var(--pocket-line);border-radius:15px;background:white;box-shadow:none;transform:none;display:flex;flex-direction:column;min-width:0}
 body.kb-pocket-shop .product-image{background:#f4f1e9!important;aspect-ratio:1.12;overflow:hidden}
 body.kb-pocket-shop .product-image img{transform:none!important;filter:none!important;padding:6px}
 body.kb-pocket-shop .peek{display:none}
 body.kb-pocket-shop .product-body{padding:12px;display:flex;flex:1;flex-direction:column;min-width:0}
 body.kb-pocket-shop .product-category{font-size:9px;letter-spacing:.5px;color:#6b685f;margin-bottom:6px}
 body.kb-pocket-shop .product h3{font:650 16px/1.3 'Segoe UI',Arial,sans-serif;min-height:42px;letter-spacing:-.2px}
 body.kb-pocket-shop .unit{font-size:12px;margin:6px 0 10px;color:#6b685f}
 body.kb-pocket-shop .price-row{margin-top:auto;margin-bottom:12px;gap:4px;align-items:start;flex-direction:column}
 body.kb-pocket-shop .price-row strong{font-size:15px;letter-spacing:-.3px;color:#292823}
 body.kb-pocket-shop .availability{font-size:11px}
 body.kb-pocket-shop .product-actions{display:flex;flex-direction:column;gap:8px}
 body.kb-pocket-shop .stepper{width:100%;border-color:var(--pocket-line);border-radius:9px;justify-content:space-between;flex:auto}
 body.kb-pocket-shop .stepper button{width:44px;min-width:36px;height:44px;min-height:44px}
 body.kb-pocket-shop .stepper output{font-size:14px}
 body.kb-pocket-shop .add{width:100%;flex:auto;min-height:44px;background:#292823;font-size:12px;border-radius:9px}
 body.kb-pocket-shop .mobile-basket{display:none;bottom:calc(75px + env(safe-area-inset-bottom));left:12px;right:12px;min-height:56px;padding:13px 16px;background:#292823;border-radius:13px;border:0;box-shadow:0 4px 16px #29282326;gap:8px;z-index:55}
 body.kb-pocket-shop.kb-pocket-filled .mobile-basket{display:flex}
 body.kb-pocket-shop .mobile-basket span{font-size:12px}
 body.kb-pocket-shop .club{display:grid;grid-template-columns:52px 1fr;gap:16px;background:#f0e2d6;border-radius:16px;padding:20px;margin:8px 0 24px}
 body.kb-pocket-shop .club-mark{font-size:52px;letter-spacing:-3px}
 body.kb-pocket-shop .club h2{font:650 21px/1.2 'Segoe UI',Arial,sans-serif}
 body.kb-pocket-shop .club p:not(.eyebrow){font-size:13px}
 body.kb-pocket-shop .club>.hero-link{display:inline-flex;grid-column:2;font-size:14px;margin:0;justify-self:start}
 body.kb-pocket-shop footer{padding-bottom:26px}
 /* Product detail sheets and a basket with a scrollable body. */
 body.kb-pocket-shop .quick-view{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:92dvh;border-radius:24px 24px 0 0;background:#fff}
 body.kb-pocket-shop .quick-grid{display:block}
 body.kb-pocket-shop .quick-image{height:180px;min-height:0;background:#f4f1e9}
 body.kb-pocket-shop .quick-image img{height:180px}
 body.kb-pocket-shop .quick-copy{padding:20px 20px calc(24px + env(safe-area-inset-bottom))}
 body.kb-pocket-shop .quick-copy h2{font:700 28px/1.15 'Segoe UI',Arial,sans-serif}
 body.kb-pocket-shop .close{width:44px;height:44px}
 body.kb-pocket-shop .basket{background:#fff}
 body.kb-pocket-shop .basket-header h2{font:700 28px/1.15 'Segoe UI',Arial,sans-serif}
 body.kb-pocket-shop .basket-footer{padding:14px 18px calc(16px + env(safe-area-inset-bottom));flex-shrink:0}
 body.kb-pocket-shop .basket-footer .fine{font-size:11px;margin:7px 0}
 body.kb-pocket-shop .basket-footer .checkout-note{padding:9px 12px;margin:9px 0}
 /* Landing page: retain the photos and character, reduce the poster-sized intro. */
 body.kb-pocket-home .hero{padding:24px 0;gap:20px;grid-template-columns:1fr}
 body.kb-pocket-home .hero h1{font-size:clamp(44px,12vw,60px);letter-spacing:-2px;line-height:1.02;margin:15px 0}
 body.kb-pocket-home .hero-description{font-size:15px;line-height:1.6}
 body.kb-pocket-home .hero-visual{height:230px;margin:0}
 body.kb-pocket-home .photo-frame{border-radius:24px;animation:none!important;transform:none!important;box-shadow:none!important}
 body.kb-pocket-home .fresh-stamp{width:78px;height:78px;right:8px;top:10px;font-size:7px}
 body.kb-pocket-home .fresh-stamp b{font-size:25px}
 body.kb-pocket-home .basket-note{left:12px;bottom:16px;padding:10px 14px}
 body.kb-pocket-home .photo-bottom{display:none}
 body.kb-pocket-home .hero-actions{gap:12px;margin:20px 0;flex-wrap:wrap}
 body.kb-pocket-home .hero-proof{flex-wrap:wrap;gap:8px 16px;font-size:12px}
 body.kb-pocket-home .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.kb-pocket-home .category{background:#fff;border:1px solid var(--pocket-line);border-radius:16px;padding:14px;box-shadow:none}
 body.kb-pocket-home .category-photo{width:calc(100% + 28px);margin:-14px -14px 12px;height:135px;background:#f4f1e9}
 body.kb-pocket-home .category-top{display:none}
 body.kb-pocket-home .category h3{font:650 19px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:-.4px;margin:14px 0 9px}
 body.kb-pocket-home .category p{font-size:12px;min-height:36px}
 body.kb-pocket-home .category-link{font-size:12px;min-height:44px;align-items:center}
 body.kb-pocket-home .membership{background:#eddfcf;border-radius:20px;overflow:hidden}
 body.kb-pocket-home .membership-photo:before{display:none}
 body.kb-pocket-home .membership-photo{height:200px;min-height:0}
 body.kb-pocket-home .membership h2{font-size:32px}
 body.kb-pocket-home .ticker{padding:12px 0;background:#ede6d9}
 body.kb-pocket-home .ticker-track span{font-size:18px}
 /* Checkout, accounts, tracking and sign-in. */
 body .checkout-wrap{padding:0 16px;margin:24px auto 30px}
 body .checkout-wrap>h1{font:700 32px/1.15 'Segoe UI',Arial,sans-serif;letter-spacing:-1px}
 body .checkout-columns,body .checkout-grid{grid-template-columns:minmax(0,1fr);gap:0}
 body .panel{padding:20px 16px;margin:14px 0}
 body .panel h2{font:650 23px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:-.5px;margin-bottom:20px}
 body .field label{font-size:14px}
 body .field small{font-size:12px;line-height:1.55}
 body :is(.field input,.field textarea,.field select){border-color:#cfc8bc;border-radius:10px;min-height:50px}
 body .order-summary{position:static}
 body .check-row{font-size:14px}
 body .checkout-item{gap:10px;flex-wrap:nowrap;align-items:start}
 body .checkout-item>div{min-width:0}
 body .checkout-item>span{font-size:12px;max-width:90px}
 body .checkout-item img{width:48px;height:54px;flex-shrink:0}
 body .grand-total{gap:12px;flex-wrap:wrap}
 body .location-box{padding:14px;min-width:0}
 body:has(.entry) main,body:has(.recovery) main,body:has(.account-head) main{padding:16px}
 body .entry{display:flex;flex-direction:column;min-height:0;border-radius:18px;border-color:var(--pocket-line)}
 body .entry .signin{order:-1;padding:25px 20px}
 body .signin h2{font:700 32px/1.15 'Segoe UI',Arial,sans-serif;letter-spacing:-1px;margin:12px 0}
 body .entry .story{min-height:220px}
 body .story:after{background:#152b2180}
 body .story h1{font-size:28px}
 body .story-copy{left:20px;right:20px;bottom:16px}
 body .recovery{padding:24px 20px;margin:0 auto 24px}
 body .recovery h1{font:700 30px/1.2 'Segoe UI',Arial,sans-serif}
 body .account-head{gap:12px;flex-wrap:wrap}
 body .account-head h1{font:700 30px/1.2 'Segoe UI',Arial,sans-serif}
 body .account-banner{margin:20px 0;padding:20px;gap:14px;background:#eee4d8}
 body .account-banner h2{font-size:25px}
 body .order{padding:18px;border-radius:14px;background:#fff;border-color:var(--pocket-line)}
 /* Staff: a compact menu instead of a wall of links before every page. */
 body .admin-shell{grid-template-columns:minmax(0,1fr)}
 body .admin-shell .sidebar{position:relative;padding:17px 16px;display:block;background:#292823;min-height:68px}
 body .admin-shell .sidebar .brand{padding:0;display:inline-block}
 body .admin-shell .sidebar .eyebrow{display:none}
 body .admin-shell .sidebar nav{display:flex;flex-direction:column;gap:5px;margin-top:18px}
 body .admin-shell .sidebar .nav-link{font-size:15px;padding:13px;margin:0}
 body .admin-shell .sidebar-bottom{margin-top:14px;padding:0}
 body .kb-menu-toggle{display:block;position:absolute;right:16px;top:13px;min-height:44px;padding:9px 14px;border:1px solid #ffffff50;border-radius:10px;background:#ffffff12;color:#fff;font:600 14px 'Segoe UI',Arial,sans-serif}
 body.kb-pocket-menu-ready .sidebar:not(.kb-menu-open) :is(nav,.sidebar-bottom){display:none}
 body .workspace{padding:18px 16px;min-width:0}
 body .workspace .topbar{padding-bottom:16px}
 body .workspace .topbar>.small{display:none}
 body .workspace .page-heading{margin:22px 0}
 body .workspace .page-heading h1{font-size:30px}
 body .workspace :is(.content-header,.staff-heading){flex-wrap:wrap;gap:12px}
 body .workspace .content-header h1{font-size:29px}
 body .workspace .form-grid{grid-template-columns:1fr}
 body .workspace .editor{padding:20px 16px}
 body .workspace .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body .workspace .product-photo{height:140px}
 body .workspace .product-info{padding:12px}
 body .workspace .product-info h2{font-size:17px}
 body .workspace .product-info .button{width:100%;padding:10px}
 body .workspace .product-info p{font-size:13px}
 body .table-wrap{max-width:100%;border-radius:12px;overscroll-behavior-x:contain}
 body .table-wrap th,body .table-wrap td{padding:13px;font-size:13px}
 .kb-table-hint{font-size:12px;color:#6b685f;margin:12px 0 6px}
 body .kb-dashboard .dash-heading h1{font-size:30px;letter-spacing:-1px}
 body .kb-dashboard .dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body .kb-dashboard .dash-card{padding:16px;min-width:0}
 body .kb-dashboard .dash-number{font-size:25px;overflow-wrap:anywhere}
 body .kb-dashboard .dash-metrics .dash-card p{font-size:12px}
 body .kb-dashboard .dash-main-grid,body .kb-dashboard .dash-bottom-grid{grid-template-columns:minmax(0,1fr)}
 body .kb-dashboard .dash-controls :is(a,button),body .kb-dashboard .dash-switch button{min-height:44px}
 body .kb-dashboard .dash-period{flex-wrap:wrap;gap:12px}
 body .kb-dashboard .dash-period nav{display:flex;width:100%;justify-content:space-between}
 body .kb-dashboard .dash-period nav a{min-height:44px}
 body .rider-wrap{padding:0 16px 28px}
 body .rider-head{padding:15px 0;margin-bottom:22px}
 body .rider-wrap h1{font:700 32px/1.15 'Segoe UI',Arial,sans-serif}
 body .rider-actions{display:grid;grid-template-columns:1fr;gap:10px}
 body .rider-actions .button,body .rider-wrap article.panel>.button{width:100%}
 body:has(.admin-shell) .kb-tools,body:has(.rider-wrap) .kb-tools,body:has(.login-shell) .kb-tools{position:static;padding:12px 16px;align-items:flex-start}
 body:has(.admin-shell),body:has(.rider-wrap),body:has(.login-shell){padding-bottom:0!important}
 body .login-shell{grid-template-columns:1fr}
 body .login-panel{order:-1;padding:25px 20px}
 body .login-story{min-height:210px}
 body .login-story:after{background:#152b2180}
 body .login-form .brand{margin-bottom:25px}
 body.kb-larger-text :is(.products,.product-grid,.dash-metrics){grid-template-columns:1fr}
 body.kb-larger-text .hero{grid-template-columns:1fr}
}
@media(max-width:360px){
 body.kb-pocket-shop .hero{grid-template-columns:minmax(0,1fr) 86px}
 body.kb-pocket-shop .hero-image>img{height:100px}
 body.kb-pocket-shop .hero h1{font-size:24px}
 body.kb-pocket-shop .product-body{padding:9px}
 body.kb-pocket-shop .sort label{display:none}
 body .kb-dashboard .dash-metrics{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.kb-pocket-nav *{transition:none!important;animation:none!important}}
@media print{.kb-pocket-nav,.kb-menu-toggle,.kb-table-hint{display:none!important}}
