/* Appily-Three — Verdant Prism (glasshouse lab aesthetic) */
:root {
  --deep: #0A2420;
  --deep-soft: #123530;
  --jade: #2DD4A8;
  --jade-dim: #1FA882;
  --coral: #FF8066;
  --coral-soft: #FF9A85;
  --violet: #8B7CF6;
  --violet-pale: #EDE9FE;
  --mist: #EEF3F1;
  --paper: #FAFAF8;
  --paper-2: #F2F5F4;
  --ink: #0C1815;
  --muted: #5C6B66;
  --white: #ffffff;
  --line: rgba(10, 36, 32, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-round: 999px;
  --font-display: 'Rubik', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --shadow: 0 22px 50px rgba(10, 36, 32, 0.14);
  --shadow-soft: 0 8px 24px rgba(10, 36, 32, 0.08);
  --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body.appily-store {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1 0 auto; }

/* ── Header ── */
.prism-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.prism-header.is-scrolled { box-shadow: var(--shadow-soft); }
.prism-spectrum {
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--violet), var(--coral), var(--jade));
  background-size: 200% 100%;
  animation: spectrum-shift 8s linear infinite;
}
@keyframes spectrum-shift {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

.prism-topbar { padding: 14px 0; }
.prism-topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand search actions";
  align-items: center;
  gap: 16px 24px;
}
.prism-menu-btn {
  display: none;
  grid-area: brand;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 10px;
}
.prism-menu-btn span {
  display: block; height: 2px; background: var(--deep);
  border-radius: 2px; transition: transform .2s;
}

.prism-brand {
  grid-area: brand;
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.prism-mark {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--deep);
  clip-path: var(--cut);
  position: relative;
}
.prism-mark::after {
  content: '';
  position: absolute; inset: 2px;
  background: linear-gradient(135deg, var(--jade), var(--violet));
  clip-path: var(--cut);
  opacity: .35;
}
.prism-mark-core {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  color: var(--jade); letter-spacing: .08em;
}
.prism-brand-kicker {
  display: block;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.prism-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700; color: var(--deep);
  line-height: 1.15; white-space: nowrap;
}
.prism-accent { color: var(--coral); }

.prism-search {
  grid-area: search;
  display: flex; align-items: stretch;
  max-width: 480px; width: 100%;
  justify-self: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(10, 36, 32, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.prism-search:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(45, 212, 168, 0.2);
}
.prism-search-icon {
  display: grid; place-items: center;
  padding: 0 14px; color: var(--jade-dim); font-size: 1rem;
}
.prism-search input {
  flex: 1; border: 0; background: transparent;
  padding: 11px 4px 11px 0;
  font: inherit; font-size: .88rem; outline: none; min-width: 0;
}
.prism-search-go {
  border: 0; background: var(--deep); color: var(--jade);
  padding: 0 20px; font: inherit; font-size: .78rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.prism-search-go:hover { background: var(--deep-soft); }

.prism-actions {
  grid-area: actions;
  display: flex; align-items: center; gap: 8px;
}
.prism-action {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-round);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .78rem; font-weight: 600;
  color: var(--deep);
  transition: border-color .2s, transform .2s;
}
.prism-action:hover { border-color: var(--jade); transform: translateY(-1px); }
.prism-action.is-active {
  border-color: var(--jade);
  background: rgba(45, 212, 168, 0.1);
}
.prism-action-icon { font-size: .9rem; opacity: .7; }
.prism-action-cart { position: relative; padding-right: 18px; }
.prism-cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--coral); color: var(--white);
  font-size: .68rem; font-weight: 700;
  border-radius: var(--radius-round);
  padding: 0 5px;
}

