/* ---------------------------
   404 Page — Berry Finds
---------------------------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--sp-16) 0 var(--sp-20);
  gap: var(--sp-4);
}

.notfound__hero {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-6);
  animation: notfoundIn 600ms var(--ease) both;
}

.notfound__mascot {
  max-width: 400px;
  height: auto;
  transform-origin: bottom center;
  animation: notfoundFloat 3s ease-in-out infinite,
             notfoundIn 600ms var(--ease) both;
  filter: drop-shadow(0 8px 24px rgba(230, 57, 70, 0.15));
}

.notfound__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: notfoundIn 600ms var(--ease) 100ms both;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.notfound__lost {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin: 0;
}

.notfound__msg {
  color: var(--muted);
  font-size: 1.1rem;
  margin: var(--sp-4) 0 0;
  animation: notfoundIn 600ms var(--ease) 200ms both;
}

.notfound__try {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin: var(--sp-8) 0 0;
  animation: notfoundIn 600ms var(--ease) 300ms both;
}

.notfound__deals {
  animation: notfoundIn 600ms var(--ease) 400ms both;
  max-width: 100vw;
}

.notfound__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  animation: notfoundIn 600ms var(--ease) 500ms both;
}

@keyframes notfoundFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes notfoundIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .notfound {
    padding: var(--sp-10) 0 var(--sp-16);
  }

  .notfound__hero {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
  }

  .notfound__mascot {
    max-width: 280px;
  }

  .notfound__text {
    align-items: center;
  }

  .notfound__code {
    font-size: 72px;
  }

  .notfound__lost {
    font-size: 36px;
  }

  .notfound__actions {
    flex-direction: column;
    width: 100%;
  }

  .notfound__actions .bf-hero__cta {
    text-align: center;
  }
}
