@import url('/styles.css');

body { background: #fff; }
.producer-header { background: rgba(255,255,255,.94); }
.directory-hero { padding: 84px 0 42px; background: white; text-align: center; }
.directory-heading { max-width: 900px; }
.directory-heading h1 { max-width: none; font-size: clamp(2.8rem, 5.7vw, 5.4rem); }
.directory-heading > p:last-child { margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.directory-section { padding: 16px 0 110px; background: white; }
.directory-tools { display: grid; justify-items: center; }
.producer-search { position: relative; display: block; width: min(100%, 720px); }
.producer-search svg { position: absolute; top: 50%; left: 20px; width: 21px; fill: none; stroke: var(--green-900); stroke-linecap: round; stroke-width: 2; transform: translateY(-50%); }
.producer-search input { width: 100%; min-height: 58px; padding: 12px 20px 12px 54px; border: 1px solid rgba(13,48,20,.24); border-radius: 12px; background: white; color: var(--ink); outline: none; box-shadow: 0 8px 24px rgba(13,48,20,.05); }
.producer-search input:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(67,141,66,.14); }
.producer-search input::placeholder { color: #7b857e; }
.result-count { margin-top: 22px; color: var(--muted); font-weight: 650; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.filter-row button { min-width: 54px; padding: 9px 17px; border: 1px solid rgba(13,48,20,.2); border-radius: 999px; background: white; color: var(--green-950); cursor: pointer; font-weight: 800; transition: background .15s ease, color .15s ease, transform .15s ease; }
.filter-row button:hover { transform: translateY(-1px); background: var(--green-100); }
.filter-row button.is-active { border-color: var(--green-900); background: var(--green-900); color: white; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; margin-top: 52px; }
.directory-card { overflow: hidden; border: 1px solid rgba(13,48,20,.11); border-radius: 16px; background: white; color: inherit; text-decoration: none; box-shadow: 0 8px 28px rgba(13,48,20,.07); transition: transform .2s ease, box-shadow .2s ease; }
.directory-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,48,20,.13); }
.directory-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.card-media { display: grid; aspect-ratio: 1.52; place-items: center; overflow: hidden; background: linear-gradient(135deg, #dfeee1, #f7efce); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.directory-card:hover .card-media img { transform: scale(1.035); }
.card-initials { color: var(--green-900); font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.06em; }
.card-copy { min-height: 142px; padding: 22px 22px 20px; }
.card-copy h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.12; }
.card-copy p { margin-top: 10px; color: var(--muted); }
.shop-label { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--green-900); font-size: .83rem; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.empty-state { margin: 58px auto 0; padding: 50px 20px; border-radius: 18px; background: var(--cream); text-align: center; }
.empty-state h2 { font-size: 2rem; }
.empty-state p { margin-top: 10px; color: var(--muted); }

@media (max-width: 900px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .directory-hero { padding: 56px 0 28px; }
  .directory-section { padding-bottom: 78px; }
  .filter-row { justify-content: flex-start; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 0 2px 8px; scrollbar-width: thin; }
  .filter-row button { flex: 0 0 auto; }
  .directory-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .card-copy { min-height: 0; }
}
