:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #111827;
  --muted: #667085;
  --accent: #ff8a00;
  --accent-dark: #d96f00;
  --border: #e5e7eb;
  --green: #188038;
  --link: #1d4ed8;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 0, 0.13), transparent 27rem),
    radial-gradient(circle at 82% 10%, rgba(35, 47, 62, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffaf2 0%, #ffffff 34rem);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
}

.home-screen {
  min-height: 100vh;
  padding: 4.5vh 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
  line-height: 1;
}

.home-brand-logo {
  display: block;
  width: min(70px, 24vw);
  height: auto;
  border-radius: 20px;
  flex: 0 0 auto;
}

.home-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #232f3e;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-subtitle {
  margin: 0 0 1.4rem;
  color: #5f6b7a;
  font-size: 1rem;
  text-align: center;
}

.home-article-link {
  margin: -0.85rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.home-article-link a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.home-article-link a:hover {
  text-decoration: underline;
}

.home-search {
  width: min(760px, 100%);
  display: grid;
  gap: 1rem;
}

.home-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.home-search textarea {
  width: 100%;
  min-height: 72px;
  max-height: 180px;
  padding: 1rem 6rem 1rem 3.65rem;
  border-radius: 14px;
  border-color: #f0b35b;
  font-size: 1.05rem;
  line-height: 1.45;
  resize: vertical;
}

.home-random-question-btn {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  z-index: 1;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8fafd;
  border-color: var(--border);
  color: #686868;
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-50%);
}

.home-random-question-btn:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--accent-dark);
}

.home-search-box #home-search-btn {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  min-width: 72px;
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 10px;
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 750;
  transform: translateY(-50%);
}

.home-search-box #home-search-btn:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.home-guided-hint {
  max-width: 620px;
  margin: -0.15rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.home-example-card {
  width: min(760px, 100%);
  margin-top: 1rem;
}

.example-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.example-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.example-card h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.example-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.example-hint,
.example-doc-meta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.example-document {
  margin: 0.8rem 0;
  padding: 0.85rem;
  border: 1px solid #f0d29d;
  border-radius: 14px;
  background: #fffaf2;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.example-product-image {
  width: 92px;
  height: 112px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #f0e5d0;
}

.example-product-copy {
  min-width: 0;
}

.example-document p:last-child {
  max-height: 10rem;
  margin: 0;
  overflow: auto;
  color: #344054;
  font-size: 0.9rem;
  line-height: 1.5;
}

.example-generate-btn,
.example-random-btn,
.example-question {
  border-radius: 10px;
}

.example-random-btn {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 650;
}

.example-generate-btn {
  width: 100%;
  background: var(--ink);
  border-color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.example-questions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.example-question {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border-color: #d0d5dd;
  color: var(--ink);
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}

.example-question:hover,
.example-question.active {
  border-color: var(--accent);
  background: #eff6ff;
  color: var(--accent-dark);
}

.reference-source-card {
  border-color: #f97316 !important;
  border-width: 3px !important;
  background: #fff7ed !important;
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.28), 0 14px 30px rgba(124, 45, 18, 0.18) !important;
}

.reference-source-card .rating {
  color: #9a3412;
  font-weight: 800;
}

.source-ref-flash {
  animation: source-ref-flash 1.4s ease;
}

.brand-blue {
  color: #4285f4;
}

.brand-red {
  color: #ea4335;
}

.brand-yellow {
  color: #fbbc05;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 4rem;
}

.results-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100vw;
  margin: -1.4rem calc(50% - 50vw) 1.25rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(12px);
}

.results-header-inner {
  width: min(840px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.results-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
}

.results-brand-logo {
  display: block;
  width: 34px;
  height: auto;
  border-radius: 8px;
}

.results-panel {
  min-width: 0;
  width: 100%;
}

.results-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 840px);
  gap: 1.25rem;
  align-items: start;
}

.results-example-card {
  position: sticky;
  top: 5.9rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.standard-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.standard-search textarea {
  width: 100%;
  min-height: 58px;
  max-height: 150px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border-color: #d0d5dd;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
}

.standard-search textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: 0;
}

