/* Stores directory layout — last layer, scoped to صفحة المتاجر فقط */
html body.stores-dir-page:not(.admin-view):not(.merchant-view) {
  --ls-burgundy: #66001f;
  --ls-olive: #59633A;
  --ls-beige: #E8D8BE;
  --ls-ivory: #FBF7F0;
  --ls-ink: #31352C;
  --ls-white: #FFFDF9;
  --st-max: 1280px;
  --st-gutter: 32px;
  background: #FBF7F0;
  overflow-x: clip;
  scroll-padding-top: 72px;
}

html body.stores-dir-page:not(.admin-view):not(.merchant-view) .libseh-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 90 !important;
  min-height: 56px;
  max-height: none;
  background: rgba(251, 247, 240, .97) !important;
  border-bottom: 1px solid rgba(232, 216, 190, .75);
  backdrop-filter: blur(10px);
}
html body.stores-dir-page.is-scrolled:not(.admin-view):not(.merchant-view) .libseh-header {
  box-shadow: 0 1px 0 rgba(120, 29, 58, .06);
}

html body.stores-dir-page .stores-page {
  overflow-x: clip;
  direction: inherit;
}

html body.stores-dir-page .stores-hero-inner,
html body.stores-dir-page .stores-shell {
  width: min(100% - var(--st-gutter), var(--st-max)) !important;
  max-width: var(--st-max) !important;
  margin-inline: auto !important;
  float: none !important;
}

/* Hero */
html body.stores-dir-page .stores-hero {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  background:
    linear-gradient(180deg, rgba(232, 216, 190, .42) 0%, rgba(251, 247, 240, 1) 100%);
  border-bottom: 1px solid rgba(232, 216, 190, .7);
}
html body.stores-dir-page .stores-hero-inner {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding-block: 20px 16px !important;
}
html body.stores-dir-page .stores-hero h1 {
  margin: 0;
  color: #66001f;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  font-weight: 800;
}
html body.stores-dir-page .stores-hero p {
  margin: 0;
  max-width: 34rem;
  color: #31352C;
  font-size: .95rem;
  line-height: 1.55;
}
html body.stores-dir-page .stores-count {
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(120, 29, 58, .08);
  color: #66001f !important;
  font-size: 13px !important;
  font-weight: 700;
}
html body.stores-dir-page .stores-count.is-busy { visibility: hidden; }

@media (min-width: 1024px) {
  html body.stores-dir-page .stores-hero-inner {
    min-height: 0;
    max-height: 260px;
    padding-block: 24px 16px !important;
    align-content: center;
  }
}

