.zstore-layout {
  grid-template-columns: 190px minmax(0, 1fr);
  max-width: 1270px;
  column-gap: 32px;
}

.zstore-layout > .discover { display: none; }
.zstore-layout > main { min-width: 0; }
.zstore-layout .section-heading { height: auto; margin-bottom: 14px; }
.zstore-page { display: grid; gap: 22px; margin-bottom: 24px; }
.zstore-page h2, .zstore-page h3 { overflow-wrap: anywhere; }
.zstore-page h3 { margin: 0; font-size: 1rem; }
.zstore-page p { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }

.zstore-layout .zstore-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  border-bottom: 1px solid var(--line);
}

.zstore-tabs a {
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  font-size: .9rem;
  font-weight: 670;
  color: var(--muted);
}

.zstore-tabs a[aria-current], .zstore-tabs a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.zstore-feature, .zstore-empty, .zstore-shop-card, .zstore-product, .zstore-orders > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.zstore-feature, .zstore-empty, .zstore-shop-card, .zstore-orders > li { padding: 18px; }
.zstore-feature, .zstore-section { display: grid; gap: 12px; }
.zstore-empty button { margin-inline-start: 8px; }
.zstore-section-head, .zstore-product-heading, .zstore-order-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.zstore-status {
  width: fit-content;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.2;
}
.zstore-feature .zstore-status { margin-bottom: 6px; }
.zstore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.zstore-shop-card { display: grid; align-content: start; gap: 9px; }
.zstore-shop-card:hover { border-color: var(--edge); }
.zstore-monogram, .zstore-product-image {
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--accent);
}
.zstore-monogram { width: 42px; aspect-ratio: 1; border-radius: 10px; font-size: 20px; font-weight: 750; }
.zstore-visit { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: var(--accent); font-weight: 700; font-size: .875rem; }
.zstore-visit svg { width: 15px; height: 15px; }
.zstore-product { overflow: hidden; min-width: 0; }
.zstore-product-image { aspect-ratio: 5 / 3; }
.zstore-product-image > img { width: 100%; height: 100%; object-fit: cover; }
.zstore-product-image > svg { width: 34px; height: 34px; }
.zstore-product-body { display: grid; padding: 12px; gap: 8px; }
.zstore-product-body p, .zstore-orders p { font-size: .875rem; }
.zstore-product-body small { color: var(--muted); }
.zstore-product-heading strong { white-space: nowrap; }
.zstore-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.zstore-orders, .zstore-resources { margin: 0; }
.zstore-orders { list-style: none; padding: 0; display: grid; gap: 8px; }
.zstore-orders li { display: grid; gap: 7px; }
.zstore-resources { padding-left: 18px; color: var(--muted); }
.zstore-resources a, .zstore-orders p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .zstore-layout { grid-template-columns: 144px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 650px) {
  .zstore-layout { display: block; }
  .zstore-page { gap: 16px; }
  .zstore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .zstore-feature, .zstore-empty, .zstore-shop-card, .zstore-orders > li { padding: 12px; }
  .sidebar nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body:has(.preview-notice) .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
