/* Buttons */
.bk-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: var(--bk-border-width) solid transparent;
  border-radius: var(--bk-radius-button);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--bk-font-ui);
  font-size: var(--bk-type-ui);
  font-weight: 700;
  gap: var(--bk-space-2);
  justify-content: center;
  line-height: 1.2;
  min-height: 3.25rem;
  padding: 0.75rem 1.375rem;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--bk-motion-fast) var(--bk-ease), border-color var(--bk-motion-fast) var(--bk-ease), color var(--bk-motion-fast) var(--bk-ease), transform var(--bk-motion-fast) var(--bk-ease);
}

.bk-button .bk-icon {
  flex: 0 0 auto;
  height: 1.125rem;
  transition: transform var(--bk-motion-fast) var(--bk-ease);
  width: 1.125rem;
}

.bk-button--primary {
  background: var(--bk-red);
  border-color: var(--bk-red);
  color: var(--bk-white);
}

.bk-button--primary:hover,
.bk-button--primary.is-hover {
  background: var(--bk-red-dark);
  border-color: var(--bk-red-dark);
  color: var(--bk-white);
}

.bk-button--secondary {
  background: var(--bk-green);
  border-color: var(--bk-green);
  color: var(--bk-white);
}

.bk-button--secondary:hover {
  background: var(--bk-green-dark);
  border-color: var(--bk-green-dark);
  color: var(--bk-white);
}

.bk-button--outline {
  border-color: var(--bk-green);
  color: var(--bk-green);
}

.bk-button--outline:hover {
  background: var(--bk-green);
  color: var(--bk-white);
}

.bk-button--text {
  color: var(--bk-green);
  min-height: 2.75rem;
  padding-inline: var(--bk-space-2);
}

.bk-button--text:hover {
  color: var(--bk-red);
}

.bk-button:hover .bk-icon,
.bk-text-link:hover .bk-icon {
  transform: translateX(0.1875rem);
}

.bk-button:active,
.bk-button.is-active {
  transform: translateY(1px) scale(0.985);
}

.bk-button.is-focus {
  outline: 3px solid var(--bk-focus-ring);
  outline-offset: 3px;
}

.bk-button:disabled,
.bk-button[aria-disabled="true"] {
  background: var(--bk-surface);
  border-color: var(--bk-border);
  color: var(--bk-text-muted);
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.bk-button-row,
.bk-button-showcase,
.bk-badge-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bk-space-3);
}

/* Cards */
.bk-card {
  background: var(--bk-cream);
  border: var(--bk-border-width) solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--bk-space-4);
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}

.bk-card--accent-red::before,
.bk-card--accent-green::before {
  border-radius: var(--bk-radius-pill);
  content: "";
  height: 0.375rem;
  left: clamp(1.5rem, 3vw, 2rem);
  position: absolute;
  top: 0;
  width: 3rem;
}

.bk-card--accent-red::before {
  background: var(--bk-red);
}

.bk-card--accent-green::before {
  background: var(--bk-green);
}

.bk-card--green {
  background: var(--bk-green);
  border-color: var(--bk-green);
  color: var(--bk-white);
}

.bk-card--green :where(.bk-h3, .bk-h4, .bk-eyebrow, .bk-text-link) {
  color: var(--bk-white);
}

.bk-card--interactive {
  cursor: pointer;
  transition: border-color var(--bk-motion-normal) var(--bk-ease), transform var(--bk-motion-normal) var(--bk-ease), box-shadow var(--bk-motion-normal) var(--bk-ease);
}

.bk-card--interactive:hover,
.bk-card--interactive:focus-visible {
  border-color: var(--bk-green);
  box-shadow: 0 0.5rem 1.5rem rgb(23 59 36 / 6%);
  transform: translateY(-0.1875rem);
}

.bk-card__number {
  color: var(--bk-red);
  font-family: var(--bk-font-display);
  font-size: 1.125rem;
  font-weight: 800;
}