html body.stores-dir-page .stores-shell {
  padding-block: 8px 32px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Categories — large plump circles */
html body.stores-dir-page .categories-scroll,
html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category-circles,
html body.home-page:not(.admin-view):not(.merchant-view) .categories-grid.main-category-circles {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 8px 4px 14px !important;
  margin: 0 !important;
  max-width: none !important;
  grid-template-columns: none !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
html body.stores-dir-page .categories-scroll::-webkit-scrollbar,
html body.home-page .main-category-circles::-webkit-scrollbar { display: none; }
html body.stores-dir-page .category-item,
html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category {
  flex: 0 0 auto !important;
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 148px !important;
  max-width: 200px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  color: #31352C;
  cursor: pointer;
  text-decoration: none !important;
}
html body.stores-dir-page .category-item-media,
html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category span,
html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category .category-item-media {
  width: 148px !important;
  height: 148px !important;
  min-width: 148px !important;
  min-height: 148px !important;
  max-width: 148px !important;
  max-height: 148px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
html body.stores-dir-page .category-item-media img,
html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category img {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  display: block !important;
  background: transparent !important;
}
html body.stores-dir-page .category-item:hover .category-item-media,
html body.home-page .main-category:hover span {
  border: 0 !important;
  background: transparent !important;
}
html body.stores-dir-page .category-item.active .category-item-media {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.stores-dir-page .category-item strong,
html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category strong {
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center;
  line-height: 1.35;
  color: #59633A !important;
  white-space: nowrap;
}
@media (min-width: 768px) {
  html body.stores-dir-page .categories-scroll,
  html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category-circles {
    justify-content: center !important;
    gap: 28px !important;
  }
  html body.stores-dir-page .category-item,
  html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category {
    min-width: 176px !important;
    max-width: 220px !important;
  }
  html body.stores-dir-page .category-item-media,
  html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category span,
  html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category .category-item-media {
    width: 176px !important;
    height: 176px !important;
    min-width: 176px !important;
    min-height: 176px !important;
    max-width: 176px !important;
    max-height: 176px !important;
  }
}
@media (min-width: 1100px) {
  html body.stores-dir-page .category-item-media,
  html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category span,
  html body.home-page:not(.admin-view):not(.merchant-view) .home-categories .main-category .category-item-media {
    width: 196px !important;
    height: 196px !important;
    min-width: 196px !important;
    min-height: 196px !important;
    max-width: 196px !important;
    max-height: 196px !important;
  }
}

/* Toolbar */
html body.stores-dir-page .stores-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid #E8D8BE;
  border-radius: 18px;
  background: #f6f1e8;
  box-sizing: border-box;
}
html body.stores-dir-page .stores-toolbar-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
html body.stores-dir-page .stores-search {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  min-height: 46px;
  width: auto;
  grid-column: auto !important;
  padding: 0 14px;
  border: 1px solid #E8D8BE;
  border-radius: 14px;
  background: #FBF7F0;
}
html body.stores-dir-page .stores-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #66001f;
}
html body.stores-dir-page .stores-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 44px !important;
  font-size: 15px !important;
  color: #31352C;
}
html body.stores-dir-page .stores-search:focus-within {
  border-color: #66001f;
  background: #f6f1e8;
}
html body.stores-dir-page .stores-search-clear {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #66001f;
  cursor: pointer;
}
html body.stores-dir-page .store-filter-toggle,
html body.stores-dir-page .stores-sort-toggle {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #E8D8BE !important;
  border-radius: 14px !important;
  background: #FBF7F0 !important;
  color: #31352C !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
}
html body.stores-dir-page .store-filter-toggle svg,
html body.stores-dir-page .stores-sort-toggle svg {
  width: 16px;
  height: 16px;
}
html body.stores-dir-page .store-filter-toggle:hover,
html body.stores-dir-page .stores-sort-toggle:hover,
html body.stores-dir-page .stores-view-toggle .round-icon:hover,
html body.stores-dir-page .stores-view-toggle .round-icon.active,
html body.stores-dir-page .stores-view-toggle .round-icon:focus-visible {
  border-color: #66001f !important;
  color: #66001f !important;
  background: #f6f1e8 !important;
  outline: none;
}
html body.stores-dir-page .stores-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid #E8D8BE;
  border-radius: 14px;
  background: #FBF7F0;
  margin-inline-start: 0;
}
html body.stores-dir-page .stores-view-toggle .round-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #31352C;
}
html body.stores-dir-page .stores-view-toggle .round-icon.active {
  background: #f6f1e8 !important;
  color: #66001f !important;
  box-shadow: 0 1px 0 rgba(120, 29, 58, .08);
}
html body.stores-dir-page .stores-sort { position: relative; flex: 0 0 auto; }
html body.stores-dir-page .stores-sort-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 6px);
  z-index: 30;
  min-width: 200px;
  max-width: min(92vw, 260px);
  padding: 6px;
  border: 1px solid #E8D8BE;
  border-radius: 12px;
  background: #f6f1e8;
}
html body.stores-dir-page .stores-sort-menu button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 650;
  color: #31352C;
}
html body.stores-dir-page .stores-sort-menu button.active,
html body.stores-dir-page .stores-sort-menu button:hover {
  background: rgba(120, 29, 58, .07);
  color: #66001f;
}

@media (max-width: 767px) {
  html body.stores-dir-page .stores-search {
    flex: 1 1 100%;
  }
  html body.stores-dir-page .stores-toolbar-row {
    width: 100%;
  }
  html body.stores-dir-page .store-filter-toggle,
  html body.stores-dir-page .stores-sort {
    flex: 1 1 auto;
  }
  html body.stores-dir-page .store-filter-toggle,
  html body.stores-dir-page .stores-sort-toggle {
    width: 100%;
  }
}

