@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

/* Foundations and tokens */
:root {
  --ink: #20221e;
  --muted: #75766f;
  --lime: #d8f36a;
  --surface: #f3f3f0;
  --line: #e7e7e1;
  --radius: 20px;
  --gutter: clamp(20px,4vw,64px);
  --card-font-size: 15px;
  --card-title-lines: 2;
  --card-title-line: 1.5em;
  --card-price-height: 84px;
  --card-action-size: 32px;
  --product-columns: 4;
  --catalog-columns: 3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Manrope,Arial,sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  cursor: pointer;
  border: 0;
  transition: background var(--motion-duration,.2s),color var(--motion-duration,.2s),transform var(--motion-duration,.2s);
}

input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--motion-duration,.2s),color var(--motion-duration,.2s),transform var(--motion-duration,.2s);
}

button:disabled {
  opacity: .5;
  cursor: default;
}

img {
  max-width: 100%;
  display: block;
}

h1 {
  margin: 0;
  line-height: 1.13;
  font-size: clamp(40px,5.4vw,78px);
  font-weight: 800;
  letter-spacing: -3.8px;
}

h2 {
  margin: 0;
  line-height: 1.13;
  font-size: clamp(28px,3vw,40px);
  letter-spacing: -1.5px;
  font-weight: 750;
}

h3 {
  margin: 0;
  line-height: 1.13;
  font-weight: 700;
}

p {
  margin: 0;
}

a:focus-visible {
  outline: 2px solid #738d20;
  outline-offset: 5px;
}

button:focus-visible {
  outline: 2px solid #738d20;
  outline-offset: 5px;
}

input:focus-visible {
  outline: 2px solid #738d20;
  outline-offset: 5px;
}

select:focus-visible {
  outline: 2px solid #738d20;
  outline-offset: 5px;
}

button:hover:not(:disabled) {
  filter: brightness(.97);
}

/* Shared controls */
.icon-button {
  width: 32px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}

.icon-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--lime);
  min-height: 50px;
  padding: 13px 27px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button:hover {
  transform: translateY(-2px);
}

.dark {
  background: var(--ink);
  color: white;
}

.outline {
  background: white;
  border: 1px solid var(--line);
}

.text-link {
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 4px;
}

.tabs {
  display: flex;
  gap: 24px;
}

.tab {
  padding: 9px 18px;
  background: transparent;
  color: var(--muted);
  border-bottom: 0;
  font-size: 13px;
  border-radius: 99px;
}

.tab.active {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
  background: var(--lime);
}

.old-price {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%,20px);
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  font-size: 14px;
  box-shadow: 0 8px 35px #0002;
  transition: var(--motion-duration,.25s);
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}

.toast.toast-cart.visible {
  pointer-events: auto;
}

.toast.toast-cart {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: min(680px,calc(100vw - 32px));
  padding: 18px 20px;
  border-radius: 15px;
  background: var(--lime);
  color: var(--ink);
  white-space: normal;
}

.toast-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.toast-check svg,
.toast-close svg {
  width: 18px;
  height: 18px;
}

.toast-message {
  font-weight: 600;
}

.toast-link {
  margin-left: auto;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  white-space: nowrap;
}

.toast-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  background: transparent;
  color: inherit;
}

.pill {
  background: var(--surface);
  border-radius: 99px;
  padding: 9px 18px;
  font-size: 13px;
}

.pill.active {
  background: var(--ink);
  color: white;
}

