.menu {
  --menu-paper: #f8efe0;
  --menu-rule: #cbb79a;
  background: var(--menu-paper);
  padding-block: clamp(42px, 7vw, 94px) 80px;
  border-bottom: 1px solid var(--menu-rule);
}
.menu-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.55rem 2rem;
  margin-bottom: clamp(25px, 4vw, 54px);
}
.menu-head h1 {
  font: 800 clamp(3.2rem, 7vw, 6.1rem)/.94 var(--display);
  letter-spacing: -.018em;
  text-transform: uppercase;
}
.menu-head h1 span:not(.menu-title-copy) { color: var(--red); }
.menu-head > p { max-width: 26ch; margin-bottom: 2px; color: #594735; }
html[data-view="menu"] .header nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.filters {
  display: flex;
  gap: clamp(16px, 4vw, 42px);
  border-block: 1px solid var(--menu-rule);
  margin-bottom: 24px;
}
.filter {
  position: relative;
  min-height: 48px;
  background: none;
  border: 0;
  color: #5d4838;
  padding: 5px 1px;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}
.filter:hover, .filter[aria-pressed="true"] { color: var(--red-dark); }
.filter[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--red);
}
.menu-wholesale { margin: -6px 0 24px; color: #594735; font-size: .9rem; }
.menu-wholesale a { color: var(--red-dark); font-weight: 700; text-underline-offset: .18em; }
.stock-status { margin: .15rem 0 .6rem; font-size: .8rem; font-weight: 800; color: var(--red-dark); }
.stock-status[data-available="true"] { color: #285745; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff8eb;
  border: 1px solid var(--menu-rule);
}
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.32;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 30%, #b94731 0%, #92271c 55%, #641e16 100%);
  isolation: isolate;
}
.product-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(120deg, #631a1317 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.product-media > img {
  position: absolute;
  inset: 5% 0;
  width: 100%;
  height: 90%;
  object-fit: contain;
  filter: var(--pack-tone,) drop-shadow(8px 12px 9px #39110db0);
}
.product-media > img:is([src^="images/prawns-"], [src^="images/dhonbis-"], [src^="images/dried-fish-"]) {
  inset: 2% auto auto 50%;
  width: auto;
  height: 96%;
  transform: translateX(-50%);
}
img[src="images/prawns-original.webp"] {
  clip-path: polygon(8.5% 6.3%, 91.2% 8.8%, 90.4% 15.5%, 89.3% 16%, 90% 16.6%, 81.4% 95.4%, 60% 95.9%, 9.6% 94.8%, 8.5% 13.9%, 9.5% 13.5%, 8.4% 12.9%);
}
.product-media img[src="images/prawns-hot-pepper.webp"] {
  inset-block-start: -8%;
  height: 130%;
  clip-path: polygon(13.4% 11.1%, 68% 11.6%, 86.9% 12.5%, 86.1% 17%, 85.1% 17.4%, 86% 17.8%, 78.7% 75%, 64% 76.3%, 51% 77.4%, 43% 77.3%, 33% 76.1%, 21.8% 74.4%, 14% 17.3%, 14.7% 17%, 14% 16.5%);
}
.product-media img[src="images/dhonbis-original.webp"] {
  clip-path: polygon(12.5% 4.4%, 89.2% 4.2%, 90.5% 6.5%, 89.5% 11.4%, 88.1% 12.1%, 89.3% 12.6%, 85% 26%, 83.5% 53.9%, 82% 92%, 77% 91.6%, 62% 95.5%, 50% 96.6%, 35% 96.4%, 17.5% 93%, 15.5% 47%, 15% 27%, 11.8% 12.5%, 12.9% 12%, 11.6% 11.4%, 10.5% 7.2%);
}
.product-media img[src="images/dhonbis-hot-pepper.webp"] {
  clip-path: polygon(19.5% 4.7%, 82.4% 5.4%, 84.8% 7.3%, 85.8% 9.8%, 85.3% 12.3%, 84.2% 12.7%, 85.3% 13.2%, 84.3% 22.4%, 83.7% 93.3%, 79% 92.4%, 75% 92.5%, 67% 94.7%, 54% 95.5%, 35% 95.4%, 22% 94%, 14.7% 92%, 15.4% 11.7%, 16.3% 11.1%, 15.4% 10.5%, 15.6% 7.8%, 17% 5.7%);
}
.product-media img[src="images/dried-fish-pouch.webp"] {
  clip-path: polygon(12.7% 3.4%, 84.7% 2.7%, 85.8% 4%, 86% 7.2%, 85.2% 10%, 84% 10.5%, 85% 11%, 82.3% 39%, 79.9% 87.3%, 68% 89.5%, 51% 91.5%, 38.5% 91%, 30% 88.5%, 26% 85%, 19% 85%, 14% 26%, 13% 16%, 13.5% 11%, 14.6% 10.5%, 13.5% 10%, 11.6% 6.4%);
}
.product-media img[src="images/dried-fish-bottle.webp"] {
  inset-block-start: -8%;
  height: 110%;
  clip-path: polygon(26% 14.5%, 73.5% 14.5%, 74.6% 15.3%, 75.2% 24.2%, 72% 25.5%, 75% 26.8%, 78.7% 29.8%, 80.2% 33.5%, 79.6% 37.7%, 78.1% 40%, 78.3% 87.3%, 77% 90.5%, 73.6% 93%, 66.4% 94.5%, 44% 95.1%, 32% 94.3%, 26.3% 93%, 23% 90.9%, 21.8% 87%, 21.8% 40%, 20% 38%, 19.5% 34.6%, 20.5% 31.4%, 23% 28.4%, 27.5% 26%, 24.9% 24.7%, 25% 16%);
}
.product-media img[src="images/dried-fish-bottle-studio.webp"] { inset-block-start: 7%; height: 86%; }

/* Bring the photographed pouches and the homepage packshots toward the same honey-kraft color. */
img:is([src="images/chicken.webp"], [src="images/chicken-hot.webp"], [src="images/selection-chicken-pack.webp"]) { --pack-tone: hue-rotate(-5deg) saturate(.84) brightness(.93); }
img:is([src="images/beef.webp"], [src="images/selection-beef-pack.webp"]) { --pack-tone: hue-rotate(-5deg) saturate(.90) brightness(1.01); }
img[src="images/beef-hot.webp"] { --pack-tone: hue-rotate(-6deg) brightness(.91); }
img[src="images/beef-sweet.webp"] { --pack-tone: hue-rotate(-8deg) saturate(.96) brightness(.95); }
img[src="images/tuna.webp"] { --pack-tone: hue-rotate(-5deg) saturate(.88) brightness(.91); }
img:is([src="images/tuna-hot.webp"], [src="images/tuna-sweet.webp"]) { --pack-tone: hue-rotate(-5deg) saturate(.89) brightness(.96); }
img[src="images/selection-tuna-pack.webp"] { --pack-tone: hue-rotate(-1deg) saturate(.88) brightness(.97); }
img:is([src="images/skipjack.webp"], [src="images/skipjack-hot.webp"], [src="images/selection-skipjack-pack.webp"]) { --pack-tone: hue-rotate(-6deg) saturate(1.04) brightness(.94); }
img:is([src="images/octopus.webp"], [src="images/octopus-hot.webp"], [src="images/selection-octopus-pack.webp"]) { --pack-tone: hue-rotate(-8deg) saturate(.49) brightness(1.05); }
img[src="images/dhonbis-original.webp"] { --pack-tone: hue-rotate(-10deg) saturate(1.13) brightness(1.19); }
img[src="images/dhonbis-hot-pepper.webp"] { --pack-tone: hue-rotate(-8deg) saturate(1.26) brightness(1.02); }
img[src="images/selection-dhonbis-pack.webp"] { --pack-tone: hue-rotate(1deg) saturate(.78) brightness(1.08); }
img[src="images/prawns-original.webp"] { --pack-tone: hue-rotate(2deg) saturate(.84) brightness(1.09); }
img[src="images/prawns-hot-pepper.webp"] { --pack-tone: hue-rotate(-4deg) saturate(.87) brightness(.97); }
img[src="images/dried-fish-pouch-studio.webp"] { --pack-tone: hue-rotate(2deg) saturate(1.1); }

.product-media.empty { color: var(--cream); font: 800 3rem var(--display); }
.product-preview {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  padding: .12rem .35rem;
  background: #471914;
  color: #fff6e4;
  font-size: .8rem;
}
.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(15px, 2vw, 24px);
}
.product h3 {
  font: 800 clamp(2rem, 3.7vw, 3.35rem)/.94 var(--display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.product-description { margin: .58rem 0 1.05rem; min-height: 3.1em; color: #594735; }
.flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--menu-rule);
  border: 1px solid var(--menu-rule);
}
.flavor {
  position: relative;
  flex: 1 1 auto;
  min-height: 41px;
  padding: .36rem .56rem;
  border: 0;
  background: #fff8eb;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}
.flavor:hover { background: #f3e4ca; }
.flavor[aria-pressed="true"] { color: var(--red-dark); background: #f3debf; }
.flavor[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--red);
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: .35rem;
  margin: .78rem 0 1.1rem;
  color: #5a4938;
  font-size: .875rem;
}
.heat { display: inline-flex; align-items: center; gap: .46rem; color: var(--red-dark); font-weight: 800; }
.heat-marks { display: inline-flex; align-items: center; gap: 3px; }
.heat-marks i { width: 4px; height: 10px; background: #ddc8ab; transform: skewX(-13deg); }
.heat-marks[data-heat="1"] i:first-child, .heat-marks[data-heat="3"] i { background: var(--red); }
.product .add {
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-inline: .82rem;
  background: var(--red-dark);
  color: #fff6e4;
  border-radius: 2px;
}
.product .add:hover { background: #53100e; }
.product .add:active .add-mark { transform: scale(.85); }
.add-mark {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  margin-left: 9px;
  border: 1px solid #f6d7a582;
  color: #ffe3a8;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .13s ease;
}

@media (max-width: 950px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  html[data-view="menu"] .header-inner { gap: 6px; }
  html[data-view="menu"] .header .wordmark { font-size: 1.36rem; }
  html[data-view="menu"] .header nav { gap: .56rem; }
  html[data-view="menu"] .bag-toggle { gap: .42rem; padding-inline: 8px; }
  .menu-head { display: grid; gap: 1rem; }
  .menu-head > p { max-width: 36ch; }
  .filters { gap: clamp(10px, 4.2vw, 24px); margin-bottom: 17px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 1.23; }
  .product h3 { font-size: clamp(1.7rem, 5.1vw, 2.5rem); }
  .product-description { min-height: 0; }
  .menu { padding-bottom: 48px; }
}

.product .add:disabled { background: #dbccb5; color: #5b4b3d; cursor: default; }
.empty-menu { grid-column: 1 / -1; padding-block: 1rem; }
