.projectname-stores-directory {
  --pn-surface: #ffffff;
  --pn-border: #e2e8f0;
  --pn-text: #0f172a;
  --pn-muted: #64748b;
  --pn-pill: #f8fafc;
  --pn-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --pn-shadow-hover: 0 16px 36px rgba(15, 23, 42, 0.14);
  --pn-brand: #0891b2;
  --pn-brand-hover: #0e7490;
  overflow-x: clip;
}

.projectname-stores-directory *,
.projectname-stores-directory *::before,
.projectname-stores-directory *::after {
  box-sizing: border-box;
}

.projectname-stores-directory__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 0.75rem 2rem;
}

.projectname-stores-directory__header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.projectname-stores-directory__title {
  margin: 0;
  color: var(--pn-text);
  font-size: clamp(1.85rem, 2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}

.projectname-stores-directory__subtitle {
  margin: 0;
  color: var(--pn-muted);
  font-size: 1rem;
}

.projectname-stores-directory__toolbar {
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  border-radius: 1rem;
  box-shadow: var(--pn-shadow);
  padding: 0.9rem;
}

.projectname-stores-directory__toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(160px, 210px) auto;
  gap: 0.75rem;
  align-items: center;
}

.projectname-stores-directory__field {
  position: relative;
  min-width: 0;
}

.projectname-stores-directory__field-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.projectname-stores-directory__field-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.projectname-stores-directory__field input,
.projectname-stores-directory__field select {
  width: 100%;
  min-width: 0;
  height: 2.9rem;
  border: 1px solid var(--pn-border);
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.2;
}

.projectname-stores-directory__field input {
  padding: 0 0.8rem 0 2.25rem;
}

.projectname-stores-directory__field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 2.1rem 0 2.25rem;
  cursor: pointer;
}

.projectname-stores-directory__field input::placeholder {
  color: #94a3b8;
}

.projectname-stores-directory__field input:focus,
.projectname-stores-directory__field select:focus {
  outline: none;
  border-color: #67e8f9;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.projectname-stores-directory__field-caret {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.projectname-stores-directory__field-caret svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.projectname-stores-directory__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.9rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--pn-brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.projectname-stores-directory__search-btn:hover {
  background: var(--pn-brand-hover);
}

.projectname-stores-directory__search-btn:active {
  transform: translateY(1px);
}

.projectname-stores-directory__search-btn:focus-visible {
  outline: 2px solid #0e7490;
  outline-offset: 2px;
}

.projectname-stores-directory__search-btn-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.projectname-stores-directory__search-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.projectname-stores-directory__pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.projectname-stores-directory__pills-wrap::-webkit-scrollbar {
  display: none;
}

.projectname-stores-directory__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--pn-border);
  background: var(--pn-surface);
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.projectname-stores-directory__pill:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.projectname-stores-directory__pill.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.projectname-stores-directory__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.projectname-stores-directory__count {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.projectname-stores-directory__clear {
  color: var(--pn-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.projectname-stores-directory__clear:hover {
  color: var(--pn-brand-hover);
  text-decoration: underline;
}

.projectname-stores-directory__clear.is-hidden {
  display: none;
}

.projectname-stores-directory__active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: -0.25rem;
}

.projectname-stores-directory__active-filters.is-hidden {
  display: none;
}

.projectname-stores-directory__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--pn-border);
  background: #fff;
  border-radius: 999px;
  min-height: 1.75rem;
  padding: 0.2rem 0.6rem;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}

.projectname-stores-directory__chip:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.projectname-stores-directory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.projectname-store-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--pn-border);
  border-radius: 1.125rem;
  background: var(--pn-surface);
  overflow: hidden;
  box-shadow: var(--pn-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.projectname-store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pn-shadow-hover);
}

.projectname-store-card__media {
  position: relative;
  height: 12.5rem;
  background: #e2e8f0;
}

.projectname-store-card__media.has-gallery {
  overflow: hidden;
}

.projectname-store-card__gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.projectname-store-card__gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 0;
}

.projectname-store-card__gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.projectname-store-card__gallery .projectname-store-card__image {
  width: 100%;
  height: 100%;
}

.projectname-store-card__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.projectname-store-card__gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.projectname-store-card__gallery-nav:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--pn-brand);
}

.projectname-store-card__gallery-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center;
}

.projectname-store-card__gallery-nav--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

.projectname-store-card__gallery-nav--next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
}

.projectname-store-card__gallery-nav--prev {
  left: 0.5rem;
}

.projectname-store-card__gallery-nav--next {
  right: 0.5rem;
}

.projectname-store-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Corner ribbon: sits at top-left of image */
.projectname-store-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.4rem 0.85rem 0.45rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 2;
  border-bottom-right-radius: 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.projectname-store-card__ribbon--open {
  background: #047857;
  color: #fff;
}