/* Badges */
.bk-badge {
  align-items: center;
  background: var(--bk-surface);
  border: 1px solid transparent;
  border-radius: var(--bk-radius-pill);
  color: var(--bk-text);
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 700;
  gap: var(--bk-space-1);
  letter-spacing: 0.055em;
  line-height: 1;
  min-height: 1.625rem;
  padding: 0.375rem 0.625rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.bk-badge .bk-icon {
  height: 0.75rem;
  width: 0.75rem;
}

.bk-badge--new,
.bk-badge--spicy {
  background: var(--bk-red-soft);
  color: var(--bk-red-dark);
}

.bk-badge--popular {
  background: var(--bk-green);
  color: var(--bk-white);
}

.bk-badge--soon {
  background: var(--bk-warning-soft);
  color: var(--bk-warning);
}

.bk-badge--sold {
  background: var(--bk-text);
  color: var(--bk-white);
}

.bk-badge--neutral {
  background: transparent;
  border-color: var(--bk-border-strong);
}

/* Forms */
.bk-form {
  container-type: inline-size;
}

.bk-form-grid {
  display: grid;
  gap: var(--bk-space-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bk-field {
  display: flex;
  flex-direction: column;
  gap: var(--bk-space-2);
  min-width: 0;
}

.bk-field--full {
  grid-column: 1 / -1;
}

.bk-field label,
.bk-choice-group legend {
  color: var(--bk-text);
  font-size: var(--bk-type-ui);
  font-weight: 700;
}

.bk-field :where(input, select, textarea) {
  appearance: none;
  background-color: var(--bk-white);
  border: var(--bk-border-width) solid var(--bk-border);
  border-radius: var(--bk-radius-md);
  box-shadow: none;
  color: var(--bk-text);
  font-family: var(--bk-font-ui);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  max-width: none;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--bk-motion-fast) var(--bk-ease), box-shadow var(--bk-motion-fast) var(--bk-ease), background-color var(--bk-motion-fast) var(--bk-ease);
  width: 100%;
}

.bk-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bk-green) 50%), linear-gradient(135deg, var(--bk-green) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.95rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.375rem 0.375rem, 0.375rem 0.375rem;
  padding-inline-end: 3rem;
}

.bk-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.bk-field :where(input, select, textarea)::placeholder {
  color: var(--bk-text-muted);
  opacity: 0.78;
}

.bk-field :where(input, select, textarea):hover:not(:disabled) {
  border-color: var(--bk-border-strong);
}

.bk-field :where(input, select, textarea):focus {
  border-color: var(--bk-green);
  box-shadow: 0 0 0 0.25rem var(--bk-focus-ring);
  outline: 0;
}

.bk-field :where(input, select, textarea):disabled {
  background: var(--bk-surface);
  color: var(--bk-text-muted);
  cursor: not-allowed;
  opacity: 0.75;
}

.bk-helper,
.bk-field-message {
  color: var(--bk-text-muted);
  font-size: var(--bk-type-meta);
  line-height: 1.5;
}

.bk-field-message {
  align-items: center;
  display: flex;
  font-weight: 600;
  gap: var(--bk-space-1);
}

.bk-field-message .bk-icon {
  height: 1rem;
  width: 1rem;
}

.bk-field--error :where(input, select, textarea) {
  border-color: var(--bk-red);
}

.bk-field--error .bk-field-message {
  color: var(--bk-red-dark);
}

.bk-field--success :where(input, select, textarea) {
  border-color: var(--bk-success);
}

.bk-field--success .bk-field-message {
  color: var(--bk-success);
}

.bk-choice-group {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bk-space-4) var(--bk-space-6);
  padding: 0;
}

.bk-choice-group legend {
  margin-block-end: var(--bk-space-3);
  width: 100%;
}

.bk-choice {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-size: var(--bk-type-ui);
  gap: var(--bk-space-2);
  min-height: 2.75rem;
}

