:root {
  --chocolate: #3a2118;
  --chocolate-2: #4a2a20;
  --ink: #211b18;
  --muted: #6b625d;
  --line: #e3ddd5;
  --paper: #fbfaf7;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.page {
  min-height: 100vh;
}

.search-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background:
    radial-gradient(circle at 82% 22%, rgba(196, 158, 115, .16), transparent 24%),
    linear-gradient(90deg, #fffdf8 0%, #fbf7ef 58%, #efe2d0 100%);
}

.search-hero::after {
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 0;
  width: min(45vw, 720px);
  background: url("banner_merc.webp") center right / contain no-repeat;
  content: "";
  opacity: .92;
  pointer-events: none;
}

.search-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .96) 48%, rgba(255, 253, 248, .36) 73%, rgba(255, 253, 248, 0) 100%);
  content: "";
  pointer-events: none;
}

.search-hero--compact {
  min-height: 360px;
}

.search-hero__inner,
.content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1010px);
  margin: 0 auto;
}

.search-hero__inner {
  padding: 58px 0 62px;
}

.search-hero--compact .search-hero__inner {
  padding: 38px 0 42px;
}

.brand {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--chocolate);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--chocolate);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
}

.search-hero--compact h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.search-form {
  max-width: 860px;
}

.search-row {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--chocolate);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.search-row input {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  padding: 14px 16px 14px 60px;
  font-size: 19px;
  box-shadow: 0 12px 30px rgba(58, 33, 24, .06);
}

.search-row input::placeholder {
  color: #8b8581;
}

button {
  min-width: 108px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--chocolate);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: var(--chocolate-2);
}

.search-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.search-modes label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.filters {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.region-field {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.region-field input {
  width: 180px;
  padding: 10px 12px;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-links a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  padding: 0 16px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(58, 33, 24, .04);
}

.filter-links a:hover {
  border-color: #c9b8a6;
}

.filter-links a.active {
  background: var(--chocolate);
  color: var(--white);
  border-color: var(--chocolate);
}

.content {
  padding: 40px 0 70px;
}

.meta {
  color: var(--muted);
  margin: 0 0 18px;
}

.region-note {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 18px 0 0;
  color: var(--chocolate);
  font-size: 15px;
}

.region-note a {
  color: #1251a3;
}

.index-submit {
  max-width: 860px;
  margin-top: 18px;
}

.index-submit summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58, 33, 24, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: var(--chocolate);
  cursor: pointer;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  box-shadow: 0 10px 24px rgba(58, 33, 24, .05);
}

.index-submit summary::-webkit-details-marker {
  display: none;
}

.index-submit summary:hover {
  border-color: var(--chocolate);
  background: var(--white);
}

.source-submit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(58, 33, 24, .07);
}

.source-submit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.source-submit-form .wide {
  grid-column: 1 / -1;
}

.source-submit-form input,
.source-submit-form select,
.source-submit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.source-submit-form input,
.source-submit-form select {
  min-height: 44px;
  padding: 9px 11px;
}

.source-submit-form textarea {
  min-height: 86px;
  resize: vertical;
  padding: 11px;
}

.source-submit-form button {
  min-height: 48px;
  width: fit-content;
}

