.account-recipes-page,
.fridge-items-page {
  background: var(--bg);
}

.fridge-items-page {
  padding-bottom: 112px;
}

.account-recipes-shell {
  width: min(var(--max-content), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 48px 0 24px;
}

.account-recipes-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.fridge-items-shell {
  width: min(var(--max-content), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.fridge-items-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.fridge-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fridge-category-panel {
  display: grid;
  gap: 16px;
  border-radius: 20px;
  background: var(--surface);
  padding: 20px;
}

.fridge-category-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.fridge-category-panel h2 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 24px;
}

.fridge-category-panel header button,
.fridge-remove-all {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.fridge-item-list {
  display: grid;
  gap: 8px;
}

.fridge-item-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 7px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.fridge-item-row button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
}

.fridge-items-bottom-action {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .96);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}

.fridge-items-bottom-action-inner {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.fridge-items-bottom-action span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.fridge-items-bottom-action .wu-button {
  width: 100%;
}

@media (max-width: 1023px) {
  .fridge-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .account-recipes-shell,
  .fridge-items-shell {
    padding-top: 32px;
  }

  .fridge-items-grid {
    grid-template-columns: 1fr;
  }
}

.fridge-ad-row {
  /* Not flex: the ad inside fills this row at width:100% via its own inline
     style anyway, so centering it did nothing visually - but it left the
     <ins> as a flex item with no definite main-axis width, which is a
     documented AdSense gotcha ("No slot size for availableWidth=0"). */
  margin-bottom: 20px;
}
