.order-page { padding-top: clamp(1.25rem, 2.75vw, 2.9rem); }

.order-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: clamp(1.35rem, 2.55vw, 2.2rem);
  overflow: hidden;
  border-radius: .8rem clamp(2.25rem, 5vw, 4.75rem) .8rem .8rem;
  background: var(--produce);
}

.order-page-copy { padding: clamp(1.25rem, 4vw, 3.45rem); }

.order-page-intro h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 4.8vw, 5rem);
  text-wrap: balance;
}

.order-page-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 53% 50%;
}

.order-categories {
  display: grid;
  gap: clamp(1.65rem, 3vw, 2.5rem);
}

.order-category h3 {
  margin-bottom: .65rem;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  letter-spacing: -.04em;
}

.order-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1.25vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .45rem;
  min-width: 0;
  padding: clamp(.7rem, 1.65vw, 1.15rem);
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: #fcfcf7;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.order-product h4 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.22;
}

.order-product p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.4;
}

.order-catalog:not([data-enhanced]) .order-product-toggle { display: none; }

.order-product-toggle {
  position: relative;
  display: inline-flex;
  justify-self: start;
  max-width: 100%;
  margin-top: .35rem;
  cursor: pointer;
}

.order-product-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.order-product-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .42rem .7rem;
  border: 1px solid #a9baa5;
  border-radius: .4rem;
  background: #eaf0e3;
  color: var(--green);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.order-product-toggle:hover .order-product-action { border-color: var(--green); background: #dfe9d8; }

.order-product-toggle input:focus-visible + .order-product-action {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.order-remove-label, .order-product-toggle input:checked + .order-product-action .order-add-label {
  display: none;
}

.order-product:has(input:checked) {
  border-color: #829c80;
  background: #eaf1e5;
}

.order-product-toggle input:checked + .order-product-action {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.order-product-toggle input:checked + .order-product-action .order-remove-label { display: inline; }

.order-product-toggle:hover input:checked + .order-product-action { background: var(--green-hover); }

@media (max-width: 46rem) {
  .order-page-intro { grid-template-columns: minmax(0, 1fr); }
  .order-page-photo { display: none; }
}

@media (max-width: 25rem) {
  .order-product-action { padding-inline: .5rem; }
}