.size-label {
  display: block;
  font-size: 13px;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.size-options {
  display: flex;
  gap: 8px;
}

.size {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 18px;
  border-radius: 7px;
}

.size.active {
  border-color: var(--ink);
  background: var(--surface);
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 12px;
  min-width: 114px;
}

.quantity button {
  background: transparent;
  width: 22px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.muted {
  color: var(--muted);
}

.retail-label {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 3px;
}

.quantity svg {
  width: 18px;
  height: 18px;
}

/* Page layout and navigation */
.announcement {
  text-align: center;
  background: #f5f5f2;
  padding: 7px;
  font-size: 12px;
  letter-spacing: .1px;
}

.header {
  height: 100px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 55px;
  background: #fff;
}

.brand {
  display: block;
  flex: none;
  width: 140px;
}

.brand picture,
.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.header nav a:hover {
  color: #778529;
}

.chevron {
  padding-left: 6px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 17px;
  align-items: center;
}

.bag {
  position: relative;
}

.cart-count {
  position: absolute;
  right: -6px;
  top: -3px;
  background: var(--lime);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
}

.search-panel {
  padding: 24px var(--gutter);
  border-block: 1px solid var(--line);
}

.search-panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.search-panel>div {
  display: flex;
  gap: 10px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.section {
  padding: 64px var(--gutter) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.footer {
  margin-top: 70px;
  background: #f6f6f3;
  padding: 55px var(--gutter) 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 35px;
}

.footer .brand {
  width: 155px;
}

.footer p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.footer h3 {
  font-size: 13px;
  margin-bottom: 20px;
}

.footer>div>a:not(.brand) {
  display: block;
  font-size: 13px;
  margin-top: 9px;
}

.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid #dfdfd8;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.page {
  padding: 20px var(--gutter) 0;
  min-height: 55vh;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 30px;
}

.page-title {
  font-size: 48px;
  letter-spacing: -2px;
  margin-bottom: 17px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 660px;
}

.header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.header .chevron {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* Catalog, product details and cart */
.product-image {
  background-image: var(--product-sheet, url('https://img.catmandog.es/assets/products-sheet.png'));
  background-size: 400% 200%;
  background-position: var(--px) var(--py);
  background-repeat: no-repeat;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--product-columns), minmax(0, 1fr));
  gap: 24px;
}

.recommendation-item {
  min-width: 0;
}

.recommendation-reason {
  min-height: 1.5em;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-card {
  min-width: 0;
  position: relative;
}

.product-card-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  cursor: pointer;
}

.product-card-open:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.product-card:hover .product-info h3,
.product-card:focus-within .product-info h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-media {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}

.product-card .product-image {
  aspect-ratio: 1.03;
  transition: transform var(--motion-duration,.4s);
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fffffff2;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 30px;
  font-weight: 600;
  pointer-events: none;
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.favorite svg {
  width: 17px;
}

.favorite.selected {
  color: #748b23;
}

.favorite.selected svg {
  fill: var(--lime);
}

.product-info {
  font-size: var(--card-font-size);
  display: grid;
  grid-template-rows: 1.6em calc(var(--card-title-lines) * var(--card-title-line)) 1.5em var(--card-price-height);
  row-gap: 8px;
  padding-top: 20px;
}

.product-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.6;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.product-title {
  min-width: 0;
  overflow: hidden;
}

.product-info .retail-label {
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info h3 {
  position: relative;
  padding-right: 20px;
  font-size: inherit;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--card-title-lines);
  overflow: hidden;
}

.product-open-cue {
  position: absolute;
  top: 3px;
  right: 0;
  display: flex;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform var(--motion-duration,.4s), color var(--motion-duration,.4s);
}

.product-open-cue svg {
  width: 100%;
  height: 100%;
}

.product-card:hover .product-open-cue,
.product-card:focus-within .product-open-cue {
  transform: translateX(2px);
  color: var(--ink);
}

.product-price {
  display: grid;
  grid-template-rows: minmax(0,1fr) 36px;
  gap: 8px;
  align-items: end;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  min-height: var(--card-price-height);
}

.product-price-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  line-height: 1.35;
}

.product-price-values > span:first-child {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.real-product-card .product-price {
  font-size: 14px;
}

.catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
}

.catalog-toolbar select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  max-width: 200px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
}

.filters {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.filters h3 {
  font-size: 14px;
  margin-bottom: 17px;
}

.filter-category {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  padding: 9px 0;
  font-size: 13px;
}

.filter-category.active {
  font-weight: 700;
  color: var(--ink);
}

.filter-price {
  padding-top: 25px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}

.filter-price label {
  display: block;
  font-size: 13px;
}

.filter-price input {
  width: 100%;
  accent-color: var(--ink);
  margin: 15px 0;
}

.catalog-layout .product-grid {
  grid-template-columns: repeat(var(--catalog-columns), minmax(0, 1fr));
}

.catalog-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
}

.catalog-applied a {
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.results-count {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.empty-state {
  padding: 55px 0;
  text-align: center;
  grid-column: 1/-1;
}

.empty-state h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 25px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 65px;
}

.detail-image {
  aspect-ratio: 1;
  background-color: var(--surface);
  border-radius: 20px;
}

.detail-copy {
  padding: 15px 0;
}

.detail-copy .eyebrow {
  font-size: 12px;
  color: var(--muted);
}

.detail-copy h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  margin-top: 14px;
  line-height: 1.2;
}

.detail-price {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;
}

.detail-price-label {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.detail-price-label + .detail-price { margin-top: 4px; }

.detail-copy>p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.buy-row {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}

.buy-row>.button {
  flex: 1;
}

.detail-service {
  font-size: 12px;
  line-height: 2.3;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 60px;
  margin-top: 35px;
}

.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-row:first-child {
  padding-top: 0;
}

.cart-row .product-image {
  aspect-ratio: 1;
  background-color: var(--surface);
  border-radius: 12px;
}

.cart-row h3 {
  font-size: 16px;
}

.cart-row p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.cart-row .cart-variant { color: var(--ink); font-weight: 600; }
.cart-choose-variant { display: inline-block; margin-top: 8px; font-size: 12px; }

.cart-row .quantity {
  margin-top: 14px;
  width: 110px;
  padding: 3px 8px;
  font-size: 13px;
  min-width: 0;
}

.cart-row-right {
  text-align: right;
}

.cart-unit-price { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }

.remove {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  margin-top: 24px;
}

.cart-summary {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  height: fit-content;
}

.cart-summary h2 {
  font-size: 24px;
  margin-bottom: 22px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 13px 0;
}

.summary-line.total {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-weight: 700;
  font-size: 20px;
}

.cart-summary .button {
  width: 100%;
  margin-top: 15px;
}

.cart-summary p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}

.cart-delivery-hint {
  display: grid;
  gap: 3px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 18px 0 4px;
  font-size: 12px;
  line-height: 1.5;
}

.cart-delivery-hint strong { font-weight: 700; }
.cart-delivery-hint span { color: var(--muted); }

.cart-summary .checkout-note {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
}

.detail-service svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 6px;
}

