/* Counter: practical, list first, for shops people already know. The open sign, the address and the phone come
   first, the shelves and the products are lists of rows, and the storefront photo sits to the side on a wide screen.
   Arranges and dresses only; everything it uses is in styles.css. */

[data-layout="counter"] .hero { padding-block: 20px 12px; }
[data-layout="counter"] .hero h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); }
/* On a phone the storefront photo would push the open sign down: it waits for a wider screen. */
[data-layout="counter"] .hero-photo { display: none; }
@media (min-width: 760px) {
  [data-layout="counter"] .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
  [data-layout="counter"] .hero-photo { display: grid; aspect-ratio: 4 / 3; }
}

/* Shelves: one row each, a small picture at the left when there is one. */
[data-layout="counter"] .shelves { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
[data-layout="counter"] .shelf { flex-direction: row; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; padding: 12px 0; }
[data-layout="counter"] .shelf .ph { flex: none; width: 64px; height: 64px; aspect-ratio: 1; border-radius: 10px; padding: 0; }
[data-layout="counter"] .shelf .ph > span { display: none; }
[data-layout="counter"] .shelf .txt { padding: 0; flex: 1; }
[data-layout="counter"] .shelf h3 { font-size: 1.05rem; margin-bottom: 2px; }
[data-layout="counter"] .shelf .more { margin-top: 4px; }
@media (min-width: 760px) {
  [data-layout="counter"] .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 0; }
}

/* Products: rows of name, price and Add. */
[data-layout="counter"] .items { grid-template-columns: minmax(0, 1fr); gap: 0; }
[data-layout="counter"] .item { flex-direction: row; align-items: flex-start; gap: 12px; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; padding: 12px 0; }
[data-layout="counter"] .item .ph { flex: none; width: 64px; height: 64px; aspect-ratio: 1; border-radius: 10px; padding: 0; }
[data-layout="counter"] .item .ph > span { display: none; }
[data-layout="counter"] .item .txt { padding: 0; gap: 4px; }
[data-layout="counter"] .item.plain .row { min-height: 0; }
[data-layout="counter"] .ghead h3 { font-family: var(--text); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--dim); font-weight: 700; }
@media (min-width: 760px) {
  [data-layout="counter"] .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
