:root {
  --store-pink: #e83f73;
  --store-green: #117c68;
  --store-ink: #18202a;
  --store-muted: #707a86;
  --store-line: #e8ebef;
  --store-soft: #f5f7f9;
}

.page.store-directory-shell,
.page.store-detail-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
}

.store-directory-page,
.store-detail-page {
  min-height: calc(100dvh - 72px);
  color: var(--store-ink);
  background: #fff;
}

.store-directory-heading {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 72px);
  border-bottom: 1px solid var(--store-line);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.store-directory-heading > div,
.store-products-section > header > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.store-directory-heading h1 {
  margin: 0;
  font-size: 1.12rem;
}

.store-directory-heading span,
.store-products-section > header span {
  color: #9aa1aa;
  font-size: .78rem;
}

.store-directory-heading nav,
.store-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa1aa;
  font-size: .76rem;
}

.store-directory-heading a,
.store-detail-breadcrumb a {
  color: #4d5865;
  text-decoration: none;
}

.store-directory-content,
.store-detail-content {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.store-directory-content {
  padding: 28px 0 54px;
}

.store-directory-intro {
  padding: 22px 28px;
  border: 1px solid #edf0f2;
  border-radius: 16px;
  background: var(--store-soft);
  line-height: 2.15;
}

.store-directory-intro p {
  margin: 0;
  color: #3e4854;
  font-size: .86rem;
}

.store-directory-intro p + p {
  margin-top: 8px;
}

.store-directory-intro a {
  color: var(--store-pink);
  font-weight: 800;
}

.store-directory-search {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  margin: 22px 0 34px;
  overflow: hidden;
  border: 1px solid #edf0f2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
}

.store-directory-search input {
  width: 100%;
  min-width: 0;
  height: 66px;
  padding: 0 24px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--store-ink);
  font: inherit;
  text-align: right;
}

.store-directory-search svg,
.store-product-search svg {
  width: 27px;
  height: 27px;
  fill: var(--store-pink);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: start;
}