/* Nav rail */
.prism-rail-wrap {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}
.prism-rail-shell {
  padding: 0;
}
.prism-rail-head { display: none; }
.prism-rail {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 14px 0 16px;
  max-width: 920px;
  margin: 0 auto;
}
.prism-rail-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.prism-rail-group-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}
.prism-rail-chips {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.prism-rail-divider {
  width: 1px;
  align-self: stretch;
  margin: 22px 18px 6px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  flex-shrink: 0;
}

.prism-chip {
  flex: 1;
  min-width: 0;
  max-width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: transform .2s, border-color .2s, color .2s, box-shadow .2s, background .2s;
}
.prism-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 168, 0.45);
  color: var(--deep);
  box-shadow: var(--shadow-soft);
}
.prism-chip.is-active {
  background: linear-gradient(160deg, var(--deep) 0%, #0f3530 100%);
  border-color: var(--deep);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(10, 36, 32, 0.18);
}
.prism-chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(45, 212, 168, 0.12);
  color: var(--jade-dim);
  font-size: 1rem;
  line-height: 1;
}
.prism-chip.is-active .prism-chip-icon {
  background: rgba(45, 212, 168, 0.18);
  color: var(--jade);
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.25);
}
.prism-chip-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.prism-chip-code {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--jade-dim);
  opacity: 0.85;
}
.prism-chip.is-active .prism-chip-code {
  color: rgba(45, 212, 168, 0.85);
}
.prism-chip-label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Typography & buttons */
.eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--jade-dim); font-weight: 700; margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }
h1 em { font-style: normal; color: var(--coral); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-round);
  font-weight: 600; font-size: .88rem; border: 2px solid transparent;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--deep); color: var(--jade); border-color: var(--deep); }
.btn-primary:hover { background: var(--deep-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--deep); color: var(--deep); }
.btn-outline:hover { background: var(--mist); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-soft { background: var(--violet-pale); color: var(--deep); border-color: transparent; }
.btn-soft:hover { background: rgba(139, 124, 246, 0.25); }
.btn-light { background: var(--white); color: var(--deep); }
.btn-coral { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.link-arrow { font-weight: 600; color: var(--coral); font-size: .88rem; }
.link-arrow:hover { color: var(--coral-soft); }

/* ── Home hero ── */
.prism-hero {
  position: relative;
  padding: 56px 0 72px;
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
}
.prism-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 168, 0.22), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(139, 124, 246, 0.18), transparent 40%),
    radial-gradient(circle at 60% 10%, rgba(255, 128, 102, 0.12), transparent 35%);
  pointer-events: none;
}
.prism-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.prism-hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.prism-hero-lede {
  color: rgba(250, 250, 248, 0.78);
  max-width: 46ch; margin: 0 0 28px; font-size: 1.02rem;
}
.prism-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.prism-hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.prism-hero-stats li {
  padding-left: 14px;
  border-left: 3px solid var(--jade);
}
.prism-hero-stats strong {
  display: block; font-size: 1.4rem;
  color: var(--jade); font-family: var(--font-display);
}
.prism-hero-stats span {
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; opacity: .65;
}

.prism-hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prism-shard-stage {
  position: relative;
  width: min(100%, 440px);
  padding-left: 132px;
}
.prism-shard-main {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(45, 212, 168, 0.28);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.prism-shard-main:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 168, 0.55);
  box-shadow: 0 24px 48px rgba(10, 36, 32, 0.35);
}
.prism-shard-frame {
  margin: 0;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: var(--deep-soft);
}
.prism-shard-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prism-shard-cap {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(10, 36, 32, 0.94) 0%, rgba(10, 36, 32, 0.98) 100%);
  border-top: 1px solid rgba(45, 212, 168, 0.2);
}
.prism-shard-cap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.prism-shard-tag {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--jade);
  font-weight: 700;
}
.prism-shard-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--paper);
  white-space: nowrap;
}
.prism-shard-cap h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--paper);
  letter-spacing: -.01em;
}
.prism-shard-sub {
  margin: 0;
  font-size: .78rem;
  color: rgba(250, 250, 248, 0.62);
  line-height: 1.4;
}