.bk-choice input {
  appearance: none;
  background: var(--bk-white);
  border: 1.5px solid var(--bk-border-strong);
  display: grid;
  flex: 0 0 auto;
  height: 1.25rem;
  margin: 0;
  place-content: center;
  width: 1.25rem;
}

.bk-choice input[type="checkbox"] {
  border-radius: 0.3125rem;
}

.bk-choice input[type="radio"] {
  border-radius: 50%;
}

.bk-choice input::before {
  background: var(--bk-white);
  content: "";
  height: 0.5rem;
  transform: scale(0);
  transition: transform var(--bk-motion-fast) var(--bk-ease);
  width: 0.5rem;
}

.bk-choice input[type="radio"]::before {
  border-radius: 50%;
}

.bk-choice input[type="checkbox"]::before {
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 19%, 84% 5%, 39% 65%);
}

.bk-choice input:checked {
  background: var(--bk-green);
  border-color: var(--bk-green);
}

.bk-choice input:checked::before {
  transform: scale(1);
}

@container (max-width: 40rem) {
  .bk-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk-field--full {
    grid-column: auto;
  }
}

/* Category navigation */
.bk-category-nav {
  align-items: center;
  border-bottom: 1px solid var(--bk-border);
  display: flex;
  gap: var(--bk-space-8);
  overflow-x: auto;
  scrollbar-width: thin;
}

.bk-category-nav :where(a, button) {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--bk-text-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-family: var(--bk-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  min-height: 3.25rem;
  padding: 0.25rem 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--bk-motion-fast) var(--bk-ease), color var(--bk-motion-fast) var(--bk-ease);
  white-space: nowrap;
}

.bk-category-nav :where(a, button):hover,
.bk-category-nav .is-active {
  border-color: var(--bk-red);
  color: var(--bk-text);
}

.bk-category-nav button:disabled {
  color: var(--bk-disabled);
  cursor: not-allowed;
  font-family: var(--bk-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  min-height: 3.25rem;
  opacity: 1;
  padding: 0.25rem 0;
}

/* Menu item */
.bk-menu-category {
  scroll-margin-top: var(--bk-space-8);
}

.bk-menu-category__heading {
  align-items: end;
  border-bottom: 2px solid var(--bk-green);
  display: flex;
  gap: var(--bk-space-4);
  justify-content: space-between;
  padding-block-end: var(--bk-space-5);
}

.bk-menu-category__heading > div {
  display: grid;
  gap: var(--bk-space-2);
}

.bk-menu-category__heading > span {
  color: var(--bk-text-muted);
  font-size: var(--bk-type-meta);
  font-weight: 700;
  white-space: nowrap;
}

.bk-menu-category__heading .bk-h3 {
  font-size: clamp(2rem, 2vw + 1rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-transform: uppercase;
}

.bk-menu-row {
  align-items: start;
  border-bottom: 1px solid var(--bk-border);
  display: grid;
  gap: var(--bk-space-5);
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: var(--bk-space-6);
}

.bk-menu-row__content {
  min-width: 0;
}

.bk-menu-row__title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bk-space-2) var(--bk-space-3);
}