/* Chips + count */
html body.stores-dir-page .stores-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
html body.stores-dir-page .stores-active-chips:empty { display: none; }
html body.stores-dir-page .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #E8D8BE;
  background: #f6f1e8;
  color: #31352C;
  font-size: 13px;
  font-weight: 700;
}
html body.stores-dir-page .filter-chip button {
  border: 0;
  background: transparent;
  color: #66001f;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
html body.stores-dir-page .stores-results-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #59633A;
}
html body.stores-dir-page .store-directory.stores-grid,
html body.stores-dir-page .stores-grid {
  margin-block-start: 4px !important;
}

/* Filters sheet */
html body.stores-dir-page .store-filter-panel[hidden] {
  display: none !important;
}
html body.stores-dir-page .store-filter-panel.open {
  display: flex !important;
  flex-direction: column;
}
  inset-inline: 0 !important;
  inset-block-end: 0 !important;
  inset-block-start: auto !important;
  z-index: 96 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: min(82dvh, 640px) !important;
  overflow: auto !important;
  transform: translateY(110%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: #f6f1e8 !important;
  border-radius: 20px 20px 0 0 !important;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -8px 24px rgba(49, 53, 44, .1) !important;
}
html body.stores-dir-page .store-filter-panel.open,
html body.store-filters-open.stores-dir-page .store-filter-panel {
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html body.stores-dir-page .store-filter-scrim { display: none !important; }
html body.stores-dir-page .store-filter-scrim.open {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 95 !important;
  background: rgba(49, 53, 44, .4) !important;
}
html body.stores-dir-page .store-filter-sheet-head,
html body.stores-dir-page .store-filter-actions,
html body.stores-dir-page .store-filter-toggle {
  display: flex !important;
}
html body.stores-dir-page .store-filter-sheet-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
html body.stores-dir-page .filter-group-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #59633A;
}
html body.stores-dir-page .pill-filters,
html body.stores-dir-page .filter-cats {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
html body.stores-dir-page .store-filter-panel .pill-filters {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  overflow: visible !important;
}
html body.stores-dir-page .store-filter-panel .pill-filters button {
  white-space: normal !important;
}
html body.stores-dir-page .pill-filters button,
html body.stores-dir-page .filter-check,
html body.stores-dir-page .filter-cats button {
  appearance: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100% !important;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #E8D8BE !important;
  border-radius: 12px !important;
  background: #f6f1e8 !important;
  color: #31352C !important;
  font-weight: 700;
  box-shadow: none !important;
}
html body.stores-dir-page .pill-filters button.active,
html body.stores-dir-page .filter-check.active,
html body.stores-dir-page .filter-cats button.active {
  border-color: #66001f !important;
  background: rgba(120, 29, 58, .06) !important;
  color: #66001f !important;
}
html body.stores-dir-page .stores-town-filter {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
}
html body.stores-dir-page .stores-town-filter input,
html body.stores-dir-page .stores-town-filter select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
  border: 1px solid #E8D8BE;
  border-radius: 12px;
  background: #FBF7F0;
  padding-inline: 12px;
}
html body.stores-dir-page .town-suggest {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #E8D8BE;
  border-radius: 12px;
  background: #f6f1e8;
}
html body.stores-dir-page .town-suggest button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0 12px;
}
html body.stores-dir-page .store-filter-actions {
  gap: 8px;
  margin-top: 14px;
  position: sticky;
  bottom: 0;
  background: #f6f1e8;
  padding-top: 8px;
}
html body.stores-dir-page .filter-preview {
  font-size: 13px;
  font-weight: 700;
  color: #59633A;
}
@media (min-width: 1024px) {
  html body.stores-dir-page .store-filter-panel {
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    inset-block: 0 !important;
    width: min(380px, 92vw) !important;
    max-height: none !important;
    border-radius: 16px 0 0 16px !important;
    transform: translateX(110%) !important;
  }
  html[dir="ltr"] body.stores-dir-page .store-filter-panel {
    border-radius: 0 16px 16px 0 !important;
  }
  html body.stores-dir-page .store-filter-panel.open {
    transform: none !important;
  }
}