.prism-shard-orbits {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 124px;
}
.prism-shard-orbit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: transform .2s, border-color .2s, background .2s;
}
.prism-shard-orbit:hover {
  transform: translateX(4px);
  border-color: rgba(45, 212, 168, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
.prism-shard-orbit-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.prism-shard-orbit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prism-shard-orbit-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.prism-shard-orbit-name {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prism-shard-orbit-price {
  font-size: .68rem;
  font-weight: 700;
  color: var(--jade);
  letter-spacing: .02em;
}
.prism-shard-orbit-1 { margin-left: 0; }
.prism-shard-orbit-2 { margin-left: 8px; }
.prism-shard-orbit-3 { margin-left: 4px; }

/* Category orbit row */
.prism-orbit-section { padding: 56px 0; background: var(--paper); }
.prism-orbit-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.prism-orbit-head h2 { margin: 0; font-size: 1.75rem; color: var(--deep); }
.prism-orbit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.prism-orbit-card {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.prism-orbit-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--jade), var(--violet));
}
.prism-orbit-card:nth-child(2)::before { background: linear-gradient(90deg, var(--coral), var(--jade)); }
.prism-orbit-card:nth-child(3)::before { background: linear-gradient(90deg, var(--violet), var(--coral)); }
.prism-orbit-card:nth-child(4)::before { background: linear-gradient(90deg, var(--jade), var(--coral)); }
.prism-orbit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prism-orbit-num {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 8px;
}
.prism-orbit-card h3 { margin: 0 0 6px; font-size: .92rem; color: var(--deep); }
.prism-orbit-count { font-size: .76rem; color: var(--muted); }
.prism-orbit-thumb {
  margin-top: 12px; height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
}
.prism-orbit-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Horizontal product shelf */
.prism-shelf-section { padding: 56px 0; background: var(--mist); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head-split { align-items: flex-start; }
.section-head h2 { margin: 0; font-size: 1.75rem; color: var(--deep); }
.section-head p { margin: 0; color: var(--muted); }
.benefit-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.benefit-list li {
  font-size: .72rem; font-weight: 600;
  padding: 6px 14px;
  background: var(--white);
  color: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-round);
}

.prism-shelf {
  display: flex; gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.prism-shelf::-webkit-scrollbar { height: 6px; }
.prism-shelf::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 6px; }

.product-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-img { position: relative; display: block; }
.product-img img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  background: var(--paper-2);
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--deep); color: var(--jade);
  font-size: .62rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--radius-round); text-transform: uppercase;
  letter-spacing: .06em;
}
.product-body { padding: 14px 16px 18px; }
.product-cat {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}
.product-body h3 {
  font-size: .92rem; margin: 6px 0;
  font-family: var(--font-body); font-weight: 600;
}
.product-variant { font-size: .78rem; color: var(--muted); margin: 0 0 12px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; color: var(--coral); font-size: 1.05rem; }

/* Product grid (shop) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-grid .product-card { flex: unset; }

/* Promo band */
.prism-band {
  padding: 64px 0;
  background: linear-gradient(120deg, var(--deep) 0%, #1a4038 40%, var(--deep-soft) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.prism-band::after {
  content: '';
  position: absolute; right: -10%; top: -30%;
  width: 50%; height: 160%;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.15), transparent 60%);
  pointer-events: none;
}
.prism-band-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  position: relative;
}
.prism-band-panel {
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.prism-band-panel h2 { margin: 0 0 10px; font-size: 1.35rem; }
.prism-band-panel p { margin: 0 0 20px; opacity: .82; font-size: .92rem; }
.prism-band-panel-accent {
  background: linear-gradient(135deg, rgba(255, 128, 102, 0.25), rgba(139, 124, 246, 0.2));
  border-color: rgba(255, 128, 102, 0.3);
}

/* Showcase mosaic */
.prism-showcase { padding: 56px 0; background: var(--paper); }
.prism-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
}
.prism-mosaic-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .25s;
}
.prism-mosaic-item:hover { transform: scale(1.02); z-index: 1; }
.prism-mosaic-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.prism-mosaic-item:nth-child(4) { grid-row: span 2; }
.prism-mosaic-item img { width: 100%; height: 100%; object-fit: cover; }
.prism-mosaic-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(10, 36, 32, 0.85));
  color: var(--paper);
}
.prism-mosaic-info h3 { font-size: .82rem; margin: 4px 0; font-family: var(--font-body); font-weight: 600; }
.prism-mosaic-info .price { font-size: .88rem; color: var(--jade); }

/* Page heroes */
.page-hero {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 8px; color: var(--deep);
}
.hero-lede { color: var(--muted); margin: 0; }

/* Shop catalog */
.catalog-page { padding: 32px 0 64px; }
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.catalog-toolbar a {
  padding: 8px 16px;
  border-radius: var(--radius-round);
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: .2s;
}
.catalog-toolbar a:hover, .catalog-toolbar a.active {
  background: var(--deep); border-color: var(--deep); color: var(--jade);
}
.catalog-layout { display: block; }
.result-meta { font-size: .86rem; color: var(--muted); margin: 0 0 20px; }