.favorite-detail.selected svg {
  fill: var(--lime);
  stroke: #718225;
}

.real-product-image {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.real-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--product-image-fit, contain);
  max-height: 100%;
  padding: var(--product-image-padding, 22px);
  box-sizing: border-box;
}

.product-card .real-product-image img {
  padding: var(--product-image-padding, 36px 22px 20px);
}

.detail-image.real-product-image img {
  padding: var(--product-image-padding, 35px);
}

.cart-row .real-product-image img {
  padding: var(--product-image-padding, 5px);
}

/* Studio assets already include product spacing and the background */
.editorial-product-image {
  --product-image-padding: 0px;
  --product-image-fit: cover;
  background: #d9d9d9;
}

.retail-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}

.detail-copy .retail-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}

.retail-research {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 20px;
}

.retail-research h2 {
  font-size: 15px;
  margin: 0 0 7px;
}

.retail-research-range {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 0 5px;
}

.retail-research-note {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 10px;
}

.retail-research ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.retail-research li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.retail-research li > span {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.retail-research li > a {
  justify-self: start;
}

.retail-research li small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.food-catalog-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 25px;
}

.real-product-card .product-tag {
  max-width: calc(100% - 58px);
  font-size: 10px;
  line-height: 1.4;
}

.food-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.food-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.food-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.food-brand select {
  font: inherit;
  color: #252621;
  background: #fff;
  border: 1px solid #deded9;
  border-radius: 9px;
  padding: 10px 30px 10px 12px;
  max-width: 220px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-options .size {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  max-width: 100%;
}

.variant-current {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.home-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.home-category {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  transition: background var(--motion-duration,.2s),color var(--motion-duration,.2s);
}

.home-category:hover {
  color: var(--ink);
  border-color: #ddd;
}

.home-category.active {
  background: var(--ink);
  color: white;
}

.home-catalog-facets {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 18px;
}

.home-facet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 164px;
  color: var(--muted);
  font-size: 11px;
}

.home-facet select {
  appearance: none;
  width: 100%;
  min-height: 40px;
  padding: 8px 34px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.home-facet svg {
  position: absolute;
  right: 13px;
  bottom: 11px;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.home-facet select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.home-facet-reset {
  min-height: 40px;
  padding: 8px 4px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.home-catalog-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.home-catalog .product-grid {
  row-gap: 42px;
}

.home-catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.home-catalog-empty {
  grid-column: 1/-1;
  padding: 32px 0;
  color: var(--muted);
}

.home-catalog-empty .text-link {
  margin-top: 18px;
  background: none;
  color: var(--ink);
}

.home-catalog button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Editorial content and collections */
.hero {
  margin: 0 28px;
  position: relative;
  min-height: 530px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #edede9;
  display: flex;
  align-items: center;
}

.hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fffffff2 0%, #ffffffbb 24%, #ffffff00 52%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 50%;
  padding: 50px 0 56px 48px;
}

.hero h1 {
  line-height: 1.02;
  max-width: 600px;
}

.hero-copy>p {
  color: #65665e;
  font-size: 18px;
  line-height: 1.65;
  max-width: 380px;
  margin: 25px 0 27px;
}

.hero-note {
  display: block;
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: .4px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 14px;
  margin-top: 26px;
}

.category {
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-action {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card-action:hover {
  background: var(--lime);
}

.service {
  margin: 65px var(--gutter) 0;
  padding: 34px 38px;
  border-radius: 16px;
  background: var(--lime);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.service-item {
  display: flex;
  gap: 17px;
}

.service-item>svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  stroke-width: 1.3;
}

.service h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 24px;
}

.journal-section-head .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.journal-intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.article-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  border-radius: 14px;
}

.article-photo {
  height: 240px;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--surface);
}

.article-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-duration,.3s);
}

.article-card:hover .article-photo img {
  transform: scale(1.035);
}

.article-photo.product-image {
  background-size: 400% 200%;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 17px;
}

.article-card h3 {
  font-size: 22px;
  letter-spacing: -.5px;
  margin-top: 9px;
}

.article-card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}

.article-card-cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 17px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.article-card-cue svg {
  width: 15px;
  height: 15px;
}

.article-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.brand-story {
  margin: 65px var(--gutter) 0;
  padding: 45px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand-story h2 {
  font-size: 34px;
  max-width: 520px;
}

.brand-story p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 17px;
}

.pet-tabs {
  display: flex;
  gap: 8px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 14px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 15px;
}

details ul {
  font-size: 13px;
  color: var(--muted);
  margin-top: 15px;
}

