/* Home (decided 2026-11-02): a store's start page. Its heading with Shop all
   products, the catalog's categories, the cart while it holds something, the
   orders in progress beside the store's vendors, then rows of the catalog's cards:
   Order again, Back in stock and On sale. */
.home-page { width: 100%; max-width: 1184px; margin: 28px auto 56px; color: #252525; }
.home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 0 0 18px; }
.home-heading > div { min-width: 0; }
.home-heading h1 { margin: 0; color: #171717; font-size: clamp(26px, 3vw, 32px); font-weight: 650; letter-spacing: -.8px; line-height: 1.2; overflow-wrap: anywhere; }
.home-heading p { margin: 6px 0 0; color: #6b6b6b; font-size: 14px; line-height: 22px; }
.home-shop { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 10px 20px; border-radius: 8px; background: #1c1c1c; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.home-shop:hover { background: #373737; }
/* The categories, as the Shop menu lists them, each with its listings. */
.home-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.home-categories a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px; border: 1px solid #dcdcdc; border-radius: 999px; background: #fff; color: #222; font-size: 13px; font-weight: 550; text-decoration: none; }
.home-categories a span { color: #7a7a7a; font-weight: 500; font-variant-numeric: tabular-nums; }
.home-categories a:hover { border-color: #9d9d9d; }
.home-cart { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid #d5dfcb; border-radius: 10px; background: #f4f7f0; color: #26331f; font-size: 14px; line-height: 22px; }
.home-cart p { margin: 0; overflow-wrap: anywhere; }
.home-cart-link { flex: 0 0 auto; color: #1c1c1c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Orders in progress beside the vendors. */
.home-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; gap: 16px; }
.home-panel { min-width: 0; padding: 18px 20px; border: 1px solid #e2e2e2; border-radius: 12px; background: #fff; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-section-heading > div { min-width: 0; }
.home-section-heading h2 { margin: 0; color: #1f1f1f; font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 24px; }
.home-section-heading p { margin: 2px 0 0; color: #6b6b6b; font-size: 13px; line-height: 20px; }
.home-section-link { flex: 0 0 auto; color: #222; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: #bdbdbd; text-underline-offset: 3px; }
.home-section-link:hover { text-decoration-color: currentColor; }
.home-empty { margin: 2px 0 0; color: #6b6b6b; font-size: 14px; line-height: 22px; }
.home-orders { margin: 0; padding: 0; list-style: none; }
.home-order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px 0; border-top: 1px solid #efefef; }
.home-order:first-child { padding-top: 2px; border-top: 0; }
.home-order-main, .home-order-state { display: grid; gap: 1px; min-width: 0; }
.home-order-link { color: #1f1f1f; font-size: 14px; font-weight: 600; line-height: 21px; overflow-wrap: anywhere; }
a.home-order-link { justify-self: start; text-decoration: underline; text-decoration-color: #c9c9c9; text-underline-offset: 3px; }
a.home-order-link:hover { text-decoration-color: currentColor; }
.home-order-vendor, .home-order-when { color: #6b6b6b; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.home-order-status { color: #2a2a2a; font-size: 13px; font-weight: 600; line-height: 20px; }
.home-order-status.is-waiting { color: #87570b; }
.home-order-total { color: #1f1f1f; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.home-more { margin: 8px 0 0; color: #6b6b6b; font-size: 13px; }
.home-vendors { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.home-vendor { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0 -8px; padding: 6px 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.home-vendor:hover { background: #f5f5f5; }
.home-vendor .vendor-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 9px; font-size: 14px; }
.home-vendor-text { display: grid; min-width: 0; }
.home-vendor-text strong { color: #1f1f1f; font-size: 14px; font-weight: 600; line-height: 20px; overflow-wrap: anywhere; }
.home-vendor-text span { color: #6b6b6b; font-size: 13px; line-height: 20px; }
/* Rows of the catalog's cards. */
.home-section { margin-top: 36px; }
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .home-page { padding: 0 24px; }
  .home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-cards > :nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .home-page { margin: 16px auto 32px; padding: 0 var(--page-gutter); }
  .home-heading { flex-direction: column; align-items: stretch; gap: 14px; }
  .home-shop { min-height: 48px; font-size: 16px; }
  /* The categories scroll sideways in one row. */
  .home-categories { flex-wrap: nowrap; margin: 0 calc(-1 * var(--page-gutter)) 16px; padding: 0 var(--page-gutter) 2px; overflow-x: auto; scrollbar-width: none; }
  .home-categories::-webkit-scrollbar { display: none; }
  .home-categories a { flex: 0 0 auto; min-height: 44px; font-size: 16px; }
  .home-cart { padding: 12px 14px; font-size: 15px; }
  .home-cart-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
  .home-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-panel { padding: 16px; }
  .home-section-link { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; font-size: 16px; }
  .home-order { grid-template-columns: minmax(0, 1fr) auto; }
  .home-order-state { grid-column: 1; }
  .home-order-total { grid-row: 1; grid-column: 2; }
  a.home-order-link { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; font-size: 16px; }
  .home-vendor { min-height: 56px; font-size: 16px; }
  .home-vendor-text strong { font-size: 16px; }
  .home-section { margin-top: 28px; }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
