.product-store-row {
  display: flex;
  margin: 8px 0 12px;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.product-store-row .product-shop-link { margin: 0; }

.product-enter-store {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue, #2357e8);
  border-radius: 4px;
  color: var(--blue, #2357e8);
  background: var(--theme-accent-soft, #f5f8ff);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-enter-store:hover { color: var(--theme-accent-contrast, #fff); border-color: var(--blue-dark, #173a9e); background: var(--blue-dark, #173a9e); }
.product-enter-store:focus-visible { outline: 3px solid var(--theme-accent-soft, #edf3ff); outline-offset: 2px; }

.store-route-page { min-height: 70vh; color: var(--ink); background: #fff; }
.store-route-shell { width: min(1180px, calc(100% - 48px)); margin: auto; }

.store-route-hero { color: #fff; background-color: #101a2c; background-position: center; background-size: cover; }
.store-route-overlay { background: linear-gradient(90deg, #0b1628f5, #0b1628d8 55%, #0b16289c); }
.store-route-hero-inner { display: flex; min-height: 250px; padding: 28px 0 32px; flex-direction: column; justify-content: space-between; gap: 30px; }

.store-route-breadcrumb { display: flex; align-items: center; gap: 8px; color: #aab8c9; font-size: 11px; }
.store-route-breadcrumb button { padding: 0; border: 0; color: #d4deea; background: transparent; font-size: inherit; }
.store-route-breadcrumb button:hover { color: #fff; }
.store-route-breadcrumb b { min-width: 0; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }

.store-route-identity { display: flex; align-items: center; gap: 18px; }
.store-route-logo {
  display: grid;
  width: 78px;
  height: 78px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 2px solid #ffffff9c;
  border-radius: 8px;
  color: #fff;
  background: #2357e8;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 800;
}
.store-route-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-route-copy { min-width: 0; flex: 1; }
.store-route-status { display: inline-flex; padding: 4px 7px; align-items: center; gap: 5px; border-radius: 3px; color: #77e2c5; background: #123c38; font-size: 9px; font-weight: 700; }
.store-route-copy h1 { margin: 9px 0 3px; font-family: "Space Grotesk", "Noto Sans SC", sans-serif; font-size: 30px; line-height: 1.25; overflow-wrap: anywhere; }
.store-route-copy p { max-width: 680px; margin: 8px 0 0; color: #bdc9d6; font-size: 12px; line-height: 1.7; }
.store-route-copy .shop-level { margin: 5px 0; }

.store-route-actions { display: flex; flex: none; gap: 8px; }
.store-route-actions button { min-height: 38px; padding: 9px 15px; border: 1px solid #ffffff56; border-radius: 4px; color: #fff; background: #ffffff0d; font-size: 11px; font-weight: 700; }
.store-route-actions button:hover { border-color: #fff; background: #ffffff17; }
.store-route-actions .store-route-follow.is-followed { border-color: var(--blue, #b88a32); color: var(--theme-accent-contrast, #17130b); background: var(--blue, #b88a32); }
.store-route-level-marks { display: inline-flex; margin-left: 7px; gap: 3px; vertical-align: middle; }
.store-route-level-icon { display: inline-block; width: 9px; height: 9px; border: 2px solid #e0b24c; border-radius: 50%; box-shadow: 0 0 0 1px #e0b24c55; }
.store-route-stats-inner { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.store-route-stats { border-bottom: 1px solid var(--line); background: #fff; }
.store-route-stats-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.store-route-stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.store-route-stat:first-child { padding-left: 0; }
.store-route-stat:last-child { border-right: 0; }
.store-route-stat b,
.store-route-stat span { display: block; }
.store-route-stat b { font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.store-route-stat span { margin-top: 5px; color: #8391a0; font-size: 10px; }

.store-route-demo { padding: 9px 0; border-bottom: 1px solid #efdfce; color: #8a6545; background: #fff8f0; font-size: 10px; }
.store-route-demo span { display: flex; align-items: center; gap: 8px; }
.store-route-demo b { padding: 3px 6px; border-radius: 3px; color: #fff; background: #a66a3b; font-size: 8px; }

.store-route-catalog { padding: 38px 0 72px; }
.store-route-heading { display: flex; margin-bottom: 18px; align-items: flex-end; justify-content: space-between; gap: 24px; }
.store-route-heading h2 { margin: 7px 0 0; font-family: "Space Grotesk", "Noto Sans SC", sans-serif; font-size: 28px; }
.store-route-heading p { margin: 7px 0 0; color: #8492a1; font-size: 11px; }

.store-route-search {
  display: flex;
  width: min(430px, 48%);
  flex: none;
}
.store-route-search input,
.store-route-search button { min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid #d8e1e9; outline-color: #2357e8; color: #405267; background: #fff; font-size: 12px; }
.store-route-search input { min-width: 0; flex: 1; border-radius: 4px 0 0 4px; }
.store-route-search button { padding-inline: 20px; border-color: #2357e8; border-radius: 0 4px 4px 0; color: #fff; background: #2357e8; font-weight: 800; }

.store-route-catalog-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-top: 1px solid #dfe6ec; }
.store-route-category { min-width: 0; border-right: 1px solid #dfe6ec; background: #f5f7f9; }
.store-route-category h3 { min-height: 49px; padding: 15px 17px; margin: 0; border-bottom: 1px solid #dfe6ec; color: #26384a; background: #eef2f5; font-size: 13px; line-height: 19px; }
.store-route-category nav { position: sticky; top: 72px; }
.store-route-category button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px 12px 20px;
  border: 0;
  border-bottom: 1px solid #e5eaee;
  color: #5f6d7b;
  background: transparent;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
.store-route-category button:hover { color: #2357e8; background: #edf2fb; }
.store-route-category button.active { color: #2357e8; background: #fff; font-weight: 800; }
.store-route-category button.active::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #2357e8; content: ""; }

.store-route-products { min-width: 0; padding-left: 20px; }
.store-route-sortbar { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dfe6ec; }
.store-route-sortbar > strong { flex: none; padding-right: 2px; color: #8a97a4; font-size: 10px; font-weight: 600; }
.store-route-sort-tabs { display: flex; min-width: 0; height: 48px; align-items: stretch; }
.store-route-sort-tabs button { position: relative; min-width: 82px; padding: 0 14px; border: 0; color: #576676; background: transparent; font-size: 12px; white-space: nowrap; }
.store-route-sort-tabs button:hover { color: #2357e8; }
.store-route-sort-tabs button.active { color: #2357e8; font-weight: 800; }
.store-route-sort-tabs button.active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: #2357e8; content: ""; }
.store-route-sort-tabs button span { display: inline-block; width: 12px; margin-left: 2px; color: #8996a3; text-align: center; }

.store-route-grid { display: grid; padding-top: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.store-route-product { position: relative; display: block; min-width: 0; padding: 0; overflow: visible; border: 0; color: #1c2836; background: #fff; text-align: left; }
.store-route-product-main { display: block; width: 100%; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.store-route-image { display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; border: 1px solid #e2e8ed; border-radius: 4px; background: #f4f6f8; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.store-route-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f4f6f8; }
.store-route-product-title {
  display: -webkit-box;
  min-height: 43px;
  margin-top: 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.store-route-product-meta { display: flex; min-height: 24px; margin-top: 5px; align-items: baseline; justify-content: space-between; gap: 8px; }
.store-route-product-meta strong { min-width: 0; overflow: hidden; color: var(--theme-accent, #a87d1d); font-family: "Space Grotesk", sans-serif; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.store-route-product-meta small { flex: none; color: #8995a1; font-size: 10px; white-space: nowrap; }
.store-route-save { position: absolute; z-index: 2; top: 7px; right: 7px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid #ffffffc7; border-radius: 50%; color: #526171; background: #fffffff0; box-shadow: 0 3px 10px #17212d24; font-size: 22px; line-height: 1; }
.store-route-save:hover { color: #d83f4c; background: #fff; }
.store-route-save.saved { border-color: #f0b9be; color: #df3f4d; background: #fff4f5; }
.store-route-product:hover .store-route-image { border-color: #9eb5df; box-shadow: 0 10px 24px #1d396218; transform: translateY(-2px); }
.store-route-product:hover .store-route-product-title { color: #2357e8; }
.store-route-empty { padding: 55px 20px; grid-column: 1 / -1; border: 1px dashed #d4dee7; color: #8795a4; text-align: center; font-size: 12px; }
.store-route-load { display: block; min-width: 200px; padding: 11px 20px; margin: 25px auto 0; border: 1px solid #cbd8e5; border-radius: 4px; color: #2357e8; background: #fff; font-size: 11px; font-weight: 800; }
.store-route-load:hover { border-color: #2357e8; }

@media (max-width: 980px) {
  .store-route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-route-catalog-layout { grid-template-columns: 160px minmax(0, 1fr); }
  .store-route-sort-tabs button { min-width: 72px; padding-inline: 10px; }
}

@media (max-width: 700px) {
  .store-route-shell { width: min(100% - 28px, 1180px); }
  .store-route-hero-inner { min-height: 0; padding: 18px 0 24px; gap: 22px; }
  .store-route-identity { align-items: flex-start; flex-wrap: wrap; }
  .store-route-logo { width: 60px; height: 60px; font-size: 23px; }
  .store-route-copy { width: calc(100% - 80px); flex: auto; }
  .store-route-copy h1 { font-size: 23px; }
  .store-route-actions { width: 100%; }
  .store-route-actions button { flex: 1; }
  .store-route-stats-inner { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .store-route-stat { grid-column: span 2; min-width: 0; padding: 12px 10px; }
  .store-route-stat:first-child { padding-left: 10px; }
  .store-route-stat:nth-child(3) { border-right: 0; }
  .store-route-stat:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .store-route-stat:nth-child(4) { border-right: 1px solid var(--line); }
  .store-route-stat b { font-size: 18px; }
  .store-route-stat span { margin-top: 4px; font-size: 10px; line-height: 1.35; }
  .store-route-catalog { padding: 28px 0 60px; }
  .store-route-catalog > .store-route-shell { width: 100%; }
  .store-route-heading { display: block; padding: 0 14px; }
  .store-route-heading h2 { font-size: 23px; }
  .store-route-search { width: 100%; margin-top: 16px; }
  .store-route-catalog-layout { grid-template-columns: 96px minmax(0, 1fr); }
  .store-route-category h3 { min-height: 47px; padding: 14px 10px; font-size: 12px; text-align: center; }
  .store-route-category nav { top: 64px; }
  .store-route-category button { min-height: 50px; padding: 11px 8px 11px 11px; font-size: 12px; text-align: center; }
  .store-route-products { padding-left: 8px; padding-right: 10px; }
  .store-route-sortbar { min-height: 47px; }
  .store-route-sortbar > strong { display: none; }
  .store-route-sort-tabs { width: 100%; height: 46px; }
  .store-route-sort-tabs button { min-width: 0; padding: 0 4px; flex: 1; font-size: 12px; }
  .store-route-sort-tabs button.active::after { right: 4px; left: 4px; }
  .store-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .store-route-product-title { min-height: 38px; margin-top: 6px; font-size: 12px; line-height: 1.55; }
  .store-route-product-meta strong { font-size: 13px; }
}

@media (max-width: 460px) {
  .product-store-row { align-items: stretch; }
  .product-store-row .product-shop-link { width: 100%; }
}

/* Compact storefront inspired by mobile marketplace browsing patterns. */
.store-route-hero-inner { min-height: 205px; padding-block: 22px 25px; gap: 18px; }
.store-route-overlay { background: linear-gradient(90deg, #0a0e14f5, #0a0e14d9 58%, #0a0e149e); }
.store-route-actions button:last-child { border-color: var(--blue, #b88a32); color: var(--theme-accent-contrast, #17130b); background: var(--blue, #b88a32); }
.store-route-search input { outline-color: var(--blue, #b88a32); }
.store-route-search button { border-color: var(--blue, #b88a32); color: var(--theme-accent-contrast, #17130b); background: var(--blue, #b88a32); }
.store-route-view-tabs { display: grid; min-height: 52px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #dfe6ec; border-bottom: 1px solid #dfe6ec; }
.store-route-view-tabs button { position: relative; padding: 0 18px; border: 0; color: #566575; background: #fff; font-size: 14px; font-weight: 700; }
.store-route-view-tabs button:hover { color: var(--blue, #b88a32); }
.store-route-view-tabs button.active { color: var(--blue, #b88a32); }
.store-route-view-tabs button.active::after { position: absolute; right: 24%; bottom: -1px; left: 24%; height: 3px; background: var(--blue, #b88a32); content: ""; }
.store-route-catalog-layout.show-products { grid-template-columns: minmax(0, 1fr); border-top: 0; }
.store-route-catalog-layout.show-products .store-route-category { display: none; }
.store-route-catalog-layout.show-products .store-route-products { padding-left: 0; }
.store-route-catalog-layout.show-categories { border-top: 0; }
.store-route-category button:hover { color: var(--blue, #b88a32); background: var(--theme-accent-soft, #f7f1e3); }
.store-route-category button.active { color: var(--blue, #b88a32); }
.store-route-category button.active::before,
.store-route-sort-tabs button.active::after { background: var(--blue, #b88a32); }
.store-route-sort-tabs button:hover,
.store-route-sort-tabs button.active { color: var(--blue, #b88a32); }
.store-route-product:hover .store-route-image { border-color: var(--blue, #b88a32); }
.store-route-product:hover .store-route-product-title { color: var(--blue, #b88a32); }
.store-route-load { border-color: color-mix(in srgb, var(--blue, #b88a32) 38%, #dfe6ec); color: var(--blue, #b88a32); }
.store-route-load:hover { border-color: var(--blue, #b88a32); }

@media (max-width: 700px) {
  .store-route-hero-inner { min-height: 0; padding: 12px 0 16px; gap: 12px; }
  .store-route-breadcrumb > span,
  .store-route-breadcrumb > b,
  .store-route-breadcrumb .qikswap-back-button b { display: none; }
  .store-route-breadcrumb .qikswap-back-button { width: 42px; min-width: 42px; height: 42px; padding: 0; justify-content: center; }
  .store-route-identity { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 11px; flex-wrap: nowrap; }
  .store-route-logo { width: 56px; height: 56px; border-radius: 6px; font-size: 21px; }
  .store-route-copy { width: auto; min-width: 0; }
  .store-route-status { padding: 3px 6px; font-size: 9px; }
  .store-route-copy h1 { margin: 5px 0 2px; overflow: hidden; font-size: 20px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .store-route-copy .shop-level { margin: 3px 0; }
  .store-route-copy p { display: -webkit-box; margin-top: 5px; overflow: hidden; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .store-route-actions { width: auto; }
  .store-route-actions [data-store-market] { display: none; }
  .store-route-actions button { min-width: 84px; min-height: 40px; padding: 8px 10px; border-color: var(--blue, #b88a32); color: var(--theme-accent-contrast, #17130b); background: var(--blue, #b88a32); font-size: 12px; }
  .store-route-demo { padding: 7px 0; font-size: 10px; line-height: 1.45; }
  .store-route-demo span { align-items: flex-start; }
  .store-route-stats .store-route-shell { width: 100%; }
  .store-route-stats-inner { display: grid; padding: 0 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .store-route-stat,
  .store-route-stat:nth-child(n+4) { min-width: 0; padding: 10px 6px; grid-column: span 2; border-top: 0; border-right: 1px solid var(--line); }
  .store-route-stat:first-child { padding-left: 6px; }
  .store-route-stat:nth-child(3) { border-right: 0; }
  .store-route-stat:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .store-route-stat:nth-child(4) { border-right: 1px solid var(--line); }
  .store-route-stat:last-child { border-right: 0; }
  .store-route-stat b { font-size: 17px; }
  .store-route-stat span { font-size: 10px; white-space: nowrap; }
  .store-route-catalog { padding: 14px 0 76px; }
  .store-route-heading { padding: 0 12px; margin-bottom: 12px; }
  .store-route-heading > div:first-child { display: none; }
  .store-route-search { margin-top: 0; }
  .store-route-search input,
  .store-route-search button { min-height: 44px; font-size: 13px; }
  .store-route-search button { min-width: 74px; padding-inline: 14px; }
  .store-route-view-tabs { min-height: 50px; }
  .store-route-view-tabs button { font-size: 14px; }
  .store-route-catalog-layout.show-products { display: grid; grid-template-columns: minmax(0, 1fr); }
  .store-route-catalog-layout.show-products .store-route-products { padding: 0 12px; }
  .store-route-catalog-layout.show-categories { grid-template-columns: 96px minmax(0, 1fr); }
  .store-route-sortbar { min-height: 48px; }
  .store-route-sort-tabs { height: 47px; }
  .store-route-sort-tabs button { min-height: 47px; font-size: 12px; }
  .store-route-grid { padding-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .store-route-product-title { min-height: 42px; margin-top: 7px; color: #222d38; font-size: 13px; font-weight: 700; line-height: 1.55; }
  .store-route-product-meta { min-height: 23px; }
  .store-route-product-meta strong { font-size: 14px; }
  .store-route-save { top: 6px; right: 6px; width: 34px; height: 34px; font-size: 21px; }
  .store-route-image { border-radius: 5px; }
}

@media (max-width: 380px) {
  .store-route-identity { grid-template-columns: 52px minmax(0, 1fr) 76px; gap: 9px; }
  .store-route-logo { width: 52px; height: 52px; }
  .store-route-actions button { min-width: 76px; padding-inline: 7px; }
  .store-route-copy h1 { font-size: 18px; }
  .store-route-copy p { -webkit-line-clamp: 1; }
}