.prose {
  max-width: 760px;
  margin: auto;
}

.prose h1 {
  font-size: 50px;
  letter-spacing: -2px;
  margin: 20px 0;
}

.prose p {
  font-size: 16px;
  color: #62645e;
  line-height: 1.9;
  margin: 22px 0;
}

.prose h2 {
  font-size: 27px;
  margin-top: 30px;
}

.prose .article-photo {
  height: 380px;
  margin: 35px 0;
}

.about-hero {
  background: var(--lime);
  border-radius: 20px;
  padding: 60px;
  margin-bottom: 40px;
}

.about-hero h1 {
  max-width: 700px;
}

.about-hero p {
  font-size: 18px;
  max-width: 650px;
  margin-top: 25px;
}

.journal-top {
  padding-bottom: 28px;
}

.journal-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0 10px;
}

.selection-head .tabs {
  margin-left: 12px;
  margin-right: auto;
  gap: 10px;
}

.category-image {
  aspect-ratio: 1;
  margin-bottom: 12px;
  background-image: var(--category-sheet, url('https://img.catmandog.es/assets/categories-open.png'));
  background-size: var(--category-size, 400% 200%);
  background-position: var(--px) var(--py);
  background-repeat: no-repeat;
  border-radius: var(--category-radius, 0);
  transition: transform var(--motion-duration,.3s);
}

.category:hover .category-image {
  transform: translateY(-5px);
}

.editorial-promos {
  margin: 45px 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.editorial-promo {
  min-height: 315px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #f1f0ed;
}

.editorial-promo > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 55%;
  transition: transform var(--motion-duration,.5s);
}

.editorial-promo:hover > img {
  transform: scale(1.035);
}

.editorial-promo:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1f0edf2, #f1f0edbb 35%, transparent 70%);
}

.promo-copy {
  position: relative;
  z-index: 1;
  padding: 34px 38px;
}

.promo-copy h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -1px;
}

.promo-copy p {
  margin: 17px 0 32px;
  color: #62645e;
  font-size: 14px;
  line-height: 1.65;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}

.promo-link svg {
  width: 20px;
  height: 20px;
}

.home-directions {
  margin-top: 40px;
}

.home-directions .editorial-promo {
  min-height: 300px;
}

.home-directions .promo-copy {
  padding: 30px 34px;
}

.direction-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #62645e;
}

.home-directions .promo-copy h2 {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.2;
}

.home-directions .promo-copy p {
  margin: 14px 0 25px;
  font-size: 13px;
}

.direction-gifts {
  background: #ececea;
}

.direction-gifts > img {
  width: 57%;
  right: 0;
  object-fit: contain;
}

.home-directions .direction-gifts:after {
  background: linear-gradient(90deg,#ececea 0%,#ececea 38%,#ececeacc 48%,transparent 65%);
}

.home-directions .direction-home:after {
  background: linear-gradient(90deg,#f1f0edf5 0%,#f1f0eddd 38%,transparent 75%);
}

.active-home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.active-home-intro .eyebrow {
  font-size: 11px;
  color: var(--muted);
}

.active-home-intro h1 {
  margin-top: 14px;
  font-size: 43px;
  line-height: 1.2;
}

.active-home-intro img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 20px;
  object-position: right;
}

.home-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.home-benefits span {
  background: #f1f3ec;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 11px;
  color: #526143;
}

.active-home-products {
  display: block;
  gap: 45px;
  margin-top: 55px;
}

.home-product-group .section-head {
  margin-bottom: 22px;
}

.home-product-group h2 {
  font-size: 28px;
  letter-spacing: -.8px;
}

.home-product-group .section-head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.home-fitting-note {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 50px;
}

.home-fitting-note h2 {
  font-size: 25px;
}

.home-fitting-note p {
  max-width: 720px;
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 20px;
  line-height: 1.7;
}

.home-fitting-note svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 8px;
}

.home-habits {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 35px;
  margin-top: 40px;
}

.home-habits h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.home-habits p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.home-directions .direction-home > img {
  object-position: right top;
}

.product-card-action svg {
  width: 16px;
  height: 16px;
}

/* Gifts */
.gift-section {
  margin: 70px 0;
  padding: 0 24px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.gift-how {
  margin: 70px 0;
  padding: 0 24px;
  border-top: 1px solid var(--line);
  padding-top: 45px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.gift-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.gift-section-head h2 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1.4px;
}

.gift-how h2 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1.4px;
}

.gift-section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px;
}

.gift-media {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
}

.gift-media .product-image {
  aspect-ratio: 1;
  transition: transform var(--motion-duration,.45s);
}

.gift-media:hover .product-image {
  transform: scale(1.025);
}

.gift-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
  font-size: 11px;
  color: var(--muted);
}

.gift-card-top strong {
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 600;
}

.gift-card h3 {
  font-size: 25px;
  letter-spacing: -.7px;
  line-height: 1.25;
}

.gift-card>p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 310px;
  margin: 12px 0 18px;
}

.gift-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid;
  padding-bottom: 6px;
}