.store-card {
  --card-accent: #117c68;
  --card-accent-soft: #e7f5f1;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 18px;
  border: 1px solid #edf0f2;
  border-radius: 15px;
  background: #fff;
  color: var(--store-ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 23px rgba(15, 23, 42, .075);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.store-card:hover,
.store-card:focus-visible {
  z-index: 5;
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 38%, #fff);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .13);
  outline: none;
}

.store-card-domain {
  max-width: 100%;
  align-self: flex-start;
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef0f2;
  color: #68717c;
  font-size: .64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-mark {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin: 34px auto 22px;
  border-radius: 30px;
  background: var(--card-accent-soft);
  color: var(--card-accent);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 16%, #fff);
}

.store-card h2 {
  margin: auto 0 3px;
  color: inherit;
  font-size: .88rem;
  line-height: 1.8;
}

.store-card:hover h2,
.store-card:focus-visible h2 {
  color: var(--store-pink);
}

.store-card > p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #9aa1aa;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--store-line);
  background: #fff;
}

.store-card-stats > span {
  display: grid;
  gap: 3px;
}

.store-card-stats > span + span {
  border-right: 1px solid var(--store-line);
}

.store-card-stats strong {
  color: var(--card-accent);
  font-size: 1rem;
}

.store-card-stats small {
  color: #4e5864;
  font-size: .67rem;
}

@media (hover: hover) and (pointer: fine) {
  .store-grid {
    row-gap: 112px;
  }

  .store-card-stats {
    position: absolute;
    top: calc(100% - 2px);
    right: -1px;
    width: calc(100% + 2px);
    min-height: 84px;
    margin: 0;
    padding: 18px 10px;
    border: 1px solid #edf0f2;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    box-shadow: 0 14px 24px rgba(15, 23, 42, .1);
    transition: opacity .18s ease, transform .18s ease;
  }

  .store-card:hover .store-card-stats,
  .store-card:focus-visible .store-card-stats {
    opacity: 1;
    transform: translateY(0);
  }
}

.store-directory-empty,
.store-directory-error,
.store-products-empty {
  padding: 42px 24px;
  border: 1px solid var(--store-line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.store-directory-empty[hidden],
.store-card[hidden] {
  display: none !important;
}

.store-accent-0 { --card-accent: #117c68; --card-accent-soft: #e7f5f1; }
.store-accent-1 { --card-accent: #e83f73; --card-accent-soft: #fff0f5; }
.store-accent-2 { --card-accent: #366fa1; --card-accent-soft: #edf5fb; }
.store-accent-3 { --card-accent: #b8731f; --card-accent-soft: #fff5e9; }
.store-accent-4 { --card-accent: #7255a8; --card-accent-soft: #f4f0fb; }
.store-accent-5 { --card-accent: #65707d; --card-accent-soft: #f0f2f5; }

.store-detail-breadcrumb {
  width: min(1440px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
}

.store-detail-hero {
  --card-accent: #117c68;
  --card-accent-soft: #e7f5f1;
  min-height: 186px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px max(24px, calc((100% - 1120px) / 2));
  color: #fff;
  background:
    linear-gradient(110deg, rgba(4, 21, 32, .96), rgba(8, 71, 67, .84)),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(255,255,255,.08) 27px 29px);
}

.store-detail-identity {
  display: flex;
  align-items: center;
  gap: 19px;
}

.store-detail-identity .store-card-mark {
  flex: none;
  width: 92px;
  height: 92px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--card-accent);
}

.store-detail-identity small,
.store-detail-identity span {
  color: rgba(255,255,255,.74);
}

.store-detail-identity h1 {
  margin: 3px 0 5px;
  font-size: 1.35rem;
}

.store-detail-hero > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.store-detail-content {
  padding: 34px 0 54px;
}

.store-about-panel,
.store-summary-card,
.store-products-section {
  border: 1px solid #edf0f2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .055);
}

.store-about-panel {
  padding: 24px 28px;
}

.store-about-panel h2,
.store-summary-card h2,
.store-products-section h2 {
  margin: 0;
  font-size: .94rem;
}

.store-about-panel p {
  margin: 12px 0 0;
  color: #58626e;
  font-size: .82rem;
  line-height: 2.05;
}

.store-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.store-summary-card {
  min-height: 168px;
  padding: 22px 25px;
}

.store-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 23px;
}

.store-summary-metrics span {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.store-summary-metrics span + span {
  border-right: 1px solid var(--store-line);
}

.store-summary-metrics strong {
  color: #607083;
  font-size: 1.55rem;
}

.store-summary-metrics small {
  color: #707a86;
  font-size: .72rem;
}

.store-website-link,
.store-all-products-link {
  display: flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--store-green);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

.store-all-products-link {
  margin-top: 12px;
  color: var(--store-pink);
}

.store-summary-card p {
  color: var(--store-muted);
  font-size: .78rem;
}

.store-products-section {
  margin-top: 28px;
  padding: 25px;
}

.store-products-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.store-products-section > header > a {
  color: var(--store-green);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.store-product-search {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 10px;
}

.store-product-search input {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  font: inherit;
  text-align: right;
}

.store-product-search button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--store-pink);
  cursor: pointer;
}

.store-product-search button svg {
  fill: #fff;
}

.store-products-section .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.store-detail-error {
  width: min(760px, calc(100% - 32px));
  margin: 80px auto;
}

.store-detail-error a,
.store-products-empty a {
  color: var(--store-green);
  font-weight: 800;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  .store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .store-products-section .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-products-section .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .store-directory-page,
  .store-detail-page {
    min-height: calc(100dvh - 58px);
    overflow-x: hidden;
  }

  .store-directory-heading {
    min-height: auto;
    align-items: flex-start;
    padding: 15px 12px;
  }

  .store-directory-heading > div {
    display: grid;
    gap: 4px;
  }

  .store-directory-heading h1 {
    font-size: .9rem;
  }

  .store-directory-heading nav {
    gap: 6px;
    font-size: .62rem;
  }

  .store-directory-content,
  .store-detail-content,
  .store-detail-breadcrumb {
    width: calc(100% - 20px);
  }

  .store-directory-content {
    padding-top: 16px;
  }

  .store-directory-intro {
    padding: 16px;
  }

  .store-directory-intro p {
    font-size: .72rem;
    line-height: 2;
  }

  .store-directory-search {
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) 48px;
    margin: 14px 0 18px;
  }

  .store-directory-search input {
    height: 52px;
    padding-inline: 14px;
    font-size: .74rem;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .store-card {
    min-height: 262px;
    padding: 12px 9px 11px;
  }

  .store-card-domain {
    max-width: 100%;
    font-size: .54rem;
  }

  .store-card-mark {
    width: 72px;
    height: 72px;
    margin: 23px auto 16px;
    border-radius: 22px;
    font-size: 1.5rem;
  }

  .store-card h2 {
    font-size: .72rem;
  }

  .store-card > p {
    font-size: .55rem;
  }

  .store-card-stats {
    gap: 4px;
    padding-top: 10px;
  }

  .store-card-stats strong {
    font-size: .82rem;
  }

  .store-card-stats small {
    font-size: .55rem;
  }

  .store-detail-breadcrumb {
    min-height: 48px;
    gap: 6px;
    font-size: .61rem;
  }

  .store-detail-hero {
    min-height: 164px;
    align-items: flex-start;
    padding: 22px 14px;
  }

  .store-detail-identity {
    gap: 11px;
  }

  .store-detail-identity .store-card-mark {
    width: 66px;
    height: 66px;
  }

  .store-detail-identity h1 {
    font-size: 1rem;
  }

  .store-detail-identity span {
    font-size: .62rem;
  }

  .store-detail-hero > a {
    min-height: 38px;
    padding: 6px 9px;
    font-size: .62rem;
  }

  .store-detail-content {
    padding-top: 18px;
  }

  .store-about-panel,
  .store-summary-card,
  .store-products-section {
    border-radius: 12px;
  }

  .store-about-panel {
    padding: 17px;
  }

  .store-about-panel p {
    font-size: .72rem;
  }

  .store-detail-summary {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .store-summary-card {
    min-height: 145px;
    padding: 17px;
  }

  .store-products-section {
    margin-top: 14px;
    padding: 14px 8px;
  }

  .store-products-section > header {
    align-items: flex-start;
  }

  .store-products-section > header > div {
    display: grid;
    gap: 4px;
  }

  .store-product-search {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .store-product-search input {
    font-size: .7rem;
  }

  .store-products-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .store-detail-hero {
    display: grid;
  }

  .store-detail-hero > a {
    width: fit-content;
  }
}
