:root {
  --bg: #f7f5ef;
  --ink: #191c1f;
  --muted: #626b74;
  --line: #d9d5c8;
  --panel: #fffdf8;
  --accent: #0f766e;
  --accent-strong: #0b4f49;
  --warm: #d97706;
  --rose: #be123c;
  --shadow: 0 18px 50px rgba(29, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(220px, 560px) auto;
  gap: 16px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(25, 28, 31, 0.1);
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.search {
  display: grid;
  grid-template-columns: 1fr 74px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.search input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.icon-button,
.cart-button {
  border: 0;
  color: var(--ink);
  background: transparent;
}

.icon-button {
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-button {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.76;
}

h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.primary-button,
.secondary-button,
.add-button,
.buy-button,
.tab-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-button {
  background: var(--warm);
  color: white;
}

.secondary-button {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.catalog-shell {
  padding: 28px clamp(16px, 4vw, 54px) 26px;
}

.catalog-heading {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

#result-summary {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab-button {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tab-button[aria-selected="true"] {
  background: var(--accent);
  color: white;
  box-shadow: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(25, 28, 31, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(29, 27, 22, 0.06);
  scroll-margin: 120px;
}

.product-card.is-recommended {
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22), 0 18px 48px rgba(29, 27, 22, 0.16);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e8e4d8;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-info h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-size: 1.16rem;
  font-weight: 900;
}

.stock {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.add-button,
.buy-button,
.detail-button {
  width: 100%;
}

.add-button {
  background: var(--ink);
  color: white;
}

.buy-button {
  background: var(--warm);
  color: white;
}

.detail-button {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.chat-shell {
  padding: 0 clamp(16px, 4vw, 54px) 130px;
}

.chat-panel {
  display: grid;
  gap: 14px;
  max-width: 820px;
  border: 1px solid rgba(25, 28, 31, 0.1);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(29, 27, 22, 0.06);
}

.chat-heading {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding: 18px 18px 0;
}

#cart-total {
  font-size: 1.2rem;
  font-weight: 900;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 0 18px;
}

.chat-bubble {
  width: fit-content;
  max-width: min(92%, 620px);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.chat-bubble.ai {
  background: #eef7f5;
  color: var(--accent-strong);
}

.chat-bubble.user {
  justify-self: end;
  background: var(--ink);
  color: white;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 18px 18px;
}

.chat-form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
}

.assistant-orb {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: 86px;
  z-index: 95;
  display: grid;
  grid-template-columns: 84px minmax(110px, auto) minmax(0, 220px);
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 14px;
  border: 1px solid rgba(25, 28, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
  user-select: none;
}

.assistant-orb:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
}

.speak-again-button {
  display: block !important;
  visibility: visible !important;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.speak-again-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.ai-orb {
  position: relative;
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  isolation: isolate;
}

.orb-core {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(255, 214, 102, 0.86), transparent 22%),
    conic-gradient(from 140deg, #00d4ff, #7c3aed, #ff4d8d, #f59e0b, #10b981, #00d4ff);
  box-shadow:
    0 18px 42px rgba(15, 118, 110, 0.32),
    inset 0 0 24px rgba(255, 255, 255, 0.42);
}

.orb-core::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 62%);
  filter: blur(4px);
}

.orb-ring {
  position: absolute;
  inset: 2px;
  z-index: 1;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: inherit;
  opacity: 0;
}

.assistant-orb strong,
.assistant-orb span {
  display: block;
}

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

#assistant-status {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-assistant.idle .orb-core,
.ai-orb.idle .orb-core {
  animation: orbBreath 3.4s ease-in-out infinite;
}

.ai-assistant.listening .orb-core,
.ai-orb.listening .orb-core {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.88), transparent 18%),
    conic-gradient(from 140deg, #38bdf8, #2563eb, #22d3ee, #3b82f6, #38bdf8);
  animation: orbPulse 1.1s ease-in-out infinite;
}

.ai-assistant.listening .orb-ring,
.ai-orb.listening .orb-ring {
  opacity: 0.8;
  animation: orbWave 1.7s ease-out infinite;
}

.ai-assistant.thinking .orb-core,
.ai-orb.thinking .orb-core {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.88), transparent 18%),
    conic-gradient(from 140deg, #fbbf24, #d97706, #f59e0b, #facc15, #fbbf24);
  animation: orbThink 1.8s linear infinite;
}

.ai-assistant.thinking .orb-ring,
.ai-orb.thinking .orb-ring {
  opacity: 0.5;
  animation: orbGlow 1.25s ease-in-out infinite;
}

.ai-assistant.speaking .orb-core,
.ai-orb.speaking .orb-core {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.9), transparent 18%),
    conic-gradient(from 140deg, #5eead4, #0f766e, #14b8a6, #2dd4bf, #5eead4);
  animation: orbSpeak 0.46s ease-in-out infinite;
}

.ai-assistant.speaking .orb-ring,
.ai-orb.speaking .orb-ring {
  opacity: 0.85;
  animation: orbAudio 0.9s ease-out infinite;
}

.ai-assistant.error .orb-core,
.ai-orb.error .orb-core {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.9), transparent 18%),
    conic-gradient(from 140deg, #f97316, #be123c, #ef4444, #f59e0b, #f97316);
  animation: orbError 0.42s ease-in-out 4;
}

.ring-two {
  animation-delay: 0.28s;
}

.ring-three {
  animation-delay: 0.56s;
}

.assistant-stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 50% 38%, rgba(15, 118, 110, 0.24), transparent 34%),
    rgba(8, 11, 14, 0.9);
  color: white;
}