/* Grid — السبب السابق: أعمدة 1fr الفارغة في RTL تضع البطاقة يمينًا */
html body.stores-dir-page .store-directory.stores-grid,
html body.stores-dir-page .stores-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-content: start !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  float: none !important;
  overflow: visible !important;
}
html body.stores-dir-page .stores-grid .ls-store-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f6f1e8 !important;
  border: 1px solid rgba(232, 216, 190, .95) !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 10px rgba(49, 53, 44, .04) !important;
  grid-template-columns: none !important;
}
html body.stores-dir-page .stores-grid .ls-store-card[hidden],
html body.stores-dir-page .stores-grid .ls-store-card.is-paged-out {
  display: none !important;
}
html body.stores-dir-page .ls-store-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
  padding: 18px 12px 8px;
  background: transparent;
}
html body.stores-dir-page .ls-store-cover {
  display: block !important;
  width: 168px !important;
  height: 168px !important;
  min-width: 168px !important;
  min-height: 168px !important;
  max-width: 168px !important;
  max-height: 168px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  border: 3px solid #E8D8BE !important;
  background: #FBF7F0;
}
html body.stores-dir-page .ls-store-cover img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}
html body.stores-dir-page .ls-store-logo { display: none !important; }
html body.stores-dir-page .ls-store-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 16px !important;
  flex: 1;
  min-width: 0;
  text-align: center !important;
}
html body.stores-dir-page .ls-store-body h2 {
  justify-content: center;
}
html body.stores-dir-page .ls-store-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html body.stores-dir-page .ls-store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
html body.stores-dir-page .ls-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #FBF7F0;
  border: 1px solid #E8D8BE;
}

@media (min-width: 768px) and (max-width: 1199px) {
  html body.stores-dir-page .store-directory.stores-grid:not(.list-view),
  html body.stores-dir-page .stores-grid:not(.list-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1200px) {
  html body.stores-dir-page .store-directory.stores-grid:not(.list-view),
  html body.stores-dir-page .stores-grid:not(.list-view) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}
html body.stores-dir-page .stores-grid.is-sparse:not(.list-view) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 360px)) !important;
  justify-content: start !important;
}

/* List */
html body.stores-dir-page .stores-grid.list-view {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 860px;
}
@media (min-width: 768px) {
  html body.stores-dir-page .stores-grid.list-view .ls-store-card {
    display: grid !important;
    grid-template-columns: 196px minmax(0, 1fr) !important;
    align-items: center;
  }
  html body.stores-dir-page .stores-grid.list-view .ls-store-cover {
    width: 148px !important;
    height: 148px !important;
    min-width: 148px !important;
    min-height: 148px !important;
    max-width: 148px !important;
    max-height: 148px !important;
    aspect-ratio: 1 / 1 !important;
  }
  html body.stores-dir-page .stores-grid.list-view .ls-store-body {
    align-items: flex-start;
    text-align: start !important;
  }
}