.standard-search button {
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 12px;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}

.standard-search button:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.results-top-search {
  width: 100%;
  max-width: none;
}

input,
select,
textarea,
button {
  padding: 0.7rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input,
textarea {
  min-width: 0;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.16);
}

select {
  border-radius: 999px;
}

button {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ai-overview {
  max-width: none;
  margin: 0 0 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

.ai-turn.loading .ai-answer {
  position: relative;
  padding-left: 1.6rem;
}

.ai-turn.loading .ai-answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  border: 2px solid #c4c7c5;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.ai-history {
  display: grid;
  gap: 1.2rem;
}

.ai-turn {
  display: grid;
  gap: 0.55rem;
}

.ai-turn + .ai-turn {
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.ai-question {
  margin: 0;
  color: #101828;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.ai-answer {
  font-size: 0.98rem;
  line-height: 1.62;
  color: #344054;
}

.answer-ref {
  display: inline-flex;
  min-height: auto;
  margin: 0 0.08rem;
  padding: 0.02rem 0.28rem;
  border-radius: 999px;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.78em;
  font-weight: 800;
  line-height: 1.35;
  vertical-align: 0.08em;
}

.answer-ref:hover:not(:disabled),
.answer-ref:focus-visible {
  background: #ffedd5;
  border-color: #fb923c;
  color: #9a3412;
  outline: 0;
}

.answer-id {
  padding: 0.03rem 0.32rem;
  font-size: 0.9em;
  letter-spacing: 0.01em;
  vertical-align: baseline;
}

.reference-preview {
  position: fixed;
  z-index: 1500;
  width: min(340px, calc(100vw - 24px));
  padding: 0.65rem;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.7rem;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  color: #1f2937;
  pointer-events: auto;
}

.reference-preview::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid #fed7aa;
  border-top: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.reference-preview-media {
  width: 76px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #f3e7d7;
  border-radius: 10px;
  background: #fffaf2;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.reference-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.reference-preview-copy {
  min-width: 0;
}

.reference-preview-eyebrow,
.reference-preview-price,
.reference-preview-text {
  margin: 0;
}

.reference-preview-eyebrow {
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.reference-preview h3 {
  margin: 0.12rem 0 0.18rem;
  color: #101828;
  font-size: 0.95rem;
  line-height: 1.25;
}

.reference-preview-price {
  color: #b12704;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.reference-preview-text {
  margin-top: 0.24rem;
  color: #475467;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ai-answer p,
.ai-answer ul,
.ai-answer ol,
.ai-answer pre,
.ai-answer h1,
.ai-answer h2,
.ai-answer h3,
.ai-answer h4,
.ai-answer h5,
.ai-answer h6 {
  margin: 0.42rem 0;
}

.ai-answer ul,
.ai-answer ol {
  padding-left: 1.2rem;
}

.chat-sql {
  padding: 0.75rem 0.85rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  color: #101828;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-sql code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
}

.followup-form {
  max-width: none;
  margin: 1rem 0 1.6rem;
  padding: 0.55rem 0.55rem 0.55rem 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.followup-form textarea {
  min-height: 42px;
  max-height: 160px;
  resize: vertical;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  padding: 0.62rem 0.65rem;
  font-size: 0.98rem;
  line-height: 1.45;
  background: transparent;
}

.followup-form textarea:focus {
  outline: 0;
}

.followup-form button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.source-results {
  max-width: none;
  margin-top: 1.2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.source-results h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

#meta {
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.error-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #fecdca;
  border-left: 4px solid #d92d20;
  border-radius: 12px;
  background: #fffbfa;
  color: #7a1d17;
  font-size: 0.88rem;
  line-height: 1.4;
}

.error-banner.hidden {
  display: none;
}

.pagination {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-buttons {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.page-btn {
  min-width: 34px;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #23211d;
  cursor: pointer;
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-ellipsis {
  color: #6f675a;
  font-size: 0.86rem;
  padding: 0 0.1rem;
}

.page-meta {
  margin: 0;
  min-width: 96px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.feed-card {
  border-radius: 18px;
  border-left: 1px solid var(--border);
}

.card-media {
  position: relative;
  height: 220px;
  padding: 0.85rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7f7f7;
  border-bottom: 1px solid #edf0f3;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #ccd1d5;
  border-radius: 12px;
  color: var(--muted);
  background: linear-gradient(135deg, #fff, #eceff3);
}

.card:hover {
  transform: translateY(-1px);
  border-color: #c7d7fe;
  box-shadow: var(--shadow);
}

.card.clickable {
  cursor: pointer;
}

.media {
  position: relative;
  background: #f7f8f8;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  background: #232f3e;
  color: #fff;
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.media-placeholder {
  width: 88%;
  height: 132px;
  border-radius: 6px;
  border: 1px solid #d8d8d8;
  background: linear-gradient(135deg, #fefefe, #e9ecef);
}

.card-body {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.category-pill {
  width: max-content;
  margin: 0 0 0.25rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: #fff4e3;
  color: #9a5200;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: capitalize;
}

.price {
  margin: 0.15rem 0 0;
  color: #b12704;
  font-size: 1.32rem;
  font-weight: 800;
}

.rating {
  margin: 0;
  font-size: 0.82rem;
  color: #c45500;
  font-weight: 650;
}

.bought {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.delivery {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: flex-end;
}

.title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  color: #101828;
}

.id,
.dataset-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.id {
  margin: 0;
  font-size: 0.72rem;
  color: #7b7366;
  font-family: "Courier New", monospace;
}

.tags {
  display: none;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dadada;
  border-radius: 999px;
  padding: 0.15rem 0.42rem;
  font-size: 0.7rem;
  color: #4f4f4f;
  background: #f8f8f8;
}

.bullet-point {
  margin: 0;
  color: #4f473c;
  font-size: 0.76rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.description {
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
  color: #4d5156;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-modal.hidden {
  display: none;
}

.product-modal[hidden] {
  display: none !important;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.45);
}

.product-modal-card {
  position: relative;
  z-index: 1;
  width: calc(100vw - 2rem);
  max-width: 1600px;
  max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.product-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.product-modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.product-modal-close-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem;
  overflow: auto;
}

.product-page-media {
  position: sticky;
  top: 0;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.product-page-badge {
  display: inline-block;
  padding: 0.22rem 0.45rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #f2f8f8;
  color: #0f766e;
  border: 1px solid #b9d7d4;
}

.product-page-image {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.product-page-main {
  min-width: 0;
  width: 100%;
}

.product-page-brand,
.product-page-rating,
.product-page-description {
  margin: 0 0 0.52rem;
}

.product-page-brand {
  color: #2162a1;
  font-size: 0.9rem;
}

.product-page-rating {
  color: #c45500;
  font-size: 0.88rem;
}

.product-page-price {
  margin: 0.1rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f1111;
}

.product-page-description {
  color: #2f2b25;
  font-size: 0.93rem;
  line-height: 1.45;
}

.product-section-title {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.98rem;
}

.product-page-features {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
}

.product-page-features li {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #2c2823;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes source-ref-flash {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.28), 0 14px 30px rgba(124, 45, 18, 0.18);
  }

  45% {
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.48), 0 18px 36px rgba(124, 45, 18, 0.24);
  }
}

@media (max-width: 980px) {
  .results-layout {
    grid-template-columns: 1fr;
  }

  .results-example-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .container {
    padding: 1rem 1rem 2rem;
  }

  .results-header {
    grid-template-columns: 1fr;
    margin: -1rem -1rem 1rem;
    padding: 0.85rem 1rem;
  }

  .results-brand {
    font-size: 1.25rem;
  }

  .standard-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .standard-search button {
    width: 100%;
  }

  .home-screen {
    padding-top: 14vh;
  }

  .ai-overview,
  .standard-search,
  .source-results {
    max-width: none;
  }

  .product-modal-card {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .product-page {
    display: block;
  }

  .product-page-media {
    position: static;
  }

}
