/* Shopping-focused presentation, layered after the shared desktop/mobile styles. */
.delivery-strip { background: #f4f0e6; color: var(--primary-dark); font-size: .8rem; border-bottom: 1px solid var(--border); }
.delivery-strip .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.delivery-strip a, .collection-link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.storefront-home .hero { min-height: 0; padding: 56px 0; background: var(--primary-dark); }
.storefront-home .hero .container { grid-template-columns: 1.05fr 1fr; gap: 40px; }
.storefront-home .hero h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.storefront-home .hero p { margin-bottom: 24px; }
.storefront-home .hero-stats { margin-top: 26px; padding-top: 20px; gap: 24px; }
.hero-category-link { color: #fff; align-self: center; padding: 12px 0; font-size: .88rem; }
.pantry-display { background: #f4f0e6; border-radius: 24px; padding: 24px; min-width: 0; }
.pantry-display.has-products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pantry-product { background: #fff; border-radius: 16px; padding: 14px; color: var(--text); display: flex; flex-direction: column; min-width: 0; }
.pantry-product:first-child { grid-row: span 2; justify-content: center; }
.pantry-product img { width: 100%; height: 112px; object-fit: contain; }
.pantry-product:first-child img { height: 210px; }
.pantry-product span { margin-top: 12px; font-size: .8rem; line-height: 1.5; }
.pantry-product strong { display: block; color: var(--primary-dark); margin-top: 4px; font-size: .75rem; }
.pantry-intro { padding: 42px 16px; }
.hero .pantry-intro { color: var(--primary-dark); }
.pantry-intro > span { font-size: .7rem; letter-spacing: .16em; }
.pantry-intro h2 { font-size: 2rem; line-height: 1.3; margin: 16px 0 24px; }
.pantry-intro a { color: inherit; text-decoration: underline; }
.home-search-wrap { padding-top: 28px; padding-bottom: 28px; }
.home-search { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; }
.home-search label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--primary-dark); }
.home-search > div { display: flex; gap: 12px; }
.home-search input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.storefront-home .section { padding: 48px 0; }
.storefront-home .features-bar { padding: 24px 0; }
.collection-section:nth-child(odd) { background: #f7f6f0; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.collection-heading .section-title { margin-bottom: 0; }
.collection-link { font-size: .85rem; flex-shrink: 0; }
#shop-categories { scroll-margin-top: 100px; }
.pantry-product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pantry-product-copy { min-width: 0; }
.product-image img { padding: 14px; }
.product-name { line-height: 1.45; }
.product-category { align-self: flex-start; }
#featured-section .mt-4 { margin-top: 32px; }
@media (min-width: 769px) {
  .products-grid .product-footer { padding: 0 16px 16px; }
  .shop-controls { padding: 12px 0; }
  .storefront-home .features-grid { grid-template-columns: repeat(3, 1fr); }
  .storefront-home .why-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
}
.stock-filter, .sort-control { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text); }
.stock-filter input { accent-color: var(--primary); width: 16px; height: 16px; }
.sort-control select { padding: 9px; max-width: 190px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.home-search input:focus-visible, .sort-control select:focus-visible, .stock-filter input:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
@media (max-width: 900px) {
  .storefront-home .hero .container { gap: 24px; }
  .pantry-display { padding: 14px; }
  .pantry-product:first-child img { height: 160px; }
}
@media (max-width: 768px) {
  .delivery-strip { font-size: .7rem; }
  .delivery-strip .container { gap: 4px; padding: 8px 14px; }
  .storefront-home .hero { padding: 24px 0; }
  .storefront-home .hero .container { grid-template-columns: 1fr; gap: 18px; }
  .storefront-home .hero h1 { font-size: 1.7rem; }
  .storefront-home .hero-badge { font-size: .65rem; margin-bottom: 12px; }
  .storefront-home .hero-stats { display: none; }
  .hero-category-link { font-size: .75rem; }
  .pantry-display { border-radius: 14px; }
  .pantry-display.has-products { grid-template-columns: 1fr; gap: 8px; }
  .pantry-product { padding: 8px; border-radius: 10px; flex-direction: row; align-items: center; gap: 12px; }
  .pantry-product:first-child { grid-row: auto; justify-content: start; }
  .pantry-product img, .pantry-product:first-child img { width: 60px; height: 60px; flex-shrink: 0; }
  .pantry-product span { font-size: .8rem; margin-top: 0; }
  .pantry-product strong { font-size: .75rem; }
  .pantry-intro { padding: 14px; }
  .pantry-intro h2 { font-size: 1.3rem; margin: 10px 0; }
  .home-search-wrap { display: none; } /* The existing mobile header includes search. */
  .storefront-home .section { padding: 24px 0 12px; }
  .storefront-home .features-bar { padding: 14px 0 0; }
  .collection-heading { align-items: start; gap: 8px; margin-bottom: 12px; }
  .collection-link { font-size: .7rem; flex-shrink: 1; text-align: right; }
  #shop-categories { scroll-margin-top: 145px; }
  /* mobile.css hides descriptions on phones; show them only to explain a search match. */
  #products-grid.is-searching .product-desc { display: -webkit-box; font-size: .72rem; margin-top: 6px; }
  .shop-controls .container { gap: 12px; }
  .sort-label { display: none; }
  .sort-control select { max-width: 150px; padding: 6px 8px; }
  .shop-controls .container > div:last-child { gap: 10px; }
}
