.store-page {
  min-height: 100%;
  background: #0c0f0d;
}

.store-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--muted);
}

.store-brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

.store-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-header a {
  text-decoration-color: rgba(244, 242, 236, 0.34);
  text-underline-offset: 4px;
}

.store-main {
  padding: 36px 0 80px;
}

.store-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: end;
  margin-bottom: 34px;
}

.store-intro h1,
.detail-panel h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.request-panel h2 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.store-intro p:last-child,
.detail-heading p,
.request-panel > div p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.store-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.store-filters,
.catalogue-panel,
.detail-panel,
.request-panel {
  border: 1px solid rgba(244, 242, 236, 0.14);
  border-radius: 8px;
  background: rgba(17, 20, 18, 0.78);
}

.store-filters {
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 16px;
  position: sticky;
  top: 18px;
}

.store-filters label,
.request-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.store-filters input,
.store-filters select,
.request-panel input,
.request-panel select,
.request-panel textarea,
.gallery-toolbar select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 9, 8, 0.7);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.request-panel textarea {
  min-height: 132px;
  resize: vertical;
}

.catalogue-panel,
.detail-panel,
.request-panel {
  padding: 18px;
}

.catalogue-toolbar,
.gallery-toolbar,
.detail-heading,
.demo-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.catalogue-toolbar h2,
.artefact-list h3,
.gallery-section h3,
.demo-panel h3 {
  margin: 0;
}

.catalogue-toolbar span {
  color: var(--dim);
  font-size: 0.9rem;
}

.offering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.offering-card {
  overflow: hidden;
  border: 1px solid rgba(244, 242, 236, 0.14);
  border-radius: 8px;
  background: #111412;
  cursor: pointer;
}

.offering-card:hover {
  border-color: rgba(241, 207, 131, 0.54);
}

.offering-card__media {
  display: grid;
  height: 170px;
  place-items: center;
  background: #171b18;
  color: var(--dim);
  text-transform: uppercase;
  font-weight: 800;
}

.offering-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offering-card__body {
  padding: 14px;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta span,
.tag-row span,
.access-box span,
.demo-panel > span {
  border: 1px solid rgba(244, 242, 236, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  padding: 4px 8px;
  text-transform: capitalize;
}

.offering-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.18;
}

.offering-card p {
  min-height: 4.5em;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.detail-panel,
.request-panel {
  margin-top: 24px;
}

.detail-heading {
  align-items: center;
}

.detail-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
}

.access-box {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: 170px;
}

.access-box button,
.artefact-row button,
.load-more,
.request-panel button {
  border: 1px solid rgba(216, 180, 106, 0.74);
  border-radius: 6px;
  background: var(--accent);
  color: #16120a;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 10px 14px;
}

.artefact-row button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.metadata-grid div {
  min-height: 92px;
  border-top: 1px solid rgba(244, 242, 236, 0.14);
  padding-top: 12px;
}

.metadata-grid span,
.artefact-row span {
  display: block;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 750;
}

.metadata-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.demo-panel {
  align-items: center;
  border: 1px solid rgba(167, 223, 181, 0.26);
  border-radius: 8px;
  background: rgba(28, 50, 37, 0.28);
  margin: 18px 0;
  padding: 16px;
}

.demo-panel p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.artefact-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.artefact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(244, 242, 236, 0.12);
  border-radius: 8px;
  padding: 12px;
}

.gallery-section {
  margin-top: 26px;
}

.gallery-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

#gallery-filters {
  display: flex;
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid rgba(244, 242, 236, 0.12);
  border-radius: 8px;
  background: #111412;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item div {
  padding: 11px;
}

.gallery-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.load-more {
  margin-top: 16px;
}

.request-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(18px, 3vw, 28px);
}

.request-panel form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-wide,
.request-panel button,
.request-panel .form-status {
  grid-column: 1 / -1;
}

.loading {
  color: var(--muted);
}

@media (max-width: 900px) {
  .store-intro,
  .store-layout,
  .request-panel {
    grid-template-columns: 1fr;
  }

  .store-filters {
    position: static;
  }

  .metadata-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .store-shell {
    width: min(100% - 28px, 1180px);
  }

  .store-header,
  .detail-heading,
  .catalogue-toolbar,
  .gallery-toolbar,
  .artefact-row {
    align-items: stretch;
    flex-direction: column;
  }

  .offering-grid,
  .metadata-grid,
  .gallery-grid,
  .request-panel form {
    grid-template-columns: 1fr;
  }

  #gallery-filters {
    flex-direction: column;
  }

  .access-box {
    justify-items: start;
  }
}