.gift-action svg {
  width: 18px;
  height: 18px;
}

.season-alternative {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gift-intro {
  max-width: 850px;
}

.gift-intro .lead {
  margin-top: 20px;
  max-width: 720px;
}

.gift-how>div {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 50px;
  margin-top: 35px;
}

.gift-how article>span {
  color: var(--muted);
  font-size: 12px;
}

.gift-how h3 {
  font-size: 22px;
  margin: 14px 0;
}

.gift-how p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.gift-photo-note {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 4px;
  line-height: 1.6;
}

.gift-gallery-note {
  background: #f6f5ef;
  border-radius: 20px;
  padding: 36px;
  margin-top: 30px;
}

.gift-gallery-note h3 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.8px;
}

.gift-gallery-note p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin-top: 18px;
  max-width: 370px;
}

.gift-status {
  display: inline-block;
  font-size: 11px;
  color: #526143;
  background: #eef1e6;
  border-radius: 6px;
  padding: 7px 10px;
  margin-top: 18px;
}

.gift-fieldset {
  border: 0;
  padding: 0;
  margin: 26px 0 0;
  min-width: 0;
}

.gift-fieldset legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 13px;
}

.season-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.season-option {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  text-align: left;
  padding: 16px;
  font-family: inherit;
}

.season-option.active {
  border-color: #64744b;
  background: #f4f7ed;
}

.season-option strong {
  display: block;
  font-size: 14px;
}

.season-option span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}

.gift-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gift-presets .pill {
  font-size: 12px;
  padding: 10px 14px;
}

.gift-selects {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.gift-selects label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.gift-size {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
  max-width: 200px;
}

.gift-message label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.gift-selects select {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  padding: 13px;
  margin-top: 8px;
}

.gift-size select {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  padding: 13px;
  margin-top: 8px;
}

.gift-message input {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  padding: 13px;
  margin-top: 8px;
}

.gift-message textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  padding: 13px;
  margin-top: 8px;
  resize: vertical;
  min-height: 90px;
}

.gift-message label+label {
  margin-top: 17px;
}

.gift-message label>span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
  font-size: 11px;
}

