:root {
  --background: #f7f6f2;
  --foreground: #17211d;
  --muted: #657068;
  --surface: #ffffff;
  --line: #d9ddd4;
  --accent: #177245;
  --accent-dark: #0f5034;
  --gold: #f0b323;
  --red: #c7342d;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}
button { cursor: pointer; font: inherit; }
main { min-height: 100vh; padding: 16px; }
.app-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1080px;
}
.brand {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--foreground);
  display: flex;
  gap: 10px;
  padding: 10px 0;
  text-align: left;
}
.brand-copy { display: grid; }
.brand-copy span { font-size: clamp(1.45rem, 4vw, 2.2rem); font-weight: 900; line-height: 1; }
.brand-copy small { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.dog-logo { display: block; flex: 0 0 auto; height: 44px; position: relative; width: 48px; }
.dog-face {
  background: var(--accent);
  border: 3px solid var(--accent-dark);
  border-radius: 54% 54% 48% 48%;
  bottom: 1px;
  box-shadow: inset -5px -6px 0 rgba(15, 80, 52, 0.16);
  height: 34px;
  left: 7px;
  position: absolute;
  width: 34px;
}
.dog-ear { background: #2f2a24; border: 3px solid var(--accent-dark); height: 23px; position: absolute; top: 3px; width: 16px; }
.dog-ear-left { border-radius: 76% 24% 68% 32%; left: 2px; transform: rotate(-24deg); }
.dog-ear-right { border-radius: 24% 76% 32% 68%; right: 2px; transform: rotate(24deg); }
.dog-eye { background: #ffffff; border-radius: 999px; height: 5px; position: absolute; top: 11px; width: 5px; }
.dog-eye-left { left: 8px; }
.dog-eye-right { right: 8px; }
.dog-nose { background: #17211d; border-radius: 55% 55% 70% 70%; height: 8px; left: 50%; position: absolute; top: 20px; transform: translateX(-50%); width: 10px; }
.location-pill {
  background: var(--accent-dark);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  max-width: 48vw;
  overflow: hidden;
  padding: 9px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px auto;
  max-width: 1080px;
  padding: 6px;
}
.menu-bar button, .chain-grid button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--foreground);
  font-weight: 800;
  min-height: 44px;
  padding: 10px 8px;
}
.menu-bar button.active, .chain-grid button.selected { background: var(--accent); color: #ffffff; }
.intro-band, .control-band, .chain-grid, .offer-list { margin-left: auto; margin-right: auto; max-width: 1080px; }
.intro-band { align-items: end; display: flex; gap: 18px; justify-content: space-between; padding: 28px 0 12px; }
.eyebrow { color: var(--accent-dark); font-size: 0.78rem; font-weight: 900; margin: 0 0 8px; text-transform: uppercase; }
h1 { font-size: clamp(1.7rem, 4.4vw, 3.1rem); line-height: 1; margin: 0; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.stat-strip span { background: #eaf0e7; border-radius: 999px; color: var(--accent-dark); font-size: 0.86rem; font-weight: 800; padding: 8px 10px; }
.control-band {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 1fr;
  margin-bottom: 12px;
  padding: 12px;
  position: relative;
}
.control-label { color: var(--muted); font-weight: 800; }
.city-picker { position: relative; width: 100%; }
.city-picker input {
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--foreground);
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}
.city-picker input:focus { border-color: var(--accent); outline: 2px solid rgba(23, 114, 69, 0.18); outline-offset: 1px; }
.city-picker-hint, .city-picker-empty { color: var(--muted); font-size: 0.84rem; margin: 8px 2px 0; }
.city-picker-empty { padding: 8px 10px; }
.city-picker-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.14);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}
.city-picker-list button { background: transparent; border: 0; border-radius: 6px; color: var(--foreground); min-height: 40px; padding: 9px 10px; text-align: left; }
.city-picker-list button:hover, .city-picker-list button:focus-visible, .city-picker-list button.chosen { background: #eaf0e7; color: var(--accent-dark); font-weight: 800; outline: none; }
.chain-grid { display: grid; gap: 8px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; }
.chain-grid button { background: var(--surface); border: 1px solid var(--line); }
.search-band {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 1fr;
  margin: 0 auto 12px;
  max-width: 1080px;
  padding: 12px;
}
.search-band label { color: var(--muted); font-weight: 800; }
.search-band input {
  background: #fdfdfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--foreground);
  font: inherit;
  min-height: 46px;
  outline-color: var(--accent);
  padding: 0 12px;
  width: 100%;
}
.offer-list { display: grid; gap: 10px; padding-bottom: 28px; }
.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  gap: 10px 18px;
  justify-content: space-between;
  margin: 20px auto 0;
  max-width: 1080px;
  padding: 20px 0 8px;
}
.site-footer p { margin: 0; }
.site-footer a, .legal-content a, .back-link { color: var(--accent-dark); font-weight: 800; text-underline-offset: 3px; }
.site-footer a:hover, .legal-content a:hover, .back-link:hover { color: var(--accent); }
.legal-page { padding: 16px; }
.legal-header, .legal-content { margin-left: auto; margin-right: auto; max-width: 780px; }
.legal-header { align-items: center; display: flex; justify-content: space-between; padding: 10px 0 26px; }
.legal-brand { color: var(--foreground); font-size: 1.4rem; font-weight: 900; text-decoration: none; }
.legal-content { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(23, 33, 29, 0.06); padding: clamp(22px, 5vw, 48px); }
.legal-content h1 { margin-bottom: 34px; }
.legal-content h2 { font-size: 1.2rem; line-height: 1.2; margin: 32px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #3f4c45; line-height: 1.65; margin: 0 0 14px; }
.load-more { display: flex; justify-content: center; margin: 4px auto 28px; max-width: 1080px; }
.load-more button { background: var(--accent); border: 0; border-radius: 6px; color: #ffffff; font-weight: 800; min-height: 44px; padding: 10px 18px; }
.load-more button:hover, .load-more button:focus-visible { background: var(--accent-dark); outline: none; }
.offer-row { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(23, 33, 29, 0.06); padding: 16px; }
.offer-main { align-items: start; display: grid; gap: 12px; grid-template-columns: 1fr auto; }
.offer-main h3 { font-size: clamp(1.32rem, 4.8vw, 2.1rem); line-height: 1.05; margin: 0; }
.offer-main p { color: var(--muted); font-size: 0.86rem; font-weight: 800; margin: 6px 0 0; }
.offer-main strong { background: var(--gold); border-radius: 6px; color: #2b2203; font-size: 1.1rem; min-width: 62px; padding: 9px 8px; text-align: center; }
.price-line { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.old-price { color: var(--muted); font-size: 1rem; text-decoration: line-through; }
.new-price, .deal-text { color: var(--red); font-size: clamp(1.35rem, 5vw, 2rem); font-weight: 900; }
.price-line span:last-child { color: var(--muted); font-size: 0.86rem; font-weight: 800; }
.offer-meta { border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.78rem; gap: 8px 16px; justify-content: space-between; margin-top: 14px; padding-top: 10px; }
@media (max-width: 760px) {
  main { padding: 12px; }
  .app-header { align-items: start; flex-direction: column; }
  .location-pill { max-width: 100%; }
  .intro-band { align-items: start; flex-direction: column; }
  .stat-strip { justify-content: start; }
  .chain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-band { grid-template-columns: 1fr; }
  .site-footer { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .menu-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-band { grid-template-columns: 1fr; }
}