.submit-message {
  max-width: 860px;
  margin: 12px 0 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.submit-message--success {
  background: #edf7ef;
  color: #1f6d33;
}

.submit-message--error {
  background: #fff0ef;
  color: #8c1e1e;
}

.result-card {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.result-card a {
  color: #1251a3;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.source-line {
  margin-top: 7px;
  color: #5a3628;
  font-size: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--chocolate);
  font-size: 15px;
}

.product-meta strong {
  font-size: 18px;
}

.product-meta span {
  color: var(--muted);
}

.url {
  margin-top: 5px;
  color: #24703f;
  font-size: 14px;
  overflow-wrap: anywhere;
}

p {
  line-height: 1.45;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.image-card {
  min-width: 0;
}

.image-card a {
  display: block;
  color: #1251a3;
  text-decoration: none;
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.image-card span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.image-result-badge {
  display: inline-block;
  margin-top: 6px;
  max-width: 100%;
  border: 1px solid rgba(58, 33, 24, 0.16);
  border-radius: 6px;
  padding: 2px 6px;
  background: #f7f2ea;
  color: #5b463a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.image-card--broken {
  display: none;
}

.image-card p {
  margin: 5px 0 0;
  color: #555;
  font-size: 13px;
}

.empty,
.error {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error {
  color: #8c1e1e;
}

@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-hero,
  .search-hero--compact {
    min-height: 0;
  }

  .search-hero::after {
    opacity: .22;
    width: 100%;
    right: 0;
    background-position: right top;
  }

  .search-hero::before {
    background: linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .9) 100%);
  }

  .search-hero__inner {
    padding: 34px 0 38px;
  }

  .filters {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .search-hero__inner,
  .content {
    width: min(100% - 24px, 1010px);
  }

  .brand {
    margin-bottom: 18px;
  }

  .hero-copy {
    margin: 16px 0 22px;
  }

  .search-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-row input {
    min-height: 56px;
    font-size: 16px;
  }

  button {
    min-height: 52px;
    width: 100%;
  }

  .region-field {
    align-items: flex-start;
    flex-direction: column;
    white-space: normal;
  }

  .region-field input {
    width: 100%;
  }

  .filter-links {
    gap: 8px;
  }

  .filter-links a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .source-submit-form {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .source-submit-form button {
    width: 100%;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.intent-feedback {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}
.intent-feedback h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.intent-feedback__quick,
.intent-feedback details {
  margin-top: 8px;
}
.intent-feedback__form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.intent-feedback__form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #5d514a;
}
.intent-feedback__form textarea,
.intent-feedback__form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}

/* Centered ChatGPT-style search (2026-07-02) */
.search-hero {
  min-height: 410px;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 158, 115, .12), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #fbfaf7 100%);
}

.search-hero::after {
  right: max(12px, calc((100vw - 1120px) / 2));
  width: min(34vw, 420px);
  opacity: .28;
  filter: saturate(.92);
}

.search-hero::before {
  background: linear-gradient(180deg, rgba(255, 253, 248, .95) 0%, rgba(255, 253, 248, .82) 58%, rgba(255, 253, 248, .98) 100%);
}

.search-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 0 44px;
  text-align: center;
}

.search-hero--compact .search-hero__inner {
  padding: 34px 0 38px;
}

.brand {
  margin-bottom: 18px;
}

.search-hero h1 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  text-align: center;
}

.hero-copy {
  display: none;
}

.search-form {
  width: min(920px, 100%);
  max-width: none;
  margin: 26px auto 0;
}

.search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
  min-height: 68px;
  border: 1px solid rgba(58, 33, 24, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  padding: 7px;
  box-shadow: 0 18px 48px rgba(58, 33, 24, .10);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-row:focus-within {
  border-color: rgba(58, 33, 24, .42);
  box-shadow: 0 22px 56px rgba(58, 33, 24, .14);
}

.search-icon {
  position: static;
  width: 22px;
  height: 22px;
  margin-left: 14px;
  color: #5c4034;
  transform: none;
}

.search-row input {
  min-height: 52px;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  padding: 0 14px;
  font-size: 18px;
}

.search-row button {
  align-self: stretch;
  width: auto;
  min-width: 96px;
  min-height: auto;
  border-radius: 16px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
}

.search-modes {
  justify-content: center;
  gap: 10px 24px;
  margin: 16px auto 0;
  color: #5f5752;
}

.search-modes label {
  min-height: 30px;
  align-items: center;
}

.filters {
  display: flex;
  justify-content: center;
  margin: 14px auto 0;
}

.region-field {
  gap: 10px;
  justify-content: center;
}

.region-field input {
  height: 40px;
  border-radius: 10px;
  text-align: left;
}

.region-note {
  margin: 12px auto 0;
  text-align: center;
}

.search-hero .index-submit {
  max-width: 920px;
  margin: 18px auto 0;
}

.search-hero .index-submit summary {
  margin: 0 auto;
}

.content {
  width: min(100% - 40px, 1110px);
}

@media (max-width: 760px) {
  .search-hero {
    min-height: auto;
  }

  .search-hero::after {
    width: 58vw;
    opacity: .14;
  }

  .search-hero__inner,
  .search-hero--compact .search-hero__inner {
    padding: 30px 0 34px;
  }

  .search-hero h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .search-form {
    margin-top: 22px;
  }

  .search-row {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    border-radius: 18px;
    padding: 6px;
  }

  .search-icon {
    margin-left: 12px;
  }

  .search-row input {
    min-height: 50px;
    padding: 0 12px;
    font-size: 16px;
  }

  .search-row button {
    grid-column: 1 / -1;
    min-height: 46px;
    width: 100%;
    margin-top: 4px;
    border-radius: 14px;
  }

  .search-modes,
  .filters {
    justify-content: center;
  }

  .region-field {
    align-items: center;
    flex-direction: row;
  }
}