.bk-menu-row h4 {
  font-family: var(--bk-font-display);
  font-size: clamp(1.25rem, 0.75vw + 1rem, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.bk-menu-row p {
  color: var(--bk-text-muted);
  font-size: var(--bk-type-support);
  line-height: 1.6;
  margin-block-start: var(--bk-space-2);
  max-width: 42rem;
}

.bk-menu-row__price {
  color: var(--bk-green);
  font-family: var(--bk-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 7.5rem;
  text-align: end;
  white-space: nowrap;
}

/* Add-ons */
.bk-addons {
  background: var(--bk-green);
  border-radius: var(--bk-radius-xl);
  color: var(--bk-white);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.bk-addons :where(.bk-eyebrow, .bk-h4) {
  color: var(--bk-white);
}

.bk-addons .bk-h4 {
  margin-block-start: var(--bk-space-2);
}

.bk-addons ul {
  list-style: none;
  margin-block: var(--bk-space-6);
}

.bk-addons li {
  align-items: baseline;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  display: flex;
  font-size: 1rem;
  gap: var(--bk-space-4);
  justify-content: space-between;
  padding-block: var(--bk-space-3);
}

.bk-addons li strong {
  font-family: var(--bk-font-display);
  font-size: 1.0625rem;
  white-space: nowrap;
}

.bk-addons__note {
  align-items: flex-start;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--bk-radius-md);
  display: flex;
  font-size: var(--bk-type-meta);
  gap: var(--bk-space-3);
  padding: var(--bk-space-4);
}

.bk-addons__note .bk-icon {
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

.bk-icon {
  display: inline-block;
  height: 1.25rem;
  overflow: visible;
  vertical-align: middle;
  width: 1.25rem;
}

/* Third-party embeds */
.bk-embed {
  background: var(--bk-cream);
  border-radius: var(--bk-radius-xl);
  display: grid;
  gap: var(--bk-space-6);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.bk-embed--bordered {
  border: 1px solid var(--bk-border);
}

.bk-embed__header {
  display: grid;
  gap: var(--bk-space-3);
  max-width: 46rem;
}

.bk-embed__header > p:last-child {
  color: var(--bk-text-muted);
  font-size: var(--bk-type-support);
  line-height: 1.65;
}

.bk-embed__frame {
  align-items: center;
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  display: flex;
  justify-content: center;
  min-height: clamp(18rem, 38vw, 28rem);
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  width: 100%;
}

.bk-embed__frame iframe {
  border: 0;
  display: block;
  min-height: 28rem;
  width: 100%;
}

.bk-embed__loading {
  align-items: center;
  color: var(--bk-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--bk-space-3);
  max-width: 28rem;
  text-align: center;
}

.bk-embed__loading strong {
  color: var(--bk-text);
  font-family: var(--bk-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.bk-embed__loading > span:last-child {
  font-size: var(--bk-type-meta);
  line-height: 1.55;
}

.bk-embed__loader {
  animation: bk-embed-pulse 1.4s var(--bk-ease) infinite;
  background: var(--bk-green-soft);
  border: 2px solid var(--bk-green);
  border-radius: var(--bk-radius-md);
  display: block;
  height: 3rem;
  position: relative;
  width: 3.5rem;
}

.bk-embed__loader::after {
  background: var(--bk-red);
  border-radius: var(--bk-radius-sm);
  content: "";
  height: 0.5rem;
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
  width: 0.75rem;
}

@keyframes bk-embed-pulse {
  0%, 100% { opacity: 0.68; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 48rem) {
  .bk-button {
    min-height: 3.125rem;
  }

  .bk-category-nav {
    border-bottom: 0;
    gap: var(--bk-space-2);
    margin-inline: calc(var(--bk-gutter) * -1);
    padding: 0 var(--bk-gutter) var(--bk-space-2);
  }

  .bk-category-nav :where(a, button) {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-pill);
    font-family: var(--bk-font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
  }

  .bk-category-nav button:disabled {
    font-family: var(--bk-font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
  }

  .bk-category-nav :where(a, button):hover,
  .bk-category-nav .is-active {
    background: var(--bk-green);
    border-color: var(--bk-green);
    color: var(--bk-white);
  }

  .bk-menu-row {
    gap: var(--bk-space-3);
  }

  .bk-menu-row__price {
    font-size: 1.125rem;
    max-width: 6.25rem;
  }
}

@media (max-width: 22.5rem) {
  .bk-menu-row {
    gap: var(--bk-space-2);
  }

  .bk-menu-row__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .bk-menu-row__price {
    white-space: normal;
  }
}
