/* The Counta shops directory (/shops/). Uses the site tokens from site.css, so light and dark
   both come from one place. */
.shops-top { padding-bottom: 0; }
.shops-search { display: grid; gap: 12px; margin-top: 28px; padding: 16px; background: var(--card); border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); }
[data-theme="dark"] .shops-search { border-color: var(--line); }
@media (min-width: 820px) { .shops-search { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; } }
.shops-field { display: grid; gap: 6px; min-width: 0; }
.shops-field label { font-weight: 800; font-size: .95rem; }
.shops-field input, .shops-field select { font: inherit; color: var(--ink); background: var(--page); border: 2px solid var(--line);
  border-radius: 14px; padding: 10px 14px; height: 48px; width: 100%; }
.shops-field input::placeholder { color: var(--ink-soft); opacity: 1; }
.shops-field input:focus-visible, .shops-field select:focus-visible { border-color: var(--ink); }
.shops-go { min-height: 48px; }

.shops-results { padding-bottom: 88px; }
.shops-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 8px 0 20px; }
.shops-count { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.shops-clear { font-weight: 700; color: var(--paprika-text); }

.shops-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); }
[data-theme="dark"] .shop-card { border-color: var(--line); }
.shop-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--green); overflow: hidden; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shop-cover:hover img { transform: scale(1.03); }
.shop-status { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 800; background: #fff8e8; color: #0e3b2e; }
.shop-status i { width: 8px; height: 8px; border-radius: 99px; background: #1c7c4a; }
.shop-status.is-closed { background: #2b2521; color: #fff3d6; }
.shop-status.is-closed i { background: #c9bdb4; }
.shop-body { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 36px 18px 18px; }
.shop-logo { position: absolute; top: -30px; left: 16px; display: grid; place-items: center; width: 60px; height: 60px; overflow: hidden;
  border-radius: 16px; background: #fff; border: 3px solid var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-logo.is-letter { background: var(--btn); color: var(--btn-ink); font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.shop-name { font-size: 1.35rem; line-height: 1.15; }
.shop-name a { text-decoration: none; }
.shop-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-meta { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.shop-tagline { color: var(--ink-soft); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-ways { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.shop-ways li { padding: 2px 10px; border-radius: 999px; border: 2px solid var(--line); font-size: .85rem; font-weight: 700; }
.shop-go { align-self: flex-start; margin-top: auto; }
.shop-ways + .shop-go { margin-top: 12px; }

.shops-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; font-weight: 700; }
.shops-empty { padding: 40px 24px; text-align: center; background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); }
.shops-empty h3 { font-size: 1.6rem; margin-bottom: 8px; }
.shops-empty p { color: var(--ink-soft); }
.shops-empty .cta-row { justify-content: center; margin-top: 18px; }
.shops-owner { display: grid; gap: 16px; align-items: center; margin-top: 48px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg);
  background: var(--green); color: var(--on-green); border: 3px solid var(--mango); }
@media (min-width: 900px) { .shops-owner { grid-template-columns: 1fr auto; } }
.shops-owner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.shops-owner p { color: var(--on-green-soft); max-width: 36em; }
.shops-owner .cta-row { margin-top: 0; }