.gift-message-count {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.gift-summary {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.gift-summary h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.gift-contents {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.gift-contents li a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.gift-contents .product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  flex-shrink: 0;
}

.gift-contents small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

.gift-wrapping {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 17px;
  line-height: 1.6;
}

.gift-wrapping strong {
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
}

.gift-detail .detail-copy .gift-order-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 15px;
}

.cart-gift-details {
  max-width: 380px;
  margin: 12px 0;
}

.cart-gift-details p {
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.cart-greeting {
  white-space: pre-wrap;
}

.cart-gift-details .gift-status {
  margin-top: 8px;
  line-height: 1.5;
}

.gift-landing-intro {
  min-height: 0;
}

.gift-landing-intro+.gift-section {
  margin-top: 45px;
}

details .text-link {
  overflow-wrap: anywhere;
}

/* Grid children may shrink instead of widening the entire page */
.detail-grid > *, .cart-layout > *, .catalog-layout > * {
  min-width: 0;
}

/* Responsive states - wide screens, tablet, mobile, compact controls */
@media(min-width:1500px) {
  .hero {
    min-height: 590px;
  }

  .hero-copy {
    padding-left: 70px;
  }
}

@media(max-width:1050px) {
  .header {
    gap: 25px;
    height: 85px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 112px;
    left: 0;
    right: 0;
    padding: 22px;
    background: white;
    z-index: 10;
    box-shadow: 0 15px 20px #0001;
    font-size: 16px;
  }

  .header nav.open {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }

  .mobile-toggle {
    display: flex;
  }

  .brand {
    width: 120px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    margin: 0 20px;
    min-height: 470px;
  }

  .hero-copy {
    padding-left: 30px;
    width: 56%;
  }

  .hero h1 {
    font-size: 60px;
  }

  .categories {
    gap: 9px;
  }

  .category {
    font-size: 12px;
  }

  .service {
    gap: 20px;
    padding: 28px;
  }

  .service-item {
    gap: 12px;
  }

  .journal-grid {
    grid-template-columns: repeat(3,1fr);
  }

  .article-photo {
    height: 200px;
  }

  .catalog-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 25px;
  }

  .product-grid {
    gap: 16px;
  }

  .detail-grid {
    gap: 30px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .cart-layout {
    gap: 25px;
  }

  .footer {
    gap: 20px;
  }

  .editorial-promos {
    margin-inline: 20px;
    gap: 16px;
  }

  .promo-copy {
    padding: 30px 26px;
  }

  .promo-copy h2 {
    font-size: 27px;
  }

  .gift-grid {
    gap: 18px;
  }

  .gift-card h3 {
    font-size: 22px;
  }

  .gift-section-head h2 {
    font-size: 32px;
  }

  .gift-detail .detail-grid {
    gap: 35px;
  }

  .home-directions .promo-copy {
    padding: 26px;
  }

  .home-directions .promo-copy h2 {
    font-size: 25px;
  }

  .active-home-intro {
    gap: 30px;
  }

  .active-home-intro h1 {
    font-size: 34px;
  }
}

@media(max-width:760px) {
  body {
    font-size: 14px;
  }

  .announcement {
    font-size: 11px;
  }

  .header {
    height: 76px;
    gap: 15px;
    padding: 0 20px;
  }

  .brand {
    width: 145px;
  }

  .header-actions {
    gap: 10px;
  }

  .header nav {
    top: 103px;
  }

  #favorites-link {
    display: none;
  }

  .hero {
    margin: 0 12px;
    min-height: 670px;
    align-items: start;
    border-radius: 16px;
  }

  .hero>img {
    height: 64%;
    top: auto;
    object-position: 100% bottom;
  }

  .hero:after {
    background: linear-gradient(180deg, #f6f5f2 0%, #f6f5f2 33%, #f6f5f200 59%);
  }

  .hero-copy {
    padding: 32px 24px;
    width: 100%;
  }

  .hero h1 {
    font-size: 49px;
    letter-spacing: -2.5px;
    line-height: 1.03;
  }

  .hero-copy>p {
    font-size: 15px;
    margin: 17px 0;
    max-width: 280px;
  }

  .hero-note {
    display: none;
  }

  .button {
    min-height: 46px;
    font-size: 13px;
    padding: 12px 22px;
  }

  .section {
    padding-top: 42px;
  }

  .section-head {
    margin-bottom: 22px;
    align-items: center;
  }

  h2 {
    font-size: 28px;
    letter-spacing: -1.1px;
  }

  .categories {
    grid-template-columns: repeat(4,1fr);
    gap: 20px 9px;
  }

  .category {
    font-size: 11px;
  }

  .selection-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .tabs {
    gap: 20px;
  }

  .product-grid {
    gap: 36px 20px;
  }

  .catalog-layout .product-grid {
    gap: 36px 20px;
  }

  .product-tag {
    top: 9px;
    left: 8px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .favorite {
    top: 7px;
    right: 7px;
    width: 27px;
    height: 27px;
  }

  .product-info small {
    font-size: 10px;
  }

  .product-price {
    font-size: 14px;
    flex-wrap: nowrap;
  }

  .old-price {
    font-size: 10px;
  }

  .service {
    margin-top: 42px;
    padding: 26px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .service h3 {
    font-size: 16px;
  }

  .service p {
    max-width: none;
    font-size: 12px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-photo {
    height: 240px;
  }

  .article-card h3 {
    font-size: 23px;
  }

  .article-meta {
    font-size: 11px;
  }

  .brand-story {
    flex-direction: column;
    align-items: start;
    margin-top: 42px;
    padding: 32px 0;
  }

  .brand-story h2 {
    font-size: 29px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    margin-top: 45px;
    padding-top: 35px;
    gap: 32px 20px;
  }

  .footer>div:first-child {
    grid-column: 1/-1;
  }

  .footer p {
    font-size: 12px;
  }

  .footer h3 {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .footer>div>a:not(.brand) {
    font-size: 12px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 10px;
  }

  .footer-bottom>span:nth-child(2) {
    display: none;
  }

  .page {
    padding-top: 10px;
  }

  .page-title {
    font-size: 37px;
    letter-spacing: -1.5px;
  }

  .breadcrumbs {
    font-size: 10px;
    margin-bottom: 22px;
  }

  .lead {
    font-size: 14px;
  }

  .catalog-toolbar {
    align-items: start;
    gap: 18px;
    flex-direction: column;
    margin-top: 23px;
  }

  .catalog-toolbar select {
    width: 100%;
    max-width: none;
  }

  .pill {
    font-size: 11px;
    padding: 8px 13px;
  }

  .catalog-layout {
    display: block;
  }

  .filters {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 14px 0;
    margin-bottom: 22px;
  }

  .filters h3 {
    display: none;
  }

  .filter-price {
    display: none;
  }

  .filter-category {
    white-space: nowrap;
    width: auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 11px;
  }

  .filter-category.active {
    background: var(--lime);
    border-color: var(--lime);
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .detail-copy {
    padding: 0;
  }

  .detail-copy h1 {
    font-size: 31px;
  }

  .detail-price {
    font-size: 25px;
  }

  .detail-copy>p {
    font-size: 14px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cart-row {
    grid-template-columns: 76px 1fr auto;
    gap: 13px;
  }

  .cart-row h3 {
    font-size: 13px;
  }

  .cart-row-right {
    font-size: 13px;
  }

  .cart-row .quantity {
    width: 95px;
  }

  .cart-summary {
    padding: 24px;
  }

  .prose h1 {
    font-size: 37px;
    letter-spacing: -1.4px;
  }

  .prose p {
    font-size: 14px;
  }

  .prose .article-photo {
    height: 260px;
  }

  .about-hero {
    padding: 30px 25px;
  }

  .about-hero h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .about-hero p {
    font-size: 15px;
  }

  .text-link {
    font-size: 11px;
  }

  .toast {
    font-size: 12px;
    padding: 13px 18px;
    max-width: 95vw;
    white-space: normal;
    text-align: center;
  }

  .selection-head .tabs {
    margin-left: 0;
    gap: 8px;
  }

  .selection-head>.text-link {
    display: none;
  }

  .detail-service {
    font-size: 12px;
  }

  .category-image {
    margin-bottom: 8px;
  }

  .editorial-promos {
    margin: 32px 20px 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .editorial-promo {
    min-height: 265px;
    border-radius: 16px;
  }

  .promo-copy {
    padding: 26px;
  }

  .promo-copy h2 {
    font-size: 28px;
  }

  .promo-copy p {
    font-size: 12px;
    margin-bottom: 27px;
  }

  .promo-link {
    font-size: 12px;
  }

  .editorial-promo:last-child {
    min-height: 295px;
  }

  .editorial-promo:last-child .promo-copy h2 {
    max-width: 180px;
  }

  .editorial-promo:last-child:after {
    background: linear-gradient(90deg, #f1f0edf5, #f1f0edcc 36%, transparent 76%);
  }

  .gift-section {
    margin: 45px 0;
  }

  .gift-how {
    margin: 45px 0;
    padding-top: 30px;
  }

  .gift-section-head {
    display: block;
    margin-bottom: 24px;
  }

  .gift-section-head h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }

  .gift-how h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }

  .gift-section-head p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .gift-section-head .text-link {
    font-size: 12px;
  }

  .gift-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gift-media {
    border-radius: 16px;
  }

  .gift-card h3 {
    font-size: 25px;
  }

  .gift-card-top {
    margin-top: 18px;
  }

  .gift-card>p {
    max-width: none;
  }

  .gift-how>div {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .gift-how h3 {
    margin: 10px 0;
  }

  .gift-gallery-note {
    display: none;
  }

  .gift-detail .detail-grid {
    gap: 8px;
  }

  .gift-detail .detail-copy h1 {
    font-size: 30px;
  }

  .gift-detail .buy-row {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .gift-detail .buy-row>.button {
    padding: 16px 18px;
    font-size: 12px;
    flex: 1;
  }

  .season-option {
    padding: 13px;
  }

  .season-option span {
    font-size: 10px;
  }

  .cart-gift-details {
    max-width: 100%;
  }

  .home-directions {
    margin-top: 32px;
  }

  .home-directions .editorial-promo {
    min-height: 270px;
  }

  .home-directions .promo-copy {
    padding: 26px 22px;
  }

  .home-directions .promo-copy h2 {
    font-size: 25px;
    max-width: none;
  }

  .home-directions .direction-gifts>img {
    width: 54%;
    object-fit: cover;
    object-position: left;
  }

  .home-directions .direction-gifts:after {
    background: linear-gradient(90deg,#ececea 0%,#ececeaf5 40%,#ececeacc 58%,transparent 85%);
  }

  .home-directions .direction-home:after {
    background: linear-gradient(90deg,#f1f0edf5 0%,#f1f0ede8 42%,#f1f0ed66 69%,transparent 90%);
  }

  .active-home-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .active-home-intro h1 {
    font-size: 32px;
    letter-spacing: -1.1px;
  }

  .active-home-intro img {
    aspect-ratio: 1.4;
  }

  .active-home-products {
    margin-top: 35px;
    gap: 35px;
  }

  .home-product-group h2 {
    font-size: 25px;
  }

  .home-product-group .product-grid {
    gap: 36px 20px;
  }

  .home-product-group .section-head p {
    font-size: 13px;
  }

  .home-fitting-note h2 {
    font-size: 23px;
  }

  .home-habits {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
  }

  .home-directions .editorial-promo:last-child .promo-copy h2 {
    max-width: none;
  }

  .home-catalog .selection-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px 12px;
  }

  .home-catalog .selection-head h2 {
    font-size: 27px;
  }

  .home-catalog .selection-head>.text-link {
    display: block;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-catalog .selection-head .tabs {
    grid-column: 1/-1;
    grid-row: 2;
    flex-wrap: wrap;
  }

  .home-catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 3px 12px;
    margin-left: -3px;
    margin-right: -3px;
  }

  .home-category {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 13px;
    font-size: 11px;
  }

  .home-catalog-facets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-facet {
    min-width: 0;
  }

  .home-facet-reset {
    justify-self: start;
  }

  .home-catalog .product-grid {
    row-gap: 30px;
    gap: 36px 20px;
  }

  :root {
    --card-font-size: 13px;
    --card-action-size: 28px;
    --product-columns: 2;
    --catalog-columns: 2;
  }
}

@media(max-width:600px) {
  .cart-row {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
  }

  .cart-row-right {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    text-align: left;
  }

  .cart-unit-price { margin-top: 0; }
  .cart-row-right .remove { margin: 0 0 0 auto; }

  .toast.toast-cart {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) 28px;
    gap: 5px 12px;
    width: calc(100vw - 24px);
    max-width: 400px;
    padding: 14px;
    text-align: left;
  }

  .toast-check {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .toast-message {
    grid-column: 2;
    grid-row: 1;
  }

  .toast-link {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }

  .toast-close {
    grid-column: 3;
    grid-row: 1;
  }

  .product-card .real-product-image img {
    padding: var(--product-image-padding, 32px 9px 12px);
  }

  .detail-image.real-product-image img {
    padding: var(--product-image-padding, 20px);
  }

  .food-filters {
    gap: 16px;
  }

  .food-brand {
    width: 100%;
  }

  .food-brand select {
    flex: 1;
    max-width: none;
  }

  .food-types .pill {
    padding: 9px 15px;
  }

  .variant-options .size {
    padding: 10px 14px;
  }
}

/* Compact product controls get their own row when space is limited */
@media(max-width:360px) {
  .header {
    gap: 10px;
  }

  .brand {
    width: 120px;
  }

  .header-actions {
    gap: 6px;
  }

  .buy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .buy-row .quantity {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .buy-row .favorite-detail {
    grid-column: 2;
    grid-row: 1;
  }

  .buy-row > .button {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    --motion-duration: 0s;
  }
}

/* Editorial journal articles */
.editorial-article,
.editorial-related {
  max-width: 1120px;
  margin-inline: auto;
}

.editorial-header {
  max-width: 820px;
  margin: 20px auto 38px;
  text-align: center;
}

.editorial-kicker {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.editorial-kicker span + span::before {
  content: '·';
  margin-right: 18px;
}

.editorial-header h1 {
  max-width: 780px;
  margin: 19px auto 17px;
  font-size: clamp(42px,5vw,76px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.editorial-deck {
  max-width: 680px;
  margin: 0 auto;
  color: #5d6059;
  font-size: clamp(17px,1.5vw,21px);
  line-height: 1.65;
}

.editorial-byline {
  margin-top: 21px;
  color: var(--muted);
  font-size: 12px;
}

.editorial-byline span {
  margin-inline: 7px;
}

.editorial-cover {
  margin-bottom: 62px;
}

.editorial-cover .article-photo {
  height: clamp(320px,41vw,570px);
  background: white;
}

.editorial-cover .article-photo img {
  object-fit: contain;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 225px minmax(0,730px);
  justify-content: center;
  gap: clamp(36px,5vw,82px);
}

.editorial-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-top: 9px;
}

.editorial-sidebar h2 {
  margin: 0 0 17px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editorial-sidebar ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-sidebar button {
  padding: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}

.editorial-sidebar button:hover,
.editorial-sidebar button:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.editorial-intro {
  margin: 0 0 48px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
}

.editorial-section {
  margin-top: 50px;
  scroll-margin-top: 105px;
}

.editorial-section h2 {
  margin-bottom: 21px;
  font-size: clamp(27px,2.5vw,34px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.editorial-section p,
.editorial-sources p {
  margin: 0 0 22px;
  color: #4f524b;
  font-size: 17px;
  line-height: 1.9;
}

.editorial-takeaway {
  margin-top: 54px;
  padding: 32px 36px;
  border-radius: 18px;
  background: var(--surface);
}

.editorial-takeaway h2 {
  margin-bottom: 17px;
  font-size: 22px;
}

.editorial-takeaway ul,
.editorial-sources ul {
  margin: 0;
  padding-left: 21px;
}

.editorial-takeaway li {
  margin: 10px 0;
  line-height: 1.7;
}

.editorial-sources {
  margin-top: 58px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.editorial-sources h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.editorial-sources p,
.editorial-sources li {
  font-size: 13px;
  line-height: 1.7;
}

.editorial-sources li {
  margin: 8px 0;
}

.editorial-sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-sources svg {
  width: 13px;
  height: 13px;
  margin-left: 3px;
}

.editorial-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 42px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.editorial-share > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editorial-share button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  font-size: 12px;
  font-weight: 600;
}

.editorial-share button:hover {
  background: var(--surface);
}

.editorial-share button svg {
  width: 14px;
  height: 14px;
}

.editorial-back {
  display: inline-flex;
  gap: 8px;
  margin-top: 28px;
}

.editorial-back svg {
  width: 16px;
  height: 16px;
}

.editorial-related {
  margin-top: 100px;
}

.editorial-related .journal-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

@media(max-width:1050px) {
  .editorial-layout {
    grid-template-columns: 170px minmax(0,700px);
    gap: 30px;
  }
}

@media(max-width:760px) {
  .editorial-header {
    margin: 10px auto 30px;
  }

  .editorial-cover {
    margin-bottom: 34px;
  }

  .editorial-cover .article-photo {
    height: 300px;
  }

  .editorial-layout {
    display: block;
  }

  .editorial-sidebar {
    position: static;
    margin-bottom: 32px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .editorial-sidebar ol {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .editorial-intro {
    font-size: 18px;
  }

  .editorial-section p {
    font-size: 16px;
  }

  .editorial-takeaway {
    padding: 25px;
  }

  .editorial-related {
    margin-top: 65px;
  }

  .editorial-related .journal-grid {
    grid-template-columns: 1fr;
  }
}
