/* Stores page has no top promo banner — keep header flush to top */
body.stores-site .header {
  top: 0;
}

body.stores-site .nav-backdrop {
  top: var(--header-height, 72px);
}

body.stores-site .nav-drawer {
  top: var(--header-height, 72px);
  max-height: calc(100dvh - var(--header-height, 72px));
}

.stores-page {
  padding: calc(var(--header-height, 72px) + 1.5rem) 0 4rem;
  min-height: 60vh;
}

.stores-hero {
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--header-height, 72px) + 12px);
}

.stores-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  word-break: break-word;
}

.stores-hero__hint {
  margin: 0;
  color: #64748b;
  font-size: 0.9375rem;
  max-width: 42rem;
  white-space: pre-line;
}

.stores-hero__hint--about {
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 42rem;
}

.store-about-blurb {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.9rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-line;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.store-about-blurb.is-visible {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.store-about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.store-about-row .store-about-blurb {
  margin: 0;
  flex: 1 1 14rem;
}

.store-work-btn {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid #0f766e;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.store-work-btn:hover {
  background: #ccfbf1;
}

body.store-work-open {
  overflow: hidden;
}

.store-work-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
}

.store-work-backdrop[hidden] {
  display: none !important;
}

.store-work-modal {
  width: min(40rem, 100%);
  max-height: min(88dvh, 40rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
  padding: 0 0 1rem;
}

@media (min-width: 720px) {
  .store-work-backdrop {
    align-items: center;
    padding: 1.25rem;
  }
  .store-work-modal {
    border-radius: 16px;
    max-height: min(85dvh, 42rem);
  }
}

.store-work-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.store-work-modal__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
}

.store-work-modal__head h3 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.store-work-modal__close {
  border: none;
  background: #f1f5f9;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

.store-work-modal__body {
  padding: 0.9rem 1.1rem 0.25rem;
}

.store-work-modal__details {
  margin: 0 0 0.85rem;
  white-space: pre-line;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.store-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
}

.store-work-grid__item {
  margin: 0;
}

.store-work-grid__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
}

.store-work-grid__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.store-work-grid__item figcaption {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

.store-work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.88);
}

.store-work-lightbox[hidden] {
  display: none !important;
}

.store-work-lightbox img {
  max-width: min(96vw, 40rem);
  max-height: min(70dvh, 32rem);
  object-fit: contain;
  border-radius: 8px;
}

.store-work-lightbox__cap {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
  text-align: center;
}

.store-work-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.35rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .store-about-blurb {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .store-about-blurb {
    font-size: 0.92rem;
  }
}

.shop-categories--beyya {
  margin: 0 0 1rem;
  padding-top: 0.25rem;
}

.shop-categories--beyya .store-picker-label {
  margin-bottom: 0.5rem;
}

.shop-store-hint {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.9375rem;
}

.store-picker-wrap {
  margin: 0.5rem 0 0.75rem;
  scroll-margin-top: calc(var(--header-height, 72px) + 8px);
}

.store-picker-top {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: nowrap;
}

.store-picker-top .store-picker-label {
  margin: 0;
}

.store-picker-top .shop-results-count {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: left;
  font-size: 0.875rem;
  color: #64748b;
}

.store-picker-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.store-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Space-saver test: one dropdown instead of many chips */
.store-picker--select {
  flex-wrap: nowrap;
  width: 100%;
}

.store-picker__select-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.store-picker__select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 14px;
  color: #0f172a;
  font: inherit;
  /* 16px+ stops iOS Safari from zooming the page on focus */
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.store-picker__select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.store-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.store-picker__btn:hover {
  border-color: #0d9488;
  color: #0f766e;
}

.store-picker__btn.is-active {
  border-color: var(--shop-orange, #f85606);
  background: rgba(248, 86, 6, 0.08);
  color: #c2410c;
}

.stores-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.stores-back-link {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}

.stores-back-link:hover {
  text-decoration: underline;
}

.stores-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

@media (max-width: 640px) {
  body.stores-site {
    --header-height: 72px;
  }

  .stores-page {
    padding-top: calc(var(--header-height, 72px) + 1rem);
  }

  .store-picker__btn {
    font-size: 0.8125rem;
    padding: 0.4375rem 0.875rem;
  }
}
