:root {
  --ink: #20194f;
  --purple: #342888;
  --red: #e91122;
  --lime: #a8ce00;
  --cream: #fff9e8;
  --aqua: #daf1f0;
  --white: #ffffff;
  --muted: #665f78;
  --line: rgba(52, 40, 136, 0.15);
  --shadow: 0 24px 60px rgba(38, 28, 94, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
.site-header { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1180px; padding: 22px 30px; }
.brand { align-items: center; display: flex; gap: 12px; }
.brand-symbol { align-items: center; background: var(--purple); border-radius: 50%; color: white; display: flex; font-size: 23px; font-weight: 900; height: 44px; justify-content: center; width: 44px; }
.brand strong { display: block; font-size: 20px; letter-spacing: 0.09em; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.28em; margin-top: 2px; }
.header-link { border-bottom: 2px solid var(--red); font-weight: 800; padding: 7px 0; }

.eyebrow { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; margin: 0; text-transform: uppercase; }
dl { margin: 0; }
dl div { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 112px 1fr; padding: 11px 0; }
dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
dd { font-size: 14px; line-height: 1.45; margin: 0; }

.catalogue-layout { align-items: start; display: grid; gap: 34px; grid-template-columns: 240px minmax(0, 1fr); margin: 0 auto; max-width: 1320px; padding: 58px 30px 96px; }
.category-navigation { align-self: start; min-width: 0; position: sticky; top: 24px; }
.section-heading, .category-summary, .catalogue > * { margin-left: auto; margin-right: auto; }
.section-heading h2 { font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.04em; margin: 12px 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.category-navigation .section-heading h2 { font-size: 28px; line-height: 1; margin-bottom: 22px; }
.category-summary { display: flex; flex-direction: column; gap: 8px; }
.summary-card { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--ink); cursor: pointer; display: flex; gap: 12px; justify-content: space-between; padding: 12px; text-align: left; width: 100%; }
.summary-card:hover { background: var(--white); border-color: var(--line); }
.summary-card[aria-pressed="true"] { background: var(--purple); color: var(--white); }
.summary-card span { background: rgba(233, 17, 34, 0.09); border-radius: 999px; color: var(--red); font-size: 12px; font-weight: 900; min-width: 28px; padding: 4px 7px; text-align: center; }
.summary-card[aria-pressed="true"] span { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.summary-card strong { font-size: 13px; line-height: 1.25; }

.catalogue { min-width: 0; }
.catalogue-heading { align-items: end; display: flex; gap: 24px; justify-content: space-between; }
.catalogue-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.animal-filter, .search-box { display: block; }
.animal-filter select, .search-box input { background-color: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); height: 46px; outline: none; }
.animal-filter select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%), linear-gradient(135deg, var(--purple) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; cursor: pointer; min-width: 178px; padding: 0 38px 0 18px; }
.search-box input { min-width: 260px; padding: 0 18px; }
.animal-filter select:focus, .search-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(52, 40, 136, 0.1); }
.result-count { color: var(--muted); font-size: 13px; margin-bottom: 18px; margin-top: 30px; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.product-card { background: white; border: 1px solid var(--line); border-radius: 19px; display: flex; flex-direction: column; min-height: 460px; overflow: hidden; }
.product-image { align-items: center; background: var(--aqua); border: 0; cursor: pointer; display: flex; height: 235px; justify-content: center; overflow: hidden; padding: 0; width: 100%; }
.product-image img { height: 100%; object-fit: contain; transition: transform 180ms ease; width: 100%; }
.product-image:hover img { transform: scale(1.025); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.product-category { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.product-card h3 { font-size: 21px; margin: 16px 0 9px; }
.animal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.animal-tag { background: var(--aqua); border: 1px solid rgba(52, 40, 136, 0.1); border-radius: 999px; color: var(--purple); font-size: 11px; font-weight: 800; padding: 5px 9px; }
.animal-tag-uncertain { background: #f2f0f4; color: var(--muted); }
.product-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.product-composition { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pack-sizes { border-top: 1px solid var(--line); margin-top: 18px !important; padding-top: 14px; }
.pack-sizes strong { color: var(--ink); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.details-button { background: transparent; border: 0; color: var(--purple); cursor: pointer; font-weight: 800; margin-top: auto; padding: 22px 0 0; text-align: left; }
.details-button:hover { color: var(--red); }

.prototype-notice { background: var(--purple); color: white; line-height: 1.55; padding: 18px 30px; text-align: center; }
footer { align-items: center; background: var(--ink); color: white; display: flex; justify-content: space-between; padding: 38px max(30px, calc((100vw - 1120px) / 2)); }
footer p { color: rgba(255, 255, 255, 0.68); font-size: 13px; margin: 7px 0 0; }

.product-dialog { background: white; border: 0; border-radius: 22px; box-shadow: var(--shadow); max-height: 92vh; max-width: min(920px, 92vw); padding: 0; width: 100%; }
.product-dialog::backdrop { background: rgba(20, 16, 45, 0.76); }
.dialog-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 15px 18px; }
.dialog-header > div:first-child { display: grid; gap: 7px; }
.dialog-animal-tags { margin: 0; }
.dialog-header button { background: var(--purple); border: 0; border-radius: 999px; color: white; cursor: pointer; font-size: 12px; font-weight: 800; padding: 9px 13px; }
.dialog-content { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; max-height: calc(92vh - 62px); overflow: auto; }
.dialog-image-wrap { align-items: center; background: var(--aqua); display: flex; justify-content: center; min-height: 420px; }
.dialog-image-wrap img { max-height: 520px; object-fit: contain; width: 100%; }
.dialog-copy { padding: 34px; }
.dialog-copy h2 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 24px; }

@media (max-width: 900px) {
  .catalogue-layout { grid-template-columns: 1fr; padding-top: 34px; }
  .category-navigation { background: var(--cream); margin: 0 -30px; padding: 0 30px 22px; position: static; }
  .category-navigation .section-heading h2 { margin-bottom: 16px; }
  .category-summary { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .summary-card { flex: 0 0 auto; width: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { padding: 18px 20px; }
  .header-link { display: none; }
  .catalogue-layout { padding-left: 20px; padding-right: 20px; }
  .category-navigation { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .catalogue-heading, footer { align-items: flex-start; flex-direction: column; }
  .catalogue-controls { align-items: stretch; flex-direction: column; width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .dialog-content { grid-template-columns: 1fr; }
  .dialog-image-wrap { min-height: 240px; }
  .dialog-image-wrap img { max-height: 280px; }
  .dialog-copy { padding: 25px 20px 30px; }
  .animal-filter, .animal-filter select, .search-box, .search-box input { width: 100%; }
  dl div { grid-template-columns: 1fr; }
  footer { gap: 24px; }
}
