.allergen-page {
  width: min(1120px, calc(100% - 28px));
  margin: 24px auto 70px;
  display: grid;
  gap: 18px;
}

.allergen-hero,
.allergen-notice,
.allergen-table-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(80, 45, 20, .08);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.allergen-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: .95;
}

.allergen-hero p,
.allergen-notice p {
  color: var(--muted);
  line-height: 1.5;
}

.allergen-notice {
  border-color: rgba(190, 24, 93, .16);
  background: #fff7fb;
}

.allergen-notice h2 {
  margin: 0 0 8px;
}

.allergen-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.allergen-summary article {
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.allergen-summary strong,
.allergen-summary span {
  display: block;
}

.allergen-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.allergen-toolbar {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.allergen-toolbar label {
  font-weight: 900;
}

.allergen-toolbar input {
  min-height: 48px;
  border: 1px solid #eadfe8;
  border-radius: 16px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}

.allergen-content {
  display: grid;
  gap: 18px;
}

.allergen-category h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.allergen-table-scroll {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #eadfe8;
}

.allergen-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

.allergen-table th,
.allergen-table td {
  padding: 12px;
  border-bottom: 1px solid #f0e6ee;
  text-align: left;
  vertical-align: top;
}

.allergen-table th {
  background: #fff2f8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.allergen-table td:first-child {
  width: 34%;
  font-weight: 900;
}

.allergen-table td:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.allergen-table td span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f8f1f7;
  font-weight: 800;
}

.allergen-table em {
  color: var(--muted);
}

@media (max-width: 760px) {
  .allergen-page {
    width: min(100%, calc(100% - 18px));
    margin-top: 16px;
  }

  .allergen-hero,
  .allergen-notice,
  .allergen-table-card {
    border-radius: 20px;
    padding: 16px;
  }

  .allergen-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