/* Product detail */
.product-hero { padding: 40px 0 56px; }
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: start;
}
.product-gallery {
  position: sticky; top: 180px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: var(--cut);
  box-shadow: var(--shadow);
}
.product-gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 8px 0 14px; color: var(--deep);
}
.product-lede { color: var(--muted); margin-bottom: 24px; }
.spec-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 0 0 28px;
}
.spec-list div {
  padding: 14px;
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 3px solid var(--jade);
}
.spec-list dt {
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.spec-list dd { margin: 4px 0 0; font-weight: 600; font-size: .88rem; }

.buy-panel {
  padding: 28px;
  background: var(--deep);
  color: var(--paper);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.buy-panel::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.2), transparent 60%);
}
.buy-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; position: relative;
}
.price-lg { font-size: 1.75rem; color: var(--jade); font-weight: 700; }
.buy-form {
  display: flex; gap: 12px; align-items: flex-end;
  flex-wrap: wrap; position: relative;
}
.buy-form label { display: block; font-size: .78rem; margin-bottom: 4px; opacity: .8; }
.buy-form select {
  padding: 11px 14px; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); background: rgba(255,255,255,.08);
  color: var(--paper); font: inherit;
}
.fine-print { font-size: .76rem; opacity: .65; margin: 14px 0 0; position: relative; }

.product-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.product-tile-img img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-tile-info { padding: 12px 14px; }
.product-tile-info h3 { font-size: .85rem; margin: 0 0 6px; font-family: var(--font-body); font-weight: 600; }

/* Cart / checkout ticket layout */
.page-panel, .prism-page-section { padding: 40px 0 64px; }
.dual {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px; align-items: start;
}
.panel, .prism-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.prism-ticket {
  position: relative;
}
.prism-ticket::before,
.prism-ticket::after {
  content: '';
  position: absolute; left: 24px; right: 24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
}
.prism-ticket::before { top: 0; }
.prism-ticket::after { bottom: 0; }

.summary-box {
  position: sticky; top: 180px;
  background: var(--deep);
  color: var(--paper);
  border-color: var(--deep);
}
.summary-box h2, .summary-box h3 {
  margin: 0 0 16px; font-size: 1.15rem; color: var(--jade);
}
.summary-box .price-row { color: rgba(250, 250, 248, 0.85); }
.summary-box .price-tag, .summary-box strong { color: var(--jade); }
.summary-box hr { border: none; border-top: 1px dashed rgba(255,255,255,.2); margin: 18px 0; }

.cart-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cart-table th {
  text-align: left; padding: 10px 8px;
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.cart-table input[type="number"] {
  max-width: 72px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit;
}
.inline-list { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.price-row { display: flex; justify-content: space-between; gap: 12px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-grid label {
  display: block; font-size: .78rem; font-weight: 600;
  margin-bottom: 5px; color: var(--deep);
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--paper);
  transition: border-color .2s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(45, 212, 168, 0.15);
}
.form-grid textarea { min-height: 96px; resize: vertical; }

.notice {
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--mist); border: 1px solid var(--line);
  font-size: .88rem;
}
.notice.error { border-color: #f5c6c6; background: #fef2f2; color: #991b1b; }
.notice.success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.notice.warning { border-color: var(--coral); background: rgba(255, 128, 102, 0.1); }
.mini-copy { font-size: .85rem; color: var(--muted); margin: 0; }

.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--mist); border-radius: var(--radius-xl);
  border: 1px dashed var(--line);
}
.empty-state p { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--deep); }
.empty-state .sub { margin-top: 8px; font-size: .92rem; font-weight: 400; color: var(--muted); }

.section { padding: 48px 0 64px; }
.section-muted { background: var(--mist); }

/* Orders timeline */
.prism-orders-head { margin-bottom: 28px; }
.prism-orders-head h2 { margin: 0 0 6px; font-size: 1.85rem; color: var(--deep); }
.order-list { display: grid; gap: 14px; margin-top: 20px; }
.order-row, .prism-order-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow .2s;
}
.order-row:hover, .prism-order-card:hover { box-shadow: var(--shadow-soft); }
.prism-order-node {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(45, 212, 168, 0.25);
}
.orders-guest h3 { margin: 0 0 8px; font-size: 1.2rem; }

.support-timeline { display: grid; gap: 12px; }
.support-item {
  padding: 14px 16px;
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 3px solid var(--violet);
}

/* Pagination */
.catalog-pagination { margin-top: 36px; }
.pagination-inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination-btn, .pagination-num {
  padding: 8px 16px; border-radius: var(--radius-round);
  border: 1px solid var(--line); font-size: .86rem; font-weight: 600;
  background: var(--white);
}
.pagination-num.is-active { background: var(--deep); color: var(--jade); border-color: var(--deep); }
.pagination-btn.is-disabled { opacity: .4; pointer-events: none; }

