@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap");

:root {
  --font-sans: "Roboto", "Segoe UI", sans-serif;
  --bg: #f5f7ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #f5f7ff;
  --line: rgba(46, 58, 131, 0.1);
  --line-strong: rgba(70, 92, 221, 0.18);
  --text: #1f2642;
  --muted: #7d85a7;
  --muted-strong: #5d678f;
  --blue: #4f6cf7;
  --blue-deep: #324bcb;
  --blue-soft: #edf2ff;
  --shadow-lg: 0 30px 70px rgba(54, 77, 184, 0.14);
  --shadow-md: 0 16px 38px rgba(54, 77, 184, 0.1);
  --shadow-sm: 0 10px 24px rgba(54, 77, 184, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 126, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 194, 168, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f9ff 0%, #f4f6ff 44%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

model-viewer {
  display: block;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.page-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.page-orb-left {
  top: -120px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(96, 118, 245, 0.2) 0%, rgba(96, 118, 245, 0) 72%);
}

.page-orb-right {
  top: 120px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 182, 148, 0.18) 0%, rgba(255, 182, 148, 0) 74%);
}

.shell-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100vw - 40px));
  margin: 0 auto;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(248, 250, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(54, 77, 184, 0.06);
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.brand-row,
.brand,
.top-actions,
.top-nav,
.profile-chip,
.toolbar-tabs,
.toolbar-filters,
.card-meta,
.card-footer,
.product-actions,
.profile-header-row,
.profile-heading-line,
.profile-item-meta,
.profile-specialties {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  gap: 14px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #27336a, #ff5c97);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.card-heading h2,
.library-head h2,
.product-info-panel h1,
.panel-top h2,
.related-card h3,
.profile-header-copy h1 {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.brand-copy strong {
  font-size: 1.55rem;
  line-height: 1;
}

.brand-copy small,
.profile-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-actions {
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.top-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.top-nav-link {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.top-nav-link.is-active {
  color: var(--blue);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  border-top: 1px solid rgba(79, 108, 247, 0.1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.site-footer-inner,
.site-footer-nav,
.site-footer-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer-inner {
  justify-content: space-between;
  min-height: 78px;
}

.site-footer-copy {
  flex-wrap: wrap;
  color: var(--muted-strong);
}

.site-footer-copy strong {
  font-family: var(--font-sans);
}

.site-footer-copy span,
.site-footer-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: var(--blue);
}

.profile-chip {
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(79, 108, 247, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.profile-chip:hover {
  transform: translateY(-1px);
}

.profile-chip.is-active {
  outline: 2px solid rgba(79, 108, 247, 0.18);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffc0d4, #ff8eb2);
  color: #fff;
  font-weight: 800;
}

.profile-copy {
  display: grid;
  gap: 1px;
}

.profile-copy strong {
  font-size: 0.92rem;
}

.storefront {
  padding: 28px 0 72px;
}

.storefront-inner {
  display: grid;
  gap: 24px;
}

.store-toolbar,
.model-card,
.content-panel,
.product-viewer-panel,
.product-info-panel,
.related-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.store-toolbar,
.content-panel,
.product-viewer-panel,
.product-info-panel,
.related-card {
  border-radius: var(--radius-lg);
}

.content-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.page-alert {
  min-height: auto;
}

.page-alert p {
  margin: 0;
  font-weight: 700;
}

.page-alert-error {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(255, 241, 242, 0.92);
}

.page-alert-success {
  border-color: rgba(2, 122, 72, 0.14);
  background: rgba(237, 253, 243, 0.92);
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.toolbar-tabs,
.toolbar-filters {
  flex-wrap: wrap;
}

.toolbar-filters {
  gap: 10px;
}

.toolbar-tab,
.filter-pill,
.buy-button,
.hero-link,
.secondary-link,
.text-link,
.soft-pill,
.profile-meta-chip,
.favorite-button {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toolbar-tab,
.filter-pill,
.buy-button,
.hero-link,
.secondary-link {
  cursor: pointer;
}

.toolbar-tab:hover,
.filter-pill:hover,
.buy-button:hover,
.hero-link:hover,
.secondary-link:hover,
.text-link:hover,
.model-card:hover {
  transform: translateY(-1px);
}

.toolbar-tab {
  border: 0;
  padding: 10px 2px;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.toolbar-tab.active {
  color: var(--blue);
}

.filter-pill {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-pill.active {
  border-color: var(--line-strong);
  background: var(--blue-soft);
  color: var(--blue);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 4px 0;
}

.library-head h2 {
  font-size: 2.1rem;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-btn.active {
  border-color: var(--line-strong);
  background: var(--blue-soft);
  color: var(--blue);
}

.model-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

.model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-card {
  display: grid;
  grid-template-rows: minmax(240px, auto) 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.model-card.is-hidden {
  display: none;
}

.model-grid.is-list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}

.model-grid.is-list-view .model-card {
  grid-template-rows: 1fr;
  grid-template-columns: 200px 1fr;
  align-items: start;
}

.model-grid.is-list-view .card-media {
  min-height: 150px;
}

.model-grid.is-list-view .card-content {
  padding: 4px 4px 4px 0;
}

.card-media {
  position: relative;
  min-height: 240px;
  padding: 16px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 -30px 44px rgba(255, 255, 255, 0.08);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(18, 26, 71, 0) 0%, rgba(18, 26, 71, 0.12) 100%);
  pointer-events: none;
}

.media-sky {
  background: linear-gradient(145deg, #b7d8f4, #a2c9ec 60%, #d8ebfb);
}

.media-navy {
  background: linear-gradient(145deg, #192f70, #203a86 60%, #11255e);
}

.media-peach {
  background: linear-gradient(145deg, #fae4d5, #f9d7c4 60%, #fff3e8);
}

.media-orange {
  background: linear-gradient(145deg, #ff975f, #ff9b66 55%, #ffbe8e);
}

.media-violet {
  background: linear-gradient(145deg, #bcb4ec, #a69ce2 58%, #d3cdf9);
}

.media-green {
  background: linear-gradient(145deg, #a4d98d, #98d37c 55%, #c7efb0);
}

.card-type,
.media-badge,
.soft-pill,
.profile-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.card-type,
.media-badge {
  position: relative;
  z-index: 3;
  max-width: calc(100% - 86px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #c2c7dc;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.favorite-button.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.media-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.card-viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.card-media-placeholder,
.viewer-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.card-media-placeholder {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.card-media-placeholder strong,
.viewer-placeholder-copy strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 2rem;
  letter-spacing: -0.05em;
  color: rgba(31, 38, 66, 0.92);
}

.card-media-placeholder p,
.viewer-placeholder-copy p {
  margin: 0;
  color: rgba(31, 38, 66, 0.7);
  font-weight: 700;
}

.card-content {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  height: 100%;
  padding: 6px 4px 4px;
  align-content: start;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 0;
}

.card-heading h2 {
  /* max-width: 10ch; */
  font-size: 1.5rem;
  line-height: 0.98;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p,
.product-lead,
.related-card p,
.product-note p,
.profile-lead,
.profile-summary-text,
.profile-item-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.card-format-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.92);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-tag-type {
  border-color: rgba(31, 38, 66, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.card-side-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.card-price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.card-price-badge.is-free {
  color: var(--blue);
}

.card-cart-form {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  margin: 0;
}

.card-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 38, 66, 0.82);
  color: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.card-stats,
.profile-panel-actions,
.profile-item-stats,
.profile-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-stats {
  min-height: 24px;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(79, 108, 247, 0.07);
  border-radius: 999px;
  background: rgba(247, 249, 255, 0.96);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.card-stat-icon,
.card-action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.card-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(79, 108, 247, 0.08);
}

.card-footer > * {
  flex: 1 1 0;
}

.card-footer .buy-button,
.card-footer .secondary-link,
.card-footer .card-download-link {
  gap: 8px;
  min-width: 0;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.product-actions .hero-link,
.product-actions .secondary-link,
.product-actions .buy-button {
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  justify-content: flex-start;
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.product-action-form {
  margin: 0;
}

.product-action-form .secondary-link,
.product-action-form .buy-button {
  width: 100%;
}

.card-download-link.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.hero-link,
.secondary-link,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
}

.hero-link,
.buy-button {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.buy-button {
  min-width: 140px;
  border: 0;
}

.secondary-link {
  border: 1px solid rgba(79, 108, 247, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.header-link {
  min-height: 40px;
  padding: 0 16px;
}

.header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.header-link.is-active {
  border-color: rgba(79, 108, 247, 0.24);
  background: var(--blue-soft);
  color: var(--blue);
}

.text-link {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.inline-cta {
  width: fit-content;
}

.soft-pill {
  width: fit-content;
  background: var(--blue-soft);
  color: var(--blue);
}

.product-hero,
.related-head {
  display: grid;
  gap: 18px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.product-viewer-panel,
.product-info-panel {
  padding: 22px;
}

.product-viewer-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.product-viewer-shell {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, #6e6e73 0%, #5f5f64 100%);
}

.viewer-placeholder {
  padding: 28px;
}

.viewer-placeholder-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.product-viewer,
.glb-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.glb-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.product-viewer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.obj-viewer {
  width: 100%;
  height: 560px;
}

.obj-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.texture-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.texture-panel-top h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.texture-panel-inline {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-items: center;
}

.texture-panel-inline .texture-panel-top {
  text-align: center;
}

.texture-groups {
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
}

.texture-group-block {
  display: grid;
  gap: 10px;
}

.texture-group-head strong {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.texture-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.texture-swatch {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 92px;
  padding: 6px;
  border: 1px solid rgba(79, 108, 247, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
}

.texture-swatch.active {
  border-color: rgba(79, 108, 247, 0.28);
  background: var(--blue-soft);
}

.texture-swatch-color {
  display: inline-block;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(31, 38, 66, 0.1);
  border-radius: 10px;
  box-shadow: inset 0 -18px 24px rgba(31, 38, 66, 0.1);
}

.texture-swatch-color.has-image,
.texture-preview-sample {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.texture-swatch-label {
  font-weight: 800;
  font-size: 0.82rem;
  text-align: center;
}

.texture-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.texture-preview-inline {
  width: min(460px, 100%);
  margin-top: 4px;
}

.texture-preview-sample {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(31, 38, 66, 0.08);
  border-radius: 20px;
  box-shadow: inset 0 -12px 18px rgba(31, 38, 66, 0.06);
}

.texture-preview-sample-neutral {
  background:
    radial-gradient(circle at 28% 28%, rgba(79, 108, 247, 0.18), transparent 34%),
    linear-gradient(145deg, #eef3ff, #f8faff);
}

.texture-preview strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.product-info-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.product-info-panel h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.product-lead {
  max-width: 32ch;
}

.product-like-button {
  background: rgba(255, 255, 255, 0.94);
}

.like-toggle-button.is-active {
  border-color: rgba(79, 108, 247, 0.28);
  background: var(--blue-soft);
  color: var(--blue);
}

.product-specs,
.profile-facts {
  display: grid;
  gap: 16px;
}

.product-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-specs div,
.profile-fact-row {
  padding: 14px 15px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 16px;
  background: rgba(245, 247, 255, 0.82);
}

.product-specs span,
.profile-fact-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-specs strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-cart-button {
  box-shadow: 0 16px 30px rgba(56, 78, 192, 0.18);
}

.product-delivery-button {
  border-style: dashed;
}

.product-actions .secondary-link[disabled] {
  background: rgba(245, 247, 255, 0.9);
  border-color: rgba(79, 108, 247, 0.14);
  color: #697189;
  box-shadow: none;
}

.product-note {
  padding: 16px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(245, 247, 255, 0.74);
}

.product-note strong {
  display: block;
  margin-bottom: 8px;
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.empty-state-panel {
  min-height: 220px;
  align-content: center;
}

.panel-top h2,
.related-card h3 {
  font-size: 1.8rem;
  line-height: 1;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.related-card-media {
  position: relative;
  min-height: 210px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(79, 108, 247, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(236, 242, 255, 0.96), rgba(246, 249, 255, 0.98));
}

.related-card-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background: transparent;
}

.related-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 22px;
  text-align: center;
}

.related-card-placeholder strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: rgba(31, 38, 66, 0.92);
}

.related-card-placeholder p {
  margin: 0;
  color: rgba(31, 38, 66, 0.68);
  font-weight: 700;
}

.related-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.related-format {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.related-card-action {
  width: fit-content;
  margin-top: auto;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.profile-card,
.profile-side-card,
.profile-list-panel {
  border-radius: var(--radius-lg);
}

.profile-card {
  display: grid;
  gap: 18px;
}

.creator-avatar {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, #e0e7ff, #f7e6ef);
  color: var(--blue);
  font-family: var(--font-sans);
  font-weight: 700;
}

.profile-avatar-large {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  font-size: 1.4rem;
}

.profile-header-row {
  align-items: flex-start;
}

.profile-heading-line {
  flex-wrap: wrap;
}

.profile-header-copy {
  display: grid;
  gap: 8px;
}

.profile-header-copy h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.profile-header-copy strong {
  font-size: 1rem;
}

.profile-specialties {
  flex-wrap: wrap;
}

.profile-meta-chip {
  border: 1px solid rgba(79, 108, 247, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted-strong);
}

.profile-item-list {
  display: grid;
  gap: 12px;
}

.profile-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: var(--surface-soft);
}

.profile-item-main {
  display: grid;
  gap: 6px;
}

.profile-item-main strong {
  font-size: 1.05rem;
}

.profile-item-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.profile-item-actions {
  justify-content: flex-end;
}

.auth-panel {
  width: min(560px, 100%);
  margin: 0 auto;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(79, 108, 247, 0.12);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(79, 108, 247, 0.28);
  box-shadow: 0 0 0 5px rgba(79, 108, 247, 0.08);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.auth-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-error {
  background: #fff1f2;
  color: #b42318;
}

.auth-success {
  background: #edfdf3;
  color: #027a48;
}

.inline-form {
  margin: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.cart-panel,
.cart-summary {
  align-content: start;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.cart-item-main,
.cart-item-actions,
.cart-item-meta,
.cart-summary-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-item-copy {
  display: grid;
  gap: 6px;
}

.cart-item-copy strong,
.cart-summary-rows strong {
  font-size: 1rem;
}

.cart-item-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cart-quantity-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.cart-quantity-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-quantity-form input {
  width: 88px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(79, 108, 247, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.cart-line-total {
  display: grid;
  gap: 4px;
  min-width: 110px;
}

.cart-line-total span,
.cart-summary-rows span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-summary-rows {
  display: grid;
  gap: 12px;
}

.cart-summary-rows div {
  padding: 14px 16px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.upload-panel {
  width: min(840px, 100%);
  margin: 0 auto;
}

.upload-form,
.upload-grid {
  display: grid;
  gap: 16px;
}

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

.upload-field,
.upload-check {
  display: grid;
  gap: 8px;
}

.tag-picker-field {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.upload-field span,
.upload-check span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.upload-field input,
.upload-field select,
.upload-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(79, 108, 247, 0.12);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.upload-field textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.upload-field input[type="file"] {
  padding: 12px 16px;
}

.upload-field input:focus,
.upload-field select:focus,
.upload-field textarea:focus {
  border-color: rgba(79, 108, 247, 0.28);
  box-shadow: 0 0 0 5px rgba(79, 108, 247, 0.08);
}

.upload-field-full {
  grid-column: 1 / -1;
}

.upload-check {
  grid-column: 1 / -1;
  grid-auto-flow: column;
  justify-content: flex-start;
  align-items: center;
}

.upload-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.upload-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-form-simple {
  gap: 22px;
}

.upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 22px;
  border: 1px dashed rgba(79, 108, 247, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(79, 108, 247, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.98));
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: rgba(79, 108, 247, 0.42);
  box-shadow: 0 16px 32px rgba(54, 77, 184, 0.08);
}

.upload-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone-copy {
  display: grid;
  gap: 4px;
}

.upload-dropzone-copy strong {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.upload-preview-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(67, 177, 241, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.96));
}

.upload-preview-copy {
  display: grid;
  gap: 6px;
}

.upload-preview-copy p {
  margin: 0;
  color: var(--muted);
}

.upload-preview-viewer {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(67, 177, 241, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(235, 242, 255, 0.88), rgba(248, 251, 255, 0.96));
}

.upload-preview-panel.is-empty .upload-preview-viewer {
  display: none;
}

.admin-list {
  display: grid;
  gap: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-main,
.admin-sidebar,
.admin-sidebar-nav,
.admin-sidebar-stack,
.admin-overview-grid {
  display: grid;
  gap: 18px;
}

.admin-main {
  gap: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 112px;
  gap: 22px;
  padding: 24px;
}

.admin-sidebar-head {
  display: grid;
  gap: 10px;
}

.admin-sidebar-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.admin-sidebar-copy,
.admin-sidebar-link span,
.admin-sidebar-card small,
.admin-overview-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-sidebar-link,
.admin-sidebar-card,
.admin-overview-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-sidebar-link:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 108, 247, 0.18);
  background: rgba(244, 247, 255, 0.96);
}

.admin-sidebar-link strong,
.admin-sidebar-card strong,
.admin-overview-card strong {
  display: block;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.admin-sidebar-link strong {
  font-size: 1rem;
}

.admin-sidebar-card span,
.admin-overview-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.admin-sidebar-card strong,
.admin-overview-card strong {
  font-size: 1.65rem;
}

.admin-overview-shell {
  gap: 20px;
}

.admin-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell,
.admin-editor {
  gap: 20px;
  padding: 24px;
}

.admin-shell-head,
.admin-shell-stats,
.admin-card-actions,
.admin-editor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-shell-head {
  justify-content: space-between;
}

.admin-shell-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.admin-shell-stats,
.admin-editor-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-shell-stats span:not(:last-child)::after,
.admin-editor-meta span:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: #d0d5e7;
}

.admin-bulk-bar,
.admin-bulk-select-all,
.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-bulk-bar {
  padding: 0 2px;
}

.admin-bulk-select-all {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-bulk-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-bulk-bar select {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(79, 108, 247, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 247, 255, 0.92);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-check {
  width: 44px;
}

.admin-table-check input {
  width: 16px;
  height: 16px;
}

.admin-table-title strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.admin-table-title small {
  display: -webkit-box;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-table-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(79, 108, 247, 0.1);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-table-status.is-live {
  border-color: rgba(38, 138, 87, 0.12);
  background: rgba(239, 250, 243, 0.94);
  color: #1f7a4d;
}

.admin-table-actions form {
  margin: 0;
}

.admin-table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-table-link.is-danger {
  color: #a9362a;
}

.admin-editor-form,
.admin-editor-grid {
  display: grid;
  gap: 16px;
}

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

.admin-field span,
.admin-toggle span {
  color: var(--muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  min-height: 48px;
  border-color: rgba(79, 108, 247, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.admin-field textarea {
  min-height: 180px;
}

.admin-toggle {
  align-self: end;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-card-actions form {
  margin: 0;
}

.upload-dropzone-copy small,
.upload-file-meta {
  color: var(--muted);
}

.upload-file-meta {
  font-weight: 700;
}

.tag-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-picker-option {
  position: relative;
  display: inline-flex;
}

.tag-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-picker-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-picker-option span:hover {
  transform: translateY(-1px);
}

.tag-picker-option input:checked + span {
  border-color: rgba(79, 108, 247, 0.28);
  background: var(--blue-soft);
  color: var(--blue);
}

.tag-picker-option input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(79, 108, 247, 0.1);
}

@media (max-width: 1180px) {
  .top-header-inner,
  .store-toolbar,
  .library-head {
    flex-wrap: wrap;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

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

  .product-layout {
    grid-template-columns: 1fr;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .top-header {
    position: static;
  }

  .top-header-inner {
    align-items: flex-start;
    gap: 18px;
    min-height: auto;
    padding: 14px 0;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .model-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .store-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .shell-inner {
    width: calc(100vw - 24px);
  }

  .top-header-inner {
    min-height: 76px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .storefront {
    padding: 18px 0 42px;
  }

  .page-orb {
    display: none;
  }

  .model-grid,
  .product-specs,
  .related-grid,
  .texture-preview,
  .profile-layout,
  .profile-item-row,
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .product-viewer-panel,
  .product-info-panel,
  .content-panel,
  .related-card {
    padding: 18px;
  }

  .model-card {
    gap: 14px;
    padding: 12px;
  }

  .card-media {
    min-height: 220px;
    border-radius: 18px;
  }

  .card-content {
    gap: 10px;
    padding: 4px 2px 2px;
  }

  .product-viewer,
  .product-viewer-shell {
    min-height: 0;
  }

  .product-viewer {
    height: 100%;
  }

  .product-breadcrumbs {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .product-actions {
    width: 100%;
    gap: 10px;
  }

  .product-actions .hero-link,
  .product-actions .secondary-link,
  .product-actions .buy-button {
    min-height: 60px;
    padding: 13px 16px;
  }

  .product-specs div,
  .profile-fact-row,
  .product-note {
    padding: 13px 14px;
  }

  .upload-panel,
  .auth-panel {
    width: 100%;
  }

  .profile-item-meta,
  .profile-item-actions {
    justify-content: flex-start;
  }

  .admin-shell-head {
    align-items: flex-start;
  }

  .admin-bulk-bar {
    align-items: flex-start;
  }

  .admin-col-seller,
  .admin-col-size,
  .admin-col-updated {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell-inner {
    width: calc(100vw - 16px);
  }

  .storefront {
    padding: 12px 0 36px;
  }

  .storefront-inner {
    gap: 18px;
  }

  .top-header-inner,
  .store-toolbar {
    gap: 14px;
    padding: 12px 0;
  }

  .brand-copy small,
  .profile-copy small {
    display: none;
  }

  .top-actions,
  .auth-actions,
  .upload-actions {
    width: 100%;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .top-actions > * {
    min-width: 0;
  }

  .top-actions .inline-form {
    display: block;
    width: 100%;
    margin: 0;
  }

  .top-actions .profile-chip {
    grid-column: 1 / -1;
    order: -1;
  }

  .toolbar-tabs,
  .toolbar-filters,
  .profile-specialties,
  .texture-swatches {
    width: 100%;
  }

  .toolbar-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 0 2px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .toolbar-tabs::-webkit-scrollbar {
    display: none;
  }

  .toolbar-tabs .toolbar-tab {
    flex: 0 0 auto;
  }

  .toolbar-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 0 2px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .toolbar-filters::-webkit-scrollbar {
    display: none;
  }

  .toolbar-filters .filter-pill {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
  }

  .card-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  .buy-button,
  .hero-link,
  .secondary-link,
  .header-link {
    width: 100%;
  }

  .profile-chip {
    width: 100%;
    justify-content: flex-start;
    padding-right: 12px;
  }

  .profile-panel-actions {
    width: 100%;
  }

  .library-head h2,
  .panel-top h2,
  .related-card h3 {
    font-size: 1.54rem;
  }

  .product-info-panel h1 {
    font-size: 2rem;
  }

  .product-viewer-top .soft-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .admin-shell,
  .admin-sidebar,
  .admin-editor {
    padding: 16px;
  }

  .admin-card-actions,
  .admin-shell-stats,
  .admin-bulk-bar,
  .admin-sidebar-stack {
    width: 100%;
  }

  .admin-card-actions .hero-link,
  .admin-card-actions .secondary-link {
    width: 100%;
  }

  .admin-bulk-bar .secondary-link {
    width: 100%;
  }

  .admin-bulk-bar select {
    width: 100%;
  }

  .admin-col-views,
  .admin-col-likes {
    display: none;
  }

  .admin-table-wrap {
    border-radius: 14px;
  }

  .admin-table {
    min-width: 640px;
  }

  .model-card {
    gap: 12px;
    padding: 12px;
  }

  .card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-heading h2 {
    max-width: none;
    font-size: 1.34rem;
  }

  .card-content {
    gap: 9px;
  }

  .card-meta-row {
    align-items: flex-start;
    /* flex-direction: column; */
    gap: 8px;
  }

  .card-side-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .card-media {
    min-height: 188px;
    padding: 12px;
  }

  .card-cart-form {
    top: 10px;
    left: 10px;
  }

  .card-cart-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .card-price-badge {
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .card-type,
  .media-badge,
  .soft-pill,
  .profile-meta-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .card-type,
  .media-badge {
    display: none;
  }

  .favorite-button {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .card-viewer {
    inset: 0;
  }

  .card-media::after {
    display: none;
  }

  .card-content {
    gap: 8px;
    padding-top: 0;
  }

  .card-tags {
    gap: 6px;
  }

  .card-format-tags {
    gap: 6px;
  }

  .card-tag {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .card-stat {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.79rem;
  }

  .card-stat-icon,
  .card-action-icon {
    width: 14px;
    height: 14px;
  }

  .cart-item-actions {
    align-items: stretch;
  }

  .tag-picker {
    gap: 8px;
  }

  .tag-picker-option {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .tag-picker-option span {
    width: 100%;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .upload-dropzone {
    padding: 22px 16px;
  }

  .upload-dropzone-copy strong {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .shell-inner {
    width: calc(100vw - 5px);
  }

  .brand-copy strong {
    font-size: 1.3rem;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .store-toolbar,
  .content-panel,
  .related-card,
  .product-viewer-panel,
  .product-info-panel,
  .admin-shell,
  .admin-editor {
    padding: 14px;
  }

  .product-viewer-shell {
    border-radius: 18px;
  }

  .top-header-inner,
  .store-toolbar {
    gap: 12px;
  }

  .toolbar-tabs {
    gap: 12px;
  }

  .toolbar-filters {
    gap: 5px;
  }

  .toolbar-filters .filter-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .tag-picker-option {
    flex-basis: 100%;
  }

  .top-actions {
    grid-template-columns: 1fr;
  }

  .profile-chip {
    padding-right: 10px;
  }

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

  .model-card {
    padding: 10px;
  }

  .card-media {
    min-height: 172px;
    padding: 10px;
  }

  .card-cart-form {
    top: 8px;
    left: 8px;
  }

  .card-cart-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .card-price-badge {
    top: 8px;
    right: 8px;
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .card-tags {
    gap: 5px;
  }

  .card-format-tags {
    gap: 5px;
  }

  .card-tag {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .card-stats {
    gap: 6px;
  }

  .card-stat {
    min-height: 26px;
    padding: 0 7px;
    font-size: 0.76rem;
  }

  .card-stat-icon,
  .card-action-icon {
    width: 13px;
    height: 13px;
  }

  .card-footer .buy-button,
  .card-footer .secondary-link,
  .card-footer .card-download-link {
    font-size: 0.8rem;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .cart-item {
    padding: 16px;
  }

  .cart-quantity-form,
  .cart-quantity-form label {
    width: 100%;
  }

  .cart-quantity-form input,
  .cart-quantity-form .secondary-link {
    width: 100%;
  }
}

.checkout-card,
.checkout-steps-preview,
.order-summary-grid,
.order-progress,
.order-download-list,
.admin-metrics-grid,
.admin-orders-grid,
.admin-order-rules,
.admin-order-controls,
.admin-order-controls form {
  display: grid;
  gap: 14px;
}

.checkout-card {
  margin-top: 18px;
}

.checkout-field {
  gap: 8px;
}

.checkout-field textarea {
  min-height: 110px;
  resize: vertical;
}

.checkout-steps-preview div,
.order-summary-card,
.order-note-box,
.admin-metric-card,
.admin-chart-card {
  padding: 16px 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.checkout-steps-preview strong,
.order-summary-card strong,
.order-note-box strong,
.admin-metric-card strong,
.order-progress-step strong,
.order-download-copy strong,
.admin-order-rules strong,
.admin-chart-card h3 {
  display: block;
}

.checkout-steps-preview span,
.checkout-note,
.order-summary-card span,
.order-summary-card small,
.order-download-meta,
.order-note-box p,
.admin-metric-card span,
.admin-metric-card small,
.admin-order-rules p,
.admin-chart-bar-wrap small,
.admin-orders-table td small {
  color: var(--muted);
}

.checkout-note,
.order-note-box p,
.order-progress-step p,
.admin-order-rules p {
  margin: 0;
}

.stripe-checkout-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.stripe-checkout-panel.is-disabled {
  background: rgba(245, 247, 255, 0.86);
}

.stripe-checkout-copy {
  display: grid;
  gap: 6px;
}

.stripe-checkout-copy p,
.checkout-error {
  margin: 0;
  color: var(--muted);
}

.checkout-error {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(180, 35, 24, 0.14);
  background: rgba(255, 241, 242, 0.9);
  color: #9c3a2d;
  font-size: 0.92rem;
  font-weight: 700;
}

.order-layout,
.admin-orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.order-panel-top {
  align-items: flex-start;
}

.order-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.order-summary-card span,
.admin-metric-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.order-summary-card strong {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 108, 247, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.order-status-pill.is-pending,
.admin-table-status.is-pending {
  background: rgba(255, 246, 225, 0.94);
  border-color: rgba(214, 158, 46, 0.18);
  color: #8d5a00;
}

.order-status-pill.is-working,
.admin-table-status.is-working {
  background: rgba(236, 244, 255, 0.94);
  border-color: rgba(79, 108, 247, 0.18);
  color: #3150c2;
}

.order-status-pill.is-ready,
.admin-table-status.is-ready {
  background: rgba(239, 250, 243, 0.94);
  border-color: rgba(38, 138, 87, 0.12);
  color: #27754b;
}

.order-progress-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  background: rgba(252, 253, 255, 0.9);
}

.order-progress-step.is-complete {
  border-color: rgba(38, 138, 87, 0.16);
  background: rgba(241, 251, 245, 0.95);
}

.order-progress-step.is-current {
  box-shadow: 0 18px 34px rgba(79, 108, 247, 0.08);
}

.order-progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 108, 247, 0.14), rgba(67, 177, 241, 0.16));
  font-weight: 800;
  font-family: var(--font-sans);
}

.order-download-list {
  gap: 12px;
}

.order-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.order-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.82rem;
}

.order-download-button {
  min-width: 170px;
  justify-content: center;
}

.order-download-button.is-disabled,
.secondary-link[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.admin-orders-shell {
  gap: 20px;
}

.admin-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric-card strong {
  margin-bottom: 6px;
  font-size: 1.45rem;
  font-family: var(--font-sans);
}

.admin-chart-card h3 {
  margin: 0;
  font-family: var(--font-sans);
}

.admin-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 220px;
  padding-top: 18px;
}

.admin-chart-bar-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  height: 100%;
}

.admin-chart-bar {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, rgba(79, 108, 247, 0.85), rgba(67, 177, 241, 0.8));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-order-list {
  display: grid;
  gap: 16px;
}

.admin-order-card,
.admin-order-panel {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.admin-order-card {
  gap: 18px;
}

.admin-order-card-top,
.admin-order-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-order-identity,
.admin-order-summary {
  display: grid;
  gap: 6px;
}

.admin-order-kicker,
.admin-order-token,
.admin-order-panel span,
.admin-order-panel small,
.admin-order-summary small {
  margin: 0;
  color: var(--muted);
}

.admin-order-kicker,
.admin-order-panel span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-order-identity h3,
.admin-order-panel strong,
.admin-order-summary strong {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.admin-order-identity h3 {
  font-size: 1.35rem;
}

.admin-order-summary {
  justify-items: end;
}

.admin-order-summary strong {
  font-size: 1.5rem;
}

.admin-order-card-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-order-panel strong {
  font-size: 1rem;
}

.admin-order-delivery-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.admin-order-delivery-field {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 108, 247, 0.08);
  border-radius: 16px;
  background: rgba(247, 249, 255, 0.82);
}

.admin-order-delivery-field span,
.admin-order-delivery-field small {
  margin: 0;
  color: var(--muted);
}

.admin-order-delivery-field span {
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-order-delivery-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-order-status-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  flex: 1 1 420px;
}

.admin-order-status-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.admin-order-open-link {
  min-width: 156px;
}

.admin-order-controls form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-order-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(79, 108, 247, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-orders-table td small,
.admin-orders-table td strong {
  display: block;
}

@media (max-width: 1100px) {
  .admin-layout,
  .order-layout,
  .admin-orders-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-card-body {
    grid-template-columns: 1fr;
  }

  .order-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .order-download-item {
    flex-direction: column;
    align-items: stretch;
  }

  .order-download-button {
    width: 100%;
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 18px;
  }

  .admin-chart-bars {
    gap: 8px;
    min-height: 180px;
  }

  .admin-order-card,
  .admin-order-panel {
    padding: 16px;
  }

  .admin-order-status-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-order-open-link {
    width: 100%;
  }

  .admin-order-controls form {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Layout improvements — product · profile · admin
   ═══════════════════════════════════════════════════════════ */

/* ── Product page ─────────────────────────────────────────── */

/* Less gap between the format pills and the 3-D viewer */
.product-viewer-top {
  margin-bottom: 20px;
}

/* Visual divider between the spec table and the action buttons */
.product-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
}

/* "Back to store" takes the full bottom row and centres itself */
.product-back-button {
  grid-column: 1 / -1;
  justify-content: center;
}

/* Breathing room between product layout and the related section */
.related-head {
  margin-top: 18px;
}

/* ── Profile page ─────────────────────────────────────────── */

/* Horizontal label → value layout inside the sidebar fact cards */
.profile-fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
}

/* Remove stacking margin now that span and strong are inline */
.profile-fact-row span {
  margin-bottom: 0;
  flex-shrink: 0;
}

.profile-fact-row strong {
  text-align: right;
  font-size: 0.95rem;
  min-width: 0;
  word-break: break-word;
}

/* Reduce gap between fact rows since they are now shorter */
.profile-facts {
  gap: 10px;
}

/* Separator line above specialty / format chips */
.profile-specialties {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* Slightly smaller stat chips inside item rows */
.profile-item-stats .profile-meta-chip {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.78rem;
}

/* ── Admin page ───────────────────────────────────────────── */

/* Consistent shell padding across all three main sections */
.admin-overview-shell,
.admin-orders-shell {
  padding: 24px;
}

/* Coloured accent top-borders distinguish each overview card */
.admin-overview-card:nth-child(1) {
  border-top: 3px solid rgba(79, 108, 247, 0.38);
  padding-top: 14px;
}

.admin-overview-card:nth-child(2) {
  border-top: 3px solid rgba(214, 158, 46, 0.48);
  padding-top: 14px;
}

.admin-overview-card:nth-child(3) {
  border-top: 3px solid rgba(38, 138, 87, 0.42);
  padding-top: 14px;
}

/* Bottom divider under each section heading */
.admin-shell-head {
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

/* Metric card numbers: bolder and slightly larger */
.admin-metric-card strong {
  font-size: 1.65rem;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

/* Highlight the sidebar nav link for whichever section is currently anchored */
.admin-layout:has(#overview:target) .admin-sidebar-link[href="#overview"],
.admin-layout:has(#orders:target) .admin-sidebar-link[href="#orders"],
.admin-layout:has(#listings:target) .admin-sidebar-link[href="#listings"] {
  border-color: rgba(79, 108, 247, 0.22);
  background: var(--blue-soft);
  color: var(--blue);
}
