* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647069;
  --line: #dce4df;
  --surface: #ffffff;
  --soft: #f3f7f4;
  --accent: #176b48;
  --accent-hover: #10563a;
  --focus: #0b70c9;
}
body {
  margin: 0;
  background: #f8faf8;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1240px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header p { margin: 0; color: var(--muted); font-size: 14px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 750;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  letter-spacing: .06em;
}
main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 48px; }
.notice {
  padding: 13px 16px;
  border: 1px solid #bad9c9;
  border-radius: 8px;
  background: #edf8f1;
  display: flex;
  gap: 10px;
  font-size: 14px;
}
.notice span { color: #355345; }
.controls {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-field { flex: 1; }
.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #bbc6c0;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.search-field input:focus { outline: 3px solid rgba(11, 112, 201, .18); border-color: var(--focus); }
.all-products-link {
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.channel-nav {
  margin-top: 14px;
  padding-bottom: 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.channel-chip {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #36443c;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.channel-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: white; }
.catalog-heading {
  margin: 30px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.result-count { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover {
  border-color: #a8b9af;
  box-shadow: 0 7px 20px rgba(23, 33, 27, .09);
  transform: translateY(-2px);
}
.product-card:focus-visible { outline: 3px solid rgba(11, 112, 201, .28); outline-offset: 2px; }
.product-image-wrap { display: block; background: #e6ebe8; aspect-ratio: 4 / 5; overflow: hidden; }
.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .18s ease;
}
.product-card:hover .product-image { transform: scale(1.02); }
.product-body { padding: 13px; display: flex; flex: 1; flex-direction: column; }
.product-channel { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 700; }
.product-title {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.35;
}
.product-summary {
  margin: 8px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 13px;
}
.product-actions { margin-top: auto; display: grid; gap: 8px; }
.amazon-button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.product-card:hover .amazon-button { background: var(--accent-hover); }
.empty-state { padding: 44px 20px; border: 1px dashed #bbc6c0; border-radius: 8px; text-align: center; color: var(--muted); }
footer {
  padding: 24px max(20px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12px;
}
footer p { margin: 3px 0; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 3px; }
  main { width: min(100% - 28px, 1240px); padding-top: 16px; }
  .notice { align-items: flex-start; flex-direction: column; gap: 2px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin-top: 24px; }
  h1 { font-size: 23px; }
}
@media (max-width: 480px) {
  .controls { align-items: stretch; flex-direction: column; }
  .all-products-link { text-align: center; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 126px minmax(0, 1fr); }
  .product-image-wrap { height: 100%; min-height: 210px; aspect-ratio: auto; }
  .product-image { object-fit: cover; }
  .product-title { -webkit-line-clamp: 4; }
  .product-summary { -webkit-line-clamp: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-image { transition: none; }
  .product-card:hover { transform: none; }
}
