.products {
  --product-surface: #efe2cf;
  --product-accent: #a8201d;
  position: relative;
  padding: clamp(45px, 5.5vw, 80px) 0 clamp(104px, 9vw, 148px);
  color: var(--ink);
  background: #faf2e5;
}
.product-target {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.product-heading p {
  margin: 12px 0 0;
  color: #58493c;
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
}
.product-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: clamp(24px, 3vw, 44px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #caba9f transparent;
}
.product-filters a {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  color: #4e3d30;
  font: 650 0.87rem/1.2 var(--body);
  transition: color 160ms ease, background-color 160ms ease;
}
.product-filters a .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
}
.product-filters a:hover {
  background: #f0e0cb;
}
.product-filters a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
@media (min-width: 1024px) and (max-width: 1320px) {
  .product-filters {
    gap: 2px;
  }
  .product-filters a {
    flex-grow: 1;
    gap: 0.33em;
    padding-inline: 2px;
    font-size: clamp(0.79rem, 1.06vw, 0.87rem);
  }
  .product-filters a .icon {
    width: 1.15em;
    height: 1.15em;
  }
}
.product-filters a[aria-current="true"],
.products:not(.product-ready):not(:has(.product-target:target)) [data-filter="all"],
.products:not(.product-ready):has(#products-combo:target) [data-filter="combo"],
.products:not(.product-ready):has(#products-smash:target) [data-filter="smash"],
.products:not(.product-ready):has(#products-chicken:target) [data-filter="chicken"],
.products:not(.product-ready):has(#products-bowls:target) [data-filter="bowls"],
.products:not(.product-ready):has(#products-sides:target) [data-filter="sides"],
.products:not(.product-ready):has(#products-desserts:target) [data-filter="desserts"],
.products:not(.product-ready):has(#products-drinks:target) [data-filter="drinks"],
.products:not(.product-ready):has(#products-sauces:target) [data-filter="sauces"] {
  color: #fff9eb;
  background: var(--product-accent);
}
.products:not(.product-ready) #products-combo:target ~ .shell [data-product-group]:not([data-product-group="combo"]),
.products:not(.product-ready) #products-smash:target ~ .shell [data-product-group]:not([data-product-group="smash"]),
.products:not(.product-ready) #products-chicken:target ~ .shell [data-product-group]:not([data-product-group="chicken"]),
.products:not(.product-ready) #products-bowls:target ~ .shell [data-product-group]:not([data-product-group="bowls"]),
.products:not(.product-ready) #products-sides:target ~ .shell [data-product-group]:not([data-product-group="sides"]),
.products:not(.product-ready) #products-desserts:target ~ .shell [data-product-group]:not([data-product-group="desserts"]),
.products:not(.product-ready) #products-drinks:target ~ .shell [data-product-group]:not([data-product-group="drinks"]),
.products:not(.product-ready) #products-sauces:target ~ .shell [data-product-group]:not([data-product-group="sauces"]) {
  display: none;
}
.product-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.product-grid {
  --rise: clamp(25px, 2.65vw, 42px);
  --pad: clamp(16px, 1.5vw, 23px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: calc(var(--rise) + 31px) clamp(18px, 2.05vw, 32px);
  margin: calc(var(--rise) + 33px) 0 0;
  padding: 0;
  list-style: none;
}
.product-card {
  min-width: 0;
  position: relative;
}
.product-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: clamp(208px, 16.5vw, 260px);
  padding: 0 var(--pad) 16px;
  transform-origin: center 52%;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.3, 1), color 160ms ease;
}
.product-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 17px;
  background: var(--product-surface);
  box-shadow: 0 4px 8px -6px rgb(66 35 13 / 40%);
  content: "";
  transition: background-color 190ms ease;
}
.product-photo {
  height: clamp(125px, 12vw, 172px);
  margin: calc(0px - var(--rise)) 0 12px;
  pointer-events: none;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 6px 4px rgb(47 26 15 / 20%));
  transform-origin: center 78%;
  transition: transform 240ms cubic-bezier(0.2, 0.75, 0.3, 1);
}
.product-info {
  flex: 1;
  padding-bottom: 12px;
}
.product-category {
  display: block;
  color: #674e3a;
  font: 750 0.72rem/1.35 var(--body);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.product-info h3 {
  margin-top: 4px;
  font: 800 clamp(24px, 2.05vw, 32px) / 1.02 var(--display);
  letter-spacing: -0.012em;
}
.product-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.product-trigger::after {
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.product-trigger[aria-expanded="true"]::after {
  transform: translateY(3px) rotate(225deg);
}
.product-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  border-top: 1px solid rgb(102 77 52 / 22%);
  padding-top: 9px;
}
.product-brand {
  width: clamp(45px, 4.5vw, 66px);
  height: auto;
  margin-bottom: 4px;
}
.product-price {
  display: flex;
  align-items: baseline;
  justify-content: end;
  flex-wrap: wrap;
  gap: 2px 6px;
  color: #705541;
  font: 650 0.72rem/1.15 var(--body);
  text-align: right;
}
.product-price strong {
  color: var(--product-accent);
  font: 900 italic clamp(24px, 2vw, 32px)/0.95 var(--display);
  font-variant-numeric: tabular-nums;
}
.product-extra {
  margin-top: 10px;
  font: 500 0.87rem/1.42 var(--body);
}
.product-card.is-open {
  z-index: 3;
}
.is-open .product-panel {
  color: var(--ivory);
  transform: translateY(-10px) scale(1.065);
  filter: drop-shadow(0 13px 12px rgb(76 32 14 / 23%));
}
.is-open .product-panel::before {
  border-radius: 17px 17px 0 0;
  background: var(--product-accent);
  box-shadow: none;
}
.is-open .product-photo img {
  transform: translateY(-6px) scale(1.12);
}
.is-open .product-category,
.is-open .product-price {
  color: #ffe5bd;
}
.is-open .product-price strong {
  color: #ffe185;
}
.is-open .product-brand {
  filter: brightness(0) invert(97%);
}
.is-open .product-meta {
  border-top-color: rgb(255 245 228 / 34%);
}
.is-open .product-extra {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  left: 0;
  margin: 0;
  padding: 2px var(--pad) 17px;
  border-radius: 0 0 17px 17px;
  background: var(--product-accent);
}
.product-actions {
  margin-top: 12px;
}
.product-add,
.product-quantity button,
.product-cycle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  touch-action: manipulation;
}
.product-add {
  width: 100%;
  min-height: 42px;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--ivory);
  color: var(--ink);
  font: 800 0.87rem/1.2 var(--body);
}
.product-add:hover,
.product-quantity button:hover {
  background: var(--yellow);
}
.product-quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}
.product-quantity button {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 9px;
  background: var(--ivory);
  color: var(--ink);
}
.product-quantity-value {
  min-width: 1.1em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.product-cycle {
  position: absolute;
  top: clamp(16px, 2.1vw, 31px);
  width: 33px;
  height: 33px;
  padding: 7px;
  border-radius: 50%;
  background: #731b18;
  color: #fff9ee;
}
.product-cycle[data-step="-1"] { left: 7px; }
.product-cycle[data-step="1"] { right: 7px; }
.product-cycle[data-step="-1"] svg { transform: rotate(180deg); }
.is-open :focus-visible { outline-color: var(--yellow); }
.product-picked {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 20px;
  color: var(--ivory);
  background: var(--ink);
  font: 750 0.75rem/1.3 var(--body);
}
.is-open .product-picked { visibility: hidden; }
@media (max-width: 880px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .products { padding: 40px 0 58px; }
  .product-grid {
    --rise: 21px;
    --pad: clamp(11px, 3vw, 18px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 14px;
    margin-top: 48px;
  }
  .product-filters { gap: 4px; }
  .product-filters a { min-height: 38px; padding: 6px 8px; font-size: 0.79rem; }
  .product-filters a .icon { width: 15px; height: 15px; }
  .product-panel { min-height: 196px; padding-bottom: 13px; }
  .product-photo { height: clamp(106px, 28vw, 150px); margin-bottom: 10px; }
  .product-info h3 { font-size: clamp(23px, 5.3vw, 29px); }
  .product-brand { width: clamp(36px, 9.8vw, 57px); }
  .product-price { flex-direction: column; align-items: end; }
  .product-cycle { width: 28px; height: 32px; padding: 6px; }
  .product-quantity button { width: 32px; height: 36px; }
}
@media (hover: none), (max-width: 660px) {
  .is-open .product-panel { transform: none; }
  .is-open .product-panel::before { border-radius: 17px; }
  .is-open .product-extra {
    position: static;
    margin-top: 12px;
    padding: 0;
    background: transparent;
  }
  .is-open .product-photo img { transform: translateY(-3px) scale(1.06); }
}
@media (max-width: 349px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-photo { height: 144px; }
  .product-price { flex-direction: row; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) {
  .product-panel, .product-panel::before, .product-photo img, .product-filters a {
    transition: none;
  }
}
