/* Three visible entrances; navigation is by direct swipe, drag or keyboard. */
.home-highlights { min-width: 0; padding: 16px; background: var(--paper-50); }
.home-highlights[hidden] { display: none; }
.home-highlights-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-highlights-head h2 { font-size: var(--text-base); font-weight: 700; }
.home-highlights-head > span { font-size: var(--text-xs); color: var(--ink-600); }
.home-highlights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-highlights-grid { touch-action: pan-y pinch-zoom; align-items: start; }
.product.highlight-located { outline: 2px solid var(--brand-600); outline-offset: -2px; background: var(--brand-50); }
.product.highlight-located h3::after { content: attr(data-located-label); display: inline-block; margin-left: 8px; color: var(--brand-700); font-size: var(--text-xs); font-weight: 500; }
.home-highlight { display: flex; flex-direction: column; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-900); text-align: left; cursor: pointer; }
.home-highlight-image { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--paper-200); }
.home-highlight-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-highlight-image { user-select: none; -webkit-user-select: none; }
.home-highlight-image img { -webkit-user-drag: none; }
.home-highlight-image[data-position="top"] img { object-position: top; }
.home-highlight-image[data-position="bottom"] img { object-position: bottom; }
.home-highlight-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-600); }
.home-highlight-badge { position: absolute; bottom: 8px; left: 6px; right: 6px; padding: 4px 6px; background: var(--paper-50); color: var(--ink-900); border-radius: 4px; font-size: var(--text-xs); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.home-highlight-caption { display: flex; gap: 4px; align-items: flex-start; width: 100%; padding-top: 8px; }
.home-highlight-caption strong { flex: 1; min-width: 0; font-size: var(--text-sm); line-height: 1.45; overflow-wrap: anywhere; }
.home-highlight:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 4px; }
@media (hover: hover) { .home-highlight:hover .home-highlight-caption { color: var(--brand-700); } }
.menu-layout.variant-b.has-highlights { grid-template-rows: auto auto auto minmax(0, 1fr); }
.menu-layout.variant-b .home-highlights { grid-column: 1 / -1; grid-row: 2; }
.menu-layout.variant-b.has-highlights .menu-toolbar { grid-row: 3; }
.menu-layout.variant-b.has-highlights .category-rail,
.menu-layout.variant-b.has-highlights .menu-results,
.menu-layout.variant-b.has-highlights::before { grid-row: 4; }
@media (min-width: 768px) {
  .menu-layout.variant-b .home-highlights { grid-column: 2; padding: 0; background: transparent; }
  .home-highlights-grid { gap: 16px; }
  .home-highlight-image { aspect-ratio: 4 / 3; }
  .home-highlight-caption strong { font-size: var(--text-base); }
  .menu-layout.variant-b.has-highlights .category-rail { grid-row: 2 / span 3; }
  .menu-layout.variant-b.has-highlights::before { display: none; }
}
@media (min-width: 1200px) { .menu-layout.variant-b.has-highlights .cart-panel { grid-row: 2 / span 3; } }
/* A closed-store notice belongs before the entrances, never in a spare grid cell. */
.menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
.menu-layout.variant-b.has-highlights [data-store-closed]:not([hidden]) { grid-column: 1 / -1; grid-row: 2; margin: 0 0 12px; }
.menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) .home-highlights { grid-row: 3; }
.menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) .menu-toolbar { grid-row: 4; }
.menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) .menu-results,
.menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) .category-rail,
.menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden]))::before { grid-row: 5; }
@media (min-width: 768px) { .menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) .category-rail { grid-row: 3 / span 3; } }
@media (min-width: 1200px) { .menu-layout.variant-b.has-highlights:has([data-store-closed]:not([hidden])) .cart-panel { grid-row: 3 / span 3; } }