.projectname-store-card__ribbon--closed {
  background: #64748b;
  color: #fff;
}

.projectname-store-card__media-corner {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}

.projectname-store-card__category-label {
  display: inline-block;
  max-width: 8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.projectname-store-card__save {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.projectname-store-card__save svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
  pointer-events: none;
  /* Optical centering: heart path often sits low-right in viewBox */
  transform: translate(-0.5px, -0.5px);
}

.projectname-store-card__save:hover {
  background: #fff;
  color: #db2777;
}

.projectname-store-card__save.is-saved {
  background: #db2777;
  color: #fff;
}

.projectname-store-card__fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.projectname-store-card__fallback-watermark {
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  font-weight: 800;
  opacity: 0.3;
  color: rgba(15, 23, 42, 0.24);
  user-select: none;
}

.projectname-store-card__fallback-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
}

.projectname-store-card__media--beauty .projectname-store-card__fallback {
  background: linear-gradient(135deg, #ffe4e6, #fce7f3 52%, #fae8ff);
}

.projectname-store-card__media--fashion .projectname-store-card__fallback {
  background: linear-gradient(135deg, #ede9fe, #e0e7ff 52%, #dbeafe);
}

.projectname-store-card__media--food .projectname-store-card__fallback {
  background: linear-gradient(135deg, #fef3c7, #fde68a 52%, #ffedd5);
}

.projectname-store-card__media--gifts .projectname-store-card__fallback {
  background: linear-gradient(135deg, #dcfce7, #ccfbf1 52%, #cffafe);
}

.projectname-store-card__media--tech .projectname-store-card__fallback {
  background: linear-gradient(135deg, #dbeafe, #cffafe 52%, #e0f2fe);
}

.projectname-store-card__media--default .projectname-store-card__fallback {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9 52%, #cbd5e1);
}

.projectname-store-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
  padding: 1.25rem;
}

.projectname-store-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
}

.projectname-store-card__title {
  color: var(--pn-text);
  text-decoration: none;
}

.projectname-store-card__title:hover {
  text-decoration: underline;
}

.projectname-store-card__address {
  margin: 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.4;
}

.projectname-store-card__meta {
  margin: 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.4;
}

.projectname-store-card__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.5rem;
  color: #0f172a;
  font-size: 0.86rem;
}

.projectname-store-card__star {
  width: 0.9rem;
  height: 0.9rem;
  color: #f59e0b;
}

.projectname-store-card__star svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.projectname-store-card__rating-value {
  font-weight: 700;
}

.projectname-store-card__rating-count {
  color: #64748b;
}

.projectname-store-card__new {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
}

.projectname-store-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.75rem;
  align-content: flex-start;
}

.projectname-store-card__badges.is-empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 1.5rem;
}

.projectname-store-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.projectname-store-card__badge svg {
  width: 0.78rem;
  height: 0.78rem;
  display: block;
  fill: currentColor;
}

.projectname-store-card__badge--open {
  color: #047857;
  background: #ecfdf5;
}

.projectname-store-card__badge--delivery {
  color: #0369a1;
  background: #e0f2fe;
}

.projectname-store-card__badge--pickup {
  color: #6d28d9;
  background: #f3e8ff;
}

.projectname-store-card__badge--shipping {
  color: #0d9488;
  background: #ccfbf1;
}

.projectname-store-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100%;
  border-radius: 0.75rem;
  background: var(--pn-brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.projectname-store-card__cta:hover {
  background: var(--pn-brand-hover);
}

.projectname-store-card__cta:active {
  transform: translateY(1px);
}

.projectname-stores-directory__empty {
  margin: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  padding: 1rem;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.projectname-stores-directory__empty.is-hidden {
  display: none;
}

.projectname-stores-directory .navigation.pagination {
  margin-top: 0.35rem;
}

.projectname-stores-directory .page-numbers {
  border-radius: 999px;
}

@media (max-width: 1200px) {
  .projectname-stores-directory__toolbar-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 180px) auto;
  }

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

@media (max-width: 767px) {
  .projectname-stores-directory__inner {
    gap: 0.9rem;
  }

  .projectname-stores-directory__toolbar-grid {
    grid-template-columns: minmax(0, 1fr) 8.2rem;
    grid-template-areas:
      "location location"
      "search search"
      "sort button";
  }

  .projectname-stores-directory__field--location {
    grid-area: location;
  }

  .projectname-stores-directory__field--search {
    grid-area: search;
  }

  .projectname-stores-directory__field--sort {
    grid-area: sort;
  }

  .projectname-stores-directory__search-btn {
    grid-area: button;
    width: 100%;
    padding-inline: 0.75rem;
  }

  .projectname-stores-directory__grid {
    grid-template-columns: 1fr;
  }

  .projectname-stores-directory__meta {
    align-items: flex-start;
  }
}