/* Footer */
.prism-footer {
  margin-top: auto;
  position: relative;
  background: var(--deep);
  color: var(--paper);
  padding: 52px 0 0;
  overflow: hidden;
}
.prism-footer-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(45, 212, 168, 0.12), transparent);
  pointer-events: none;
}
.prism-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 28px; padding-bottom: 32px;
  position: relative;
}
.prism-footer-brand p { opacity: .75; font-size: .88rem; margin: 8px 0 0; }
.prism-footer-legal { font-size: .76rem; opacity: .55; }
.prism-footer-col h4 {
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .14em; margin: 0 0 14px; color: var(--jade);
}
.prism-footer-col a, .prism-footer-contact p {
  display: block; font-size: .86rem; opacity: .75;
  margin-bottom: 8px;
}
.prism-footer-col a:hover { opacity: 1; color: var(--jade); }
.prism-footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0; font-size: .78rem; opacity: .55;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  position: relative;
}
.prism-footer-tag { color: var(--jade); opacity: .7; }

/* Policy page accent */
.policy-page { background: var(--paper); }

/* Responsive */
@media (max-width: 960px) {
  .prism-topbar-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu brand actions"
      "search search search";
  }
  .prism-menu-btn {
    display: flex;
    grid-area: menu;
  }
  .prism-brand { grid-area: brand; }
  .prism-search { max-width: none; grid-area: search; }
  .prism-action-label { display: none; }
  .prism-action { padding: 10px 12px; }

  .prism-rail-wrap {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(10, 36, 32, 0.5);
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
    border: 0;
  }
  .prism-rail-wrap.is-open {
    opacity: 1; pointer-events: auto;
  }
  .prism-rail-wrap .container,
  .prism-rail-wrap .prism-rail-shell {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(320px, 88vw);
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 0;
    overflow-y: auto;
  }
  .prism-rail-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 18px;
    background: var(--deep); color: var(--paper);
  }
  .prism-rail-title {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
  }
  .prism-rail-close {
    border: 1px solid rgba(255,255,255,.3);
    background: transparent; color: var(--paper);
    padding: 6px 14px; border-radius: var(--radius-round);
    font: inherit; font-size: .78rem; cursor: pointer;
  }
  .prism-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 14px 20px;
    max-width: none;
    overflow-x: hidden;
  }
  .prism-rail-divider {
    width: auto;
    height: 1px;
    margin: 0;
    background: var(--line);
  }
  .prism-rail-group {
    align-items: stretch;
  }
  .prism-rail-group-label {
    padding-left: 4px;
  }
  .prism-rail-chips {
    flex-direction: column;
    align-items: stretch;
  }
  .prism-chip {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    max-width: none;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    text-align: left;
  }
  .prism-chip-body {
    align-items: flex-start;
  }
  .prism-chip-icon {
    flex-shrink: 0;
  }

  .prism-hero-grid { grid-template-columns: 1fr; }
  .prism-hero-visual { min-height: auto; }
  .prism-shard-stage {
    width: 100%;
    max-width: 420px;
    padding-left: 0;
    padding-top: 0;
  }
  .prism-shard-orbits {
    position: static;
    transform: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .prism-shard-orbit {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 108px;
    max-width: 140px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    text-align: center;
  }
  .prism-shard-orbit-thumb {
    width: 100%;
    height: 64px;
    border-radius: var(--radius);
  }
  .prism-shard-orbit-copy {
    align-items: center;
  }
  .prism-shard-orbit-1,
  .prism-shard-orbit-2,
  .prism-shard-orbit-3 { margin-left: 0; }
  .prism-shard-orbit:hover { transform: translateY(-2px); }
  .prism-band-grid { grid-template-columns: 1fr; }
  .prism-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .prism-mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .product-layout, .dual { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .summary-box { position: static; }
  .spec-list { grid-template-columns: 1fr; }
  .prism-footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .prism-mosaic { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .prism-mosaic-item:nth-child(1) { grid-column: auto; }
  .prism-footer-grid { grid-template-columns: 1fr; }
  .prism-hero-stats { gap: 16px; }
  .order-row, .prism-order-card { grid-template-columns: 1fr; gap: 8px; }
}
