/* Shop uses a deliberate single-column rhythm: decide, then stock the kitchen. */
.grocery-actions { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 0 0 1.1rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.grocery-actions .primary-button { grid-column: 1 / -1; }
.grocery-actions button { min-width: 0; overflow-wrap: anywhere; }
.kitchen-shelf-empty { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; min-height: 0; padding: 1rem 1.05rem; }
.kitchen-shelf-empty > .kitchen-empty-copy { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.kitchen-shelf-empty > .kitchen-empty-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; min-width: 0; }
.kitchen-shelf-empty .kitchen-chef-launch { margin: 0; }
.grocery-group-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.grocery-group-heading h3 { margin: 0; }
.grocery-group-heading .quiet-button { min-height: 2.2rem; padding-inline: .7rem; font-size: .75rem; }
.kitchen-cart-note { margin: -.2rem 0 .6rem; color: #6b7890; font-size: .77rem; line-height: 1.35; }
.saved-kitchen-drafts { display: grid; gap: .55rem; margin-top: .85rem; padding: .85rem; border: 1px solid rgba(93, 109, 166, .11); border-radius: 1rem; background: rgba(255, 255, 255, .5); }
.saved-kitchen-drafts > div:last-child { display: grid; gap: .4rem; }
.saved-kitchen-drafts button { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .62rem .15rem; color: #293550; text-align: left; border: 0; border-top: 1px solid rgba(93, 109, 166, .1); background: transparent; }
.saved-kitchen-drafts button:first-child { border-top: 0; }
.saved-kitchen-drafts button span { display: grid; gap: .12rem; min-width: 0; }
.saved-kitchen-drafts button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-kitchen-drafts button small { color: #71809a; font-size: .74rem; }
.saved-kitchen-drafts button b { color: #4a66d1; font-size: 1.1rem; }
.kitchen-shelf-empty .quiet-button { justify-self: start; min-height: 2.35rem; padding-inline: .3rem; color: #52617b; font-size: .8rem; }
@media (max-width: 32rem) { .grocery-actions { gap: .45rem; } .grocery-actions button { min-height: 3rem; padding-inline: .7rem; } .kitchen-shelf-empty { padding: .95rem; } }
@media (max-width: 24rem) { .grocery-actions { grid-template-columns: minmax(0, 1fr); } .grocery-actions .primary-button { grid-column: auto; } }

/* Shop has three destinations, with the actual list first. */
.shop-tabs { display: flex; gap: 8px; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid #dfe4ef; }
.shop-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: #667085; font-size: .85rem; font-weight: 600; }
.shop-tabs button[aria-selected="true"] { color: #385bd6; background: #eaf0fd; }
.grocery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.grocery-actions .primary-button { min-height: 48px; font-size: .9rem; border-radius: 12px; padding: 12px 18px; box-shadow: none; }
.shop-tools { position: relative; }
.shop-tools summary { padding: 12px 8px; min-height: 44px; color: #536079; font-size: .85rem; cursor: pointer; }
.shop-tools > div { position: absolute; right: 0; top: 100%; z-index: 3; display: grid; min-width: 160px; gap: 4px; padding: 8px; background: #fff; border: 1px solid #dfe4ef; border-radius: 12px; box-shadow: 0 10px 24px #20233112; }
.shop-tools button { font-size: .85rem; padding: 12px; min-height: 44px; text-align: left; box-shadow: none; }
#groceryList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; columns: auto; align-items: start; }
#groceryList > .cart-empty, #groceryList > .cart-summary { grid-column: 1 / -1; }
#groceryList .cart-empty { display: grid; gap: 12px; justify-items: center; padding: 40px 24px; text-align: center; border: 1px dashed #cfd7e7; border-radius: 16px; background: transparent; box-shadow: none; }
.cart-empty h2 { margin: 0; font-size: 1.35rem; }
.cart-empty p { margin: 0; max-width: 36ch; color: #667085; font-size: .9rem; line-height: 1.5; }
#groceryList .cart-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin: 0; padding: 0 0 8px; box-shadow: none; background: none; }
.cart-summary strong { font-size: 1rem; }
.cart-summary span { font-size: .8rem; color: #667085; }
#groceryList .grocery-group { margin: 0; padding: 18px; border: 1px solid #e3e7ef; border-radius: 16px; background: #fff; box-shadow: none; }
.grocery-group-heading h3 { font-size: 1rem; letter-spacing: 0; }
.smart-cart-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; padding-block: 14px; }
.smart-cart-row .check-row { min-width: 0; display: flex; align-items: start; gap: 12px; }
.smart-cart-row .check-row input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: #385bd6; }
.smart-cart-row .check-row span { min-width: 0; }
.smart-cart-row .check-row strong { font-size: .9rem; line-height: 1.4; }
.smart-cart-row .check-row small { font-size: .75rem; line-height: 1.4; }
.smart-cart-row .check-row em { font-size: .7rem; line-height: 1.4; }
.smart-cart-row .pantry-toggle { min-width: 44px; min-height: 44px; padding: 8px; font-size: .7rem; color: #385bd6; }
.smart-cart-row.is-checked strong { text-decoration: line-through; color: #7d8697; }
.saved-recipes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.saved-recipe { display: flex; align-items: center; gap: 16px; padding: 14px; min-width: 0; min-height: 96px; border: 1px solid #e3e7ef; border-radius: 16px; background: #fff; text-align: left; }
.saved-recipe img, .saved-recipe-placeholder { width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; border-radius: 10px; background: #eef2fb; }
.saved-recipe-placeholder { display: grid; place-items: center; color: #385bd6; }
.saved-recipe > span:last-child { display: grid; gap: 6px; min-width: 0; }
.saved-recipe strong { font-size: 1rem; line-height: 1.3; color: #202331; }
.saved-recipe small { font-size: .75rem; color: #667085; }
.saved-recipes .cart-empty { grid-column: 1/-1; padding: 24px; }
@media (max-width: 700px) { #groceryList, .saved-recipes { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 360px) { .shop-tabs { gap: 4px; } .shop-tabs button { font-size: .75rem; } .smart-cart-row { grid-template-columns: 1fr; } .smart-cart-row .pantry-toggle { justify-self: end; } }