html body.stores-dir-page .stores-skel,
html body.stores-dir-page .stores-skel[hidden],
html body.stores-dir-page.is-ready .stores-skel,
html body.stores-dir-page .stores-page.is-ready .stores-skel {
  display: none !important;
}
html body.stores-dir-page .empty-state.hidden,
html body.stores-dir-page .empty-state[hidden] {
  display: none !important;
}
html body.stores-dir-page .skel-card {
  height: 300px;
  border-radius: 18px;
  background: linear-gradient(90deg, #efe6d8, #f7f1e6, #efe6d8);
  background-size: 200% 100%;
  animation: stores-skel 1.1s linear infinite;
}
@keyframes stores-skel { to { background-position: -200% 0; } }
html body.stores-dir-page .empty-state {
  text-align: center;
  padding: 28px 12px;
}
html body.stores-dir-page .empty-state h2 { color: #66001f; font-size: 1.2rem; }

@media (min-width: 768px) {
  html body.stores-dir-page .stores-skel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  html body.stores-dir-page .stores-skel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Search overlay — نافذة وليس صفحة فارغة */
html body:not(.admin-view):not(.merchant-view) .search-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: none;
  place-items: start center;
  padding: 16px;
  background: rgba(49, 53, 44, .38);
  overflow: auto;
}
html body:not(.admin-view):not(.merchant-view) .search-overlay.open {
  display: grid !important;
}
html body:not(.admin-view):not(.merchant-view) .search-overlay .search-panel {
  width: min(100%, 720px);
  margin-block-start: 8vh;
  max-height: min(82dvh, 720px);
  overflow: auto;
  background: #FBF7F0;
  border: 1px solid #E8D8BE;
  border-radius: 18px;
  padding: 18px 16px 16px;
  position: relative;
  height: auto;
}
html body:not(.admin-view):not(.merchant-view) .search-overlay .overlay-close {
  display: none;
}
html body:not(.admin-view):not(.merchant-view) .search-overlay [hidden] {
  display: none !important;
}
html body:not(.admin-view):not(.merchant-view) .overlay-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 8px 4px 12px;
  border: 1px solid #E8D8BE;
  border-radius: 14px;
  background: #f6f1e8;
  margin-bottom: 12px;
}
html body:not(.admin-view):not(.merchant-view) .overlay-search-form .search-dismiss,
html body:not(.admin-view):not(.merchant-view) .overlay-search-form .search-clear {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66001f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html body:not(.admin-view):not(.merchant-view) .overlay-search-form .ls-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #66001f;
}
html body:not(.admin-view):not(.merchant-view) .overlay-search-form input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  min-height: 44px !important;
}
html body:not(.admin-view):not(.merchant-view) .search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
html body:not(.admin-view):not(.merchant-view) .search-suggestions strong {
  width: 100%;
  font-size: 13px;
  color: #59633A;
}
html body:not(.admin-view):not(.merchant-view) .search-suggestions button,
html body:not(.admin-view):not(.merchant-view) .search-results a,
html body:not(.admin-view):not(.merchant-view) .search-results button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #E8D8BE;
  border-radius: 999px;
  background: #f6f1e8;
  color: #31352C;
  text-decoration: none;
  font-weight: 700;
}
html body:not(.admin-view):not(.merchant-view) .search-results {
  display: grid;
  gap: 14px;
}
html body:not(.admin-view):not(.merchant-view) .search-results section { display: grid; gap: 6px; }
html body:not(.admin-view):not(.merchant-view) .search-results h3 {
  margin: 0;
  font-size: 13px;
  color: #66001f;
}
html body:not(.admin-view):not(.merchant-view) .search-results section a {
  border-radius: 12px;
  width: 100%;
  justify-content: flex-start;
}
html body:not(.admin-view):not(.merchant-view) .search-results img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}
html body:not(.admin-view):not(.merchant-view) .search-results mark {
  background: rgba(232, 216, 190, .9);
  color: inherit;
}
html body:not(.admin-view):not(.merchant-view) .search-empty {
  text-align: center;
  padding: 20px 8px;
}
html body:not(.admin-view):not(.merchant-view) .search-empty h3 {
  margin: 0 0 6px;
  color: #66001f;
}
html body:not(.admin-view):not(.merchant-view) .search-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 640px) {
  html body:not(.admin-view):not(.merchant-view) .search-overlay.open {
    place-items: end center;
    padding: 0;
  }
  html body:not(.admin-view):not(.merchant-view) .search-overlay .search-panel {
    width: 100%;
    margin: 0;
    max-height: 92dvh;
    min-height: 70dvh;
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 375px) {
  html body.stores-dir-page .stores-hero-inner,
  html body.stores-dir-page .stores-shell {
    width: min(100% - 24px, var(--st-max)) !important;
  }
}

/* Home featured store cards — same circular card as /stores */
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #f6f1e8 !important;
  border: 1px solid rgba(232, 216, 190, .95) !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 10px rgba(49, 53, 44, .04) !important;
  padding-bottom: 0 !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-media {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 18px 12px 8px !important;
  background: transparent !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-cover,
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-cover {
  display: block !important;
  width: 168px !important;
  height: 168px !important;
  min-width: 168px !important;
  min-height: 168px !important;
  max-width: 168px !important;
  max-height: 168px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  border: 3px solid #E8D8BE !important;
  background: #FBF7F0 !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-cover img,
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-cover img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: scale(1.08);
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-logo,
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-logo {
  display: none !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-body,
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .featured-store-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px 16px !important;
  text-align: center !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-body h2 {
  justify-content: center !important;
  text-align: center !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-tag {
  display: inline-flex !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: #FBF7F0 !important;
  border: 1px solid #E8D8BE !important;
  color: #31352C !important;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-actions {
  width: 100%;
  justify-content: center;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-chips {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  inset-inline-end: 56px;
  z-index: 3;
}
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-fav,
html body.home-page:not(.admin-view):not(.merchant-view) #featured-stores .ls-store-card .store-heart {
  position: absolute !important;
  inset-block-start: 10px !important;
  inset-inline-end: 10px !important;
  z-index: 4;
}
