/* Store discovery owns its desktop layout; mobile retains the existing cards. */
.stores-directory .stores-desktop-only { display: none; }
.stores-directory .stores-message { padding: 48px 24px; text-align: center; color: #64748b; }
.stores-directory .stores-message > i { margin-bottom: 18px; font-size: 28px; }
.stores-directory .stores-message h2 { margin-bottom: 8px; color: #0f172a; font-size: 20px; font-weight: 700; }
.stores-directory .stores-message p { font-size: 14px; }
.stores-directory .stores-message button { margin-top: 24px; min-height: 44px; padding: 10px 20px; border-radius: 12px; background: #0f172a; color: #fff; font-weight: 600; }
.stores-directory :is(a, button, select):focus-visible { outline: 2px solid #1c74cf; outline-offset: 4px; }

@media (min-width: 1024px) {
  body.stores-directory { --stores-ink: #0f172a; --stores-muted: #64748b; --stores-line: #e2e8f0; background: #fafafa; color: var(--stores-ink); }
  /* A completed transform animation would otherwise contain the fixed currency switcher. */
  .stores-directory main.page-transition-enter { animation: none; transform: none; }
  .stores-directory .stores-desktop-only { display: block; }
  .stores-directory .stores-mobile-only { display: none; }
  .stores-directory .stores-container { width: 100%; max-width: 1504px; padding: 24px 32px 64px; }
  .stores-directory .stores-heading { align-items: flex-start; justify-content: center; margin-bottom: 24px; text-align: center; }
  .stores-directory .stores-eyebrow { margin-bottom: 8px; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--stores-muted); }
  .stores-directory .stores-heading h1 { margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
  .stores-directory #stores-currency-switcher { position: fixed; top: 32px; right: 32px; z-index: 91; }
  .stores-directory #store-search-form {
    position: sticky; top: 20px; z-index: 90;
    width: min(512px, 100%); min-height: 64px; margin: 0 auto 24px; padding: 8px;
    align-items: center; gap: 4px; border: 1px solid #fff; border-radius: 999px; background: #fff;
    box-shadow: 0 16px 48px rgb(15 23 42 / 13%), 0 2px 8px rgb(15 23 42 / 3%);
  }
  .stores-directory #store-search-form > div { min-width: 0; }
  .stores-directory #store-search { min-width: 0; min-height: 46px; padding-left: 40px; padding-right: 8px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; }
  .stores-directory #store-search:focus { outline: 0; box-shadow: 0 0 0 2px #1c74cf; }
  .stores-directory #store-search-form > button { min-height: 44px; padding-inline: 18px; font-size: 12px; box-shadow: none; }
  .stores-directory .stores-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .stores-directory .stores-filters { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(0, 1fr)); gap: 20px; align-items: end; padding: 20px; background: #fff; border: 1px solid var(--stores-line); border-radius: 16px; }
  .stores-directory .stores-filter-heading h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
  .stores-directory #stores-clear { color: var(--stores-muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
  .stores-directory #stores-clear:hover { color: var(--stores-ink); }
  .stores-directory .stores-filter-field { min-width: 0; }
  .stores-directory .stores-filter-field label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
  .stores-directory .stores-filter-field select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; text-overflow: ellipsis; border: 1px solid var(--stores-line); border-radius: 9px; background: #fff; color: #475569; font: inherit; font-size: 12px; cursor: pointer; }
  .stores-directory select:disabled { opacity: .55; cursor: wait; }
  .stores-directory .stores-results { min-width: 0; }
  .stores-directory .stores-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; margin-bottom: 18px; }
  .stores-directory #stores-count { font-size: 13px; font-weight: 600; color: #475569; }
  .stores-directory .stores-sort { display: flex; align-items: center; gap: 10px; color: var(--stores-muted); font-size: 12px; }
  .stores-directory #stores-sort { height: 38px; padding: 0 12px; border: 1px solid var(--stores-line); border-radius: 9px; background: #fff; color: var(--stores-ink); font: inherit; cursor: pointer; }
  .stores-directory :is(#stores-grid, #stores-status):not(.hidden) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .stores-directory .stores-card { min-width: 0; border: 1px solid var(--stores-line); border-top: 3px solid var(--stores-accent); border-radius: 18px; background: #fff; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
  .stores-directory .stores-card:hover { border-color: #cbd5e1; border-top-color: var(--stores-accent); box-shadow: 0 8px 24px rgb(15 23 42 / 5%); }
  .stores-directory .stores-card-inner { padding: 22px; }
  .stores-directory .stores-card-header { flex-direction: column; align-items: stretch; gap: 12px; margin: 0 0 20px; }
  .stores-directory .stores-identity { min-width: 0; align-items: flex-start; gap: 12px; }
  .stores-directory .stores-logo { width: 48px; height: 48px; border: 1px solid #f1f5f9; border-radius: 12px; box-shadow: none; }
  .stores-directory .stores-logo img { object-fit: contain; padding: 3px; }
  .stores-directory .stores-card-copy { min-width: 0; flex: 1; }
  .stores-directory .stores-card h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--stores-ink); font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
  .stores-directory .stores-category-label { margin-top: 3px; color: var(--stores-muted); font-size: 11px; overflow-wrap: anywhere; }
  .stores-directory .stores-rating-row { margin-top: 8px; }
  .stores-directory .stores-rating { min-height: 23px; padding: 3px 7px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 600; backdrop-filter: none; }
  .stores-directory .stores-location-wrap { align-items: flex-start; min-width: 0; }
  .stores-directory .stores-location { justify-content: flex-start; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; color: var(--stores-muted); font-size: 11px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
  .stores-directory .stores-location i { flex-shrink: 0; margin-right: 6px; }
  .stores-directory .stores-catalog { margin-top: auto; }
  .stores-directory .stores-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0; margin: 0; }
  .stores-directory .stores-product { min-width: 0; width: auto; border-radius: 10px; box-shadow: none; }
  .stores-directory .stores-product:nth-child(n+4) { display: none; }
  .stores-directory .stores-product-image { border: 1px solid #f1f5f9; border-radius: 10px; background: #f8fafc; }
  .stores-directory .stores-product-price { position: static; display: block; margin-top: 8px; padding: 0; background: transparent; color: var(--stores-ink); font-size: 12px; font-weight: 600; backdrop-filter: none; }
  .stores-directory .stores-catalog-empty { display: grid; place-items: center; min-height: 128px; margin-top: 0; padding: 20px; border: 1px dashed var(--stores-line); border-radius: 12px; background: #f8fafc; color: var(--stores-muted); text-align: center; font-size: 12px; }
  .stores-directory .stores-card-footer { margin-top: 20px; padding-top: 16px; border-color: #f1f5f9; }
  .stores-directory .stores-product-count { color: var(--stores-muted); font-size: 11px; }
  .stores-directory .stores-visit { gap: 10px; width: auto; height: 36px; padding: 0 12px; border: 1px solid var(--stores-line); border-radius: 8px; color: var(--stores-ink); font-size: 11px; font-weight: 600; box-shadow: none; }
  .stores-directory .stores-visit:hover { background: #f1f5f9; }
  .stores-directory .stores-visit i { font-size: 10px; }
  .stores-directory .stores-message { grid-column: 1 / -1; padding-block: 72px; border: 1px solid var(--stores-line); border-radius: 18px; background: #fff; }
  .stores-directory .stores-skeleton { min-width: 0; padding: 22px; border: 1px solid var(--stores-line); border-top-width: 3px; border-radius: 18px; background: #fff; }
  .stores-directory .stores-skeleton > div:first-child { flex-wrap: wrap; min-height: 126px; }
  .stores-directory .stores-skeleton > div:first-child > div { min-width: 0; }
  .stores-directory .stores-skeleton .space-y-2 > div { max-width: 120px; }
  .stores-directory .stores-skeleton > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0; }
  .stores-directory .stores-skeleton > div:last-child > div { display: block; width: auto; border-radius: 10px; }
  .stores-directory .stores-skeleton > div:last-child > div:nth-child(n+4) { display: none; }
  .stores-directory .stores-skeleton::after { content: ''; display: block; height: 53px; margin-top: 20px; border-top: 1px solid #f1f5f9; }
}

@media (min-width: 1280px) {
  .stores-directory .stores-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 28px; }
  .stores-directory .stores-filters { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 20px 16px; }
  .stores-directory .stores-filter-heading { padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
  .stores-directory .stores-filter-heading h2 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .stores-directory .stores-card, .stores-directory .stores-product img { transition: none; }
  .stores-directory .skeleton-shimmer { animation: none; }
}