.assistant-stage.is-open {
  display: grid;
}

.stage-close,
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 800;
}

.stage-core {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(920px, 100%);
  text-align: center;
}

.stage-ai-orb {
  position: relative;
  display: grid;
  width: min(420px, 70vw);
  aspect-ratio: 1;
  place-items: center;
}

.stage-ai-orb .orb-core {
  width: min(260px, 48vw);
  height: min(260px, 48vw);
}

.stage-ai-orb .orb-ring {
  inset: 18%;
  border-color: rgba(255, 255, 255, 0.28);
}

.stage-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.stage-core h2 {
  max-width: 780px;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 1.06;
}

#stage-transcript {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.5;
}

.manual-play-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--accent-strong);
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.manual-play-button[hidden] {
  display: none;
}

.product-dialog,
.checkout-dialog {
  width: min(860px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop,
.checkout-dialog::backdrop {
  background: rgba(8, 11, 14, 0.55);
}

.product-dialog .dialog-close,
.checkout-dialog .dialog-close {
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.checkout-dialog {
  width: min(560px, calc(100vw - 28px));
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.checkout-form h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.checkout-summary {
  white-space: pre-line;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.checkout-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  outline: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 22px;
  padding: 26px;
}

.product-detail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.product-detail h2 {
  margin-bottom: 12px;
}

.product-detail p {
  color: var(--muted);
  line-height: 1.5;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.assistant-orb span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

elevenlabs-convai {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 30;
}

@keyframes orbBreath {
  0% {
    transform: scale(0.96);
    filter: hue-rotate(0deg);
  }

  50% {
    transform: scale(1.04);
    filter: hue-rotate(24deg);
  }

  100% {
    transform: scale(0.96);
    filter: hue-rotate(0deg);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 18px 42px rgba(15, 118, 110, 0.3),
      inset 0 0 24px rgba(255, 255, 255, 0.42);
  }

  50% {
    transform: scale(1.08);
    box-shadow:
      0 18px 56px rgba(0, 212, 255, 0.44),
      inset 0 0 28px rgba(255, 255, 255, 0.52);
  }
}

@keyframes orbWave {
  0% {
    opacity: 0.75;
    transform: scale(0.74);
  }

  100% {
    opacity: 0;
    transform: scale(1.72);
  }
}

@keyframes orbThink {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }

  100% {
    transform: rotate(360deg) scale(1.02);
    filter: hue-rotate(110deg);
  }
}

@keyframes orbGlow {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.86);
  }

  50% {
    opacity: 0.68;
    transform: scale(1.34);
  }
}

@keyframes orbSpeak {
  0%,
  100% {
    transform: scaleX(1) scaleY(1);
  }

  35% {
    transform: scaleX(1.06) scaleY(0.96);
  }

  70% {
    transform: scaleX(0.97) scaleY(1.08);
  }
}

@keyframes orbAudio {
  0% {
    opacity: 0.72;
    transform: scale(0.88);
  }

  100% {
    opacity: 0;
    transform: scale(1.48);
  }
}

@keyframes orbError {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .catalog-heading {
    display: block;
  }

  .catalog-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  #result-summary {
    margin-top: 8px;
    text-align: left;
  }

  .assistant-orb {
    left: 12px;
    right: 12px;
    top: 112px;
    bottom: auto;
    grid-template-columns: 70px 1fr;
  }

  .assistant-copy {
    grid-column: 1 / -1;
  }

  .speak-again-button {
    width: 100%;
  }

  .ai-orb {
    width: 70px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 430px) {
  .search {
    grid-template-columns: 1fr 74px;
  }
}

/* ── Mobile: 2-column product grid ── */
@media (max-width: 768px) {
  .product-grid,
  #product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 12px 16px !important;
  }

  .product-card {
    grid-template-rows: auto 1fr;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .product-info {
    gap: 6px;
    padding: 10px;
  }

  .product-card .product-info h3 {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .price {
    font-size: 13px;
    font-weight: 600;
  }

  .product-card .stock {
    font-size: 11px;
  }

  .product-card .add-button,
  .product-card .buy-button,
  .product-card .detail-button {
    width: 100%;
    min-height: 0;
    padding: 8px 0;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* ── Mobile visual redesign ── */
@media (max-width: 768px) {
  body {
    background: #0d1117;
    color: #f0f0f0;
  }

  .topbar {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .brand,
  .icon-button,
  .cart-button {
    color: #f0f0f0;
  }

  .cart-button {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .search {
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
  }

  .search input,
  input[type="text"],
  input[type="search"] {
    background: transparent;
    color: #f0f0f0;
    padding: 10px 14px;
    font-size: 14px;
  }

  .search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .product-info h3 {
    color: #f0f0f0;
  }

  .product-info p,
  .product-card .eyebrow {
    color: rgba(255, 255, 255, 0.65);
  }

  .product-card .price {
    color: #f0f0f0;
  }

  .chat-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .chat-bubble.ai {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin: 0 0 4px;
  }

  .chat-bubble.user {
    background: rgba(255, 255, 255, 0.12);
    color: #f0f0f0;
  }

  .chat-form input {
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    color: #f0f0f0;
  }

  .assistant-orb {
    background: rgba(13, 17, 23, 0.88);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .assistant-orb strong {
    color: #f0f0f0;
  }

  .assistant-orb span,
  #assistant-status {
    color: rgba(255, 255, 255, 0.7);
  }

  .ai-orb,
  .assistant-orb .ai-orb {
    width: 72px;
    height: 72px;
  }

  .speak-again-button {
    display: block !important;
    visibility: visible !important;
    background: rgba(232, 67, 147, 0.12);
    border: 1px solid rgba(232, 67, 147, 0.35);
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 500;
    color: #f472b6;
    min-width: 160px;
    text-align: center;
  }

  .ai-orb.idle .orb-core,
  .assistant-orb.idle .orb-core {
    animation: orbBreath 3s ease-in-out infinite;
    opacity: 0.85;
  }

  .ai-orb.listening .orb-core,
  .assistant-orb.listening .orb-core {
    animation: orbPulse 0.7s ease-in-out infinite;
    box-shadow: 0 0 32px rgba(99, 179, 237, 0.5);
  }

  .ai-orb.thinking .orb-core,
  .assistant-orb.thinking .orb-core {
    animation: orbSpin 1.4s linear infinite;
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.4);
  }

  .ai-orb.speaking .orb-core,
  .assistant-orb.speaking .orb-core {
    animation: orbBeat 0.45s ease-in-out infinite alternate;
    box-shadow: 0 0 36px rgba(45, 212, 191, 0.5);
  }

  .ai-orb.error .orb-core,
  .assistant-orb.error .orb-core {
    animation: none;
    opacity: 0.5;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
  }

  @keyframes orbBeat {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
  }

  @keyframes orbSpin {
    from { transform: rotate(0deg) scale(1.02); }
    to   { transform: rotate(360deg) scale(1.02); }
  }
}

/* Mobile: keep the assistant in normal flow and protect the grid. */
@media (max-width: 768px) {
  body,
  #app,
  .app,
  main,
  [id="app"],
  [class="app"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .topbar {
    order: 1;
  }

  .assistant-orb {
    order: 2;
  }

  main {
    order: 3;
  }

  .assistant-stage,
  .assistant-stage.is-open,
  #assistant-stage,
  [class*="assistant"][class*="stage"],
  [class*="voice"][class*="container"] {
    display: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 1 !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 16px 0 8px !important;
    pointer-events: auto !important;
  }

  .assistant-orb {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: auto !important;
    margin: 12px;
    padding: 16px 12px 12px !important;
    pointer-events: auto !important;
  }

  .assistant-orb .assistant-copy {
    display: block !important;
    width: 100%;
    text-align: center;
  }

  .assistant-copy h2,
  .assistant-copy .state-heading,
  [class*="assistant"][class*="label"]:not(.orb-state-label),
  #assistant-message,
  #assistant-status,
  .stage-label,
  #stage-message,
  #stage-transcript {
    display: none !important;
  }

  .orb-state-label {
    display: block !important;
    margin-top: 10px;
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: 900;
  }

  .ai-orb,
  .assistant-orb .ai-orb,
  .stage-ai-orb,
  .orb-core {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 1 !important;
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
  }

  .product-grid,
  #product-grid,
  .products-grid,
  #products-grid,
  [class*="product"][class*="grid"],
  [class*="product"][class*="container"] {
    position: relative !important;
    z-index: 1 !important;
  }

  .catalog-shell {
    order: 2;
    padding: 16px 0 24px;
  }

  .catalog-heading,
  .category-tabs {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chat-shell {
    order: 1;
    padding: 0 12px 24px;
  }
}
