.ivory-stores__layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.page-stores .ivory-stores__sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-color: rgba(202, 185, 154, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.stores-sidebar__label {
  color: var(--ivory-text, #1a1c1c);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stores-sidebar__search-input,
.stores-sidebar__select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(202, 185, 154, 0.36);
  border-radius: var(--ivory-radius, 4px);
  background: rgba(255, 255, 255, 0.78);
}

.page-stores .stores-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.page-stores .ivory-stores__card {
  overflow: hidden;
  border-color: rgba(202, 185, 154, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.page-stores .stores-card.is-hidden {
  display: none;
}

.page-stores .stores-empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 6vw, 84px) 20px;
  color: var(--ivory-muted, #4d4635);
  font-family: var(--font-family-heading, "Playfair Display", serif);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.35;
  text-align: center;
}

.ivory-stores__map {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(202, 185, 154, 0.22);
  overflow: hidden;
}

.ivory-stores__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ivory-stores__card-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.ivory-stores__card-body h2 {
  margin: 0;
  color: var(--ivory-text, #1a1c1c);
  font-family: var(--font-family-heading, "Playfair Display", serif);
  font-weight: 500;
}

.ivory-stores__card-body p,
.ivory-stores__card-body a:not(.ivory-button) {
  margin: 0;
  color: var(--ivory-muted, #4d4635);
  text-decoration: none;
}

.stores-sidebar__meta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stores-sidebar__clear {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(202, 185, 154, 0.32);
  border-radius: var(--ivory-radius, 4px);
  background: #fff;
  color: var(--ivory-text, #1a1c1c);
}

.stores-sidebar__clear:hover,
.stores-sidebar__clear:focus-visible {
  border-color: var(--ivory-gold, #735c00);
  color: var(--ivory-gold, #735c00);
}

.ivory-stores__content {
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .ivory-stores__layout {
    grid-template-columns: 1fr;
  }

  .ivory-stores__sidebar {
    position: static;
  }

  .page-stores .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-stores .ivory-stores__sidebar {
    position: static;
    top: auto;
  }

  .page-stores .stores-grid {
    grid-auto-flow: column;
    grid-auto-columns: 80vw;
    grid-template-columns: unset;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .page-stores .stores-grid > * {
    min-width: 0;
    scroll-snap-align: start;
  }
}
